Enhanced CSMA Additional improvement  Use CSMA access  Listen while transmitting  Stop immediately if collision sensed  Called collision detection.

Slides:



Advertisements
Similar presentations
Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
Advertisements

University of Calgary – CPSC 441.  Ethernet, defined under IEEE 802.3, is one of today's most widely used data communications standards  It finds its.
Computer Networks Ethernet I Professor Hui Zhang
The ALOHA Protocol “Free for all”: whenever station has a frame to send, it does so. –Station listens for maximum RTT for an ACK. –If no ACK after a specified.
Ethernet – CSMA/CD Review
Networks: Ethernet1 Ethernet. Networks: Ethernet2 Ethernet [DEC, Intel, Xerox] 1-persistent, CSMA-CD with Binary Exponential Backoff. Manchester encoding.
1 K. Salah Module 4.2: Media Access Control The Media Access Control (MAC) sublayer –Random Access (CSMA), IEEE –Token Passing, IEEE Ch 13-
1 Version 3.0 Module 6 Ethernet Fundamentals. 2 Version 3.0 Why is Ethernet so Successful? In 1973, it could carry data at 3 Mbps Now, it can carry data.
Ethernet Standards Ethernet concepts origin DIX consortium – Mbps Ethernet 1 st Blue book – 1980 IEEE group takes over – Project 802 –802.1 – High.
MAC Protocols Media Access Control (who gets the use the channel) zContention-based yALOHA and Slotted ALOHA. yCSMA. yCSMA/CD. TDM and FDM are inefficient.
CSCI 4550/8556 Computer Networks Comer, Chapter 8: LAN Technology and Network Topologies.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 17 Introduction to Computer Networks.
1 Computer Networks Local Area Networks. 2 A LAN is a network: –provides Connectivity of computers, mainframes, storage devices, etc. –spans limited geographical.
Chapter 14 LAN Systems Ethernet (CSMA/CD) ALOHA Slotted ALOHA CSMA
EECC694 - Shaaban #1 lec #6 Spring Point-to-Point Vs. Shared Channel Communication In LANs Point-to-point: –Computers connected by communication.
EE 4272Spring, 2003 Chapter 14 LAN Systems Ethernet (CSMA/CD)  ALOHA  Slotted ALOHA  CSMA  CSMA/CD Token Ring /FDDI Fiber Channel  Fiber Channel Protocol.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 16 Introduction to Computer Networks.
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao
Ethernet. Ethernet [DEC, Intel, Xerox] 1-persistent, CSMA-CD with Binary Exponential Backoff Manchester encoding.
4/11/40 page 1 Department of Computer Engineering, Kasetsart University Introduction to Computer Communications and Networks CONSYL Ethernet.
1 Kyung Hee University Chapter 13 Wired LANs: Ethernet.
Infrastructure de Communications – CR 4107Chapter 41 The Medium Access Control Sublayer Chapter 4.
Review: Medium Access Control Sublayer –What is the problem to be addressed in this sublayer? –Protocols that allow collision Pure ALOHA Slotted ALOHA.
CSC 311 IEEE STANDARD ETHERNET Common Bus topology Uses CSMA/CD Named after “ether”, the imaginary substance many once believed occupied all of space.
جلسه دوازدهم شبکه های کامپیوتری به نــــــــــــام خدا.
9/11/2015 5:55 AM1 Ethernet and CSMA/CD CSE 6590 Fall 2010.
Ethernet. Ethernet Goals Simplicity Low Cost Compatibility Address flexibility Fairness –All nodes have equal access to the network High speed Stability.
Chapter 13 Wired LANs: Ethernet
1 LAN Technologies and Network Topology. 2 Direct Point-to-Point Communication.
1 Computer Communication & Networks Lecture 13 Datalink Layer: Local Area Network Waleed Ejaz
Ch. 16 High-Speed LANs The Emergence of High- Speed LANs Trends –Computing power of PCs has continued to grow. –MIS organizations recognize the.
LECTURE9 NET301. DYNAMIC MAC PROTOCOL: CONTENTION PROTOCOL Carrier Sense Multiple Access (CSMA): A protocol in which a node verifies the absence of other.
Network Technologies Chapter 2. Approaches to Network Communication Connection-Oriented –Circuit-switched –A dedicated connection (circuit) is formed.
LAN technologies and network topology LANs and shared media Locality of reference Star, bus and ring topologies Medium access control protocols.
Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.
1 Ethernet & IEEE Cisco Section 7.3 Stephanie Hutter October 2000.
CT1303 LAN LECTURE 15.
CSCI 465 D ata Communications and Networks Lecture 21 Martin van Bommel CSCI 465 Data Communications & Networks 1.
1 Data Link Layer Lecture 22 Imran Ahmed University of Management & Technology.
Data and Computer Communications Ninth Edition by William Stallings Data and Computer Communications, Ninth Edition by William Stallings, (c) Pearson Education.
CCNA 1 v3.0 Module 6 Ethernet Fundamentals. Objectives.
1Ethernet Lecture # 12 Computer Communication & Networks.
17 - Winter 2005 ECE ECE 766 Computer Interfacing and Protocols 1 Local Area Networks Need for high performance communications for physically close devices.
CS3505: Loca Area Networks CSMA/CD : IEEE and LAN Internetworks.
LANs : Aloha/CSMA , summary
IEEE STANDARDS IEEE STANDARDS In 1985, the Computer Society of the IEEE started a project, called Project 802, to set standards to enable intercommunication.
Rehab AlFallaj.  Standards determine:  Techniques used in the networks.  Its protocols.  Network specifications and features.
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)
1 Ethernet CSE 3213 Fall February Introduction Rapid changes in technology designs Broader use of LANs New schemes for high-speed LANs High-speed.
1 Ethernet History –developed by Xerox PARC in mid-1970s –roots in Aloha packet-radio network –standardized by Xerox, DEC, and Intel in 1978 –similar to.
1 University of Calgary CS 441 Part 4 Medium Access Control 4.1 MAC Sublayer - CSMA 4.2 MAC Sublayer - Collision Free.
COMPUTER NETWORKS Lecture-8 Husnain Sherazi. Review Lecture 7  Shared Communication Channel  Locality of Reference Principle  LAN Topologies – Star.
Lec # 23 Data communucation Muhammad Waseem Iqbal 1ethernet.
Ch. 16 Ethernet Traditional Ethernet IEEE Medium Access Control –Carrier Sense Multiple Access with Collision Detection (CSMA/CD) –The most.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Fundamentals of Computer Networks ECE 478/578 Lecture #11: Ethernet Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University of.
COMPUTER NETWORKS CS610 Lecture-7 Hammad Khalid Khan.
Example DLL Protocols 1. High-Level Data Link Control (HDLC).
The University of Adelaide, School of Computer Science
High Speed LANs – Ethernet and Token Ring
Chapter 14 LAN Systems Ethernet (CSMA/CD) ALOHA Slotted ALOHA CSMA
CT1303 LAN Rehab AlFallaj.
Chapter 12 Local Area Networks
Ethernet Neil Tang 9/17/2008 CS440 Computer Networks.
Protocol layering and data
Chapter 12 Local Area Networks
Protocol layering and data
Chapter 12 Local Area Networks
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.
Presentation transcript:

Enhanced CSMA Additional improvement  Use CSMA access  Listen while transmitting  Stop immediately if collision sensed  Called collision detection  Reduces time lost due to collisions Carrier Sense Multiple Access/Collision Detection protocols (CSMA/CD)

CSMA/CD How long should a station listen while transmitting to ensure no collision? Shared channel AB - Suppose A begins to transmit - Suppose B wants to transmit before hearing A’s transmission ☼☼ collision - How long before A hears collision?

Collision Detection Let p = maximum propagation delay p = time for signal to travel full length of channel To ensure detection of a collision, transmitter must listen 2 x propagation delay Thus, the time we need listen depends on size of network If we set a limit to size of network, we could define a maximum time to listen On wired networks we consider propagation delay as 2 * 10 8 meters per second

Collision Detection Suppose time to transmit frame is longer than 2 * propagation delay What can we say about the channel if we have not heard a collision after 2 * propagation delay? By that time, station will have seized the channel What if we required a minimum frame size? What if the time to transmit a frame of minimum size was ≥ 2 * propagation delay? Under this condition, if transmission completes without collision, we are assured none will occur

Ethernet/IEEE – Original Ethernet Based on a paper by Robert Metcalfe Based on Aloha concepts 2.94 Mbps (3 Mbps) Maximum size of 1 Km Used CSMA/CD protocol Used coaxial cable as media First version developed in collaboration with Xerox Intel Digital Equipment Corporation

Ethernet/IEEE Ethernet Version Mbps 500 meter segment Used 50 ohm coaxial cable CSMA/CD – 1-persistent 1982 Ethernet Version 2.0 Some electrical revisions 1985 IEEE Defined a family of networks Minor differences with Ethernet –Some additional electrical functions –Frame format variations

IEEE Family of Networks  CSMA/CD 1-persistent  Different speeds  Different media 10BASE5Thick Coax500 meters 10BASE2Thin Coax185 meters 10BASETTwisted pairs100 meters 10BASEFFiber 1 & 2 Km 100BASETtwisted pairs100 meters 1000BaseTtwisted pairs100 meters Others

10BASE5 500 meters 10 Mbps Maximum 100 stations on a segment Minimum 2.5 meters apart Manchester encoding  ±.85 volts  High to low = 1 bit  Low to high = 0 bit

10BASE5 500 meters host Transceiver – Ethernet Media Access Unit (MAU) - IEEE Transceiver/AUI Cable 50 meters maximum Attachment Unit Interface (AUI) How long must we listen to assure no collision? How large a minimum frame do we need to detect any collision before end of transmission?

10BASE5 500 meters Repeater Transceiver/AUI Cable 50 meters maximum A B How long must we listen to assure no collision?

Calculating Propagation Delay 100 meters of cable adds.5 µs to delay or 1 µs roundtrip Repeater adds approximately.75 µs one- way or 1.5 µs roundtrip Transceiver adds 1.0 µs one-way or 2.0 µs roundtrip (if not connected to host) On a 10 Mbps Ethernet, 1 µs is equivalent to transmitting 10 bits We can calculate delay in time units or in bits

Ethernet/IEEE Use CSMA/CD Detect collisions while transmitting frame Requires a minimum size frame  Transmission rate (speed)  Frame size  Network size All related

10BASE5 B A 500 meters R R R R 5 * 500 segments = 2500 meters = 12.5 µs 8 * 50 Transceiver cables = 400 meters = 2 µs 4 repeaters *.75 µs = 3 µs 8 transceivers * 1 µs = 8 µs Total one way delay = 25.5 µs Total round trip = 51 µs

Ethernet/IEEE Minimum frame size = 512 bits = 64 bytes Vulnerable time or contention slot = 51.2 µs After 51.2 µs, station has seized channel What happens if a station sends unlimited size frame? Maximum size frame also specified at 1518 bytes Maximum size frame enforced by transceiver

Original Ethernet Diagram

Ethernet Wiring Topologies Star wired hubs Shared Channel n Mbps capacity ABFGCED n Mbps All stations share n Mbps A shared hub is actually a repeater

Efficiency of CSMA/CD Let p = propagation delay (one way) A = probability a station acquires channel during a contention slot Tx = time to transmit an average size frame It can be shown that Optimal utilization when

Ethernet/IEEE802.3 Utilization

Ethernet/IEEE Advantages  Most widely used network architecture  New stations can be installed on live network  Low delay at low load  Simple access mechanism Disadvantages  Limited distances  Non deterministic  High collisions rate at high loads  No provisions for priority traffic

Collisions Minimum frame defined as 512 bits At 10 Mbps contention slot = 51.2 µs After a collision each station waits 0 or 1 contention slots After a second collision each station waits 0, 1, 2, or 3 contention slots After j collisions, each station waits 0, 1, 2,......, 2 j -1 contention slots until j = 10 then continue until 16 total tries This is called binary exponential backoff

Ethernet/IEEE Addressing Each station on a multiple access LAN must be uniquely identified For Ethernet, addresses are assigned to network interfaces by vendors Each address is 48 bits XXXXXX XXXXXX (X = 4 bits) vendors address There is a special broadcast address FFFFFF FFFFFF (all 1s) All stations on shared channel There are provisions for subgroups (multicast) This is called the Media Access Control (MAC) address

Ethernet/IEEE Addressing You can look up the vendor of the adaptor for your machine

Ethernet Frame Format Preamble SFD Destination Address Source Address Type Data 46–1500 bytes FCS CRC - 32 Ethernet Preamble SFD Destination Address Source Address Length LLC Data 46– 496bytes FCS CRC - 32 IEEE ………