CSE 123: Computer Networks Alex C. Snoeren. HW 2 due Thursday 10/21!

Similar documents
Lecture 9: Bridging & Switching"

Some portions courtesy Srini Seshan or David Wetherall

CSE 123A Computer Networks

Lecture 9: Bridging. CSE 123: Computer Networks Alex C. Snoeren

Lecture 6: Bridging & Switching. Last time. Today. CSE 123: Computer Networks Chris Kanich. How do multiple hosts share a single channel?

Lecture 8: Networks to Internetworks

Lecture 10: Internetworking"

SWITCHING, FORWARDING, AND ROUTING

Medium Access Protocols

Summary of MAC protocols

CSE/EE 461 Section 2

CSE/EE 461 Wireless and Contention-Free Protocols

CSE 461: Multiple Access Networks. This Lecture

Hubs. twisted pair. hub. 5: DataLink Layer 5-1

Underlying Technologies -Continued-

ECE 158A: Lecture 13. Fall 2015

Hubs, Bridges, and Switches (oh my) Hubs

CSE 461: Bridging LANs. Last Topic

Data Link Layer. Our goals: understand principles behind data link layer services: instantiation and implementation of various link layer technologies

Principles behind data link layer services

Chapter 3 Part 2 Switching and Bridging. Networking CS 3470, Section 1

Switching and Forwarding Reading: Chapter 3 1/30/14 1

Review. Error Detection: CRC Multiple access protocols. LAN addresses and ARP Ethernet. Slotted ALOHA CSMA/CD

Principles behind data link layer services:

Principles behind data link layer services:

The Spanning Tree Protocol

Growth. Individual departments in a university buy LANs for their own machines and eventually want to interconnect with other campus LANs.

IEEE , Token Rings. 10/11/06 CS/ECE UIUC, Fall

CompSci 356: Computer Network Architectures. Lecture 7: Switching technologies Chapter 3.1. Xiaowei Yang

CCM 4300 Lecture 5 Computer Networks, Wireless and Mobile Communications. Dr Shahedur Rahman. Room: T115

ET4254 Communications and Networking 1

Getting Connected (Chapter 2 Part 4) Networking CS 3470, Section 1 Sarah Diesburg

Internetworking Part 1

Medium Access Control. IEEE , Token Rings. CSMA/CD in WLANs? Ethernet MAC Algorithm. MACA Solution for Hidden Terminal Problem

Lecture 6. Data Link Layer (cont d) Data Link Layer 1-1

Links Reading: Chapter 2. Goals of Todayʼs Lecture. Message, Segment, Packet, and Frame

ECE 435 Network Engineering Lecture 21

Configuring STP and RSTP

CS3600 SYSTEMS AND NETWORKS

Administrivia CSC458 Lecture 4 Bridging LANs and IP. Last Time. This Time -- Switching (a.k.a. Bridging)

Reminder: Datalink Functions Computer Networking. Datalink Architectures

Review of Topology and Access Techniques / Switching Concepts

Medium Access Control Sublayer Chapter 4

Local Area Networks (LANs) SMU CSE 5344 /

Multiple Access Protocols

Chapter 4 NETWORK HARDWARE

Chapter 6 Connecting Device

ECE 333: Introduction to Communication Networks Fall Lecture 19: Medium Access Control VII

Communication Networks ( ) / Spring 2011 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

HWP2 Application level query routing HWP1 Each peer knows about every other beacon B1 B3

Computer Networks. Wenzhong Li. Nanjing University

CS 43: Computer Networks. 27: Media Access Contd. December 3, 2018

Local Area Network Overview

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

Good day. Today we will be talking about Local Internetworking What is Internetworking? Internetworking is the connection of different networks.

Telematics I. Chapter 6 Internetworking. (Acknowledement: These slides have been compiled from H. Karl s set of slides)

Chapter 5 Link Layer and LANs

Integrating Information Systems: Technology, Strategy, and Organizational Factors

Lecture 7. Reminder: Homework 2, Programming Project 1 due today. Homework 3, Programming Project 2 out, due Thursday next week. Questions?

Media Access Control (MAC) Sub-layer and Ethernet

CSE 461: Multiple Access. Homework: Chapter 2, problems 1, 8, 12, 18, 23, 24, 35, 43, 46, and 58

COMP476 Networked Computer Systems. Polling. Sharing the Wire. LAN Technologies. COMP476 Networked Computer Systems 1

Token Ring and. Fiber Distributed Data Interface (FDDI) Networks: Token Ring and FDDI 1

Internet II. CS10 : Beauty and Joy of Computing. cs10.berkeley.edu. !!Senior Lecturer SOE Dan Garcia!!! Garcia UCB!

Redes de Computadores. Medium Access Control

Systems. Roland Kammerer. 10. November Institute of Computer Engineering Vienna University of Technology. Communication Protocols for Embedded

Goal and Outline. Computer Networking. What Do We Need? Today s Story Lecture 3: Packet Switched Networks Peter Steenkiste

CS 43: Computer Networks Media Access. Kevin Webb Swarthmore College November 30, 2017

CH : 15 LOCAL AREA NETWORK OVERVIEW

TDT Appendix E Interconnection Networks

Switching and Forwarding

CSEP 561 LAN Switches. David Wetherall

1999, Scott F. Midkiff

CSCI Spring Final Exam Solution

Chapter 8 LAN Topologies

Image courtesy Cisco Systems, Inc. Illustration of a Cisco Catalyst switch

LAN Overview (part 2) Interconnecting LANs - Hubs

Link Layer Review. CS244A Winter 2008 March 7, 2008 Ben Nham

Network Infrastructure

High Level View. EE 122: Ethernet and Random Access protocols. Medium Access Protocols

CompSci 356: Computer Network Architectures. Lecture 8: Spanning Tree Algorithm and Basic Internetworking Ch & 3.2. Xiaowei Yang

Outline. Introduction to Networked Embedded Systems - Embedded systems Networked embedded systems Embedded Internet - Network properties

ECSE-4670: Computer Communication Networks (CCN) Informal Quiz 3

Networking Acronym Smorgasbord: , DVMRP, CBT, WFQ

Ethernet. EE 122: Intro to Communication Networks. Fall 2007 (WF 4-5:30 in Cory 277) Vern Paxson TAs: Lisa Fowler, Daniel Killebrew & Jorge Ortiz

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

CSE 1 23: Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks

CS 43: Computer Networks Switches and LANs. Kevin Webb Swarthmore College December 5, 2017

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

Physical Layer. Medium Access Links and Protocols. Point-to-Point protocols. Modems: Signaling. Modems Signaling. Srinidhi Varadarajan

Adaptors Communicating. Link Layer: Introduction. Parity Checking. Error Detection. Multiple Access Links and Protocols

Adaptors Communicating. Link Layer: Introduction. Parity Checking. Error Detection. Multiple Access Links and Protocols

This Lecture. BUS Computer Facilities Network Management. Switching Network. Simple Switching Network

EE 122: Ethernet and

CS Networks and Distributed Systems. Lecture 5: Bridging. Revised 1/14/13

Token Ring VLANs and Related Protocols

More on LANS. LAN Wiring, Interface

1/29/2008. From Signals to Packets. Lecture 6 Datalink Framing, Switching. Datalink Functions. Datalink Lectures. Character and Bit Stuffing.

Lecture 4b. Local Area Networks and Bridges

Transcription:

CSE 123: Computer Networks Alex C. Snoeren HW 2 due Thursday 10/21!

Finishing up media access Contention-free methods (rings) Moving beyond one wire Link technologies have limits on physical distance Also frequently on number of hosts connected Methods to interconnect LANs Repeaters and bridges Switching 2

Problem with fixed partitioning: Inefficient at low load (idle channels) Problem with contention-based protocols: Inefficient at high load (collisions) Ideal(?): Contention-free protocols Try to do both by explicitly taking turns Can potentially also offer guaranteed bandwidth, latency, etc. 3

Polling Token Passing Master node invites slave nodes to transmit in turn Request to Send (RTS), Clear to Send (CTS) messages Control token passed from one node to next sequentially. Point-to-point links can be fast Problems: Polling overhead Latency Single point of failure (master) Problems: Token overhead Latency Single point of failure (token) 4

D C A B nodes Direction of transmission Token rotates permission to send around node Sender injects packet into ring and removes later Maximum token holding time (THT) bounds access time Early or delayed token release Round robin service, acknowledgments and priorities Monitor nodes ensure health of ring (alerts on failures) 5

Roughly a large, fast token ring 100 Mbps and 200 km vs. 4/16 Mbps and local Dual counter-rotating rings for redundancy Complex token holding policies for voice etc. traffic Ring advantages No contention, bounded access delay Support fair, reserved, priority access Disadvantages Complexity, reliability, scalability Break! 6

Failure modes Token rings network unusable Ethernet node detached Good performance in common case Completely distributed, easy to maintain/administer Easy incremental deployment Volume lower cost higher volume. 7

One shared link (a bus) limits scale in terms of: Distance (e.g., 2500 m for Ethernet) Number of nodes (1024 nodes) Performance (Capacity shared across all nodes) A better alternative is to have multiple busses Each bus is of a limited size, scale, number of hosts, etc. Need the ability to connect multiple busses together In other words move frames from one wire to another 8

Physical layer device One port for each LAN Repeat received bits on one port out all other ports LAN1 Hub LAN2 LAN3 9

Hubs can be arranged into hierarchies Ethernet: up to four hubs between any pair of nodes Most of LAN continues to operate if leaf hub dies Simple, cheap 10

Single collision domain No improvement in max throughput Average throughput < as # of nodes increases Why? Still limited in distance and number of hosts Collision detection requirements Synchronization requirements Requires performance homogeneity Can t connect 10 Mbps and 100 Mbps networks 11

Store and forward device Data-link layer device Buffers entire packet and then rebroadcasts it on other ports Creates separate collision domains Uses CSMA/CD for access to each LAN (acts like a host) Can accommodate different speed interfaces (issues?) Improves throughput (why?) Can significantly improve performance Not all frames go everywhere. (Why did they with a hub?) 12

Only rebroadcast a frame to the LAN where its destination resides If A sends packet to X, then bridge must forward frame If A sends packet to B, then bridge shouldn t LAN 1 A LAN 2 W B C bridge X Y D Z 13

Need to know destination of frame Destination address in frame header (48bit in Ethernet) Need know which destinations are on which LANs One approach: statically configured by hand» Table, mapping address to output port (i.e. LAN) But we d prefer something automatic and dynamic Simple algorithm: Receive frame f on port q Lookup f.dest for output port If f.dest found then if output port is q then drop /* already delivered */ else forward f on output port; else flood f; /* forward on all ports but the one where frame arrived*/ 14"

Eliminate manual configuration by learning which addresses are on which LANs Basic approach If a frame arrives on a port, then associate its source address with that port As each host transmits, the table becomes accurate Expire tables to handle moving nodes Associate a timestamp with each table entry Refresh timestamp for each new packet with same source If entry gets too stale, remove it 15

Suppose C sends frame to D and D replies back with frame to C C sends frame, bridge has no info about D, so floods to both LANs bridge notes that C is on port 1 frame ignored on upper LAN frame received by D 16

D generates reply to C, sends bridge sees frame from D bridge notes that D is on port 2 bridge knows C on port 1, so forwards frame out port 1 17

Linear organization Inter-bridge hubs (e.g. CS) are single points of failure Unnecessary transit (e.g. EE<->SE must traverse CS) Backbone/tree Can survive LAN failure Manages all inter-lan communication Requires more ports 18

Learning works well in tree topologies A B3 B C B5 But trees are fragile Net admins like redundant/backup paths E B2 D B7 F K B1 How to handle Cycles? Where should B1 forward packets destined for LAN A? G B6 B4 H 19

Spanning tree uses subset of bridges so there are no cycles Prune some ports Only one tree C E A B2 B3 D B5 B7 F B K Q: How do we find a spanning tree? Automatically! Elect root, find paths G I B6 B1 B4 H J 20

Each bridge sends periodic configuration messages (RootID, Distance to Root, BridgeID) All nodes think they are root initially Each bridge updates route/root upon receipt Smaller root address is better, then shorter distance To break ties, bridge with smaller address is better Record best config heard on each port Rebroadcast new config only to ports we re best Don t bother sending config to LANs with better options Add 1 to distance, send new configs where still best Only forward to ports to route or where we re best 21

Sample messages to and from B3: A 1. B3 sends (B3, 0, B3) to B2 and B5 2. B3 receives (B2, 0, B2) and (B5, 0, B5) and accepts B2 as root 3. B3 sends (B2, 1, B3) to B5 4. B3 receives (B1, 1, B2) and (B1, 1, B5) and accepts B1 as root 5. B3 wants to send (B1, 2, B3 ) but doesn t as its nowhere best 6. B3 receives (B1, 1, B2) and (B1, 1, B5) again and again Data forwarding is turned off for LAN A C E G B2 I B3 B6 D B1 B5 B4 B7 F H J B K 22

What if root bridge fails? Age configuration info» If not refreshed for MaxAge seconds then delete root and recalculate spanning tree» If config message is received with more recent age, then recalculate spanning tree Applies to all bridges (not just root) Temporary loops When topology changes, takes a bit for new configuration messages to spread through the system Don t start forwarding packets immediately -> wait some time for convergence 23

Hosts directly connected to a bridge learning + spanning tree protocol Bridge supports parallel forwarding A-to-B and A -to-b simultaneously Generally full duplex as well Switch backplane capacity varies Ideally, nonblocking I.e., can run at full line rate on all ports No longer any shared bus Each link is its own collision domain Collision detection largely irrelevant 24

Create spanning tree across LANs Learn which ports to use to reach which addresses Benefits Higher link bandwidth (point-to-point links) Higher aggregate throughput (parallel communication) Improved fault tolerance (redundant paths) Limitations Requires homogeneous link layer (e.g. all Ethernet) Can t control forwarding topology What if we want to connect different link layers? 25

Read 4-4.1, 4.3 in P&D Homework due next Thursday 26