untitled



Similar documents
(1) CCITT X.25 (HDLC/LAPB) SDLC (Synchronous Data Link Control protocol) HDLC High-speed Data Link Control protocol ITU-T/ISO ADCCP Advanced Data Comm

Flow Control Information Network 1 /

ppt

I TCP 1/2 1

完成卒論.PDF

IP IPv4-IPv6

WMN Wi-Fi MBCR i

TCP/IP IEEE Bluetooth LAN TCP TCP BEC FEC M T M R M T 2. 2 [5] AODV [4]DSR [3] 1 MS 100m 5 /100m 2 MD 2 c 2009 Information Processing Society of


total-all-nt.dvi

Broadband Internet I / 1 1 I / 1 2

2011 I/ 2 1

卒研 .PDF


untitled


Agenda IPv4 over IPv6 MAP MAP IPv4 over IPv6 MAP packet MAP Protocol MAP domain MAP domain ASAMAP ASAMAP 2

IP IP MTU Maximum Transfer Unit MTU MTU [2] i

PowerPoint プレゼンテーション

FlexRay

橡2-TrafficEngineering(revise).PDF

MIDI_IO.book

5シンポジウム2001予稿小野寺011121

wide93.dvi

Katsuhito Asano Fujitsu LTD /Apr/2002 1

SFC

CDMA ALOHA方式における最適アクセス制御方式の研究

untitled

<参考>

DTN DTN DTN DTN i

IEEE e

total.dvi

Vol. 48 No. 4 Apr LAN TCP/IP LAN TCP/IP 1 PC TCP/IP 1 PC User-mode Linux 12 Development of a System to Visualize Computer Network Behavior for L

Vol.53 No (July 2012) EV ITS 1,a) , EV 1 EV ITS EV ITS EV EV EV Development and Evaluation of ITS Information Commu

デジタル通信を支える無線技術

Microsoft PowerPoint

untitled

untitled

untitled

D-Link DWL-3500AP/DWL-8500AP 設定ガイド

1. ATM ATM OC-3(155Mbps), OC-12(622Mbps), OC-48(2.4Gbps) : (by NTT) QoS(Quality of Service)

IP RTP 2 QoS i

はじめに

JJ-90

Medium Access Control (MAC) Information Network 1 /

ITAOI2003第三屆離島資訊與應用研討會論文範例


Packet Tracer: 拡張 ACL の設定 : シナリオ 1 トポロジ アドレステーブル R1 デバイスインターフェイス IP アドレスサブネットマスクデフォルトゲートウェイ G0/ N/A G0/

<95DB8C9288E397C389C88A E696E6462>

IP IP DHCP..

2

fx-9860G Manager PLUS_J

MOTIF XF 取扱説明書

Tab 5, 11 Tab 4, 10, Tab 3, 9, 15Tab 2, 8, 14 Tab 1, 7, 13 2

00.目次_ope

ルータ(IPv6)掲示用池田.PDF

帯域を測ってみよう (適応型QoS/QoS連携/帯域検出機能)

Macintosh HD:Users:ks91:Documents:lect:nm2002s:nm2002s03.dvi

VoIP Broadcasting System 2/2 IP Convergence Communication Solution IP paradigm Integration & Management VoIP IP VoIP VoIP IT < >

A Responsive Processor for Parallel/Distributed Real-time Processing

L1 What Can You Blood Type Tell Us? Part 1 Can you guess/ my blood type? Well,/ you re very serious person/ so/ I think/ your blood type is A. Wow!/ G

橡ATM_GE.PDF

wide95.dvi

58 10

18 LAN AP (AP, Access Point) LAN (STA, Station) (RSSI, Received Signal Strength Indicator) AP AP STA AP LAN AP STA LAN AP LAN LAN STA AP LAN (Local Ar

C08.PDF

AirMac ネットワーク構成の手引き


クイックスタートガイド [SC-06D]

Hospitality-mae.indd

How to read the marks and remarks used in this parts book. Section 1 : Explanation of Code Use In MRK Column OO : Interchangeable between the new part

How to read the marks and remarks used in this parts book. Section 1 : Explanation of Code Use In MRK Column OO : Interchangeable between the new part

How to read the marks and remarks used in this parts book. Section 1 : Explanation of Code Use In MRK Column OO : Interchangeable between the new part

Introduction Purpose This training course describes the configuration and session features of the High-performance Embedded Workshop (HEW), a key tool

1

tutorial.dvi

i

untitled

How to read the marks and remarks used in this parts book. Section 1 : Explanation of Code Use In MRK Column OO : Interchangeable between the new part


¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè1²ó

How to read the marks and remarks used in this parts book. Section 1 : Explanation of Code Use In MRK Column OO : Interchangeable between the new part

浜松医科大学紀要

25 II :30 16:00 (1),. Do not open this problem booklet until the start of the examination is announced. (2) 3.. Answer the following 3 proble

Vol. 42 No. SIG 8(TOD 10) July HTML 100 Development of Authoring and Delivery System for Synchronized Contents and Experiment on High Spe

LSM-L3-24設定ガイド(初版)

NKK NEWS 2012

BS・110度CSデジタルハイビジョンチューナー P-TU1000JS取扱説明書

EtherChannelの設定

MPLS-Japan_Esaki_2001.PDF

AirMac ネットワーク for Windows

8 P2P P2P (Peer-to-Peer) P2P P2P As Internet access line bandwidth has increased, peer-to-peer applications have been increasing and have great impact

untitled


Microsoft Word - Win-Outlook.docx

untitled

$ ifconfig lo Link encap: inet : : inet6 : ::1/128 : UP LOOPBACK RUNNING MTU:65536 :1 RX :8 :0 :0 :0 :0 TX :8 :0 :0 :0 :0 (Collision

IEEE ax:第 6 世代の Wi-Fi テクニカル ホワイト ペーパー

26 URL A study of the hand over management with the server s URL for the wearable camera streaming

1 Fig. 1 Extraction of motion,.,,, 4,,, 3., 1, 2. 2.,. CHLAC,. 2.1,. (256 ).,., CHLAC. CHLAC, HLAC. 2.3 (HLAC ) r,.,. HLAC. N. 2 HLAC Fig. 2

Transcription:

Chapter 5 Data Link Layer A note on the use of these ppt slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you can add, modify, and delete slides (including this one) and slide content to suit your needs. They obviously represent a lot of work on our part. In return for use, we only ask the following: If you use these slides (e.g., in a class) in substantially unaltered form, that you mention their source (after all, we d like people to use our book!) If you post any slides in substantially unaltered form on a www site, that you note that they are adapted from (or perhaps identical to) our slides, and note our copyright of this material. Thanks and enjoy! JFK/KWR All material copyright 1996-2002 J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking: A Top Down Approach Featuring the Internet, 2 nd edition. Jim Kurose, Keith Ross Addison-Wesley, July 2002. 1 Chapter 5: : : : 2 Chapter 5 5.1 5.2 5.3 5.4 LAN ARP 5.5 5.6 5.7 5.8 PPP 5.9 ATM 5.10 Link Layer: Some terminology: LANs PDU link 3 4 : Ethernet 802.11 Princeton Lausanne : Princeton JFK : JFK Geneva : Geneva Lausanne = = = = : IP 5 6 1

: 7 frame NIC Ethernet card, PCMCI card, 802.11 card : frame 8 Chapter 5 5.1 5.2 5.3 5.4 LAN ARP 5.5 5.6 5.7 5.8 PPP 5.9 ATM 5.10 EDC= Error Detection and Correction bits D = 100% EDC 9 10 : : : () (: ) 0 0 : 16 UDP TCP : : NO YES. 11 12 2

: D r+1 G : CRC r R <D,R> G ( 2 ) GG<D,R> r+1 (ATM, HDCL) CRC : D. 2 r XOR R = ng : D. 2 r = ng XOR R : D. 2 r G R D R. 2 r = remainder[ ] G 13 14 Chapter 5 5.1 5.2 5.3 5.4 LAN ARP 5.5 5.6 5.7 5.8 PPP 5.9 ATM 5.10 : PPP () HFC 802.11 LAN 15 16 R bps 1. R 2. M R/M 3. 4. 17 18 3

MAC : : MAC : TDMA TDMA: time division multiple access = 6 19 20 MAC : FDMA FDMA: frequency division multiple access 6 frequency bands time MAC CDMA CDMA (Code Division Multiple Access) = () X () : 21 22 CDMA / CDMA: 2 23 24 4

Slotted ALOHA R MAC : MAC : Slotted ALOHA ALOHA CSMA, CSMA/CD, CSMA/CA 1 p 25 26 Slotted ALOHA Slotted ALOHA 27 N p = p(1-p) N-1 = Np(1-p) N-1 Np(1-p) N-1 p* N Np*(1- p*) N-1 1/e =.37 28 Pure (unslotted) ALOHA unslotted ALOHA: : t 0 [t 0-1,t 0 +1] Pure ALOHA P(success by given node) = P(node transmits). P(no other node transmits in [t 0-1,t 0 ]. P(no other node transmits in [t 0, t 0-1] = p. (1-p) N-1. (1-p) N-1 = p. (1-p) 2(N-1) pn...! = 1/(2e) =.18 29 30 5

CSMA (Carrier Sense Multiple Access) CSMA: : CSMA : : : 31 32 CSMA/CD (Collision Detection) CSMA/CD CSMA/CD: CSMA : LAN LAN 33 34 MAC protocols MAC : 1/N MAC 35 MAC : : : : 36 6

MAC ALOHA, S-ALOHA, CSMA, CSMA/CD : CSMA/CD Ethernet LAN : / : LAN Ethernet 802.11 PPP ATM 37 38 LAN ARP 32-bit IP : IP (IP) LAN (or MAC or physical or Ethernet) : () 48 bit MAC (LAN) ROM LAN ARP LAN LAN 39 40 LAN MAC IEEE MAC : (a) MAC address: SSN (b) IP address: MAC => LAN LAN IP IP 41 A B IP B B A B B s MAC addr A s MAC addr frame A B A s IP addr B s IP addr datagram 223.1.1.1 223.1.2.1 223.1.1.2 223.1.1.4 223.1.2.9 223.1.1.3 223.1.3.1 IP payload 223.1.2.2 223.1.3.27 E 223.1.3.2 42 7

ARP: Address Resolution Protocol : B IP B MAC LAN IP ARP ARP: LAN IP/MAC < IP address; MAC address; TTL> TTL (Time To Live): 43 ARP A B A B IP B A ARP A B IP ARP LAN ARP B ARP B MAC A A MAC A IP-to- MAC ARP : ARP plug-and-play : ARP 44 LAN : ABR ABIP A A AB A ARP111.111.111.110RMAC A RMAC ABIP A R R EthernetIPB R BMACARP R ABIPB R B R ARP IP LAN A R B 45 46 Ethernet LAN : 100Mbs$20 LANATM : 10, 100, 1000 Mbps Ethernet IP Ethernet Metcalfe s Ethernet sketch : 101010107 10101011 47 48 8

Ethernet Address: 6 bytes MAC ARP Type: IP Novell IPX and AppleTalk CRC: : : ACK NACK TCP 49 50 Ethernet CSMA/CD Ethernet CSMA/CD carrier sense collision detection random access 51 1. 2. 3. 4. 5. exponential backoff m K {0,1,2,,2 m -1} K*512 52 Ethernet s CSMA/CD : 48 bits; : 10 Mbps Ethernet 0.1 microsec K=1023 50 msec : : : K {0,1} K x 512 K {0, 1, 2, 3} K {0,1,2,3,4,,1023} CSMA/CD T prop = LAN2 t trans = 1 efficiency = 1+ 5t / prop t trans t prop 0 1 t trans 1 ALOHA 53 54 9

Ethernet : 10Base2 10: 10Mbps; 2: 200 meters (thin coaxial cable) 10BaseT and 100BaseT 10/100 Mbps rate; fast ethernet T Twisted Pair : ; 100 m nodes 55 hub CSMA/CD 56 Manchester Gbit Ethernet 10BaseT, 10Base2 Ethernet frame CSMA/CD Buffered Distributors 1 Gbps 10 Gbps 57 58 Chapter 5 LAN 5.1 5.2 5.3 5.4 LAN ARP 5.5 5.6 5.7 5.8 PPP 5.9 ATM 5.10 : 59 60 10

LAN CS EE 10BaseT 100BaseT MAC CSMA/CD 61 62 LAN LAN MAC LAN collision domain bridge collision domain = hub = host LAN segment LAN (IP network) LAN segment LAN 63 64 : (Node LAN Address, Bridge Interface, Time Stamp) TTL 60 min LAN When bridge receives a frame: index bridge table using MAC dest address if entry found for destination then{ if dest on segment from which frame arrived then drop the frame else forward the frame on interface indicated } else flood forward on all but the interface on which the frame arrived 65 66 11

C D D C C C D D D C C D C 67 68 : - - EE SE CS 69 70 - bridges may multiply and forward frame forever Ethernet ( plug-and-play ): Disabled 71 72 12

: + - + + - - 73 74 + - + TTL + - IP - LAN : AA BB Ethernet 75 76 Ethernet LAN (IP network) : 10/100/1000 Mbps / Shared Dedicated 77 78 13

Chapter 5 hubs bridges routers switches traffic no yes yes yes isolation plug & play yes yes no yes optimal routing cut through no no yes no yes no no yes 79 5.1 5.2 5.3 5.4 LAN ARP 5.5 5.6 5.7 5.8 PPP 5.9 ATM 5.10 80 IEEE 802.11 LAN 802.11b 2.4-5 GHz unlicensed radio spectrum 11 Mbps direct sequence spread spectrum (DSSS) 802.11a 5-6 GHz range 54 Mbps 802.11g 2.4-5 GHz range 54 Mbps CSMA/CA base station = access point (AP) Basic Service Set (BSS) ( cell ) : wireless hosts access point (AP): base station BSSs distribution system: DS 81 82 AP () ABX, Y, Z : laptop IETF MANET (Mobile Ad hoc Networks) working group IEEE 802.11: CSMA : hidden terminal problem 83 84 14

IEEE 802.11 MAC : CSMA/CA 802.11 CSMA: - DISF sec. - 802.11 CSMA - SIFSACK (ACK ) : network allocation vector (NAV) 85 86 : RTS-CTS RTS (request to send) : CTS (clear to send) NAV 87 : RTS-CTS RTS CTS : IEEE 802.11: CSMA CSMA/CA: reservations polling from AP 88 Bluetooth Chapter 5 outline 10-100 meters 2.4-2.5 GHz () 721 kbps LAN : MAC : ARQ 12-bit 5.1 Introduction and services 5.2 Error detection and correction 5.3Multiple access protocols 5.4 LAN addresses and ARP 5.5 Ethernet 5.6 Hubs, bridges, and switches 5.7 Wireless links and LANs 5.8 PPP 5.9 ATM 5.10 Frame Relay 89 90 15

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! 91 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 92 PPP non-requirements PPP Data Frame no error correction/recovery no flow control out of order delivery OK no need to support multipoint links (e.g., polling) 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) Error recovery, flow control, data re-ordering all relegated to higher layers! 93 94 PPP Data Frame info: upper layer data being carried check: cyclic redundancy check for error detection 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 < 01111110> byte after each < 01111110> data byte Receiver: two 01111110 bytes in a row: discard first byte, continue data reception single 01111110: flag byte 95 96 16

Byte Stuffing flag byte pattern in data to send flag byte pattern plus stuffed byte in transmitted data 97 PPP Data Control Protocol Before exchanging networklayer 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 (protocol field: 8021) to configure/learn IP address 98 Chapter 5 outline Asynchronous Transfer Mode: ATM 5.1 Introduction and services 5.2 Error detection and correction 5.3Multiple access protocols 5.4 LAN addresses and ARP 5.5 Ethernet 5.6 Hubs, bridges, and switches 5.7 Wireless links and LANs 5.8 PPP 5.9 ATM 5.10 Frame Relay 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 (fixed length packets, called cells ) using virtual circuits 99 100 ATM architecture adaptation layer: only at edge of ATM network data segmentation/reassembly roughly analogous to Internet transport layer ATM layer: network layer cell switching, routing physical layer 101 ATM: network or link layer? Vision: end-to-end transport: ATM from desktop to desktop ATM is a network technology Reality: used to connect IP backbone routers IP over ATM ATM as switched link layer, connecting IP routers 102 17

ATM Adaptation Layer (AAL) ATM Adaptation Layer (AAL): adapts upper layers (IP or native ATM applications) to ATM layer below AAL present only in end systems, not in switches AAL layer segment (header/trailer fields, data) fragmented across multiple ATM cells analogy: TCP segment in many IP packets ATM Adaptation Layer (AAL) [more] Different versions of AAL layers, depending on ATM service class: AAL1: for CBR (Constant Bit Rate) services, e.g. circuit emulation AAL2: for VBR (Variable Bit Rate) services, e.g., MPEG video AAL5: for data (e.g., IP datagrams) User data AAL PDU ATM cell 103 104 AAL5 - Simple And Efficient AL (SEAL) AAL5: low overhead AAL used to carry IP datagrams 4 byte cyclic redundancy check PAD ensures payload multiple of 48bytes large AAL5 data unit to be fragmented into 48- byte ATM cells 105 ATM Layer Service: transport cells across ATM network analogous to IP network layer very different services than IP network layer Network Architecture Internet ATM ATM ATM ATM Service Model best effort CBR VBR ABR UBR Bandwidth none constant rate guaranteed rate guaranteed minimum none Guarantees? Loss Order Timing no yes yes no no no yes yes yes yes no yes yes no no Congestion feedback no (inferred via loss) no congestion no congestion yes no 106 ATM Layer: Virtual Circuits VC transport: cells carried on VC from source to dest call setup, teardown for each call before data can flow each packet carries VC identifier (not destination ID) every switch on source-dest path maintain state for each passing connection link,switch resources (bandwidth, buffers) may be allocated to VC: to get circuit-like perf. Permanent VCs (PVCs) long lasting connections typically: permanent route between to IP routers Switched VCs (SVC): dynamically set up on per-call basis ATM VCs Advantages of ATM VC approach: QoS performance guarantee for connection mapped to VC (bandwidth, delay, delay jitter) Drawbacks of ATM VC approach: Inefficient support of datagram traffic one PVC between each source/dest pair) does not scale (N*2 connections needed) SVC introduces call setup latency, processing overhead for short lived connections 107 108 18

ATM Layer: ATM cell 5-byte ATM cell header 48-byte payload Why?: small payload -> short cell-creation delay for digitized voice halfway between 32 and 64 (compromise!) Cell header ATM cell header VCI: virtual channel ID will change from link to link thru net PT: Payload type (e.g. RM cell versus data cell) CLP: Cell Loss Priority bit CLP = 1 implies low priority cell, can be discarded if congestion HEC: Header Error Checksum cyclic redundancy check Cell format 109 110 ATM Physical Layer (more) ATM Physical Layer Two pieces (sublayers) of physical layer: Transmission Convergence Sublayer (TCS): adapts ATM layer above to PMD sublayer below Physical Medium Dependent: depends on physical medium being used TCS Functions: Header checksum generation: 8 bits CRC Cell delineation With unstructured PMD sublayer, transmission of idle cells when no data cells to send 111 Physical Medium Dependent (PMD) sublayer SONET/SDH: transmission frame structure (like a container carrying bits); bit synchronization; bandwidth partitions (TDM); several speeds: OC3 = 155.52 Mbps; OC12 = 622.08 Mbps; OC48 = 2.45 Gbps, OC192 = 9.6 Gbps TI/T3: transmission frame structure (old telephone hierarchy): 1.5 Mbps/ 45 Mbps unstructured: just cells (busy/idle) 112 IP-Over-ATM Classic IP only 3 networks (e.g., LAN segments) MAC (802.3) and IP addresses IP over ATM replace network (e.g., LAN segment) with ATM network ATM addresses, IP addresses ATM network IP-Over-ATM Issues: IP datagrams into ATM AAL5 PDUs from IP addresses to ATM addresses just like IP addresses to 802.3 MAC addresses! Ethernet LANs ATM network Ethernet LANs Ethernet LANs 113 114 19

Datagram Journey in IP-over-ATM Network Chapter 5 outline at Source Host: IP layer maps between IP, ATM dest address (using ARP) passes datagram to AAL5 AAL5 encapsulates data, segments cells, passes to ATM layer ATM network: moves cell along VC to destination at Destination Host: AAL5 reassembles cells into original datagram if CRC OK, datagram is passed to IP 5.1 Introduction and services 5.2 Error detection and correction 5.3Multiple access protocols 5.4 LAN addresses and ARP 5.5 Ethernet 5.6 Hubs, bridges, and switches 5.7 Wireless links and LANs 5.8 PPP 5.9 ATM 5.10 Frame Relay 115 116 Frame Relay Frame Relay Like ATM: wide area network technologies Virtual-circuit oriented origins in telephony world can be used to carry IP datagrams can thus be viewed as link layers by IP protocol Designed in late 80s, widely deployed in the 90s Frame relay service: no error control end-to-end congestion control 117 118 Frame Relay (more) Designed to interconnect corporate customer LANs typically permanent VC s: pipe carrying aggregate traffic between two routers switched VC s: as in ATM corporate customer leases FR service from public Frame Relay network (e.g., Sprint, ATT) Frame Relay (more) flags address data CRC flags Flag bits, 01111110, delimit frame address: 10 bit VC ID field 3 congestion control bits FECN: forward explicit congestion notification (frame experienced congestion on path) BECN: congestion on reverse path DE: discard eligibility 119 120 20

Frame Relay -VC Rate Control Committed Information Rate (CIR) defined, guaranteed for each VC negotiated at VC set up time customer pays based on CIR DE bit: Discard Eligibility bit Edge FR switch measures traffic rate for each VC; marks DE bit DE = 0: high priority, rate compliant frame; deliver at all costs DE = 1: low priority, eligible for congestion discard Frame Relay - CIR & Frame Marking Access Rate: rate R of the access link between source router (customer) and edge FR switch (provider); 64Kbps < R < 1,544Kbps Typically, many VCs (one per destination router) multiplexed on the same access trunk; each VC has own CIR Edge FR switch measures traffic rate for each VC; it marks (i.e. DE = 1) frames which exceed CIR (these may be later dropped) Internet s more recent differentiated service uses similar ideas 121 122 Chapter 5: Summary principles behind data link layer services: error detection, correction sharing a broadcast channel: multiple access link layer addressing, ARP link layer technologies: Ethernet, hubs, bridges, switches,ieee 802.11 LANs, PPP, ATM, Frame Relay journey down the protocol stack now OVER! next stops: multimedia, security, network management 123 21