A primer on modern LANs

Similar documents
L2 Addressing and data plane. Benjamin Baron

ECE 158A: Lecture 13. Fall 2015

Layer 2 functionality bridging and switching

Chapter 3 Part 2 Switching and Bridging. Networking CS 3470, Section 1

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

Data Communications. Connecting Devices

Medium Access Protocols

Switching and Forwarding Reading: Chapter 3 1/30/14 1

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

Network Infrastructure

Hubs. twisted pair. hub. 5: DataLink Layer 5-1

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

Ethernet. EE 122: Intro to Communication Networks. Fall 2007 (WF 4-5:30 in Cory 277) Vern Paxson TAs: Lisa Fowler, Daniel Killebrew & Jorge Ortiz

Configuring your VLAN. Presented by Gregory Laffoon

Lecture 4b. Local Area Networks and Bridges

IEEE standards for local area networks

Summary of MAC protocols

Introduction to OSPF

Switched Ethernet Virtual LANs

Objectives. Hexadecimal Numbering and Addressing. Ethernet / IEEE LAN Technology. Ethernet

Image courtesy Cisco Systems, Inc. Illustration of a Cisco Catalyst switch

7010INT Data Communications Lecture 7 The Network Layer

LAN interconnection. Telecommunication Networks Group

Lecture 7. Reminder: Homework 2, Programming Project 1 due today. Homework 3, Programming Project 2 out, due Thursday next week. Questions?

2. LAN Topologies Gilbert Ndjatou Page 1

Routing Between VLANs Overview

Growth. Individual departments in a university buy LANs for their own machines and eventually want to interconnect with other campus LANs.

Underlying Technologies -Continued-

Professor Yashar Ganjali Department of Computer Science University of Toronto.

CSCI Computer Networks

Computer Networks Principles LAN - Ethernet

Internetworking Part 1

Top-Down Network Design

Chapter Seven. Local Area Networks: Part 1. Data Communications and Computer Networks: A Business User s Approach Seventh Edition

Principles behind data link layer services

Computer Networking. December 2004 CEN CN

Lecture 9: Switched Ethernet Features: STP and VLANs

Ethernet. Network Fundamentals Chapter Cisco Systems, Inc. All rights reserved. Cisco Public 1

Goal and Outline. Computer Networking. What Do We Need? Today s Story Lecture 3: Packet Switched Networks Peter Steenkiste

Point-to-Multipoint and Multipoint-to-Multipoint Services on PBB-TE System

- Hubs vs. Switches vs. Routers -

Chapter 6 Connecting Device

COMPUTER NETWORKS - Local area networks

Local area networks. Copyright

Extending the LAN. Context. Info 341 Networking and Distributed Applications. Building up the network. How to hook things together. Media NIC 10/18/10

Review. Error Detection: CRC Multiple access protocols. LAN addresses and ARP Ethernet. Slotted ALOHA CSMA/CD

Part3. Local Area Networks (LAN)

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

Announcements. Late homework policy

CS4700/CS5700 Fundamentals of Computer Networks

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

Redes de Computadores. Shortest Paths in Networks

Communication Networks

CompSci 356: Computer Network Architectures. Lecture 8: Spanning Tree Algorithm and Basic Internetworking Ch & 3.2. Xiaowei Yang

Medium Access Control Sublayer Chapter 4

Local Area Network Overview

What LinkSec Should Know About Bridges Norman Finn

Networking Technologies and Applications

Access Technologies! Fabio Martignon

More on Link Layer. Recap of Last Class. Interconnecting Nodes in LAN (Local-Area Network) Interconnecting with Hubs. Computer Networks 9/21/2009

Private and Public addresses. Real IPs. Lecture (09) Internetwork Layer (3) Agenda. By: Dr. Ahmed ElShafee

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

Some portions courtesy Srini Seshan or David Wetherall

RBRIDGES LAYER 2 FORWARDING BASED ON LINK STATE ROUTING

CSC 4900 Computer Networks: Link Layer (2)

EEC-684/584 Computer Networks

Antonio Cianfrani. Virtual LAN (VLAN)

ET4254 Communications and Networking 1

CSE 461: Bridging LANs. Last Topic

Computer Networks. Wenzhong Li. Nanjing University

DD2490 p Layer 2 networking. Olof Hagsand KTH CSC

Chapter 4 Configuring Switching

LAN Overview (part 2) Interconnecting LANs - Hubs

Shared Access Networks. Media Access Protocols. Ethernet (802.3) Ethernet cont...

Introduction to Ethernet. Guy Hutchison 8/30/2006

CompSci 356: Computer Network Architectures. Lecture 7: Switching technologies Chapter 3.1. Xiaowei Yang

Computer Networks Medium Access Control. Mostafa Salehi Fall 2008

Switching & ARP Week 3

Networking interview questions

Routing Between VLANs Overview

Fundamental Questions to Answer About Computer Networking, Jan 2009 Prof. Ying-Dar Lin,

The Link Layer and LANs: Ethernet and Swiches

Fairness Example: high priority for nearby stations Optimality Efficiency overhead

ECE 4450:427/527 - Computer Networks Spring 2017

The MAC Layer. Mukhopadhyay. Jean Yves Le Boudec 2018

POS Example Exam. 1) 6b I-SUB-06-EX-0

Top-Down Network Design

Routing in packet-switching networks

Chapter 16: Switched Ethernet in Automation. Wenbo Qiao

Lecture 15 Networking Fundamentals. Today s Plan

LAN Interconnection and Other Link Layer Protocols

Table of Contents 1 VLAN Configuration 1-1

3.5 CONNECTING DEVICES

Introducing Campus Networks

Principles behind data link layer services:

Principles behind data link layer services:

ECE 435 Network Engineering Lecture 11

Redes de Computadores. Medium Access Control

Switching and bridging

Transcription:

Advanced Networks http://disi.unitn.it/locigno/index.php/teaching-duties/ A primer on modern LANs Renato Lo Cigno

Copyright Quest opera è prote1a dalla licenza: Crea&ve Commons A-ribuzione- Non commerciale- Non opere derivate 2.5 Italia License Per i de1agli, consultare h-p://crea&vecommons.org/licenses/by- nc- nd/2.5/it/ locigno@disi.unitn.it 2

Overview Modern LAN are all based on the IEEE 802 standard family They are switched Mostly rely on fast ethernet (& beyond) and WiFi (802.11) A switched LAN is a complex network Can be hierarchical and support virtual LANs Can have Routers embedded that provide subnetting of the IP addressing space Can mix public and private addresses Normally has a frontear protected by firewalls, where NAT (Network Address Translation) functions are also performed A switched LAN requires routing Spanning Tree Fast Spanning Tree and Beyond locigno@disi.unitn.it 3

Understanding LANS To grasp the world of modern LANs the key point is the 802.1 standard suite that defines the interworking environment http://www.ieee802.org/1/ Unfortunately the readings are huge and many recent documents are not public LANs are Ethernet...... Ethernet is CSMA/CD...... All I need to know is CSMA/CD 1-persistent with binary backoff!?!?! Actually today Ethernet is only legacy and framing locigno@disi.unitn.it 4

Understanding LANS Switches come in many shapes, forms, size, performance and... price! Not all switches are equal Store and Forward Cut through Buffering Backpressure to sources Switches solve the problem of collisions but they do not solve the problem of sustained congestion locigno@disi.unitn.it 5

Switches Switches use the MAC address (like standard bridges) to take forwarding decisions The decision is taken via backward learning Destinations on a port are learned reading the source address of packets incoming into the port Low end switches are little more than a cable concentrator Rarely they offer a throughput higher than 1-2 times the line speed Store & Forward switching Similar to routing High Switching time Ts (Ts > 1-2 transmission times Tx) Tx = Packet size / Transmission speed locigno@disi.unitn.it 6

Switches High end switches often use the: cut through technology The frame is not stored Forwarded on the fly reading the destination MAC as the frame is decoded Ts is just a few bytes transmission times, 2 or more orders of magnitude less than a S&F switch, as low as hundreds of ns Cannot check the integrity of frames Modern LANs include the networks in Data Centers where performance issues are exasperated Cut through becomes fundamental to reduce latency in data access Data intensive, distributed computation makes the network one of the major bottlenecks locigno@disi.unitn.it 7

Cut Trough Start forward transmission as soon as possible Do Look-up while inspecting header If outgoing link is idle, start forwarding the frame If frame is corrupted is forwarded all the same Transmission spans multiple links Transmit the head of the frame via the outgoing link while still receiving the tail via the incoming link A! B! switches 8 locigno@disi.unitn.it

Ethernet & IEEE 802.3 frame format (legacy) 7 1 6 6 2 >0 0-46 4 Preamble DestAdd SrcAdd Payload Padding Checksum Start of frame delimiter Length of payload or EtherType Preamble (7 byte) synchronizing sequence 10101010 Start of frame (1 byte) 10101011 Addresses (6 byte) Desitnation and source address of the frame Length or type (2 byte) lenght of the frame in bytes (0-1500) if > 1536 means Protocol Type Payload Padding guarantees the minimum frame length Checksum locigno@disi.unitn.it 9

VLAN frame format VLANs can be defined at L1/2/3, but we re concerned only with L2 MACbased dynamically configurable VLANs The orignal frame format has been extended to support many new features and protocols 802.1ad (Q-in-Q) MPLS (Unicast and Multicast) 802.1ae (MAC security) 802.1x à authentication for LANs (EAP, EAPOL,... )... 4 bytes added before the EtherType field 7 1 6 6 4 2 >0 0-46 4 Preamble DestAdd SrcAdd new Payload Padding Checksum Start of frame delimiter 802.1Q Length of payload or VLAN TAG EtherType locigno@disi.unitn.it 10

IEEE 802.1Q: VLAN Tagging Tag are normally transparent to endsystems VLAN tags are added/stripped by switches 4 bytes Destination Address Source Address 802.1Q VLAN Tag Type Payload 1Q provides a simple single-layer VLAN Environment suitable for simple LANS 2 bytes Tag Protocol ID 0x8100 3 bits 1 bit 2 bytes Tag Control Information 12 bits User Priority Canonical Format Indicator VLAN ID locigno@disi.unitn.it 11

802.1Q Tag Fields Tag Protocol Identifier: User Priority: Value 0x8100 identifies 802.1Q tag Can be used by sender to prioritize different types of traffic (e.g., voice, data) 0 is lowest priority Canonical Format Indicator: Used for compatibility between different types of MAC protocols VLAN Identifier (VID): Specifies the VLAN (1 4094) 0x000 indicates frame does not belong to a VLAN 0xfff is reserved 12 locigno@disi.unitn.it

VLANs define logical broadcast domains locigno@disi.unitn.it 13

Broadcast domains with VLANs 1) Without VLANs User groups can be divided by subnets, but must be also on different switches to enforce separation 10.1.1.0/24 10.1.2.0/24 192.168.157.0/24 2) With VLANs User groups can be divided by subnets, and be connected to the same switch, or be spread on different switches (see slides before) Backhaul connection can share resources if needed 10.1.1.0/24 10.1.2.0/24 192.168.157.0/24 locigno@disi.unitn.it 14

IEEE 802.1AD (Q-in-Q) Add another 4 bytes and enables up 16 millions VLANs, compared to the 4096 of 1Q In principle the standard allows recursive nesting of tags, but more than 2 are never used (TTBOMK) The tags and fields have the same meaning of the 1Q Used and fundamental for Metro and Carrier grade Ethernets, not for simple LANs 7 1 6 6 4 4 2 >0 0-46 4 Preamble DestAdd SrcAdd new Payload Padding Checksum Start of frame delimiter locigno@disi.unitn.it 802.1AD VLAN TAG 802.1Q VLAN TAG Length of payload or EtherType 15

. 1AD is fundamental for trunking Standard 1Q with 1AD 1AD also known as VLAN Tagging Allows operators to carry multiple VLANs across geographic links locigno@disi.unitn.it 16

Addresses Backward Learning Switches forward frames based on dest. addresses Only on links that need them Switch table Maps destination MAC address to outgoing interface No algorithm to build the switch Building must be automated F! B! C! A! E! locigno@disi.unitn.it 17 D!

Backward Learning: Building the Table When a frame arrives Inspect the source MAC address Associate the address with the incoming interface Store the mapping in the switch table Use a time-to-live field to eventually forget the mapping The first switch learns how to reach A! B! F! C! A! E! locigno@disi.unitn.it D! 18

Backward Learning: Broadcast and Misses Miss: output port to destination is not in switch table Broadcast must go to everybody in any case When frame arrives with unfamiliar destination Forward the frame out all of the interfaces except for the one where the frame arrived F! B! C! A! E! locigno@disi.unitn.it 19 D!

Broadcast Lead to Loops Switches need to broadcast frames Upon receiving a frame with an unfamiliar destination Upon receiving a frame sent to the broadcast address Broadcasting is implemented by flooding Flooding can lead to forwarding loops E.g., if the network contains a cycle of switches Either accidentally, or by design for higher reliability locigno@disi.unitn.it 20

Solution: Spanning Trees Ensure the topology has no loops Avoid using some of the links to avoid forming a loop Spanning tree Sub-graph that covers all vertices but contains no cycles MAC addresses are not structured, thus routing is not possible The standard does not guarantee that the ST is minimum locigno@disi.unitn.it 21

Constructing the Spanning Tree Distributed algorithm Switches cooperate to build the spanning tree Reconfigure automatically when failures occur Key points of the algorithm A root must be elected The switch with the smallest (random) identifier For each of its interfaces, a switch identifies if the interface is on the shortest path from the root excludes an interface from the tree if it is not on the SP to the root One hop! locigno@disi.unitn.it 22 root! Three hops! excluded!

Steps in Spanning Tree Algorithm Use broadcast messages: (Y, d, X) sent by node X, thinking Y is the root, the distance Y-X to root is d Initially, each switch sends a message out every interface identifying itself as the root Switch A announces (A, 0, A) Switches update their view of the root Upon receiving a message, check the root id If the new id is smaller, start viewing that switch as root Switches compute their distance from the root Add 1 to the distance received from a neighbor Identify interfaces not on a shortest path to the root and exclude them from the spanning tree locigno@disi.unitn.it 23

Example From Switch #4 s Viewpoint Switch #4 thinks it is the root Sends (4, 0, 4) message to 2 and 7 Switch #4 hears from #2 receives (2, 0, 2) message from 2 thinks that #2 is the root realizes it is just one hop away Switch #4 hears from #7 receives (2, 1, 7) from 7 realizes this is a longer path prefers its own one-hop path removes 4-7 link from the tree 4! 3! 7! 1! 2! 5! 6! locigno@disi.unitn.it 24

Example From Switch #4 s Viewpoint Switch #2 hears about switch #1 Switch 2 hears (1, 1, 3) from 3 Switch 2 starts treating 1 as root And sends (1, 2, 2) to neighbors 1! Switch #4 hears from switch #2 Switch 4 starts treating 1 as root 3! 5! And sends (1, 3, 4) to neighbors Switch #4 hears from switch #7 Switch 4 receives (1, 3, 7) from 7 And realizes this is a longer path 4! 7! 2! 6! So, prefers its own three-hop path And removes 4-7 link from the tree locigno@disi.unitn.it 25

Other switches Behave the same and the SP rooted in 1 remains the only active 1! 1 becomes a bottleneck Internet Good network design is needed Hierarchical switches with fast backbones Router 4! 3! 7! 2! 5! 6! 1 or 10 Gbit/s optical fibers 100 Mbit/s or 1 Gbit/s Cat. 6 cabling locigno@disi.unitn.it 26

Robust Spanning Tree Algorithm Algorithm must react to failures Failure of the root node Need to elect a new root, with the next lowest identifier Failure of other switches and links Need to recompute the spanning tree Root switch continues sending messages Periodically reannouncing itself as the root (1, 0, 1) Other switches continue forwarding messages Detecting failures through timeout Switch waits to hear from others Eventually times out and claims to be the root Very slow to reconfigure and converge locigno@disi.unitn.it 27

802.1aq: Routing in LAN/VLAN Standard SP performs very poorly In 2012 a new amendment to the standard provides for real routing with link state, shortest path routing among switches Link costs are related to TX speed of the link: C = 2*10 13 / LS LS = links speed from 100kbit/s to 10Tbit/s Works only for all switched LAN No hubs No 10bT (Coax cable) locigno@disi.unitn.it 28

802.1aq: Routing in LAN/VLAN Stations can belong to multiple VLAN Just as a host can have multiple IP addresses If the topology permits it a switch may route based on the VLAN only, either internal or external (Q-in-Q) Routing based on VLANs partially solves the problem of address backward learning: If the frame can be forwarded based on the VLAN, the address need not be known Smaller forwarding tables Less broadcast and flooding locigno@disi.unitn.it 29