Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Let's get PHYsical

Let's get PHYsical

The switch hacker's guide to Ethernet PHYs and SFPs

Clay McClure

August 25, 2016
Tweet

More Decks by Clay McClure

Other Decks in Technology

Transcript

  1. Switch / MAC 1G PHY 1G PHY 10G PHY 10G

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

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

    PHY RJ45 SFP RJ45 SFP+ 40G PHY QSFP+ Media Independent Interface QSGMII XFI XLAUI
  4. MII

  5. 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
  6. Switch / MAC 1G PHY 1G PHY 10G PHY 10G

    PHY RJ45 SFP RJ45 SFP+ 40G PHY QSFP+ La raison d’etre
  7. 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
  8. # i2cget -y 12 0x53 27 w 0x8890 # i2cget

    -y 13 0x56 27 w 0x8480 Managing the SFP’s Internal PHY
  9. 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
  10. PoE

  11. EEE

  12. 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
  13. 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
  14. 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
  15. 10GSFP+Cu SFF-8431 2009 7m twinax SFP+ 40GBASE-CR4 802.3ba 2010 7m

    twinax QSFP+ Ethernet over Shielded Twin-axial Copper
  16. 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
  17. 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
  18. 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.
  19. 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