Bcs502 Module2 Notes
Bcs502 Module2 Notes
1) Single-Bit Error
Only 1 bit of a given data is changed
→ from 1 to 0 or
→ from 0 to 1 (Figure 10.1a).
2) Burst Error
Two or more bits in the data have changed
→ from 1 to 0 or
→ from 0 to 1 (Figure 10.1b).
A burst-error occurs more than a single-bit error. This is because:
o Normally, the duration of noise is longer than the duration of 1-bit.
o When noise affects data, the noise also affects the bits.
o The no. of corrupted-bits depends on data-rate and duration of noise.
2.1.2 Redundancy
• The central concept in detecting/correcting errors is redundancy.
• Some extra-bits along with the data have to be sent to detect/correct errors.
These extra bits are called redundant-bits.
• The redundant-bits are
→ added by the sender and
→ removed by the receiver.
• The presence of redundant-bits allows the receiver to detect/correct errors.
2.1.3 Error Detection vs. Error Correction
• Error-correction is more difficult than error-detection.
1) Error Detection
o Here, we are checking whether any error has occurred or not.
o The answer is a simple YES or NO.
o We are not interested in the number of corrupted-bits.
2) Error Correction
Here, we need to know
→ exact number of corrupted-bits and
→ location of bits in the message.
Two important factors to be considered:
1) Number of errors and
2) Message-size.
2.1.4 Coding
Redundancy is achieved through various coding-schemes.
1) Sender adds redundant-bits to the data-bits. This process creates a
relationship between
→ redundant-bits and
→ data-bits.
2) Receiver checks the relationship between redundant-bits & data-bits to
detect/correct errors.
Example 2.1
If code has to detect upto ‘s’ errors, the minimum-distance b/w the
valid codes must be ‘s+1’ i.e. dmin=s+1.
We use a geometric approach to define dmin=s+1.
1) At Sender
The encoder uses a generator that takes a copy of a 4-bit data-word (a0, a1,
a2, and a3) and generates a parity-bit r0.
The encoder
→ accepts a copy of a 4-bit data-word (a0, a1, a2, and a3) and
→ generates a parity-bit r0 using a generator
→ generates a 5-bit code-word
The parity-bit & 4-bit data-word are added to make the number of 1s in the
code-word even.
The addition is done by using the following:
Review Questions
1. What are the types of errors?
2. Compare error detection vs. error correction?
3. What are error detecting block coding techniques?
2) At Receiver
The possibly corrupted code-word is fed into the checker.
The checker is a replica of the generator.
The checker divides the code-word by the divisor.
The remainder is called syndrome bits (r2r1r0).
The syndrome bits are fed to the decision-logic-analyzer.
The decision-logic-analyzer performs following functions:
i) For No Error
o If all syndrome-bits are 0s, the received code-word is accepted.
o Data-word is extracted from received code-word (Figure 10.7a).
ii) For Error
o If all syndrome-bits are not 0s, the received code-word is discarded
(Figure 10.7b).
Example 2.3
Given Dataword 10100111
Divisor 10111
Show the generation of codeword at the sender using binary division.
2.3.2 Polynomials
A pattern of 0s and 1s can be represented as a polynomial with coefficients
of 0 and 1 (Figure 10.8).
The power of each term shows the position of the bit; the coefficient shows
the value of the bit.
Standard Polynomials
1) At Source
Firstly the message is divided into m-bit units.
Then, the generator creates an extra m-bit unit called the checksum.
The checksum is sent with the message.
2) At Destination
The checker creates a new checksum from the combination of the message
and sent checksum.
i) If the new checksum is all 0s, the message is accepted.
ii) If the new checksum is not all 0s, the message is discarded.
o If the number has more than n bits, the extra leftmost bits need to be
added to the n rightmost bits (wrapping).
o A negative number can be represented by inverting all bits (changing
0 to 1 and 1 to 0).
o This is the same as subtracting the number from 2n-1.
1) At Sender
o The sender initializes the checksum to 0 and adds all data items and the
checksum. The result is 36.
o However, 36 cannot be expressed in 4 bits. The extra two bits are wrapped
and added with the sum to create the wrapped sum value 6. The sum is then
complemented, resulting in the checksum value 9 (15 - 6 = 9).
o The sender now sends six data items to the receiver including the checksum
9.
2) At Receiver
o The receiver follows the same procedure as the sender.
o It adds all data items (including the checksum); the result is 45.
o The sum is wrapped and becomes 15. The wrapped sum is complemented
and becomes 0.
o Since the value of the checksum is 0, this means that the data is not
corrupted. The receiver drops the checksum and keeps the other data items.
o If the checksum is not zero, the entire packet is dropped.
2.4.1.2 Internet Checksum
Traditionally, the Internet has been using a 16-bit checksum.
The sender or the receiver uses five steps.
2.4.1.3 Algorithm
The first, 8-bit Fletcher, calculates on 8-bit data items and creates a 16-bit
checksum.
The second, 16-bit Fletcher, calculates on 16-bit data items and creates a
32-bit checksum.
The 8-bit Fletcher is calculated over data octets (bytes) and creates a 16-
bit checksum.
The calculation is done modulo 256 (28), which means the intermediate
results are divided by 256 and the remainder is kept.
The algorithm uses two accumulators, L and R.
The first simply adds data items together. The second adds a weight to the
calculation.
2.4.2.2 Adler Checksum
The Adler checksum is a 32-bit checksum.
It is similar to the 16-bit Fletcher with three differences (Figure 10.19).
1) Calculation is done on single bytes instead of 2 bytes at a time.
2) The modulus is a prime number (65,521) instead of 65,536.
3) L is initialized to 1 instead of 0.
A prime modulo has a better detecting capability in some combinations of
data.
Review Questions
1. Why hamming distance is used?
2. What is parity-check code?
3. How Secure is CRC code?
4. What polynomial codes?
5. Why internet checksum is Needed?
6. Compare i) Fletcher checksum and ii) Adler checksum.
Lecture 12: Data link control: DLC Services: Framing, Flow Control,
Error Control, Connectionless and Connection Oriented
2.5 DLC SERVICES
The data link control (DLC) deals with procedures for communication
between two adjacent nodes.
Data link control functions include 1) Framing and 2) Flow control and 3)
Error control.
2.5.1 Framing
A frame is a group of bits. Framing means organizing the bits into a frame
that are carried by the physical layer.
The data-link-layer needs to form frames, so that each frame is
distinguishable from another.
Framing separates a message from other messages by adding sender-
address & destination-address.
The destination-address defines where the packet is to go.
The sender-address helps the recipient acknowledge the receipt.
Q: Why the whole message is not packed in one frame?
Ans: Large frame makes flow and error-control very inefficient. Even a
single-bit error requires the re-transmission of the whole message. When a
message is divided into smaller frames, a single-bit error affects only that
small frame.
2.5.1.1 Frame Size
Types of frames
1) Fixed-Size Framing, There is no need for defining boundaries of frames; the
size itself can be used as a delimiter. For example: ATM WAN uses frames of
fixed size called cells.
2) Variable-Size Framing, We need to define the end of the frame and the
beginning of the next frame. Two approaches are used: i) Character-oriented
approach ii) Bit-oriented approach.
Data to be carried are 8-bit characters from a coding system such as ASCII
(Figure 11.1).
The header and the trailer are also multiples of 8 bits.
Header carries the source and destination-addresses and other control
information. Trailer carries error-detection or error-correction redundant
bits.
To separate one frame from the next frame, an 8- bit (I-byte) flag is added
at the beginning and the end of a frame.
The flag is composed of protocol-dependent special characters and it
signals the start or end of a frame.
Problem:
Character-oriented framing is suitable when only text is exchanged by the
data-link-layers.
However, if we send other type of information (say audio/video), then any
pattern used for the flag can also be part of the information.
If the flag-pattern appears in the data-section, the receiver might think that
it has reached the end of the frame.
Note: byte stuffing is the process of adding one extra byte whenever there is a
flag or escape character in the text.
2.5.1.3 Bit-Oriented Framing
The data-section of a frame is a sequence of bits to be interpreted by the
upper layer as text, audio, video, and so on.
However, in addition to headers and trailers, we need a delimiter to
separate one frame from the other.
Most protocols use a special 8-bit pattern flag 01111110 as the delimiter to
define the beginning and the end of the frame (Figure 11.3).
Problem:
If the flag-pattern appears in the data-section, the receiver might think that
it has reached the end of the frame.
Solution: A bit-stuffing is used.
In bit stuffing, if a 0 and five consecutive 1 bits are encountered, an extra
0 is added. This extra stuffed bit is eventually removed from the data by
the receiver. (Figure 11.4).
This guarantees that the flag field sequence does not inadvertently appear
in the frame.
If the receiving node cannot process and deliver the packet to its network
at the same rate that the frames arrive, it becomes overwhelmed with
frames.
Here, flow control can be feedback from the receiving node to the sending
node to stop or slow down pushing frames.
2.5.2.1.1 Buffers
Flow control can be implemented by using buffer.
A buffer is a set of memory locations that can hold packets at the sender
and receiver.
Normally, two buffers can be used.1) First buffer at the sender. 2) Second
buffer at the receiver.
The flow control communication can occur by sending signals from the
consumer to the producer.
When the buffer of the receiver is full, it informs the sender to stop pushing
frames.
2.5.2.2 Error Control
Error-control includes both error-detection and error-correction.
Error-control allows the receiver to inform the sender of any frames
lost/damaged in transmission.
A CRC is added to the frame header by the sender and same is checked by
the receiver.
Connection-Oriented Protocol
A logical connection should first be established between the two nodes
(setup phase).
After all frames that are somehow related to each other are transmitted
(transfer phase), the logical connection is terminated (teardown phase).
The frames are numbered and sent in order.
If the frames are not received in order, the receiver needs to wait until all
frames belonging to the same set are received and then deliver them in
order to the network layer.
Connection oriented protocols are rare in wired LANs, but we can see them
in some point-to-point protocols, some wireless LANs, and some WANs.
Review Questions
1. What are the types of frames.
2. Why character oriented protocols are used?
3. What is byte stuffing and unstuffing?
4. Explain bit oriented protocol?
5. Differentiate between character oriented and bit oriented format for
Framing?
2.6.1.1 Design
1) At Sender
The data-link-layer
→ gets data from its network-layer
→ makes a frame out of the data and
→ sends the frame.
2) At Receiver
The data-link-layer
→ receives a frame from its physical layer
→ extracts data from the frame and
→ delivers the data to its network-layer.
Data-link-layers of sender & receiver provide transmission services for
their network-layers.
Data-link-layers use the services provided by their physical layers for the
physical transmission of bits.
2.6.1.2 FSMs
Two main requirements:
1. The sender-site cannot send a frame until its network-layer has a data
packet to send.
2. The receiver-site cannot deliver a data packet to its network-layer until
a frame arrives.
The above two requirements are shown using two FSMs. Each FSM has
only one state, the ready state.
1) At Sending Machine
o The sending machine remains in the ready state until a request comes from
the process in the network layer.
o When this event occurs, the sending machine encapsulates the message in
a frame and sends it to the receiving machine.
2) At Receiving Machine
o The receiving machine remains in the ready state until a frame arrives from
the sending machine.
o When this event occurs, the receiving machine decapsulates the message
out of the frame and delivers it to the process at the network layer.
Example 2.6
2.6.2.1 Design
1) At Sender
The sender
o sends one frame & starts a timer
o keeps a copy of the sent-frame and
o waits for ACK-frame from the receiver (okay to go ahead).
o If an ACK-frame arrives before the timer expires, the timer is stopped
and the sender sends the next frame. Also, the sender discards the copy
of the previous frame.
o If the timer expires before ACK-frame arrives, the sender resends the
previous frame and restarts the timer
At Receiver
o To detect corrupted frames, a CRC is added to each data frame.
o When a frame arrives at the receiver-site, the frame is checked.
o If frame’s CRC is incorrect, the frame is corrupted and discarded.
o The silence of the receiver is a signal for the sender that a frame was either
corrupted or lost.
2.6.2.2 FSMs
Sender States
Sender is initially in the ready state, but it can move between the ready and
blocking state.
Ready State: When the sender is in this state, it is only waiting for a packet
from the network layer.
o If a packet comes from the network layer, the sender creates a frame,
saves a copy of the frame, starts the only timer and sends the frame. The
sender then moves to the blocking state.
Blocking State: When the sender is in this state, three events can occur:
a) If a time-out occurs, the sender resends the saved copy of the
frame and restarts the timer.
b) If a corrupted ACK arrives, it is discarded.
c) If an error-free ACK arrives, the sender stops the timer and
discards the saved copy of the frame. It then moves to the ready state.
Receiver
The receiver is always in the ready state. Two events may occur:
a) If an error-free frame arrives, the message in the frame is delivered to
the network layer and an ACK is sent.
b) If a corrupted frame arrives, the frame is discarded.
Example:2.7
Sequence Numbers
Frames need to be numbered. This is done by using sequence-numbers.
A sequence-number field is added to the data-frame.
Sequence numbers are 0, 1, 0, 1, 0, 1, . .
Acknowledgment Numbers
An acknowledgment-number field is added to the ACK-frame.
The acknowledgment numbers can also be 1, 0, 1, 0, 1, 0, …
The acknowledgment-numbers always announce the sequence-number of
the next frame expected by the receiver.
For example, If frame-0 has arrived safely, the receiver sends an ACK-
frame with acknowledgment-1 (meaning frame-1 is expected next).
Example 2.8
2.6.3 Piggybacking
A technique called piggybacking is used to improve the efficiency of the
bidirectional protocols.
The data in one direction is piggybacked with the acknowledgment in the
other direction.
In other words, when node A is sending data to node B, Node A also
acknowledges the data received from node B.
Review Questions
1. What is a simplest protocol?
2. What are the functions at sender and receiver site for the simplest protocol?
3. What are the benefits of Stop-and-Wait protocol?
4. Why Piggybacking is needed?
Lecture-14: High Level Data Link Control and Point to Point Protocol
2.7 High-Level Data Link Control (HDLC)
HDLC is a bit-oriented protocol for communication over point-to-point and
multipoint links.
HDLC implements the ARQ mechanisms.
2.7.1 Configurations and Transfer Modes
HDLC provides 2 common transfer modes that can be used in different
configurations: 1) Normal response mode (NRM) 2) Asynchronous
balanced mode (ABM).
NRM
The station configuration is unbalanced (Figure 11.14).
We have one primary station and multiple secondary stations.
A primary station can send commands, a secondary station can only
respond.
The NRM is used for both point-to-point and multiple-point links.
ABM
The configuration is balanced (Figure 11.15).
Link is point-to-point, and each station can function as a primary and a
secondary (acting as peers). This is the common mode today.
2.7.2 Framing
To provide the flexibility necessary to support all the options possible in
the modes and configurations, HDLC defines three types of frames:
o Information frames (I-frames): are used to transport user data and
control information relating to user data (piggybacking).
o Supervisory frames (S-frames): are used only to transport control
information.
o Unnumbered frames (U-frames): are reserved for system
management.
o Information carried by U-frames is intended for managing the link
itself.
Each type of frame serves as an envelope for the transmission of a different
type of message.
2.7.2.1 Frame Format
2) Address Field
This field contains the address of the secondary station.
If a primary station created the frame, it contains a to-address.
If a secondary creates the frame, it contains a from-address.
This field can be 1 byte or several bytes long, depending on the needs of
the network.
3) Control Field
This field is one or two bytes used for flow and error control.
4) Information Field
This field contains the user's data from the network-layer or management
information. Its length can vary from one network to another.
5) FCS Field
This field is the error-detection field. (FCS Frame Check Sequence)
This field can contain either a 2- or 4-byte standard CRC.
2.7.2.1.1 Control Fields of HDLC Frames
The control field determines the type of frame and defines its functionality
(Figure 11.17).
2.8.1 Framing
PPP uses a character-oriented (or byte-oriented) frame (Figure 11.20).
6) FCS
This field is the PPP error-detection field.
This field can contain either a 2- or 4-byte standard CRC.
2.8.1.1 Byte Stuffing
Since PPP is a byte-oriented protocol, the flag in PPP is a byte that needs
to be escaped whenever it appears in the data section of the frame.
The escape byte is 01111101, which means that every time the flag like
pattern appears in the data, this extra byte is stuffed to tell the receiver that
the next byte is not a flag.
Obviously, the escape byte itself should be stuffed with another escape
byte.
2.8.2 Transition Phases
The transition diagram starts with the dead state (Figure 11.21).
1) Dead State
In dead state, there is no active carrier and the line is quiet.
2) Establish State
When 1 of the 2 nodes starts communication, the connection goes into the
establish state.
In establish state, options are negotiated between the two parties.
3) Authenticate State
If the 2 parties agree that they need authentication, then the system needs
to do authentication. Otherwise, the parties can simply start
communication.
4) Open State
Data transfer takes place in the open state.
5) Terminate State
When 1 of the endpoints wants to terminate connection, the system goes to
terminate state.
2.8.3 Multiplexing
Although PPP is a link-layer protocol, it uses another set of protocols to
establish the link, authenticate the parties involved, and carry the network-
layer data.
Three sets of protocols are defined to make PPP powerful: the Link Control
Protocol (LCP), two Authentication Protocols (APs), and several Network
Control Protocols (NCPs).
Link Control Protocol
The Link Control Protocol (LCP) is responsible for establishing,
maintaining, configuring, and terminating links.
It also provides negotiation mechanisms to set options between the two
endpoints. Both endpoints of the link must reach an agreement about the
options before the link can be established.
All LCP packets are carried in the payload field of the PPP frame with the
protocol field set to C021 in hexadecimal (see Figure 11.23).
The code field defines the type of LCP packet. There are 11 types of
packets, as shown in Table 11.1.
Authentication Protocols
The Password Authentication Protocol (PAP)
It is a simple authentication procedure with a two-step process:
a. The user who wants to access a system sends an authentication
identification and a password.
b. The system checks the validity of the identification and password and
either accepts or denies connection.
CHAP
The Challenge Handshake Authentication Protocol (CHAP) is a three-way
handshaking authentication protocol that provides greater security than
PAP.
a. The system sends the user a challenge packet containing a challenge
value, usually a few bytes.
b. The user applies a predefined function that takes the challenge value and
the user’s own password and creates a result. The user sends the result in
the response packet to the system.
c. The system does the same. It applies the same function to the password
of the user (known to the system) and the challenge value to create a result.
If the result created is the same as the result sent in the response packet,
access is granted; otherwise, it is denied.
Review Questions
1. What is the significance of HDLC frame format?
2. What types of frame are used in HDLC?
3. What is the frame structure of PPP protocol?
4. What are functions in transition phase of Point-to-Point Protocol?
2.9.1.1.2 Throughput
The average number of successful transmissions is given by
If a station misses the time-slot, the station must wait until the beginning
of the next time-slot.
If 2 stations try to resend at beginning of the same time-slot, the frames
will collide again (Fig 12.6).
The vulnerable time is given by: vulnerable time= Tfr
2.9.1.2.1 Throughput
The average number of successful transmissions is given by
2.9.2 CSMA
CSMA was developed to minimize the chance of collision and, therefore,
increase the performance.
CSMA is based on the principle “sense before transmit” or “listen before
talk.”
Collision occurs when a station sends a frame, and other station also sends
a frame during propagation time.
If the first bit of the frame reaches the end of the medium, every station
will refrain from sending.
1-Persistent
Before sending a frame, a station senses the line (Figure 12.10a).
i) If the line is idle, the station sends immediately (with probability = 1).
ii) If the line is busy, the station continues sensing the line.
This method has the highest chance of collision because 2 or more stations:
→ may find the line idle and
→ send the frames immediately.
Non-persistent
Before sending a frame, a station senses the line (Figure 12.10b).
i) If the line is idle, the station sends immediately.
ii) If the line is busy, the station waits a random amount of time and then
senses the line again.
At time t1, station A has executed its procedure and starts sending the bits
of its frame.
At time t2, station C has executed its procedure and starts sending the bits
of its frame.
The collision occurs sometime after time t2.
Station C detects a collision at time t3 when it receives the first bit of A's
frame. Station C immediately aborts transmission.
Station A detects collision at time t4 when it receives the first bit of C's
frame. Station A also immediately aborts transmission.
Station A transmits for the duration t4–t1.
Station C transmits for the duration t3-t2.
For the protocol to work: The length of any frame divided by the bit rate
must be more than either of these durations.
2.9.3.1 Minimum Frame Size
For CSMA/CD to work, we need to restrict the frame-size.
Before sending the last bit of the frame, the sender must detect a collision
and abort the transmission.
This is so because the sender does not keep a copy of the frame and does
not monitor the line for collision-detection.
2.9.3.2 Procedure
2.9.3.4 Throughput
The throughput of CSMA/CD is greater than pure or slotted ALOHA.
The maximum throughput is based on different value of G , persistence
method used (non-persistent, 1-persistent, or p-persistent) and ‘p‟ value in
the p-persistent method.
For 1-persistent method, the maximum throughput is 50% when G =1.
For non-persistent method, the maximum throughput is 90% when G is
between 3 and 8.
2.9.4 CSMA/CA
2) To distinguish b/w these 2 cases, the received signals in these 2 cases must be
different.
CSMA/CA was invented to avoid collisions on wireless networks.
Three methods to avoid collisions (Figure 12.16):
1) Interframe space
2) Contention window
3) Acknowledgments
1. The source senses the medium by checking the energy level at the carrier
frequency. If the medium is idle, then the source waits for a period of time
called the DCF interframe space (DIFS). Finally, the source sends a RTS.
2. The destination receives the RTS, waits a period of time called the short
interframe space (SIFS) and sends a control frame CTS to the source. CTS
indicates that the destination station is ready to receive data.
3. The source receives the CTS, waits a period of time SIFS and sends a data
to the destination
4. The destination receives the data, waits a period of time SIFS and sends a
acknowledgment ACK to the source. ACK indicates that the destination
has been received the frame.
2.9.4.2 Network Allocation Vector
When a source-station sends an RTS, it includes the duration of time that
it needs to occupy the channel.
The remaining stations create a timer called a network allocation vector
(NAV).
NAV indicates waiting time to check the channel for idleness. Each time
a station accesses the system and sends an RTS frame, other stations start
their NAV.
2.9.4.3 Collision During Handshaking
Two or more stations may try to send RTS at the same time. These RTS
may collide.
The source assumes there has been a collision if it has not received CTS
from the destination. The backoff strategy is employed, and the source tries
again.
2.9.4.4 Hidden-Station Problem
Figure 12.17 also shows that the RTS from B reaches A, but not C.
However, because both B and C are within the range of A, the CTS reaches
C.
Station C knows that some hidden station is using the channel and refrains
from transmitting until that duration is over.
2.9.4.5 CSMA/CA and Wireless Networks
CSMA/CA was mostly intended for use in wireless networks.
However, it is not sophisticated enough to handle some particular issues
related to wireless networks, such as hidden terminals or exposed
terminals.
Review Questions
1. Why random access protocols are needed?
2. Compare pure ALOHA and slotted ALOHA?
3. Why CSMA is used?
4. What are different persistence methods used and which one is efficient?
2.10.2 Polling
In a network, One device is designated as a primary station and Other
devices are designated as secondary stations.
Functions of primary-device:
o The primary-device controls the link.
o The primary-device is always the initiator of a session.
o The primary-device is determines which device is allowed to use the
o channel at a given time.
o All data exchanges must be made through the primary-device.
The secondary devices follow instructions of primary-device.
Disadvantage: If the primary station fails, the system goes down.
Poll and select functions are used to prevent collisions (Figure 12.19).
Select
If the primary wants to send data, it tells the secondary to get ready to receive;
this is called select function.
The primary, alerts the secondary about upcoming transmission by sending select
frame (SEL), then waits for an acknowledgment (ACK) from secondary, then
sends the data frame and finally waits for an acknowledgment (ACK) from the
secondary.
Poll
If the primary wants to receive data, it asks the secondaries if they have
anything to send, this is called poll function.
When the first secondary is approached, it responds either with a NAK
frame if it has no data to send or with data-frame if it has data to send.
If the response is negative (NAK frame), then the primary polls the next
secondary in the same manner.
When the response is positive (a data-frame), the primary reads the frame
and returns an acknowledgment (ACK frame).
2.10.3 Token Passing
In a network, the stations are organized in a ring fashion i.e. for each
station; there is a predecessor and a successor.
1) The predecessor is the station which is logically before the station in the
ring.
2) The successor is the station which is after the station in the ring.
The current station is the one that is accessing the channel now.
A token is a special packet that circulates through the ring.
A station can send the data only if it has the token.
When a station wants to send the data, it waits until it receives the token
from its predecessor. Then, the station holds the token and sends its data.
When the station finishes sending the data, the station releases the token
and passes the token to the successor.
Main functions of token management:
1. Stations must be limited in the time they can hold the token.
2. The token must be monitored to ensure it has not been lost or destroyed.
3. Assign priorities to the stations and the types of data being transmitted.
4. Make low-priority stations release the token to high priority stations.
.Question Bank
1) Explain two types of errors (4)
2) Compare error detection vs. error correction (2)
3) Explain error detection using block coding technique. (10)
4) Explain hamming distance for error detection (6)
5) Explain parity-check code with block diagram. (6)
6) Explain CRC with block diagram & an example. (10)
7) Write short notes on polynomial codes. (5)
8) Explain internet checksum algorithm along with an example. (6)
9) Explain the following:
i) Fletcher checksum and ii) Adler checksum (8)
10) Explain various types of checksum. (6)
11) Explain two types of frames. (6)
12) Explain character oriented protocol. (6)
13) Explain the concept of byte stuffing and unsnuffing with example. (6)
14) Explain bit oriented protocol. (6)
15) Differentiate between character oriented and bit oriented format for
framing.(6)
16) Compare flow control and error control. (4)
17) With a neat diagram, explain the design of the simplest protocol with no
flow control. (6)
18) Write algorithm for sender site and receiver site for the simplest \
protocol. (6)
19) Explain Stop-and-Wait protocol (8)
20) Explain the concept of Piggybacking (4)
21) Explain in detail HDLC frame format. (8)
22) Explain 3 type of frame used in HDLC (8)
23) With a neat schematic, explain the frame structure of PPP protocol. (8)
24) Explain framing and transition phases in Point-to-Point Protocol. (8)