The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
71 views

An IP router implementing CIDR services a packet with address 131.23.151.76.The routers routing table has the following entries

Prefix.            Output interface identifier

131.16.0.0/12                          3

131.16.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,.,........

asked in Computer Networks by Junior (813 points) | 71 views
0
output interface 1 ?
0
Yes but how???

1 Answer

0 votes
Best answer

Start with the longest prefix - /16
Subnet mask for it - 255.255.0.0

Subnet mask AND IP = Network ID

131.23.151.76 AND  255.255.0.0 = 131.23.0.0/16 (Not matched with 131.19.0.0/16 )

Next is /15
Subnet mask for it - 255.254.0.0
131.23.151.76 AND  255.254.0.0 = 131.22.0.0/15  (Matched)

So The identifier of the output interface on which this packet will be forwarded is 1 .

answered by Boss (12.8k points)
selected by


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

39,619 questions
46,721 answers
140,302 comments
58,021 users