Optical Communications Telecommunication Engineering School of - - PowerPoint PPT Presentation

optical communications
SMART_READER_LITE
LIVE PREVIEW

Optical Communications Telecommunication Engineering School of - - PowerPoint PPT Presentation

Departamento de Seales y Dipartimento INFOCOM comunicaciones Universit degli studi di ULPGC Roma La Sapienza Optical Communications Telecommunication Engineering School of Engineering University of Rome La Sapienza Rome, Italy


slide-1
SLIDE 1

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

Optical Communications

Telecommunication Engineering School of Engineering University of Rome La Sapienza Rome, Italy 2005-2006

Lecture #11, June 14 2006

slide-2
SLIDE 2

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

Medium Access Control for Optical Communications Part II

slide-3
SLIDE 3

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

  • Collision Avoidance (CA) mechanisms have been proposed in order to solve the

hidden terminal problem.

  • CA-based protocols can be divided in:

– Out-of-Band CA protocols: the Collision Avoidance is performed on the dedicated channel, separated (usually in frequency) from the data channel

  • Example: Busy Tone Multiple Access (BTMA)

– In-band CA protocols: the Collision Avoidance is performed on the same channel used for data traffic

  • Example: Medium Access with Collision Avoidance (MACA)

COLLISION AVOIDANCE

slide-4
SLIDE 4

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

  • MACA does not use Carrier Sensing, in the sense that terminals start transmitting a

packet without spending any time sensing the channel

  • In MACA when a terminal has a data packet to send, it does not transmit directly the

data packet, but instead starts a Collision Avoidance procedure with the intended destination, based on three steps: 1. Transmission of a Request-To-Send (RTS) packet from source to destination 2. Transmission of a Clear-To-Send (CTS) packet from destination to source, in response to the CTS 3. Transmission of the DATA packet from source to destination, after reception of the CTS

  • The procedure is called handshaking

IN-BAND CA: MEDIUM ACCESS WITH COLLISION AVOIDANCE (MACA)

slide-5
SLIDE 5

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

  • The RTS is emitted by the source S, and is received by the destination D and by all
  • ther terminals within transmission range of S (terminal A1 in figure)

A1 S D A2

  • The RTS includes:

– The ID of the source S – The ID of the destination D – The expected duration of the DATA packet to be transmitted

  • The RTS has two goals:

a. communicating to all terminals within range of S that a transmission is going to start b. trigger the destination D to emit a CTS message in reply to the RTS

  • After the reception of the RTS, A1 will expect to hear the CTS transmitted by D in

reply to the RTS

  • If A1 does not hear the CTS within a given time, it can start transmitting in any

moment, since it is out of transmission range of D

MACA: REQUEST-TO-SEND

slide-6
SLIDE 6

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

  • The CTS includes:

– The IDs of S and D – The expected duration of the DATA packet to be transmitted

  • The CTS has two goals:

a. communicating to all terminals within range of D that a reception is going to start b. trigger the source S to emit the DATA packet

  • Terminal A2 will hear the CTS and will know that a transmission is going to start,

even if it did not hear the CTS transmitted by S

  • If A2 has packets to send, it will thus postpone the transmission until the

transmission S->D is over

  • Since CS is not used, A2 understands how long it will have to wait by reading the

content of the CTS

  • The CTS is emitted by the destination D, and is received by the source S and by all
  • ther terminals within transmission range of D (terminal A2 in figure)

A1 S D A2

MACA: CLEAR-TO-SEND

slide-7
SLIDE 7

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

  • The adoption of the RTS/CTS exchange relieves both the hidden and exposed

terminal problems: – If CSMA was used with the same network topology presented in the previous slides, A1 would be an exposed terminal, while A2 would be a hidden terminal

  • Note that collision is still possible between RTS packets, but the effect of such

collisions is much lower of DATA collisions for two reasons: 1. No DATA information is lost 2. RTS packets are usually very short (20 Bytes) and thus a collision keeps the channel busy for a short time

A1 S D A2

MACA: ADVANTAGES

slide-8
SLIDE 8

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

  • Although MACA was proposed as an alternative to CSMA protocols, CSMA and In-

band Collision Avoidance can be combined in order to get the advantages provided by MACA and reduce the probability of having collisions on the RTS packets (CSMA- CA)

  • The CSMA-CA approach is adopted in the Distributed Foundation Wireless MAC

(DFWMAC) adopted in the IEEE 802.11 standard (WiFi)

  • In DFWMAC the handshaking is formed of four steps. The four steps are:

1. RTS (Direction: S -> D) 2. CTS (D -> S) 3. Data (S -> D) 4. Acknowledge (Ack) (D -> S)

  • CSMA is adopted before transmitting the RTS packet

CSMA WITH COLLISION AVOIDANCE (CSMA-CA)

slide-9
SLIDE 9

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

CSMA-CA is adopted in the IrLAN protocol, part of the IrDA stack

CSMA-CA PROPOSED FOR IR PROTOCOLS

IrDA protocol stack

Infrared Link Management Protocol (IrLMP)

slide-10
SLIDE 10

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

IrLAN provides compatibility between applications requiring an IEEE 802 network connection and an IrDA device The MAC adopted for IrLAN is based on a simplified version of basic IEEE 802.11 protocol Access to the medium is controlled through the use of time intervals between the transmission of frames (mandatory periods of idle on the transmission medium). They can be short (usually called Short InterFrame Spacing or SIFS following the IEEE 802.11 denominations), used between control frames, and long (DIFS). The receiving station calculates the checksum and determines whether the packet was received correctly. Upon receipt of a correct packet, the receiving station waits a SIFS interval and transmits a Positive Acknowledgment (ACK) frame back to the source station, indicating that the transmission was successful All stations hearing the data frame adjust their NAV (Network Allocation Vector) based on the duration field value, which includes the SIFS interval and the ACK following the data frame

CSMA-CA PROPOSED FOR IR PROTOCOLS

slide-11
SLIDE 11

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

RTS/CTS protocol: A station can reserve channel bandwidth prior to transmission of a data unit RTS and CTS control frames can be used to minimize the amount of bandwidth wasted when collisions occur. RTS and CTS are relatively small control frames. The source station with a data or management frame queued for transmission to a specified destination station transmits a RTS control frame. All stations in the Base Service Set (BSS) hearing the RTS packet wait for a CTS packet after a SIFS idle period has elapsed. Stations hearing the CTS packet look at the duration field and again update their NAV. .

CSMA-CA PROPOSED FOR IR PROTOCOLS

slide-12
SLIDE 12

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza” DIFS SIFS DIFS ACK ACK RTS CTS

DATA DATA NAV NAV NAV (RTS) NAV (CTS) CW CW OTHER DEST. SOURCE (A) (B)

DIFS SIFS SIFS SIFS DIFS

CSMA-CA PROPOSED FOR IR PROTOCOLS

Timing diagram of a successful data frame transmission: without handshaking (A) using a RTS/CTS mechanism (B)

slide-13
SLIDE 13

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

Large data units may require fragmentation to increase transmission reliability. Data units are compared to a adjustable parameter (similar to the Fragmentation_Threshold of IEEE 802.11). If the data unit-size exceeds the value of this threshold, it is broken into multiple fragments) When a data unit is fragmented, all fragments are transmitted sequentially and the channel is not released until the complete data unit has been transmitted successfully, or the source station fails to receive an acknowledgment for a transmitted fragment. The destination station positively acknowledges each successfully received fragment by sending a ACK back to the source station. The source station maintains control of the channel throughout the transmission of the data unit waiting only an SIFS period after receiving an ACK and transmitting the next fragment. When an ACK is not received for a previously transmitted frame, the source station halts transmission and re-contends for the channel. Upon gaining access to the channel, the source starts transmitting with the last unacknowledged fragment.

CSMA-CA PROPOSED FOR IR PROTOCOLS

slide-14
SLIDE 14

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza” SIFS SIFS ACK 0 Fragment 0 NAV (CTS) SIFS SIFS Fragment 1 SIFS ACK 1 SIFS Fragment 2 ACK 2 DIFS NAV (Fragment 0) NAV (Fragment 1) NAV (Fragment 2) NAV (ACK 0) NAV (ACK 1) CW SOURCE DEST. OTHER OTHER

CSMA-CA PROPOSED FOR IR PROTOCOLS

Timing diagram of a successful fragmented data frame transmission

slide-15
SLIDE 15

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

THE NATIVE IrDA MAC: IrLAP

  • Infrared Link Access Protocol (IrLAP) does not use CSMA-CA
  • IrLAP foresees three phases of operation:
  • Link inizialization
  • Nonoperational mode
  • Operational mode
  • Link initialization is performed by a device by selecting a random address
  • During Nonoperational mode devices contend for the medium by listening for at least

500 ms before transmitting; in this mode the following operations can be performed:

  • Device discovery - used by a device that wins the contention to discover other

devices in its field of view, using a sort of slotted Aloha

  • Address resolution - used if during link initialization two devices pick up the same

address (unlikely, but possible)

  • Connection Establishment - used by a device (that takes the role of primary

device) to connect to a secondary device

  • When connection is established, both primary and secondary devices are in

Operational mode, and data exchange is performed under the control of the primary device, using a polling scheme

slide-16
SLIDE 16

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

IrLAP: EXAMPLE

slide-17
SLIDE 17

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

THE ADVANCED INFRARED IrDA MAC: IrMAC

  • The Infrared Medium Access

Control (IrMAC) was introduced in the AIR version of IrDA protocol stack

  • IrMAC uses CSMA-CA and

foresees three modes of

  • peration:
  • Unreserved -> Unreliable,

based on Aloha

  • Announced -> RTS/CTS

without ACK

  • Reserved -> RTS/CTS with

ACK

slide-18
SLIDE 18

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

IrMAC: MODES OF OPERATION

slide-19
SLIDE 19

Departamento de Señales y comunicaciones ULPGC Dipartimento INFOCOM Università degli studi di Roma “La Sapienza”

FURTHER READING

“The IrDA Standards for High Speed Infrared Communication,” by Ian Miller, Martin Beale, Bryan Donoghue, Kirk Lindstrom and Stuart Williams. Available at: http://www.irda.org/associations/2494/files/Publications/high_speed.pdf “IrDA: past, present and future,” by Stuart Williams. IEEE Personal Communications, Volume 7, Issue 1, Feb. 2000, Page(s):11 - 19