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

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

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

EE 122: Ethernet and

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

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

Ethernet Switches Bridges on Steroids. Ethernet Switches. IEEE Wireless LAN. Ad Hoc Networks

CMPE 257: Wireless and Mobile Networking

Lecture 6. Reminder: Homework 2, Programming Project 2 due on Thursday. Questions? Tuesday, September 13 CS 475 Networks - Lecture 6 1

Ethernet. Lecture 6. Outline. Ethernet - Physical Properties. Ethernet - Physical Properties. Ethernet

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

ECE 4450:427/527 - Computer Networks Spring 2017

Wireless Challenges : Computer Networking. Overview. Routing to Mobile Nodes. Lecture 25: Wireless Networking

MULTIPLE ACCESS PROTOCOLS 2. 1

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

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

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

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

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

Computer Networks. Today. Principles of datalink layer services Multiple access links Adresavimas, ARP LANs Wireless LANs VU MIF CS 1/48 2/48

Multiple Access in Cellular and Systems

CMPE 257: Wireless and Mobile Networking

Shared Access Networks Wireless. 1/27/14 CS mywireless 1

Links. CS125 - mylinks 1 1/22/14

ECE 4450:427/527 - Computer Networks Spring 2017

Wireless Local Area Networks. Networks: Wireless LANs 1

Chapter 12 Multiple Access 12.1

15-441: Computer Networking. Wireless Networking

CSE 461: Wireless Networks

Redes de Computadores. Medium Access Control

ECE 4450:427/527 - Computer Networks Spring 2017

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

Topics for Today. More on Ethernet. Wireless LANs Readings. Topology and Wiring Switched Ethernet Fast Ethernet Gigabit Ethernet. 4.3 to 4.

Link Layer and LANs 안상현서울시립대학교컴퓨터 통계학과.

CSE 461: Multiple Access Networks. This Lecture

Data Link Layer: Multi Access Protocols

Wireless and WiFi. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Wireless Local Area Networks (WLANs)) and Wireless Sensor Networks (WSNs) Computer Networks: Wireless Networks 1

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

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

Medium Access Control

standard. Acknowledgement: Slides borrowed from Richard Y. Yale

Chapter 6 Wireless and Mobile Networks

Medium Access Control. MAC protocols: design goals, challenges, contention-based and contention-free protocols

CSC 4900 Computer Networks: The Link Layer

Medium Access Protocols

Chapter 5 Link Layer and LANs

Mohamed Khedr.

Summary of MAC protocols

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

Data and Computer Communications. Chapter 13 Wireless LANs

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

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

Multiple Access Links and Protocols

The Link Layer II: Ethernet

CSCD 433 Network Programming Fall Lecture 7 Ethernet and Wireless

Chapter 6 Wireless and Mobile Networks. Csci 4211 David H.C. Du

Medium Access Control Sublayer Chapter 4

Wireless and Mobile Networks

Wireless Network and Mobility

Medium Access Control Sublayer Chapter 4

Lecture 23 Overview. Last Lecture. This Lecture. Next Lecture ADSL, ATM. Wireless Technologies (1) Source: chapters 6.2, 15

LAN PROTOCOLS. Beulah A AP/CSE

Local Area Networks NETW 901

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

Link Layer: Retransmissions

6th Slide Set Computer Networks

Medium Access Control Sublayer

Introduction to Computer Networks. IEEE Ethernet

Data Communication & Networks G Session 5 - Main Theme Wireless Networks. Dr. Jean-Claude Franchitti

Wireless Networks. CSE 3461: Introduction to Computer Networking Reading: , Kurose and Ross

King Fahd University of Petroleum and Minerals College of Computer Sciences and Engineering Department of Computer Engineering

Wireless LANs. ITS 413 Internet Technologies and Applications

Chapter 4. The Medium Access Control Sublayer. Points and Questions to Consider. Multiple Access Protocols. The Channel Allocation Problem.

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

Hubs, Bridges, and Switches (oh my) Hubs

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

Last Lecture: Data Link Layer

Wireless MACs: MACAW/802.11

Wireless Communications

Links. Error Detection. Link Layer. Multiple access protocols. Nodes Links Frame. Shared channel Problem: collisions How nodes share a channel

MAC. Fall Data Communications II 1

Link Layer and Ethernet

Data Link Layer: Overview, operations

Chapter 5 Link Layer and LANs

CSE 461 Multiple Access. David Wetherall

Link Layer. (continued)

Wireless LAN -Architecture

Master Course Computer Networks IN2097

WiFi Networks: IEEE b Wireless LANs. Carey Williamson Department of Computer Science University of Calgary Winter 2018

Wireless and Mobile Networks 7-2

Lecture 8 Link Layer: functionality, error detection, media access algorithm

Link Layer and Ethernet

Wireless Local Area Networks (WLANs) and Wireless Sensor Networks (WSNs) Primer. Computer Networks: Wireless LANs

1-1. Switching Networks (Fall 2010) EE 586 Communication and. November 8, Lecture 30

Chapter 5: Link layer

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

Computer and Network Security

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

Wireless Communication and Networking CMPT 371

Ethernet. Introduction. CSE 3213 Fall 2011

Transcription:

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

Five Problems Encoding/decoding Framing Error Detection Error Correction Media Access

Five Problems Encoding/decoding Framing Error Detection Error Correction Media Access

Core Ethernet Ethernet standard is 802.3 Legacy multiple-access network Set of nodes sends and receives frames over shared link Kind of like a bus

Core Ethernet Ethernet is CSMA/CD, which stands for Carrier Sense, Multiple Access with Collision Detection. Carrier sense: all nodes can distinguish between idle and busy link Collision detection: node listens as it transmits can tell if it collides with another frame 5

Core Ethernet By standard, Ethernet is implemented using Coax, on segments limited to 500m Hosts joined by tapping into segment Multiple Ethernet segments joined together by repeaters What do you think a repeater does? No more than four repeaters allowed. 6

Core Ethernet Total reach: 2500m All physical limitations considered, an Ethernet is limited to 1024 hosts maximum. Any signal emitted by a host on the ethernet is broadcast over the entire network Terminators attached to the end absorb the signal and prevent bounce-back.

Ethernet Technologies: 10Base2 10: 10Mbps; 2: under 200 meters max cable length thin coaxial cable in a bus topology repeaters used to connect up to 5 multiple segments repeater repeats bits it hears on one interface to its other interfaces: physical layer device only!

Core Ethernet Cable Types: 10Base2 10Mbps peak, Baseband, with 200m limit 10Base5 10Mbps peak, Baseband, with 500m limit 10BaseT 10Mbps peak, Baseband, Twisted-Pair cable, 100m limit

Core Ethernet Encoding schemes Original specification used Manchester encoding Higher-speed Ethernet uses 4B/5B or the similar 8B/10B encoding 10

Shared Access Everyone speaks at the same time Competition for the same link, speaking at the same time produces the notion of a collision domain.

Ethernet Frame Structure Sending adapter encapsulates IP datagram (or other network layer protocol packet) in Ethernet frame Preamble: 7 bytes with pattern 10101010 followed by one byte with pattern 10101011 used to synchronize receiver, sender clock rates

Ethernet Frame Structure (more) Addresses: 6 bytes Type: indicates the higher layer protocol, mostly IP but others may be supported CRC: checked at receiver, if error is detected, the frame is simply dropped

MAC Addresses Every Ethernet adapter in the world has a unique address Media Access Control (MAC) Burned into ROM in hardware Sequence of six numbers separated by colons Six binary numbers Usually displayed in hex for humans 14

MAC Addresses Binary representation 00001000 00000000 00101011 11100100 10110001 00000010 Human (hex) representation 8:0:2b:e4:b1:2 How do we go from binary to hex (and back)? 15

Hex Exercise What is the following hex mac address in binary? E0:DB:55:E7:AD:1D What is the following binary mac address in hex? 11001010:00101011:11001101 (first half) 00000111:00101111:01010100 (second half) 16

MAC Addresses How do we find them on our machines? Windows cmd -> ipconfig /all Linux $> /sbin/ifconfig a Can a machine have more than one MAC address? Is it changeable? 17

MAC Addresses Ethernet adapter receives all frames and accepts frames that are addressed to Its own address Broadcast address (all 1 s) Multicast address that it has been programmed to accept Can also be put into promiscuous mode to accept all frames Only used in network debugging and hacking 18

MAC Addresses So if a MAC address is unique, can every packet sent be traced back to a unique user? 19

CSMA (Carrier Sense Multiple Access) Ethernet is CSMA/CD, which stands for Carrier Sense, Multiple Access with Collision Detection. Carrier sense: all nodes can distinguish between idle and busy link Collision detection: node listens as it transmits can tell if it collides with another frame 20

CSMA (Carrier Sense Multiple Access) CSMA: listen before transmit: If channel sensed idle: transmit entire frame If channel sensed busy, defer transmission Human analogy: don t interrupt others!

CSMA collisions spatial layout of nodes collisions can still occur: propagation delay means two nodes may not hear each other s transmission collision: entire packet transmission time wasted note: role of distance & propagation delay in determining collision probability

CSMA/CD (Collision Detection) CSMA/CD: carrier sensing, deferral as in CSMA collisions detected within short time colliding transmissions aborted, reducing channel wastage

CSMA/CD collision detection

Collisions When an adapter detects its frame in a collision, it transmits a 32-bit jamming sequence and stops Will minimally send 96 bits 64 bit preamble and 32 bits of jamming Also called a runt frame What sort of configuration will cause the most runt frames? 25

Transmitter Algorithm So that s great that we can detect collisions, but lot s of collisions are probably bad How can we minimize collisions? Exponential backoff 26

Transmitter Algorithm Maximum distance between any to end hosts is 2500m At most four repeaters in any Ethernet segment Transmitters are required to send 512 bits per frame. Consider A and B at opposite ends of the network. A sends at time t. One link latency, d, is required to reach host B First bit of A's transmission reaches B at time t+d. B still sees an idle line and begins to transmit B's frame immediately collides with A's. B sends a 96-bit jamming sequence (a runt frame), arriving at time t +2d

Some Physical Specifications to the 802 Standard...... So A must still be talking when the runt frame comes back. Max distance = 2500m Round-trip delay assuming four repeaters and low propagation speed is 51.2µs. At 10-Mbps, this pipe is exactly 512 bits. Falloff: 51.2µs to send. Whoa! Collision. Either send next frame or not... (Backoff 0 or 51.2µs) Still busy? Double your choices and pick randomly (e.g., pick randomly from 0µs, 51.2µs, 102.4µs, 153.6µs)

Taking Turns MAC protocols Polling master node invites slave nodes to transmit in turn concerns: polling overhead latency single point of failure (master) Token Passing control token passed from one node to next sequentially. token message concerns: token overhead latency single point of failure (token)

IEEE 802.11 Wireless LAN 802.11b 2.4-5 GHz unlicensed radio spectrum up to 11 Mbps direct sequence spread spectrum (DSSS) in physical layer Greater tolerance of interference by adding more redundancy Each bit is represented by multiple bits if some bits are damaged, can recover All hosts use same chipping code for decoding widely deployed, using base stations

IEEE 802.11 Wireless LAN 802.11a 5-6 GHz range up to 54 Mbps 802.11g 2.4-5 GHz range up to 54 Mbps All use CSMA/CA for multiple access Cannot sense collision detection! All have base-station and ad-hoc network versions 31

Base station approch Wireless host communicates with a base station base station = access point (AP) Basic Service Set (BSS) (a.k.a. cell ) contains: wireless hosts access point (AP): base station BSS s combined to form distribution system (DS)

Ad Hoc Network approach No AP (i.e., base station) wireless hosts communicate with each other to get packet from wireless host A to B may need to route through wireless hosts X,Y,Z Applications: laptop meeting in conference room, car interconnection of personal devices battlefield IETF MANET (Mobile Ad hoc Networks) working group

IEEE 802.11: multiple access Collision if 2 or more nodes transmit at same time CSMA makes sense: get all the bandwidth if you re the only one transmitting shouldn t cause a collision if you sense another transmission Collision detection doesn t work: hidden terminal problem

IEEE 802.11 MAC Protocol: CSMA/CA 802.11 CSMA: sender if sense channel idle for DIFS (distribute interframe space) sec. then transmit entire frame (no collision detection) if sense channel busy then binary backoff 802.11 CSMA: receiver if received OK return ACK after SIFS (short inter-frame space) SIFS required because of hidden terminal problem

Collision avoidance mechanisms Problem: Two nodes, hidden from each other, transmit complete frames to base station Wasted bandwidth for long duration! Solution: Small reservation packets Nodes track reservation interval with internal network allocation vector (NAV)

Collision Avoidance: RTS-CTS exchange Sender transmits short RTS (request to send) packet: indicates duration of transmission Receiver replies with short CTS (clear to send) packet Notifying (possibly hidden) nodes Hidden nodes will not transmit for specified duration: NAV

Collision Avoidance: RTS-CTS exchange RTS and CTS short: collisions less likely, of shorter duration end result similar to collision detection IEEE 802.11 allows: CSMA CSMA/CA: reservations polling from AP

Summary of MAC protocols What do you do with a shared media? Channel Partitioning, by time, frequency or code Random partitioning (dynamic), Taking Turns

End of Notes for Exam 1 40