09-10-2017 01:06 AM - edited 03-08-2019 11:58 AM
For TCP communication, the sender and the receiver exchange their window size through 3 way handshake. But, for UDP communication, since it is not reliable, there is no ACK or window size. I am not sure, but probably the sender will fragment the data according to MTU in UDP communication. My question is what happen if the receiver's window size(not sure whether window size matters for UDP communication) or MTU size is smaller than the received packet size?
Solved! Go to Solution.
09-10-2017 02:05 PM
Hello,
For TCP communication, the sender and the receiver exchange their window size through 3 way handshake.
As we discussed in a different thread you have opened, receiver window size and MSS are two independent things. During the 3-way handshake, TCP endpoints advertise their MSS. However, the size of the receiver window of each TCP endpoint is indicated in each TCP header sent from that endpoint, not just during the 3-way handshake.
My question is what happen if the receiver's window size(not sure whether window size matters for UDP communication) or MTU size is smaller than the received packet size?
UDP does not have a concept window size whatsoever. However, if the endpoint where the UDP socket is listening received a packet larger than its MTU, the IP driver would declare this packet to be oversized, and would likely drop it - so the UDP driver would not even see the segment, as the IP packet containing that segment would be discarded.
Best regards,
Peter
09-10-2017 02:05 PM
Hello,
For TCP communication, the sender and the receiver exchange their window size through 3 way handshake.
As we discussed in a different thread you have opened, receiver window size and MSS are two independent things. During the 3-way handshake, TCP endpoints advertise their MSS. However, the size of the receiver window of each TCP endpoint is indicated in each TCP header sent from that endpoint, not just during the 3-way handshake.
My question is what happen if the receiver's window size(not sure whether window size matters for UDP communication) or MTU size is smaller than the received packet size?
UDP does not have a concept window size whatsoever. However, if the endpoint where the UDP socket is listening received a packet larger than its MTU, the IP driver would declare this packet to be oversized, and would likely drop it - so the UDP driver would not even see the segment, as the IP packet containing that segment would be discarded.
Best regards,
Peter
09-10-2017 06:56 PM
10-19-2017 12:54 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide