Slide 1

Slide 1 text

Let’s get PHYsical The Switch Hacker’s Guide to Ethernet PHYs and SFPs

Slide 2

Slide 2 text

Switch / MAC 1G PHY 1G PHY 10G PHY 10G PHY RJ45 SFP RJ45 SFP+ 40G PHY QSFP+

Slide 3

Slide 3 text

Ethernet 101

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

MAC 0101010101 PHY

Slide 6

Slide 6 text

Terminology SPEEDBASE-MEDIA 10BASE-T 40GBASE-SR4

Slide 7

Slide 7 text

Unshielded Twisted Pair Media 10BASE-T 100BASE-TX 1000BASE-T 2500BASE-T 5GBASE-T 10GBASE-T

Slide 8

Slide 8 text

Fiber Optic Media 1000BASE-SX 1000BASE-LX 10GBASE-SR 10GBASE-LR 10GBASE-LRM 40GBASE-SR4 40GBASE-LR4 40GBASE-SR-BiDi

Slide 9

Slide 9 text

Shielded Copper Media 10GSFP+Cu 40GBASE-CR4

Slide 10

Slide 10 text

Duplexity

Slide 11

Slide 11 text

Simplex Half-Duplex Full-Duplex

Slide 12

Slide 12 text

Simplex (usually) Half-Duplex Full-Duplex (these days)

Slide 13

Slide 13 text

1000BASE-T

Slide 14

Slide 14 text

T/F Full-Duplex is optional

Slide 15

Slide 15 text

Auto-Negotiation

Slide 16

Slide 16 text

10BASE-T Link Integrity Test Pulse

Slide 17

Slide 17 text

Fast Link Pulse Bursts

Slide 18

Slide 18 text

Fast Link Pulse Burst Detail Clock pulses Data pulses

Slide 19

Slide 19 text

Base Page

Slide 20

Slide 20 text

T/F Auto-Negotiation is optional

Slide 21

Slide 21 text

T/F No Auto-Negotiation for fiber

Slide 22

Slide 22 text

Interfaces

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Switch / MAC 1G PHY 1G PHY 10G PHY 10G PHY RJ45 SFP RJ45 SFP+ 40G PHY QSFP+ Media Dependent Interface

Slide 25

Slide 25 text

“MDI”

Slide 26

Slide 26 text

MDI / MDI-X

Slide 27

Slide 27 text

Differential Signaling

Slide 28

Slide 28 text

Switch / MAC 1G PHY 1G PHY 10G PHY 10G PHY RJ45 SFP RJ45 SFP+ 40G PHY QSFP+ Media Independent Interface QSGMII XFI XLAUI

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

MII

Slide 31

Slide 31 text

RMII

Slide 32

Slide 32 text

GMII

Slide 33

Slide 33 text

RGMII

Slide 34

Slide 34 text

SGMII

Slide 35

Slide 35 text

QSGMII

Slide 36

Slide 36 text

Switch / MAC 1G PHY 1G PHY 10G PHY 10G PHY RJ45 SFP RJ45 SFP+ 40G PHY QSFP+ Internal & External PHYs PHY PHY PHY PHY PHY

Slide 37

Slide 37 text

PHYnally...

Slide 38

Slide 38 text

Switch / MAC 1G PHY 1G PHY 10G PHY 10G PHY RJ45 SFP RJ45 SFP+ 40G PHY QSFP+ La raison d’etre

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

Physical Coding Sublayer (PCS)

Slide 41

Slide 41 text

Block Coding Overhead Block Code Overhead Line Rate 100BASE-TX 4B/5B 25% 125 Mbaud 1000BASE-X 8B/10B 25% 1250 Mbaud 10GBASE-R 64B/66B 3.125% 10.3125 Gbaud

Slide 42

Slide 42 text

Physical Medium Attachment sublayer

Slide 43

Slide 43 text

Physical Medium Dependent sublayer

Slide 44

Slide 44 text

PHY management

Slide 45

Slide 45 text

Clause 22

Slide 46

Slide 46 text

Clause 45

Slide 47

Slide 47 text

Registers

Slide 48

Slide 48 text

1.c848.13 Device Register Bit

Slide 49

Slide 49 text

Pluggables

Slide 50

Slide 50 text

SFP / SFP+

Slide 51

Slide 51 text

XFI / SFI

Slide 52

Slide 52 text

QSFP+

Slide 53

Slide 53 text

XLAUI / XLPPI

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

# i2cget -y 12 0x53 27 w 0x8890 # i2cget -y 13 0x56 27 w 0x8480 Managing the SFP’s Internal PHY

Slide 56

Slide 56 text

Switch / MAC 1G PHY 1G PHY 10G PHY 10G PHY RJ45 SFP RJ45 SFP+ 40G PHY QSFP+ It’s PHYs All the Way Down PHY PHY PHY PHY PHY PHY

Slide 57

Slide 57 text

But wait, that’s not all!

Slide 58

Slide 58 text

PoE

Slide 59

Slide 59 text

EEE

Slide 60

Slide 60 text

Backplane Ethernet

Slide 61

Slide 61 text

25GBASE-T 40GBASE-T

Slide 62

Slide 62 text

Recommended Reading Ethernet: The Definitive Guide -- Available on Safari Books Online (free for us!) 10GE Pluggable Transceiver Technology -- Great background on SFP+ modules The Packet Sniffer Blog -- Explains 10G Ethernet; interesting article on switch latency 40 Gigabit Ethernet and 100 Gigabit Ethernet Technology Overview -- Introduction to 40G and 100G Ethernet Overview of the XAUI, XLAUI and CAUI -- Explains the 10G, 40G, and 100G media-independent interfaces Demystifying 40 Gigabit Ethernet Physical Layer Interfaces in Data Centers -- Compares XFI/SFI and XLAUI/XLPPI The Network Sherpa -- Blog covering signal equalization, pre-emphasis, differential signalling, ASIC design An introduction to the Auto-Negotiation process -- Expansive coverage of Clause 28 twisted-pair Auto-Negotiation 1000BASE-T SFP Auto-Negotiation -- Detailed study of how Clause 28 and Clause 37 AN are used in 1000BASE-T SFPs

Slide 63

Slide 63 text

Thanks!

Slide 64

Slide 64 text

Back-up

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

Ethernet over Twisted Pair Copper 10BASE-T 802.3i 1990 100 m Cat-3 100BASE-TX 802.3u 1995 100 m Cat-5 1000BASE-T 802.3ab 1999 100 m Cat-5 2.5GBASE-T 802.3bz 2016 100 m Cat-5e 5GBASE-T 802.3bz 2016 100 m Cat-5e 10GBASE-T 802.3an 2006 55 m Cat-6 100 m Cat-6a

Slide 68

Slide 68 text

1000BASE-SX 802.3z 1998 550 m OM3 1000BASE-LX 802.3z 1998 10 km SMF 10GBASE-SR 802.3ae 2002 300 m OM3 10GBASE-LR 802.3ae 2002 10 km SMF 10GBASE-LRM 802.3aq 2006 220 m MMF 40GBASE-SR4 802.3ba 2010 100 m OM3 4 lanes 40GBASE-LR4 802.3ba 2010 10 km SMF 4 λs 40GBASE-SR-BiDi Cisco 2013 100 m OM3 2 λs Ethernet over Optical Fiber

Slide 69

Slide 69 text

10GSFP+Cu SFF-8431 2009 7m twinax SFP+ 40GBASE-CR4 802.3ba 2010 7m twinax QSFP+ Ethernet over Shielded Twin-axial Copper

Slide 70

Slide 70 text

10GBASE-KR 802.3ap 2007 40GBASE-KR4 802.3ba 2010 Backplane Ethernet

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

Media Independent Interface (MII) Connector

Slide 73

Slide 73 text

AUI 10 Mbps 1-bit MII 10/100 Mbps 4-bit GMII 10/100/1000 Mbps 8-bit XGMII 10 Gbps 32-bit XLGMII 40 Gbps 64-bit Media Independent Interfaces MAC PHY

Slide 74

Slide 74 text

SGMII 10/100/1000 Mbps QSGMII 10/100/1000 Mbps x 4 XAUI 10 Gbps USXGMII 100M/1G/2.5G/5G/10Gbps XLAUI 40 Gbps Serial Media Independent Interfaces MAC PHY

Slide 75

Slide 75 text

Clause 28: Parallel Detection If an interface configured for AN receives valid signalling from link partner, it will assume half-duplex at the detected speed. 1000BASE-X does not support parallel detection: if one link partner has AN enabled and the other does not, the link will not come up.

Slide 76

Slide 76 text

SFP Bit Rate Bit rate specified in hundreds of megabit, rounded: 13 == 1300 Mbps =~ 1.250 Gbps == 1000BASE-X 103 == 10300 Mbps =~ 10.3125 Gbps == 10GBASE-R