Presentation is loading. Please wait.

Presentation is loading. Please wait.

MODULE I NETWORKING CONCEPTS.

Similar presentations


Presentation on theme: "MODULE I NETWORKING CONCEPTS."— Presentation transcript:

1 MODULE I NETWORKING CONCEPTS

2 Go-Back-N ARQ The form of error control based on sliding-window flow control While no errors occur, the destination will acknowledge incoming frames as usual ( or piggybacked acknowledgment). If the destination station detects an error in a frame, it may send a negative acknowledgment for that frame, using the following rules

3 Go-Back-N ARQ The destination station will discard that frame and all future incoming frames until the frame in error is correctly received. Thus, the source station, when it receives a REJ, must retransmit the frame in error plus all succeeding frames that were transmitted in the interim. Example Suppose that station A is sending frames to station B. After each transmission,A sets an acknowledgment timer for the frame just transmitted.

4 Go-Back-N ARQ Suppose that B has previously successfully received frame i-1 and A has just transmitted frame i. The go-back-N technique takes into account the following contingencies: Damaged frame. Damaged RR. Damaged REJ. 1. Damaged frame. If the received frame is invalid (i.e., B detects an error, or the frame is so damaged that B does not even perceive that it has received a frame), B discards the frame and takes no further action as the result of that frame.

5 Go-Back-N ARQ Case 1: Within a reasonable period of time,A subsequently sends frame (i+1) B receives frame (i+1) out of order and sends a REJ i. A must retransmit frame i and all subsequent frames. Case 2: A does not soon send additional frames. B receives nothing and returns neither an RR nor a REJ. When A’s timer expires, it transmits an RR frame that includes a bit known as the P bit, which is set to 1.

6 Go-Back-N ARQ B interprets the RR frame with a P bit of 1 as a command that must be acknowledged by sending an RR indicating the next frame that it expects, which is frame i. When A receives the RR, it retransmits frame i.

7 Go-Back-N ARQ 2. Damaged RR. There are two subcases: Case 1:
Receiver gets frame i and send acknowledgement (i+1) which is lost Acknowledgements are cumulative, so next acknowledgement (i+n) may arrive before sender times out on frame i

8 Go-Back-N ARQ Case 2: If A’s timer expires, it transmits an RR command as in Case 1b. It sets another timer, called the P-bit timer. If B fails to respond to the RR command, or if its response suffers an error in transit, then A’s P-bit timer will expire. At this point, A will try again by issuing a new RR command and restarting the P-bit timer. This procedure is tried for a number of iterations.

9 Go-Back-N ARQ 3. Damaged REJ.
If a REJ is lost, this is equivalent to Damaged frame Case 1. Sender times out and sends a request for acknowledgment: RR(P=1) Receiver responds to the request by resending REJi Sender retransmits frame i and all subsequent frames

10 Selective Reject ARQ Also called selective retransmission
Only rejected frames are retransmitted Subsequent frames are accepted by the receiver and buffered Minimizes retransmission Receiver must maintain large enough buffer More complex logic in transmitter to send frames out of sequence  Go-back-N is more commonly used. Useful for satellite links due to long propagation delay Max window size (2k–1) When a data frame is timed-out, the sender retransmits the frame rather than sending RR(P=1).

11 Go-Back-N ARQ

12


Download ppt "MODULE I NETWORKING CONCEPTS."

Similar presentations


Ads by Google