Network layer

OSI Model
7Application layer
6Presentation layer
5Session layer
4Transport layer
3Network layer
2Data link layer
1Physical layer

The network layer is level three of the seven level OSI model. It responds to service requests from the transport layer and issues service requests to the data link layer.

The network layer addresses messages and translates logical addresses and names into physical addresses. It also determines the route from the source to the destination computer and manages traffic problems, such as switching, routing, and controlling the congestion of data packets.

The network layer provides the functional and procedural means of transferring variable length data sequences from a source to a destination via one or more networks while maintaining the quality of service requested by the Transport layer. The Network layer performs network routing, flow control, network segmentation/desegmentation, and error control functions.

The network layer deals with transmitting information all the way from its source to its destination - and transmitting things from anywhere you like, to anywhere you like. If you can't contact a place at the network layer, then you can't contact that place at all. However, it does it in a very basic way, without error detection or flow control, or anything else. Here are some things that the network layer needs to address:

Internet protocol suite   edit
Application layer HTTP, HTTPS, SMTP, FTP, UUCP, NNTP,
SSH, IRC, SNMP, SIP, RTP, Telnet ,...
Transport layer TCP, UDP, SCTP, DCCP, ...
Network layer IPv4, IPv6, ICMP, ARP, IGMP, ...
Data link layer Ethernet, Wi-Fi, Token ring, FDDI, PPP, ...
Physical layer RS-232, EIA-422, RS-449, EIA-485...

In the traditional postage system (commonly referred to as snail mail) this role is provided by the postman (to some extent).

Examples

See also: Network layer, Address Resolution Protocol, Application layer, Connectionless, Data, Data link layer, Datagram Congestion Control Protocol