Layer | Primary function | Examples |
Application | Do useful work | HTTP, SMTP, POP, Ping, FTP | Transport | Control the flow of information between the application program running on the client and the application program running on the server | TCP (reliable), UDP (not reliable) |
Network | Route packets between networks (inter-network) | IP |
Data link | Move data within a local area network | Ethernet, ATM, PPP |
Physical | Define the physical characteristics of the communication hardware and medium | radio, twisted pair, fiber |
Transport layer programs do what the name suggest -- they transport information between the application program on the client and the application program on the server. There are two major transport layer protocols.
The data link layer is used for moving information between two hosts within a local area network.
The physical layer Standards at this layer spell out the physical characteristics of the medium, for example radio, optical fiber or twisted pairs of copper wire, and the physical definition of "one" and "zero" bits (the modulation method).
The software at each layer is responsible only for its own function. In an organization, the president does not have to worry about how the IT people build Web pages, he delegates that to them. Similarly, an application programmer does not know or care how TCP does error checking, TCP does not care how IP routes packets, and the Ethernet protocol does not care whether the physical connection is a radio transmission or light over fiber.
The lower two layers, data-link and physical, are often discussed together as a combined network-access layer.
Finally, note that nearly all operating systems today -- Windows, Mac, Linux and other versions of UNIX -- include programs for the TCP and IP protocols. They also come with common application programs like Web, FTP, Ping, Telnet, Traceroute, POP and SMTP clients. Data-link programs are usually bundled with network interface hardware as firmware.