Documente Academic
Documente Profesional
Documente Cultură
Mod 2
KTUStudents.in
KTUStudents.in
• Two types : guided and unguided media
KTUStudents.in
• A signal traveling along any of these media is directed and contained
by the physical limits of the medium.
• Twisted-pair and coaxial cable use metallic (copper) conductors that
accept and transport signals in the form of electric current.
• Optical fiber is a cable that accepts and transports signals in the form
of light.
KTUStudents.in
KTUStudents.in
2. Unshielded twisted pair cable(UTP)
KTUStudents.in
KTUStudents.in
KTUStudents.in
KTUStudents.in
• Most protocols use a special 8-bit pattern flag 01111110 as the
delimiter to define the beginning and the end of the frame.
KTUStudents.in
• This is done by stuffing 1 single bit to prevent the pattern from
looking like a flag.
• The strategy is called bit stuffing. In bit stuffing, if a 0 and five
consecutive I bits are encountered, an extra 0 is added.
• This extra stuffed bit is eventually removed from the data by the
receiver.
KTUStudents.in
KTUStudents.in
• Here two events can occur: a request from the network layer or an
arrival notification from the physical layer.
KTUStudents.in
• The responses to these events must alternate.
• In this algorithm ,a canSend variable that can either be true or false is
used.
• When a frame is sent, the variable is set to false to indicate that a
new network request cannot be sent until canSend is true.
• When an ACK is received, canSend is set to true to allow the sending
of the next frame.
KTUStudents.in
KTUStudents.in
KTUStudents.in
• If the header of the frame allows m bits for the sequence number, the
sequence numbers range from 0 to 2m - 1.
• the sender and receiver need to deal with only part of the possible
sequence numbers.
• The range which is the concern of the sender is called the send sliding
window;
• the range that is the concern of the receiver is called the receive sliding
window.
KTUStudents.in
lost - outstanding frames.
• The third range, defines the range of sequence numbers for frames
that can be sent;
• Finally, the fourth region defines sequence numbers that cannot be
used until the window slides.
KTUStudents.in
will discard all subsequent frames until it receives the one it is expecting.
• The silence of the receiver causes the timer of the unacknowledged frame
at the sender site to expire.
• This, in turn, causes the sender to go back and resend all frames, beginning
with the one with the expired timer.
• The receiver does not have to acknowledge each frame received. It can
send one cumulative acknowledgment for several frames.
KTUStudents.in
KTUStudents.in
• The sum is complemented and becomes the checksum
• Checksum is sent with data.
• At receiver :
• The unit is divided in to k sections, each of n bits
• All sections are added together using ones complement to get sum.
• Sum is complemented
• If the result is zero, data are accepted otherwise rejected.
KTUStudents.in
there is no remainder, the data is accepted, else discarded.
• Redundancy bits used by CRC are derived by dividing the data unit by
a predetermined divisor.
• The remainder is the CRC
• To be a valid CRC ,it must have exactly one less bit than the divisor
and appending it to the end of the data string must make the
resulting data string exactly divisible by the divisor.
KTUStudents.in