Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

thats a that's all of the questions. Please check. Thank you. Q1. Given that the network addresses are 8 bits long. Suppose that a router

thats aimage text in transcribed

that's all of the questions. Please check. Thank you.

Q1. Given that the network addresses are 8 bits long. Suppose that a router has the following prefixes in the forwarding table: *,1*, 10*, 010* 0110*, 1111*, 10001*, 110011*, 100100*, 0111001* (a) Assume that the binary search method based on prefix length is now used for LPM (longest prefix match) in the router. (i) 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) Q1. Given that the network addresses are 8 bits long. Suppose that a router has the following prefixes in the forwarding table: *,1*, 10*, 010* 0110*, 1111*, 10001*, 110011*, 100100*, 0111001* (a) Assume that the binary search method based on prefix length is now used for LPM (longest prefix match) in the router. (i) 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_2

Step: 3

blur-text-image_3

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

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

Be familiar with the integrative servicescape model.

Answered: 1 week ago

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago