Network Architectures 3329 Name: Spring 2018 Homework 4 03/30/2018 Due 04/06/2018
Network Architectures 3329 Name: Spring 2018 Homework 4 03/30/2018 Due 04/06/2018
1 2
2 2
3 2
4 2
5 2
Total: 10
c. Now suppose that this network is a virtual circuit network and that there is
one ongoing call between H1 and H3, and another ongoing call between
H2 and H3. Write down a forwarding table in router A, such that all traffic
from H1 destined to host H3 is forwarded through interface 3, while all
traffic from H2 destined to host H3 is forwarded through interface 4.
Network Architectures 3329 the sameHomework
d. Assuming scenario as (c),4write
- Page
down2the
offorwarding
4 tables in 03/30/2018
nodes B, C, and D.
1 B 2
1 3 1
3
H1 A D
2 4 1 2 2
C H3
H2
P5. Consider a VC network with a 2-bit field for the VC number. Suppose that
the network wants to set up a virtual circuit over four links: link A, link B,
1. Consider the network above.
(a) (1 point) Show the forwarding table in router A, such that all traffic destined to host H3
is forwarded through interface 3.
ProblemPrefix
6 Match Interface
Destination Address
00 Range 0 Link Interface
00000000
through 010 1 0
00111111 011 2
01000000 10 2
through 11 3 1
01011111
01100000
For each of the four interfaces, give theaddresses
associated and
rangethe
of destination
For interface 2, give through
the associated range of destination host 2 number ofhost
addresses and the number of addresses in the range.
01111111
addresses in the range.
P12. Consider a datagram network using 8-bit host addresses. Suppose a
10000000 router uses longest prefix matching and has the following forwarding
throughaddress range Link interface 2
Solution: Destination table:
10111111
223.1.17/24. Also suppose that Subnet 1 is required to support at least 60 interfaces, Subnet
2 is to support at least 90 interfaces, and Subnet 3 is to support at least 12 interfaces. Provide
three net- work addresses (of the form a.b.c.d/x) that satisfy these constraints.
Solution: 223.1.17.0/26
223.1.17.128/25
223.1.17.192/28
4. (2 points) Consider sending a 2400-byte datagram into a link that has an MTU of 700 bytes.
Suppose the original datagram is stamped with the identification number 422. How many
fragments are generated? What are the values in the various fields in the IP datagram(s)
generated related to fragmentation?
Solution: The maximum size of data field in each fragment = 680 (because there are
20 bytes IP header). Thus the number of required fragments = d240020/680e = 4 Each
fragment will have Identification number 422. Each fragment except the last onewill be of
size 700 bytes (including IP header). The last datagram will be of size 360 bytes (including
IP header). The offsets of the 4 fragments will be 0, 85, 170, 255. Each of the first 3
fragments will have flag=1; the last fragment will have flag=0.
5. (2 points) Consider the SDN OpenFlow network shown in the following figure. Suppose that
the desired forwarding behavior for datagrams arriving from host h3 or h4 at s2 is as follows:
• any datagrams arriving from host h3 and destined for h1, h2, h5 or h6 should be forwarded
in a clockwise direction in the network
OpenFlow)example)
• any datagrams arriving from host h4 and destined for h1, h2, h5 or h6 should be forwarded
in a counter clockwise direction in the network
Host h6
10.3.0.6
1 s3 controller
2
3 4
Host h5
10.3.0.5
1 s1 1 s2
2 Host h4
4 2 4
10.2.0.4
Host h1 3 3
10.1.0.1
Host h2
10.1.0.2
Host h3
10.2.0.3
Specify the flow table entries in s2 that implement this forwarding behavior.
Ingress Port = 2; IP Dst = 10.2.0.3 Forward (3)
Ingress Port = 1; IP Dst = 10.2.0.4 Forward (4)
Ingress Port = 2; IP Dst = 10.2.0.4 Forward (4)
Ingress Port = 4 Forward (3)
Network
IngressArchitectures
Port = 3 3329 Homework 4 - Page 4 of 4 Forward (4) 03/30/2018
Problem 20
Solution:
S2 Flow Table
Match Action
Ingress Port = 3; IP Dst = 10.1.*.* Forward (2)
Ingress Port = 3; IP Dst = 10.3.*.* Forward (2)
Ingress Port = 4; IP Dst = 10.1.*.* Forward (1)
Ingress Port = 4; IP Dst = 10.3.*.* Forward (1)