Q1. Each of the following addresses belongs to a block. Find the first and the l
ID: 3760728 • Letter: Q
Question
Q1. Each of the following addresses belongs to a block. Find the first and the last address in each block.
a. 110.40.240.16/22
b. 14.12.72.8/17
Q2. An IP datagram has arrived with the following partial information in the header (in hexadecimal):
010001010000101000001010011001010100000111001011100000111101000101010010-----
a. What is the header size?
b. What is the IP source address in dotted
decimal notation?
c. What is the IP destination addressin
dotted decimal notation?
Q3. Differentiate the terms Routing and Forwarding?
Explanation / Answer
1)
a)
110.40.240.16
01101110 00101000 11110000 00010000
11111111 11111111 11111100 00000000
-----------------------------------------------------------
01101110 00101000 11110000 00000000
start address = 110.40.240.1
end address = 110.40.243.254 (240.0- is networks and 243.255 is broad cast)
14.12.72.8/17
00001110 00001100 01001000 00001000
11111111 11111111 10000000 00000000
-----------------------------------------------------------
00001110 00001100 00000000 00000000
start address = 14.12.0.1
end address = 14.12.127.254 (0.0 is network address and 127.255 is broadcast address)
2)
IP header length is laways 20
if you want IP packet length it is 2661
b) & c)
this IP packet have only 72 bits
source adress will be from 97-128 bits
destination address will be from 129-160 bits
3)
Routing decition for what is next hop IP to send a packet based on the destination prefix. Forwarding functions determine which exit interface to use to send the packet to its next hop.
in otherwords routing is the stage where a decision is made on which interface to forward a particular packet. Forwarding is the act of pushing a packet through a particular interface
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.