Published on

Published in: Technology, Business
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide


  1. 1. Link Layer & Physical Layer CPE 400 / 600 Computer Communication Networks Lecture 24
  2. 2. Lecture 24: Outline <ul><li>5.1 Introduction and Services </li></ul><ul><li>5.2 Error-detection and Error-correction </li></ul><ul><li>5.3 Multiple Access Protocols </li></ul><ul><li>5.4 Link-layer Addressing </li></ul><ul><li>5.5 Ethernet </li></ul><ul><li>5.6 Link-layer Switches </li></ul><ul><li>5.7 Point to Point Protocol </li></ul><ul><li>5.8 Link Virtualization </li></ul><ul><ul><li>ATM , MPLS </li></ul></ul><ul><li>Physical Layer </li></ul><ul><ul><li>Data and Signals </li></ul></ul>
  3. 3. Point to Point Data Link Control <ul><li>one sender, one receiver, one link: easier than broadcast link: </li></ul><ul><ul><li>no Media Access Control </li></ul></ul><ul><ul><li>no need for explicit MAC addressing </li></ul></ul><ul><ul><li>e.g., dialup link, ISDN line </li></ul></ul><ul><li>popular point-to-point DLC protocols: </li></ul><ul><ul><li>PPP (point-to-point protocol) </li></ul></ul><ul><ul><li>HDLC: High level data link control (Data link used to be considered “high layer” in protocol stack!) </li></ul></ul>DataLink Layer
  4. 4. PPP Design Requirements [RFC 1557] <ul><li>packet framing: encapsulation of network-layer datagram in data link frame </li></ul><ul><ul><li>ability to demultiplex upwards </li></ul></ul><ul><li>bit transparency: must carry any bit pattern in the data field </li></ul><ul><li>error detection (no correction) </li></ul><ul><li>connection liveness: detect, signal link failure to network layer </li></ul><ul><li>network layer address negotiation: endpoint can learn/configure each other’s network address </li></ul>DataLink Layer Error recovery, flow control, data re-ordering all relegated to higher layers!
  5. 5. PPP Data Frame <ul><li>Flag: delimiter (framing) </li></ul><ul><li>Address: does nothing (only one option) </li></ul><ul><li>Control: does nothing; in the future possible multiple control fields </li></ul><ul><li>Protocol: upper layer protocol to which frame delivered (eg, IP, PPP-LCP, IPCP, etc) </li></ul><ul><li>info: upper layer data being carried </li></ul><ul><li>check: cyclic redundancy check for error detection </li></ul>DataLink Layer
  6. 6. PPP Data Control Protocol <ul><li>Before exchanging network-layer data, data link peers must </li></ul><ul><li>configure PPP link (max. frame length, authentication) </li></ul><ul><li>learn/configure network layer information </li></ul><ul><ul><li>for IP: carry IP Control Protocol (IPCP) msgs (protocol field: 8021) to configure/learn IP address </li></ul></ul>DataLink Layer
  7. 7. Virtualization of networks <ul><li>Virtualization of resources : powerful abstraction in systems engineering: </li></ul><ul><li>computing examples : virtual memory, virtual devices </li></ul><ul><ul><li>Virtual machines: e.g., java </li></ul></ul><ul><ul><li>IBM VM os from 1960’s/70’s </li></ul></ul><ul><li>layering of abstractions : don’t sweat the details of the lower layer, only deal with lower layers abstractly </li></ul>DataLink Layer
  8. 8. The Internet: virtualizing networks <ul><li>Gateway: </li></ul><ul><li>“ embed internetwork packets in local packet format or extract them” </li></ul><ul><li>route (at internetwork level) to next gateway </li></ul>DataLink Layer ARPAnet satellite net gateway <ul><li>Internetwork layer (IP): </li></ul><ul><li>addressing: internetwork appears as single, uniform entity, despite underlying local network heterogeneity </li></ul><ul><li>network of networks </li></ul>
  9. 9. Cerf & Kahn’s Internetwork Architecture <ul><li>What is virtualized? </li></ul><ul><li>two layers of addressing : internetwork and local network </li></ul><ul><li>new layer (IP) makes everything homogeneous at internetwork layer </li></ul><ul><li>underlying local network technology </li></ul><ul><ul><li>cable </li></ul></ul><ul><ul><li>satellite </li></ul></ul><ul><ul><li>telephone modem </li></ul></ul><ul><ul><li>today: ATM, MPLS </li></ul></ul><ul><li>… “ invisible” at internetwork layer. Looks like a link layer technology to IP! </li></ul>DataLink Layer
  10. 10. ATM and MPLS <ul><li>ATM, MPLS separate networks in their own right </li></ul><ul><ul><li>different service models, addressing, routing from Internet </li></ul></ul><ul><li>viewed by Internet as logical link connecting IP routers </li></ul><ul><ul><li>just like dialup link is really part of separate network (telephone network) </li></ul></ul>DataLink Layer
  11. 11. Asynchronous Transfer Mode: ATM <ul><li>1990’s/00 standard for high-speed (155Mbps to 622 Mbps and higher) Broadband Integrated Service Digital Network architecture </li></ul><ul><li>Goal: integrated, end-end transport of carry voice, video, data </li></ul><ul><ul><li>meeting timing/QoS requirements of voice, video (versus Internet best-effort model) </li></ul></ul><ul><ul><li>“ next generation” telephony: technical roots in telephone world </li></ul></ul><ul><ul><li>packet-switching (fixed length packets, called “cells”) using virtual circuits </li></ul></ul>DataLink Layer
  12. 12. ATM architecture <ul><li>adaptation layer: only at edge of ATM network </li></ul><ul><ul><li>data segmentation/reassembly </li></ul></ul><ul><ul><li>roughly analagous to Internet transport layer </li></ul></ul><ul><li>ATM layer: “network” layer </li></ul><ul><ul><li>cell switching, routing </li></ul></ul><ul><li>physical layer </li></ul>DataLink Layer physical ATM AAL physical ATM AAL physical ATM physical ATM end system end system switch switch
  13. 13. ATM Adaptation Layer (AAL) <ul><li>Different versions of AAL layers, depending on ATM service class: </li></ul><ul><ul><li>AAL1: for CBR (Constant Bit Rate) services, e.g. circuit emulation </li></ul></ul><ul><ul><li>AAL2: for VBR (Variable Bit Rate) services, e.g., MPEG video </li></ul></ul><ul><ul><li>AAL5: for data (eg, IP datagrams) </li></ul></ul>DataLink Layer AAL PDU ATM cell User data small payload -> short cell-creation delay for digitized voice
  14. 14. ATM Layer: Virtual Circuits <ul><li>VC transport: cells carried on VC from source to dest </li></ul><ul><ul><li>call setup, teardown for each call before data can flow </li></ul></ul><ul><ul><li>each packet carries VC identifier (not destination ID) </li></ul></ul><ul><ul><li>every switch on source-dest path maintain “state” for each passing connection </li></ul></ul><ul><ul><li>link,switch resources (bandwidth, buffers) may be allocated to VC: to get circuit-like perf. </li></ul></ul><ul><li>Permanent VCs (PVCs) </li></ul><ul><ul><li>long lasting connections </li></ul></ul><ul><ul><li>typically: “permanent” route between to IP routers </li></ul></ul><ul><li>Switched VCs (SVC): </li></ul><ul><ul><li>dynamically set up on per-call basis </li></ul></ul>DataLink Layer
  15. 15. ATM VCs <ul><li>Advantages of ATM VC approach: </li></ul><ul><ul><li>QoS performance guarantee for connection mapped to VC (bandwidth, delay, delay jitter) </li></ul></ul><ul><li>Drawbacks of ATM VC approach: </li></ul><ul><ul><li>Inefficient support of datagram traffic </li></ul></ul><ul><ul><li>one PVC between each source/dest pair) does not scale (N*2 connections needed) </li></ul></ul><ul><ul><li>SVC introduces call setup latency, processing overhead for short lived connections </li></ul></ul>DataLink Layer
  16. 16. ATM cell header <ul><li>5-byte ATM cell header </li></ul><ul><li>VCI: virtual channel ID </li></ul><ul><ul><li>will change from link to link thru net </li></ul></ul><ul><li>PT: Payload type (e.g. RM cell versus data cell) </li></ul><ul><li>CLP: Cell Loss Priority bit </li></ul><ul><ul><li>CLP = 1 implies low priority cell, can be discarded if congestion </li></ul></ul><ul><li>HEC: Header Error Checksum </li></ul><ul><ul><li>cyclic redundancy check </li></ul></ul>DataLink Layer
  17. 17. IP-Over-ATM DataLink Layer IP datagrams into ATM AAL5 PDUs IP addresses to ATM addresses AAL ATM phy phy Eth IP ATM phy ATM phy app transport IP AAL ATM phy app transport IP Eth phy
  18. 18. Multiprotocol label switching (MPLS) <ul><li>initial goal : speed up IP forwarding by using fixed length label (instead of IP address) to do forwarding </li></ul><ul><ul><li>borrowing ideas from Virtual Circuit (VC) approach </li></ul></ul><ul><ul><li>but IP datagram still keeps IP address! </li></ul></ul>DataLink Layer PPP or Ethernet header IP header remainder of link-layer frame MPLS header label Exp S TTL 20 3 1 5
  19. 19. MPLS capable routers <ul><li>a.k.a. label-switched router </li></ul><ul><li>forwards packets to outgoing interface based only on label value (don’t inspect IP address) </li></ul><ul><ul><li>MPLS forwarding table distinct from IP forwarding tables </li></ul></ul><ul><li>signaling protocol needed to set up forwarding </li></ul><ul><ul><li>RSVP-TE </li></ul></ul><ul><ul><li>use MPLS for traffic engineering </li></ul></ul><ul><ul><li>forwarding possible along paths that IP alone would not allow (e.g., source-specific routing) !! </li></ul></ul><ul><li>must co-exist with IP-only routers </li></ul>DataLink Layer
  20. 20. MPLS forwarding tables DataLink Layer R1 R2 D R3 R4 R5 0 1 0 0 A R6 1 0 in out out label label dest interface 6 - A 0 in out out label label dest interface 10 6 A 1 12 9 D 0 in out out label label dest interface 8 6 A 0 in out out label label dest interface 10 A 0 12 D 0 8 A 1
  21. 21. Chapter 5: Summary <ul><li>principles behind data link layer services: </li></ul><ul><ul><li>error detection, correction </li></ul></ul><ul><ul><li>sharing a broadcast channel: multiple access </li></ul></ul><ul><ul><li>link layer addressing </li></ul></ul><ul><li>instantiation and implementation of various link layer technologies </li></ul><ul><ul><li>Ethernet </li></ul></ul><ul><ul><li>switched LANs </li></ul></ul><ul><ul><li>PPP </li></ul></ul><ul><ul><li>virtualized networks as a link layer: ATM, MPLS </li></ul></ul>DataLink Layer
  22. 22. Physical Layer <ul><li>Slides are modified from Behrouz A. Forouzan </li></ul>
  23. 23. TCP/IP and OSI model
  24. 24. Source-to-destination delivery
  25. 25. Physical layer Physical Layer To be transmitted, data must be transformed to electromagnetic signals.
  26. 26. Physical Layer Chapter 3: Data and Signals Chapter 4: Digital Transmission Chapter 5: Analog Transmission
  27. 27. 3-1 ANALOG AND DIGITAL <ul><li>Data can be analog or digital </li></ul><ul><li>Analog data refers to information that is continuous </li></ul><ul><li>Analog data take on continuous values </li></ul><ul><li>Analog signals can have an infinite number of values in a range </li></ul><ul><li>Digital data refers to information that has discrete states </li></ul><ul><li>Digital data take on discrete values </li></ul><ul><li>Digital signals can have only a limited number of values </li></ul>In data communications, we commonly use periodic analog signals and nonperiodic digital signals . Physical Layer
  28. 28. Comparison of analog and digital signals Physical Layer
  29. 29. 3-2 PERIODIC ANALOG SIGNALS <ul><li>Periodic analog signals can be classified as simple or composite . </li></ul><ul><li>A simple periodic analog signal, a sine wave , cannot be decomposed into simpler signals. </li></ul><ul><li>A composite periodic analog signal is composed of multiple sine waves. </li></ul>Physical Layer
  30. 30. Signal amplitude Physical Layer
  31. 31. Frequency is the rate of change with respect to time. <ul><li>Change in a short span of time means high frequency. </li></ul><ul><li>Change over a long span of time means low frequency. </li></ul><ul><li>If a signal does not change at all, its frequency is zero </li></ul><ul><li>If a signal changes instantaneously, its frequency is infinite. </li></ul>Frequency Physical Layer
  32. 32. Frequency and period are the inverse of each other. Units of period and frequency Frequency and Period Physical Layer
  33. 33. Two signals with the same amplitude, but different frequencies Physical Layer
  34. 34. The power we use at home has a frequency of 60 Hz . What is the period of this sine wave ? Examples The period of a signal is 100 ms. What is its frequency in kilohertz? Physical Layer
  35. 35. Phase describes the position of the waveform relative to time 0 Phase Three sine waves with the same amplitude and frequency, but different phases Physical Layer
  36. 36. A sine wave is offset 1/6 cycle with respect to time 0. What is its phase in degrees and radians? Example Solution We know that 1 complete cycle is 360°. Therefore, 1/6 cycle is Physical Layer
  37. 37. Wavelength and period Physical Layer Wavelength = Propagation speed x Period = Propagation speed / Frequency
  38. 38. Time-domain and frequency-domain plots of a sine wave Physical Layer A complete sine wave in the time domain can be represented by one single spike in the frequency domain.
  39. 39. Frequency Domain <ul><li>The frequency domain is more compact and useful when we are dealing with more than one sine wave. </li></ul><ul><li>A single-frequency sine wave is not useful in data communication </li></ul><ul><ul><li>We need to send a composite signal , a signal made of many simple sine waves. </li></ul></ul>Physical Layer
  40. 40. According to Fourier analysis, any composite signal is a combination of simple sine waves with different frequencies, amplitudes, and phases. Fourier analysis <ul><li>If the composite signal is periodic , the decomposition gives a series of signals with discrete frequencies; </li></ul><ul><li>If the composite signal is nonperiodic , the decomposition gives a combination of sine waves with continuous frequencies. </li></ul>Physical Layer
  41. 41. A composite periodic signal Decomposition of the composite periodic signal in the time and frequency domains Physical Layer
  42. 42. Time and frequency domains of a nonperiodic signal <ul><li>A nonperiodic composite signal </li></ul><ul><ul><li>It can be a signal created by a microphone or a telephone set when a word or two is pronounced. </li></ul></ul><ul><ul><li>In this case, the composite signal cannot be periodic </li></ul></ul><ul><ul><ul><li>because that implies that we are repeating the same word or words with exactly the same tone. </li></ul></ul></ul>Physical Layer
  43. 43. The bandwidth of a composite signal is the difference between the highest and the lowest frequencies contained in that signal. Bandwidth Physical Layer
  44. 44. A nonperiodic composite signal has a bandwidth of 200 kHz, with a middle frequency of 140 kHz and peak amplitude of 20 V. The two extreme frequencies have an amplitude of 0. Draw the frequency domain of the signal. Solution The lowest frequency must be at 40 kHz and the highest at 240 kHz. Example Physical Layer