Encoding and Framing




CS158a

Chris Pollett

Feb. 16, 2009

Outline

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.

4B/5B encoding

Quiz

Which of the following is used by a network adaptor to directly write memory without CPU involvement?

  1. CSR
  2. DMA
  3. device driver

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