Contents. Telecom Systems Chae Y. Lee. Typical Setup Physical Layer Names 10Base5 CSMA/CD Frame Fast Ethernet; Gigabit Ethernet Perspective

Similar documents
EECS 122, Lecture 7. Kevin Fall Jean Walrand

Ethernet. Typical Setup. Names. Operations. Operations Switch: No Collisions EECS 122. Hub: Single Collision Domain

Lectures Ethernet

Data Link Layer, Part 3 Medium Access Control. Preface

Part3. Local Area Networks (LAN)

Data Link Layer, Part 5. Medium Access Control

CSE 461: Multiple Access Networks. This Lecture

Data and Computer Communications

Introductory to Computer Networks Local Area Networks. Lecture 16 Fall Isfahan University of technology Dr.

! High Data Rates (0.1 to 1000 Mbps)! Short Distances (0.1 to 25 km) ! Low Error Rate (10 to 10 ) Local Area Networks

IEEE standards for local area networks

IEEE 802 LANs SECTION C

Local Area Networks. Aloha Slotted Aloha CSMA (non-persistent, 1-persistent, p-persistent) CSMA/CD Ethernet Token Ring

Computer Networks Medium Access Control. Mostafa Salehi Fall 2008

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

LAN PROTOCOLS. Beulah A AP/CSE

Direct Link Communication II: Wired Media. Multi-Access Communication

Lecture 4b. Local Area Networks and Bridges

Redes de Computadores. Medium Access Control

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

Networking Technologies and Applications

Link Layer and Ethernet

Link Layer and Ethernet

Lecture 5 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

ECE 4450:427/527 - Computer Networks Spring 2017

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

Lecture 05 Chapter 16 High Speed LANs

Ethernet Standard. Campus Network Design. Ethernet address. OSI Model. Thana Hongsuwan

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Introduction to Computer Networks. IEEE Ethernet

Lecture 6 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Ethernet. Introduction. CSE 3213 Fall 2011

EE 122: Ethernet and

LAN Protocols. Required reading: Forouzan 13.1 to 13.5 Garcia 6.7, 6.8. CSE 3213, Fall 2015 Instructor: N. Vlajic

Direct Link Communication II: Wired Media. Multi-Access Communication

Objectives. Hexadecimal Numbering and Addressing. Ethernet / IEEE LAN Technology. Ethernet

The random access methods we study in this chapter have evolved from a very interesting protocol known as ALOHA, which used a very simple procedure

Contention Protocols and Networks

Ethernet. Networks: Ethernet 1

Ethernet. Agenda. Introduction CSMA/CD Elements and Basic Media-Types Repeater, Link Segments Framing. L21 - Ethernet

Origin of IEEE (Ethernet) Ethernet. Agenda. Basic Idea of Ethernet Bus System

High Speed LANs. Range of technologies. Fast and Gigabit Ethernet Fibre Channel High Speed Wireless LANs. CS420/520 Axel Krings Page 2

Multiple Access Protocols

Jaringan Komputer. Broadcast Network. Outline. MAC (Medium Access Control) Channel Allocation Problem. Dynamic Channel Allocation

CHAPTER 7 MAC LAYER PROTOCOLS. Dr. Bhargavi Goswami Associate Professor & Head Department of Computer Science Garden City College

Ethernet. Computer Networks. Lecture 4.

Medium Access Control Sublayer

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

The Link Layer and LANs. Chapter 6: Link layer and LANs

Goals. Fundamentals of Network Media. More topics. Topics. Multiple access communication. Multiple access solutions

Unit II. Part A (2 Marks)

Introduction Computer Networks. Applications Requiring High Speed LANs. Why High Speed LANs? IEEE802.3 Medium Access Control

CARRIER SENSE MULTIPLE ACCESS (CSMA):

Computer Networks Principles LAN - Ethernet

The Link Layer and LANs

Ethernet Basics. based on Chapter 4 of CompTIA Network+ Exam Guide, 4 th ed., Mike Meyers

The MAC Layer. Contents. Textbook. Jean Yves Le Boudec Fall 2012

LAN. CS 4/55231 Internet Engineering. Kent State University Dept. of Computer Science

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

Summary of MAC protocols

Data Link Protocols. TCP/IP Suite and OSI Reference Model

Internet Architecture and Protocol

Zarządzanie sieciami telekomunikacyjnymi

Data Link Layer -2- Network Access

LAN Systems. Bus topology LANs

Multiple Access Channels

Local Area Networks. Broadcast Networks. Hugh Melvin, Dept. IT, NUI,G 1. Hugh Melvin, Dept. IT, NUI,G 2. Hugh Melvin, Dept.

EECS Introduction to Computer Networking. Local Area Networks / Ethernet. Hub

Other Protocols. Arash Habibi Lashkari

The Medium Access Sublayer

Reminder: Datalink Functions Computer Networking. Datalink Architectures

Data Link Layer -2- Network Access

Data and Computer Communications. Chapter 11 Local Area Network

Media Access Control (MAC) Sub-layer and Ethernet

Topics. Link Layer Services (more) Link Layer Services LECTURE 5 MULTIPLE ACCESS AND LOCAL AREA NETWORKS. flow control: error detection:

The Link Layer II: Ethernet

EITF25 Internet Techniques and Applications L4: Network Access. Stefan Höst

Ethernet Hub. Campus Network Design. Hubs. Sending and receiving Ethernet frames via a hub

Chapter 3: Industrial Ethernet

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

CS 716: Introduction to communication networks. - 9 th class; 19 th Aug Instructor: Sridhar Iyer IIT Bombay

The Network Access Layer. In This Lecture. Network Access Layer. Hour 3

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

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

Chapter 9 Ethernet Part 1

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

Lecture (04) Network Layer (Physical/Data link) 2

More on LANS. LAN Wiring, Interface

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 16

Computer Networking Lecture 5 Data link Layer Access Control. Based on slides by Peter Steenkiste Copyright, Carnegie Mellon

Local Area Networks. Ethernet LAN

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

Lecture 9 The Data Link Layer part II. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

CS 455/555 Intro to Networks and Communications. Link Layer

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

Direct Link Networks (II)

Introduction to LAN Topologies Cabling. 2000, Cisco Systems, Inc. 3-1

Contents. The MAC layer CN2. 1. MAC as Shared Medium 2. MAC as interconnection at small scale 3. MAC and Link layer. Jean-Yves Le Boudec, EPFL

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

CCNA Exploration Network Fundamentals. Chapter 09 Ethernet

Transcription:

Ethernet

Contents Typical Setup Physical Layer Names 10Base5 CSMA/CD Frame Fast Ethernet; Gigabit Ethernet Perspective 2

Ethernet - Typical Setup 3

Ethernet Physical Layer UTP Unshielded twisted pair Up to 110m Fiber 100Mbps: 2000m Gbps: 220m, 500m, 5000m Wireless 2.4Ghz DSSS: 1Mbps, 2Mbps, 5.5Mbps, and 11Mbps 25m 200m 4

Ethernet Hub - Physical Layer Hub: Single Collision Domain Relay hub collision! hub MAC Protocol: CSMA/CD Wait until silent (carrier sense) Transmit If collision, wait random time and repeat 5

Switched Ethernet - Physical Layer Switch: No Collisions Switch Multiple transmissions are possible without collision Switch stores packets that wait for same output 6

Ethernet Standardizes as IEEE 802.3 1-persistent CSMA/CD with exponential backoff on wired LAN Once the channel is sensed idle by a station, tx takes place with probability 1 Classical Ethernet is 10Mb/s over 50-ohm Coax wiring Newer standards cover UTP wiring, 100Mb/s operation, etc 7

Names for Ethernet Names of form [rate][modulation][media or distance] Examples: 10base2 (10Mb/s, baseband, thin coax, 200m): Thinnet 10base5 (10Mb/s, baseband, thick coax, 500m): Thicknet 10base-T (10Mb/s, baseband, twisted pair): star from hub 100base-TX (100Mb/s, baseband, 2 pair): star from hub/switch 100base-FX (100Mb/s, baseband, 2 fibers): star from hub/switch 8

Link Layer Networks Achieve station-to-station connectivity May be point-to-point or multi-access Point-to-point may not require addresses Multi-access requires addresses and sharing Error detection Addressing 9

Sharing How to share a broadcast media (e.g. wire, air)? What to do with two simultaneous speakers Approaches: centralized and distributed Centralized (polling) Decentralized (speaking when media idle) 10

Comparing Approaches Centralized Approach Polling requires speaker to await moderator, even if others idle Problems if moderator s connection fails Decentralized Approach No moderator wait, but subject to collisions Collisions could continue forever The Multiple-Access Problem 11

CSMA Type Networks CSMA Carrier Sense Multiple Access Detect when medium is idle/busy Persistent: Once the channel is sensed idle by a station, tx takes place with probability 1 Non-persistent (send some time soon) Approach to collisions p-persistence: tx takes place with probability p or tx is deferred one unit of time with probability 1-p: Wireless LAN Detection and backoff: Ethernet 12

p-persistent CSMA p = Prob(send idle) E(# stations tx after idle) = np [n: # total stations ready to send] If np > 1, likely secondary collision, so want p < 1/n n increases with system load, so want smaller p with high load Smaller p affects message delay Ethernet is 1-persistent 13

Ethernet Properties - 10base5 (Thicknet) Classical Ethernet Single segment up to 500m; with up to 4 repeaters gives 2500m max length Baseband signals broadcast, Manchester encoding, 32-bit CRC for error detection Max 1024 stations/ethernet 14

Collision Detection and Backoff Determine if frame transmitted successfully, if not, wait Collision detection Wait using exponential backoff Wait random on interval [0, 2(max prop. delay)] Double on each successive collision 15

Collision Detection CD circuit operates by looking for voltage exceeding a transmitted voltage Want to ensure that a station dose not complete transmission prior to CD Time to CD takes up to 2(max prop. delay) A B time CD 16

Minimum frame size Speed of light is about 3x10 8 m/s in vacuum and about 2x10 8 m/s in copper So, with 4 repeaters (2500m 10base5) max Ethernet signal prop time is about 12.5μsec, or 25μsec RTT With repeaters, etc. 802.3 requires 51.2μsec, corresponding to 512 bit-times Thus, minimum frame size is 512 bits (64 bytes); also called slot time 17

Slot time and minimum frame size Collision undetected: A frame tx time < Round-trip propagation time (slot time) Collision detection: tx time of minimum frame length > slot time 18

Max frame size 1500 byte limitation on maximum frame transmission size (MTU) Limits maximum buffers at receiver Allows for other stations to send Also requires 96 bit Inter-Packet-Gap (IPG) 19

Transmitter When ready and line idle, await IPG (96 bit times) and send while listening (CD) If CD true, the adapter (NIC) generates max 48-bit jamming sequence and do exponential backoff Jamming sequence used to inform all stations that a collision has occurred 20

Exponential Backoff For retransmission n (1 n 10) Choose k at random on U(0, 2 n -1) Wait k* (51.2μsec) to retransmit Send on idle; repeat on another collision For (11 n 15), use U(0, 1023) If n = 16, drop frame Longer wait implies lower priority (strategy is not fair ) 21

CSMA/CD (IEEE 802.3 specification) 1. If no carrier, then it tx its information 2. If a carrier is present, it waits until carrier clears, waits an additional time designated as the Inter-Packet Gap (or IPG: inserted after every successful tx) which is 9.6 S long, and then tx 22

CSMA/CD (IEEE 802.3 specification) 3. If more than one station tx at the same time, the collision will be detected before any of the stations complete their tx The minimum frame length of 64 bytes insures that simultaneous tx will be detected before completion, even in the worst case scenario of two stations at the limits of the segments colliding When a collision is detected, the transmitting station ceases tx of information and tx a 48-bit jam signal to indicate to other stations on the network that a collision has occurred 23

CSMA/CD (IEEE 802.3 specification) 4. After collision, the transmitting station executes the backoff algorithm The backoff algorithm basically consists of the transmitting station waiting a random interval before re-transmitting The transmitting station selects a random number from a limited range of random numbers specified by the equation: Max Range = 2 n 1 where n is the number of collisions that the transmitting station has experienced 24

CSMA/CD (IEEE 802.3 specification) The random number selected from the specified range is then multiplied by a constant referred to as a time slot, which is derived from the bit length of the medium (512 bits at 10 Mbps or 51.2 S) The number n is incremented each time a collision occurs, until its value is 10, corresponding to a possible maximum waiting interval of 51.2 S 1023 This range of numbers is used for the next 5 collisions, after 15 collisions the algorithm will report an error to the higher level application 25

Capture Effect Given two stations A and B, unfair strategy can cause A to continue to win Assume A and B always ready to send: If busy, both wait, then send and collide Suppose A wins, B backs off Next time, B s chances of winning are halved To winner every collision is the 1 st one 26

CSMA/CD Typical Sequence of Events: Average time until success = 5T T = max prop. time between 2 nodes Average = L/R seconds L = average frame length Collision Start Transmitting Wait Random Time Successful Transmission L/R Efficiency = = 1/(1 + 5a) L/R + 5T a = T/(L/R) = RT/L 27

Efficiency of CSMA/CD a = RT/L eff = 1/(1 + 5a) a impacts what happens during simultaneous transmisstion: a small: early collision detection, efficient a large: late detection, inefficient Example 1: 10Mbps, 1000m => T = (1km)(4μs/km) = 4μs; RT = 40 bits L = 4000 bits 5a = 200/4000 = 0.05 => efficiency 95% Example 2: 1Gbps, 200m => T = (0.2km)(4μs/km) = 0.8μs; RT = 800bits L = 4000 bits 5a = 4000/4000 = 1 => efficiency = 50% 28

Efficiency of CSMA/CD Analysis Model: Slot = 2T N stations compete each by transmitting with probability p during the slot, independently If success => transmit L bits If failure (idle or collision), try next slot P(success) = P(exactly 1 out of N transmits) = Np(1-p) N-1 Indeed: N possibilities of station that transmits P(one given station transmits, others do not) = p(1-p) N-1 29

Efficiency of CSMA/CD Analysis Average = A Slot = 2T success P(success) = Np(1-p) N-1 Maximum when p = 1/N => P(success) = 1/e = 0.36 Average time until success: A = 0.36(0) + 0.64(2T + A) => A = 1.28T/0.36 = 3.5T In practice, backoff not quite optimal => 5T 30

Network Interface Card (NIC) Each node has a NIC NIC is responsible for tx and rx data frames Each NIC has a different address: MAC address 31

Ethernet Frame 64 to 1,518 bytes (512 to 12,144 bits) 7 1 6 6 2 1 1 1 or 2 bytes 4 PRE SFD DA SA LEN DSAP SSAPCONT Data PAD CRC LLC frame 32

Frame Structure 7 byte preamble: alternating 0/1 combination producing 10Mhz square wave for 5.6 μsec, used for receiver sync 1byte SFD (start of frame delimiter) 10101011 6 byte destination address, 6 byte source address, 2 byte type/length overloaded field Variable sized data portion followed by 4-byte CRC-32 Sends low-order bit first for 802.3 33

Ethernet Frame Length/Type field: Type (Ethernet V2) Indicates type of data contained in payload Issue: what is the length? Length field (IEEE 802.3) Type info follows frame header So, is it the type or length? Ethernet : types have values above 2048 (RFC894 for IP) 802.3: length value below 05DC (RFC1042 for IP) IF length, next headers are LLC and SNAP (for IP) LLC (3 bytes): DSAP, SSAP, CTL SNAP (5 bytes): org code, type (above) 34

Most commonly used

36

Ethernet Addressing 48 bit Ethernet/MAC/Hardware Addresses in NIC 00:60:8C:01:02:03 Prefix assigned per-vendor by IEEE Unique per-adapter, burned into ROM 37

Ethernet Address 00:60:8C:01:02:03 38

Multicast Addressing Multicast (least significant bit of 1 st byte = 1) and Broadcast (all 1 s) addresses (used for ARP) Many adapters support promiscuous mode, i.e., delivers all received frames to the host Each vendor assignment supports 2 24 individual and group (multicast) addresses Each adapter supports multiple group subscriptions Usually implemented as hash table Thus, software may have to filter at higher layer 39

IEEE 802.3u 100 Mb/s Fast Ethernet (1995) adds: 10x speed increase 100m max cable length retains min 64 byte frames between hub and stations Replace Manchester with 4B/5B Full-duplex operation using switches: non-shared link CSMA/CD disabled Speed and duplex auto-negotiation 40

Hubbing with Ethernet 41

Ethernet Switch Switch 42

LAN Hub and Switch 43

IEEE 802.3{z,ab} 1000 Mb/s Gigabit Ethernet (1998, 9) adds: 100x speed increase Carrier extension (invisible padding ) >=4096 bit-times, up from the minimum 512 bit-times Frame bursting multiple short frames tx consecutively without CSMA/CD between frames 44

KAIST Gigabit Ethernet 바동 공작실모터풀 신기술창업관 에너지환경연구센터 CHiPS LG Hall 동문창업관 Cisco GSR 12012 기계 ( 서관 ) PP 동 여학생 나동 별동 가동 학사기숙사 다동 라동 마동 3 호관 인문사회과학관 2 호관 교수회관 APAN Cisco Catalyst 6509 Cisco Catalyst 4506 EPN 교양도서관 1 호관 Cisco Catalyst 4006 항공우주 기계공학동 기계 ( 동관 ) 태울관 학사기계실 체육관 Hanaro Cisco Catalyst 4003 Cisco Catalyst 3500XL 원자력양자풍동실험실독신료 교육지원동 행정동 대강당 행정분관 인공위성 Kreonet 영빈관 Single Mode Fiber (Core Link) Multi Mode Fiber Single Mode Fiber Multi Mode Fiber Single Mode Fiber 4 동 정문술빌딩 2 동 5 동 2 동 기혼자기숙사 1동 6동 4동 서측학생회관 3동서측기계실 5동 3동무기재료공학 생명화공 PP동건설환경 PP동 과학도서관 산업공학 전기전자공학동 네트워크강의동 반도체동 영상동 교직원회관 물리 화학 생물과학 1동동측기숙사의과학연구센터 3 동 4 동 5 동 6 동 7 동 2 동 서측기숙사 1 동 재료공학 응용공학동 산업경영 산업경영학동 전산학동 수학 자연과학동 45

Other LAN Technologies Ring networks generally more complex IBM 4/16 Mb/s token ring FDDI Connection-oriented ATM, HIPPI 46

Perspective Ethernet is wildly successful, partly due to low cost; Compare with FDDI or Token Ring Some issues: Nondeterministic service No priorities Min frame size may be large 47

Summary Ethernet: Physical/Link layer protocol 1-persistent CSMA/CD with exponential backoff on wired LAN Minimum frame size is 512 bits (64 bytes) to detect collision Ethernet Frame tr/rx by NIC 48 bit Ethernet/MAC/Hardware Addresses in NIC Fast/Gigabit Ethernet using hubs and switches 48