1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel...

61
1 The Medium Access Control Sublayer Chapter 4

Transcript of 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel...

Page 1: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

1

The Medium Access ControlSublayer

Chapter 4

Page 2: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

2

The Channel Allocation Problem

• Static Channel Allocation in LANs and MANs• Dynamic Channel Allocation in LANs and MANs

Page 3: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

3

Dynamic Channel Allocation in LANs and MANs

1. Station Model.N independent stations sending messages according Poisson distribution.

2. Single Channel Assumption.A single channel is available to all stations to transmit to and receive from.

3. Collision Assumption.If stations transmit at the same time frames will collide and garbled. All

stations can detect collision and retransmit frame later.

4. (a) Continuous Time: Frame can start transmission at any time.

(b) Slotted Time: Frame can start transmission at given time instance.

5. (a) Carrier Sense: Stations can sense if the channel is in use and wait. (b) No Carrier Sense: Stations cant tell if the channel is free.

Page 4: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

4

Multiple Access Protocols

• ALOHA• Carrier Sense Multiple Access Protocols• Collision-Free Protocols• Limited-Contention Protocols• Wavelength Division Multiple Access Protocols• Wireless LAN Protocols

Page 5: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

5

Pure ALOHA

In pure ALOHA, frames are transmitted at completely arbitrary times.

Page 6: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

6

Collision conditions in pure Aloha

period is 2t

If another frame startshere we will have collision

All frames are of the same size.

Frame transmission can start at any time instant.

Page 7: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

7

Throughput versus offered traffic for ALOHA systems.

Max throughputs: 18% at G = 0.5 for pure 37% at G = 1 for slotted.

(th

rou

gh

pu

t p

er p

acke

t ti

me)

Page 8: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

8

(1-p) carr

->random back off

Persistent and Non-persistent CSMA

no carr

-> transmit

carr

-> check afterrandom time

nonpersistent

no carr

-> transmitwith prob p.

p-persistent is slotted

carr

-> check next slot

carr

->check next slot

Page 9: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

9

CSMA with Collision Detection

CSMA/CD can be in one of three states: contention, transmission, or

idle. Minimum contention slot is 2 where is the propagation delay

between the two most remote stations.

Page 10: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

10

Collision free protocols:the basic bit-map protocol

.

Page 11: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

11

The binary countdown protocol

. A dash indicates silence.

Page 12: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

12

Wireless LAN Protocols

A wireless LAN. (a) A transmitting. (b) B transmitting.

Page 13: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

13

Wireless MACA (Multiple Access with Collision Avoidance)

a) C hears RTS to B 30 bytes frame with the length of the frame to follow.

b) D hears B responding with a CTS to A (copying the length of the next frame).

c) A starts transmitting.

Page 14: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

14

Ethernet

• Ethernet Cabling• Manchester Encoding• The Ethernet MAC Sublayer Protocol• The Binary Exponential Backoff Algorithm• Ethernet Performance• Switched Ethernet• Fast Ethernet• Gigabit Ethernet• IEEE 802.2: Logical Link Control• Retrospective on Ethernet

Page 15: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

15

Ethernet 802.3

10 MHzSegment length in hundredths meters

Baseband

Vampire taps

T conn.

Page 16: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

16

Ethernet Cabling

Three kinds of Ethernet cabling.

(a) 10Base5, (b) 10Base2, (c) 10Base-T.

Page 17: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

17

Ethernet coding

(a) Binary encoding, (b) Manchester encoding, (c) Differential Manchester encoding.

Page 18: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

18

Ethernet MAC Sublayer Protocol

Frame formats. (a) DIX Ethernet, (b) IEEE 802.3.

• Address bit 46 determines local or global address.• Min frame is 64 bytes from dest. address to checksum.

Page 19: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

19

Collision detection can take as long as 2

This is to sense a collision before end of the frame reach far end.In 10 Mbps LAN 1 bit is 100 nsec, and max segment 2500 m roundtrip delay is 2 = 50 mksec = 500 bits = 64 bytes.

Page 20: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

20

Binary exponential backoff

Frame

Contentionperiod

Contentionperiod

FrameFrame Frame

Idleperiod

p = 1/2

p = 1/4

p = 1/8

If k stations contend for a channel probability that any of k gets a channel is:

A = kp(1 – p)k-1 p = 1/k gives Amax

Average number of contention slots =

jA(1 – A)j-1 = 1/A.Therefore,

channel efficiency = P/(P + 2/A)

Page 21: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

21

Ethernet Performance

Efficiency of Ethernet at 10 Mbps with 512-bit slot times.

Page 22: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

22

Switched Ethernet

A simple example of switched Ethernet.

Page 23: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

23

Fast Ethernet

The original fast Ethernet cabling.

Page 24: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

24

Gigabit Ethernet

(a) A two-station Ethernet. (b) A multistation Ethernet.

Page 25: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

25

Gigabit Ethernet (2)

Gigabit Ethernet cabling.

Page 26: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

26

IEEE 802.2: Logical Link Control

(a) Position of LLC. (b) Protocol formats.

Page 27: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

27

Wireless LANs

• The 802.11 Protocol Stack

• The 802.11 Physical Layer

• The 802.11 MAC Sublayer Protocol

• The 802.11 Frame Structure

• Services

Page 28: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

28

The 802.11 Protocol Stack

Part of the 802.11 protocol stack.

Page 29: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

29

The 802.11 MAC Sublayer Protocol

(a) The hidden station problem.(b) The exposed station problem.

Page 30: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

30

The 802.11 MAC Sublayer Protocol (2)

The use of virtual channel sensing using CSMA/CA.

Page 31: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

31

The 802.11 MAC Sublayer Protocol (3)

A fragment burst.

Page 32: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

32

The 802.11 MAC Sublayer Protocol (4)

Interframe spacing in 802.11.

Page 33: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

33

The 802.11 Frame Structure

The 802.11 data frame.

Page 34: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

34

802.11 Services

• Association

• Disassociation

• Reassociation

• Distribution

• Integration

Distribution Services

Page 35: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

35

802.11 Services

• Authentication

• Deauthentication

• Privacy

• Data Delivery

Intracell Services

Page 36: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

36

Broadband Wireless

• Comparison of 802.11 and 802.16

• The 802.16 Protocol Stack

• The 802.16 Physical Layer

• The 802.16 MAC Sublayer Protocol

• The 802.16 Frame Structure

Page 37: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

37

The 802.16 Protocol Stack

The 802.16 Protocol Stack.

Page 38: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

38

The 802.16 Physical Layer

The 802.16 transmission environment.

Page 39: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

39

The 802.16 Physical Layer (2)

Frames and time slots for time division duplexing.

Page 40: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

40

The 802.16 MAC Sublayer Protocol

Service Classes

• Constant bit rate service

• Real-time variable bit rate service

• Non-real-time variable bit rate service

• Best efforts service

Page 41: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

41

The 802.16 Frame Structure

(a) A generic frame. (b) A bandwidth request frame.

Page 42: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

42

Bluetooth

• Bluetooth Architecture

• Bluetooth Applications

• The Bluetooth Protocol Stack

• The Bluetooth Radio Layer

• The Bluetooth Baseband Layer

• The Bluetooth L2CAP Layer

• The Bluetooth Frame Structure

Page 43: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

43

Bluetooth Architecture

Two piconets can be connected to form a scatternet.

Page 44: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

44

Bluetooth Applications

The Bluetooth profiles.

Page 45: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

45

The Bluetooth Protocol Stack

The 802.15 version of the Bluetooth protocol architecture.

Page 46: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

46

The Bluetooth Frame Structure

A typical Bluetooth data frame.

Page 47: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

47

Data Link Layer Switching

• Bridges from 802.x to 802.y• Local Internetworking• Spanning Tree Bridges• Remote Bridges• Repeaters, Hubs, Bridges, Switches, Routers, Gateways• Virtual LANs

Page 48: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

48

Data Link Layer Switching

Multiple LANs connected by a backbone to handle a total load higher than the capacity of a single LAN.

Page 49: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

49

Bridges from 802.x to 802.y

Operation of a LAN bridge from 802.11 to 802.3.

Page 50: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

50

Bridges from 802.x to 802.y (2)

The IEEE 802 frame formats. The drawing is not to scale.

Page 51: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

51

Local Internetworking

A configuration with four LANs and two bridges.

Page 52: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

52

Spanning Tree Bridges

Two parallel transparent bridges.

Page 53: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

53

Spanning Tree Bridges (2)

(a) Interconnected LANs. (b) A spanning tree covering the LANs. The dotted lines are not part of the spanning tree.

Page 54: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

54

Remote Bridges

Remote bridges can be used to interconnect distant LANs.

Page 55: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

55

Repeaters, Hubs, Bridges, Switches, Routers and Gateways

(a) Which device is in which layer.

(b) Frames, packets, and headers.

Page 56: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

56

Repeaters, Hubs, Bridges, Switches, Routers and Gateways (2)

(a) A hub. (b) A bridge. (c) a switch.

Page 57: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

57

Virtual LANs

A building with centralized wiring using hubs and a switch.

Page 58: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

58

Virtual LANs (2)

(a) Four physical LANs organized into two VLANs, gray and white, by two bridges. (b) The same 15 machines organized into two VLANs by switches.

Page 59: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

59

The IEEE 802.1Q Standard

Transition from legacy Ethernet to VLAN-aware Ethernet. The shaded symbols are VLAN aware. The empty ones are not.

Page 60: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

60

The IEEE 802.1Q Standard (2)

The 802.3 (legacy) and 802.1Q Ethernet frame formats.

Page 61: 1 The Medium Access Control Sublayer Chapter 4. 2 The Channel Allocation Problem Static Channel Allocation in LANs and MANs Dynamic Channel Allocation.

61

Summary

Channel allocation methods and systems for a common channel.