Professional Documents
Culture Documents
Seminar Ethernet
Thorsten Scholz
thorsten.scholz@ibs-networks.de
10/100/1000/10G Ethernet
Seminar Ethernet
2009 Ingenieurbro T. Scholz, www.IBS-Networks.de, all rights reserved No part or whole of this document may be reproduced, transmitted, transcribed, stored in a retrieval system or translated into any language without prior permission of Ingenieurbro Scholz. This document is provided "as is", without warranty of any kind, neither expressed nor implied, including but not limited to a particular purpose. Ingenieurbro Scholz may make improvements and/or changes in this document without notice at any time. 2
Contents
Overview Ph i l Layer Physical L MAC Layer Frame Forwarding Integrated Circuits Advanced Ethernet Protocols
Ethernet
Overview
History Standards & Specifications ISO/OSI Model Terms and Topology
Overview
History sto y
1972: Early ALOHA Ethernet (Xerox) 1985: First IEEE Standard 1990: 10BASE-T 1995: 100 Mbps 1997: Full Duplex Ethernet 1998: Gigabit Ethernet 2006: 10 Gigabit Ethernet
Source: IEEE802.3 Organization, Robert M. Metcalfe, 1973 IEEE802 3 Organization M Metcalfe
Overview
O ga at o Organization
Ethernet standardized by Institute of Electrical and Electronics Engineers (IEEE) E i
IEEE Working Group 802 (LAN/MAN) Subgroup 3 (Ethernet) http://grouper.ieee.org/groups/802/3/
Overview
Sta da ds Standards
Relevant standard is IEEE 802.3-2005
Contains all Ethernet standards until 2005 Standards after 2005 get working titles until new overall standard released Fast Ethernet IEEE 802.3u now integrated into IEEE 802.3-2005 Gigabit Ethernet IEEE 802.3z (mainly Fiber Optic and short reach copper) g ( y p pp ) Gigabit Ethernet IEEE 802.3ab (Twisted Pair, 100m)
IEEE 802.3an 10 Gigabit Ethernet over Copper Twisted Pair 802 3an Some transmission standards refer to FDDI standards
100 Mbps Ethernet refers to ANSI X3T12
7
Overview
Sta da ds Standards
IEEE 802.3 standard is divided in different clauses (chapters)
Containing information on transmission, coding, management, Clause 3: Media access control frame structure Clause 25: Physical Medium Dependent (PMD) sublayer and baseband medium, type 100BASE-TX Clause 28: Physical Layer link signaling for 10 Mb/s, 100 Mb/s, and 1000 Mb/s Auto-Negotiation on Twisted Pair Cl Clause 33: D T i l Equipment (DTE) Power via Media Dependent 33 Data Terminal E i P i M di D d Interface (MDI) Clause 55: Physical Coding Sublayer (PCS) Physical Medium Attachment (PCS), (PMA) sublayer and baseband medium, type 10GBASE-T
8
Overview
Naming System a g Syste
Ethernet standard naming system
1000BASE-T
Transmission Speed S d Transmission Method M h d Medium / Max. Length M L h
10 Mbps, Baseband, 500 m segment length 10 Mbps, Broadband, 3600 m segment length 10 Gbps, Baseband, T isted Pair Gbps Baseband Twisted 100 Mbps, Baseband, Fiber Optic 10 Gbps, Baseband, Long Reach Fiber Optic
9
Overview
Topology opo ogy
Bus topology for 10/100/1000 Mbps
real bus for 10 Mbps coaxial cable Repeater or Hub assisted bus for 10/100/1000 Mbps Twisted Pair
Point-to-point topology for 10 Gbps Star wiring for Twisted Pair cabling Bus wiring for coaxial cable
Twisted Pair Repeater / Hub Coaxial cable
10
Overview
ISO/OSI Layer Organization SO/OS aye O ga at o
ISO/OSI
Application Presentation Session Transport Network Data Link Physical
Ethernet related
Application Presentation Session Transport Network Logical Link Control Media Access Control Physical Medium
11
Ethernet
Overview
ISO/OSI Layer PDU Naming SO/OS aye U a g
Characters belonging to a protocol: l Protocol Data Unit (PDU) Special names for PDUs at different layers Colloquial use: Everythings a packet
Application Presentation Session Transport Network Data Link Physical Segment Datagram Packet Frame -
Medium
12
Overview
ISO/OSI Layer Organization SO/OS aye O ga at o
Every network element implements part or whole of the stack Only identical layers talk to each other Every layer may add header and trailer information Lower layers do not interpret data of higher layers
Transparent transmission
Example: Switch
Media Access Control Physical Medium
Overview
Network Elements et o e e ts
Station or DTE
Implements all layers
Repeater or Hub p
Only implements physical layer, no collision handling
Switch
Implements physical and data-link (MAC) layer
Router
Implements physical, data-link and network layer
14
Overview
Terms a d Definitions e s and e t o s
Ethernet segment: Collision domain: Physical cable between network elements Segments in which a collision propagates
Switch
Router
Hub
Switch
Hub
Coaxial cable
Hub
15
Overview
Terms a d Definitions e s and e t o s
Local Area Network (LAN)
Small range network within a campus
Ethernet
Physical Layer
Plugs & Cables Encoding & Line Code Auto-Negotiation PHY Management Power over Ethernet
17
Optical technology
Multimode 63 5/125 m 63,5/125 Multimode 50/125 m Si l Singlemode 9/125 m d
18
19
ISO/IEC 11801
Bandwidth 1 MHz
Application POTS, ISDN, Doorbell Token Ring (4 Mbps) Ethernet (10BASE-TX, 100BASE-4), ATM Eth t (10BASE TX 100BASE 4) Token Ring (16 Mbps) Fast Ethernet, FDDI, ATM (622 Mbps) Ethernet (1000 Mbps), ATM (1,2 Gbps) Ethernet (10 Gbps)
30 MH MHz
D E EA F FA
100 MHz 250 MHz 500 MHz 600 MHz 1000 MHz
20
21
DTE and DCE devices can be connected through 1:1 cable Devices of same kind must be connected by crossover cable
22
Station
(1) Transmit+ (2) Transmit Transmit(3) Receive+ (4) (5) (6) Receive Receive(7) (8)
23
Physical Layer Signaling (PLS) / Physical Coding Sublayer (PCS) Physical Media Attachment (PMA) h i l di h ( ) Physical Medium Dependent (PMD) Medium
24
Reconciliation
MII/GMII
Reconciliation
XGMII
XGXS XGXS XAUI XGMII XSBI
PLS
AUI
PCS
MAU
PMA
MDI
PMA PMD
MDI
MDI
Medium
Medium
Medium
1 Mbps 10 Mbps
10 Gbps
25
76
77
78
80
82
83
3258 bits 3259 bits 2048 bits 3 x 512 bits + 1723 bits
84
800M transfers per second Resulting maximum frequency is about 400 MHz
55 m with Cat. 6 cabling 100 m with Cat. 6a cabling
88
96
97
98
16 8 ms 62,5 7 s
100
D0 D1 CLK CLK
D2
D3
D4
D5
D6
D7
D8
D9
D10
D11
D12
Auto-Negotiation performed before link established (100/1000) Nominal length of FLP: 2 ms + 100 ns
101
111
Architecture
Register based addressing 16 bit data transfer Master-Slave bus architecture
126
127
128
129
130
New OP-Codes:
PHY address renamed to Port address (PRTAD) REG address renamed to Device address (DEVAD)
131
Power supplied by
Unused pairs Add power to the data pairs (offset voltage)
Source: Power over Ethernet: Cisco Inline Power and IEEE 802.3af, Cisco Systems 2004
138
Probing is done in intervals no less than 2 ms Aft successful d t ti PSE may optionally classify PD After f l detection ti ll l if
Based on power class 5 Power classes (up to 15,4 Watts)
139
Ethernet
MAC Layer
Tasks & Operation Addressing Frame Format Virtual LANs Flow Control Advanced Chip Functions
144
MAC Layer
Media Access Co t o ISO/OSI Model ed a ccess Control SO/OS ode
Layer 2 in the ISO/OSI reference model Electrical MII interface to physical layer device (PHY) Protocol (frame) interface to layer 3 (e g IP IPX NetBEUI) (e.g. IP, IPX,
Network Data Link Physical Network Logical Link Control Media Access Control Physical Medium
145
MAC Layer
Media Access Co t o Tasks ed a ccess Control as s
Data encapsulation
Framing Addressing Error detection
146
MAC Layer
Half Duplex Flow Control a up e o Co t o
Half Duplex relies on CSMA/CD protocol Station waits for a quiet period on the medium before sending Half Duplex Back-Pressure Flow Control
If queues are full any incoming packet is collided JAM signal send i l d Sender retries after back-off time
Router
Hub
Switch
Hub
Coaxial cable
Hub
163
MAC Layer
Half Duplex Flow Control a up e o Co t o
Half Duplex Defer Flow Control
If queues are full medium is occupied by receiver Preamble is send continuously Prevents sending of other stations without collisions
164
MAC Layer
Half Duplex Gigabit Example a up e G gab t a p e
Cascading of multiple Switches
Half-Duplex
Full-Duplex
Picture Source: Datasheet GigaStack Gigabit Interface Converter, Cisco Systems 2002
165
MAC Layer
Full Duplex Flow Control u up e o Co t o
No CSMA/CD on full duplex links Full-Duplex always involves intelligent devices Flow Control achieved by exchange of frames Uses MAC Control frame structure and addresses
MAC Control frames are not forwarded by switches Destination address is 01-80-C2-00-00-01 (Multicast) Ethernet type is 0x8808 (MAC Control)
Standard: IEEE 802.3x Full Duplex Flow Control p Exchanged frames are named PAUSE
166
MAC Layer
C p u ct o s C C Ge e at o Chip Functions CRC Generation
Transmit direction
Usually chip takes Ethernet frame consisting of DA SA Type Payload CRC is optionally generated by chip
Receive direction
Chip shall check CRC of incoming frame False CRC frame should be optionally dropped (if possible) Usually not possible for end stations N tifi ti in transfer descriptor of wrong checksum among other errors Notification i t f d i t f h k th
170
MAC Layer
C p u ct o s Chip Functions MAC Filtering C te g
Possibility for checking incoming frames against
One or a set of MAC-Address(es) Broadcast address (destination address all FFs)
Incoming frames not matching filter shall be dropped Possibility to bypass filter(s): Promiscuous mode
Necessary for Switch equipment Used by network analysis tools (sniffers)
171
MAC Layer
C p u ct o s Qua ty o Se ce Chip Functions Quality of Service
Quality of Service (QoS) usually a matter of Switches & Routers Classification of frames into 8 different priority classes
Use of flow-based approach (IP level) pp ( ) Use of Class-of-Service / User Priority (MAC level) Use of DSCP/IP Precedence (IP level) Use of VLAN information (MAC level) Use of Port information (PHY level)
For DSCP/TOS chip must parse IP header Chip may implement different queuing strategies
174
MAC Layer
C p u ct o s Chip Functions QoS Queuing Queu g
Threshold based queues (early tail drop queue)
50% Drop Treshold 60% D Drop T h ld Treshold 80% Drop Treshold 100% Drop Treshold
Combinations
179
Ethernet
Integrated Circuits
PHYs Switches Network Interface Card ICs Media Converters
205
Integrated Circuits
10/100/1000 Mbps PHY 0/ 00/ 000 bps
Realtek RTL8211CL Features:
Crossover and Polarity Detection & Correction y Auto-Negotiation Built-in switching regulator for 1,0 V core voltage Built in 10 MII interface for 10/100 Mbps Ethernet RGMII interface for 1000 Mbps Ethernet Management Interface Pi Pincount: 48 t
206
Integrated Circuits
10/100/1000 Mbps PHY 0/ 00/ 000 bps
Picture source: RGMII to GMII Bridge, Reference Design RD1022, Lattice Semiconductor Corp. April 2005
207
Integrated Circuits
10/100/1000 Mbps PHY 0/ 00/ 000 bps
RGMII Analog signals GND LEDs Digital Supply Co e Supply Core Supp y
Picture source: RTL8211CL-GR Integrated 10/100/1000 Gigabit Ethernet Transceiver Datasheet, Rev. 1.1, Realtek Semiconductor Corp. January 2008
208
Integrated Circuits
10/100/1000 Mbps PHY 0/ 00/ 000 bps
Picture source: RTL8211CL-GR Integrated 10/100/1000 Gigabit Ethernet Transceiver Datasheet, Rev. 1.1, Realtek Semiconductor Corp. January 2008
209
Integrated Circuits
10/100/1000 Mbps Switch 0/ 00/ 000 bps S tc
Realtek RTL8366 Features
5 Port Switch plus MII/GMII/RGMII and management interface p g VLAN support QoS (two queues) Port Mirroring Frame counters per port MAC security filtering 4096 entry l k t bl (SRAM) t lookup table Flow control
211
Integrated Circuits
10/100/1000 Mbps Switch 0/ 00/ 000 bps S tc
Realtek RTL8366 Special Transceiver link with 2,5 GHz interface
Picture source: RTL8266/RTL8369 6/9 Port 10/100/1000MbpsSwitch Controller Datasheet, Rev 1.1, Realtek Semiconductor Corp. September 2005
212