Professional Documents
Culture Documents
Guohong Cao Department of Computer Science & Engineering 310 Pond Lab gcao@cse.psu.edu
Timing problems require a mechanism to synchronize the transmitter and receiver Two solutions
Asynchronous Synchronous
Asynchronous
Data transmitted one character at a time
5 to 8 bits
Timing only needs to be maintained within each character Re-sync with each character Properties
Simple Cheap Overhead of 2 or 3 bits per char (~20%) Good for data with large gaps (keyboard)
3 Guohong Cao (gcao@cse.psu.edu)
Characteristics of Interface
Mechanical (ITU-T v.24)
Connection plugs (Mechanical ISO 2110)
Flow Control
Ensuring the sending entity does not overwhelm the receiving entity
Preventing buffer overflow
Electrical
Voltage, timing, encoding (RS-232)
Transmission time
Time taken to emit all bits into the medium
Functional
Data, control, timing, grounding
Propagation time
Time for a bit to traverse the link
Procedural
Sequence of events
9
10
Fragmentation
Large block of data may be split into small frames
Limited buffer size Errors detected sooner (when the whole frame received) On error, retransmission of smaller frames is needed Prevents one station occupying medium for long periods
Each frame is numbered ACK includes the next expected frame sequence number
Use RR (Receive Ready)
15
Error Detection
Additional bits added for error detection. Parity
The parity bit is chosen so that the character has even (even parity) or odd (odd parity) number of ones Even number of bit errors cant be detected
Error Control
Detection and correction of errors
Lost frames, damaged frames
Go Back N
Based on sliding window If no error, ACK as usual with the next expected frame Use window to control the number of outstanding frames If error, reply with a reject
Discard that frame and all future frames until the error frame is received correctly The transmitter must go back and retransmit that frame and all subsequent frames
21 22
Frame i is lost
Transmitter sends i+1 Receiver gets frame i+1 out of sequence Receiver sends reject i Transmitter goes back to frame i and retransmits
Selective Reject
Also called selective retransmission Only the rejected frames are retransmitted Subsequent frames are accepted by the receiver and buffered Minimizes retransmission Receiver must maintain large enough buffer Sequence number:
Go-back-N: Max 2k - 1 Selective reject: Max 2k-1 (Max 2k 1)
25 26
Secondary station
controlled by the primary station. Frames issued are called responses
Combined station
May issue commands and responses
Link Configurations:
Unbalanced
One primary and one or more secondary stations
Balanced
Two combined stations: supports full duplex and half duplex
Frame Structure
Synchronous transmission Transmitted in frames Single frame format for all data and control exchanges
Address Field
Identifies the secondary station that will sent or receive frame Usually 8 bits long May be extended to multiple of 7 bits
LSB of each octet indicates that it is the last octet (1) or not (0)
29
30
Control Field
Three frame types
Information - data to be transmitted to the upper layer
Flow and error control is piggybacked on information frames
Supervisory - ARQ when piggyback not used Unnumbered - supplementary link control, such as set initialization mode (SIM), disconnect (DISC), set asynchronous balanced/extended mode (SABM, SABME), set normal response/extended mode (SNRM/SNRME), unnumbered ack (UA).
Operation Examples(1)
33
34
Multiplexing
Frequency-Division Multiplexing (FDM)
Channel bandwidth exceeds per user requirements. Each signal is modulated to a different carrier frequency, e.g. broadcast radio Channel allocated even if no data in transmission
Carrier Standards
North America Name # of voice channel 24 48 96 672 4032 Data rate (Mbps) 1.544 3.152 6.312 International (ITU-T) level # of voice channels 30 120 480 1920 7680 Data rate (Mbps) 2.048 8.448 34.368 139.264 565.148
1 2 3
44.736 4 274.176 5
Sonet/SDH
Synchronous Optical Network (Sonet) by BellCore and ANSI Synchronous Digital Hierarchy (SDH), Compatible with Sonet, standardized by ITU-T. STS-1/OC-1: 51.84 Mbps STS-3/OC-3: 155.52 STS-9/OC-9: 466.56 STS-12/OC-12: 622.08 STS-24/OC-24: 1244.16
43