In industrial grade, the network communication protocol is usually designed to be divided into two layers: the higher layer and the lower layer.
The most outstanding difference is the higher packets employing a variable length while the lower doing a fixed length. The higher relates to business logic, whose packet length is ranging, say, from 1x KB to 1xx MB.
Why we need a fixed-size lower layer?
Imagine the following scenario: an emergency packet needs to be send immediately but a low-priority packet is in the process of being sent, which has occupied the expensive socket and would last for a while. Without the lower layer, we can do nothing but to wait.
It comes to a help that segmenting the size-variable packet into small fixed-size sub-packets, whereby we can check whether there’s an additional packet with higher priority at the interval of sending two sub-packets.
Abbreviations:
MUX – Multiplexing,
DEMUX - Demultiplexing
An alternate solution - FTP’s way:
FTP server and FTP client maintain two socket connections:
1) Command connection – for short and high-prioritized packets
2) Data connection – for long and low-prioritized packets
- 大小: 13.3 KB
- 大小: 5.1 KB
分享到:
相关推荐
article from IEEE; What are ontologies and why we need hem
What-Is-JESD204-and-Why-Should-We-Pay-Attention-to-It_cn.pdf
why-is-node-running - Node.js的运行,但你不知道为什么吗?
Why-do-you-like-pandas教学设计说明.doc
how-hackers-learn-and-why-you-want-this-in-your-school.pdf
11-how-hackers-learn-and-why-you-want-this-in-your-school
why-google-adwords-may-show-lower-ctr-ads-more-often 很辛苦找到的,分享下
Unit-5-Why-do-you-like-pandas知识点与练习.doc
Why-do-you-like-pandas-教师说课大赛说课稿.docx
Unit-5-Why-do-you-like-pandas全单元教(学)案.doc
Unit5-Why-do-you-like-pandas-全单元教(学)案.doc
unit4-Why-don't-you-talk-to-your-parents全单元知识点和练习.doc
Why Don't Students Like School? 作者: Daniel T. Willingham 出版社: Jossey-Bass 副标题: A Cognitive Scientist Answers Questions About How the Mind Works and What It Means for the Classroom 出版年: 2010...
The Theory section takes a close, unbiased look at why so much time and effort has been expended on revising IPv4. In the Protocol section is a comprehensive review of the specifics of IPv6 and ...
什么是激励函数_(深度学习)__Why_need_activation_functions_(deep_learning)_
2018-Why I like it multi-task learning for recommendation and explanation
开源框架,后台已经搭建好权限管理,用户管理,部门管理等,能够帮助大家快速开发程序,界面美观大方
Emotional Design - Why we Love Or Hate everyday things
「安全威胁」Cloud_DFIR:Why_so_Cirrus - 防火墙 安全防御 数据安全 安全资讯 安全开发 安全运营