Network Layer
Network Layer
Layer
Dr Mohit Kumar
Dept. of Information Technology
National Institute of Technology
Jalandhar, Punjab, India
kumarmohit@nitj.ac.in
NITJ
1
Outline
1 NETWORK-LAYER SERVICES
2 PACKET SWITCHING
3 NETWORK-LAYER PERFORMANCE
4 IPv4 ADDRESSES
5 FORWARDING OF IP PACKETS
1 NETWORK-LAYER SERVICES
Propagation delay:
Time taken by the first bit to travel from sender to receiver end of the link.
Processing delay:
Queuing delay:
Queuing delay: Time a packet waits in input and output queues in a router
2.2 Throughput
18.18
3 IPv4 ADDRESSES
IPv4 addresses are unique. They are unique in the sense that
each address defines one, and only one, connection to the
Internet.
Two devices on the Internet can never have the same address at
the same time.
3.1 Address Space
IPv4 uses 32-bit addresses, which means that the address space
is 2^32 or 4,294,967,296 (more than four billion).
18.25
Subnetting and Supernetting
18.26
3.3 Classless Addressing
18.28
Figure 20: Slash notation (CIDR)
Figure 21: Information extraction in classless
addressing
Example 1
A classless address is given as 167.199.170.82/27. We can
find the above three pieces of information as follows. The
number of addresses in the network is 2 32− n = 25 = 32
addresses. The first address can be found by keeping the
first 27 bits and changing the rest of the bits to 0s.
Solution
There are 232– 24 = 256 addresses in this block. The first
address is 14.24.74.0/24; the last address is 14.24.74.255/24.
To satisfy the third requirement, we assign addresses to
subblocks, starting with the largest and ending with the
smallest one.
Example 5 (continued)
a. The number of addresses in the largest subblock, which
requires 120 addresses, is not a power of 2. We allocate 128
addresses. The subnet mask for this subnet can be found as
n1 = 32 − log2 128 = 25. The first address in this block is
14.24.74.0/25; the last address is 14.24.74.127/25.