New answers tagged

0

This is a case of, "in theory there is no difference between theory and practice, ..." Usually, applications interact with operating system's network stack using an abstraction, called sockets. Sockets, which is also some sort of object that is maintained inside the operating systems, contain necessary information. If this is the case, then why ...


0

why does the UDP datagram header contain a space for a source port? Ports are a concept of the transport-layer protocol (L4). Not all those protocols use ports but the most common ones, TCP and UDP do. There are no ports on the network layer (IP), so it wouldn't make sense to put that field in the IP header. how does the application layer know what IP to ...


8

You are confusing a couple of things. MTU is Maximum Transmission Unit, and it is a value of the data-link (layer-2) protocol on a specific medium. IP, neither IPv4 nor IPv6 has an MTU. They both have maximum packet sizes, which are much larger than any data-link MTU. The total packet size (header and payload) for an IPv4 packet is 65,535 octets. For IPv6, ...


Top 50 recent answers are included