Question
Consider the following pattern-matching table: Rule 1st Field (F1) 2nd Field (F2) P * 00* Q 1* 0* R 001* 10* S 01* 1* T
Consider the following pattern-matching table:
Rule | 1st Field (F1) | 2nd Field (F2) |
P | * | 00* |
Q | 1* | 0* |
R | 001* | 10* |
S | 01* | 1* |
T | 110* | 11* |
U | 00* | 1* |
A) Construct a two-dimensional geometric view of the rules using F1 representing the horizontal and F2 representing the vertical axes (use different border line patterns/colors/thicknesses to have the rule areas separated from the neighboring areas).
B) Build a hierarchical binary tree representation of the rules in the table that can be used for pattern matching.
C) Show the Hierarchical intelligent cutting version of the two-dimensional rule space in A with four cuts in the horizontal (F1) and two cuts in vertical (F2) dimensions and its corresponding search tree.
D) Use the binary tree in B to search for the match for the incoming packet with F1/F2 = 00100/100101.
E) Repeat D using the tree in C.
F) Repeat D for F1/F2 = 11011/001111.
G) Repeat E for F1/F2 = 11011/001111.
H) Assuming three bits for F1 and two bits for F2 and no wild characters, what would be the
maximum number of possible rules for this table?
I) Calculate what percentage of the incoming packets will NOT match any rules in the table.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started