When will a TCP network packet be fragmented at the application layer?

后端 未结 10 1791
借酒劲吻你
借酒劲吻你 2020-11-30 02:59

When will a TCP packet be fragmented at the application layer? When a TCP packet is sent from an application, will the recipient at the application layer ever receive the p

10条回答
  •  迷失自我
    2020-11-30 03:32

    Fragmentation should be transparent to a TCP application. Keep in mind that TCP is a stream protocol: you get a stream of data, not packets! If you are building your application based on the idea of complete data packets then you will have problems unless you add an abstraction layer to assemble whole packets from the stream and then pass the packets up to the application.

提交回复
热议问题