×

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

Hamming Code Example

What is Hamming Code? Hamming code is an error-detecting and error-correcting code used in computer data storage and transmission to detect and correct errors caused by noise, interference, or data corruption....

4 minutes read.

Star Topology in Computer Networks

Star topology comes from or is a part of the network topology which was invented by Dr.Howard Frank. It is also to be known as star network because of its...

4 minutes read.

Uses of Computer Networks

During the twentieth century, the most significant technology is information collecting, processing, and distribution. Computers and communications have been integrated, which has considerably influenced the organization of computer systems. The previous...

6 minutes read.

4G Mobile Communication Technology

What is 4G? 4G is a fourth-generation wireless or mobile communication system, succeeding 3G (third generation) wireless communication and preceding 5G (fifth generation) communication. It is based on the capabilities defined by...

4 minutes read.

Fiber Optics and its Types

Fiber Optics is a type of technology that is used to transfer data through the cable with the speed of light. The metal wire is preferred for the transmission of...

3 minutes read.

Advantages and Disadvantages of WAN

Before we move to advantages and disadvantages of WAN, first we discuss about what is WAN and what are its features. A wide area network is a vast network of information...

4 minutes read.

Aloha

Aloha Norman Abramson and his colleagues were developed aloha at the University of Hawaii in the 1970s. ALOHA is a Multiple Access Protocol which is used for random access in the...

3 minutes read.

FTP: File Transfer Protocol

File Transfer Protocol File transfer protocol is commonly called FTP. The most popular service of the Internet is to download the files. In other words, it is to transfer the files...

3 minutes read.

E-mail in Computer Network

E-mail E-mail stands for electronic mail. E-mail is an application layer service in which a user can transfer the messages and information with another user. E-mail is the most popular service...

2 minutes read.

Error Correction and Error Detection

Error Correction and Error Detection Error correction and error detection techniques are work on the data-link layer. The data link layer ensures the frames are sent from the sender to the...

16 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.

Multiple Access Control

Multiple Access Control: The data link layer is separated into two sub-layers. The upper sub-layer is responsible for flow control and error control that is called the logical link control...

5 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.

Application Layer in OSI Model

This article will help you in getting a better understanding of the Application layer in the OSI model. It is the uppermost layer in the OSI Model. The application layer establishes...

4 minutes read.

Computer Network Tutorial

What is Data Communication and Computer Network? Data Communication is the process of exchanging digital data between two or more computers that act as source and receiver through wireless media or...

7 minutes read.

Supernetting in Network Layer

Introduction Supernetting is one of the main topics in data communication networks or computer networks. The network aggregation goes by many names, such as supernetting, route aggregation, summarization, and so on....

6 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.

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.

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.

Data Link Layer Protocols

 Data Link Layer Protocols Bluetooth Low EnergyZ-WaveZigBee Smart EnergyLoRaWANWirelessHARTLTE-A  1. Bluetooth Low Energy Bluetooth Low Energy or Bluetooth is a short-range communication protocol with the physical layer and medium access control layer. It is widely used in IoT...

3 minutes read.