direct link networks
play

Direct Link Networks Guevara Noubir CS 4700 & CS - PowerPoint PPT Presentation

Direct Link Networks Guevara Noubir CS 4700 & CS 5700 Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann Chapter 2. Fundamentals of Computer Networks Direct


  1. Direct ¡Link ¡Networks ¡ Guevara ¡Noubir ¡ CS ¡4700 ¡& ¡CS ¡5700 ¡ Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann Chapter 2. Fundamentals of Computer Networks Direct Link Networks 1

  2. Lecture ¡Outline ¡ • Physical ¡Layer ¡ – Links, ¡Capacity, ¡Encoding ¡ • Link ¡Layer ¡ – Framing ¡ – Error ¡DetecGon ¡ – Error ¡recovery ¡-­‑ ¡Sliding ¡Window ¡Algorithm ¡ – Medium ¡Access ¡Control ¡ • ExisGng ¡protocols: ¡Ethernet, ¡Token ¡Rings, ¡WiFi ¡ Fundamentals of Computer Networks Direct Link Networks 2

  3. Link ¡Technologies ¡ Propagate ¡signals, ¡technology ¡is ¡conGnuously ¡evolving… ¡ • Cables: ¡ ¡ • – Cat ¡5 ¡twisted ¡pair, ¡10-­‑100 ¡Mbps, ¡100m ¡ – Cat ¡6 ¡twisted ¡pair, ¡1-­‑10 ¡Gbps, ¡-­‑ ¡100m ¡ – Thin-­‑net ¡coax, ¡10-­‑100 ¡Mbps, ¡200m ¡ – Thick-­‑net ¡coax, ¡10-­‑100 ¡Mbps, ¡500m ¡ – MulGmode ¡fiber, ¡100 ¡Mbps ¡– ¡10 ¡Gbps, ¡ ¡-­‑ ¡2km ¡ – Single-­‑mode ¡fiber, ¡0.1-­‑10 ¡Gbps, ¡-­‑ ¡40km ¡ Leased ¡Lines: ¡ • – Copper ¡based: ¡T1 ¡(1.544Mbps), ¡T3 ¡(44.736Mbps) ¡ – OpGcal ¡fiber: ¡STS-­‑1 ¡(51.84Mbps), ¡STS-­‑N ¡(N*51.84Mbps) ¡ Last-­‑Mile ¡Links: ¡ • – POTS ¡(56Kbps), ¡ISDN ¡(2*64Kbps) ¡ – xDSL: ¡ADSL ¡(16-­‑640Kbps, ¡1.554-­‑8.448Mbps), ¡VDSL ¡(12.96Mbps-­‑55.2Mbps) ¡ – DOCSIS ¡(cable): ¡250 ¡Mbps ¡downstream, ¡20Mbps ¡upstream ¡ – ¡Fiber ¡to ¡the ¡home: ¡50Mbps ¡– ¡10Gbps ¡ – Powerline: ¡homeplug ¡AV2 ¡500Mbps ¡ • Wireless ¡Links: ¡Cellular, ¡WLAN, ¡Satellite ¡ Fundamentals of Computer Networks Direct Link Networks 3

  4. Link ¡Capacity ¡ • Shannon ¡Capacity ¡Theorem ¡ – Input ¡ x , ¡output ¡ y , ¡and ¡memoryless ¡channel ¡probability ¡transiGon ¡ funcGon ¡p( y | x ) ¡ – Capacity ¡is ¡max ¡mutual ¡informaGon ¡between ¡X ¡and ¡Y ¡over ¡all ¡possible ¡ distribuGons ¡of ¡x ¡ I ( X ; Y ) = H ( Y ) − H ( Y | X ) C = max I ( X ; Y ) ∑ H ( X ) = − p ( x )log 2 p ( x ) p ( x ) x • Case ¡of ¡AddiGve ¡White ¡Gaussian ¡Noise ¡(AWGN) ¡channel: ¡ – C ¡= ¡B*log(1+S/N) ¡ – S: ¡signal ¡power, ¡N: ¡noise ¡power, ¡B: ¡frequency ¡bandwidth, ¡C: ¡capacity ¡ • Example ¡of ¡telephone ¡line ¡ – B ¡= ¡3,300 ¡– ¡300 ¡Hz ¡= ¡3,000 ¡Hz; ¡ ¡ – S/N ¡= ¡1,000 ¡also ¡wrilen ¡as ¡30dB ¡ – C ¡= ¡30 ¡Kbps ¡ Fundamentals of Computer Networks Direct Link Networks 4

  5. Encoding ¡ • Signals ¡propagate ¡over ¡a ¡physical ¡medium ¡ – Modulate ¡electromagneGc ¡waves ¡ – e.g., ¡vary ¡voltage ¡ • Encode ¡binary ¡data ¡onto ¡signals ¡ – e.g., ¡0 ¡as ¡low ¡signal ¡and ¡1 ¡as ¡high ¡signal ¡ – known ¡as ¡Non-­‑Return ¡to ¡zero ¡(NRZ) ¡ Bits 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 NRZ Fundamentals of Computer Networks Direct Link Networks 5

  6. Problem: ¡ConsecuGve ¡1s ¡or ¡0s ¡ • Low ¡signal ¡(0) ¡may ¡be ¡interpreted ¡as ¡no ¡signal ¡ • High ¡signal ¡(1) ¡leads ¡to ¡baseline ¡wander ¡ – Receiver ¡compares ¡ rx_signal ¡to ¡ avg_signal ¡ • Unable ¡to ¡recover ¡clock ¡ Fundamentals of Computer Networks Direct Link Networks 6

  7. AlternaGve ¡Encodings ¡ • Non-­‑return ¡to ¡Zero ¡Inverted ¡(NRZI) ¡ – Make ¡a ¡transiGon ¡from ¡current ¡signal ¡to ¡encode ¡ a ¡one; ¡stay ¡at ¡current ¡signal ¡to ¡encode ¡a ¡zero ¡ – Solves ¡the ¡problem ¡of ¡consecuGve ¡ones ¡ • Manchester ¡ – Transmit ¡XOR ¡of ¡the ¡NRZ ¡encoded ¡data ¡and ¡the ¡ clock ¡ – Only ¡50% ¡efficient! ¡ Fundamentals of Computer Networks Direct Link Networks 7

  8. Encodings ¡(cont) ¡ Bits 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 0 NRZ Clock Manchester NRZI Fundamentals of Computer Networks Direct Link Networks 8

  9. Encodings ¡(cont) ¡ • 4B/5B ¡ – Every ¡4 ¡bits ¡of ¡data ¡encoded ¡in ¡a ¡5-­‑bit ¡code ¡ – 5-­‑bit ¡codes ¡selected ¡to ¡have ¡no ¡more ¡than ¡one ¡leading ¡0 ¡ and ¡no ¡more ¡than ¡two ¡trailing ¡0s ¡ ¡ – Thus, ¡ ¡never ¡get ¡more ¡than ¡three ¡consecuGve ¡0s ¡ – ResulGng ¡5-­‑bit ¡codes ¡are ¡transmiled ¡using ¡NRZI ¡ ¡ – Achieves ¡80% ¡efficiency ¡ 4b data 5b code 4b data 5b code 0000 11110 1000 10010 0001 01001 1001 10011 0010 10100 1010 10110 0011 01010 1011 10111 0100 01011 1100 11010 0101 01110 1101 11011 0110 10010 1110 11100 0111 10011 1111 11101 • 8B/10B: ¡used ¡in ¡Gigabit ¡Ethernet ¡ Fundamentals of Computer Networks Direct Link Networks 9

  10. Framing ¡ • The ¡physical ¡layer ¡provide ¡a ¡mean ¡to ¡transmit ¡a ¡sequence ¡ of ¡bits ¡ ¡ • How ¡can ¡one ¡determine ¡the ¡beginning/end ¡of ¡a ¡frame? ¡ • SoluGons: ¡ – Character-­‑based ¡framing ¡(use ¡special ¡control ¡characters) ¡ – Bit-­‑oriented ¡framing ¡with ¡flags ¡ – Length ¡counts ¡ – Clock ¡based ¡ Fundamentals of Computer Networks Direct Link Networks 10

  11. Character ¡Based ¡Framing ¡ • BISYNC: ¡BInary ¡SYNchronous ¡CommunicaGon ¡ SYN SYN SOH Header STX Packet ETX CRC SYN – SYN: ¡Synchronous ¡idle, ¡SOH: ¡Start ¡of ¡Header, ¡STX: ¡Start ¡of ¡text, ¡ETX: ¡End ¡of ¡text ¡ • Problem: ¡ ¡ – If ¡control ¡characters ¡appear ¡within ¡the ¡header, ¡or ¡CRC: ¡ • these ¡are ¡known ¡locaGon, ¡one ¡can ¡skip ¡control ¡characters ¡in ¡these ¡fields ¡ – If ¡control ¡characters ¡appear ¡in ¡the ¡packet ¡ • use ¡a ¡Data ¡Link ¡Escape ¡(DLE) ¡character ¡before ¡ETX ¡when ¡it ¡appears ¡within ¡the ¡ packet ¡ • if ¡DLE ¡appears ¡within ¡the ¡packet ¡replace ¡it ¡with ¡DLE ¡DLE ¡ • This ¡mechanism ¡is ¡called ¡ character ¡stuffing ¡ • Same ¡mechanism ¡in ¡Point-­‑to-­‑Point ¡Protocol ¡(PPP) ¡ – widely ¡used ¡over ¡modems, ¡DSL, ¡PPPoE, ¡PPPoA, ¡cellular, ¡etc. ¡ Fundamentals of Computer Networks Direct Link Networks 11

  12. Bit ¡Based ¡Framing ¡ • SenGnel-­‑based ¡(bit ¡oriented) ¡ – Delineate ¡frame ¡with ¡ ¡special ¡palern: ¡01111110 ¡ – e.g., ¡HDLC, ¡SDLC ¡ 8 16 16 8 Beginning Ending Header Body CRC sequence sequence – Problem: ¡special ¡palern ¡appears ¡in ¡the ¡payload ¡ – SoluGon: ¡ bit ¡stuffing ¡ • sender: ¡insert ¡0 ¡ater ¡five ¡consecuGve ¡1s ¡ • receiver: ¡delete ¡0 ¡that ¡follows ¡five ¡consecuGve ¡1s ¡ • Disadvantage: ¡potenGally ¡increases ¡the ¡length ¡by ¡20% ¡ Fundamentals of Computer Networks Direct Link Networks 12

  13. Counter ¡Based ¡Framing ¡ – Include ¡payload ¡length ¡in ¡header ¡ – e.g., ¡ Digital ¡Data ¡CommunicaGons ¡Message ¡Protocol ¡ ¡(DDCMP) ¡ ¡ – Problem: ¡count ¡field ¡corrupted ¡ – SoluGon: ¡catch ¡when ¡CRC ¡fails ¡ Fundamentals of Computer Networks Direct Link Networks 13

  14. Clock ¡Based ¡Framing ¡ – e.g., ¡SONET: ¡Synchronous ¡OpGcal ¡Network, ¡ dominant ¡standard ¡for ¡long-­‑distance ¡data ¡ transmission ¡over ¡opGcal ¡networks ¡ – STS-­‑ n ¡(STS-­‑1 ¡= ¡51.84 ¡Mbps) ¡ Fundamentals of Computer Networks Direct Link Networks 14

  15. Error ¡DetecGon ¡ • Assume ¡that ¡we ¡know ¡the ¡beginning/end ¡of ¡ the ¡frames ¡ • How ¡can ¡we ¡detect ¡if ¡one/several ¡bits ¡changed ¡ during ¡their ¡transmission? ¡ • Since ¡all ¡the ¡frames ¡can ¡potenGally ¡be ¡ received ¡then ¡we ¡have ¡to ¡add ¡some ¡ redundancy ¡bits ¡to ¡detect ¡errors ¡(checksum) ¡ Fundamentals of Computer Networks Direct Link Networks 15

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend