Module - 3 - Network Layer - Part 1
Module - 3 - Network Layer - Part 1
Network Layer:
Introduction to Network Layer
NETWORK-LAYER SERVICES:
PACKETIZING
ROUTING AND
FORWARDING
PACKET SWITCHING
DATAGRAM APPROACH: CONNECTIONLESS SERVICE
Routing
The network layer is responsible for routing the packet from its source to the destination. A physical
network is a combination of networks (LANs and WANs) and routers that connect them The network
layer is responsible for finding the best one among these possible routes. The network layer needs to
have some specific strategies for defining the best route. This is done by running some routing
protocols.
Forwarding
Forwarding can be defined as the action applied by each router when a packet arrives at one of its
interfaces.
The decision-making table a router normally uses for applying this action is sometimes called the
forwarding table and sometimes the routing table.
When a router receives a packet from one of its, it needs to forward the packet to another network (in
unicast routing) or to some networks (in multicast routing).
Forwarding process
Position of network layer 6
• We replace each group of 8 bits with its equivalent decimal number and add
dots for separation:
a. 129.11.11.239
b. 249.155.251.15
Example 16
a. 111.56.014.239 b. 249.155.89.251.15
c. 75.67.347.17 d. 23.10010011.255.61
Solution:
Solution
a. The first bit is 0. This is a class A address.
b. The first 2 bits are 1; the third bit is 0. This is a class C address.
c. The first byte is 14; the class is A.
d. The first byte is 252; the class is E.
Classes and Blocks 21
Supernetting
Combine several class C blocks to create a larger range of addresses
The flaws in classful addressing scheme combined with the fast growth of the
Internet led to the near depletion of the available addresses. Yet the number of
devices on the Internet is much less than the 2 32 address space. We have run out
of class A and B addresses, and a class C block is too small for most midsize
organizations. One solution that has alleviated the problem is the idea of
classless addressing.
DHCP Operation
FSM for the DHCP client 39
19-
Network Address Translation: NAT 40
Network Address Resolution
NAT enables a user to have a large set of addresses internally and
Using (1) one IP address, (2) a pool of IP address, and (3) both IP
addresses and port numbers
19-
Five-Column Translation Table 43
19-
ISP and NAT 44
19-
FORWARDING OF IP PACKETS 45
Network Layer
Protocols
INTERNET PROTOCOL
Switching at the network layer in the Internet uses the datagram 50
approach
Communication at the network layer in the Internet is connectionless
Position of IPv4 in TCP/IP protocol suite
51
52
53
54
55
56
57
58
59
60
61
62
63