WCMC-MPR-A 1
Wireless Communications and Mobile Computing
MAP-I Manuel P. Ricardo
Faculdade de Engenharia da Universidade do Porto
and Mobile Computing MAP-I Manuel P. Ricardo Faculdade de - - PowerPoint PPT Presentation
WCMC-MPR-A 1 Wireless Communications and Mobile Computing MAP-I Manuel P. Ricardo Faculdade de Engenharia da Universidade do Porto WCMC-MPR-A 2 Professors Adriano Moreira Universidade do Minho Manuel P. Ricardo (mricardo@fe.up.pt)
WCMC-MPR-A 1
Faculdade de Engenharia da Universidade do Porto
WCMC-MPR-A 2
WCMC-MPR-A 3
WCMC-MPR-A 4
T switch
AP
T
AP 1 2 1 2
Terminal Mobility Computer Switch Computer AP Wireless link Wired link
WCMC-MPR-A 5
WCMC-MPR-A 6
Physical Network Transport Data link Application Mobility Security Quality of Service
WCMC-MPR-A 7
WCMC-MPR-A 8
WCMC-MPR-A 9
fc= 3 GHz 10 cm wavelength
WCMC-MPR-A 10
WCMC-MPR-A 11
WCMC-MPR-A 12
l dB
WCMC-MPR-A 13
PGdB
log(d)
Path loss Shadowing + Path loss Multipath + Shadowing + Path loss
WCMC-MPR-A 14
f fc
B 2B
WCMC-MPR-A 15
WCMC-MPR-A 16
WCMC-MPR-A 17
WCMC-MPR-A 18
WCMC-MPR-A 19
information coded in amplitude
information coded in phase
information coded both in amplitude and phase
WCMC-MPR-A 20
WCMC-MPR-A 21
WCMC-MPR-A 22
Example: convolutional code Interleaving
WCMC-MPR-A 23
» aim at maintaining the quality low/stable BER » works by varying: data rate, power transmitted, codes
» symbol rate is kept constant » modulation schemes / constellation sizes depend on multiple data rates
» compensate Pr/N0B variation due to fading » maintain a constant received
» large weaker or no codes » small stronger code may be used
WCMC-MPR-A 24
flat fading (narrowband like effects) on each sub-channel, no ISI
WCMC-MPR-A 25
WCMC-MPR-A 26
WCMC-MPR-A 27
Uplink and Downlink channels required
– wireless link split into frequency bands – bands assigned to uplink or downlink directions – peers communicate in both directions using different bands
– timeslots assigned to the transmitter of each direction – peers use the same frequency band but at different times
WCMC-MPR-A 28
WCMC-MPR-A 29
resources divided in portions of spectrum (channels)
resources divided in time slots
resources divided in codes
WCMC-MPR-A 30
into non-overlapping channels
channel k channel 2 time code channel 1
WCMC-MPR-A 31
into non-overlapping channels
synchronization among the users in the uplink channels users transmit over channels having different delays uplink transmitters must synchronize
time code … …
WCMC-MPR-A 32
» Multi-user spread spectrum (Direct Sequence, Frequency Hopping) » The resulting spread signal
– occupy the same bandwidth – transmitted at the same time
control length of codes
» to compensate near-far effect » If not, interference from close user swamps signal from far user
time code channel 1 channel 2 channel k …
WCMC-MPR-A 33
f1 f3 f3 f2 f2 f1 f3 f1 f3 f3 f2 f2 f1 f3 f1 f3 f3 f2 a) Group of 3 cells f4 f2 f6 f3 f5 f2 f1 f6 f3 f5 f7 f2 f3 f4 f5 f7 f2 f1 b) Group of 7 cells c) Group of 3 cells, each having 3 sectors f2 f3 f1 f2 f3 f1 f2 f3 f1 f5 f6 f4 f5 f6 f4 f8 f9 f7 f8 f9 f7 f8 f9 f7
WCMC-MPR-A 34
resources assigned in a predetermined, fixed, mode
terminals contend for the channel
terminals ask for reservations using dedicated/random access channels
WCMC-MPR-A 35
if station has a packet to transmit
transmits the packet waits confirmation from receiver (ACK) if confirmation does not arrive in round trip time, the station
computes random backofftime retransmits packet
stations transmit just at the beginning of each time slot
– station listens the carrier before it sends the packet – If medium busy station defers its transmission
WCMC-MPR-A 36
– station monitors de medium (carrier sense)
medium free transmits the packet medium busy waits until medium is free transmits packet if, during a round trip time, detects a collision
station aborts transmission and stresses collision (no ACK packet)
Carrier sensing carrier sensing difficult for hidden terminal Collision detection near-end interference makes simultaneous transmission and reception difficult
WCMC-MPR-A 37
WCMC-MPR-A 38
S2
DIFS
S3 S1
DATA DIFS S2-bo DIFS S3-bo S3-bo-e S3-bo-r DATA DIFS S3-bo-r DATA
DATA
DIFS
S2-bo
S3-bo-e S3-bo-r
WCMC-MPR-A 39
WCMC-MPR-A 40
AP
DIFS
S2 S1
SIFS DATA ACK DIFS S2-Backoff SIFS DATA ACK
DATA
DIFS
WCMC-MPR-A 41
WCMC-MPR-A 42
Hidden node C is hidden to A
A C B D
WCMC-MPR-A 43
AP
DIFS
S2 S1
SIFS DATA RTS DIFS S2-bo DATA
DATA
DIFS
CTS SIFS SIFS ACK
WCMC-MPR-A 44
For some scenarios where long packets are used or the probability of hidden terminals is not irrelevant, the efficiency of CSMA/CA can be further improved with a Request To Send (RTS) - Clear to Send (CTS) mechanism The basic concept is that a sender station sends a short RTS message to the receiver
short CTS message. The sender then sends its packet to the receiver. After correctly receiving the packet, the receiver sends a positive acknowledgement (ACK) to the sender This mechanism is particularly useful to transmit large packets. The listening of the RTS or the CTS messages enable the stations in range respectively of the sender or receiver that a big packet is about to be transmitted. Usually both the RTS and the CTS contain information about the number of slots required to transmit the 4 packets. Using this information the other stations refrain themselves to transmit packets, thus avoiding collisions and increasing the system efficiency. SIFS are used before the transmission of CTS, Data, and ACK In optimum conditions the RTS-CTS mechanism may add an efficiency gain of about 15%
WCMC-MPR-A 45
» AP manages stations access to the medium » Channel tested first using a control handshake
WCMC-MPR-A 46
WCMC-MPR-A 47
WCMC-MPR-A 48
WCMC-MPR-A 49
7x 10101010 10101011 Protocolo=IP
WCMC-MPR-A 50
» Source Address of received frame is associated to a bridge input port
station reachable through that port
» When a frame is received, its Destination Address is analysed
– If address is associated to a port frame forwarded to that port – If not frame transmitted through all the ports but the input port
WCMC-MPR-A 51
WCMC-MPR-A 52
Version HLen TOS Length Ident Flags Offset TTL Protocol Checksum SourceAddr DestinationAddr Options (variable) Pad (variable) 4 8 16 19 31 Data Version Traffic Class Flow Label Payload Lengtht Next Header Hop Limit SourceAddr (4 words) DestinationAddr (4 words) Options (variable number) 4 8 16 24 31 Data
WCMC-MPR-A 53
Destination Cost NextHop A 1 A C 1 C D 2 C E 2 A F 2 A G 3 A
D G A F E B C
WCMC-MPR-A 54
T1 IP TCP APP T1 | T2 T2 | T3 IP T3 | T4 IP T5 IP TCP APP
host bridge router router host
T4 | T5
bridge IEEE MAC address based switching IETF IP address based switching
WCMC-MPR-A 55
T1 IP TCP APP T1 | T2 T2 | T3 IP T3 | T4 T5 IP TCP APP
H1 bridge R1 R2 Server
T4 | T5
bridge
IP IP IP
data
DA= red IP address of R2 SA= red IP address of H1 TTL IP identification IP-in-IP IP checksum flags fragment offset length TOS ver. IHL DA= Server SA=H1 TTL IP identification
IP checksum flags fragment offset length TOS ver. IHL TCP/UDP/ ... payload
WCMC-MPR-A 56
– virtual point-to-point link – routers at remote points – over an IP network
– Authentication – Transporting IP packets
T1 IP TCP APP T1 | T2 T2 | T3 IP T3 | T4 T5 IP TCP APP
H1 bridge R1 R2 Server
T4 | T5
bridge
IP IP IP PPP GRE GRE PPP
WCMC-MPR-A 57
WCMC-MPR-A 58
AP AP AP wired network AP: Access Point
WCMC-MPR-A 59
» Terminal with radio access
» Set of stations in the same band
» Interconnects LAN to wired network » Provides access to stations
» Interconnection network » Logical network
– EES, Extended Service Set – Based on BSSs
Distribution System Portal 802.x LAN Access Point 802.11 LAN BSS2 802.11 LAN BSS1 Access Point STA1 STA2 STA3 ESS
WCMC-MPR-A 60
» Set of stations working the the same carrier (radio channel)
802.11 LAN IBSS2 802.11 LAN IBSS1 STA1 STA4 STA5 STA2 STA3
WCMC-MPR-A 61
mobile terminal access point fixed terminal application TCP 802.11 PHY 802.11 MAC IP 802.3 MAC 802.3 PHY application TCP 802.3 PHY 802.3 MAC IP 802.11 MAC 802.11 PHY LLC infrastructure network LLC LLC
WCMC-MPR-A 62
WCMC-MPR-A 63
» MAC medium access, fragmentation, encryption » PLCP - Physical Layer Convergence Protocol carrier detection » PMD - Physical Medium Dependent modulation, codification
» PHY Management channel selection, MIB » MAC Management synchronisation, mobility, power, MIB » Station Management coordenation management functions
PMD PLCP MAC LLC MAC Management PHY Management PHY DLC Station Management
WCMC-MPR-A 64
– Carrier sense, collision avoidance using back-off mechanism – ACK packet required for confirmations (except for broadcast packets) – mandadory
– Used to avoid hidden terminal problem – Optional
– Access Point asks stations to transmit – Optional
DCF – Distributed Coordination Function PCF - Point Coordination Function
WCMC-MPR-A 65
– Lowest priority, used for asynchronous data
– Medium priority, used for real time traffic /QoS
– Maximum priority used for signalling: ACK, CTS, answers to polling t medium busy SIFS PIFS DIFS DIFS next frame contention direct access if medium is free DIFS
WCMC-MPR-A 66
Receiver confirms reception immediatly, using ACK, after waiting SIFS
Maximum value for the contention window duplicates Contetion window has minimum and maximum values (eg.: 7 and 255)
t SIFS DIFS data ACK waiting time
stations receiver sender data DIFS contention
WCMC-MPR-A 67
PIFS stations‘ NAV wireless stations point coordinator D1 U1 SIFS NAV SIFS D2 U2 SIFS SIFS SuperFrame t0 medium busy t1
WCMC-MPR-A 68
t stations‘ NAV wireless stations point coordinator D3 NAV PIFS D4 U4 SIFS SIFS CFend contention period contention free period t2 t3 t4
WCMC-MPR-A 69
» Data, control, management
» destination, source, BSS identifier, ...
» Error control, frame control, data
Frame Control Duration/ ID Address 1 Address 2 Address 3 Sequence Control Address 4 Data CRC 2 2 6 6 6 6 2 4 0-2312 bytes Protocol version Type Subtype To DS More Frag Retry Power Mgmt More Data WEP 2 2 4 1 From DS 1 Order bits 1 1 1 1 1 1
WCMC-MPR-A 70
Access Point 802.11 LAN BSS2 STA1 STA2
WCMC-MPR-A 71
scenario to DS from DS address 1 address 2 address 3 address 4 ad-hoc network DA SA BSSID
network, from AP 1 DA BSSID SA
network, to AP 1 BSSID SA DA
network, within DS 1 1 RA TA DA SA DS: Distribution System AP: Access Point DA: Destination Address SA: Source Address BSSID: Basic Service Set Identifier RA: Receiver Address TA: Transmitter Address
WCMC-MPR-A 72
Frame Control Duration Receiver Address Transmitter Address CRC 2 2 6 6 4 bytes Frame Control Duration Receiver Address CRC 2 2 6 4 bytes Frame Control Duration Receiver Address CRC 2 2 6 4 bytes ACK RTS CTS (Fig. 7.17 do livro está errada)
WCMC-MPR-A 73
– Station discovers a LAN; station associates to an AP – stations synchronize clocks; Beacon is generated by AP
– Save terminal’s power terminal enters sleep mode
Periodically No frame loss; frames are stored
– Station looks for new access points – Station decides about best access point – Station (re-)associates to new AP
PMD PLCP MAC LLC
MAC Management PHY Management PHY DLC
Station Management
WCMC-MPR-A 74
– To preview PCF cycles – To change state: sleep wake
– Access Point sends (almost) periodically a Beacon with timestamp e BSSid sometimes medium is busy – Timestamp sent is the correct – Other stations adjust their clocks
beacon interval t medium access point busy B busy busy busy B B B value of the timestamp B beacon frame
WCMC-MPR-A 75
– If not, go sleep; after sending its packets!
WCMC-MPR-A 76
» Traffic Indication Map – TIM: list of unicast receivers » Delivery Traffic Indication Map - DTIM: list broadcast/multicast receivers
TIM interval t medium access point busy D busy busy busy T T D T TIM D DTIM DTIM interval B B B broadcast/multicast station awake P PS poll P D D D data transmission to/from the station
WCMC-MPR-A 77
– Bitrates: 1, 2 Mbit/s
– Spreading, despreading – 79 sequências de salto pseudo aleatórias. Para 1 Mbit/s, modulação de 2 níveis GFSK
– 1 Mbit/s Modulation DBPSK (Differential Binary Phase Shift Keying) – 2 Mbit/s Modulation DQPSK (Differential Quadrature PSK) – Preamble and header of frame transmitted at 1 Mbit/s (DBPSK)
Remainning transmitted at 1 (DBPSK) ou 2 Mbit/s (DQPSK)
– Maximum radiated power 1 W (EUA), 100 mW (UE), min. 1mW
– 850-950 nm, distância de 10 m – Detecção de portadora, detecção de energia, sincronização
– Used by MAC to detect if medium is free
WCMC-MPR-A 78
– Payload length in bytes, including 2 CRC bytes. PLW < 4096
– Transmission bitrate of payload (1, 2 Mbit/s)
PLCP (preâmbulo and header) sent at 1 Mbit/s Payload sent at 1 ou 2 Mbit/s
– CRC with x16+x12+x5+1
synchronization SFD PLW PSF HEC payload PLCP preamble PLCP header 80 16 12 4 16 variable bits
WCMC-MPR-A 79
– Barker sequence of 11 chips +1,-1,+1,+1,-1,+1,+1,+1,-1,-1,-1 – Sincronization
Sincronization Gain control, Clear Channel Assessement, compensate frequency deviation
– SFD (Start Frame Delimiter 1111001110100000 – Signal
Payload bitrate (0A: 1 Mbit/s DBPSK; 14: 2 Mbit/s DQPSK)
– Service utilização futura, 00 = conforme 802.11 – Length Payload length in us – HEC (Header Error Check)
Protection of sinal, service and length, using x16+x12+x5+1
– Data (payload) MAC scrambled with z7+z4+1 synchronization SFD signal service HEC payload PLCP preamble PLCP header 128 16 8 8 16 variable bits length 16
WCMC-MPR-A 80
– 1, 2, 5.5, 11 (depends on SNR) – Useful bitrate 6
– 300m outdoor, 30m indoor
WCMC-MPR-A 81
synchronization SFD signal service HEC payload PLCP preamble PLCP header 128 16 8 8 16 variable bits length 16 192 µs at 1 Mbit/s DBPSK 1, 2, 5.5 or11 Mbit/s short synch. SFD signal service HEC payload PLCP preamble (1 Mbit/s, DBPSK) PLCP header (2 Mbit/s, DQPSK) 56 16 8 8 16 variable bits length 16 96 µs 2, 5.5 or 11 Mbit/s Long PLCP PPDU format Short PLCP PPDU format (optional) Payload bitrate
WCMC-MPR-A 82
2400 [MHz] 2412 2483.5 2442 2472 channel 1 channel 7 channel 13 Europe (ETSI) US (FCC)/Canada (IC) 2400 [MHz] 2412 2483.5 2437 2462 channel 1 channel 6 channel 11 22 MHz 22 MHz channel i = 2412MHz + (i-1)*5MHz There are 14 channels of 5MHz In 801.11b only 3 non-overlap channels can be used
WCMC-MPR-A 83
» 6, 9, 12, 18, 24, 36, 48, 54 (depends on SNR) » Mandatory 6, 12, 24
» 5.3 (6), 18 (24), 24 (36), 32 (54)
» 100m outdoor, 10 m indoor
– 54 Mbit/s até 5 m, 48 até 12 m, 36 até 25 m, 24 até 30m, 18 até 40 m, 12 até 60 m
» Free, band ISM » 5.15-5.35, 5.47-5.725 GHz (Europa)
WCMC-MPR-A 84
5150 [MHz] 5180 5350 5200 36 44 16.6 MHz center frequency = 5000 + 5*channel number [MHz] channel 40 48 52 56 60 64 149 153 157 161 5220 5240 5260 5280 5300 5320 5725 [MHz] 5745 5825 5765 16.6 MHz channel 5785 5805
WCMC-MPR-A 85
subcarrier number 1 7 21 26
channel center frequency 312.5 kHz pilot
WCMC-MPR-A 86
% of useful information
WCMC-MPR-A 87
WCMC-MPR-A 88
WCMC-MPR-A 89
Source: WiMAX, making ubiquitous high-speed data services a reality, White Paper, Alcatel.
WCMC-MPR-A 90
WCMC-MPR-A 91
Source: Understanding WiMAX and 3G for Portable/Mobile Broadband Wireless, Technical White Paper, Intel.
WCMC-MPR-A 92
WCMC-MPR-A 93
DL Subframe
Frame n-1 pre. Time Adaptive Frame n Frame n+1
UL subframe
FCH DL burst 1 DL burst n
UL MAP
Broadcast Conrol msgs
...
UL burst 1 UL burst m
DL MAP DCD
UCD
...
DL burst 2 UL TDMA DL TDM
pre. pre.
WCMC-MPR-A 94
DL Subframe
Frame n-1 pre. Time
Broadcast Control Msgs
Frame n Frame n+1
UL subframe
FCH DL burst 1 DL burst k
...
DL TDMA UL burst 1 UL burst m DL burst 2 DL burst n DL burst k+1
...
DL TDM
...
UL TDMA
DL MAP UL MAP DCD
UCD
pre. pre.
UL MAP for next MAC frame UL bursts
pre. pre.
WCMC-MPR-A 95
frame Broadcast Full Duplex Capable User Half Duplex T erminal #1 Half Duplex T erminal #2 UPLINK DOWNLINK
DL MAP UL MAP DL MAP UL MAP
WCMC-MPR-A 96
WCMC-MPR-A 97
WCMC-MPR-A 98
WCMC-MPR-A 99
WCMC-MPR-A 100
WCMC-MPR-A 101
P H SI
MAC PDU
Ethernet Packet
Ethernet Packet
Packet PDU (e.g., Ethernet) CS PDU (i.e., MAC SDU)
HT FEC block 1 CRC MAC PDU Payload OFDM symbol 1
PHY Burst
(e.g., TDMA burst)
Preamble OFDM symbol 2 OFDM symbol n
...... FEC
FEC Block 2 FEC block m
......
FEC Block 3
WCMC-MPR-A 102
WCMC-MPR-A 103
MAC PDU 2
HT FEC block 1 CRC MAC PDU Payload OFDM symbol 1
PHY Burst
(e.g., TDMA burst)
Preamble OFDM symbol 2 OFDM symbol n
...... FEC
FEC Block 2 FEC block m
......
FEC Block 3
MAC PDU 1
HT CRC MAC PDU Payload
...... MAC PDU k
HT CRC MAC PDU Payload
Multiple MAC PDUs are concatenated into the same PHY burst
WCMC-MPR-A 104
FEC block 1 OFDM symbol 1
PHY Burst
Pre.
MAC SDU
OFDM symbol n1
...... FEC
FEC Block m1
......
MAC SDU seg-1
HT CRC MAC PDU Payload HT CRC MAC PDU Payload
A MAC SDU can be fragmented into multiple segments, each segment is encapsulated into one MAC PDU
FEC block 1 OFDM symbol 1
PHY Burst
Pre. OFDM symbol n2
......
FEC Block m2
......
HT CRC MAC PDU Payload
MAC SDU seg-2 MAC SDU seg-3
F S H F S H Fragmentation Sub-Header (8 bits) F S H
WCMC-MPR-A 105
WCMC-MPR-A 106
WCMC-MPR-A 107