edited by
487 views
4 votes
4 votes

Consider the following forwarding table in a router that uses longest prefix matching to forward packets. Assume that 4-bit addressing is used.
$$
\begin{array}{c|c}
\hline \text{prefix} & \text{interface} \\
\hline X & 1 \\
Y & 2 \\
\text{Otherwise} & 3 \\
\hline
\end{array}
$$
We know that packets with an address of 0100 are forwarded to Interface 1 and packets with an address of 0010 are forwarded to Interface 2.

Which of the following CAN be the values for $X$ and $Y?$

  1. $X=0$ and $Y=00$
  2. $X=01$ and $Y=00$
  3. $X=010$ and $Y=00$
  4. $X=00$ and $Y=0$
edited by

1 Answer

0 votes
0 votes
p1 = 0100

p2 = 0010

A) 0,00->P1-X,P2-Y

B) 01,00->P1-X,P2-Y

C) 010,00-> P1-X,P2-Y

D) 00,0 -> P1-Y,P2-X

 

SO A,B,C can be the correct prefit
Answer:

Related questions

524
views
1 answers
4 votes
GO Classes asked Feb 5
524 views
Consider a sliding window protocol with a window size of $5$ using cumulative ACKs (and ACK is being sent for each segment).Assume that the retransmission ... packet 3 was duplicated by the networkACK packet A3 was duplicated by the network
786
views
2 answers
4 votes
GO Classes asked Feb 5
786 views
Consider the following network, which consists of two routers (R1 and R2), two switches (S1 and S2), and four hosts (H1, H2, H3, and H4). ... will have destination mac address of R2Packet leaving R2 will have destination mac address of S2
845
views
1 answers
5 votes
GO Classes asked Feb 5
845 views
A host uses a variety of protocols to discover information about the network it is connected to. Which of the following statements are TRUE?To perform a DNS ... a host must first discover the MAC address of the destination host using ARP.
713
views
2 answers
9 votes
GO Classes asked Feb 5
713 views
Assume a linear page table, with a 1-byte page-table entry. Assume physical and virtual address spaces of size 128 bytes with 32-byte pages. The ... addresses that will get referred in fetch and execute of the above instruction?104210270