UDP Packet size and packet losses

前端 未结 3 533
孤城傲影
孤城傲影 2021-01-05 17:22

I\'ve been writing a program that uses a stop and wait protocol on top of UDP to send packets over LAN and also over WAN. I\'ve recently been testing my program and have not

3条回答
  •  暖寄归人
    2021-01-05 18:19

    Its all about IP fragmentation and defragmentation. Packet more than MTU would be fragmented and has to be defragmented at the final host, there are also chances the fragments gets fragmented again on the path and which again can add the delay. sometimes if some N/W element is configured for layer 4 filtering then it defragments(not the final host) apply rules and then again frgaments and forward. Thats the reason the applicaiton which need performance always try to send data with size <= (MTU-ETHHDR-IPHDR)

提交回复
热议问题