SC2008 AY2324 S2 Solutions
SC2008 AY2324 S2 Solutions
1 (1) Node A: 8.9.200.90 = 0000 1000 . 0000 1001 . 1100 1000 . 0101 1010
Node B: 8.9.100.60 = 0000 1000 . 0000 1001 . 0110 0100 . 0011 1100
(2) ceil(4200/1500) = 3
Answer: (C) 3
(4) During triple ACK, congestion window will be halved into 16.
Therefore, the average is (16 + 32)/2 = 24
Answer: (B) 24
(6) Probability that only one station transmits = 0.2 * 0.8 * 0.8 = 0.128
Either Station A, B or C = 0.128 * 3 = 0.384
(7) After the first collision, the probability that each station will transmit is 0.5.
Probability of a successful transmission = 3 * 0.5 * 0.5 * 0.5 = 0.375
1
If there are errors, please report using the form in bit.ly/SCSEPYPErrorForm
Page 1 of 5 If there are errors, please report using the form in scds.cc/PYPError
24th SCSE Club – Past Year Paper Solution (2023 – 2024 Semester 2)
SC2008 – Computer Networks
𝑎 = 𝑇𝑝𝑟𝑜𝑝 /𝑇𝑓𝑟𝑎𝑚𝑒
= 0.020/0.008
= 2.5
𝑊
𝑈=
𝑁𝑟 (1 + 2𝑎)
2
=
1
× (1 + 2 × 2.5)
1−𝑝
2 × 0.99
=
6
= 0.33
Answer: (E) 9
(12) The route from Node B and Node A is reversed, so they would need to traverse the subnet
network 202.22.8.0/24, 155.69.8.0/22, 132.20.24.0/21 in this order.
Page 2 of 5 If there are errors, please report using the form in scds.cc/PYPError
24th SCSE Club – Past Year Paper Solution (2023 – 2024 Semester 2)
SC2008 – Computer Networks
(13) (i) Border Gateway Protocol (BGP) uses User Datagram protocol (UDP)
This is FALSE. BGP uses TCP (Transmission Control Protocol), not UDP.
(ii) Open Shortest Path First (OSPF) is a Link state routing protocol
This is TRUE. OSPF is indeed a link-state routing protocol.
For this, calculate the time needed to transfer 1000 bytes of data, that is 1000B / 1Mbps =
8ms. We would use this as the unit of time needed to send 1000 bytes of data.
Note that for the router being able to forward the packet, it needs to fully receive it first.
3
If there are errors, please report using the form in bit.ly/SCSEPYPErrorForm
Page 3 of 5 If there are errors, please report using the form in scds.cc/PYPError
24th SCSE Club – Past Year Paper Solution (2023 – 2024 Semester 2)
SC2008 – Computer Networks
P(SG and JP breaks if it goes through KR)= 1 – (1-0.038)*(1-0.1) = 1 – 0.962 * 0.9 = 0.1342
P(SG-JP) = 0.1342 * 0.3 = 0.04026
Answer: 0.04026
(b) During the first retransmit, station A has a uniform distribution with 2 slots, 0-1. If it were
successfully transmit on slot 0, then it will transmit on slot 1, 2, and so on (assuming there are
no collision). Therefore, Station A must transmit at slot 1, which has the probability of 0.5.
Therefore, the probability that Station B transmit successfully on the first retry is 0.25 * 0.5 =
0.125.
Answer: 0.125
(c) Since production department needs 50 nodes, it needs at least 2^6 nodes => 6 bits for host.
For legal department, it needs at least 2^5 nodes => 5 bits for host.
For production department, the number 192 – 255 can fit 64 nodes (11XX XXXX), thus the IP
block would be 155.69.7.192/26.
For legal department, it can fit 32 nodes with the number 0 – 31 (000X XXXX), thus the IP
block would be 155.69.7.0/27.
(d) The second packet sends an AN = 1401, therefore w = 1400 (as it return w + 1 as AN in
handshaking process). It also sends a packet with SN = 4000, therefore x = 4001 (same
reasoning as before).
On the third packet from A, the AN number is 4001, which means that Station A is expecting
to receive a packet with SN = 4001 from station B. Therefore, y = 4001.
4
If there are errors, please report using the form in bit.ly/SCSEPYPErrorForm
Page 4 of 5 If there are errors, please report using the form in scds.cc/PYPError
24th SCSE Club – Past Year Paper Solution (2023 – 2024 Semester 2)
SC2008 – Computer Networks
As for the AN of the second packet from B, it was sent when station B has not received packet
with SN = 1501 from station A. Thus, it is expecting to receive packet with SN = z = 1501.
5
If there are errors, please report using the form in bit.ly/SCSEPYPErrorForm
Page 5 of 5 If there are errors, please report using the form in scds.cc/PYPError