東京大学 情報理工学系研究科 創造情報学専攻 2024年8月実施 筆記試験 第2問
Author
Description (English)
We transmit data via packet switching between sender S and receiver R connected as shown in Figure 1. Assume that one-way propagation delay
Answer the following questions.
(1) Assume that the packet size is 1500 bytes. Calculate the time from the moment S starts sending a packet to the moment R completely receives the packet. Note that the time required to push all the bits of a packet into the communication channel is referred to as transmission delay, and the time asked in this question is the sum of the transmission delay and the one-way propagation delay.
(2) Assume that the packet size is 1500 bytes. Consider a communication method where each time R completes receiving a packet, R sends an acknowledgment packet to S, then S sends the next packet immediately after S receives the acknowledgement packet. The acknowledgment packet is small enough that we can ignore its transmission delay. Calculate the effective speed in this setting. Provide your answer in kbps and round it to one decimal place. Note that effective speed refers to the value obtained by dividing the transmitted data size by the time from the moment S starts sending the first packet to the moment S receives the acknowledgment packet for the last packet.
(3) We define line utilization as the ratio of effective speed to bandwidth. Let's consider improving line utilization by increasing the packet size. Answer the minimum packet size
We adopt the following communication method to improve communication efficiency with a fixed packet size. Sender S continuously sends
(4) Calculate the minimum value of
(5) Express the minimum value of
Consider a network that transmits data via packet switching as shown in Figure 2. The server stores a file of size
Answer the following questions. Note that time
(6) Assume that the server can process only one file request packet at a time. When the server receives a file request packet from a client, the server sends the file to the client. Assume that it takes 5 ms from the moment when the server starts processing a file request packet to the moment it starts sending the file, and that the server completes processing the file request packet when it completes sending the file. When a new file request packet arrives from another client while the server is processing a file request packet, the new file request packet is stored in a queue. The server starts processing the file request packet at the head of the queue immediately after it completes processing the current file request packet. Each client sends a file request packet to the server at times shown in Table 1. The configuration of the network each client is connected to is shown in Table 1. Answer the time when Client 1, 2, and 3 complete receiving the file, respectively.
Table 1 File request time and network configuration of clients
| File request time | Propagation delay between a client and the server (one-way) | Bandwidth | |
|---|---|---|---|
| Client 1 | 50 ms | 500 kbps | |
| Client 2 | 110 ms | 250 kbps | |
| Client 3 | 60 ms | 800 kbps |
From now on, we improve the server and make it possible for the server to process file request packets from multiple clients concurrently by multi-threading. The server starts a thread each time it receives a file request, and each thread is dedicated to file transmission to a client after the start. Assume that it takes 15 ms from the moment when the server starts processing a file request packet to the moment it starts sending the file after starting a thread. A thread terminates immediately after it completes sending the file.
(7) Assume that a sufficient number of threads can run without interfering with each other on the server. The configuration of the network each client is connected to is shown in Table 1. Answer the time when Client 1, 2, and 3 complete receiving the file, respectively.
(8) Assume that there are
Table 2 Network configuration of clients
| Propagation delay between a client and the server (one-way) | Bandwidth |
|---|---|
Assume that the maximum number of file transmission threads that can run concurrently on the server is
Kai
(1)
The transmission delay is
The time required is
(2)
The time required is one transmission delays for the data packet, and two one-way propagation delays (one for the data packet from the sender and one for the ACK from he receiver).
The effective speed is
(3)
Since
when the line utilization is not less than 20% i.e. 0.2, we have
where
(4)
The time S takes to send
Let the time S starts to send the first packet to R be
Also, R sends the acknowledgment packet for the first package from S at
Since the ACK arrival should be earlier than S completes sending
Since
(5)
Generally, the time of S to complete sending is
(6)
The transmission delay for client 1,2,3 are respectively
- Client 1 requests at
, the request packet arrives at ; - Client 2 requests at
, the request packet arrives at ; - Client 3 requests at
, the request packet arrives at .
So the queue is (first) 1,3,2 (last) at the server.
Server after a transmission delay and a preprocessing delay (5ms) completes pushing the packet into the communication channel (link). Hence the
- Server completes sending to client 1 at
; - Server completes sending to client 3 at
; - Server completes sending to client 2 at
.
After a propagation delay, the client receives the file.
- Client 1 receives at
; - Client 2 receives at
; - Client 3 receives at
.
(7)
Notice: the preprocessing delay changes to 15ms.
- Client 1 receives at
; - Client 2 receives at
; - Client 3 receives at
.
(8)
The transmission delay is uniformly
- Client 1 to client 12: no queueing;
- Client 1:
arrival; server sends at (next queueing request starts being preprocessed); - ...
- Client 8:
arrival; server sends at ; - ...
- Client 12: server completes sending at
.
- Client 1:
- Client 13 to client 20: waiting the processing Client 1,2,..,8 repsectively to end;
- Client 13:
arrival; leaves the queue at when the request from 1 ends, server sends at ; - ...
- Client 20:
arrival; leaves the queue at when the request from 8 ends, server sends at ;
- Client 13:
Hence, client 20 completes receiving after a one-way propagation delay at