Question

In: Computer Science

Using CRC method, calculate the Checksummed message to send throw the medium if: Message = 101011...

Using CRC method, calculate the Checksummed message to send throw the medium if:

  • Message = 101011
  • Cx=x3+x2+1

Q2) Explain how the ‘Stop and Wait’ flow control method is working?

Q3) Explain the differences between Go-Back-N and Selective Repeat sliding window flow control methods?

Using CRC method, calculate the Checksummed message to send throw the medium if:

  • Message = 101011
  • Cx=x3+x2+1

Q2) Explain how the ‘Stop and Wait’ flow control method is working?

Q3) Explain the differences between Go-Back-N and Selective Repeat sliding window flow control methods?

Solutions

Expert Solution

Question 2:

The working of a stop and wait protocol:

  • The sender node sends a data packet to the receiver node.

  • Then, waits for the feedback of the transmitted packet.

  • As soon as the receiver node receives a data packet it starts processing it.

  • Then, the receiver node sends the feedback to the sender node (about the received data packet).

  • After receiving the feedback, if the feedback is positive then the sender node sends the next data packet otherwise resends the damaged packet.

Stop & Wait Protocol performs better for LANs than WANs because the efficiency of the protocol is inversely proportional to the distance between the sender & receiver node and as we all know that the distance is less in LANs as compared to WANs.

But this protocol has some issues, one such issue is the probability of occurrence of deadlock, which is very high due to loss in a data packet or loss in feedback which can lead to infinite waiting, where the sender will keep on sending the data packet if the feedback is lost.

These steps are given below

Analysis:

  • Sender puts the data packet on the transmission link.
  • Data packet propagates towards the receiver’s end.
  • Data packet reaches the receiver and waits in its buffer.
  • Receiver processes the data packet.
  • Receiver puts the acknowledgement on the transmission link.
  • Acknowledgement propagates towards the sender’s end.
  • Acknowledgement reaches the sender and waits in its buffer.
  • Sender processes the acknowledgement.

Steps:

Total Time:

Total time taken in sending one data packet = (Transmission delay + Propagation delay + Queuing delay + Processing delay)packet + (Transmission delay + Propagation delay + Queuing delay + Processing delay)ACK

Advantages of Stop and Wait:

  • It's simple and each frame is checked and acknowledged well.

Disadvantages of Stop and Wait:

  • Only one frame can be in transmission at a time.
  • It is inefficient, if the distance between devices is long. Reason is propagation delay is much longer than the transmission delay.
  • The time spent for waiting acknowledgements between each frame can add significant amount to the total transmission time.

Question 3:

S. No. Keys GoBackN protocol Selective Repeat protocol
1 Sender window size In GoBackN protocol, Sender window size is N. In Selective Repeat protocol, Sender window size is N.
2 Receiver Window size In GoBackN protocol, Receiver window size is 1. In Selective Repeat protocol, Receiver window size is N.
3 Minimum Sequence Number In GoBackN protocol, Minimum Sequence Number is N+1 where N is number of packets sent. In Selective Repeat protocol, Minimum Sequence Number is 2N where N is number of packets sent.
4 Efficiency In GoBackN protocol, Efficiency formular is N/(1+2*a) where a is ratio of propagation delay vs transmission delay and N is number of packets sent. In Selective Repeat protocol, Efficiency formular is N/(1+2*a) where a is ratio of propagation delay vs transmission delay and N is number of packets sent.
5 Acknowledgement Type In GoBackN protocol, Acknowledgement type is cumulative. In Selective Repeat protocol, Acknowledgement type is individual.
6 Supported Order In GoBackN protocol, in-order delivery only are accepted at receiver end. In Selective Repeat protocol, out-of-order deliveries also can be accepted at receiver end.
7 Retransmissions In GoBackN protocol, in case of packet drop,numbers of retransmitions are N. In Selective Repeat protocol, in case of packet drop,number of retransmition is 1.

Related Solutions

Suppose we want to transmit the message 0010 1101 and detect transmission errors using the CRC...
Suppose we want to transmit the message 0010 1101 and detect transmission errors using the CRC divisor polynomial (x3+x2+1). A.) [15 marks] Determine the bit string that should be transmitted. B.) [15 marks] If the leftmost 1-bit of the transmitted string is inverted due to noise on the link, what is the result of the receiver's CRC calculation?
Suppose Alice is using a block cipher to send the message THE ORDER IS KARL, ANDY,...
Suppose Alice is using a block cipher to send the message THE ORDER IS KARL, ANDY, FRED AND IAN. IAN AND ANDY HAVE LEFT. to Bob. Assume that the block cipher is used in ECB mode, the English is divided into plaintext blocks of 2 letters (ignore spaces and punctuation) the ciphertext blocks are denoted C1,C2,...,C23 (a) Write down the 23 plaintext blocks. (b) Will any of the ciphertext blocks be repeated? If so, which ones? (c) Suppose an attacker...
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
PLease using C# Without using try-catch-throw for exception handling (Ch07), display an error message (using csc...
PLease using C# Without using try-catch-throw for exception handling (Ch07), display an error message (using csc or VS2017) when an input is invalid (i.e., no data, wrong format, wrong type, etc.) and fails the type conversion. Generate random integers from any of the following three non-overlapped ranges -14 ~ -7 -2 ~ 5 33 ~ 44 Numbers generated must also randomly distributed across the three ranges.
Can you explain the hardware (using xor gates) implementation of the circuit that calculate CRC key,...
Can you explain the hardware (using xor gates) implementation of the circuit that calculate CRC key, suppose the polynomial key is x^4 + x^2 +x+1 and the message 100110011010. I need the hardware implementation only.
Using PHP, Create a form that uses the method POST to send the information. The form...
Using PHP, Create a form that uses the method POST to send the information. The form should capture the distance the package needs to travel with the one field for the distance in miles. All fields should have the REQUIRED attribute. The form should have a submit button and reset button. The form should look nice. All the labels should line up horizontally and all the INPUTS/SELECT should line up horizontally.
A recent study focused on the number of times men and women send a Twitter message...
A recent study focused on the number of times men and women send a Twitter message in a day. The information is summarized below. Sample Size Sample Mean Population Standard Deviation   Men 29          24          9                  Women 37          37          19                At the .01 significance level, is there a difference in the mean number of times men and women send a Twitter message in a day? What is the p-value for this hypothesis test?...
analyze cyclic redundancy check CRC using the following subheading i. concept explanation ii. method used for...
analyze cyclic redundancy check CRC using the following subheading i. concept explanation ii. method used for implementing CRC iii. Illustration of each method iv. merits and demerits in relation to performance
Write a procedure to calculate Average of numbers(integers) using Arrays. Send base address of array in...
Write a procedure to calculate Average of numbers(integers) using Arrays. Send base address of array in register $a1 and Array length in register $a2 to the procedure and return Average in register $v0 to main program.
For Networks -> Please show me how to do the following: a.)   Calculate the CRC of...
For Networks -> Please show me how to do the following: a.)   Calculate the CRC of a signal given a generating function and a # of bits to add. b.)   Calculate the checksum of a signal.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT