network layer
network layer
The network layer is the third layer (from bottom) in the OSI
Model. The network layer is concerned with the delivery of a
packet across multiple networks. The network layer is considered
the backbone of the OSI Model. It selects and manages the best
logical path for data transfer between nodes. This layer contains
hardware devices such as routers, bridges, firewalls, and
switches, but it actually creates a logical image of the most
efficient communication route and implements it with a physical
medium. Network layer protocols exist in every host or router.
The router examines the header fields of all the IP packets that
pass through it. Internet Protocol and Netware IPX/SPX are the
most common protocols associated with the network layer. In the
OSI model, the network layer responds to requests from the layer
above it (transport layer) and issues requests to the layer below
it (data link layer). Responsibilities of Network Layer:
Packet forwarding/Routing of packets: Relaying of data
packets from one network segment to another by nodes in a
computer network Connectionless communication(IP): A
data transmission method used in packet-switched networks in
which each data unit is separately addressed and routed based
on information carried by it Fragmentation of data
packets: Splitting of data packets that are too large to be
transmitted on the network
There are two types of network transmission techniques, circuit
switched network and packet switched network. Circuit Switch
vs Packet Switch In circuit switched network, a single path is
designated for transmission of all the data packets. Whereas in
case of a packet-switched network, each packet may be sent
through a different path to reach the destination. In a circuit
switched network, the data packets are received in order
whereas in a packet switched network, the data packets may be
received out of order. The packet switching is further subdivided
into Virtual circuits and Datagram.
IPv4: IPv4 is a connectionless protocol used for packet-switched
networks. It operates on a best-effort delivery model, in which
neither delivery is guaranteed, nor proper sequencing or
avoidance of duplicate delivery is assured. Internet Protocol
Version 4 (IPv4) is the fourth revision of the Internet Protocol and
a widely used protocol in data communication over different
kinds of networks. IPv4 is a connectionless protocol used in
packet-switched layer networks, such as Ethernet. It provides a
logical connection between network devices by providing
identification for each device. There are many ways to configure
IPv4 with all kinds of devices – including manual and automatic
configurations – depending on the network type. IPv4 is defined
and specified in IETF publication RFC 791. IPv4 uses 32-bit
addresses for Ethernet communication in five classes: A, B, C, D
and E. Classes A, B and C have a different bit length for
addressing the network host. Class D addresses are reserved for
multicasting, while class E addresses are reserved for military
purposes. IPv4 uses 32-bit (4-byte) addressing, which gives
232 addresses. IPv4 addresses are written in the dot-decimal
notation, which comprises of four octets of the address
expressed individually in decimal and separated by periods, for
instance, 192.168.1.5.
IPv4 Datagram Header Size of the header is 20 to 60 bytes.
Bandwidth
Moderate High Moderate
usage
Latency Low High Moderate
1. Unicast:
2. Broadcast:
3. Multicast: