Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS 5565 Network Architecture and Protocols

Similar presentations


Presentation on theme: "CS 5565 Network Architecture and Protocols"— Presentation transcript:

1 CS 5565 Network Architecture and Protocols
Lecture 24 Godmar Back

2 Announcements Project 2B due in 2 parts: Extra Credit Opportunities:
Apr 29 and May 6 See bugfix to sloop topology Extra Credit Opportunities: Expand simulator (and your implementation) to introduce multiple link failures and link resurrection Additional, requiring reading posted Andersen et al [SIGCOMM’08]: Accountable Internet Protocol (AIP) Casado et al [HotNets’08]: Rethinking Packet Forwarding Hardware CS 5565 Spring 2009 9/17/2018

3 Ethernet

4 Ethernet “dominant” wired LAN technology: cheap <$20 for 100Mbps!
first widely used LAN technology standardized in series of IEEE standards simpler, cheaper than token LANs and ATM kept up with speed race: 10 Mbps – 10 Gbps Metcalfe’s Ethernet sketch CS 5565 Spring 2009 9/17/2018

5 Ethernet Model Connectionless: Unreliable: CSMA/CD:
No handshaking between sending and receiving adapter Unreliable: No acks (or nacks) – higher-level protocols must compensate, but low BER (bit error rate) CSMA/CD: no slots random access protocol CS 5565 Spring 2009 9/17/2018

6 Ideal Multiple Access Protocol
Broadcast channel of rate R bps 1. When one node wants to transmit, it can send at rate R. 2. When M nodes want to transmit, each can send at average rate R/M 3. Fully decentralized: no special node to coordinate transmissions no synchronization of clocks, slots 4. Simple CS 5565 Spring 2009 9/17/2018

7 MAC Protocols: a taxonomy
MAC – Media Access Control Three broad classes: Channel Partitioning divide channel into smaller “pieces” (time slots, frequency, code) allocate piece to node for exclusive use Random Access channel not divided, allow collisions “recover” from collisions “Taking turns” Nodes take turns, but nodes with more to send can take longer turns CS 5565 Spring 2009 9/17/2018

8 Star Topology Bus topology popular through mid 90s
Now star topology prevails Connection choices: switch or hub Hubs rarely used nowadays hub or switch CS 5565 Spring 2009 9/17/2018

9 Ethernet Frame Structure
Sending adapter encapsulates IP datagram (or other network layer protocol packet) in Ethernet frame Preamble: 7 bytes with pattern followed by one byte with pattern used to synchronize receiver, sender clock rates    6   6  2   4 <05DC Length 0800 IP 0806 ARP 809B Appletalk … CS 5565 Spring 2009 9/17/2018

10 Ethernet CSMA/CD algorithm
1. Adaptor receives datagram from net layer & creates frame 2. If adapter senses channel idle, it starts to transmit frame. If it senses channel busy, waits until channel idle and then transmits 3. If adapter transmits entire frame without detecting another transmission, the adapter is done with frame ! 4. If adapter detects another transmission while transmitting, aborts and sends jam signal 5. After aborting, adapter enters exponential backoff: after the mth collision, adapter chooses a K at random from {0,1,2,…,2m-1}. Adapter waits K·512 bit times and returns to Step 2 CS 5565 Spring 2009 9/17/2018

11 Ethernet’s CSMA/CD (more)
Jam Signal: make sure all other transmitters are aware of collision; 48 bits Bit time: .1 microsec for 10 Mbps Ethernet ; for K=1023, wait time is about 50 msec Exponential Backoff: Goal: adapt retransmission attempts to estimated current load heavy load: random wait will be longer first collision: choose K from {0,1}; delay is K· 512 bit transmission times after second collision: choose K from {0,1,2,3}… after ten collisions, choose K from {0,1,2,3,4,…,1023} See/interact with Java applet on AWL Web site: highly recommended ! CS 5565 Spring 2009 9/17/2018

12 CSMA/CD efficiency tprop = max prop between 2 nodes in LAN
ttrans = time to transmit max-size frame Efficiency goes to 1 as tprop goes to 0 Goes to 1 as ttrans goes to infinity Much better than ALOHA, but still decentralized, simple, and cheap CS 5565 Spring 2009 9/17/2018

13 Efficiency of 10Mbps Ethernet
Backoff slot times is 512-bit NB: does not imply CSMA/CD Ethernet is slotted CS 5565 Spring 2009 9/17/2018

14 Ethernet Physical Layer
CS 5565 Spring 2009 9/17/2018

15 Manchester Encoding Used in 10BaseT Each bit has a transition
Allows clocks in sending and receiving nodes to synchronize with each other no need for a centralized, global clock among nodes! CS 5565 Spring 2009 9/17/2018

16 Fast Ethernet: 100BaseT 4B5B Bit Encoding
4B5B Bit Encoding MLT-3 (Multi-Level Threshold) Source: CS 5565 Spring 2009 9/17/2018

17 Gigabit Ethernet uses standard Ethernet frame format
allows for point-to-point links and shared broadcast channels in shared mode, CSMA/CD is used; short distances between nodes required for efficiency supports hubs, called here “Buffered Distributors” Though you wouldn’t use them full-duplex at 1 Gbps for point-to-point links 1000BaseT: 8B10B coding with 5 signal levels See IOL page for more information CS 5565 Spring 2009 9/17/2018

18 Hubs Hubs are essentially physical-layer repeaters:
bits coming from one link go out all other links at the same rate no frame buffering no CSMA/CD at hub: adapters detect collisions provides net management functionality Single collision domain CS 5565 Spring 2009 9/17/2018

19 Interconnecting LANs Hypothetical design: Disadvantage:
backbone hub interconnects LAN segments Disadvantage: individual segment collision domains become one large collision domain can’t interconnect 10BaseT & 100BaseT hub CS 5565 Spring 2009 9/17/2018

20 Switches Link layer device stores and forwards Ethernet frames
examines frame header and selectively forwards frame based on MAC dest address when frame is to be forwarded on segment, uses CSMA/CD to access segment transparent hosts are unaware of presence of switches plug-and-play, self-learning switches do not need to be configured CS 5565 Spring 2009 9/17/2018

21 Forwarding How do determine onto which LAN segment to forward frame?
hub switch 1 3 2 How do determine onto which LAN segment to forward frame? Looks like a routing problem... NB: Switches are called bridges if #interfaces == 2 CS 5565 Spring 2009 9/17/2018

22 Self Learning A switch has a switch table entry in switch table:
(MAC Address, Interface, Time Stamp) stale entries in table dropped (TTL can be 60 min) switch learns which hosts can be reached through which interface when frame received, switch “learns” location of sender: incoming LAN segment records sender/location pair in switch table CS 5565 Spring 2009 9/17/2018

23 Switch Example Suppose C sends frame to D address interface switch 1 A
B E G 1 2 3 2 3 hub hub A hub I D F B G C H E Switch receives frame from C notes in bridge table that C is on interface 1 because D is not in table, switch forwards frame into interfaces 2 and 3 frame received by D CS 5565 Spring 2009 9/17/2018

24 Switch Example (2) Suppose D replies back with frame to C. address
interface switch A B E G C 1 2 3 hub hub hub A I D F B G C H E Switch receives frame from from D notes in bridge table that D is on interface 2 because C is in table, switch forwards frame only to interface 1 frame received by C CS 5565 Spring 2009 9/17/2018

25 Switch: Traffic Isolation
switch installation breaks subnet into LAN segments switch filters packets: same-LAN-segment frames not usually forwarded onto other LAN segments segments become separate collision domains Nowadays: direct switch to host connection -> no collisions! hub switch collision domain collision domain collision domain CS 5565 Spring 2009 9/17/2018

26 Switches: Dedicated Access
Switch with many interfaces Hosts have direct connection to switch No collisions; full duplex A-to-E and B-to-F simultaneously cut-through switching: frame forwarded from input to output port without first collecting entire frame slight reduction in latency A C’ B switch D F E This is the dominant technology today CS 5565 Spring 2009 9/17/2018

27 Switches: Flow Control
What if A=100Mbps, E=10Mbps? host sends frames faster than switch can send them out of outgoing port undetected losses due to overflow could occur IEEE provides LLC layer that has flow control facilities “pause” frames to get sender to stop CS 5565 Spring 2009 9/17/2018

28 Switches vs Routers IP subnet mail server to external network
web server router switch IP subnet switch switch hub switch CS 5565 Spring 2009 9/17/2018

29 Spanning Tree Bridges Switches self-configure into spanning tree
CS 5565 Spring 2009 9/17/2018

30 802.1D Based on [Perlman 1985] Spanning Tree algorithm Disadvantage:
Root selection by lowest MAC ID Link-State approach: “HELLO” messages Links are in states: BACKUP (inactive) or FORWARDING (active) and in-between states Breaks loops fast, recovery takes up to 1min Disadvantage: Slow convergence after breakage 802.1w: RSTP (Rapid STP) Lack of multipath capability Not aware of VLANs (discussed next) CS 5565 Spring 2009 9/17/2018

31 Virtual LANs CS 5565 Spring 2009 9/17/2018

32 Virtual LANs (2) (a) Four physical LANs organized into two VLANs, gray and white, by two bridges. (b) The same 15 machines organized into two VLANs by switches. CS 5565 Spring 2009 9/17/2018

33 The IEEE 802.1Q Standard Transition from legacy Ethernet to VLAN-aware Ethernet. The shaded symbols are VLAN aware. The empty ones are not. CS 5565 Spring 2009 9/17/2018

34 The IEEE 802.1Q Standard (2) 802.1Q Ethernet frame format
VLAN Association may be done Via port Via MAC address Via Layer 3 information (IP address) CS 5565 Spring 2009 9/17/2018

35 Switches vs. Routers both store-and-forward devices
routers: network layer devices (examine network layer headers) switches are link layer devices routers maintain routing tables, implement routing algorithms switches maintain switch tables, implement filtering, learning algorithms + spanning tree algorithms CS 5565 Spring 2009 9/17/2018

36 Hubs vs. Routers vs. Switches
Traffic isolation No Yes Plug & Play Optimal Routing Cut Through CS 5565 Spring 2009 9/17/2018


Download ppt "CS 5565 Network Architecture and Protocols"

Similar presentations


Ads by Google