SW: Sender Assign sequence number to each frame (SeqNum)

Slides:



Advertisements
Similar presentations
Comp 361, Spring 20056:Basic Wireless 1 Chapter 6: Basic Wireless (last updated 02/05/05) r A quick intro to CDMA r Basic
Advertisements

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 15 Wireless LANs.
1 Shared Access Networks Outline Bus (Ethernet) Token ring (FDDI) Wireless (802.11)
ECE544: Communication Networks-II, Spring 2006 D. Raychaudhuri & Max Ott Lecture II Includes teaching materials from L. Peterson.
CSE331: Introduction to Networks and Security Lecture 5 Fall 2002.
1 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
Spring 2002CS 4611 Shared Access Networks Outline Bus (Ethernet) Token ring (FDDI) Wireless (802.11)
Distributed systems Module 1 -Basic networking Teaching unit 1 – LAN standards Ernesto Damiani University of Bozen-Bolzano Lesson 4 – Ethernet frame.
Spring 2003CS 4611 Shared Access Networks Outline Bus (Ethernet) Token ring (FDDI) Wireless (802.11)
18-Aug-154/598N: Computer Networks Overview Direct link networks –Error detection - Section 2.4 –Reliable transmission - Section 2.5.
6: Wireless and Mobile Networks6-1 Elements of a wireless network network infrastructure wireless hosts r laptop, PDA, IP phone r run applications r may.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
Overview of Wireless LANs Use wireless transmission medium Issues of high prices, low data rates, occupational safety concerns, & licensing requirements.
جلسه دوازدهم شبکه های کامپیوتری به نــــــــــــام خدا.
14-Oct-15Computer Networks1 Reliable Transmission.
Page 110/21/2015 CSE 40373/60373: Multimedia Systems Networks strive for fairness  Assuming we want to support ‘n’ network flows over a network link of.
1 Other LANs Token Rings Wireless –Wireless LAN (802.11, WiFi) –Broadband Wireless (802.16) –Bluetooth.
Lecture # 13 Computer Communication & Networks. Today’s Menu ↗Last Lecture Review ↗Wireless LANs ↗Introduction ↗Flavors of Wireless LANs ↗CSMA/CA Wireless.
5: DataLink Layer 5a-1 Multiple Access protocol. 5: DataLink Layer 5a-2 Multiple Access Links and Protocols Three types of “links”: r point-to-point (single.
Mozafar Bag-Mohammadi University of Ilam
Bluetooth In 1994, the L. M. Ericsson company became interested in connecting its mobile phones to other devices without cables. A SIG (Special Interest.
Wireless Protocols. 2 Outline MACA 3 ISM: Industry, Science, Medicine unlicensed frequency spectrum: 900Mhz, 2.4Ghz, 5.1Ghz, 5.7Ghz.
Transport Layer: Sliding Window Reliability
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 Link Layer 3 Mozafar Bag-Mohammadi University of Ilam.
1 Direct Link Networks: Reliable Transmission Sections 2.5.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Wireless LAN Provides network connectivity over wireless media An Access Point (AP) is installed to act as Bridge between Wireless and Wired Network.
CS380 Int. to Comp. Networks Data Link Networks - Part II1 Reliable Transmission How to fix corrupted frames. –Error correcting codes too expensive –Should.
Media Access Methods MAC Functionality CSMA/CA with ACK
SSN College of Engineering
Outline What is Wireless LAN Wireless Transmission Types
Reliable Transmission
Wired and wireless Frequency spectrum
Medium Access Control MAC protocols: design goals, challenges,
The University of Adelaide, School of Computer Science
Getting Connected (Chapter 2 Part 3)
Communication Networks: Technology & Protocols
Wireless LANs Wireless proliferating rapidly.
Computer Communication Networks
2. Getting connected (part 2)
Wireless Networks.
Ethernet Outline Multiple Access and Ethernet Intro Ethernet Framing
CS 457 – Lecture 6 Ethernet Spring 2012.
Medium Access Control (MAC) Sub-layer
CS 457 – Lecture 7 Wireless Networks
Wireless NETWORKS NET 434 Topic No 7 Bluetooth-IEEE802.15
Token Ring Overview Examples
WiFi Networks: IEEE b Wireless LANs
Wireless NETWORKS NET 434 Topic No 7 Bluetooth-IEEE802.15
Bluetooth: Vision, Goals and Architecture
컴퓨터 네트워크 Chapter 4 컴퓨터 네트워크.
EEC-484/584 Computer Networks
Chapter 6 Medium Access Control Protocols and Local Area Networks
Getting Connected (Chapter 2 Part 3)
Reliable transmission
Point-to-Point Links Outline Encoding Framing Error Detection
Overview Yesterday we looked at Ethernet: CSMA/CD network
The Medium Access Control Sublayer
Advanced Computer Networks
Wireless LAN Simulation IEEE MAC Protocol
EEC-484/584 Computer Networks
WiFi Networks: IEEE b Wireless LANs
Mozafar Bag-Mohammadi University of Ilam
Transport Layer Outline Intro to transport UDP
Ethernet Outline Multiple Access and Ethernet Intro Ethernet Framing
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 6 Multiple Radio Access.
Error detection: Outline
Ethernet Outline Multiple Access and Ethernet Intro Ethernet Framing
Presentation transcript:

SW: Sender Assign sequence number to each frame (SeqNum) Maintain three state variables: send window size (SWS) last acknowledgment received (LAR) last frame sent (LFS) Maintain invariant: LFS - LAR <= SWS Advance LAR when ACK arrives Buffer up to SWS frames £ SWS … … LAR LFS

SW: Receiver Maintain three state variables receive window size (RWS) largest frame acceptable (LFA) last frame received (LFR) Maintain invariant: LFA - LFR <= RWS Frame SeqNum arrives: if LFR < SeqNum < = LFA accept if SeqNum < = LFR or SeqNum > LFA discarded Send cumulative ACKs £ RWS … … LFR LFA

Acknowledgements Negative acknowledgment (NAK) Selective ACK When receiver receives frame which has a sequence number higher than the next frame expected, receiver proactively informs the sender to resend the missing frame Selective ACK Acknowledge frames that it has received, not just the last frame received

Sequence Number Space SeqNum field is finite; sequence numbers wrap around Sequence number space must be larger then number of outstanding frames SWS <= MaxSeqNum-1 is not sufficient suppose 3-bit SeqNum field (0..7) SWS=RWS=7 sender transmit frames 0..6 arrive successfully, but ACKs lost sender retransmits 0..6 receiver expecting 7, 0..5, but receives second incarnation of 0..5 SWS < (MaxSeqNum+1)/2 is correct rule Intuitively, SeqNum “slides” between two halves of sequence number space

Concurrent Logical Channels Multiplex 8 logical channels over a single link Run stop-and-wait on each logical channel Maintain three state bits per channel channel busy current sequence number out next sequence number in Header: 3-bit channel num, 1-bit sequence num 4-bits total same as sliding window protocol Separates reliability from order

Take away message Reliable delivery means receiver should send acknowledgement. Need to keep timeout just right. Send enough frames to fill pipe (bandwidth delay product)

Broadcast networks Next, we will look at some common network technologies. First we will look at broadcast networks such as Ethernet and wireless. These networks are CSMA/

Ethernet Overview History CSMA/CD Frame Format developed by Xerox PARC in mid-1970s roots in Aloha packet-radio network standardized by Xerox, DEC, and Intel in 1978 similar to IEEE 802.3 standard CSMA/CD carrier sense multiple access collision detection Frame Format 64 48 48 16 32 Dest Src Preamble Type Body CRC addr addr

Ethernet (cont) Addresses Bandwidth: 10Mbps, 100Mbps, 1Gbps unique, 48-bit unicast address assigned to each adapter example: 8:0:e4:b1:2 broadcast: all 1s multicast: first bit is 1 Bandwidth: 10Mbps, 100Mbps, 1Gbps Length: 2500m (500m segments with 4 repeaters) Encoding 10 Mbps - Manchester encoding 100 Mbps - 4B/5B 1000 Mbps - 8B/10B Problem: Distributed algorithm that provides fair access

Transmit Algorithm (CSMA/CD) If line is idle… send immediately upper bound message size of 1500 bytes (messages can go from 10 to 100 to 1000 Mbit without processing) 9000 bytes for Gbit Ethernet (Jumbo frame) 12000 byte limit for CRC32 must wait 9.6us between back-to-back frames 96 bit time (960 ns for 100 Mbps, 96 ns for 1 Gbps) If line is busy… wait until idle and transmit immediately called 1-persistent (special case of p-persistent) When channel idle, station transmits with probability 1

Algorithm (cont) If collision… jam for 32 bits, then stop transmitting frame minimum frame is 64 bytes (header + 46 bytes of data) for 10/100 Mbps ethernet and 512 bytes for Gigabit Ethernet frame delay and try again 1st time: 0 or 51.2us 2nd time: 0, 51.2, or 102.4us 3rd time: 0, 51.2, 102.4, or 153.6us nth time: k x 51.2us, for randomly selected k=0..2n - 1 give up after several tries (usually 16) exponential backoff

Duplex Half duplex - CSMA/CD, Full duplex: both sender and receiver can talk simultaneously Peak utilization ~37%

Wireless LANs (CSMA/CA) IEEE 802.11 Bandwidth: 1 or 2 Mbps 802.11b - 11 Mbps (2.4 GHz) 802.11g - 54 Mbps (2.4 GHz) 802.11a - 54 Mbps (5 GHz) Physical Media spread spectrum radio (2.4 GHz) diffused infrared (10 m) Wireless LAN irDA Bluetooth

EM Spectrum    Pravin Bhagwat @ AT&T Labs ISM band 902 – 928 Mhz 2.4 – 2.4835 Ghz 5.725 – 5.785 Ghz ISM band AM radio S/W radio FM radio TV TV cellular LF HF VHF UHF SHF EHF MF   30kHz 300kHz 3MHz 30MHz 300MHz 30GHz 300GHz 10km 1km 100m 10m 1m 10cm 1cm 100mm 3GHz X rays Gamma rays  infrared visible UV 1 kHz 1 MHz 1 GHz 1 THz 1 PHz 1 EHz Propagation characteristics are different in each frequency band Pravin Bhagwat @ AT&T Labs

Unlicensed Radio Spectrum  33cm 12cm 5cm 26 Mhz 83.5 Mhz 125 Mhz 902 Mhz 2.4 Ghz 5.725 Ghz 928 Mhz 2.4835 Ghz 5.785 Ghz cordless phones baby monitors Wireless LANs 802.11 Bluetooth Microwave oven 802.11a Pravin Bhagwat @ AT&T Labs

Spread Spectrum Idea Frequency Hopping spread signal over wider frequency band than required originally designed to thwart jamming Frequency Hopping transmit over random sequence of frequencies sender and receiver share… pseudorandom number generator seed 802.11 uses 79 x 1MHz-wide frequency bands

Spread Spectrum (cont) Direct Sequence for each bit, send XOR of that bit and n random bits random sequence known to both sender and receiver called n-bit chipping code 802.11 defines an 11-bit chipping code 1 Data stream: 1010 1 Random sequence: 0100101101011001 1 XOR of the two: 1011101110101001

Collisions Avoidance Similar to Ethernet Problem: hidden and exposed nodes

Hidden Terminal Problem Node B can communicate with A and C both A and C cannot hear each other When A transmits to B, C cannot detect the transmission using the carrier sense mechanism If C transmits, collision will occur at node B A B C Nitin Vaidya @ UIUC

MACAW Sender transmits RequestToSend (RTS) frame Receiver replies with ClearToSend (CTS) frame Neighbors… see CTS: keep quiet see RTS but not CTS: ok to transmit Receive sends ACK when has frame neighbors silent until see ACK Collisions no collisions detection known when don’t receive CTS exponential backoff

RTS/CTS Handshake Nitin Vaidya @ UIUC Sender sends Ready-to-Send (RTS) Receiver responds with Clear-to-Send (CTS) RTS and CTS announce the duration of the transfer Nodes overhearing RTS/CTS keep quiet for that duration RTS/CTS used in IEEE 802.11 C CTS (10) 10 RTS (10) RTS/CTS serves two purposes quicker retransmissions if there is a collision because there is no collision detection avoids collisions caused by hidden terminals A B D Nitin Vaidya @ UIUC 10

Supporting Mobility Case 1: ad hoc networking Case 2: access points (AP) tethered each mobile node associates with an AP Distribution system AP-1 AP-3 AP-2 F A B G H C E D

Mobility (cont) Scanning (selecting an AP) When node sends Probe frame all AP’s w/in reach reply with ProbeResponse frame node selects one AP; sends it AssociateRequest frame AP replies with AssociationResponse frame new AP informs old AP via tethered network When active: when join or move passive: AP periodically sends Beacon frame

Challenges Limited wireless transmission range Broadcast nature of the wireless medium Hidden terminal problem Packet losses due to transmission errors Mobility-induced route changes Mobility-induced packet losses Battery constraints Potentially frequent network partitions Ease of snooping on wireless transmissions (security hazard) Nitin Vaidya @ UIUC

Why not use Wireless LANs? Bluetooth Pravin Bhagwat @ AT&T Labs A cable replacement technology 1 Mb/s symbol rate Range 10+ meters Single chip radio + baseband at low power & low price point Why not use Wireless LANs? - power - cost

Synchronization User benefits Automatic synchronization of calendars, address books, business cards Push button synchronization Proximity operation Pravin Bhagwat @ AT&T Labs

Cordless Headset User benefits Multiple device access Cordless phone benefits Hands free operation Cordless headset Pravin Bhagwat @ AT&T Labs

Three-in-one phone At home, your phone functions as a portable phone (fixed line charge). When you're on the move, it functions as a mobile phone (cellular charge). And when your phone comes within range of another mobile phone with built-in Bluetooth wireless technology it functions as a walkie talkie (no telephony charge). Source: bluetooth.com

The Internet Bridge Use your mobile computer to surf the Internet wherever your are, and regardless if you're cordlessly connected through a mobile phone (cellular) or through a wire-bound connection (e.g. PSTN, ISDN, LAN, xDSL). Source: bluetooth.com

The Interactive Conference In meetings and conferences you can transfer selected documents instantly with selected participants, and exchange electronic business cards automatically, without any wired connections Source: bluetooth.com

Design considerations Noise, interference power spectrum Data signal x(t) Recovered data signal cost Goal high bandwidth conserve battery power cost < $10 Pravin Bhagwat @ AT&T Labs

Bluetooth radio link frequency hopping spread spectrum GFSK modulation 2.402 GHz + k MHz, k=0, …, 78 1,600 hops per second GFSK modulation 1 Mb/s symbol rate transmit power 0 dbm (up to 20dbm with power control) 1Mhz . . . 1 2 3 79 83.5 Mhz Pravin Bhagwat @ AT&T Labs

Piconet formation Page - scan protocol Pravin Bhagwat @ AT&T Labs to establish links with nodes in proximity Master Active Slave Parked Slave Standby Pravin Bhagwat @ AT&T Labs

Inter piconet communication Cordless headset Cell phone mouse Cordless headset Cell phone Pravin Bhagwat @ AT&T Labs Cell phone Cordless headset