Question

Problem 2 -  Consider a datagram network using 8-bit host addresses.Suppose a router us...

Problem 2 -  Consider a datagram network using 8-bit host addresses.Suppose a router uses longest prefix matching and has the following forwarding table:

Prefix Match    Interface

  1    1

10 2

111 3

100 4

010 5

otherwise 6

To which interface will datagrams having the following destination addresses be forwarded to?

11011011

10010001

11101011

10111110

01110110

Explain how you arrive at the answers.

0 0
Add a comment Improve this question Transcribed image text
✔ Recommended Answer
Answer #1

Here, In the routing table every network address has the same subnet mask as the datagram network uses 8-bit addresses so we don't have to worry about ANDing and the prefixes are already given so we just have to compare the bits and see which are overlapping.

Longest prefix matching matches according to maximum number of bits exactly matched in the IP address and prefix in the routing table. So, we will match first 3 bits of IP address as our prefixes in the routing table contains a maximum of 3 bits: 111, 100, 010 if they are exactly matched, the packet will be forwarded to the respective port otherwise we will compare the first 2 bits of the IP address and prefix (10 at port 2), if they match exactly they will be forwarded to port number 2, if they do not we will compare the first bit of IP address to prefix 1 at port 1, if they match exactly they will be forwarded to port 1 other wise they will be forwarded to port 6.

a) 11011011 here the first 3 bits = 110 is not present in the routing table prefixes(only 3 bit prefixes are: 111, 100, 010) so now we go and compare its first 2 bits = 11 which is also not present in routing table prefixes (only 2 bit prefix is: 10) so now we compare the first bit = 1 which is present in the prefix table at port number 1. So, it will be forwarded to port 1.

b) 10010001, here the first 3 bits = 100 is also present in the prefixes table at port number 4. So, it will be forwarded to port 4.

c) 11101011, here the first 3 bits = 111 is also present in the prefixes table at port number 3. So, it will be forwarded to port 3.

d) 10111110, here the first 3 bits = 101 is not present in the routing table prefixes(only 3 bit prefixes are: 111, 100, 010) so now we go and compare its first 2 bits = 10 which is present at port number 2. So, it will be forwarded to port 2.

e) 01110110, here the first 3 bits = 011 is not present in the routing table prefixes(only 3 bit prefixes are: 111, 100, 010) so now we go and compare its first 2 bits = 01 which is also not present in routing table prefixes (only 2 bit prefix is: 10) so now we compare the first bit = 0 which is also not present in the prefix table so it will be forwarded to port number 6.

If you found this answer helpful, please give it a thumbs up! :)

Add a comment
Know the answer?
Add Answer to:
Problem 2 -  Consider a datagram network using 8-bit host addresses.Suppose a router us...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • Consider a datagram network using 32-bit host addresses. Suppose a router has four links, numbered 0...

    Consider a datagram network using 32-bit host addresses. Suppose a router has four links, numbered 0 through 3, and packets are to be forwarded to the link interfaces as follows: Destination Address Range Link Interface 11100000 00000000 00000000 00000000 through 11100000 00111111 11111111 11111111 11100000 01000000 00000000 00000000 through 11100000 01000000 11111111 11111111 11100000 01000001 00000000 00000000 through 11100001 01111111 11111111 11111111 otherwise a. Provide a forwarding table that has five entries, uses longest prefix matching, and forwards packets to...

  • 14. Consider a datagram network using 8-bit host addresses. Suppose a router use longest prefix matching...

    14. Consider a datagram network using 8-bit host addresses. Suppose a router use longest prefix matching and has the following forwarding table Interface Prefix Match 01 0 10 001 2 For each of the four interfaces, give the associated range of destination host addresses and the number of addresses in the range.

  • Consider a datagram network using 32-bit host addresses. Suppose a router has four links, numbered through...

    Consider a datagram network using 32-bit host addresses. Suppose a router has four links, numbered through 3, and packets are to be forwarded to the link interfaces as follows. Destination Address Range Link Interface 0 11101111010000000000000000000000 through 11101111111111111111111111111111 1 11101111010110000000000000000000 through 11101111010010011111111111111111 11101001 111110000000000000000000 through 11101001 111111111111111111111111 2 otherwise 3 a) Provide a forwarding table that has 4 entries, uses longest prefix matching, and forwards packets to the correct link interfaces. (4 pts) b) Describe how your forwarding table determines...

  • (2 points) Consider a datagram network using 32-bit host addresses. Suppose a router has four links,...

    (2 points) Consider a datagram network using 32-bit host addresses. Suppose a router has four links, numbered 0 through 3, and packets are to be forwarded to the link interfaces as follows: Prefix Match Link Interface 11100000 000 11100000 00100000 11100000 0011 11100000 00110001 10 Describe how your forwarding table determines the appropriate link interface for datagrams with destination addresses: 11000000 00110001 01010001 01010101 11100001 00100000 00010001 01110111

  • This is computer network hw. it is very important and urgent too. 16. (7 points) Consider...

    This is computer network hw. it is very important and urgent too. 16. (7 points) Consider a datagram network using 32-bit host addresses. Suppose a router has four links, number 0 through 3, and packets are to be forwarded to the link interface as follows: Link Interface Destination Address Range 11001000 00010111 00010000 00000000 through 11001000 00010111 00010111 11111111 11001000 00010111 00011000 00000000 through 11001000 00010111 00011000 11111111 11001000 00010111 00011001 00000000 through 11001000 00010111 00011111 11111111 otherwise a) (4...

  • Final Cxa am CSIT 340 Computer Networks, fall 2018 received at the receiver b) Assume that we send a packet transmission delay? What's the total deluy et with 100 Mega bytes from one nade to...

    Final Cxa am CSIT 340 Computer Networks, fall 2018 received at the receiver b) Assume that we send a packet transmission delay? What's the total deluy et with 100 Mega bytes from one nade to the other. What's the isnoring queueing delay and nodal processing delay)? rors B. Wwhat's the meaning for (c) Calculate the Propagation value? e the Propugation Delay and Bandwidth product, Le, da te ale be forwarded to the link interfaces using the prefix entries tching" to...

  • consider a datagram network using 24-bit hos address. Suppose a router has four links, numbered 0...

    consider a datagram network using 24-bit hos address. Suppose a router has four links, numbered 0 through 3, and packets are to be forwarded to the link interfaces as follows: Destination Address Range                                                   Link Interface 11100000 00000000 00000000                                                             0 through 11100000 000000111 11111111 Destination Address Range                                                   Link Interface 11100000 00000000 00000000                                                             1 through 11100000 010000111 11111111 Destination Address Range                                                   Link Interface 11100001 01000000 00000000                                                             2 through 11100001 01111111 11111111

  • 1. To which of the following subnets does IP address 225.3.2.22 belong? 225.3.2.0/24 225.3.2.22/24 225.2.3.0/24 225.0.0.0/24...

    1. To which of the following subnets does IP address 225.3.2.22 belong? 225.3.2.0/24 225.3.2.22/24 225.2.3.0/24 225.0.0.0/24 none of the above Question 2 On which of the following devices does the transport layer NOT run? laptop router cellphone A, B and C none of the above Question 3 What is the source address contained in the discover message sent by a host that is wanting to obtain an IP address? 255.255.255.255 0.0.0.0 the IP address of the server the last IP...

  • souter that has 4 inte der a router owing this forwarding table: Link interface Destination Address...

    souter that has 4 inte der a router owing this forwarding table: Link interface Destination Address range 11001000 00010111 00010*** ******** 11001000 00010111 00011000 ******** 11001000 00010111 00011*** ******** otherwise O-NM For interface 2, give the range of destination host addresses associated? Interface 2: From 11001000 00010111 Through 11001000 00010111 ven the following forwarding table, complete the table below by specifying on which of utgoing interfaces each destination address will be forwarded. Link Interface tination Address 11001000 00010111 00010110 10100001...

  • Consider the scenario below in which three hosts, with private IP addresses 10.0.1.13, 10.0.1.15, 10.0.1.20 are...

    Consider the scenario below in which three hosts, with private IP addresses 10.0.1.13, 10.0.1.15, 10.0.1.20 are in a local network behind a NATted router that sits between these three hosts and the larger Internet. NAT Translation Table WAN side addr LAN side addr 35.122.196.219:517 10.0.1.27:3435 10.0.1.13 2 S: D, 10.0.1.27 135.122.196.219 10.0.1.15 4 3 10.0.1.20 IP datagrams being sent from, or destined to, these three hosts must pass through this NAT router. The router's interface on the LAN side has...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT