CSC 401 Data and Computer Communications Networks

Similar documents
Chapter 6 The Link Layer and LANs

CSC 4900 Computer Networks: Link Layer (3)

Lecture 9 Ethernet and other Link Layer protocols

Chapter 5 Link Layer. Down Approach. Computer Networking: A Top. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 18

CS 455/555 Intro to Networks and Communications. Link Layer Addressing, Ethernet, and a Day in the Life of a Web Request

INTRODUCTION, SERVICES. Data-link layer has responsibility of transferring datagram from one node to physically adjacent node over a link

LINK LAYER AND LANS 1

Link layer, LANs: outline. Chapter 5-2 Link Layer. MAC addresses (more) MAC addresses

Chapter 5 Data Link Layer

Course on Computer Communication and Networks. Lecture 16 Synthesis, Summary/flashback and Projection (related topics continuation of study)

CSC 8560 Computer Networks: Link and Physical Layers

CS118 Discussion 1A, Week 9. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

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

Chapter 6 The Link Layer and LANs

Computer Communications DIT 420 EDA343

CSC 4900 Computer Networks: Link Layer (2)

Chapter 5: Link layer

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

The Link Layer and LANs: Ethernet and Swiches

Link Layer and LANs. CMPS 4750/6750: Computer Networks

TDTS06: Computer Networks

CS 3516: Advanced Computer Networks

CS 43: Computer Networks Switches and LANs. Kevin Webb Swarthmore College December 5, 2017

Topic 2a. Ch 6: The Link Layer and LANs. Computer Networking: A Top Down Approach

Chapter 6 The Link Layer and LANs

CS/ECE 438: Communication Networks Fall Link Layer

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Chapter 6 The Link Layer and LANs

Chapter 6 The Link Layer and LANs

Data Link Layer. Our goals: understand principles behind data link layer services: instantiation and implementation of various link layer technologies

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Chapter 6 The Link Layer and LANs

CSC 401 Data and Computer Communications Networks

Internet protocol stack

Architettura di Reti

Chapter 6: Link layer and LANs. Link layer, LANs: outline. Link layer: introduction. Link layer: context. Link layer services (more)

EPL606. Internetworking. Part 2a. 1Network Layer

Chapter 6 The Link Layer and LANs

Computer Communication Networks Link

Communication Networks ( ) / Spring 2011 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Lecture 14 Summary - flashback

Chapter 5 Link Layer. Link Layer 5-1

LAN Interconnection and Other Link Layer Protocols

Chapter 6. Link Layer and LANs 6-1. Computer Networking: A Top Down Approach 7th edition Jim Kurose, Keith Ross Pearson/Addison Wesley April 2016

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

Lecture 6 - Link layer. Lecture 5 Review. Link Layer. Introduction, Services. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

Chapter 5: Link layer

Chapter 5 Link Layer. Networking: A Top. Computer. Down Approach 蒋力计算机科学与工程系上海交通大学. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Chapter 5: The Data Link Layer. Chapter 5 Link Layer and LANs. Ethernet. Link Layer. Star topology. Ethernet Frame Structure.

Link layer: introduction

Summary of MAC protocols

Chapter 4. DataLink Layer. Reference: Computer Networking: A Top Down Approach 4 th edition. Jim Kurose, Keith Ross Addison-Wesley, July 2007.

Principles behind data link layer services:

Principles behind data link layer services:

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Principles behind data link layer services

Medium Access Protocols

Managing and Securing Computer Networks. Guy Leduc. Chapter 2: Software-Defined Networks (SDN) Chapter 2. Chapter goals:

Computer Network Architectures and Multimedia. Guy Leduc. Chapter 2 MPLS networks. Chapter 2: MPLS

Course on Computer Communication and Networks. Lecture 16 Synthesis, Summary/flashback and Projection (related topics continuation of study)

Chapter 6 The Link Layer and LANs. Chapter 6: Link layer and LANs. Link layer, LANs: outline

Chapter 5: The Data Link Layer

CSC 401 Data and Computer Communications Networks

ECE 4450:427/527 - Computer Networks Spring 2017

ECE 4450:427/527 - Computer Networks Spring 2017

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview

Virtual Link Layer : Fundamentals of Computer Networks Bill Nace

CSCI Computer Networks Fall 2016

CSCI Computer Networks Spring 2017

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

Link Layer: Introduction. Chapter 5 Link Layer & LANS. Link layer: context. Link Layer Services

Virtual Link Layer : Fundamentals of Computer Networks Bill Nace

Chapter 5 Link Layer and LANs. Chapter 5: The Data Link Layer. Link Layer

Chapter 6 The Link Layer and LANs

Chapter 6 The Link Layer and LANs

COMP211 Chapter 6/7 Link Layer

CSC 401 Data and Computer Communications Networks

Lecture 20: Link Layer

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Chapter 6 The Data Link layer

Chapter 5 Link Layer and LANs

COMP 3331/9331: Computer Networks and Applications

Computer Networks. Wenzhong Li. Nanjing University

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12

1-1. Switching Networks (Fall 2010) EE 586 Communication and. October 25, Lecture 24

Link Layer and LANs. Our Goals. Link Layer

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

cs144 Midterm Review Fall 2010

Data Communications & Networks. Session 4 Main Theme. Link Control. Dr. Jean-Claude Franchitti

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting

CSC 401 Data and Computer Communications Networks

Chapter 5 Link Layer and LANs

CS 421: COMPUTER NETWORKS FALL FINAL January 10, minutes

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access

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

Switching & ARP Week 3

Transcription:

CSC 401 Data and Computer Communications Networks Link Layer, Switches, VLANS, MPLS, Data Centers Sec 6.4 to 6.7 Prof. Lina Battestilli Fall 2017

Chapter 6 Outline Link layer and LANs: 6.1 introduction, services 6.2 error detection, correction 6.3 multiple access protocols 6.4 Switched LANs Addressing/ARP, Ethernet, Switches, VLANs 6.5 link virtualization: MPLS 6.6 data center networking 6.7 a day in the life of a web request

Ethernet Switch link-layer device: takes an active role store, forward Ethernet frames examine incoming frame s MAC address, selectively forward frame to one-or-more outgoing links when frame is to be forwarded on segment, uses CSMA/CD to access segment transparent end-hosts are unaware of presence of switches plug-and-play, self-learning switches do not need to be configured

13 Switch: multiple simultaneous transmissions hosts have dedicated, direct connection to switch switches buffer packets Ethernet protocol used on each incoming link, but no collisions; full duplex each link is its own collision domain switching: A-to-A and B-to-B can transmit simultaneously, without collisions C 6 5 A A 1 2 B C 4 3 switch with six interfaces (1,2,3,4,5,6) B

14 Switch forwarding table Q: how does switch know A reachable via interface 4, B reachable via interface 5? A A: each switch has a switch table, each entry: (MAC address, interface, time stamp) looks like a routing table! C 6 1 2 B 5 4 3 B C A Q: how are entries created, maintained in switch table? Something like a routing protocol? switch with six interfaces (1,2,3,4,5,6)

15 Switch: Self-Learning switch learns which hosts can be reached through which interfaces when frame received, switch learns location of sender: incoming LAN segment C A A A Source: A Dest: A B records sender/location pair in switch table 6 1 2 5 4 3 B C MAC addr interface Time A Switch table (initially empty) A 1 9:39 So how will it send it to A?

Switch: frame filtering/forwarding when frame received at switch: 1. record incoming link, MAC address of sender 2. Look up in table for MAC address of receiver 3. if entry found for MAC address of receiver else if receiver on segment from which frame arrived drop frame else forward frame on interface indicated by entry flood /*all interfaces except arriving interface*/ 16

Self-learning, forwarding: example frame destination, A, location unknown: flood destination A location known: selectively send on just one link C A A A Source: A Dest: A B 6 1 2 A A 5 4 3 MAC addr interface Time A 1 9:39 A 4 9:40 switch table (initially empty) B C A A A 17

Interconnecting Switches Switches can be connected together S 4 A B S 1 C S 2 D E F G S 3 H I Q: sending from A to G - how does S 1 know to forward frame via S 4 and S 3? A: self learning! (works exactly the same as in singleswitch case!) 18

Self-learning multi-switch example Suppose C sends frame to K, K responds to C A B 2 S 1 1 3 4 C 1 S 2 2 D S 4 2 1 3 E 3 4 F G 2 1 S 3 4 3 H K Switch tables and packet forwarding in S 1, S 2, S 3, S 4 MAC Addr S 1 If MAC Addr S 2 If MAC Addr S 3 If MAC Addr S 4 If

Institutional network to external network router 100 Mbps 1000BASE-T mail server web server 1 Gbps 1000BASET 1 Gbps 1000BASET 100 Mbps 1000BASE-FX IP subnet hub switch Properties of Link-Layer Switching Elimination of Collisions Heterogeneous Links: speed/media Management 20

Switches vs. Routers Store & forward Forwarding Tables Routers network-layer devices (examine network-layer headers compute tables using routing algorithms, IP addresses Pros Redundant Paths Possible limits L2 broadcast storms Cons complex to configure larger per-packet processing Switches link-layer devices (examine link-layer headers) learn forwarding table using flooding, learning, MAC addresses plug&play fast rates spanning tree large ARP tables broadcast storms application transport network link physical switch router application transport network link physical datagram frame link physical network link physical frame datagram frame

Chapter 6 Outline Link layer and LANs: 6.1 introduction, services 6.2 error detection, correction 6.3 multiple access protocols 6.4 Switched LANs Addressing/ARP, Ethernet, Switches, VLANs 6.5 link virtualization: MPLS 6.6 data center networking 6.7 a day in the life of a web request

5-23 VLANs: motivation to external network router Singe IP subnet mail server web server Single broadcast domain all layer-2 broadcast traffic (ARP,, unknown location of destination MAC address) must cross entire LAN security/privacy, efficiency issues Inefficient use of switches Computer Science Electrical Engineering Computer Engineering Managing users is complex Q: What if CS user moves office to EE, but wants to connect to CS switch?

VLANs Virtual Local Area Network switch(es) supporting VLAN capabilities can be configured to define multiple virtual LANS over single physical LAN infrastructure. port-based VLAN: switch ports grouped (by switch management software) so that single physical switch 1 2 Electrical Engineering (VLAN ports 1-8) 7 8 9 10 15 16 Computer Science (VLAN ports 9-15) operates as multiple virtual switches 1 2 7 9 8 10 15 16 Electrical Engineering (VLAN ports 1-8) Computer Science (VLAN ports 9-16)

Port-based VLAN traffic isolation: frames to/from ports 1-8 can only reach ports 1-8 router can also define VLAN based on MAC addresses of endpoints, rather than switch port 1 7 9 15 2 8 10 16 dynamic membership: ports can be dynamically assigned among VLANs Electrical Engineering (VLAN ports 1-8) Computer Science (VLAN ports 9-15) forwarding between VLANS: done via routing (just as with separate switches) in practice vendors sell combined switches plus routers

VLANS spanning multiple switches 1 7 9 15 802.1Q 1 3 5 7 2 8 10 16 2 4 6 8 Electrical Engineering (VLAN ports 1-8) Computer Science (VLAN ports 9-15) Ports 2,3,5 belong to EE VLAN Ports 4,6,7,8 belong to CS VLAN trunk port: carries frames between VLANS defined over multiple physical switches frames forwarded within VLAN between switches can t be vanilla 802.1 frames (must carry VLAN ID info) 802.1Q protocol adds/removes additional header fields for frames forwarded between trunk ports

802.1Q VLAN frame format type preamble dest. address source address data (payload) CRC 802.1 frame type preamble dest. source data (payload) address address CRC 802.1Q frame 2-byte Tag Protocol Identifier (fixed value: 81-00) Recomputed CRC 2- byte Tag Control Information 12 bit VLAN ID field, 3 bit priority field like IP TOS, 1 bit Cannonical Format Indicator 27

Chapter 6 Outline Link layer and LANs: 6.1 introduction, services 6.2 error detection, correction 6.3 multiple access protocols 6.4 Switched LANs Addressing/ARP, Ethernet, Switches, VLANs 6.5 link virtualization: MPLS 6.6 data center networking 6.7 a day in the life of a web request

MPLS Initial goal (mid 1990s) : High-speed forwarding using using fixed length identifier (rather than shortest prefix matching) borrowing ideas from Virtual Circuit (VC) approach but IP datagram still keeps IP address PPP or Ethernet header MPLS header IP header remainder of link-layer frame label Exp S TTL packet-switched virtual circuit 20 3 1 5 29

MPLS capable routers a.k.a. label-switched router forward packets to outgoing interface based only on label value (don t inspect IP address) MPLS forwarding table distinct from IP forwarding tables flexibility: MPLS forwarding decisions can differ from those of IP use destination and source addresses to route flows to same destination differently (traffic engineering) re-route flows quickly if link fails: pre-computed backup paths (useful for VoIP) 30

MPLS versus IP paths R6 R5 R4 R3 D A R2 IP routing: path to destination determined by destination address alone IP-only router 31

MPLS versus IP paths R6 R5 R4 entry router (R4) can use different MPLS routes to A based, e.g., on source address R3 D A IP routing: path to destination determined by destination address alone MPLS routing: path to destination can be based on Source and Destination Addresses fast reroute: precompute backup routes in case of link failure IP-only router MPLS and IP router 32

MPLS signaling modify OSPF, IS-IS link-state flooding protocols to carry info used by MPLS routing, e.g., link bandwidth, amount of reserved link bandwidth entry MPLS router uses RSVP-TE signaling protocol to set up MPLS forwarding at downstream routers R6 R5 R4 modified link state flooding RSVP-TE D A 33

MPLS forwarding tables in out out label label dest interface 10 A 0 12 D 0 8 A 1 in out out label label dest interface 10 6 A 1 12 9 D 0 R6 R5 R4 1 0 R3 0 0 1 D 0 A Advantages: Traffic engineering Virtual Private Networks (VPN) R2 in out out label label dest interface 8 6 A 0 R1 in out out label label dest interface 6 - A 0 R5, R6, D, A interconnected via MPLS infrastructure 34

Chapter 6 Outline Link layer and LANs: 6.1 introduction, services 6.2 error detection, correction 6.3 multiple access protocols 6.4 Switched LANs Addressing/ARP, Ethernet, Switches, VLANs 6.5 link virtualization: MPLS 6.6 data center networking 6.7 a day in the life of a web request

Data Center Networks 10 s to 100 s of thousands of hosts, often closely coupled, in close proximity: e-business (e.g. Amazon) content-servers (e.g., YouTube, Akamai, Apple, Microsoft) search engines, data mining (e.g., Google) Challenges: multiple applications, each serving massive numbers of clients managing/balancing load, avoiding processing, networking, data bottlenecks Cost: 45% hosts, 15% infrastructure, 15% electricity, 15% networking $12mil/mo for 100K hosts/blades (2009) Inside a 40-ft Microsoft container, Chicago data center 36

Data center networks Internet load balancer: application-layer routing receives external client requests directs workload within data center returns results to external client (hiding data center internals from client) Load balancer Access router Border router Load balancer aka Layer-4 switch B Tier-1 switches A C Tier-2 switches TOR switches Server racks 20-40 blades Must have Redundancy! e.g TOR connects to 2 Tier 2 Switches This architecture solves scale but leads to limited host-to-host capacity 37

Trends in Data center networks Rich interconnection among switches, racks: increased throughput between racks (multiple routing paths possible) increased reliability via redundancy Tier-1 switches Tier-2 switches TOR switches Server racks 1 2 3 4 5 6 7 8 Another Trend: shipping container-based modular data centers 38

Chapter 6 Outline Link layer and LANs: 6.1 introduction, services 6.2 error detection, correction 6.3 multiple access protocols 6.4 Switched LANs Addressing/ARP, Ethernet, Switches, VLANs 6.5 link virtualization: MPLS 6.6 data center networking 6.7 a day in the life of a web request

A day in the life of a web request journey down protocol stack complete! application, transport, network, link putting-it-all-together: goal: identify, review, understand protocols (at all layers) involved in seemingly simple scenario: requesting www page scenario: student attaches laptop to campus network, requests/receives www.google.com

41 A day in the life: scenario browser DNS server Comcast network 68.80.0.0/13 school network 68.80.2.0/24 web page web server 64.233.169.105 Google s network 64.233.160.0/19

42 Step 1: Connecting to the Internet UDP IP Eth Phy UDP IP Eth Phy router (runs ) connecting laptop needs to get its own IP address, addr of first-hop router, addr of DNS server: use request encapsulated in UDP, encapsulated in IP, encapsulated in 802.3 Ethernet Ethernet frame broadcast (dest: FFFFFFFFFFFF) on LAN, received at router running server

43 Step 1: Connecting to the Internet UDP IP Eth Phy server formulates ACK containing client s IP address IP address of first-hop router for client name & IP address of DNS server UDP IP Eth Phy router (runs ) encapsulation at server, frame forwarded (switch learning) through LAN, demultiplexing at client client receives ACK reply Client now has IP address, knows name & addr of DNS server, IP address of its first-hop router

44 Step 2: ARP (before DNS & HTTP) DNS DNS DNS ARP query DNS UDP IP Eth Phy ARP ARP reply ARP Eth Phy router (runs ) before sending HTTP request, need IP address of www.google.com: DNS DNS query created, encapsulated in UDP, encapsulated in IP, encapsulated in Eth. To send frame to router, need MAC address of router interface: ARP ARP query broadcast, received by router, which replies with ARP reply giving MAC address of router interface client now knows MAC address of first hop router, so can now send frame containing DNS query

Step 3: DNS DNS DNS DNS DNS DNS UDP IP Eth Phy DNS DNS DNS DNS DNS UDP IP Eth Phy DNS server DNS Comcast network 68.80.0.0/13 router (runs ) IP datagram containing DNS query forwarded via LAN switch from client to 1 st hop router IP datagram forwarded from campus network into comcast network, routed (tables created by RIP, OSPF, IS-IS and/or BGP routing protocols) to DNS server demux ed to DNS server DNS server replies to client with IP address of www.google.com 45

Step 4: TCP connection carrying HTTP HTTP SYNACK SYNACK SYNACK HTTP TCP IP Eth Phy SYNACK SYNACK SYNACK TCP IP Eth Phy web server 64.233.169.105 router (runs ) to send HTTP request, client first opens TCP socket to web server TCP SYN segment (step 1 in 3- way handshake) inter-domain routed to web server web server responds with TCP SYNACK (step 2 in 3-way handshake) 46

Step 5: HTTP request/reply HTTP HTTP HTTP HTTP HTTP HTTP TCP IP Eth Phy web page finally (!!!) displayed HTTP request sent into TCP socket HTTP HTTP HTTP HTTP HTTP TCP IP Eth Phy web server 64.233.169.105 router (runs ) IP datagram containing HTTP request routed to www.google.com web server responds with HTTP reply (containing web page) IP datagram containing HTTP reply routed back to client 47

Chapter 6: Summary Principles behind data link layer services: error detection, correction sharing a broadcast channel: multiple access link layer addressing instantiation and implementation of various link layer technologies Ethernet switched LANS, VLANs virtualized networks as a link layer: MPLS synthesis: a day in the life of a web request

Chapter 6: what is next? journey down protocol stack complete (except PHY) solid understanding of networking principles, practice Application Transport Network Link/Physical Could stop here. but lots of other interesting topics! wireless multimedia security network management

References & Questions Some of the slides are identical or derived from 1. Slides for the 7 th edition of the book Kurose & Ross, Computer Networking: A Top-Down Approach, 2. Computer Networking, Nick McKeown and Philip Levis, 2014 Stanford University