×

Unicast Routing Protocol

Unicast Routing Protocol: Unicast is a point to point communication arrangement that only occurs between the sender and receiver.

Routing Information Protocol

RIP is an open standard protocol that can work with any company's router. RIP is a classful routing protocol; therefore, it does not support VLSM (variable length subnet mask).

The RIP is a distance-vector protocol. It is used in small networks. In this, the hop count is used as a matrix to determine the most appropriate path (s). So that data packets may reach the destination from that path. In this protocol, the maximum number of hops count can only be up to 15. The hop count 16 is considered infinite. The hop count 16 is used to indicate networks that cannot be accessed.

Note: It uses UDP port 250 for the routings table updates.

Distance Vector Routing

Let take an example to understand the distance-vector routing protocol better.

In this example, is a network consisting of four routers A, B, C, and D. The weights are shown in the edges. And the weights could be distances or costs or delays.

Unicast Routing Protocol

Step 1: Every router prepares its routing table using its information. Every table of the router is shown below.

At Router A

DestinationDistanceNext Hop
A0A
B2B
C8C
D1D

At Router B

DestinationDistanceNext Hop
A2A
B0B
C5C
DInfinite-

At Router C

DestinationDistanceNext Hop
A8A
B5B
C0C
D3D

At Router D

DestinationDistanceNext Hop
A1A
BInfinite-
C3C
D0D

Step 2:

  • Every router shares its distance vector with its neighbors obtained in Step-01.
  • Every router prepares a new routing table after exchanging of distance vectors.

At Router A new table:

Unicast Routing Protocol

Cost (A -- B) = 2            Cost (A -- C) = 8            Cost (A -- D) = 1

Cost of reaching destination

B from router A = min {2+0, 8+5, 1+?} = 2 via B.

C from router A = min {2+5, 8+0, 1+3} = 4 via C.

D from router A = min {2+?, 8+3, 1+0} = 1 via D.

DestinationDistanceNext Hop
A0A
B2B
C4D
D1D

At Router B new table:

Unicast Routing Protocol

Cost (B -- A) = 2         Cost (B -- C) = 5 

Cost of reaching destination

A from router B = min {2+0, 5+8} = 2 via A.

C from router B = min {2+8, 5+0} = 5 via C.

D from router B = min {2+1, 5+3} = 3 via D.

DestinationDistanceNext Hop
A2A
B0B
C5C
D3A

At Router C new table:

Unicast Routing Protocol

Cost (C -- A) = 8            Cost (C -- B) = 5            Cost (C -- D) = 3

Cost of reaching destination

A from router C = min {8+0, 5+2, 3+1} = 4 via A.

B from router C = min {8+2, 5+0, 3+?} = 5 via B.

D from router C = min {8+1, 5+?, 3+0} = 3 via D.

DestinationDistanceNext Hop
A4D
B5B
C0C
D3A

At Router D new table:

Unicast Routing Protocol

Cost (D -- A) = 1      Cost (D -- C) = 3

Cost of reaching destination

A from router D = min {1+0, 3+8} = 1 via A.

B from router D = min {1+2, 3+5} = 3 via B.

C from router D = min {1+8, 3+0} = 3 via D.

DestinationDistanceNext Hop
A1A
B3A
C3C
D0D

Final routing tables of every router.

Open Shortest Path First

OSPF is a Link-State routing protocol. It uses SPF (shortest path first) or dikistra algorithm. It is a classless routing protocol; therefore, it supports VLSM (variable length subnet mask). OSPF is a dynamic protocol that takes information (data) from its nearest routers and passes that information to all other routers.


Related Topics

Transmission Mode (Data Flow)

Introduction The exchange of information between two people via a wired or wireless medium is referred to as communication. The OSI (Open System Interconnection) model of computer networks consists of seven...

6 minutes read.

Difference between Active and Passive FTP

What is FTP? FTP stands for File Transfer Protocol. It is a type of protocol that is used for transferring files over a network. FTP uses the TCP-based protocol. For a...

3 minutes read.

Data link layer in OSI model

This article will help you in getting a good understanding of the topic called the Data link layer in the OSI model. It is the second bottom most layer in the...

3 minutes read.

What is Computer Network?

 A computer network is a collection of interconnected devices, such as computers, servers, routers, and switches, that are connected together to share resources and exchange data. These devices use a...

6 minutes read.

Differences between IPv4 and IPv6

Introduction In this tutorial, we will discuss the basic differences between IPv4 and IPv6 protocols. Definition of Internet Protocols Vint Cerf and Bob Kahn's initial Transmission Control Program had a connectionless datagram service...

4 minutes read.

Classes of Routing Protocols

In this tutorial, we will discuss about the classes of the routing protocols. Routing: What is it? Routing in computer networks is a procedure in which the layer 3 or network layer...

7 minutes read.

Working of ARP

The majority of computer programmes and applications send and receive messages using logical addresses (IP addresses), but the actual communication takes place over physical addresses (MAC addresses), which is found...

4 minutes read.

APIPA: Automatic Private IP Addressing

What is APIPA? APIPA stands for Automatic Private IP Addressing. It is a word used by Microsoft to describe address auto configuration, which enables a Local Area Network (LAN) computer to...

3 minutes read.

Data Link Control

Data Link Control Data-link control is the main function of the data link layer. It deals with the configuration and coordination for connection between two neighboring nodes: node-to-node communication. The task...

10 minutes read.

Unicast Routing Protocol

Unicast Routing Protocol: Unicast is a point to point communication arrangement that only occurs between the sender and receiver. Routing Information Protocol RIP is an open standard protocol that can work with...

3 minutes read.

Process-to-Process Delivery

Process-to-Process Delivery: A transport-layer protocol's first task is to perform process-to-process delivery. A process is an entity of the application layer which uses the services of the transport layer. Two...

2 minutes read.

Define Framing in Computer Network

Framing is a function of the data link layer, which provides a way for a sender to transmit a set of bits that should be meaningful to the user. The...

7 minutes read.

Basic Networking Devices

Introduction Physical components, or network devices, allow hardware on a computer network to link and convey with one another. Network equipment such as switches, routers, gateways, hubs, repeaters, bridges, and routers...

6 minutes read.

Integrated Services Digital Network (ISDN)

Integrated Services Digital Network (ISDN): ISDN means Integrated Services Digital Network. ISDN was developed by ITU-T in the 1980s. These are digital telephony and data transport services offered by regional...

3 minutes read.

Method of Joining and Fusion of Fiber Optic Cable

What is Fiber Optics Cable? Fiber optics cable transforms the information at a light pulse. We can transfer voice, data, and video through the fiber optics cable. The fiber optics cable...

3 minutes read.

Two Port Network in Computer Networks

A Two Port Network is a four-terminal electric network or circuit with 2 terminals on both sides, each connecting with more circuits or devices. Two terminals together make a port, one...

5 minutes read.

Decoding in Communication Process

The use of codes is necessary for all forms of communication. The sender, transmitter, and receiver are the three major components of more conventional communication paradigms. The sender is in...

4 minutes read.

Computer Network Switching

Switching Many numbers of connected devices are called the network. Whenever a company has multiple devices, there has a problem of how to connected them to make the one to one...

5 minutes read.

Advantages and Disadvantages of LAN

Before we move to advantages and disadvantages of LAN, first we discuss about what is LAN. Local area network is referred to by its abbreviation, LAN. A system that connects PCs...

3 minutes read.

TCP

TCP is a transport layer protocol that helps to establish connections. TCP means Transmission Control Protocol. It guarantees secure data transmission between two network-connected devices. The data can only be...

5 minutes read.