Layer 2. Bridging and Switching. Karst Koymans. Informatics Institute University of Amsterdam. (version 16.4, 2017/02/15 12:07:08)

Similar documents
Bridging and Switching. Karst Koymans. Monday, February 17, 2014

Table of Contents. Layer 2. Refinement. Layer 3 view. Refinement. Devices and sublayers. Bridging and Switching

Table of Contents. Layer 2. Refinement. Layer 3 view. Refinement. Devices and sublayers. Bridging and Switching

Layer 2. Bridging and Switching. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. (version 1.1, 2010/02/19 12:37:51)

Table of Contents. Layer 2. Refinement (1) Refinement (2) Refinement. Devices and sublayers. Bridging and Switching

LLC and Bridges. Raj Jain. Professor of CIS. The Ohio State University

Lecture 4b. Local Area Networks and Bridges

Request for Comments: 2470 Category: Standards Track IBM S. Thomas TransNexus December Transmission of IPv6 Packets over Token Ring Networks

Raj Jain. The Ohio State University Columbus, OH

Network Working Group. Obsoletes: RFC 1103 October 1990

Part3. Local Area Networks (LAN)

Other Protocols. Arash Habibi Lashkari

Lecture 7: Ethernet Hardware Addressing and Frame Format. Dr. Mohammed Hawa. Electrical Engineering Department, University of Jordan.

Table of Contents 1 VLAN Configuration 1-1

Request for Comments: 2467 Obsoletes: 2019 December 1998 Category: Standards Track. Transmission of IPv6 Packets over FDDI Networks

Data Link Protocols. TCP/IP Suite and OSI Reference Model

Lecture (05) Network Access layer fundamentals II LAN, & WAN

Computer Networks Principles LAN - Ethernet

Data Center Ethernet

ABSTRACT. 2. DISCUSSION The following list describes the proposed modifications to the Q.2111 Annex D baseline by section:

IEEE C802.16maint-05/091. IEEE Broadband Wireless Access Working Group <

Origin of IEEE (Ethernet) Ethernet. Agenda. Basic Idea of Ethernet Bus System

Ethernet. Agenda. Introduction CSMA/CD Elements and Basic Media-Types Repeater, Link Segments Framing. L21 - Ethernet

IP over ATM. IP over ATM. Agenda. IP over ATM : Solving the Problem I.

Medium Access Protocols

Cisco Systems, Inc. Norman Finn. July 9, /12. Class of Service in Class of Service in Norman Finn Cisco Systems

Fundamentals of Networking. OSI & TCP/IP Model. Kuldeep Sonar 1

Summary of MAC protocols

Resilient Packet Ring 5 Criteria (2. Compatibility)

Chapter 6: DataLink Layer - Ethernet Olivier Bonaventure (2010)

The Link Layer and LANs

DD2490 p Bridging, spanning tree and related issues. Olof Hagsand KTH/CSC

CHAPTER 2 SINGLE SEGMENT NETWORKS

Routing Between VLANs Overview

VLAN - SP6510P8 2013/4. Copyright 2011 Micronet Communications, INC

The MAC Address Format

DD2490 p Layer 2 networking. Olof Hagsand KTH CSC

Introductory to Computer Networks Local Area Networks. Lecture 16 Fall Isfahan University of technology Dr.

2D1490 p Bridging, spanning tree and related issues. Olof Hagsand KTHNOC/NADA

Understanding Basic 802.1ah Provider Backbone Bridge

Chapter 6: Network Communications and Protocols

OSI Data Link & Network Layer

Defining Networks with the OSI Model. Module 2

Computer Networking. December 2004 CEN CN

GEP GE PoE-Plus + 1 GE SFP Web Smart Switch. User Manual V1.0

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Chapter 11 in Stallings 10 th Edition

Introduction to LAN Protocols

The MAC Layer. Mukhopadhyay. Jean Yves Le Boudec 2018

Network Layer Protocol & Internet Protocol (IP) Suguru Yamaguchi Nara Institute of Science and Technology Department of Information Science

Routing Between VLANs Overview

Teldat Router. Bridge

The Medium Access Sublayer

Routing. Basic principles. Karst Koymans. Informatics Institute University of Amsterdam. (version 16.4, 2017/02/23 10:58:58)

The Internet. 9.1 Introduction. The Internet is a global network that supports a variety of interpersonal and interactive multimedia applications.

Mixed-Media Bridging. Chapter Goals. Background. Translation Challenges CHAPTER

Table of Contents 1 QinQ Configuration BPDU Tunneling Configuration 2-1

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008

Table of Contents. (Rapid) Spanning Tree Protocol. A simple bridge loop. An even worse bridge loop. Bridge loops Two bridges Three bridges (R)STP

Local Area Networks. Ethernet LAN

Local Area Networks (LANs) and Legacy Ethernet

Local Area Networks (LANs) and Legacy Ethernet

Arhitecturi și Protocoale de Comunicații (APC) Rețele locale (I)

Layering in Networked computing. OSI Model TCP/IP Model Protocols at each layer

The MAC Layer. Contents. Textbook. Jean Yves Le Boudec Fall 2012

Introduction to Ethernet. Guy Hutchison 8/30/2006

RBRIDGES LAYER 2 FORWARDING BASED ON LINK STATE ROUTING

Ethernet. Access Technologies 2 Moldován István. Department of Telecommunications and Media Informatics

Command Manual QinQ-BPDU Tunneling H3C S3610&S5510 Series Ethernet Switches. Table of Contents

- Hubs vs. Switches vs. Routers -

LOCAL AREA NETWORKS Q&A Topic 4: VLAN

LAN Emulation, IP Over ATM and MPOA

IEEE C802.16maint-05/091r1. IEEE Broadband Wireless Access Working Group <

The MAC Layer. Jean Yves Le Boudec 2015

Lecture (04) Network Layer (Physical/Data link) 2

Overview of Bridging

BCS THE CHARTERED INSTITUTE FOR IT BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT COMPUTER NETWORKS APRIL 2015 EXAMINERS REPORT

SYSTEMS ADMINISTRATION USING CISCO (315)

Ethernet Basics. based on Chapter 4 of CompTIA Network+ Exam Guide, 4 th ed., Mike Meyers

Table of Contents. (Rapid) Spanning Tree Protocol. An even worse bridge loop. A simple bridge loop. Bridge loops Two bridges Three bridges (R)STP

The MAC Layer. Jean Yves Le Boudec 2015

Higher scalability to address more Layer 2 segments: up to 16 million VXLAN segments.

Chapter 5 Reading Organizer After completion of this chapter, you should be able to:

Catalyst 1900 Series and Catalyst 2820 Series Enterprise Edition Software Configuration Guide

The Network Access Layer. In This Lecture. Network Access Layer. Hour 3

Configuration VLANs and Spanning Tree Avaya Virtual Services Platform 9000

Reminder: Datalink Functions Computer Networking. Datalink Architectures

Chapter. Managed Switch Software Monitoring. In This Chapter...

Routing without tears: Bridging without danger

Network Security Fundamentals. Network Security Fundamentals. Roadmap. Security Training Course. Module 2 Network Fundamentals

Table of Contents 1 QinQ Configuration 1-1

Routing Information Protocol

Internet Protocols (chapter 18)

6.1.2 Repeaters. Figure Repeater connecting two LAN segments. Figure Operation of a repeater as a level-1 relay

The MAC Layer. Clicker registration

The MAC Layer. Mukhopadhyay. Jean Yves Le Boudec 2017

Antonio Cianfrani. Virtual LAN (VLAN)

Table of Contents. (Rapid) Spanning Tree Protocol. A simple bridge loop. An even worse bridge loop. Bridge loops Two bridges Three bridges (R)STP

7010INT Data Communications Lecture 7 The Network Layer

Cisco Cisco Certified Network Associate (CCNA)

Transcription:

Layer 2 Bridging and Switching Karst Koymans Informatics Institute University of Amsterdam (version 16.4, 2017/02/15 12:07:08) Friday, February 17, 2017 Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 1 / 40

1 Refinement 2 Devices and sublayers 3 Frame formats DIX Extended Unique Identifiers Ethernet Types 802.3 4 Bridges and Switches Basics VLANs Layered Extensions Traffic Engineering Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 2 / 40

Refinement Outline 1 Refinement 2 Devices and sublayers 3 Frame formats DIX Extended Unique Identifiers Ethernet Types 802.3 4 Bridges and Switches Basics VLANs Layered Extensions Traffic Engineering Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 3 / 40

Layer 3 view Host Network Router Network Host

Refinement H3 R H3 H2 B R2 R2 B H2 N N N N

Refinement (with IP enabled bridges) H3 B3 R B3 H3 H2 B R2 R2 B H2 N N N N

Devices and sublayers Outline 1 Refinement 2 Devices and sublayers 3 Frame formats DIX Extended Unique Identifiers Ethernet Types 802.3 4 Bridges and Switches Basics VLANs Layered Extensions Traffic Engineering Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 6 / 40

Devices and sublayers Layer 1 and 2 devices Layer 1 (physical) Repeaters, Hubs (multiport repeaters) Single collision domain Together they form a LAN (or link) segment Layer 2 (data link) Bridges and Switches Single broadcast domain Together they form a LAN (a link, usually 1 a layer 3 subnet) 1 multi-subnet links (ok) and multi-link subnets (not so ok) also occur Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 7 / 40

Devices and sublayers Layer 2 sublayer: MAC Media Access Control Lower data link sublayer Work from the 802.3 committees Most important example is Ethernet CSMA/CD Carrier Sense, Multiple Access, with Collision Detection Backoff and Retransmission Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 8 / 40

Devices and sublayers Layer 2 sublayer: LLC Logical Link Control Upper data link sublayer Work from the 802.2 committees Introduces three new fields 2 DSAP: Destination Service Access Point SSAP: Source Service Access Point Control: 1 or 2 control bytes 2 See http://standards.ieee.org/develop/regauth/llc/public.html for a list of SAPs Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 9 / 40

Frame formats Outline 1 Refinement 2 Devices and sublayers 3 Frame formats DIX Extended Unique Identifiers Ethernet Types 802.3 4 Bridges and Switches Basics VLANs Layered Extensions Traffic Engineering Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 10 / 40

Frame formats DIX Outline 1 Refinement 2 Devices and sublayers 3 Frame formats DIX Extended Unique Identifiers Ethernet Types 802.3 4 Bridges and Switches Basics VLANs Layered Extensions Traffic Engineering Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 11 / 40

Frame formats DIX DIX Ethernet (Ethernet II) packets/frames 7 1 6 6 2 46-1500 4 Preamble SFD DstAddr SrcAddr Type PDU (with PAD) FCS Preamble and SFD 3 are handled by the physical layer (network card) A frame starts with 6 byte destination and source MAC addresses A 2 byte type field follows (multiplexing) PAD used to get a minimum PDU of 46 bytes Maximum size of PDU is 1500 bytes The Frame Check Sequence is a Cyclic Redundancy Check (CRC) 3 10101010 10101010 10101010 10101010 10101010 10101010 10101010 10101011 (In lsb first order canonical format this is 0x55 0x55 0x55 0x55 0x55 0x55 0x55 0xD5.) Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 12 / 40

Frame formats DIX MAC addresses (1) 6 bytes (48 bits) MAC-48 (physical, now obsolete) EUI-48 (virtual, now including physical) EUI-64 (64-bit Extended Unique Identifier) Organizationally Unique Identifier 4 (OUI) Comprises the first three bytes of the MAC address Leaving three bytes for local assignment by the OUI-owner 4 http://standards.ieee.org/develop/regauth/tut/eui.pdf Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 13 / 40

Frame formats DIX MAC addresses (2) I/G bit: Individual (0) / Group (1) bit First bit on the wire Broadcast or multicast U/L bit: Universal (0) / Local (1) bit Second bit on the wire I/G and U/L are the Least Significant Bits (LSBs) of the first byte Sic!: this is called canonical format (LSB-format) Token Ring uses noncanonical format (MSB-format) Ample opportunity for confusion 5 5 See IEEE Std 802-2001, section 9.5 Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 14 / 40

Frame formats Extended Unique Identifiers Outline 1 Refinement 2 Devices and sublayers 3 Frame formats DIX Extended Unique Identifiers Ethernet Types 802.3 4 Bridges and Switches Basics VLANs Layered Extensions Traffic Engineering Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 15 / 40

Frame formats Extended Unique Identifiers EUI-48 EUI-64 Embedding of MAC-48 addresses OUI:extension OUI:FF:FF:extension Embedding of EUI-48 addresses 6 OUI:extension OUI:FF:FE:extension 00:30:65:7E:9D:5E 00:30:65:FF:FE:7E:9D:5E IPv6 is based on EUI-48 embedding for autoconfiguration but with a quirk... 6 Since MAC-48 addresses are obsolete, both FF:FF and FF:FE may be used Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 16 / 40

Frame formats Extended Unique Identifiers Modified EUI-64 The 64 bit host part of an IPv6 address Modified EUI-64 address U/L bit flipped 0030:65FF:FE7E:9D5E 0230:65FF:FE7E:9D5E The reverse happens to locally assigned IPv6 addresses 0200:0000:0000:0001 0000:0000:0000:0001 which immediately explains the reason for the modification and why bits 64-71 are skipped when creating IPv4-embedded IPv6 addresses Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 17 / 40

Frame formats Ethernet Types Outline 1 Refinement 2 Devices and sublayers 3 Frame formats DIX Extended Unique Identifiers Ethernet Types 802.3 4 Bridges and Switches Basics VLANs Layered Extensions Traffic Engineering Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 18 / 40

Frame formats Ethernet Types Ethernet Types (1) Used for multiplexing Common ethertypes 0x0800 0x0806 0x8035 0x8137 0x86DD IP ARP RARP IPX (Novell) IPv6 Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 19 / 40

Frame formats Ethernet Types Ethernet Types (2) Less common ethertypes 0x0BAD 0x0805 0x809B,0x80F3 0x8847,0x8848 0x8863,0x8864 Banyan Vines X.25 level 3 (PLP) AppleTalk a MPLS b PPPoE c a Ethertalk, AARP b Unicast, Multicast Ethernet c Discovery, Session Stage Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 20 / 40

Frame formats 802.3 Outline 1 Refinement 2 Devices and sublayers 3 Frame formats DIX Extended Unique Identifiers Ethernet Types 802.3 4 Bridges and Switches Basics VLANs Layered Extensions Traffic Engineering Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 21 / 40

Frame formats 802.3 802.3 frames (with 802.2 LLC) Reintroducing the Ethernet Version I length field 7 1 6 6 2 1 1 1 7 43-1497 4 Preamble SFD DstAddr SrcAddr Length DSAP SSAP Ctrl LLC data (with PAD) FCS Introduces the LLC layer 2 sublayer Replaces type field by length field Used in EtherTalk packets (Apple) Disjoint values from ether types Later old DIX format also officially allowed 7 In some cases Ctrl is 2 bytes and then LLC data is between 42 and 1496 bytes Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 22 / 40

Frame formats 802.3 LLC/SNAP Sub Network Access Protocol DSAP = 0xAA SSAP = 0xAA Control = 0x03 (UI, connectionless) Adds 5 extra bytes Organization Identifier (not used, set to 0x000000) Protocol type (guess what: ether type :-)) Netto effect is the waste of 8 bytes so that the PDU size (MTU) is reduced from 1500 to 1492 bytes Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 23 / 40

Frame formats 802.3 IPX frames There are four variants... DIX Ethernet with ethertype 0x8137 802.3 SNAP with protocol type 0x8137 802.3 with DSAP = SSAP = 0xE0 Raw 802.3 IPX packet starts with an (unimplemented) checksum looking like broadcast SAP DstAddr SrcAddr Length 0xFFFF... Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 24 / 40

Bridges and Switches Outline 1 Refinement 2 Devices and sublayers 3 Frame formats DIX Extended Unique Identifiers Ethernet Types 802.3 4 Bridges and Switches Basics VLANs Layered Extensions Traffic Engineering Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 25 / 40

Bridges and Switches Basics Outline 1 Refinement 2 Devices and sublayers 3 Frame formats DIX Extended Unique Identifiers Ethernet Types 802.3 4 Bridges and Switches Basics VLANs Layered Extensions Traffic Engineering Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 26 / 40

Bridges and Switches Basics Transparent Bridges No-Frills Copies frames between its two sides (or multiple ports) Uses Store and Forward Separates collision domains Learning and filtering Remembers on which side/port a station resides By looking (promiscuously) to all addresses Builds a filtering database Standardized in 802.1D Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 27 / 40

Bridges and Switches Basics Switches Switches are a synonym for bridges In most cases have multiple ports Often remember on which port a station resides Switches may support more protocol extensions VLANs Quality of Service Management (SNMP) Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 28 / 40

Bridges and Switches VLANs Outline 1 Refinement 2 Devices and sublayers 3 Frame formats DIX Extended Unique Identifiers Ethernet Types 802.3 4 Bridges and Switches Basics VLANs Layered Extensions Traffic Engineering Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 29 / 40

Bridges and Switches VLANs VLANs Separating a physically bridged LAN into multiple logical/virtual LANs Each VLAN has its own ID Standardized as 802.1Q-2011 Ether type for VLANs: 0x8100 Conflicted with Wellfleet allocation 8 Official registration by IEEE 9 8 http://www.iana.org/assignments/ieee-802-numbers/ 9 http://standards.ieee.org/develop/regauth/ethertype/eth.txt Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 30 / 40

Bridges and Switches VLANs 802.3 modifications for VLANs Add 4 extra bytes (VLAN tag) between MAC source address and type/length field 2 bytes 0x8100 (VLAN type) 3 bits priority (used by 802.1p) 1 bit CFI 10 (Ethernet/Token Ring, usually 0 (Ethernet)) 12 bits VLAN ID (0-4095) 10 Related to the MSB-LSB-format issue: Canonical Format Indicator. Later replaced by DEI (Drop Eligible Indicator). Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 31 / 40

Bridges and Switches VLANs VLAN membership Port based Easy; static MAC based Administrative burden; dynamic Protocol and IP address based Wrong layer; not transparent... Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 32 / 40

Bridges and Switches Layered Extensions Outline 1 Refinement 2 Devices and sublayers 3 Frame formats DIX Extended Unique Identifiers Ethernet Types 802.3 4 Bridges and Switches Basics VLANs Layered Extensions Traffic Engineering Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 33 / 40

Bridges and Switches Layered Extensions Provider Bridges (PBs) Nested VLANs Standardized as 802.1ad Several non-standard Q-in-Q schemes Add a Service-VLAN-tag (S-tag; outer tag) in front of the Customer-VLAN-tag (C-tag; inner tag) Used by a PBN (Provider Backbone Network) Ether type for S-VLANs: 0x88A8 (now also in IANA list) Separates backbone VLAN assignments from customer VLAN assignments Placed between source MAC address and customer VLAN tag Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 34 / 40

Bridges and Switches Layered Extensions Provider Backbone Bridges (PBBs) MAC-in-MAC or M-in-M Standardized as 802.1ah Adds a complete second Ethernet header with extended tags Used by a PBBN (Provider Backbone Bridging Network) Adds provider backbone MAC destination and source addresses Followed by a Backbone tag (B-tag) Ether type for B-tags is again 0x88A8 (same as S-tag) And a new Backbone Service Instance tag (I-Tag) Ether type for I-tags is 0x88E7 (not yet in IANA list January 2017) Contains a 3 byte (24 bit) Service Instance Identifier Formally includes the client MAC destination and source address Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 35 / 40

Bridges and Switches Traffic Engineering Outline 1 Refinement 2 Devices and sublayers 3 Frame formats DIX Extended Unique Identifiers Ethernet Types 802.3 4 Bridges and Switches Basics VLANs Layered Extensions Traffic Engineering Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 36 / 40

Bridges and Switches Traffic Engineering PBB-TE Provider Backbone Bridges Traffic Engineering Derived from PBT (Provider Backbone Transport; Nortel) Connection oriented Ethernet transport Standardized as 802.1Qay IEEE alternative for MPLS-TP (MPLS Transport Profile; ITU) which is based on T-MPLS (Transport MPLS) 802.1Q-2011 standard 11 includes 802.1ad, 802.1ah and 802.1Qay 11 Naming explained in http://etherealmind.com/what-the-letters-802-1-ethernet-standards-stand-for/ Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 37 / 40

Bridges and Switches Traffic Engineering TRILL TRansparent Interconnect of Lots of Links Defines RBridges Routing on layer 2 Smart bridges, interoperable with 802.1D and 802.1Q Independent, localized routing in a single LAN Uses layer 3 like headers with hop count Problem and applicability statement in RFC 5556 (May 2009) Specification in RFC 6325 (July 2011), 7176, 7177 (May 2014) Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 38 / 40

Bridges and Switches Traffic Engineering SPB Shortest Path Bridging Standardized as 802.1aq (approved in March 2012) It replaces old spanning tree mechanisms, like STP, RSTP, MSTP It supports two flavours SPBV (forwarding 802.1ad Q-in-Q frames) SPBM (forwarding 802.1ah M-in-M frames) Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 39 / 40

Bridges and Switches Traffic Engineering Network programmability Software Defined Networking (SDN) Network Functions Virtualization (NFV)... all left to Advanced Networking (AN) Karst Koymans (UvA) Layer 2 Friday, February 17, 2017 40 / 40