



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Problem 1. [1 point]
Consider the packet-based multiplexer shown in Fig. 1. The output link transmission rate is 10Mbps. Assume packets destined to this output link arrive as shown in Table 1.
Fill in the departure times of packets under the two scheduling schemes:
a. First-Come First-Served (FCFS)
b. Priority queueing (1: high priority; 2: low priority)
Answer:
Packet 2 transmission under FCFS can only begin after packet 1 is fully emitted (i.e., at 0.2072) even though it arrives
at 0.202. Packet 3 transmission only starts at 0.31 sec since packet 2 transmission completes at 0.2584sec but packet
3 has not yet arrived. Under Priority queueing, there is no change because packet 3 has not yet arrived when packet 2
is ready to be served.
Problem 2. [1 point]
a. How many bits (headers plus payload) are carried within a single SONET frame of an OC48 signal?
Since the OC48 signal gross rate is 2488.32 Mbps, the number of bits in one SONET frame is:
bits.
b. How many OC3 communication sessions can be multiplexed on to an OC48 link? Answer: 16. Divide 48/3 = 16.
Table 1: Packet arrivals and departures
Packet Priority Length in bytes
Time of arrival (packet has fully arrived at the listed time instant; from this instant, it awaits transmission on the output link)
Time of departure (when emission of the whole packet is complete) under FCFS
Time of departure under Priority queueing
1 1 9000 t = 0.2 sec 0.2072 0.
2 2 64000 t = 0.202 sec 0.2584 0.
3 1 9000 t = 0.31 sec 0.3172 0.
Fig 1 Packet-based multiplexer
Link 1
Link L
Link 2 Output link: 10Mbps
125 μ s
125 μ s
125 × 10 –^6 × 2488.32 × 106 = 311040
Problem 3. [1.5 points]
Under heavy load conditions, calculate the maximum throughput for a 100Mbps Ethernet hub (which means the
transmission rate is b/s) with stations separated by a maximum distance of 200m, assuming a frame length
of 1518 bytes? Use m/s for speed of light in the medium.
Answer: Speed of light in the medium is m/s. At a distance of m,. Since
rate of the link b/s, maximum throughput, , is given by:
. The maximum throughput is 95Mbps.
Problem 4. [2 points]
Consider a circuit switch that operates at a crossconnect rate of OC3, and has four bidirectional OC12 links. Assume a switch architecture with TDM multiplexers and demultiplexers, and an internal 3-stage non-blocking space switch. The space switch has 4 input-stage switches and 4 output-stage switches. Answer the following:
a. What is the minimum number of intermediate-stage switches needed to make the space switch non-block- ing? Each OC12 link is demultiplexed into 4 OC3 links. Since there are 4 OC12 links, it means the number of input links to the space switch is 16. As there are 4 input-stage switches, each input-stage switch has 4 input links. Therefore. Using the non-blocking condition. Therefore the minimum num- ber of intermediate-stage switches is 7.
b. What is the size of each intermediate-stage switch (i.e., specify number of input lines x number of output lines)? There are 4 input-stage switches and 4 output-stage switches. Therefore each intermediate-stage switch is a switch. See figure for unfolded view of the switch (not required in the question).
Problem 5. [2 points]
Consider the connectionless packet-switched network shown in Fig. 2 ( A through F are switches). Assume that all links are bidirectional. The number indicated next to each link is the administrator-set link weight. Assume that the path cost is the sum of the weights of the links on the path. Each switch runs Dijkstra’s shortest path algorithm and computes its routing table. Assume that there were no errors in the creation of the routing tables at all switches.
6 ×
2 10 8 ×
8 × 100 tprop
8 ×
= -----------------^ = 1 μ s
r 100 10 6 = × ρ max
ρ max ( S ⁄ r ) S ⁄ r + tprop + 2 tprope
8 ⁄ ( ) 1518 × 8 10 8 ⁄ ( ) 1 10
ρ max =0.
n = 4 k = 2 n – 1 = 7
Link weights are shown next to links
Fig 2 A network of switches and hosts
Bridge B1 will not learn H6’s address because B2 will not forward the frame. Similarly B2 will not learn H1’s address because B1 will not forward the frame.
Problem 7. [2 points]
See the network of Ethernet bridges and hosts shown in Fig. 4. The nodes marked 1, 2, ... 6 are the bridges. The numbers 1 through 6 are the bridge identifiers. In other words, the bridge identifier of bridge 1 is 1 , making it the smallest value, and hence bridge 1 is the root bridge. Use hop count in determining root path costs, as we did in the class exercises and examples. Links between bridges are hubbed LANs with one or more hosts (not shown in the fig- ure) connected to the hubs.
All bridges have run the spanning tree algorithm, which has successfully converged. This means each bridge has marked the states of all its ports as forwarding (F) or blocked (B). The table below has three columns. The first col- umn represents a bridge. The second column represents a port on the bridge identified in the first column. The third column represents the state of that port. As an example, consider the first row. Bridge 1 has placed its port that is con- nected to bridge 2 in the forwarding state. Fill in the states for all the ports listed in the table.
Table 2: Filtering databases
At Bridge B1 At Bridge B
MAC address Output port MAC address Output port
H2 Port 1 H2 Port 2
H5 Port 2 H5 Port 1
H3 Port 2 H3 Port 2
H1 Port 1 H6 Port 1
Bridge Port State
1 Connected to bridge 2 F
Bridge B
Bridge Port 1 B1 Port 2 Port 2 Port 1
Fig 3 A network of Ethernet bridges (switches), hubs and hosts
Hubbed Hubbed Hubbed
Here’s the complete spanning tree (not required for the question).
On bridge 4, its port to 2 is blocked, because bridge ID 2 is smaller than 4, making bridge 2 the designated bridge
for the LAN between bridges 2 and 4. There are 6 bridges and 11 LANs for a total of ports in the for- warding state. Bridge 5 places its port to 4 in F state because bridge 4 gives it a one-hop path to the root bridge (bridge 1), while bridge 3 gives it a two-hop path to the root bridge.
Problem 8. [3.5 points]
Assume the following about the network shown in Fig. 5. The IP addresses/subnet masks shown in Fig 5 have been configured into the corresponding PCs and IP router. For example, the IP addresses and subnet masks shown in Fig 5 for the two router interfaces (named eth0 and eth1) have been configured into the IP router. Assume all ARP caches are empty initially.
2 Connected to Host A F
3 Connected to bridge 4 B
4 Connected to bridge 3 F
5 Connected to bridge 4 F
6 Connected to bridge 5 B
Table 3: Routing table at PC
Destination IP address Subnet mask G flag
“Gateway” - Next-hop IP address or IP address of the directly connected interface
Interface (Output port)
Bridge Port State
Host Z
Host A
Fig 4 A network of Ethernet bridges (switches) and hosts
Answer the following:
a. PC2’s NIC has been assigned the IP address and subnet mask shown in Fig. 5. What part of its IP address is the subnet ID, and what is its host ID? Subnet ID: 128.143.16.32 and host ID: 12; Subnet ID is determined by bitwise AND’ing the subnet mask / 28, which is 255.255.255.240, and the IP address 128.143.16.44. This results in 128.143.16.32. The last byte of the address is 0010 1100. The host ID is the last four bits, which is decimal 12.
b. If a process in PC3 wants to send an IP datagram to 128.143.16.44, which rows of the IP routing table at PC3 will yield a match? Of these matched rows, which is the longest-prefix match? Answer: Rows corresponding to 128.143.16.0, 128.143.16.44 and 0.0.0.0 will yield a match. The longest- prefix match row corresponds to 128.143.16.44.
c. If the IP router shown in Fig. 5 receives an IP datagram destined to 128.143.16.143, and finds its ARP cache empty, what IP address is set in the Target IP address field of the ARP request issued by the router? Answer: 128.143.16.143, because the longest-prefix matched row will yield a row with G=0 (the 128.143.16.0 row), it resolves the IP address of the destination itself.
d. If PC1 sends an IP datagram carried in an Ethernet frame to PC4, fill in the entries for the header fields of this packet as it leaves PC1’s NIC in Table 6. Assume that the ARP cache at PC1 already has the required MAC address. Since MAC addresses are not provided, identify the interface corresponding to the MAC address. For example, say “Router’s eth0 interface’s MAC address” or “PCx NIC’s MAC address.”
Explanation for answer: A lookup of the routing table in PC1 will show that PC4 is on the same subnet (i.e., the longest-prefix match will occur for the /24 subnet routing table row). Therefore, PC1 will find the MAC address of PC4’s NIC and send it the frame directly (without traversing a router).
Table 6: Values in some of the header fields
IP header fields Ethernet header fields
Destination IP address
Source IP address Destination MAC address Source MAC address
128.143.15.94 128.143.15.44 PC4 NIC’s MAC address PC1 NIC’s MAC address