0% found this document useful (0 votes)
234 views4 pages

Unit 4 Written Assignment

This document contains questions and answers about routing and IP addressing. It discusses how a router determines the next hop for packets based on CIDR entries in its routing table. It also shows how IP addresses are assigned to different organizations based on their requested address space and subnet masks. Finally, it provides an example of how a router updates its distance-vector routing table after receiving a report from another router.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
234 views4 pages

Unit 4 Written Assignment

This document contains questions and answers about routing and IP addressing. It discusses how a router determines the next hop for packets based on CIDR entries in its routing table. It also shows how IP addresses are assigned to different organizations based on their requested address space and subnet masks. Finally, it provides an example of how a router updates its distance-vector routing table after receiving a report from another router.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Written Assignment Unit 5

Dr. Franklin Orellana

University of The People

CS 2204: COMMUNICATIONS AND NETWORKING


Q1. A router has the following CIDR entries in the routing table:
 
Address/Mask Next Hop

135.46.56.0/22 Interface 0

135.46.60.0/22 Interface 1

192.53.40.0/23 Router 1

Default  Router 2

For each of the following IP addresses, what does the router do if a packet with that address arrives?
1.135.46.63.10 – The router will check routing entries by starting with the longest prefix. R/23 is the
longest, so 192.53.40.0/23 will be used. However, the routing entry does not match, so the router will
check the next prefix which is /22. Since the IP address matches the 135.46.60.0/22 router entry, the
packet will get routed over Interface 1.
2. 135.46.57.14 : This IP address matches the 135.46.56.0/22. Consequently, the packet will be routed
over Interface 0.
3. 135.46.52.2 : This IP address happens to be in the entry. Consequently, the default gateway will be
used to route the package out over Router 2.
4. 192.53.40.7 : This IP address matches routing entry 192.53.40.0/23, so the packet will be routed out
over Router 1.
5.192.53.56.7: This IP address does not match any of the entries, so it will be routed using the default
route, over Router 2.
For reference I used (Dordal, 2019).

Q2. A Large number of consecutive IP address are available starting at 198.16.0.0. Suppose four
organizations, A, B, C, D request 4000, 2000, 4000, and 8000 addresses, respectively. For each of these
organizations, give:
1.the first IP address assigned
2.the last IP address assigned 
3.the mask in the w.x.y.z/s notation
A. 1) 198.16.0.0
2) 198.16.15.255
3) 198.16.0.0/20
B. 1) 198.16.16.0
2) 198.16.23.255
3) 198.16.16.0/21

C. 1) 198.16.32.0
2) 198.16.47.255
3) 198.16.32.0/20

D. 1) 198.16.64.0
2) 198.16.96.255
3) 198.16.64.0/19

Q3. A router R has the following distance-vector table:


 
Destination Cost Next hop

 A  2  R1

 B  3  R2

 C  4  R1

 D  5  R3
 
R now receives the following report from R1 (the cost of the R–R1 link is 1):
<dest: A, cost: 1>, <dest: B, cost: 1>, <dest: C, cost: 4>, <dest: D, cost: 4>.
 
Give R’s updated table after it processes R1’s report. For each entry, give a brief explanation.

Destination Cost Next hop

 A  3  R1

 B  3  R2

 C  5  R1

 D  5  R3
 
Since the router has a cost of 1 to A. It will add 1 to every update entry it receives. Since R1 is included
in the route from A, the cost for any route learned through A will increase by 1.R1 in the route, the cost
increased from 2 to 3. For C, its cost increased from 4 to 5. R1 is not included in B and D, so their cost
entries remain unchanged. (Dordal, 2019).

REFERENCES
Dordal, P. (2019). An Introduction to Computer Networks.

Antoniou, S. (2007). Simplify Routing With Subnetting: How to Organize Your Network Into Smaller
Subnets. Retrieved from https://www.pluralsight.com/blog/it-ops/simplify-routing-how-to-organize-
your-network-into-smaller-subnets

You might also like