Question

In: Computer Science

Please discuss how a packet is routed from source node to its destination with the following...

Please discuss how a packet is routed from source node to its destination with the following algorithms:
1. Shortest path algorithm
2. Distance vector routing

Solutions

Expert Solution

2) Distance vector Routing

Lets understand the algorthm using an example

(due to the need of more drawings in have done it in a paper)

Initialization

At the start, each node can know only the distance between itself and its immediate neighbors,those directly connected to it.

The distance for any entry that is not a neighbor is marked as infinity(unreachable)

Sharing

The whole idea of distance vector routing is the sharing of information between neighbors.

Node A does not know about node E, node C does. Hence if  node C shares its routing table with A,node A can also know how to reach node E.

Nodes A and C, can improve their routing tables if they help each other

Updating

The receiving node needs to add the cost between itself and the sending node to each value in the second column.

Receiving node needs to add the name of the sending node to each row as the third column if the receiving node uses information from that row

Receiving node needs to compare each row of its old table with the corresponding row of the modified version
of the received table

1) Shortest path algorithm

The shortest path algorithm is also known as Dijkstra's algorithm,thsi algorithm works by finding shortest path between the node

Please see the flow chart to understand the algorithm

Analyse the below diagram to understand the process


Related Solutions

1. Distinguish between the process of routing a packet from the source to the destination and...
1. Distinguish between the process of routing a packet from the source to the destination and the process of forwarding a packet at each router. 2. List four types of delays in a packet-switch network.
Following shows the destination and source address of the receiving frame. Indicate if each packet contains...
Following shows the destination and source address of the receiving frame. Indicate if each packet contains route information or not. (Show all steps and describe the process)                 Destination address             Source address a720.e100.12b0                   1d2a.fe08.112a
An Internet packet travels from its source to router 1, from router 1 to router 2,...
An Internet packet travels from its source to router 1, from router 1 to router 2, and from router2 to its destination. Once the packet arrives to a router, the router can drop the packet. Packets only get dropped during transmission at a router. If routers drop packets independently with probability 0.5%, what is the probability that a packet is successfully transmitted from its source to its destination?
The packet above (in part a) now traverses from R1 to R_ISP. What are the source...
The packet above (in part a) now traverses from R1 to R_ISP. What are the source and destination IP addresses, and source and destination MAC addresses now?
If immigration occurs and workers move from the source country to the destination country, which of...
If immigration occurs and workers move from the source country to the destination country, which of the following statements describe the effect of the immigration on the destination country in the long run? Select one or more: a. In the destination country, an increase in the price of the labor-intensive good and a decrease in the price of capital-intensive good. b. In the receiving country, no change in the price of either the labor-intensive or capital-intensive good. c. In the...
We are sending a MP3 file of 1,000,000 bits from a source host to a destination...
We are sending a MP3 file of 1,000,000 bits from a source host to a destination host. All links in the path between source and destination have a bandwidth of 10 Mbps. Assume that the propagation speed is 2.5 * 10 8 meters/sec, and the distance between source and destination is 10,000 km. 1. Now suppose there are two links between source and destination, with one switch connecting the two links. Each link is 5,000 km long. Again suppose the...
Discuss the role of Open Source Integration node in SAS Enterprise Miner. Explain the pros and...
Discuss the role of Open Source Integration node in SAS Enterprise Miner. Explain the pros and cons with real-life examples.
For the TCP header of a data packet shown below, find the following parameters. (1) Source...
For the TCP header of a data packet shown below, find the following parameters. (1) Source port number (2) Destination port number (3) Sequence number (4) Acknowledgement number (5) Header length (6) Window size (7) a. Which flag is on? b. What is the type/purpose of this communication? 0 0 0 0   0 0 0 1   0 0 1 0   0 1 0 0   0 0 0 0   0 0 0 1   0 0 0 1   0 1 0 1...
Please find any two articles from any source (google or any other source, please mention the...
Please find any two articles from any source (google or any other source, please mention the source), each of which satisfies one of the criteria below. Do not use two articles with the same analytical technique. The article uses correlation or multiple regression. The article uses a cluster analysis. Describe the purpose of each of the two articles. Explain how the complex analysis used satisfies this purpose, and what it demonstrates. The limit is one page (300 words) per article.
Globalization and Sources of Equity Financing Please respond to the following: From the e-Activity, discuss how...
Globalization and Sources of Equity Financing Please respond to the following: From the e-Activity, discuss how the company you selected might benefit from selling new customers on e-Bay (as opposed to building and maintaining its own Website). Referring to the same company, determine the best source of equity capital available to the company you selected. Explain your rationale.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT