当前位置:网站首页>Reuse and distribution
Reuse and distribution
2022-07-02 14:37:00 【Kallou】
Multiplexing and demultiplexing are the services that the transport layer protocol must provide .
Multiplexing and multiplexing are common in the process of network transmission , Unique to the non transport layer .
1. An example
host1 Of p3 Process to host2 Of p1 Process transfer information , meanwhile host3 Of p4 Process also to host2 Of p2 Process transfer information .
For the receiver , The transport layer at the receiving end identifies the arriving multiple transport layer messages , extract socket Information , Locate the message segment to the corresponding socket On , The process is called Demultiplexing .
For the sender , From different socket Collect information and add the first part , Send it through the network layer , be called Multiplexing .
2. The specific working mode of multiplexing
The host receives a IP The datagram , The IP Datagram carry Source IP Address and Purpose IP Address . Yes IP After the datagram is unpacked, a transport layer segment,segment There is Source port number and Destination port number , Corresponding Source process and Destination process , The transport layer protocol distributes data correctly according to the port number .
3. Connectionless distribution (UDP)
Features of connectionless distribution :
- establish socket, And will socket Bind to a port number ,UDP Use Purpose IP Address and Destination port number The unique identifier of a binary socket
- Host received UDP After paragraph , Check the destination port number ,UDP The segment is connected to socket.
- From different hosts and transmitted to the same process UDP Segments will be connected to the same socket On .
4. Connection oriented distribution (TCP)
Connection oriented features :
- TCP Adopt include Source IP Address 、 Source port number 、 Purpose IP Address 、 Destination port number To identify socket.
- TCP The protocol is connection oriented ( Point to point ) agreement , Reflected in the transport layer is that the receiving process will be from each different source TCP Segment creation socket.
Multi process connection oriented sharing :
Due to the high cost of creating and maintaining processes , Usually the server will adopt a lower cost method , That is to create a process Multiple threads To communicate with clients , Each thread will have its own socket.
Multithreaded connection oriented sharing :
边栏推荐
猜你喜欢
微信小程序使用towxml显示公式
Factal: Unsafe repository is owned by someone else Solution
STM32库函数进行GPIO初始化
途家木鸟美团夏日折扣对垒,门槛低就一定香吗?
Borui data integrated intelligent observable platform was selected into the "Yunyuan production catalogue" of China Academy of communications in 2022
buuctf-pwn write-ups (7)
由粒子加速器产生的反中子形成的白洞
Stm32-dac Experiment & high frequency DAC output test
富文本编辑器添加矢量公式(MathType for TinyMCE ,可视化添加)
每日学习3
随机推荐
Quick analysis: easy to share the Internet
[QNX Hypervisor 2.2用户手册]6.3 Guest与外部之间通信
Fabric. JS free drawing ellipse
Convolutional neural network (Introduction)
Use of swagger
3、函数指针和指针函数
Fatal: unsafe repository is owned by someone else
Pycharm连接远程服务器
STM32标准固件库函数名记忆(二)
【空间&单细胞组学】第1期:单细胞结合空间转录组研究PDAC肿瘤微环境
Some interview suggestions for Android programmers "suggestions collection"
The evolution process of the correct implementation principle of redis distributed lock and the summary of redison's actual combat
提示:SQL Server 阻止了对组件‘Ad Hoc Distributed Queries ‘的STATEMENT ‘OpenRowset/OpenDatasource“”
Factal: Unsafe repository is owned by someone else Solution
Methods of software testing
Basic knowledge of QT original code
obsidian安装第三方插件——无法加载插件
没有从远程服务器‘‘映射到本地用户‘(null)/sa‘的远程用户‘sa‘及服务主密码解密错误的解决办法
Check password
Essential elements of science fiction 3D scenes - City