Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
535 views
in Computer by (108k points)
closed by

An Ip router implementing Classless Inter-domain Roting (CIDR) receives a packet with address 131.23.151.76. the router’s routing table has the following entries:

Prefix

Output Interface

Identifier

131.16.0.0/12

3

131.28.0.0/14

5

131.19.0.0/16

2

131.22.0.0/15

1

 

The identifier of the output interface on which this packet will be forwarded is ________

1 Answer

0 votes
by (101k points)
selected by
 
Best answer

Explanation:

First field of routing table: 131.16.0.0/12

Given mask bits = 12

131.23.151.76 = 131.00010111.151.76

    131.00010111.151.76

& 131.00010000.0.0 

131.16.0.0

 

BITWISE AND Result (Matched with 131.16.0.0)

Second field of routing table: 131.28.0.0/14

Given mask bits = 14

    131.00010111.151.76

& 131.00010100.0.0 

131.20.0.0

 

BITWISE AND Result (Not Matched with 131.28.0.0)

Third field of routing table: 131.19.0.0/16

Given mask bits = 16

    131.00010111.151.76

& 131.00010111.0.0 

131.23.0.0

 

BITWISE AND Result (Not Matched with 131.19.0.0)

Fourth field of routing table: 131.22.0.0/15

Given mask bits = 15

    131.00010111.151.76

& 131.00010110.0.0 

131.22.0.0

 

BITWISE AND Result (Matched with 131.22.0.0)

Here 1st and 4th both fields are matched but we will take the field with higher mask bits so interface 1 is the correct answer.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...