Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Given that the network addresses are 8 bits long. Suppose that a router has the following prefixes in the forwarding table: 01*, 10*, 001*,

image text in transcribed

1. Given that the network addresses are 8 bits long. Suppose that a router has the following prefixes in the forwarding table: 01*, 10*, 001*, 110* 1101*, 0111*, 01101*, *11101*, 1010101*, 0110100* (a) Assume that the binary search method based on prefix length is now used for LPM (longest prefix match) in the router. (1) Show the binary searching tree for all hash tables. (4 marks) (ii) Write down the contents of the tables with size 4. Given that the table contains the following fields: Prefix Flag LSF where the Flag (On or Off) is used to indicate whether there is a longer prefix and LSF is used to indicate the longest prefix found so far (measured in number of bits). (4 marks) (b) Now the binary search is used for LPM in the router. Construct the search table that contains the following fields: Binary Value where the ">" column contains the LPM result for the input address having a binary value greater than the current entry but smaller than the next one. The "="column contains the LPM result for the address having the same binary value with the current entry. (15 marks) 1. Given that the network addresses are 8 bits long. Suppose that a router has the following prefixes in the forwarding table: 01*, 10*, 001*, 110* 1101*, 0111*, 01101*, *11101*, 1010101*, 0110100* (a) Assume that the binary search method based on prefix length is now used for LPM (longest prefix match) in the router. (1) Show the binary searching tree for all hash tables. (4 marks) (ii) Write down the contents of the tables with size 4. Given that the table contains the following fields: Prefix Flag LSF where the Flag (On or Off) is used to indicate whether there is a longer prefix and LSF is used to indicate the longest prefix found so far (measured in number of bits). (4 marks) (b) Now the binary search is used for LPM in the router. Construct the search table that contains the following fields: Binary Value where the ">" column contains the LPM result for the input address having a binary value greater than the current entry but smaller than the next one. The "="column contains the LPM result for the address having the same binary value with the current entry. (15 marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions