Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

61
Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO
  • date post

    19-Dec-2015
  • Category

    Documents

  • view

    223
  • download

    1

Transcript of Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Page 1: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Studying 802.111st lecture

~Overview of IEEE 802.11~

Tadashi YASUMOTO

Page 2: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

In beginning

• To understand acronyms– Overwhelming numbers

• To understand the difference with Ethernet

• To understand the 802.11 MAC layer

Page 3: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

What IEEE 802.11 is for.

• Allow WLAN to be identical to wired LAN– With mobility– With built-in power saving operations

Page 4: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

IEEE 802.11 defines

I. Physical layersII.MAC management protocols and serviceIII.MAC sublayer

Page 5: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

IEEE 802.11 defines

I. Physical layersII.MAC management protocols and serviceIII.MAC sublayer

Page 6: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Physical layers

• PHYs : Physical layers– Some kinds of layers

• 802.11b– HR/DSSS : a high-rate DSSS

• 802.11a– Based on OFDM; using orthogonal frequency division multiplex

• 802.11g– Using OFDM with backwards compatibility with 11b

– Common specification• CSMA/CA

– Difference with CSMA/CD

Page 7: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Physical layers

• CSMA/CA: Carrier Sense Multiple Access with Collision Avoidance– Dispersion Contorol (<-> Centralization Control) – Difference with CSMA/CD

• Not always detect the collision

– Features• If the other node are in use of the channel

– Wait for random delay time– And have the right to send

Page 8: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

IEEE 802.11 defines

I. Physical layersII.MAC management protocols and serviceIII.MAC sublayer

Page 9: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

MAC layer (1/2)

• MAC sublayer– LLC: the logical link control

• A common link layer used by lower-layer LAN tecnology

– What is LLC -> next slide

• MAC management– 802.1D

• Bridging

– 802.1Q• Virtual LAN(VLAN)

Page 10: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

MAC layer (2/2)

• LLC: Logical Links Control

– One of the sublayer in Data Link Layer (L2 in OSI)– In 802, all of lower-layers are under LLC

Page 11: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

802.11 Architecture

• Components• Types of Networks• Services• Other

Page 12: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

802.11 Architecture

• Components• Types of Networks• Services• Other

Page 13: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

ComponentsDS

APs

STAs

Medium

Page 14: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Components

• STAs: Stations• Computing devices with wireless network interface(s)• NICs familiar with in wired networks

• APs: Access points• Wireless-to-wired bridging

• Wireless medium• PHYs

• DS: Distribution system (later)• Tracking the movements of mobile STAs

Page 15: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Components

• Distribution Systems– Provides services to STAs– Tracking where a STA is– Delivering frames

Ethernet is a part of DS

AP has at least two interfacesone is wired, the other is wirelesswith bridging egngine

Page 16: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

802.11 Architecture

• Components• Types of Networks• Services• Other

Page 17: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Types of Networks(1/3)

• BSS: the basic service set– IBSS: independent BSS

• A set of STAs creating a short-lived network• Direct communication and No relay function• Sometimes referred to AD-HOC networks

– Infrastructure BSS• Using an AP• Two hops communication with relay function

– More transmission capacity than IBSS– Assist with STAs saving power

• STAs need to associate with an AP later

Page 18: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Types of Networks(2/3)

• ESS: Extended service area– An arbitrarily large size

• A set of BSSs • With same SSID: service set identifier

– Link with APs in layer 2

Page 19: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Types of Networks(3/3)

• Virtual APs– Some ESSs on same physical infrastructure

• To protect some different networks• To create parallel networks with different security levels

Page 20: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

802.11 Architecture

• Components• Types of Networks• Services• Other

Page 21: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Services

• STA services– Authentication– Deauthentication– Privacy– Data delivery

• Distribution services– Association– Reassociation– Disassociation– Distribution– Integration

Page 22: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Services

• Distribution services

Page 23: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Services

• Privacy (or Confidentiality)– Provide a level of protection

• WEP protocol: Wired Equivalent Privacy

Page 24: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

802.11 Architecture

• Components• Types of Networks• Services• Other

Page 25: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Other

• Interaction between services– After

• Mobility support– 3 types of transitions between AP s

• No transition• BSS transition• ESS transition

Page 26: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Other

• Interaction between services

Page 27: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Mobility support

• BSS transition– No need to be aware of STA's location

• the cooperation of AP s

Same ESS

Page 28: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Mobility Support

• ESS transition– 802.11 does not support...

ESS1 ESS2

Page 29: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Workshop Presentation2nd

Ryo Nakajima

Page 30: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

• Wireless and 802.11 introduction• Time scheduling in 802.11• Frame format in 802.11• Particular situation• Frame translation between wire and wireless

Page 31: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

802.11

• Wireless link– Many interfere

• Microwave ovens, node itself

– Need power saving mode• Mobile, battery operated

Particular system: acknowledgement, RTS/CTS, CSMA/CA

Page 32: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Acknowledgement

• Each frame must be acknowledged– Or the sender will re-transmit the same frame

Page 33: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

RTS/CTS

• The Hidden Node Problem– Only node2 can know both node1 and node3

Page 34: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

RTS/CTS

• RTS/CTS keep other node silent

Page 35: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

CSMA/CA

• CA: collision avoidance– Like CSMA/CD

• Wait until the channel become idleDetails in Scheduling

Page 36: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Scheduling

• DCF (AD-HOC mode)– Basic time scheduling in 802.11– To avoid collisions, use empty time

• PCF (AP)– Rare system– To avoid collisions, AP(Access Point) gives priority

to each node in order• HCF

– Keep service quality, but now undertaking

Page 37: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

DCF

• Carrier sensing– To find whether the channel is busy or not

• Time scheduling– To avoid collisions by simultaneous transmission

Page 38: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Carrier sensing

• Physical carrier sensing– Expensive electronics– Hidden nodes lurking everywhere

• Virtual carrier sensing– Use Network Allocation Vector(NAV)– NAV means time to be quiet– NAV is included almost all frames– So NAV can be heard every nodes

Page 39: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Time scheduling

• NAV• Interframe Spacing

– Waiting time after one frame transmitted

Data

Ack

Sender

Receiver

Interframe Spacing

Page 40: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Interframe Spacing

• SIFS– Short range– To higher priority:RTS+CTS, Data+Ack, Fragment

• DIFS– Long range, standard– After Data+Ack, with Backoff time

• EIFS– To detect transmit failure– SIFS+Ack+DIFS

Page 41: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Time Schedule Example

RTS

CTS

Sender

Receiver

SIFS

NAVNAV(RTS)

SIFS Data

SIFS ACK

NAV(CTS)

DIFS+Backoff

Data

Page 42: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Backoff

• Time to wait after DIFS– Random length– Each node determine by itself

• To lower collisions– Lower simultaneous beginning of transmission

Page 43: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Error Recovery

• No ack→retry• Short retry counter and long retry counter

– Incremented when frames are retransmitted– Can hear ack→set to 0– If reach to the limit, discard that frames

• Backoff time become long to reduce transmission– If retry counter incremented, backoff time is

doubled

Page 44: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

General Frame format

FrameControl

Duration/ID

Address 1

Address 2

SequenceControl

Address 4

FrameBody

FCS

Octets: 2 2 6 6 2 6 0-2312 4

MAC Header

Address 3

6

Page 45: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Frame Control

ProtocolVersion

Type SubtypeTo DS

From DS

More Frag

RetryPwrMgt

Bits: 2 2 4 1MoreData

WEP Order

1 1 1 1 1 1 1

Page 46: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

• Next Duration/ID

FrameControl

Duration/ID

Address 1

Address 2

SequenceControl

Address 4

FrameBody

FCS

Octets: 2 2 6 6 2 6 0-2312 4

MAC Header

Address 3

6

Page 47: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Duration/ID

• NAV• PS-Poll+AID(Associated ID)

– Node’s wake-up signal

Page 48: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

– Next Address field

FrameControl

Duration/ID

Address 1

Address 2

SequenceControl

Address 4

FrameBody

FCS

Octets: 2 2 6 6 2 6 0-2312 4

MAC Header

Address 3

6

Page 49: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Address field

• Destination Address• Source Address• BSSID

– AP’s wireless NIC’s MAC address

• Receiver Address• Transmitter Address

Page 50: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

• Next Sequence Control

FrameControl

Duration/ID

Address 1

Address 2

SequenceControl

Address 4

FrameBody

FCS

Octets: 2 2 6 6 2 6 0-2312 4

MAC Header

Address 3

6

Page 51: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Sequence Control

• 4 bits Fragment number and 12 bits Sequence number

• All fragments have the same sequence number• To detect duplicate frame

Page 52: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

• Next FCS

FrameControl

Duration/ID

Address 1

Address 2

SequenceControl

Address 4

FrameBody

FCS

Octets: 2 2 6 6 2 6 0-2312 4

MAC Header

Address 3

6

Page 53: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

FCS

• Frame Check Sequence• Calculate the value with hash function

Page 54: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Particular situation

• Group frames( broadcast multicast )• Fragment• RTS/CTS• Power saving• Multirate support

Page 55: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Group frames

• No acknowledgement• No fragment• No NAV set

DataData

NAV

Backoff DataDIFS

Page 56: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Fragment

• SIFS between fragment

Page 57: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

RTS/CTS

• NAV=RTS+CTS+first_data+first_ack

Page 58: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Power saving

• Node send PS-poll to AP after wake up• AP send data to node which is buffered

– AP buffer data while node is sleeping– AP’s response: Immediate response or Deferred

response• Immediate: use SIFS• Deferred: use DIFS+Backoff

Page 59: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Multirate Support

• How to choose the rate depends on the vendors

• Basic rate set: every station in the system must support

• Control frame that start a frame exchange– Such as RTS/CTS– One of the rates in the basic rate set– CTS no faster than RTS

Page 60: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Wireless→Wire

1 integrity check2 BSSID (AP’s MAC) check3 decrypt if needed4 Fragment check5 copy address and type6 FCS recalculate

Page 61: Studying 802.11 1 st lecture ~Overview of IEEE 802.11~ Tadashi YASUMOTO.

Wire→Wireless

1 Integrity check and destination node check2 prepend SNAP header3 power saving check4 set sequence number, fragment number5 encryption if needed6 copy address7 FCS recalculate