Internet Part2
Internet Part2
Assistant Professor
Department of Electrical Engineering,
Indian Institute of Technology Patna, India
Routers use the routing table to send the IP packets from one hop to
another. At the beginning, the entire route from source to destination
is not known. Instead, the route is calculated after each hop.
For IoT networks, we use dynamic routing in contrast to static
routing. Static route in the network is manually updated, whereas,
the path is automatically changes based on the speed/failure of the
links in the case of dynamic routing.
Routing Information Protocol (RIP): It is based on distance vector
protocol. Distance vector is also known by other names such as
Bellman-Ford or Ford-Fulkerson routing algorithm. Limitations: It
assumes all the networks as equal and does not take bandwidth into
account, and a long convergence time (or count-to-infinity problem).
Open Shortest Path First (OSPF): It is based on link state
protocol. A route can have different metrics like delay, cost, speed etc.
We can use the same table to find the shortest path between any two nodes if the
source and destination are changed. The column represents the milestones (or
stops). Entry in bottom right corner shows the node through which the milestone
can be reached.
To go from A to the rest of the nodes, A to A requires cost 0. A to B and C need
cost 2 and 5 respectively. Since D and E are not reachable from A, these are set to
infinity initially. After first row, we choose cost 2 via A to reach B as this involves
a minimum cost.
In second row, to reach C, there is no path from B to C. We write the
corresponding entry from first row. To reach D from B: cost 2 to reach B from
first row Plus cost 4 to reach from B to D. Similarly, to reach E from B: cost 2 to
reach B from first row Plus cost 7 to reach from B to E.
We choose cost 5 via A to reach C. To reach D requires cost 8 via C (5 from
previous step to reach C plus cost 3 for C to D). Similarly, to reach E requires cost
10 via C (5 from previous step to reach C plus cost 5 for C to E). However, these
costs are more than the corresponding entry in the previous row and hence, these
are discarded.
Limitation of RIP: Works well for a small system and also suffers
from count-to-infinity problem and convergence. This motivates us to
go for OSPF which is based on link state routing.
Dr. Sudhir Kumar (Assistant Professor Department of Electrical
InternetEngineering,
- Part 2 Indian Institute of Technology
AprilPatna,
18, 2020
India) 13 / 27
Interior Gateway Routing Protocol: OSPF
Analogy for delay: cars and toll tax on a highway [Kurose P38]
Jitter: It is the variation in delay of received packets. Different
packets experience different delays.
Throughput: It is the ratio of number of bits at the receiver and
time elapsed. It is less (may be because of congestion or other
practical constraints) than the theoretical limit called bandwidth.
Bandwidth-Delay Product: Number of bits that can fit in the link.
Analogy: bandwidth is cross-section of a pipe, delay is length of the
pipe and volume of the pipe is bandwidth-delay product.
R
, R2 }
Throughput = min{R1 ,
3
where R = transmission rate, R1 and R2 are the server and client
access rates respectively.