

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Islamabad campus Dept of Electrical Engineering
Course Title: Data Communication and Computer Networks Task: Assignment 3 Instructor: Dr. Zeeshan Ali Khan Designation: Assistant Professor, Dept. of Electrical Engineering Contact Info: [email protected], Room # 217 Points: 100 Due by: 27 th^ March 2012
Q1. Suppose the information content of a packet is the bit pattern 1010101010101011 and an even parity scheme is being used. What would the value of the extra bits for the case of a two-dimensional parity-scheme? Here the 16 bits of data are divided into 4 rows and 4 columns (20 marks)
Q2 : Consider the 4-bit generator, G=1001 and suppose that D has the value 10101010. What is the value of remainder R after performing the division using CRC mechanism? (Note that we add r bits at the end of data D to perform the division. Where, r = number of bits in G – 1) (20 marks)
Islamabad campus Dept of Electrical Engineering
Q3 : What are the requirements and objectives for effective data communication between two directly connected stations? (6 marks)
Here is the list of the requirements and objectives for effective data communication between two directly connected transmitting-receiving stations:
_1. Frame synchronization
Q4: What is meant by flow control and error control? (10 marks)
Flow control enables a receiver to regulate the flow of data from a sender so that the receiver’s buffers do not overflow. In a data link control protocol, error control is achieved by retransmission of damaged frames that have not been acknowledged or for which the other side requests a retransmission.
Q5: What are the differences between stop and wait and sliding window flow control protocols? ( marks) The simplest form of flow control, known as stop-and-wait flow control, works as follows. A source entity transmits a frame. After the destination entity receives the frame, it indicates its willingness to accept another frame by sending back an acknowledgement to the frame just received. The source must wait until it receives the acknowledgement before sending the next frame. The destination can thus stop the flow of data simply by withholding acknowledgement. This procedure works fine and, indeed, can hardly be improved upon when a message is sent in a few large frames. However, it is often the case that a source will break up a large block of data into smaller blocks and transmit the data in many frames
The essence of the problem described so far is that only one frame at a time can be in transit. In situations where the bit length of the link is greater than the frame length serious inefficiencies result. Efficiency can be greatly improved by allowing multiple frames to be in transit at the same time which is the principle of sliding window flow control protocols. In this technique, sender A maintains a list of sequence numbers that it is allowed to send, and receiver B maintains a list of sequence numbers that it is prepared to receive. Each of these lists can be thought of as a window of frames. The operation is referred to as the sliding-window flow control.
Q6: Explain stop-and-wait ARQ, Go-back-N ARQ and Selective Repeat algorithms used for error control with the help of an example. (20 marks)
Stop-and-wait ARQ is based on the stop-and-wait flow control technique. The source station transmits a single frame and then must await an acknowledgment (ACK). No other data frames can be sent until the destination station's reply arrives at the source station.
The form of error control based on sliding-window flow control that is most commonly used is called go- back-N ARQ. In this method, a station may send a series of frames sequentially numbered modulo some maximum value. The number of unacknowledged frames outstanding is determined by window size, using the sliding-window flow control technique.