A transport layer protocol provides for logical connection between application processes running on different hosts.
A network layer protocol provides for logical connection between hosts.
Example about two houses (families exchanging letters).
Multiplexing and demultiplexing (port numbers). Well known port numbers (old version) and new one.
| Application | A.L. Protocol | T.L. Protocol |
|---|---|---|
| SMTP | TCP | |
| Remote terminal | Telnet | TCP |
| Web | HTTP | TCP |
| File transfer | FTP | TCP |
| Remote file server | NFS | typically UDP |
| Streaming multimedia | proprietary | typically UDP |
| Internet telephony | proprietary | typically UDP |
| Network management | SNMP | typically UDP |
| Routing protocol | RIP | typically UDP |
| Name service | DNS | typically UDP |
| 1 | Source port number (UDP service ID for sender of this packet) |
|||||||||||||||
| 2 | Destination port number (UDP service ID for receiver of this packet) |
|||||||||||||||
| 3 | UDP packet length (byte length includes UDP header and data) |
|||||||||||||||
| 4 | UDP checksum (UDP header and data and portions of IP header included) |
|||||||||||||||
| ... | Data | |||||||||||||||
| ... | Data | |||||||||||||||
For official description of UDP see