Point-to-Point Links: Outline
Point-to-Point Links: Outline
Point-to-Point Links: Outline
Outline
Encoding
Framing
Error Detection
Sliding Window Algorithm
NRZ
• Manchester
– transmit XOR of the NRZ encoded data and the clock
– only 50% efficient.
Bits 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0
NRZ
Clock
Manchester
NRZI
Bits
Node A Adaptor Adaptor Node B
Frames
Class
SYN
SYN
Count Header Body CRC
Hdr
Hdr
Hdr
STS-1 STS-1 STS-1
9 rows
Hdr STS-3c
90 columns
u_short
cksum(u_short *buf, int count)
{
register u_long sum = 0;
while (count--)
{
sum += *buf++;
if (sum & 0xFFFF0000)
{
/* carry occurred, so wrap around */
sum &= 0xFFFF;
sum++;
}
}
return ~(sum & 0xFFFF);
}
Fram Fram
e e
Timeout
Timeout
Time
ACK ACK
Fram
e
Timeout
ACK
(a) (c)
Fram Fram
e e
Timeout
Timeout
ACK
Fram
e
Timeout
Fram
e
Timeout
ACK
ACK
(b) (d)
…
Time
… …
NFE LFA