Ethernet Ethernet Advanced Advanced Computer Networks.

Slides:



Advertisements
Similar presentations
University of Calgary – CPSC 441.  We need to break down big networks to sub-LANs  Limited amount of supportable traffic: on single LAN, all stations.
Advertisements

Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
Review r Error Detection: CRC r Multiple access protocols m Slotted ALOHA m CSMA/CD r Homework 3 out r Project 3 out, link state only. Some slides are.
Ethernet Ethernet Computer Networks Computer Networks.
CPSC 441 TUTORIAL TA: FANG WANG HUBS, SWITCHES AND BRIDGES Parts of the slides contents are courtesy of the following people: Jim Kurose, Keith Ross:
CSC 450/550 Part 3: The Medium Access Control Sublayer More Contents on the Engineering Side of Ethernet.
Networks: Ethernet1 Ethernet. Networks: Ethernet2 Ethernet [DEC, Intel, Xerox] 1-persistent, CSMA-CD with Binary Exponential Backoff. Manchester encoding.
5/31/05CS118/Spring051 twisted pair hub 10BaseT, 100BaseT, hub r T= Twisted pair (copper wire) r Nodes connected to a hub, 100m max distance r Hub: physical.
1 A Station A begins transmission at t=0 A Station A captures channel at t=t prop CSMA Random Access Scheme.
Ethernet Standards Ethernet concepts origin DIX consortium – Mbps Ethernet 1 st Blue book – 1980 IEEE group takes over – Project 802 –802.1 – High.
TDC 461 Basic Communications Systems Local Area Networks 29 May, 2001.
1 Last class r Random Access Protocols m Slotted Aloha m Aloha m CSMA/CD m “Taking Turns” Protocols r Link-Layer Addressing Today r Ethernet, Hubs and.
1 Interconnection ECS 152A. 2 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r But individual.
5-1 Data Link Layer r Today, we will study the data link layer… r This is the last layer in the network protocol stack we will study in this class…
1 Interconnecting LAN segments Repeaters Hubs Bridges Switches.
Ethernet. Ethernet [DEC, Intel, Xerox] 1-persistent, CSMA-CD with Binary Exponential Backoff Manchester encoding.
Review r Error Detection: CRC r Multiple access protocols m Slotted ALOHA m CSMA/CD r LAN addresses and ARP r Ethernet Some slides are in courtesy of J.
Introduction 1 Lecture 25 Link Layer (Ethernet, Switch) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
Ethernet Ethernet Advanced Computer Networks Advanced Computer NetworksD12.
4/11/40 page 1 Department of Computer Engineering, Kasetsart University Introduction to Computer Communications and Networks CONSYL Ethernet.
DataLink Layer1 Ethernet Technologies: 10Base2 10: 10Mbps; 2: 200 meters (actual is 185m) max distance between any two nodes without repeaters thin coaxial.
Connecting LANs, Backbone Networks, and Virtual LANs
The Ethernet Prepared by: Amer Al-Qadri Ahmad Abdul-Rahman Ismail khistah
Thin Ethernet (10B2 / IEEE 802.3a) Segment length 0.5 m Up to 30 attached nodes Cable flexible and cheap Integrated or external transceiver connected via.
Enhanced CSMA Additional improvement  Use CSMA access  Listen while transmitting  Stop immediately if collision sensed  Called collision detection.
© NOKIADEFAULT.PPT / / AO page: 1 IP in LANs.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 17.
CSC 311 IEEE STANDARD ETHERNET Common Bus topology Uses CSMA/CD Named after “ether”, the imaginary substance many once believed occupied all of space.
Lecture 17 Ethernet r Widely deployed because: m First LAN technology m Simpler and less expensive than token LANs and ATM m Kept up with the speed race:
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 27 Omar Meqdadi Department of Computer Science and Software Engineering.
5: DataLink Layer5-1 Ethernet “dominant” wired LAN technology: r cheap $20 for 100Mbs! r first widely used LAN technology r Simpler, cheaper than token.
Brierley 1 Module 4 Module 4 Introduction to LAN Switching.
1 Computer Communication & Networks Lecture 13 Datalink Layer: Local Area Network Waleed Ejaz
Network Technologies Chapter 2. Approaches to Network Communication Connection-Oriented –Circuit-switched –A dedicated connection (circuit) is formed.
Link Layer: MAC Ilam University Dr. Mozafar Bag-Mohammadi.
Review: –Ethernet What is the MAC protocol in Ethernet? –CSMA/CD –Binary exponential backoff Is there any relationship between the minimum frame size and.
Ethernet Standards DIX consortium – Mbps Ethernet 1 st Blue book – 1980 IEEE group takes over – Project 802 –802.1 – High Level Interface –HLI –
5: DataLink Layer5-1 Link Layer r 5.1 Introduction and services r 5.2 Error detection and correction r 5.3Multiple access protocols r 5.4 Link-Layer Addressing.
Networks and Protocols CE Week 2a. Network hardware.
CS 1652 Jack Lange University of Pittsburgh 1. 5: DataLink Layer5-2 MAC Addresses and ARP r 32-bit IP address: m network-layer address m used to get datagram.
LANs : Aloha/CSMA , summary
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
5: DataLink Layer5-1 Link Layer r 5.1 Introduction and services r 5.2 Error detection and correction r 5.3Multiple access protocols r 5.4 Link-Layer Addressing.
5: DataLink Layer5-1 Chapter 5 Link Layer and LANs Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross.
IEEE STANDARDS IEEE STANDARDS In 1985, the Computer Society of the IEEE started a project, called Project 802, to set standards to enable intercommunication.
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao
5: DataLink Layer5-1 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r Multi-tier design provides.
EE 122: Lecture 6 Ion Stoica September 13, 2001 (* this talk is based in part on the on-line slides of J. Kurose & K. Rose)
CCNA3 Module 4 Brierley Module 4. CCNA3 Module 4 Brierley Topics LAN congestion and its effect on network performance Advantages of LAN segmentation in.
5: DataLink Layer5-1 Hubs Hubs are essentially physical-layer repeaters: m bits coming from one link go out all other links m at the same rate m no frame.
5: DataLink Layer5-1 Link-layer switches. 5: DataLink Layer5-2 Hubs … physical-layer (“dumb”) repeaters: m bits coming in one link go out all other links.
Ethernet Ethernet Advanced Computer Networks Advanced Computer NetworksC13.
5-1 Last time □ Multiple access protocols ♦ Channel partitioning MAC protocols TDMA, FDMA ♦ Random access MAC protocols Slotted Aloha, Pure Aloha, CSMA,
Chapter 3 Part 1 Switching and Bridging
Link Layer 5.1 Introduction and services
MAC Addresses and ARP 32-bit IP address:
Chapter 4 Data Link Layer Switching
Hubs Hubs are essentially physical-layer repeaters:
University of Pittsburgh
ARP: Address Resolution Protocol
Hubs Hubs are essentially physical-layer repeaters:
EEC-484/584 Computer Networks
Ethernet Computer Networks Spring 2012.
EEC-484/584 Computer Networks
18: Ethernet, Hubs, Bridges, Switches
Ethernet 16EC351 Computer networks unit II Mr.M.Jagadesh,AP/ECE.
LAN Addresses and ARP IP address: drives the packet to destination network LAN (or MAC or Physical) address: drives the packet to the destination node’s.
Chapter 5 Data Link Layer – Hub, Switch
Link Layer 5.1 Introduction and services
Presentation transcript:

Ethernet Ethernet Advanced Advanced Computer Networks

Ethernet Outline  Ethernet –Binary Exponential Backoff  Ethernet versus IEEE  Ethernet Evolution –10BASE5, 1OBASE2, 1BASE5, 10BASE-T  Switched Ethernet  Switching Hub Advanced Computer Networks Ethernet 2

Ethernet [DEC, Intel, Xerox] Ethernet [DEC, Intel, Xerox]  1-persistent, CSMA-CD with Binary Exponential Backoff.  Manchester encoding. Advanced Computer Networks Ethernet 3

Ethernet [operational in 1974] Ethernet [operational in 1974] Initially 3 Mbps baseband coaxial cable (thick Ethernet). Operational Description  Ethernet stations sense the channel (CS).  When the channel is free, the station transmits a frame (1-persistent).  The stations monitor the ‘ether’ during the transmission (MA).  If a collision is detected by any station (CD), the transmission is terminated immediately and a jam signal is sent.  Upon collision, transmitting stations backoff using a local counter and then retransmit (BEB). Advanced Computer Networks Ethernet 4

A transmits at t = 0 Distance d meters AB B transmits before t = t prop and detects collision shortly thereafter AB A B A detects collision at t = 2 t prop Advanced Computer Networks LANs 5 Worst Case Collision Scenario t prop = d / seconds Leon-Garcia & Widjaja: Communication Networks

framecontentionframe  A frame seizes the channel after 2 t prop  On 1 km Ethernet, t prop is approximately 5 microseconds.  Contention interval = 2 t prop  Interframe gap = 9.6 microseconds  Modeled as slotted scheme with slot = 2 t prop slot = 2 t prop Advanced Computer Networks Ethernet 6 Ethernet Ethernet

Binary Exponental Backoff (BEB)  Upon a collision, the sending stations increment a local counter K. The backoff interval is randomly selected using a uniform distribution over the L = 2 K slots. L = 2 K slots.  K is initially set to 0.  Thus upon collision, the value of L is doubled locally for each sending station. Advanced Computer Networks Ethernet 7

Slotted ALOHA has been shown to be unstable when p > 1/n Since Ethernet permits up to 1024 stations, backoff continues until K = 10, L = 2 10, and p = 1/2 10 Normally K is incremented up to 10, but BEB is set for 16 retries. After 16 retries, MAC gives up trying to send the frame. {The IP packet is now considered lost}. {The IP packet is now considered lost}. Advanced Computer Networks Ethernet 8 Binary Exponental Backoff (BEB)

Preamble SD Destination Address Source Address Length Information Pad FCS 7 12 or to 1518 bytes Synch Start frame 0 Single address 1 Group address Destination address is either single address or group address (broadcast = ) Addresses are defined on local or universal basis 2 46 possible global addresses 0 Local address 1 Global address MAC Frame Advanced Computer Networks Ethernet 9 IEEE Frame Format IEEE Frame Format Leon-Garcia & Widjaja: Communication Networks

Preamble SD Destination Address Source Address Type Information Pad FCS 7 12 or to 1518 bytes Synch Start frame Ethernet Frame Advanced Computer Networks Ethernet 10 Ethernet Frame Format Ethernet Frame Format Leon-Garcia & Widjaja: Communication Networks

AA AA 03 Information MAC Header FCS Frame LLC PDU SNAP Header Type ORG SNAP PDU Advanced Computer Networks Ethernet 11 Leon-Garcia & Widjaja: Communication Networks Ethernet Encapsulation Ethernet Encapsulation

Advanced Computer Networks Ethernet 12

Ethernet Evolution 10BASE5 {1983}  10 Mbps  500 meter segment length  Signal-regenerating repeaters  Thick Coax –Advantages: Low attenuation, excellent noise immunity, superior mechanical strength –Disadvantages: Bulky, difficult to pull, transceiver boxes too expensive * Wiring represented a significant part of total installed cost. Advanced Computer Networks Ethernet 13

MAU device is physically hooked on main cable. 50 meter AUI cable from MAU to station. Advanced Computer Networks Ethernet 14 10BASE5

10BASE2 ‘Cheapernet’ {1985}  10 Mbps  185 meter segment length  Signal-regenerating repeaters  Transceiver was integrated onto the adapter  Thin Coax (coax thinner and lighter) –Advantages: Easier to install, reduced hardware cost, BNC connectors widely deployed  lower installation costs. –Disadvantages: Attenuation not as good, could not support as many stations due to signal reflection caused by BNC Tee Connector. Ethernet Evolution Advanced Computer Networks Ethernet 15

Advanced Computer Networks Ethernet 16 10Base2 Cheapernet

(a) (b) transceivers Thick Ethernet Cable Thin Ethernet Cable Advanced Computer Networks Ethernet 17 Leon-Garcia & Widjaja: Communication Networks

1BASE5 StarLAN {1987} 1BASE5 StarLAN {1987}  1 Mbps  250 meter segment length  Signal-regenerating repeaters  Transceiver integrated onto the adapter  Hub-and-Spoke topology (star topology)  Two pairs of unshielded twisted pair –Advantages: Since four or more UTP are ubiquitous in buildings, it is easier to use installed wiring in the walls. Telephone wiring is hierarchical  can use wiring closets. Ethernet Evolution Advanced Computer Networks Ethernet 18

10BASE-T {1990} **Most popular 10BASE-T {1990} **Most popular  10 Mbps  100 meter segment length  Signal-regenerating repeaters  Transceiver integrated onto adapter  Two pairs of UTP  Hub-and-spoke topology {Hub in the closet} –Advantages: could be done without pulling new wires. Each hub amplifies and restores incoming signal. Ethernet Evolution Advanced Computer Networks Ethernet 19

The Hub Concept  Separate transmit and receive pair of wires.  The repeater in the hub retransmits the signal received from any input pair onto ALL output pairs.  Essentially the hub emulates a broadcast channel with collisions detected by receiving nodes. Advanced Computer Networks Ethernet 20

Advanced Computer Networks Ethernet 21 10Base-T Hub Concept

(a) (b) High-Speed Backplane or Interconnection fabric Single collision domain hub switch Advanced Computer Networks Ethernet 22 Leon-Garcia & Widjaja: Communication Networks Twisted Pair Ethernet

10Mbps Specification (Ethernet) Advanced Computer Networks Ethernet 23

Switched Ethernet * Basic idea: improve on the Hub concept  The switch learns destination locations by remembering the ports of the associated source address in a table.  The switch may not have to broadcast to all output ports. It may be able to send the frame only to the destination port.   a big performance advantage over a hub, if more than one frame transfer can go through the switch concurrently. Advanced Computer Networks Ethernet 24

Advanced Computer Networks Ethernet 25

SwitchesSwitches  link-layer devices: smarter than hubs, take active role –store, forward Ethernet frames –examine incoming frame’s MAC address, selectively forward frame to one-or-more outgoing links 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. Advanced Computer Networks Ethernet 26

Switches allows multiple simultaneous transmissions  hosts have dedicated, direct connection to switch  switches buffer packets  Ethernet protocol used on each incoming link, but no collisions; full duplex –each link is its own collision domain  switching: A-to-A’ and B- to-B’ simultaneously, without collisions –not possible with dumb hub!! A A’ B B’ C C’ switch with six interfaces (1,2,3,4,5,6) Advanced Computer Networks Ethernet 27

Switch Table  Q: how does switch know that A’ reachable via interface 4, B’ reachable via interface 5?  A: each switch has a switch table, each entry: –(MAC address of host, interface to reach host, time stamp)  looks like a routing table!  Q: how are entries created, maintained in switch table? –something like a routing protocol? A A’ B B’ C C’ switch with six interfaces (1,2,3,4,5,6) Advanced Computer Networks Ethernet 28

Switch: Self-Learning  switch learns which hosts can be reached through which interfaces –when frame received, switch “learns” location of sender: incoming LAN segment –records sender/location pair in switch table A A’ B B’ C C’ A A’ Source: A Dest: A’ MAC addr interface TTL Switch table (initially empty) A 1 60 Advanced Computer Networks Ethernet 29

Switch: Frame Filtering/Forwarding When frame received: 1. record link associated with sending host 2. index switch table using MAC dest address 3. if entry found for destination then { if dest on segment from which frame arrived then drop the frame if dest on segment from which frame arrived then drop the frame else forward the frame on interface indicated else forward the frame on interface indicated } } else flood else flood forward on all but the interface on which the frame arrived Advanced Computer Networks Ethernet 30

Self-learning, forwarding: example A A’ B B’ C C’ A A’ Source: A Dest: A’ MAC addr interface TTL Switch table (initially empty) A 1 60 A A’  frame destination unknown: flood A’ A r destination A location known: A’ 4 60 selective send Advanced Computer Networks Ethernet 31

Interconnecting Switches  switches can be connected together A B r Q: sending from A to G - how does S 1 know to forward frame destined to F via S 4 and S 3 ? r A: self learning! (works exactly the same as in single-switch case!) S1S1 C D E F S2S2 S4S4 S3S3 H I G Advanced Computer Networks Ethernet 32

Self-learning Multi-switch Suppose C sends frame to I, I responds to C r Q: show switch tables and packet forwarding in S 1, S 2, S 3, S 4 A B S1S1 C D E F S2S2 S4S4 S3S3 H I G 1 2 Advanced Computer Networks Ethernet 33

 The advantage comes when the switched Ethernet backplane is able to repeat more than one frame in parallel (a separate backplane bus line for each node). –The frame is relayed onto the required output port via the port’s own backplane bus line.  Under this scheme collisions are still possible when two concurrently arriving frames are destined for the same station.  Note – each parallel transmission can take place at 10 Mbps!! Advanced Computer Networks Ethernet 34 Switched Ethernet

Figure 4-20.A simple example of switched Ethernet. Tanenbaum’s discussion considers a more powerful switch that reduces collisions even further!! Advanced Computer Networks Ethernet 35 Switched Ethernet Tanenbaum

Switched Ethernet Hub  Since servers are often shared by multiple nodes, one can employ a switching hub with a port which operates at a higher rate than the other ports.  This requires extra buffering inside the hub to handle speed mismatches.  Can be further enhanced by higher rated port full-duplex. Advanced Computer Networks Ethernet 36

Ethernet Switch Server 100 Mbps links 10 Mbps links Fast Ethernet Switch Advanced Computer Networks Ethernet 37 Switching Hierarchy Leon-Garcia & Widjaja: Communication Networks

Ethernet Summary  Ethernet –Binary Exponential Backoff  Ethernet versus IEEE  Ethernet Evolution –10BASE5, 1OBASE2, 1BASE5, 10BASE-T  Switched Ethernet  Switching Hub Advanced Computer Networks Ethernet 38