26
Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering Department Fall 2011 CPE 400 / 600 Computer Communication Networks

Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

Embed Size (px)

Citation preview

Page 1: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

Introduction 1

Lecture 26Link Layer

(PPP, Virtualization)

slides are modified from J. Kurose & K. Ross

University of Nevada – RenoComputer Science & Engineering Department

Fall 2011

CPE 400 / 600Computer Communication Networks

Page 2: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-2

VLANs: motivation

What happens if: CS user moves office to CE, but

wants connect to CS switch? single broadcast domain:

all layer-2 broadcast traffic (ARP, DHCP) crosses entire LAN

• security/privacy, efficiency issues

each lowest level switch has only few ports in use

Computer Science Electrical

Engineering

ComputerEngineering

What’s wrong with this picture?

Page 3: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-3

VLANs Port-based VLAN: switch ports grouped (by switch management software) so that single physical switch ……

Switch(es) supporting VLAN capabilities can be configured to define multiple virtual LANS over single physical LAN infrastructure.

Virtual Local Area Network

1

8

9

16102

7

Computer Engineering(VLAN ports 1-8)

Computer Science(VLAN ports 9-15)

15

Computer Engineering(VLAN ports 1-8)

1

82

7 9

1610

15

Computer Science(VLAN ports 9-16)

… operates as multiple virtual switches

Page 4: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-4

Port-based VLAN

1

8

9

16102

7

Computer Engineering(VLAN ports 1-8)

Computer Science(VLAN ports 9-15)

15

traffic isolation: frames to/from ports 1-8 can only reach ports 1-8 can also define VLAN based

on MAC addresses of endpoints, rather than switch port dynamic membership:

ports can be dynamically assigned among VLANs

router

forwarding between VLANS: done via routing just as with separate switches in practice vendors sell

combined switches plus routers

Page 5: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-5

VLANS spanning multiple switches

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/removed additional header fields

for frames forwarded between trunk ports

1

8

9

102

7

Computer Engineering(VLAN ports 1-8)

Computer Science(VLAN ports 9-15)

15

2

73

Ports 2,3,5 belong to CE VLANPorts 4,6,7,8 belong to CS VLAN

5

4 6 816

1

Page 6: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-6

Type

2-byte Tag Protocol Identifier (value: 81-00)

Tag Control Information (12 bit VLAN ID field, 3 bit priority field like IP TOS)

Recomputed CRC

802.1Q VLAN frame format

802.1 frame

802.1Q frame

Page 7: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-7

Link Layer

5.1 Introduction and services 5.2 Error detection and correction 5.3Multiple access protocols 5.4 Link-Layer Addressing 5.5 Ethernet

5.6 Link-layer switches 5.7 PPP 5.8 Link virtualization:

MPLS

Page 8: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-8

Point to Point Data Link Control one sender, one receiver, one link: easier than

broadcast link: no Media Access Control no need for explicit MAC addressing e.g., dialup link, ISDN line

popular point-to-point DLC protocols: PPP: point-to-point protocol HDLC: High level data link control

• Data link used to be considered “high layer” in protocol stack!

Page 9: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-9

PPP Design Requirements [RFC 1557]

packet framing: encapsulation of network-layer datagram in data link frame carry network layer data of any network

layer protocol (not just IP) at same time ability to demultiplex upwards

bit transparency: must carry any bit pattern in the data field

error detection (no correction) connection liveness: detect, signal link failure

to network layer network layer address negotiation: endpoint

can learn/configure each other’s network address

Page 10: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-10

PPP non-requirements

no error correction/recovery no flow control out of order delivery OK no need to support multipoint links (e.g.,

polling)

Error recovery, flow control, data re-ordering all relegated to higher layers!

Page 11: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-11

PPP Data Frame

Flag: delimiter (framing) Address: does nothing (only one option) Control: does nothing;

in the future possible multiple control fields Protocol: upper layer protocol to which frame

delivered eg, PPP-LCP, IP, IPCP, etc

Page 12: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-12

PPP Data Frame

info: upper layer data being carried check: cyclic redundancy check for error

detection

Page 13: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-13

Byte Stuffing “data transparency” requirement: data field

must be allowed to include flag pattern <01111110> Q: is received <01111110> data or flag?

Sender: adds (“stuffs”) extra < 01111101> byte before each < 01111110> data byte

Receiver: discard first byte, continue data reception single 01111110: flag byte

Page 14: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-14

Byte Stuffing

flag bytepatternin datato send

flag byte pattern plusstuffed byte in

transmitted data

Page 15: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-15

PPP Data Control ProtocolBefore exchanging network-

layer data, data link peers must

configure PPP link max. frame length,

authentication learn/configure network layer information

for IP: carry IP Control Protocol (IPCP) msgs to configure/learn IP address

Page 16: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-16

Link Layer

5.1 Introduction and services 5.2 Error detection and correction 5.3Multiple access protocols 5.4 Link-Layer Addressing 5.5 Ethernet

5.6 Link-layer switches 5.7 PPP 5.8 Link virtualization:

MPLS

Page 17: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-17

Virtualization of networks

Virtualization of resources: powerful abstraction in systems engineering:

computing examples: virtual memory, virtual devices Virtual machines: e.g., java IBM VM os from 1960’s/70’s

layering of abstractions: don’t sweat the details of the lower layer, only deal with lower layers abstractly

Page 18: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-18

The Internet: virtualizing networks

1974: multiple unconnected nets ARPAnet data-over-cable networks packet satellite network (Aloha) packet radio network

… differing in: addressing

conventions packet formats error recovery routing

ARPAnet satellite net"A Protocol for Packet Network Intercommunication",

V. Cerf, R. Kahn, IEEE Transactions on Communications, May, 1974, pp. 637-648.

Page 19: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-19

The Internet: virtualizing networks

ARPAnet satellite net

gateway

Internetwork layer (IP): addressing: internetwork

appears as single, uniform entity, despite underlying local network heterogeneity

network of networks

Gateway: “embed internetwork

packets in local packet format or extract them”

route (at internetwork level) to next gateway

Page 20: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-20

Cerf & Kahn’s Internetwork ArchitectureWhat is virtualized? two layers of addressing: internetwork and local

network new layer (IP) makes everything homogeneous at

internetwork layer underlying local network technology

cable satellite 56K telephone modem today: ATM, MPLS

… “invisible” at internetwork layer. Looks like a link layer technology to IP!

Page 21: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-21

ATM and MPLS

ATM, MPLS separate networks in their own right different service models, addressing, routing

from Internet viewed by Internet as logical link

connecting IP routers just like dialup link is really part of separate

network (telephone network) ATM, MPLS: of technical interest in their

own right

Page 22: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-22

Asynchronous Transfer Mode: ATM 1990’s/00 standard for high-speed

155Mbps to 622 Mbps and higher Broadband Integrated Service Digital Network

architecture Goal: integrated, end-end transport of carry

voice, video, data meeting timing/QoS requirements of voice,

video • versus Internet best-effort model

“next generation” telephony: technical roots in telephone world

packet-switching using virtual circuits• fixed length packets, called “cells”

Page 23: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-23

Multiprotocol label switching (MPLS)

initial goal: speed up IP forwarding by using fixed length label (instead of IP address) to do forwarding borrowing ideas from Virtual Circuit (VC) approach but IP datagram still keeps IP address!

PPP or Ethernet header

IP header remainder of link-layer frameMPLS header

label Exp S TTL

20 3 1 5

Page 24: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-24

MPLS capable routers

a.k.a. label-switched router forwards packets to outgoing interface

based only on label value (don’t inspect IP address) MPLS forwarding table distinct from IP tables

signaling protocol needed to set up forwarding RSVP-TE forwarding possible along paths that IP alone

would not allow (e.g., source-specific routing) !! use MPLS for traffic engineering

must co-exist with IP-only routers

Page 25: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-25

R1R2

D

R3R4

R5

0

1

00

A

R6

in out outlabel label dest

interface 6 - A 0

in out outlabel label dest

interface10 6 A 1

12 9 D 0

in out outlabel label dest interface 10 A 0

12 D 0

1

in out outlabel label dest

interface 8 6 A 0

0

8 A 1

MPLS forwarding tables

Page 26: Introduction 1 Lecture 26 Link Layer (PPP, Virtualization) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &

5: DataLink Layer 5-26

Chapter 5: 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 PPP virtualized networks as a link layer: MPLS