Links, Encoding, Framing




CS158a

Chris Pollett

Feb. 8, 2023

Outline

Introduction

Leased-Lines

More on Leased-Lines

Last-mile Links

Wireless Links

What is the connection between frequency and channel capacity?

Encoding

NRZ Encoding

In the nonreturn to zero (NRZ) encoding we use high for a certain amount of time to represent a 1 and low for a certain amount of time to represent 0.

NRZI Encoding

In the nonreturn to zero inverted (NRZI) encoding, to send a 1 the sender transitions from the current signal value to the opposite; to send a 0 the sender stays on the current signal.

Manchester Encoding

In the Manchester encoding, one sends the XOR of the clock and the NRZ-encode data.

Diagram of clock, bit, and Manchester Encoding

In-Class Exercise

4B/5B encoding

Framing

Byte-oriented Protocols

Sentinel-based Framing

8 bits8 bits8 bits8 bits8 bits16 bits
SYNSYNSOHHeaderSTXBodyETXCRC

PPP Frames

8 bits8 bits8 bits16 bits16 bits8 bits
FlagAddressControlProtocolPayloadChecksumFlag

Link Control Protocol

Byte-count Framing

Bit-oriented Protocols (HDLC)

Bit-stuffing

SONET and Clock-based Framing

SONET STS-1 Frames