Docsity

Computer Networks Exam: Packet Transmission, TCP Protocol, and Network Design, Quizzes of Networking

Toggle sidebar
bg1
1
Question 1 (5 Marks)
(5 Points) A pipeline protocol is used between a sender and a receiver. The sender wants
to send 6 packets with a rate 1packet/1ms. The propagation time is 3 ms for any packet
and the time out is 8 ms. The time for processing packet and the transmission time are
negligible. Assume that Selective Repeat is used, window size is 3 and the packet
sequence number 1 is lost (start sequence number from 0). Fill up the below figure
with information about sending packet from sender to receiver and ACK packet in
reverse direction. Calculate the total time required in order the receiver receives the 6
packets correctly. Specify the number of data packets and acknowledgments sent
and sequence number of data packets and acknowledgments.
Question 2 (5 Marks)
Suppose we have two network entities, A and B. B has a supply of data messages that
will be sent to A according to the following conventions.
When A gets a request from the layer above to get the next data (D) message from B,
A must send a request (R) message to B on the A-to-B channel. Only when B receives
an R message can it send a data (D) message back to A on the B-to- A channel. A should
deliver exactly one copy of each D message to the layer above. R messages can be lost
(but not corrupted) in the A-to-B channel; D messages, once sent, are always delivered
correctly. The delay along both channels is unknown and variable. Design (give an
FSM description of) a protocol that incorporates the appropriate mechanisms to
compensate for the loss-prone A-to-B channel and implements message passing to the
layer above at entity A, as discussed above. Use only those mechanisms that are
absolutely necessary.
Arab Academy for Science & Technology & Maritime
Transport College of Engineering and Technology
Lecturer : Dr. Cherine Fathy
Course : Computer Networks Marks : 20
Code : CC431
Date : 29/5/2021 12th Week Exam Time : 90 min
1ms
Receiver
Sender
pf3

Partial preview of the text

Download Computer Networks Exam: Packet Transmission, TCP Protocol, and Network Design and more Quizzes Networking in PDF only on Docsity!

Question 1 (5 Marks) (5 Points) A pipeline protocol is used between a sender and a receiver. The sender wants to send 6 packets with a rate 1packet/1ms. The propagation time is 3 ms for any packet and the time out is 8 ms. The time for processing packet and the transmission time are negligible. Assume that Selective Repeat is used, window size is 3 and the packet sequence number 1 is lost ( start sequence number from 0 ). Fill up the below figure with information about sending packet from sender to receiver and ACK packet in reverse direction. Calculate the total time required in order the receiver receives the 6 packets correctly. Specify the number of data packets and acknowledgments sent and sequence number of data packets and acknowledgments. Question 2 ( 5 Marks) Suppose we have two network entities, A and B. B has a supply of data messages that will be sent to A according to the following conventions. When A gets a request from the layer above to get the next data (D) message from B, A must send a request (R) message to B on the A-to-B channel. Only when B receives an R message can it send a data (D) message back to A on the B-to- A channel. A should deliver exactly one copy of each D message to the layer above. R messages can be lost (but not corrupted) in the A-to-B channel; D messages, once sent, are always delivered correctly. The delay along both channels is unknown and variable. Design (give an FSM description of) a protocol that incorporates the appropriate mechanisms to compensate for the loss-prone A-to-B channel and implements message passing to the layer above at entity A, as discussed above. Use only those mechanisms that are absolutely necessary. Arab Academy for Science & Technology & Maritime Transport College of Engineering and Technology Lecturer : Dr. Cherine Fathy Course : Computer Networks Marks : 20 Code : CC Date : 29 / 5 / 2021 12 th^ Week Exam Time : 90 min 1ms Receiver Sender

Question 3 ( 10 Marks) A. (7 Points) Consider the graph below modeling behavior experienced by a TCP protocol. The graph should be read to mean that Congwin =1 during round 1, Congwin =2 during round 2, Congwin =4 during round 3, etc.. Answer the following questions. In all cases give a short explanation as to how you derived your answer. a. (1 Point) Is this TCP RENO or TCP Tahoe? b. (2 Points) What is slow-start? In which rounds is slow-start operating? c. (1 Point) A loss event occurs during the 11th^ transmission round. What type of loss event occurs? d. (1 Point) A loss event occurs during the 17th^ transmission round. What type of loss event occurs? e. (1 Point) What is the initial value of Threshold during the first transmission round? f. (1 Point) Suppose there is no loss event during the 21st^ transmission round. What will the value of Congwin be during the 22nd^ round? B. (3 Marks) Give Reasons for the following TCP design Issue a. TCP avoid measuring the SampleRTT for retransmitted segments. b. In our rdt protocols, why did we need to introduce timers? c. In our rdt protocols, why did we need to introduce sequence numbers?