Week 04 - M5 Frames and Errors
Week 04 - M5 Frames and Errors
• Definition:
• Defines the transmission and reception of an unstructured raw bit
stream over a physical medium.
• Transmission technique (digital, analog)
• Modifies the simple digital signal pattern to better accommodate the
characteristics of the physical medium, and to aid in bit and frame
synchronization
• Electrical/optical, mechanical, and functional interfaces to the
physical medium
• Electrical/optical: modulation, signal strength, voltage levels, bit times…
• Mechanical: cable, plugs, pins...
• functional/procedural: how to activate, maintain, and deactivate links…
• Carries the signals for all of the higher layers
Include:
Sampling/interpolating
Quantizing
Amplification
Filtering
Etc.
Receiver
Transmitter
Data frame Error Check. Then
Control frames Processes Send ACK or NACK
Generates Signals pass through the Signals
Signals Transmission Channel
Control frame
Header contains
CRC
ACK or NAK
McNair EEL5718/4598 Computer Communications 5
Framing Synchronous Transmissions
• Two levels
• Clock
• Separate clock line (one short pulse per bit time)
• Embedded clock within the data
(e.g., Manchester, or use of Sinusoids)
• Frame delineation
• Send long streams of bits in frames
Preamble Postamble
Bits Control Control Bits
Fields Data Bits Fields
(aka Start Flag) (akaEndFlag)
+5 volts
Manchester Code
-5 volts
+5 volts
NRZ
-5 volts
10110111111011111010
10110111111011111010
Processes Signals Processes
Generates Signals
Data
Signals pass through the
Source Transmitter Transmission Channel
Receiver Destination
Start b b b b b b
3.3V
Serial port
0 2 3 4 b b 7
Stop
1 5 6 0V
0 1 1 0 0 0 0 1 1-0-1-1-0-0-0-0-1-0
Adds Adds
clock clock-pulses stop start
trigger bit-shifts bit bit
McNair EEL5718/4598 Computer Communications 14
UART Serial data reception
input voltage
clock
Receiver clock-pulses trigger
voltage-sampling and
bit-shifts at regular intervals
The receiver’s internal ‘shift’ register
1-0-1-1-0-0-0-0-1-0 0 1 1 0 0 0 0 1
data-bits
• Bit Error
• BER=10-2 means:
On average, 1 out of every 100 bits is an error
• Burst Errors
• BER=10-2 burst adds more info about channel conditions.
For example, say 100 out the first 100 bits are errors, and
the next 9900 bits are correct
• Typical BER values:
• Electrical link, BER 10-9
• Optical link, BER 10-12
• Wireless link, BER 10-2
Example