Question

In: Computer Science

Host A wants to send 15 frames to Host B using Selective repeat protocol. How many...

Host A wants to send 15 frames to Host B using Selective repeat protocol. How many numbers of frames are transmitted by Host A if every 8th packet is lost or corrupted?

  • Also compare the number of number of transmissions of Selective Repeat with Go Back 3.

Solutions

Expert Solution

For selective repeat:-

Lets assume sequence number for 15 frames are:-

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14

But every 8th packet will have to be retransmitted because either it gets lost or corrupted. Now,

0, 1, 2, 3, 4, 5, 6, 7, 7, 8, 9, 10, 11, 12, 13, 14, 14

Start count from 1 and count up to 8 for every sequence number increase count by 1. First 8th packet will be sequence number 7 which gets lost, so retransmit it. Again start count from 1 and count up to 8, this time sequence number 14th will be the 8th packet which will get lost, so retransmit it. Total number of retransmission will be,

n = 15 + 2 (retransmissions)

n = 17.

For Go Back 3:-

Lets assume sequence number for 15 frames are:-

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14

In Go Back 3 protocol, we transmit packets in group size of 3,

First it will send sequence number 0 1 2, which will get accepted.

when it will recieve 0's ack, it will send 3 and when it will recieve 1's ack it will send 4 like wise it will send 7 packets upto sequence number 6 which will get acks, but when it will send 8th packet of sequence number 7, it gets lost and at this moment of time sender side window will be pointing to the packets of sequence numbers 7, 8, 9. So it will retransmit 7, 8, 9, total transmission up to this momet will be 10+3 = 13, where 10 are first 10 (from seq number 0-9) transmission and 3 are retrasnmission (from seq number 7-9) after lost of packet of sequence number 7, Now from here next 8th packet will be the packet with sequence number 14 which will get lost, for that it will do one more retransmission now total transmissions are,

n = 13 + 5 + 1

n = 19.


Related Solutions

Suppose Host A wants to send a large file to Host B. The path from Host...
Suppose Host A wants to send a large file to Host B. The path from Host A to Host B has three links, of rates R1 = 200 kbps, R2 = 2 Mbps, and R3 = 1 Mbps. Assuming no other traffic in the network, what is the average throughput for the file transfer? Suppose the file is 4 million bytes, on average, how long will it take to transfer the file to Host B? Repeat (a) and (b), but...
How long does it take to send a 15 MiB file from Host A to Host...
How long does it take to send a 15 MiB file from Host A to Host B over a circuit-switched network, assuming: - Total link transmission rate = 49.7 Gbps. - Network is FDM, with 7 permitted users, each with an equal bandwidth share. - A link connection requires a setup time of 84.5 ms. Your answer should be in miliseconds (ms) with one decimal place, and without the unit (e.g. "140.6" without the quotes)
Consider a scenario where Host A and Host B want to send messages to Host C....
Consider a scenario where Host A and Host B want to send messages to Host C. Hosts A and C are connected by a channel that can lose and corrupt (but not reorder) messages. Hosts B and C are connected by another channel (independent of the channel connecting A and C) with the same properties. The transport layer at Host C should alternately deliver M (M>1) consecutive messages received from A to its application layer and N (N>1) consecutive messages...
Host A sent packet to Host B explain the process of how the packet is going...
Host A sent packet to Host B explain the process of how the packet is going throuth EACH OF OSI LAYERS.. +with explaining EACH LAYER FUNCTION briefly pls..thanks
The Baldwin company wants to decrease its plant utilization for Brat by 15%. How many units...
The Baldwin company wants to decrease its plant utilization for Brat by 15%. How many units would need to be produced next year to meet this production goal? Ignore impact of accounts payable on plant utilization. Select: 1 1,202 1,952 1,683 1,414 Brat growth rate 11%% units sold 1,926 inventory 351 capacity next round 1,794 plant utilization 127%
Q4: Suppose you want to send a 5000 character message, using 7-bit ASCII encoding. How many...
Q4: Suppose you want to send a 5000 character message, using 7-bit ASCII encoding. How many TOTAL bits would need to be transmitted using an asynchronous connection? How many of those bits are overhead? How many TOTAL bits would need to be transmitted using a synchronous connection? How many of those bits are overhead? For the synchronous connection, each frame can hold 1000 characters, and has a start byte flag, a stop byte flag, a control byte, a 2 byte...
Alice wants to send a plaintext message m = 10 to Bob secretly using RSA public...
Alice wants to send a plaintext message m = 10 to Bob secretly using RSA public key cryptosystem. Bob selects p = 7, and q = 13 with e = 5. You have to perform following tasks: a. Compute and list Bob’s public and private keys. b. Compute the ciphertext that Alice will send to Bob using plaintext message m = 10. c. Recover the actual plaintext from the ciphertext sent by Alice
In UART protocol, how many bits are NECESSARILY added into a data package for the interfacing...
In UART protocol, how many bits are NECESSARILY added into a data package for the interfacing to be successful? What is the function of those bits?
How and where do many DNA viruses such as SV40 replicate in the host cell?
How and where do many DNA viruses such as SV40 replicate in the host cell?
how to send background process to foreground process using c code?
how to send background process to foreground process using c code?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT