OSI Model-2
OSI Model-2
Note:
1. Packet in the Data Link layer is referred to as Frame.
2. Data Link layer is handled by the NIC (Network Interface Card) and
device drivers of host machines.
3. Switch & Bridge are Data Link Layer devices.
Establishes Connection,
Session Maintenance, Ensures
Message Gateway
Layer Authentication, and Ensures
5 security.
Information
Layer Layer Form(Data Device or
No Name Responsibility Unit) Protocol
Hub,
Establishing Physical
Physical Repeater,
Connections between Bits
Layer Modem,
Devices.
1 Cables
Routing
Routing is a process that is performed by layer 3 (or network layer) devices in
order to deliver the packet by choosing an optimal path from one network to
another.
Types of Routing
There are 3 types of routing that are described below.
1. Static Routing
Static routing is a process in which we have to manually add routes to the
routing table.
Advantages
• No routing overhead for the router CPU which means a cheaper
router can be used to do routing.
• It adds security because only an only administrator can allow routing
to particular networks only.
• No bandwidth usage between routers.
Disadvantage
• For a large network, it is a hectic task for administrators to manually
add each route for the network in the routing table on each router.
• The administrator should have good knowledge of the topology. If a
new administrator comes, then he has to manually add each route so
he should have very good knowledge of the routes of the topology.
Configuration
2. Default Routing
This is the method where the router is configured to send all packets toward a
single router (next hop). It doesn’t matter to which network the packet
belongs, it is forwarded out to the router which is configured for default
routing. It is generally used with stub routers. A stub router is a router that has
only one route to reach all other networks.
Configuration: Using the same topology which we have used for static routing
before.
Both Static routing and Dynamic routing are the Types of Routing.
Static Routing:
Static Routing is also known as non-adaptive routing which doesn’t change
the routing table unless the network administrator changes or modifies them
manually. Static routing does not use complex routing algorithms and It
provides high or more security than dynamic routing.
Dynamic Routing:
Dynamic routing is also known as adaptive routing which changes the routing
table according to the change in topology. Dynamic routing uses complex
routing algorithms and it does not provide high security like static routing.
When the network change(topology) occurs, it sends the message to the
router to ensure that changes then the routes are recalculated for sending
updated routing information.
Difference between Static and Dynamic Routing:
S.NO Static Routing Dynamic Routing
In static routing routes are user- In dynamic routing, routes are updated
1.
defined. according to the topology.
Static routing does not use complex Dynamic routing uses complex routing
2.
routing algorithms. algorithms.
In static routing, failure of the link In dynamic routing, failure of the link does
7.
disrupts the rerouting. not interrupt the rerouting.
Another name for static routing is Another name for dynamic routing is
10.
non-adaptive routing. adaptive routing.