CSc 361: Computer Communication and Networks
(10:30-11:20 am, Dec 1, 2023)
Exam 3 .
Name: Student ID:
Closed-book exam. Nevertheless, a letter-sized, double-sided cheat sheet is allowed. A non-
communicating calculator is also allowed. Please read all questions [marks] on all the four pages
first. Duration: 50 minutes
1. Please answer if the following statements are true or false. Just answer true or false.
F, (a) If wireless links are very reliable (e.g. no bit loss) and very fast (e.g., the transmission
speed is 10 Gbps), then CSMA /CD can be used for wireless networks. [3]
F (b) When a client and a server are on different networks, the client should use the ARP
protocol to find the server’s MAC address before it sends a packet to the server. [3]
l’,’ (c) In IEEE 802.11, all nodes need to share the same NAV (Network Allocation Vector) so
that they know the current channel allocation status. [3]
(d) In an Ethernet switch (i.e., Layer-2 switch), every interface of the switch will be assigned
-\
a unique IP address. [3]
(e) When an Ethernet switch receives a frame with the destination MAC address of DD-
=y
DD-DD-DD-DD-DD from its interface z, the switch will discard the frame if there is an
entry in its switch table associating DD-DD-DD-DD-DD-DD with interface z.
': (f) Slotted ALOHA achieves a higher maximum throughput than ALOHA because a node
using slotted ALOHA transmits faster than one using ALOHA [3].
7 (g) In IEEE 802.11, the value of SIFS is smaller than the value of DIFS [3].
7 (h) In IEEE 802.11, different SSIDs can be assigned to the same AP. [3]
2. Assume that R; is the maximum rate, in frames per second, for Ethernet frames of size N
bytes (64 < N < 759). Consider the maximum rate Ry, in frames per second, for frames of
size 3N. Assume that there is no fragmentation. Which one of the following statements is
true? Just give your answer. No need to explain. [10]
e 1, is smaller than 3Ry
e IR, is equal to 3R,
e 7y is greater than 3R,
3. Consider three LANs interconnected by two routers, as shown in the following figure. IP
addresses and MAC addresses have been assigned to all of the NICs (Network Interface Cards),
Subnet 1 r'-}_ Subnet 3
=
Subnet 2
C E
A 192.1668.1.1
. 01:01:01:01:01:01 J193_163_2_1 [Link]
13| 44:44:44:44:44:44 TETEIT TR
~ Pahl Path 2 —m—
L-P\.J\- Router 1 LA.N [ Routn ) t] L‘\N
\. / 192.168.1 2 192 1682 2 [Link] - %
22:22:22:22:22:22 33:33:33:33:33:33 55:55:55:55:55:55 192.168.3.<
88:88:88:88:88:88 192 168 3.3
[Link] [Link] 99:99:99:99:99:99
11:11:11:11:11:11 D | 66:66:66:66:66:66 .
Figure 1: Three LANs interconnected by two routers.
shown in the figure. Subnet 1 uses addresses of the form 192.168.1.x; Subnet 2 uses addresses
of the form 192.168.2.x; and Subnet 3 uses addresses of the form 192.168.3.x.
Consider sending a packet from Host B to Host E. Suppose all of the ARP tables are up
to date. Fill the IP addresses and MAC addresses of this packet on different path segments
(using the same address format drawn in the figure).
e On path 1 (i.e., Host B to Router 1) [6]:
The source IP address of this packet is [1]: 1G2. 1681 %
The destination IP address of this packet is [1]: /4. . /4. 7. [
The source MAC address of this packet is [2]: Pl gl it
The destination MAC address of this packet is [2]: 5 .90 : sz 22: 22 22
e On path 2 (i.e., Router 1 to Router 2) [6]: e
The source IP address of this packet is [1]: 142./¢8-1. 2
The destination IP address of this packet is [1]: /5. //% 5
The source MAC address of this packet is [2]: 35 - 345 23 3 §.3 2') 1 5
The destination MAC address of this packet is [2]: 56 - ¢4 f6 L ¢0 rC
e On path 3 (i.e., Router 2 to Host E) [6]: - ) 2
The source IP address of this packet is [1]: 142.168- ls 2
The destination IP address of this packet is [1]: (72 /A5 i " R
The source MAC address of this packet is [2]: 38 283 08 &4 :5d - 59
The destination MAC address of this packet is [2]: 77 - 77 - 77:7).77:)7
4. Assume that on a 1 Gbps Ethernet, the bus cable length is 100 meters. Assume that the
signal propagation speed is 2 * 10® meters per second. What is the minimum frame length in
the unit of byte? [12]
\\
b n : o
b ¢
Ny
/. , )i,:: ‘L;f X /0 7 ;/a()o }»/‘f‘j L ,,.",/?’ /}J’/)/;‘Ls
TLQ PUILE P /{T"”“‘“f ‘KVT”L s 125 I}7 7€
5. The following figure shows a screenshot of WireShark. The trace was captured at a Windows
machine running traceroute to destination [Link]. Packet #3 is the ICMP ping message with
TTL=1 sent from the client, and Packet #4 is the ICMP error message received by the client.
Note that an intermediate router generates Packet #4 since this router cannot forward Packet
#3 further.
No. Time Source Destination Protocol Length Info
3 0.498245 [Link] [Link] ICHP 106 Echo (ping) request id=0x0001, seq=453/50433, ttl=1 (no response f&
4 0.499399 [Link] [Link] LCMP 70 Time-to-live exceeded (Time to live exceeded in tnansit)
5 0.500028 [Link] [Link] ICHP 106 Echo (ping) request 1id=0x0001, seq=454/50689, ttl=1 (no response f§
e — EE— 00 2
> Frame 4: 70 bytes on wire (560 bits), 70 bytes captured (560 bits) on interface \Device\NPF_{6F715447-1446-41B6-B826-8B6FBFOCOAC8}, id ©
> Ethernet II, Src: Netgear_27:37:6c (00:0f:b5:27:37:6c), Dst: D-LinkIn_0d:7b:b7 (1lc:af:f7:0@d:7b:b7)
> Internet Protocol Version 4, Src: _ Dst: *— LineA
v Internet Control Message Protocol § eSS
Type: 11 (Time-to-live exceeded)
Code: @ (Time to live exceeded in transit)
Checksum: 0x06b8 [correct]
[Checksum Status: Good]
Unused: 00000000
» Internet Protocol Version 4, src: NN, ost: [ - vocn
v Internet Control Message Protocol
Type: 8 (Echo (ping) request)
Code: ©
Checksum: ©xe481 [unverified] [in ICMP error packet)
[Checksum Status: Unverified]
Identifier (BE): 1 (@x@e01)
Identifier (LE): 256 (©x0100)
Sequence Number (BE): 453 (0x01c5)
Sequence Number (LE): 50433 (@xc501)
Figure 2: Screenshot of WireShark.
e The source and the destination IP addresses at Line A in the figure are hidden.
The source IP address at Line A is: [4] (42 (04.67. 243
The destination IP address at Line A is: [4] /92. /(8.2 1]
e The source and the destination IP addresses at Line B in the figure are hidden.
The source IP address at Line B is: [4] jG2. [48.0-17
The destination IP address at Line Bis: [4] ¥ .3 X¥. 4
3
6. The following figure shows an example of the DCF operation of IEEE 802.11. Assume that
the size of the data frames is the same: 2000 bits. Assume that the size of ACK frames is
the same: 120 bits. Assume that four-way handshake (RT'S/CTS/DATA/ACK) is used and
the size of RT'S and CTS frames is the same: 50 bits. Assume that the data frames are not
fragmented. Assume that the channel speed is 2 Mbps. Assume that DIFS is equal to 6
microseconds. Assume that SIFS is equal to 4 microseconds. Assume that the initial backoff
values (translated to time) of stations B, C, D are 100 microseconds, 50 microseconds, 70
microseconds, respectively. Assume that the backoff value (translated to time) of station E
at point T'1 is 40 microseconds.
DIFS DIFS DIFS DIFS
Station A [ Frame | |-CWVindow
Defer
Station B | ¢ —T— - Frame |
TO T1 T2
CWindow = Contantion Window
[] = Backoff
[ = Remaining Backoff
Figure 3: An example of DCF operation of IEEE 802.11.
e Calculate the duration (in microseconds) of “Frame” period in the figure (round up to
an integer if your answer is a float number, e.g., 4.1 and 4.9 all rounded up to 5). [10]
//__:,Z
50450 t2000412€
——————————————————————
s
)
+ 34 =//22
e Calculate the duration from TO0 to T2 (in microseconds) in the figure (round up to an
integer if your answer is a float number, e.g., 4.1 and 4.9 all rounded up to 5). [10]
£734
LX[)2244XE Frop =737