repeaters
play

Repeaters Ethernet segment is limited to 500 m due to signal - PowerPoint PPT Presentation

Repeaters Ethernet segment is limited to 500 m due to signal attenuation Computer Networks A repeater: an analog electronic device continuously monitors electrical signals on each LAN repeats and strengthens/amplifies signal Lecture


  1. Repeaters Ethernet segment is limited to 500 m due to signal attenuation Computer Networks A repeater: • an analog electronic device • continuously monitors electrical signals on each LAN • repeats and strengthens/amplifies signal Lecture 23: LAN Connectivity Repeater Ethernet only allows 4 repeaters: max 2.5 km. Why? Hubs Limitations of Repeaters and Hubs Hubs joins multiple input lines electrically One large shared link • bits coming from one link go out all other links • each bit is propagated to the whole network • aggregate throughput is limited • at the same rate hub • e.g., three departments each has a 10 Mbps LAN • no frame buffering • if connected via a hub, they must share the 10 Mbps • do not necessarily amplify signal Cannot support multiple LAN technologies • extends max distance between nodes • does not buffer or interpret frames hub • can ’ t interconnect between different rates or formats No CSMA/CD at hub: hub • e.g., can’t interconnect 10 BaseT & 100 BaseT • collision detection left to host adaptors Limitations on maximum #nodes and distances • individual segment collision hub • shared medium imposes length limits domains become one large collision domain • e.g., cannot go beyond 2500 meters on Ethernet

  2. Switches/Bridges Bridges/Switches Support concurrent communication (A � C, B � D) Link layer router-equivalent: hub • does not propagate interference and collisions • connect LANs at the link layer 3 � must buffer • unlike routers, only know whether switch • when a frame is to be forwarded on a segment, a node is in a segment 1 2 uses CSMA/CD to access segment • can connect segments with different MAC protocols • increase effective/aggregate bandwidth of a LAN by hub hub taking advantage of spatial locality • can also connect directly to host, at full duplex host host host host host host D C Store and forward frames between segments • extracts destination address from the frame Bridge • looks up the destination in a table A host host host host host host B Transparent Bridges/Switches Backward Learning Transparent: hosts are unaware of How does a switch know at which segment a the presence of switches hub node is located? Each switch has a switch table 3 Backward learning: switch • when a frame is received, switch “learns” the incoming Entry in switch table: 1 2 interface through which a sender may be reached • <MAC address, interface, timestamp> hub hub • records sender/interface pair in switch table • stale entries in table dropped (TTL can be 60 mins) Plug-and-play: self-learning switches do not need to be configured

  3. Flooding Example Frame Filtering/Forwarding When a switch receives a frame: Suppose C sends a frame to D Look for the MAC destination address in switch table address interface switch if entry found for destination { 1 A 1 2 3 1 B if destination is on the same segment from which frame arrived { 2 E hub hub hub drop the frame 3 G A I } else { F D forward the frame on interface indicated G B C H E } Switch receives frame from C } else { records in switch table that C is on interface 1 flood // forward to all interfaces except the incoming interface because D is not in table, switch forwards } frame to interfaces 2 and 3 frame received by D Backward Learning Example Switch: Traffic Isolation Switch breaks subnet into LAN segments Suppose D now sends a frame to C Switch filters packets: address interface switch • same-LAN-segment frames are not usually 1 A forwarded onto other LAN segments 1 2 3 1 B • segments become separate collision domains 2 E hub hub hub 3 A G switch I 1 C 2 F D D collision G B C H E domain Switch receives frame from D hub hub hub records in switch table that D is on interface 2 because C is in table, switch forwards frame only to interface 1 frame received by C collision domain collision domain

  4. Cut-Through Switching Switches: Dedicated Access Buffering delay can be a high fraction of total delay Hosts can have direct connection to switch • receiving a frame of length L from a link with transmission • full duplex: dedicated transmission line A rate R takes L/R time units in each direction, still CSMA/CD, • over short distances propagation delay is small F but no chance of collision B • and buffering delay can become a large fraction of total Switching: A -to- D and B -to- E Cut-through switching: streaming transmission switch simultaneously, no collisions • inspect the frame header and do the table look-up Switches can support combinations • if outgoing link is idle, immediately start forwarding the C head of the frame to the outgoing link of shared/dedicated and • while still receiving the tail via the incoming link 10/100/1000 Mbps interfaces E D A B switches Example Enterprise Network Cycles and Broadcast Storm Switch/Hub Installment LANs may form cycles • either accidentally, or by design, for higher reliability mail server • use of flooding can lead to forwarding loops to external network • causing “broadcast storm” web server router switch To prevent broadcast storm, IP subnet switches need to avoid some links when flooding, so as not to form a loop hub hub hub How to decide which link to avoid?

  5. Spanning Tree Constructing a Spanning Tree What is a spanning tree of a graph? Key ingredients of the algorithm • a sub-graph that covers all nodes, but contains no cycle • switches need to elect a “root” To avoid loops, links not in the spanning tree do not • root ::= the switch with the smallest identifier forward frames • “root messages” of the form ( X , R , d ) is broadcast • X is the ID of the node sending/forwarding the root message • R is the current root (smallest ID seen) • d is X ’s cost/distance to R • each switch checks whether its interface is on the shortest path from the root • exclude from the spanning tree interfaces not on the shortest path from root, break tie by ID • each LAN has a designated switch Need a distributed algorithm to compute spanning tree • multiple switches elect one with shortest root path, break tie by ID • switches cooperate to build the spanning tree • and adapt automatically when failures occur [after Rexford] [after Rexford] Steps in Spanning Tree Algorithm Example from Switch 4 ’s Viewpoint Switch 4 thinks it is the root Initially, each switch thinks it is the root • sends (4, 4, 0) root message to 2 and 7 • switch sends a root message out every interface • identifying itself as the root with distance 0 Then, switch 4 hears from switch 2 • example: switch X announces ( X , X , 0) 1 • receives (2, 2, 0) root message from 2 • and thinks that switch 2 is the root Switches update their “root view” • at distance one hop away 3 5 • upon receiving a root message, check the root id • if the new id is smaller, start viewing that switch as root Then, switch 4 hears from switch 7 2 • receives (7, 2, 1) from 7 4 Switches compute their distance from the root 6 • realizes that this is a longer path 7 • add 1 to the distance received from a neighbor • so, prefers its own 1 -hop path (on root port) • identify interfaces not on a shortest path to the root • and removes 4-7 link from the tree • and exclude them from the spanning tree • flood an updated root message [after Rexford] [after Rexford]

  6. Example from Switch 4 ’s Viewpoint Robust Spanning-Tree Algorithm Switch 2 hears about switch 1 Algorithm must react to failures • switch 2 hears (3, 1, 1) from 3 • failure of the root node • switch 2 starts treating 1 as root • need to elect a new root, with the next lowest identifier • failure of other switches and links • and sends (2, 1, 2) to neighbors 1 • need to re-compute the spanning tree Switch 4 hears from switch 2 Root switch continues to send root messages • switch 4 starts treating 1 as root 3 5 • periodically re-announces itself as the root (1, 1, 0) • and sends (4, 1, 3) to neighbors 2 • other switches continue to forward root messages Switch 4 hears from switch 7 4 6 Detect failures through timeout (soft state) • switch 4 receives (7, 1, 3) from 7 7 • and realizes that this is a longer path • a switch waits to hear from others • prefers its own 3 -hop path (on root port) • eventually times out and claims to be the root, and restarts the distributed algorithm all over again • and removes 4-7 Iink from the tree [after Rexford] [after Rexford] Forwarding on Spanning Tree Advantages of Switches over Hubs/Repeaters Summary of distributed spanning tree computation: • switch with lowest ID becomes root of tree • all switches (except root) determine root port (port to root) Only forwards frames as needed • the spanning tree consists of • filters frames to avoid unnecessary load on segments switches and root-port links • sends frames only to segments that need to see them • designated-port links connect Extends the geographic span of the network designated switches to LANs • separate segments allow longer distances Forwarding on the tree: Improves privacy by limiting scope of frames • hosts can “snoop” only the traffic traversing their segment • forward frames only on root-port and designated-port links Can join segments using different technologies • tree does not provide shortest path, e.g., Peterson & Davie A to C does not go through B3 [after Rexford]

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