Computer Network & Network Security System — Transport Layer, NEC licence examination syllabus (Nepal Engineering Council).
How does your OS know which of fifty open connections a packet belongs to?
Multiplexing: many applications on your device send data, and the transport layer combines everything down onto the network. De-multiplexing: at the receiving end, the transport layer takes incoming segments and sorts them out to the correct application, using the (IP, port) combination as the sorting key.
This is exactly why you can have Chrome, Spotify, and a game all using the internet simultaneously on one connection to your router — the transport layer is quietly demultiplexing every incoming packet to the right app, dozens of times per second.The chapter mentions the 4-tuple in passing, but the contrast is the substance of the topic and questions target it directly.
UDP — 2 valuesDestination IP and destination port. Two datagrams from entirely different senders reaching the same port go to the same socket.
TCP — 4 valuesSource IP, source port, destination IP, destination port. Every distinct connection gets its own socket, even when the destination port is shared.
UDP is connectionless, so there is no connection to identify — a datagram is a standalone message. Sorting only by destination is exactly right for that model, and it is why one UDP socket can receive from many senders. The application, not the transport layer, works out who sent what.
That suits broadcast and multicast naturally, where a single socket should receive from many sources. Forcing TCP's 4-tuple rule onto UDP would break precisely that.
Create a free account to tick topics off, take notes as you read, watch the video lessons and get a day-by-day study plan built around your exam date.
Loading…