Professional Documents
Culture Documents
Eric L. Michelsen
Inductive Logic
HDLC
ATM
Ethernet
4/27/2001
Inductive Logic
4/27/2001
bit stream Frames are delimited by flags (8 bits: 01111110) Shared flag closes one frame and opens the next Idle is usually flags, but may be 1s (mark idle) Shared zero flag is deprecated, and often banned:
flag flag 0111111011111101111110 flag
4/27/2001
Inductive Logic
111110 . . . . 01111110
user data: five 1s closing flag
4/27/2001
stream (e.g., modem, X.25, SONET) Based on ISO/IEC 3309:1991 (HDLC framing) Frames delimited by flag octets: 01111110 (0x7E) Byte stuffing: escape = 0x7D, Following byte = (user data XOR 0x20) Flag and Escape bytes in user data MUST be escaped PPP Async Control Character Map (ACCM) specifies other values from 0 - 0x1F to escape (Tx), and ignore (Rx) Byte stuffing is often done in software
1 octet
opening flag 01111110 data
2 or 4
CRC closing flag 01111110
6
idle...
4/27/2001
Inductive Logic
Frame Relay
Uses synchronous HDLC framing sublayer Data Link Control Identifier (DLCI) multiplexes virtual
circuits. Usually only local significance. Uses Q.922 header: Usually 2-octet address (1024 DLCIs), extensions for 3 or 4 (EA=1 on last address octet) Max information length is configurable, 4096 max
1 octet 2 to 4 1 to max-length information 2 1 opening frame flag address CRC closing flag
F E DLCI[9:4] DLCI[3:0] C N 7 6 5 4 3 2 1 0 7 6 5 4 3
EA CR =0
4/27/2001
B E DE EA C =1 N 2 1 0
7
Inductive Logic
F E DLCI[9:4] DLCI[3:0] C N 7 6 5 4 3 2 1 0 7 6 5 4 3
EA CR =0
4/27/2001
B E DE EA C =1 N 2 1 0
8
Inductive Logic
RFC 1490
Multiprotocol Encapsulation in FR
Bridging header (OUI = 0x00-80-C2 for 802.1) encapsulates LAN frame PID specifies with or without LAN FCS
1 3 2 6
LAN data
0 or 4
optional LAN FCS
IP packet
Inductive Logic
This is the basis of the 64-byte minimum frame size Finally recognized by IEEE 802.3-1998 as the MAC layer
frame size 64 to 1518 48 (min) to 1502 (max) PID + data
pad (if needed)
8 octets
S preamble F D
4 FCS CRC-32
destination MAC
source MAC
Inductive Logic
10
Ethernet II
First widespread Ethernet standard PIDs administered by IEEE All IP on Ethernet is required to support this (RFC
1122), and almost all use it. All PIDs are >= 1536 (decimal) Exact packet length is not available from frame data alone, because of padding
6
S destination F MAC D
8 octets preamble
6 source MAC
2 PID
4 FCS
Common HW sublayer
4/27/2001
Inductive Logic
Common HW sublayer
11
SSAP) are essentially protocol IDs Used by IPX since Netware 3.12 (SAP=0xE0) Not used for IP Exact length available because length specifies valid data, not including padding Dont confuse Service Access Point (SAP) with Service Advertising Protocol (SAP)
6 6 2 1 1 1 43 to 1497 data
needed)
8 octets
preamble
length
4/27/2001
Inductive Logic
12
38 to 1492 data
dest source length DSAP SSAP Ctl OUI PID MAC MAC
length
4/27/2001
Inductive Logic
13
8 octets
4 FCS
IEEE 802.3
IPX header
4/27/2001
Inductive Logic
14
1536
data/pad
FCS Ethernet II
dest source length DSAP SSAP Ctl preamble MAC MAC 3-1535
data/pad
FCS 802.2
dest source length DSAP SSAP Ctl OUI PID preamble MAC MAC 8-1535 = AA = AA
data/pad
FCS
802.2 SNAP
FFFF
data/pad
FCS
Inductive Logic
Synchronous bit stream Bit stream may be framed (DS3, OC3) Cells are 53 bytes:
5 header + 48 payload Idle with null or unassigned cells Cell delineation usually by Header Error Check (HEC) ATM switches operate primarily on cells, ignoring payload type (PT) VPI/VCI is virtual circuit identifier VPI is 8 bits (UNI) or 12 bits (NNI) VCI is 16 bits CLP is like Frame Relay DE
Inductive Logic
ATM Cells
1
8 bits
GFC/ VPI...
VPI...
2 ...VPI
VCI...
...VCI... PT CLP
4 ...VCI 5
6
: : 53 Payload 48 octets
4/27/2001
16
includes Segmentation and Reassembly (SAR) of packets User-user bit in cell header payload-type (PTI) indicates last cell in packet
cell header AAL5 packet cell cell cell last cell cell cell
cell
Inductive Logic
17
0 to 65,535 octets
data data length
4/27/2001
0 to 47
pad
2
data length
4
CRC-32
UU ctl
Inductive Logic
18
RFC 1483
Multiprotocol Encapsulation in ATM
Requires an 802.2 SNAP-like header in data field Allows for raw LAN frames (bridged mode)
Header (OUI = 0x00-80-C2 for 802.1) encapsulates LAN frames PID specifies with or without LAN FCS
1 1 3 2 2 6 ... LAN data LAN frame AAL5 or FUNI data field 0 or 4 optional LAN FCS
DSAP SSAP Ctl OUI PID pad dest ... =AA =AA =3 00 80 C2 00 xx 00-00 MAC
IP packet
4/27/2001
Inductive Logic
19
Specifies RFC 1483 Routed IP format (802.2 SNAP) Defines Inverse-ARP for identifying your IP peer Defines a bunch of LAN Emulation (LANE) SVC stuff that no one uses
4/27/2001
Inductive Logic
20
FUNI
ATM standard for Frame User-Network Interface Q.922 HDLC frames to ATM AAL5 interworking Fully supports ILMI, OAM, SVCs: all ATM management
Premise Premise format
HDLC flag
Device
ATM Network
VC payload CRC
HDLC flag
Q.922
variable
VC payload
pad
4/27/2001
Inductive Logic
21
HDLC flag HDLC flag HDLC flag HDLC flag HDLC flag HDLC flag HDLC flag
03 CC
IP packet VC payload
Q.922 Q.922 03
NLPID
HDLC + PPP
PPP information
CRC
HDLC flag
4/27/2001
Inductive Logic
22
Q.922
AA AA 03 00 80 C2 00 07 00 00
HDLC flag
HDLC flag
Q.922
Q.922
AA AA 03 00 00 00 08 00
HDLC flag
HDLC flag
03 00 80 00 80 C2 00 07
HDLC flag
HDLC flag
Q.922 03 CC Q.922
variable NL03 PPP-PID PID
IP packet VC payload
HDLC flag
None
HDLC flag
HDLC flag
PPP information
CRC
HDLC flag
4/27/2001
Inductive Logic
23
ATM Encapsulations
variable
None (AAL5)
VC payload
pad
variable
AAL5 trailer
Ethernet frame
pad
variable
AAL5 trailer
IP packet
pad
variable
AAL5 trailer
FRF.5
Q.922
Optional 1 or 2 Adrs Ctl PPP-PID FF 03 1 or 2
VC payload
pad
variable
AAL5 trailer
CiscoPPP
PPP information
pad
variable
AAL5 trailer
PPP-2364NULL PPP-2364LLC
PPP-PID 1 or 2 FE FE 03 CF PPP-PID
PPP information
pad
variable
AAL5 trailer
PPP information
pad
AAL5 trailer
4/27/2001
Inductive Logic
24
DS1-ESF (unchannelized)
192-bit Payload
C1
M2
F1=0
M3
C2
M4
F2=0
Reference T1.107
M5
C3
M6
F3=1
M7
C4
M8
F4=0
4 x 6 = 24 frames = 1 superframe
M9
C5
M10
F5=1
M11
C6
M12
F6=1
Framing is bit-oriented (rather than octet-oriented) 8k frames/s x 193 = 1.544 Mbps line rate (exactly) 8k frames/s x 192 = 1.536 Mbps payload rate (exactly) 8k frames/s 24 333 superframes/s 4/27/2001
Inductive Logic
25
DS3 Framing
680-bit M-subframe
X1
C1=1
F2=0
C2=1
F3=0
FE AC C3=1
F4=1
X2
C1=1
F2=0
C2=1
F3=0
F4=1
P1
F1=1
CP FE BE DL
F2=0
CP FE BE DL
F3=0
CP FE BE DL
F4=1
P2 M1 =0 M2 =1 M3 =0
F1=1
F2=0
F3=0
F4=1
F1=1
F2=0
F3=0
F4=1
F1=1
C1=1
F2=0
C2=1
F3=0
C3=1
F4=1
F1=1
C1=1
F2=0
C2=1
F3=0
C3=1
F4=1
M-Frame Alignment
7 M-subframes = 1 M-frame
Reference T1.107
FEAC = Far End Alaram & Control FEBE = Far End Block Error DL = Data Link: HDLC EOC 26
X1 = X2 = not Remote Alarm Indication (RAI) P1 = P2 = CP = XOR of previous M-frame payload bits CP are end-to-end parity bits 44.736 Mbps line rate (exact) 44.736 x (84 / 85) 44.210 Mbps payload rate Inductive Logic 4/27/2001
9 Rows
Fixed Stuff
F2 H4 Z3
Transport overhead
Z4 Z5
Framing is byte-oriented. Line rate = 8000 frames/s x 90 x 9 x 8 bits= 51.840 Mbps 4/27/2001
Inductive Logic
Fixed Stuff
87 Columns
STS-Nc SPE
STS-3c SPE: 3 x 87 = 261 Columns
J1 B3 C2 G1 F2 H4 Z3 Z4 Z5 J1 B3 C2
F2 H4 Z3 Z4 Z5
G1
9 Rows
Line Rate = N x 51.840 Mbps Framing chosen to match STM-N STS-48c (not shown) is exactly 4 times STS-12c (POH + 15 Stuff)
9 Rows
4/27/2001
Inductive Logic
28
4/27/2001
Inductive Logic
29