45
UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria, 06 - 15 April 2004

UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Embed Size (px)

Citation preview

Page 1: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

UNESCO PROJECT

Advanced Course on Networking Professor Khalid Al-Begain

UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS

University of Damascus, Syria, 06 - 15 April 2004

Page 2: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

I am Khalid Al-Begain

School of Computing, University of Glamorgan, Wales, UK

Professor in Mobile Networking Head of the Mobile Computing and

Networking Research Group– Performance evaluation Modelling, simulation

and analysis– QoS Routing and Multicast Routing– Resource Management and Call admission Control– Traffic Engineering– Mobile Services for next generation mobile and

wireless networks

Page 3: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Course Content Four Lectures A combination of essential and advanced

topics New compared with last year : WIRELESS The Course covers

LANs and WLAN standards TCP/IP Theory : Protocols and Applications Wireless and Cellular Networks: Channel

Allocation Schemes

Page 4: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

LAN versus WAN -RevisitedLocal Area Networks Wide Area Networks

Geographical Coverage Limited (room, building, campus) Widespread (country, worldwide)

Data Rates High - typically 1M to 1Gbps Historically low <= 64Kbps.Now much higher up to 2.4G

Transmission Media

Private (coax, twisted-pairs, optic fibres, radio)

Use of “Common Carriers” (BT, Mercury)

(Fibres, microwaves, satellite…)

Error Rates Low Better than 1 in 1010

Historically hightypically worse than 1 in 106.Now comparable with LANs

Types Ethernet (IEEE 802.3)Token Ring (IEEE 802.5)Token Bus (IEEE 802.4)Wireless (IEEE 802.11), Bluetooth

Packet Switching (ITU X.25)Cell Switching (ATM)Circuit Switching (ITU ISDN)

Access Multiple Access Individual Access Links

Page 5: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

LANs: Major medium access techniques

Access methods

Carrier sense multipleaccess (CSMA)

Token passing

p-persistentCSMA

Tokenring

Tokenbus

Slottedring

CSMA/CD CSMA/CA

Dedicated lines

Demandpriority

Switching

Access methods

Carrier sense multipleaccess (CSMA)

Token passing

p-persistentCSMA

Tokenring

Tokenbus

Slottedring

CSMA/CD CSMA/CA

Dedicated lines

Demandpriority

Switching

Page 6: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

LANs: Major medium access techniques

Access methods

Carrier sense multipleaccess (CSMA)

Token passing

p-persistentCSMA

Tokenring

Tokenbus

Slottedring

CSMA/CD CSMA/CA

Dedicated lines

Demandpriority

Switching

Access methods

Carrier sense multipleaccess (CSMA)

Token passing

p-persistentCSMA

Tokenring

Tokenbus

Slottedring

CSMA/CD CSMA/CA

Dedicated lines

Demandpriority

Switching

CD: Collision Detection

Ethernet, Fast Ethernet

Page 7: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

LANs: Major medium access techniques

Access methods

Carrier sense multipleaccess (CSMA)

Token passing

p-persistentCSMA

Tokenring

Tokenbus

Slottedring

CSMA/CD CSMA/CA

Dedicated lines

Demandpriority

Switching

Access methods

Carrier sense multipleaccess (CSMA)

Token passing

p-persistentCSMA

Tokenring

Tokenbus

Slottedring

CSMA/CD CSMA/CA

Dedicated lines

Demandpriority

Switching

CA: Collision Avoidance

WLAN, Bluetooth

Page 8: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

IEEE 802 :LANs

Page 9: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

The Data Link Layer

Logical Link Control Sublayer

Medium Access Sublayer

Page 10: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

IEEE 802

Important

The future will tell!

Page 11: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

IEEE 802.3

Classic Ethernet (10 Mbps) (First Founded by Xerox in 1976)

Fast Ethernet (100Mbps) (IEEE 802.3u)

Gigabit Ethernet (1Gbps) (IEEE 802.3z)

Page 12: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Classical Ethernet

The most common cabling methods

Page 13: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Classical Ethernet

The most common cabling methods

Page 14: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Manchester Encoding

Used in Classical Ethernet

Page 15: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Ethernet : Frame Formats

Two versions exist: (a) DIX (Digital, Intel, Xerox)(b) IEEE 802.3

Page 16: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Ethernet Medium Access CSMA All stations are connected to the cable When a station wishes to transmit, it “listens” to

the cable - if there is no signal it starts to transmit, otherwise it tries again later.

(Non-Persistent, 1-Persistent, p-Persistent) Whilst a station is transmitting it compares the

signal on the coax with the signal it is transmitting - if they are different it stops and tries again later

CD: Collision Detection means when detects collision then stop transmission wait random time try again

The time to wait is calculated using the Binary Exponential Backoff algorithm.

Page 17: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Collision Detection

Cause: Signals need time to propagate!

Page 18: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Binary Exponential BackoffTime slot = 51.2μs

Binary Exponential Backoff:

• After 1st collision each participating station waits randomly 0 or 1 slot

• After 2nd collision each participating station waits 0,1,2, or 3 slots

• After n-th collision each participating station waits between 0 .. 2n-1 slots

• Maximum Backoff = 1023 slots

Page 19: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Beyond the 10Mbps The early1980s luxury:

8 MHz PC 256 KByte RAM 10 MByte Hard Disk Connected to the Dream 10Mbps LAN

But Parkinson’s Law is valid here too:“Work Expands to fill the time available for its

Completion”

In other words:“Data expands to fill the bandwidth available for their

transmission”

Page 20: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

The 100Mbps LAN Many proposals came to have faster LANs or

MANs FDDI : Fibre Distributed Data Interface DQDB : Dual Queue Dual Bus Fibre Channel

Common Feature : Very complexHigh Cost

However for a technology to work, it must be follow the KISS Law:

“Keep It Simple, Stupid”

Page 21: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Fast Ethernet

1992 : the IEEE 802.3 committee again.

Task: make faster LAN. Results:

Fast Ethernet (IEEE 802.3u) which is in principle identical to Ethernet except that bit time is 10ns instead of 100ns.

Page 22: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Fast Ethernet Cabling

• Fast Ethernet uses either HUBs or Switches

• No Manchester Encoding

Page 23: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Gigabit Ethernet

1995: the same idea: make Ethernet 10 time faster.

Page 24: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

The Ethernet real Competitor: Let us Go Wireless

Page 25: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Who is interested?

Desktop and laptop systems Handheld devices

PCs, scanners, data collection devices PDAs Palmtops etc

Page 26: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

WLAN implications

Multiple propagation pathways Signal interference Lifetime of battery Security Path loss Installation and connectivity Health

Page 27: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

IEEE 802.11

1997 standard 2.4GHz 1Mbit/s and 2Mbit/s FHSS and DSSS

1999 standard 802.11a

5 GHz - Orthogonal FDM up to 54 Mbit/s

802.11b 2.4 GHz - DSSS up to 11 Mbit/s

Logical Link

Control (LLC)

Media Access

Control (MAC)

Frequency

Hopping

Direct

Sequence

Infrared

light

PhysicalLayer

Data Link layer

Page 28: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

IEEE 802.11a,b Pros & Cons! IEEE 802.11a

+ Very high data rates- 5 GHz licensing problem- Competition with ETSI HiperLAN 2 - Illegal in Europe- Higher cost

IEEE 802.11b+ Works in the Unlicensed band of 2.4 GHz~ Data rates comparable with LANs- Interference with Cordless phones and Microwave

ovens+ Cheaper devices

Page 29: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

WLAN

Two modes of operation(a) Centralised(b) Ad hoc

Page 30: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

A multicel 802.11 network

Page 31: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

IEEE 802.11 MAC

The hidden Station problem:

Page 32: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Distributed Coordination Function (DCF)

To solve the problem of Hidden stationUse DCF: Uses CSMA/CA (Collision Avoidance) It is based on virtual channel sensing

All WLANs must support DCF.For centralised WLANs, there is also

PCF (Point Coordination Function)

Page 33: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Virtual Channel Sensing using CSMA/CA

Example: A, B, C, and D stations (D out of the range of A)

Request To Send Clear To Send

Network Allocation Vector

Due to unreliable medium

Page 34: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Frame Fragmentation

Because the radio link is unreliable short frames are needed long frames has to be fragmented.

Page 35: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Interframe Spacing in 802.11

Page 36: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

IEEE802.11 Frame Structure

Page 37: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

IEEE802.11 MAC Services

Distribution system services Association Disassociation Re-association Distribution Integration

Station services Authentication De-authentication Privacy Data Delivery

Page 38: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

What else in Wireless

Bluetooth (IEEE 802.15) Broadband Wireless (IEEE 802.16)

And the Cellular Wireless Technologies GSM, GPRS, and UMTS

Page 39: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

What else in Wireless

Bluetooth (IEEE 802.15) Broadband Wireless (IEEE 802.16)

(will follow but very briefly)

And the Cellular Wireless Technologies GSM, GPRS, and UMTS

Page 40: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Bluetooth

1994: Ericsson SIG started(with IBM, Intel, Nokia and Toshiba)

Named after Viking King Harald Blaatand (Bluetooth) who unified Denmark and Norway without wires!!

Goal: Short-range, inexpensive (<$5) method to connect devices without wires (E.g., mobile-PDA)

July 1999, PAN (Personal Area Network) standard IEEE 802.15

Page 41: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Bluetooth Characteristics Works in the 2.4 GHz band (together

with WLANs and microwave ovens) Low range (< 10m) 79 channels each with 1MHz 1Mbps Organised into pico-cells (1 Master and

7 slaves) Uses FHSS (Frequency Hopping)

controlled by Master (1600 hops/sec) Uses same Frequency band and hoping

as WLAN (problem!!!)

Page 42: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Bluetooth Architecture

Scatternet, 255 parked slaves, Ad hoc

Page 43: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Bluetooth Services

Page 44: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

Broadband Wireless IEEE802.16

Wireless MAN or Wireless Local Loop High data rates to Buildings Can be seen as Wireless Cable TV

network. Uses bandwidth between 10-66 GHz Uses sophisticated modulation to

achieve high rates

Page 45: UNESCO PROJECT Advanced Course on Networking Professor Khalid Al-Begain UNESCO/CISM SECOND ADVANCED SCHOOL OF INFORMATICS University of Damascus, Syria,

IEEE 802.16 Transmission Environment

For example: with 25MHz spectrum rates are : 150, 100, 50 Mbps