COMPUTER NETWORK Unit3
COMPUTER NETWORK Unit3
Network layer is the third layer from below in the OSI Model which takes data from Transport layer
and passes on further to Data Link Layer.
How a machine in different network can communicate with a machine in a different network.
It is a combination of 2 things one is a network id and other is the host id. From IP address we will
know in which network to send the message and in that network, there are many hosts, many
machines and many servers. In that network, on which machine to send the messages is the
responsibility of IP Address. And this IP address is used by network layer to send the message.
• ROUTING:
Routing is the process of path selection for traffic in a network or between or across multiple
networks.
• FRAGMENTATION:
It is a technique in which gateways break up or divide larger packets into smaller ones called
fragment. Each fragment is then sent as a separate internal packet. Each fragment has its separate
header and trailer.
• CONGESTION CONTROL:
Congestion control is a mechanism that controls the entry of data packets into the network,
enabling a better use of a shared network infrastructure and avoiding congestive collapse.
Classful addressing is an IPv4 addressing architecture that divides address into 5 groups.
1. CLASS A IP ADDRESSING:
________.________.________.________
First bit is always 0. This is because there are 232 IP addresses are possible. So, to identify that this is
a Class A address we fix the first bit as 0.
0 and 127 are not used. Therefore, there are 27 – 2 Network ID.
No. of hosts possible in every network: 224 -2. (64.255.255.255 is used as Broadcast address)
And operation between given IP address and Default Mask tells us that host belongs to which
network.
• CLASS B IP ADDRESSING:
________.________.________.________
1 0
RANGE: 128-191
NO. OF NETWORKS: 1st 2 octets are Network Id and rest 2 are Host Id.
CLASS C IP ADDRESSING:
No. of Networks possible in Class C: 1st 3 octets are Network ID bits and rest Host ID bits.
221.
CLASS D IP ADDRESSING:
RANGE: 224-239
No host ID in Class D.
CLASS E IP ADDRESSING:
1. Wastage of IP addresses.
2. Maintenance is time consuming.
3. More prone to errors.
CLASSLESS ADDRESSING:
Classless addressing is an IPv4 addressing architecture that uses variable length subnet masking.
1. No classes.
2. Only blocks.
BLOCK ID HOST ID
3. Notation:
RULES:
200.10.20.0_ _ _ _ _ _ _
S1 200 200.10.20.11_ _ _ _ _ _
SUBNETTING IN CLASSLESS INTERDOMAIN ROUTING (Subnetting in CIDR):
E.g.: 195.10.20.128/26
195.10.20.10|000000
195.10.20.128/27
To
195.10.20.159/27
2. Datagram service (any route can be followed, any packet can travel from anywherelpc, therefore
reliability is less , because packets may be lost).
HEADER: header tells how the packet will move and what will be its characteristics.