I know that endianess on hosts and networks may be different, but why is the byte order important?
I think there are two reasons:
1 for the router to check the IP header (for example, addresses), routers only recognize the byte sequence number (byte order) 2 for the receiving host to determine the byte order of the packets. Since the receiving host does not know the byte order of the sending host, if the byte order is not converted to the network byte order, it does not know the byte order of the packets.
I'm right?
so for the following fields that need to be converted to byte order, and why?
1 TCP/UDP Header options, like MSS, timestamps 2 TCP/UDP header checksum 3 TCP sequence number 4 UDP/TCP data fields
source share