Documente Academic
Documente Profesional
Documente Cultură
Question 1:
Consider the network shown in Figure 1. The figure next to the link represents the links
cost.
a. Please use Dijkstras shortest path algorithm to compute the shortest path from F
to all other network nodes. What is the path used by packets from node F to node
B.
b. Now consider multicast routing. Suppose the PIM dense mode multicast routing
algorithm is implemented. For a multicast group where node F is the source and
nodes A, B and E are receiving nodes, please draw the multicast forwarding tree
for this multicast group.
Figure 1
3
A
3
2 7
D
9
2
C
4
6
5 4 8
1 3
2 4
3
H
7
E
8
3
9
Answer:
a)
Step
Start, N
0
1
2
3
4
5
6
7
F
FG
FGH
FGHE
FGHED
FGHEDC
FGHEDCA
FGHEDCAB
b)
D(A),
P(A)
9,D
9,D
D(B),P(B)
12,E
12,E
12,E
11,A
6,E
6,E
6,F
6,F
6,F
6,F
4,G
4,G
D(G),P(G
)
1,F
D(H),P(H
)
3,F
3,F
PIM Dense Mode (PIM-DM) uses dense multicast routing. It implicitly builds shortestpath trees by flooding multicast traffic domain wide, and then pruning back branches of
the tree where no receivers are present.
When node F is source and node A, B and E are receiving nodes, the multicast
forwarding tree for this multicast group is given below.
F-D-A;
F-D-A-B;
F-G-E
Question 2:
Consider distance vector routing. Delay is used as the measured metrics. A network consists
of six (6) nodes, Node A to Node F. Node A has three neighboring nodes: B, C, and D. The
following vectors have come to router A: from B: (6, 0, 5, 9, 8, 4); from C: (5, 2, 0, 1, 4, 5);
from D: (4, 7, 6, 0, 3, 4). The first element of the vector from node X represents the delay
from node X to node A, while the second element represents the delay from node X to node
B, and so on. The measured delays from node A to B, C and D, are 6, 3, and 5, respectively.
What is As new routing table? Give both the outgoing line to use and the expected delay.
Answer:
The distance table is as below:
Destinatio
n
Through
B
12
12
11
11
15
14
10
Next Hop
B
C
D
E
F
Delay
C
C
C
C
C
5
3
4
7
8
Question 3:
Consider a NAT (network address translation) local network. Should all datagram leaving this
local network have the same IP source address? Justify your answer.
Answer:
Network Address Translation (NAT) is a method of mapping a number private IP addresses
by a single public IP. This technique allows the hosts in the network to borrow a public
address to communicate to outside networks.
Let us consider a network with 3 hosts with the private IP from 192.168.1.1 to 192.168.1.3
and the public IP for the network is 207.111.64.11. If one of the hosts (192.168.1.2) tries to
access the information from outside network then the datagram consists of source and
destination IP with port number which is forwarded to the router which connects the local
network to outside network. The router then replaces the source IP and port number by its
own IP address and port number but the destination IP address will be the same.
Same case applies for other hosts within the local network. So, we can say that all the
datagram leaving the local network have the same IP address.
Question 4:
Compare IPv6 datagram header with IPv4 header. List four differences between them and
explain the rationale for making such changes.
Answer:
The IPv4 header is as below:
Version
IHL
Type of Service
Identification
Time to Live
Total Length
Flags
Protocol
Fragment
Offset
Header Checksum
Source Address
Destination Address
Option
Padding
Version
Traffic Class
Flow Label
Payload Length
Next
Header
Hop Limit
Source Address
Destination Address
1). The IPv4 address is 32 bit and is written in decimal form whereas IPv6 address is of 128
bits and is written in Hexadecimal form.
2). Fragmentation is done by sender and forwarding routers in IPv4 but in IPv6
Fragmentation is done only by sender.
3). Address Resolution Protocol (ARP) is available to map IPv4 addresses to Mac addresses
in IPv4 and in IPv6 Address Resolution Protocol (ARP) is replaced by Neighbor Discovery
Protocol (NDP).
4). In IPv4, broadcast messages are available but in IPv6 broadcast are not available. Instead
a link-local scope All nodes multicast IPv6 address (FF02::1) is used for broadcast similar
functionality.