Routing Principles and Metrics Explained
Routing Principles and Metrics Explained
Routing Principles – Distance Vector Routing – Link State Routing - Routing (RIP,
OSPF,metrics) – Switch basics – Global Internet (Areas, BGP, IPv6), Multicast –
addresses – multicast routing (DVMRP, PIM).
Routing
o A Router is a process of selecting path along which the data can be transferred from source
to the destination. Routing is performed by a special device known as a router.
o A Router works at the network layer in the OSI model and internet layer in TCP/IP model
o A router is a networking device that forwards the packet based on the information available
in the packet header and forwarding table.
o The routing algorithms are used for routing the packets. The routing algorithm is nothing
but a software responsible for deciding the optimal path through which packet can be
transmitted.
o The routing protocols use the metric to determine the best path for the packet delivery. The
metric is the standard of measurement such as hop count, bandwidth, delay, current load
on the path, etc. used by the routing algorithm to determine the optimal path to the
destination.
o The routing algorithm initializes and maintains the routing table for the process of path
determination.
Metrics are the network variables used to determine the best route to the destination. For some
protocols use the static metrics means that their value cannot be changed and for some other routing
protocols use the dynamic metrics means that their value can be assigned by the system
administrator.
Types of Routing
Routing can be classified into three categories:
o Static Routing
o Default Routing
o Dynamic Routing
Static Routing
o Static Routing is also known as Nonadaptive Routing.
o It is a technique in which the administrator manually adds the routes in a routing table.
o A Router can send the packets for the destination along the route defined by the administrator.
o In this technique, routing decisions are not made based on the condition or topology of the networks
Default Routing
o Default Routing is a technique in which a router is configured to send all the packets to the same
hop device, and it doesn't matter whether it belongs to a particular network or not. A Packet is
transmitted to the device for which it is configured in default routing.
o Default Routing is used when networks deal with the single exit point.
o It is also useful when the bulk of transmission networks have to transmit the data to the same hp
device.
o When a specific route is mentioned in the routing table, the router will choose the specific route
rather than the default route. The default route is chosen only when a specific route is not mentioned
in the routing table.
Dynamic Routing
o It is also known as Adaptive Routing.
o It is a technique in which a router adds a new route in the routing table for each packet in response
to the changes in the condition or topology of the network.
o Dynamic protocols are used to discover the new routes to reach the destination.
o In Dynamic Routing, RIP and OSPF are the protocols used to discover the new routes.
o If any route goes down, then the automatic adjustment will be made to reach the destination.
Distance vector routing is an asynchronous algorithm in which node x sends the copy of its distance
vector to all its neighbors. When node x receives the new distance vector from one of its
neighboring vector, v, it saves the distance vector of v and uses the Bellman-Ford equation to
update its own distance vector. The equation is given below:
Algorithm
At each node x,
Initialization
Sharing Information
o In the above figure, each cloud represents the network, and the number inside the cloud represents
the network ID.
o All the LANs are connected by routers, and they are represented in boxes labeled as A, B, C, D, E,
F.
o Distance vector routing algorithm simplifies the routing process by assuming the cost of every link
is one unit. Therefore, the efficiency of transmission can be measured by the number of links to
reach the destination.
o In Distance vector routing, the cost is based on hop count.
In the above figure, we observe that the router sends the knowledge to the immediate neighbors.
The neighbors add this knowledge to their own knowledge and sends the updated table to their
own neighbors. In this way, routers get its own information plus the new information about the
neighbors.
Routing Table
Two process occurs:
o Creating the Table
o Updating the Table
o NET ID: The Network ID defines the final destination of the packet.
o Cost: The cost is the number of hops that packet must take to get there.
o Next hop: It is the router to which the packet must be delivered.
o In the above figure, the original routing tables are shown of all the routers. In a routing table, the
first column represents the network ID, the second column represents the cost of the link, and the
third column is empty.
o These routing tables are sent to all the neighbors.
For Example:
1. A sends its routing table to B, F & E.
2. B sends its routing table to A & C.
3. C sends its routing table to B & D.
4. D sends its routing table to E & C.
5. E sends its routing table to A & D.
6. F sends its routing table to A.
Updating the Table
o When A receives a routing table from B, then it uses its information to update the table.
o The routing table of B shows how the packets can move to the networks 1 and 4.
o The B is a neighbor to the A router, the packets from A to B can reach in one hop. So, 1 is added
to all the costs given in the B's table and the sum will be the cost to reach a particular network.
o After adjustment, A then combines this table with its own table to create a combined table.
o The combined table may contain some duplicate data. In the above figure, the combined
table of router A contains the duplicate data, so it keeps only those data which has the
lowest cost. For example, A can send the data to network 1 in two ways. The first, which
uses no next router, so it costs one hop. The second requires two hops (A to B, then B to
Network 1). The first option has the lowest cost, therefore it is kept and the second one is
dropped.
o The process of creating the routing table continues for all routers. Every router receives the
information from the neighbors, and update the routing table.
Link State Routing
Link state routing is a technique in which each router shares the knowledge of its neighborhood
with every other router in the internetwork.
The three keys to understand the Link State Routing algorithm:
o Knowledge about the neighborhood: Instead of sending its routing table, a router sends the
information about its neighborhood only. A router broadcast its identities and cost of the directly
attached links to other routers.
o Flooding: Each router sends the information to every other router on the internetwork except its
neighbors. This process is known as Flooding. Every router that receives the packet sends the copies
to all its neighbors. Finally, each and every router receives a copy of the same information.
o Information sharing: A router sends the information to every other router only when the change
occurs in the information.
Algorithm
Initialization
N = {A} // A is a root node.
for all nodes v
if v adjacent to A
then D(v) = c(A,v)
else D(v) = infinity
loop
find w not in N such that D(w) is a minimum.
Add w to N
Update D(v) for all v adjacent to w and not in N:
D(v) = min(D(v) , D(w) + c(w,v))
Until all nodes in N
In the above algorithm, an initialization step is followed by the loop. The number of times the loop
is executed is equal to the total number of nodes available in the network.
Step 1:
The first step is an initialization step. The currently known least cost path from A to its directly
attached neighbors, B, C, D are 2,5,1 respectively. The cost from A to B is set to 2, from A to D is
set to 1 and from A to C is set to 5. The cost from A to E and F are set to infinity as they are not
directly linked to A.
Step 2:
In the above table, we observe that vertex D contains the least cost path in step 1. Therefore, it is
added in N. Now, we need to determine a least-cost path through D vertex.
a) Calculating shortest path from A to B
1. v = B, w = D
2. D(B) = min( D(B) , D(D) + c(D,B) )
3. = min( 2, 1+2)>
4. = min( 2, 3)
5. The minimum value is 2. Therefore, the currently shortest path from A to B is 2.
b) Calculating shortest path from A to C
1. v = C, w = D
2. D(B) = min( D(C) , D(D) + c(D,C) )
3. = min( 5, 1+3)
4. = min( 5, 4)
5. The minimum value is 4. Therefore, the currently shortest path from A to C is 4.</p>
c) Calculating shortest path from A to E
1. v = E, w = D
2. D(B) = min( D(E) , D(D) + c(D,E) )
Step 3:
In the above table, we observe that both E and B have the least cost path in step 2. Let's consider
the E vertex. Now, we determine the least cost path of remaining vertices through E.
1. v = B, w = E
2. D(B) = min( D(B) , D(E) + c(E,B) )
3. = min( 2 , 2+ ∞ )
4. = min( 2, ∞)
5. The minimum value is 2. Therefore, the currently shortest path from A to B is 2.
1. v = C, w = E
2. D(B) = min( D(C) , D(E) + c(E,C) )
3. = min( 4 , 2+1 )
4. = min( 4,3)
5. The minimum value is 3. Therefore, the currently shortest path from A to C is 3.
1. v = F, w = E
2. D(B) = min( D(F) , D(E) + c(E,F) )
3. = min( ∞ , 2+2 )
4. = min(∞ ,4)
5. The minimum value is 4. Therefore, the currently shortest path from A to F is 4.
Step N D(B),P(B) D(C),P(C) D(D),P(D) D(E),P(E) D(F),P(F)
Step 4:
In the above table, we observe that B vertex has the least cost path in step 3. Therefore, it is added
in N. Now, we determine the least cost path of remaining vertices through B.
a) Calculating the shortest path from A to C.
1. v = C, w = B
2. D(B) = min( D(C) , D(B) + c(B,C) )
3. = min( 3 , 2+3 )
4. = min( 3,5)
5. The minimum value is 3. Therefore, the currently shortest path from A to C is 3.
1. v = F, w = B
2. D(B) = min( D(F) , D(B) + c(B,F) )
3. = min( 4, ∞)
4. = min(4, ∞)
5. The minimum value is 4. Therefore, the currently shortest path from A to F is 4.
5 ADEBC 4,E
Final table:
Step N D(B),P(B) D(C),P(C) D(D),P(D) D(E),P(E) D(F),P(F)
5 ADEBC 4,E
6 ADEBCF
Disadvantage:
Heavy traffic is created in Line state routing due to Flooding. Flooding can cause an infinite
looping, this problem can be solved by using Time-to-leave field
RIP Protocol
RIP stands for Routing Information Protocol. RIP is an intra-domain routing protocol used within
an autonomous system. Here, intra-domain means routing the packets in a defined domain, for
example, web browsing within an institutional area. To understand the RIP protocol, our main
focus is to know the structure of the packet, how many fields it contains, and how these fields
determine the routing table.
Before understanding the structure of the packet, we first look at the following points:
o RIP is based on the distance vector-based strategy, so we consider the entire structure as a graph
where nodes are the routers, and the links are the networks.
o In a routing table, the first column is the destination, or we can say that it is a network address.
o The cost metric is the number of hops to reach the destination. The number of hops available in a
network would be the cost. The hop count is the number of networks required to reach the
destination.
o In RIP, infinity is defined as 16, which means that the RIP is useful for smaller networks or small
autonomous systems. The maximum number of hops that RIP can contain is 15 hops, i.e., it should
not have more than 15 hops as 16 is infinity.
o The next column contains the address of the router to which the packet is to be sent to reach the
destination.
suppose R1 wants to send the data to R4. There are two possible routes to send data from r1 to r2.
As both the routes contain the same number of hops, i.e., 3, so RIP will send the data to both the
routes simultaneously. This way, it manages the load balancing, and data reach the destination a
bit faster.
Disadvantages of RIP
The following are the disadvantages of RIP:
o In RIP, the route is chosen based on the hop count metric. If another route of better bandwidth is
available, then that route would not be chosen. Let's understand this scenario through an example.
We can observe that Route 2 is chosen in the above figure as it has the least hop count. The Route
1 is free and data can be reached more faster; instead of this, data is sent to the Route 2 that makes
the Route 2 slower due to the heavy traffic. This is one of the biggest disadvantages of RIP.
o The RIP is a classful routing protocol, so it does not support the VLSM (Variable Length Subnet
Mask). The classful routing protocol is a protocol that does not include the subnet mask information
in the routing updates.
o It broadcasts the routing updates to the entire network that creates a lot of traffic. In RIP, the routing
table updates every 30 seconds. Whenever the updates occur, it sends the copy of the update to all
the neighbors except the one that has caused the update. The sending of updates to all the neighbors
creates a lot of traffic. This rule is known as a split-horizon rule.
o It faces a problem of Slow convergence. Whenever the router or link fails, then it often takes
minutes to stabilize or take an alternative route; This problem is known as Slow convergence.
o RIP supports maximum 15 hops which means that the maximum 16 hops can be configured in a
RIP
o The Administrative distance value is 120 (Ad value). If the Ad value is less, then the protocol is
more reliable than the protocol with more Ad value.
o The RIP protocol has the highest Ad value, so it is not as reliable as the other routing protocols.
The routers configured with RIP send their updates to all the neighboring routers every 30 seconds.
o RIP Invalid timer : 180 sec
The RIP invalid timer is 180 seconds, which means that if the router is disconnected from the
network or some link goes down, then the neighbor router will wait for 180 seconds to take the
update. If it does not receive the update within 180 seconds, then it will mark the particular route
as not reachable.
o RIP Flush timer : 240 sec
The RIP flush timer is 240 second which is almost equal to 4 min means that if the router does not
receive the update within 240 seconds then the neighbor route will remove that particular route
from the routing table which is a very slow process as 4 minutes is a long time to wait.
Advantages of RIP
The following are the advantages of a RIP protocol:
o It is easy to configure
o It has less complexity
o The CPU utilization is less.
OSPF Protocol
The OSPF stands for Open Shortest Path First. It is a widely used and supported routing
protocol. It is an intradomain protocol, which means that it is used within an area or a network. It
is an interior gateway protocol that has been designed within a single autonomous system. It is
based on a link-state routing algorithm in which each router contains the information of every
domain, and based on this information, it determines the shortest path. The goal of routing is to
learn routes. The OSPF achieves by learning about every router and subnet within the entire
network. Every router contains the same information about the network. The way the router learns
this information by sending LSA (Link State Advertisements). These LSAs contain information
about every router, subnet, and other networking information. Once the LSAs have been flooded,
the OSPF stores the information in a link-state database known as LSDB. The main goal is to have
the same information about every router in an LSDBs.
OSPF divides the autonomous systems into areas where the area is a collection of networks, hosts,
and routers. Like internet service providers divide the internet into a different autonomous system
for easy management and OSPF further divides the autonomous systems into Areas.
Routers that exist inside the area flood the area with routing information
In Area, the special router also exists. The special routers are those that are present at the border
of an area, and these special routers are known as Area Border Routers. This router summarizes
the information about an area and shares the information with other areas.
All the areas inside an autonomous system are connected to the backbone routers, and these
backbone routers are part of a primary area. The role of a primary area is to provide communication
between different areas.
How does OSPF work?
There are three steps that can explain the working of OSPF:
Step 1: The first step is to become OSPF neighbors. The two connecting routers running OSPF on
the same link creates a neighbor relationship.
Step 2: The second step is to exchange database information. After becoming the neighbors, the
two routers exchange the LSDB information with each other.
Step 3: The third step is to choose the best route. Once the LSDB information has been exchanged
with each other, the router chooses the best route to be added to a routing table based on the
calculation of SPF.
Two routers connected to each other through point to point or multiple routers are connected can
communicate with each other through an OSPF protocol. The two routers are adjacent only when
both the routers send the HELLO packet to each other. When both the routers receive the
acknowledgment of the HELLO packet, then they come in a two-way state. As OSPF is a link state
routing protocol, so it allows to create the neighbor relationship between the routers. The two
routers can be neighbors only when they belong to the same subnet, share the same area id, subnet
mask, timers, and authentication. The OSPF relationship is a relationship formed between the
routers so that they can know each other. The two routers can be neighbors if atleast one of them
is designated router or backup designated router in a network, or connected through a point-to-
point link.
1. Hello packet
The Hello packet is used to create a neighborhood relationship and check the neighbor's
reachability. Therefore, the Hello packet is used when the connection between the routers need to
be established.
2. Database Description
After establishing a connection, if the neighbor router is communicating with the system first time,
it sends the database information about the network topology to the system so that the system can
update or modify accordingly.
T he link-state request is sent by the router to obtain the information of a specified route. Suppose
there are two routers, i.e., router 1 and router 2, and router 1 wants to know the information about
the router 2, so router 1 sends the link state request to the router 2. When router 2 receives the link
state request, then it sends the link-state information to router 1.
4. Link state update
The link-state update is used by the router to advertise the state of its links. If any router wants to
broadcast the state of its links, it uses the link-state update.
5. Link state acknowledgment
The link-state acknowledgment makes the routing more reliable by forcing each router to send the
acknowledgment on each link state update. For example, router A sends the link state update to
the router B and router C, then in return, the router B and C sends the link- state acknowledgment
to the router A, so that the router A gets to know that both the routers have received the link-state
update.
OSPF States
The device running the OSPF protocol undergoes the following states:
o Down: If the device is in a down state, it has not received the HELLO packet. Here, down does not
mean that the device is physically down; it means that the OSPF process has not been started yet.
o Init: If the device comes in an init state, it means that the device has received the HELLO packet
from the other router.
o 2WAY: If the device is in a 2WAY state, which means that both the routers have received the
HELLO packet from the other router, and the connection gets established between the routers.
o Exstart: Once the exchange between the routers get started, both the routers move to the Exstart
state. In this state, master and slave are selected based on the router's id. The master controls the
sequence of numbers, and starts the exchange process.
o Exchange: In the exchange state, both the routers send a list of LSAs to each other that contain a
database description.
o Loading: On the loading state, the LSR, LSU, and LSA are exchanged.
o Full: Once the exchange of the LSAs is completed, the routers move to the full state.
Router attributes
Before going to the Extract state, OSPF chooses one router as a Designated router and another
router as a backup designated router. These routers are not the type, but they are the attributes of
a router. In the case of broadcast networks, the router selects one router as a designated router and
another router as a backup designated router. The election of designated and the backup designated
router is done to avoid the flooding in a network and to minimize the number of adjacencies. They
serve as a central point for exchanging the routing information among all the routers. Since point-
to-point links are directly connected, so DR and BDR are not elected.
If DR and BDR are not elected, the router will send the update to all the adjacent neighbors, leading
to the flooding in a network. To avoid this problem, DR and BDR are elected. Each non-DR and
non-BDR send the update only to the DR and BDR instead of exchanging it with other routers in
a network segment. DR then distributes the network topology information to other routers in the
same area whereas the BDR serves a substitute for the DR. The BDR also receives the routing
information from all the router but it does not distribute the information. It distributes the
information only when the DR fails.
The multicast address [Link] is used by the non-DR and non-BDR to send the routing
information to the DR and BDR. The DR and BDR send the routing information to the multicast
address [Link].
Based on the following rules, the DR and BDR are elected:
o The router with the highest OSPF priority is chosen as the DR. By default, the highest priority is
set as 1.
o If there is no highest priority, then the router with the highest router Id is chosen as the DR, and the
router with the second-highest priority is chosen as the BDR.
network switch
The Switch is a network device that is used to segment the networks into different
subnetworks called subnets or LAN segments. It is responsible for filtering and forwarding
the packets between LAN segments based on MAC address.
Switches have many ports, and when data arrives at any port, the destination address is
examined first and some checks are also done and then it is processed to the devices.
Different types of communication are supported here like unicast, multicast, and broadcast
communication.
Switches are networking devices operating at layer 2 or a data link layer of the
OSI model. They connect devices in a network and use packet switching to send,
receive or forward data packets or data frames over the network.
A switch has many ports, to which computers are plugged in. When a data frame
arrives at any port of a network switch, it examines the destination address,
performs necessary checks and sends the frame to the corresponding device(s).
It supports unicast, multicast as well as broadcast communications.
Types of Switches
Switches are mainly classified into the following types that are mentioned below.
● Virtual Switches: Virtual Switches are the switches that are inside Virtual Machine
hosting environments.
● Routing Switches: These are the switches that are used to connect [Link] also
have the work of performing functions in the Network Layer of the OSI Model.
● Unmanaged Switches: Unmanaged Switches are the devices that are used to enable
Ethernet devices that help in automatic data passing. These are generally used for home
networks and small businesses. In case of the requirement of more switches, we just
add more switches by plug and play method.
● Managed Switches: Managed Switches are switches having more complex networks.
SNMP (Simple Network Management Protocol) can be used for configuring managed
switches. These types of switches are mostly used in large networks having complex
architecture. They provide better security levels and precision control but they are more
costly than Unmanaged switches.
● LAN Switches: LAN (Local Area Network) Switches are also called ethernet switches
or data switches. LAN switches always try to avoid overlapping of data packets in the
network just by allocating bandwidth in such a manner.
● PoE Switches: Power over Ethernet(PoE) are the switches used in Gigabit Ethernets.
PoE help in combining data and power transmission over the same cable so that it helps
in receiving data and electricity over the same line.
● Smart Switches: Smart Switches are switches having some extra controls on data
transmissions but also have extra limitations over managed Switches. They are also
called partially managed switches.
● Stackable Switches: Stackable switches are connected through a backplane to combine
two logical switches into a single switch.
● Modular Switches: These types of switches help in accommodating two or more cards.
Modular switches help in providing better flexibility.
Network Switch works on Layer 2 of the OSI The router is primarily a device of
Model. Layer 3 of the OSI Model.
Switches only work in a Wired network Router works with both wired and
connection. wifi networks.
Switches use MAC Addresses for transferring data Routers use IP Addresses for the
to the proper destination. same work.
Network Switch is a device of layer 2 of the OSI Hub is a physical device of Layer 1 of
Model. the OSI Model.
Network Switch is a little more complex than a Hub is a simple device as compared to
Hub. Network Switch.
Network Switch easily manages data in and out, Communication Collisions usually
hence less communication collision. happen in a Hub.
Network Switches transfer data together by The main task of Hub is to connect all
connecting devices. nodes of the network.
Switches prevent collision with the help Hubs cannot help in preventing
of Ethernet frames. collisions.
Advantages of Switches
● Prevents traffic overloading in a network by segmenting the network into smaller
subnets.
● Increases the bandwidth of the network.
● Less frame collision as the switch creates the collision domain for each connection.
Disadvantages of Switches
● It can not stop traffic destined for a different LAN segment from traveling to all other
LAN segments.
● Switches are more expensive.
Path-Vector Routing
RIP (Routing Information Protocol) and OSPF (Open Shortest Path First) are not applicable for
interdomain routing protocols. Distance vector routing can send data to each of a router’s
neighbours, and then every router develops up a routing database. Routing is not familiar with the
identity of routers in any specific direction.
Every router sends its connection cost to all various routers and then starts routing computations.
Two problems can emerge in link-state routing. First, different independent systems can use
multiple costs and have multiple drawbacks.
The link-state protocol enables a router to create the topology, and its metrics can be different for
each independent system. In this method, it is impossible to generate a reliable routing algorithm.
Second, when flood routing appears, the use of an interdomain routing protocol across the
independent system can be ambiguous.
Types
The types of BGP are as follows −
Internal BGP
Routes are exchanged, and traffic is transmitted over the Internet using external BGP or eBGP.
Autonomous systems can also use an internal BGP version to route through their internal
networks, known as internal BGP.
It should be noted that using internal BGP is NOT a requirement for using external BGP.
Autonomous systems can choose from several internal protocols to connect the routers on their
internal network.
External BGP
External BGP is like international shipping; some specific standards and guidelines need to be
followed when shipping a piece of mail internationally. Once that piece of mail reaches its
destination country, it has to go through its local mail service to reach its final destination.
Each country has its internal mail service that doesn’t necessarily follow the same guidelines as
other countries. Similarly, each autonomous system can have its internal routing protocol for
routing data within its network.
●
●
●
IPv6 was developed by Internet Engineering Task Force (IETF) to deal with the problem
of IPv4 exhaustion. IPv6 is a 128-bits address having an address space of 2128, which is way
bigger than IPv4. IPv6 use Hexa-Decimal format separated by colon (:) .
Addressing methods
1. Unicast Address
Unicast Address identifies a single network interface. A packet sent to a unicast address is
delivered to the interface identified by that address.
2. Multicast Address
Multicast Address is used by multiple hosts, called as groups, acquires a multicast
destination address. These hosts need not be geographically together. If any packet is sent
to this multicast address, it will be distributed to all interfaces corresponding to that
multicast address. And every node is configured in the same way. In simple words, one
data packet is sent to multiple destinations simultaneously.
3. Anycast Address
Anycast Address is assigned to a group of interfaces. Any packet sent to an anycast address
will be delivered to only one member interface (mostly nearest host possible).
Note: Broadcast is not defined in IPv6.
Types of IPv6 address:
We have 128 bits in IPv6 address but by looking at the first few bits we can identify what
type of address it is.
0000 01 UA 1/64
0000 1 UA 1/32
0001 UA 1/16
010 UA 1/8
011 UA 1/8
100 UA 1/8
101 UA 1/8
Prefix Allocation Fraction of Address Space
110 UA 1/8
1110 UA 1/16
1111 0 UA 1/32
1111 10 UA 1/64
Note: In IPv6, all 0’s and all 1’s can be assigned to any host, there is not any restriction
like IPv4.
Provider-based Unicast address :
These are used for global communication.
The First 3 bits identify it as of this type.
Registry Id (5-bits): Registry Id identifies the region to which it belongs. Out of 32 (i.e.
2^5), only 4 registry IDs are being used.
Provider Id: Depending on the number of service providers that operate under a region,
certain bits will be allocated to the Provider Id field. This field need not be fixed. Let’s say
if Provider Id = 10 bits then Subscriber Id will be 56 – 10 = 46 bits.
Subscriber Id: After Provider Id is fixed, the remaining part can be used by ISP as a
normal IP address.
Intra Subscriber: This part can be modified as per the need of the organization that is
using the service.
Geography based Unicast address :
Global routing prefix: Global routing prefix contains all the details of Latitude and
Longitude. As of now, it is not being used. In Geography-based Unicast address routing
will be based on location.
Interface Id: In IPv6, instead of using Host Id, we use the term Interface Id.
Some special addresses:
Unspecified
Loopback
IPv4 Compatible
IPv4 mapped
Site local addresses are equivalent to a private IP address in IPv4. Likely, some address
space is reserved, which can only be routed within an organization. The first 10-bits are set
to 1111111011, which is why Site local addresses always begin with FEC0. The following
32 bits are Subnet IDs, which can be used to create a subnet within the organization. The
node address is used to uniquely identify the link; therefore, we use a 48-bits MAC address
here.
Advantages of IPv6:
1. Realtime Data Transmission : Realtime data transmission refers to the process of
transmitting data in a very fast manner or immediately. Example : Live streaming services
such as cricket matches, or other tournament that are streamed on web exactly as soon as
it happens with a maximum delay of 5-6 seconds.
2. IPv6 supports authentication: Verifying that the data received by the receiver from the
sender is exactly what the sender sent and came through the sender only not from any third
party. Example : Matching the hash value of both the messages for verification is also done
by IPv6.
3. IPv6 performs Encryption: Ipv6 can encrypt the message at network layer even if the
protocols of application layer at user level didn’t encrypt the message which is a major
advantage as it takes care of encryption.
4. Faster processing at Router: Routers are able to process data packets of Ipv6 much
faster due to smaller Base header of fixed size – 40 bytes which helps in decreasing
processing time resulting in more efficient packet transmission. Whereas in Ipv4, we have
to calculate the length of header which lies between 20-60 bytes.
MULTICAST ADDRESS:
A multicast address is a specific type of IP address labeling a network location that is used to
multicast data packets within a network. It stands in contrast to other IP addresses that only allow
for unicast models.
Multicast is a method of group communication where the sender sends data to multiple
receivers or nodes present in the network simultaneously. Multicasting is a type of one-to-
many and many-to-many communication as it allows sender or senders to send data packets
to multiple receivers at once across LANs or WANs. This process helps in minimizing the
data frame of the network because at once the data can be received by multiple nodes.
Multicasting is considered as the special case of broadcasting [Link] works in similar to
Broadcasting, but in Multicasting, the information is sent to the targeted or specific
members of the network. This task can be accomplished by transmitting individual copies
to each user or node present in the network, but sending individual copies to each user is
inefficient and might increase the network latency. To overcome these shortcomings,
multicasting allows a single transmission that can be split up among the multiple users,
consequently, this reduces the bandwidth of the signals.
Applications : Multicasting is used in many areas like:
1. Internet protocol (IP)
2. Streaming Media
3. It also supports video conferencing applications and webcasts.
– Multicasting use classful addressing of IP address of class – D which ranges
from [Link] to [Link]
IP Multicast : Multicasting that takes place over the Internet is known as IP Multicasting.
These multicast follow the internet protocol(IP) to transmit data. IP multicasting uses a
mechanism known as ‘Multicast trees’ to transmit to information among the users of the
network. Multicast trees; allows a single transmission to branch
out to the desired receivers. The branches are created at the Internet routers, the branches
are created such that the length of the transmission will be minimum.
IP multicasts also use two other essential protocols to function; Internet Group
Management Protocol (IGMP), Protocol Independent Multicast (PIM). IGMP allows the
recipients to access the data or information i.e if any host wants to receive the message that
is going to be multicasted, they must join the group using this protocol. The network routers
use PIM to create multicast trees. To sum up, Multicasting is an efficient way of
communication; it reduces the bandwidth usage and is used when a message is to be sent
to a large number of selected individuals.
MULTICAST DVMRP:
The Distance Vector Multicast Routing Protocol (DVMRP), defined in RFC
1075, is a routing protocol used to share information between routers to
facilitate the transportation of IP multicast packets among networks.
The distance vector multicast routing protocol is multicast routing protocol that takes the routing
decision based upon the source address of the packet.
• This algorithm constructs the routing tree for a network.
• Whenever a router receives a packet, it forwards it to some of its ports based on the source
address of packet.
. The rest of the routing tree is made by downstream routers.
• routing tree is created from destination to source.
The protocol must achieve the following tasks:
1. It must prevent the formation of loops in the network.
2. It must prevent the formation of duplicate packets.
3. It must ensure that the path traveled by a packet is the shortest from its source to the router.
4. It should provide dynamic membership.
To accomplish this, the DVMR algorithm uses a process based on following decision making
strategies:
● 1. Reverse Path Forwarding (RPF)
● 2. Reverse Path Broadcasting (RPB)
● 3. Reverse Path Multicasting (RPM)
● 4. Multicast Open Shortest Path First (MOSPF)
• In this strategy, the router only forwards those packets that have traveled the shortest path from
source to destination.
• To achieve this, the router pretends that it has a packet to send to the source from where the
packet has arrived.
• In this way, the shortest path to the sender of the packet is computed.
• If the same route is followed by the received packet, it is forwarded to the next router and it is
discarded otherwise.
• The reverse path forwarding ensures that the network receives a copy of the packet without
formation of loops. A loop occurs when a packet that has left the router may come back again
from another interface or the same interface and be forwarded again.
• RPF does not guarantee that there would be no duplicate packets in the network i.e. the network
may receive two or more copies.
• The reason for this is that the routing is based on the source address and not on the destination
address.
• Multicast open shortest path first is the multicast version of open shortest path first protocol.
• It is an extension of OSPF that uses multicast link state routing method to create source based
trees.
• The method used by MOSPF is different from DVMRP.
• The first difference is· that in this method, the tree is least cost tree instead of shortest path tree.
• The second .difference is that the tree is not made gradually. It is made immediately it is
prepruned and ready to use.
MULTICAST PIM:
Protocol-Independent Multicast (PIM) is a family of multicast routing
protocols for Internet Protocol (IP) networks that provide one-to-many and
many-to-many distribution of data over a LAN, WAN or the Internet.
Protocol Independent Multicast or PIM is a group of multicast routing protocols designed for
specific network environments. To forward our IP multicast traffic, we need to use a multicast
routing protocol. PIM Multicast is the only multicast routing protocol that Cisco IOS devices fully
support. PIM can determine the path between the source and receivers using a particular unicast
routing protocol.
Distribution Trees
Multicast routers specify the path that IP multicast packet takes through the network to reach the
receivers by creating distribution trees. Source trees, also known as Shortest-Path Tree (SPT), and
Shared Tree are the two basic types of multicast distribution trees.
Source Tree – A source tree is a multicast distribution tree in which the source is the root and
branches extend down the network to the receivers. When this tree is formed, it takes the shortest
path possible through the network from the source to the tree’s leaves; thus, it is also known as
the Shortest-Path Tree (SPT).
Shared Tree – A shared tree is a multicast distribution tree in which the root is the Rendezvous
Point (RP), rather than the source. As a result, a shared tree is sometimes referred to as an RP
Tree (RPT). Regardless of the source address, multicast forwarding is according to the multicast
group address to which the packets are addressed.
Wasted bandwidth is one drawback of Shared Tree since shared trees can allow multiple sources
in an IP multicast group. It is also a potential security risk since unintended sources can send
unwanted packets to receivers.
PIM dense mode (PIM-DM) is a push model where we flood all interfaces with multicast packets
except for routers that have no directly connected members or PIM neighbors.
On the other hand, PIM sparse mode (PIM-SM) is a pull model wherein we only send multicast
traffic when requested. A Rendezvous Point or RP router serves as a point of contact for multicast
senders and receivers.
Internet Group Management Protocol (IGMP) – The protocol used by receivers to connect to
multicast groups and begin receiving traffic from them.
Prune Message – Message sent to RP to inform other routers in the path that they can disable
multicast traffic forwarding for a particular group.
RPF or Reverse Path Forwarding – PIM will only accept multicast packets on an interface that
we use to reach the source. RPF failure is when we drop multicast packets that we receive on an
interface that we don’t use to reach the source.