Title: Local%20Area%20Networks%20(LANs)
1Local Area Networks (LANs)
- IEEE 802 - Ethernet - Wireless LAN
21. IEEE 802
- IEEE 802.1 Higher layer LAN protocols
- IEEE 802.2 Logical link control
- IEEE 802.3 Ethernet
- IEEE 802.4 Token bus
- IEEE 802.5 Token Ring
- IEEE 802.6 Metropolitan Area Networks
- IEEE 802.7 Broadband LAN using Coaxial Cable
- IEEE 802.8 Fiber Optic TAG
- IEEE 802.9 Integrated Services LAN
- IEEE 802.10 Interoperable LAN Security
- IEEE 802.11 Wireless LAN (Wi-Fi)
- IEEE 802.12 demand priority
- IEEE 802.14 Cable modems
- IEEE 802.15 Wireless PAN
- IEEE 802.15.1 (Bluetooth)
- IEEE 802.15.4 (ZigBee)
- IEEE 802.16 Broadband Wireless Access (WiMAX)
- IEEE 802.16e (Mobile) Broadband Wireless Access
- IEEE 802.17 Resilient packet ring
- IEEE 802.18 Radio Regulatory TAG
- IEEE 802.19 Coexistence TAG
- IEEE 802.20 Mobile Broadband Wireless Access
- IEEE 802.21 Media Independent Handoff
- IEEE 802.22 Wireless Regional Area Network
3IEEE 802 LAN Protocol Architecture
- Lower layers of OSI model
- IEEE 802 reference model
- Physical
- Logical link control (LLC)
- Media access control (MAC)
4IEEE 802 Protocol Layers Compared to OSI Model
5802 Layers - Physical
- Encoding/decoding
- Preamble generation/removal (for sync.)
- Bit transmission/reception
- Transmission medium and topology
6802 Layers Medium Access Control
- Assemble data into frame
- Disassemble frame, and perform address
recognition and error detection - Govern access to the LAN transmission medium
802 Layers - Logical Link Control
- Interface to higher levels
- Flow and error control
7LAN Protocols in Context
8Logical Link Control
- Transmission of link level PDUs between two
stations - Relieved of some link access details by MAC layer
- Based on HDLC (High-Level Data Link Control)
- Three services
- Unacknowledged connectionless service
- Connection mode service
- Acknowledged connectionless service
9Medium Access Control
- Multiple devices shares the networks
transmission capacity/medium - Means of controlling access to the transmission
medium - MAC layer receives data from LLC layer
- LLC PDU is enclosed in a MAC frame
102. Ethernet
- Developed by Xerox
- IEEE 802.3
- Classical Ethernet
- 10 Mbps
- Bus topology
- Medium Access Control
- CSMA/CD (carrier sense multiple access with
collision detection)
11Bus Topology
- Stations attach to linear transmission medium
(bus), via a tap - Full-duplex between station and tap
- Transmission propagates length of medium in both
directions - Received by all other stations
- At each end of bus terminator, to absorb signal
- Need to indicate for whom transmission is
intended - Need to regulate transmission
- If two stations attempt to transmit at same time,
signals will overlap and become garbled - If one station transmits continuously access
blocked for others - Transmit data in small blocks (frames)
- Each station assigned unique address
- Destination address included in frame header
12Frame Transmission on a Bus LAN
13CSMA/CD
- With CSMA, collision occupies medium for duration
of transmission - Stations listen whilst transmitting
- If medium idle, transmit, otherwise, step 2
- If busy, listen for idle, then transmit
- If collision detected, send a jamming signal and
then cease transmission - After jam, wait random time (backoff) then start
from step 1 - Binary exponential backoff
- Random delay is doubled (the first 10
retransmission) - After 16 unsuccessful attempts, give up
14IEEE 802.3 Frame Format
Max. frame size 1518 18 1500
Preamble 1010101010101010 SFD 10101011
15Ethernet Physical Layer
- Ethernet (10 Mbps)
- Fast Ethernet (100 Mbps)
- Gigabit Ethernet (GbE)
- 10 gigabit Ethernet (10GbE)
- 100 gigabit Ethernet (100GbE)
1610Mbps Ethernet
(hundreds of meters)
(Mbps)
- ltdata rategtltSignaling methodgtltMax segment lengthgt
- 10Base5 10Base2 10Base-T
- Medium Coaxial Coaxial UTP
- Signaling Baseband Baseband Baseband
- Manchester Manchester Manchester
- Topology Bus Bus Star
- Nodes 100 30 -
(100m)
1710BASE-T
- Unshielded twisted pair (UTP) medium
- Also used for telephone
- Star-shaped topology
- Stations connected to central point, (multiport
repeater) - Two twisted pairs (transmit and receive)
- Repeater accepts input on any one line and
repeats it on all other lines - Link limited to 100 m on UTP
- Optical fiber 500 m
- Central element of star is active element (hub)
- Physical star, logical bus
- Multiple levels of hubs can be cascaded
18Fast Ethernet
- 100Mbps Fast Ethernet
- Star-wire topology (Similar to 10BASE-T)
- 100BASE-T Options
T twisted-pair wire
X 2 pair (transmit, receive)
19100BASE-TX
- 100BASE-TX runs over two pairs of wires
- Uses one pair of twisted wires in each direction
- 100 Mbit/s of throughput in each direction
(full-duplex) - STP and Category 5 UTP allowed
1 White/Orange 2 Orange 3 White/Green 4 5 6
Green 7 8
20Full Duplex Operation
- Traditional Ethernet half duplex
- Either transmit or receive but not both
simultaneously - With full-duplex, station can transmit and
receive simultaneously - 100-Mbps Ethernet in full-duplex mode,
theoretical transfer rate 200 Mbps - Attached stations must have full-duplex adapter
cards - Must use switching hub
- Each station constitutes separate collision
domain - In fact, no collisions
- CSMA/CD algorithm no longer needed
- 802.3 MAC frame format used
- Attached stations can continue CSMA/CD
21Gigabit Ethernet
(Short wavelength) (Long wavelength)
(log scale)
S 850 nm L 1,310 nm
2210-Gbps Ethernet
(log scale)
23Virtual LAN (VLAN) with Ethernet Switches
Server Broadcasting without VLANS
Servers Sometimes Broadcast Goes To All
Stations Latency Results
Server Broadcast
Client C
Client B
Client A
Server D
Server E
Destination MAC address FF-FF-FF-FF-FF-FF
24Virtual LAN (VLAN)with Ethernet Switches,
Continued
Server Broadcasting with VLANS
With VLANs, Broadcasts Only Go To a Servers
VLAN Clients Less Latency
Server Broadcast
No
No
Client C on VLAN1
Client B on VLAN2
Client A on VLAN1
Server D on VLAN2
Server E on VLAN1
25Tagged Ethernet Frame (802.1Q)
Tagged 802.3 MAC Frame
Basic 802.3 MAC Frame
Preamble (7 octets)
Preamble (7 octets)
Start-of-Frame Delimiter (1 Octet)
Start-of-Frame Delimiter (1 Octet)
Destination Address (6 Octets)
Destination Address (6 Octets)
Source Address (6 Octets)
Source Address (6 Octets)
Tag Protocol ID (2 Octets) 1000000100000000 81-00
hex 33,024 decimal. Larger than 1,500, So not a
Length Field
Length (2 Octets) Length of Data Field in
Octets 1,500 (Decimal) Maximum
26Tagged Ethernet Frame (802.1Q)
Basic 802.3 MAC Frame
Tagged 802.3 MAC Frame
Tag Control Information (2 Octets) Priority Level
(0-7) (3 bits) VLAN ID (12 bits) 1 other bit
Data Field (variable)
PAD (If Needed)
Length (2 Octets)
Data Field (variable)
Frame Check Sequence (4 Octets)
PAD (If Needed)
Frame Check Sequence (4 Octets)
27Hub Versus Switch
Hub Broadcasts Each Bit Out All Other
Ports --- If A Is Transmitting, B Must Wait to
Transmit
Ethernet Hub
X
C
D
A
B
28Hub Versus Switch
Switch Sends Frame Out One Port If A Is
Transmitting to C, B Can Transmit to
D Simultaneously
Ethernet Switch
C
D
A
B
29BusHub Switch
303. Wireless LANs
- A wireless LAN uses wireless transmission medium
- To satisfy requirements for
- mobility
- relocation
- ad hoc networking
- coverage of locations difficult to wire
- Applications
- LAN Extension
- Cross-Building Interconnect
- Nomadic Access
- Ad Hoc Networking
31IEEE 802.11 WLAN (Wi-Fi)
- ??????
- Wireless Local Area Network (WLAN)
- Wi-Fi (Wireless Fidelity)
- Wi-Fi Alliance (http//wi-fi.org/)
- IEEE 802.11
- 802.11a/b/g/n
32WLAN???/??? (Access Point)
AP
Switch
Router
Internet/ Intranet
Router
Switch
Access Router
AP
33WLAN ?? (Hotspots)
Coffee Shop
Airport
WLAN Adapter
Internet
Access Point
Conference Center
34MIT iSPOTS http//ispots.mit.edu/
APs 2800 Users per 15 min 1000
35??WLAN?????
Dopod CHT9100
Linksys Video Camera
100 OLPC
- PDA / Laptop PC
- PDA/Smart Phone
- Printer
- Digital Camera
- Wireless Audio
- Projector
- Surveillance Camera
- Wireless Skype Phone
- Wii
Nikon Coolpix S50c
NEC LT265 Projector
Nintendo Wii
36Ad Hoc??
374
2
1
3
38IEEE 802.11??
Protocol Release Date Op. Frequency (Unlicensed Band) Typ Max of Non- Overlapping Channels Range (Indoor)
Legacy 1997 2.4-2.5 GHz 1 Mbps 2 Mbps 3 ?
802.11a 1999 5.15-5.35 / 5.47-5.725 /5.725-5.875 GHz 25 Mbps 54 Mbps 24 30 m
802.11b 1999 2.4-2.5 GHz 6.5 Mbps 11 Mbps 3 50 m
802.11g 2003 2.4-2.5 GHz 25 Mbps 54 Mbps 3 30 m
802.11n 2006 draft 2.4 GHz or 5 GHz bands 200 Mbps 540 Mbps 3 / 24 50 m
- Data Rate -
39IEEE 802.11 Architecture
- MAC protocol and physical medium specification
for wireless LANs - Smallest building block is basic service set
(BSS) - Number of stations
- Same MAC protocol
- Competing for access to same shared wireless
medium - BSS generally corresponds to cell
- May be isolated or connect to backbone
distribution system (DS) through access point
(AP) - AP functions as bridge
- DS can be switch, wired network, or wireless
network - MAC protocol may be distributed (DCF) or
controlled (PCF) by central coordination function
in AP
40IEEE 802.11??
ESS
BSS
41SSID
- SSID (Service Set Identifier)
- Service Set???
- ????????????,?????????SSID,????????
- SSID??
- AP?????SSID,?????????????????
- ???AP??SSID,??WLAN???
42802.11 ????/??
- 802.11?????????????????
- ISM??,2.4GHz, 5 GHz
- ??????1W,802.11 0.1W
- ????,????Bluetooth
- ??(Channel)
- 2.4-GHz- ISM?? 14???(??22 MHz)
- ???????111??
43Channel Nominal Frequency (MHz) Minimum (MHz) Maximum (MHz)
1 2412 2401 2423
2 2417 2405 2428
3 2422 2411 2433
4 2427 2416 2438
5 2432 2421 2443
6 2437 2426 2448
7 2442 2431 2453
8 2447 2436 2458
9 2452 2441 2463
10 2457 2446 2468
11 2462 2451 2473
22 MHz
5 MHz
44AP??????
45Typical 802.11 WLAN Operation
Ethernet Switch
802.11 Frame
802.3 Frame
UTP
Radio Transmission
AP
Laptop
802.3 Frame
Access points (APs) bridge the networks Translates
between the 802.11 wireless frame and the
Ethernet 802.3 frame used within the LAN
Client PC
Server
Large Wired LAN
46Typical 802.11 WLAN Operation, Continued
Ethernet Switch
UTP
AP A
Laptop
802.3 Frame
802.11 Frame
Client PC
Handoff or Roaming (if mobile computer moves to
another access point, it switches service to that
access point)
AP B
Server
Large Wired LAN
47IEEE 802.11 Services
- Association
- Establish an initial association between a
station and an AP - Reassociation
- Enables an established association to be
transferred from one AP to another - Disassociation
- Terminate an existing association
- Authentication
- Establish the identity of stations to each other
- Privacy
- Prevent eavesdropping
48A Scenario
(1) Association (2) Reassociation (3)
Disassociation
Internet
AP 2
AP 1
49Stations and Access Points Transmit in a Single
Channel
Collision if 2 Devices send Simultaneously
50Medium Access Control
- Reliable data delivery
- Noise, interference, and other propagation
effects result in loss of frames - Multiple Access
- Only one station or the access point can
transmit at a time - Security
- Authorized access
- Two MAC methods
- CSMA/CAACK (mandatory)
- RTS/CTS (optional)
51CSMA/CAACK
- CSMA/CA (Carrier Sense Multiple Access with
Collision Avoidance) - If there has been no traffic for a sufficiently
long time, station or access point may send
immediately. - If there is current traffic or collision,
- the station sets a random timer
- If there is no traffic when the timer finishes,
may send - Receiver immediately sends back an
acknowledgement (ACK) when it receives a frame.
52CSMA/CAACK
- ACK (Acknowledgement)
- Receiver immediately sends back an acknowledgment
when it receives a frame - Does not wait to send an ACK
- This avoids interference with other stations,
which must wait - If sender does not receive the acknowledgement,
it retransmits the frame using CSMA/CA - 802.11 with CSMA/CAACK is a reliable protocol!
53RTS/CTS
CSMA/CA
D
RTS
A
B
CTS
C
http//media.pearsoncmg.com/aw/aw_kurose_network_2
/applets/csma-ca/withhidden.html
54Four Frame Exchange
- Basic data transfer involves exchange of two
frames - To further enhance reliability, four-frame
exchange may be used - Source issues a Request to Send (RTS) frame to
destination - Destination responds with Clear to Send (CTS)
- After receiving CTS, source transmits data
- Destination responds with ACK
- RTS alerts all stations within range of source
that exchange is under way - CTS alerts all stations within range of
destination
55Request to Send/Clear to Send (RTS/CTS)
Switch
RTS
Radio Link
Access Point B
Laptop
Client PC
Server
1. Device that wishes to transmit may send
a Request-to-Send message
Large Wired LAN
56Request to Send/Clear to Send (RTS/CTS)
Must Wait
Switch
CTS
Radio Link
WAP
May Send Frames
Client PC
Server
Large Wired LAN
2. Wireless access point broadcasts a
Clear-to-Send message. Station that sent the
RTS may transmit unimpeded. Other stations
hearing the CTS must wait
57WLAN????
- WLAN????
- ?????????
- WLAN??????????
- ??????
- WLAN????
- ???? (Encryption)
- ???? (Authentication)
58WLAN????
- ??
- ??????
- ???? (Denial of Service, DoS)
- WEP Key??
- ????? (Man in the Middle)
- ????? (Rouge AP)
- ???? (Session Hijacking)
59Man-In-Middle??
- ????????( Mutual Authentication)
2. Associates As Legitimate Client
Legitimate AP
Evil Twin AP
Legitimate Client
1. Associates
60????? (Rouge AP)
Switch
Router
Internet/ Intranet
?? AP SSID 7Eleven
Router
Rouge AP SSID 7Eleven
Switch
61Session Hijacking
62WLAN????
- ??SSID??
- MAC????
- Shared Key ??
- WEP (Wired Equivalent Privacy)
- WPA (Wi-Fi Protected Access)
- 802.11i (WPA2)
63Wii Wireless Connection Setting
http//www.nintendo.com/consumer/systems/wii/en_na
/online.jsp
WPA Wi-Fi Protected Access PSK pre-shared
key WEP Wired Equivalent Privacy TKIP
Temporal Key Integrity Protocol Reference
IEEE 802.11i Wi-Fi Alliance
64??SSID??
65MAC????
66Shared Key ??
Open System ?????
67Shared Key ??
68WEP (Wired Equivalent Privacy)
69(No Transcript)
70WEP Encryption
0011 0101 0110
? XOR
( A ? B ? B A )
Plain Text
010111001011100101001101...
?
RC4
key
IV
?
110101100101010011001001...
?
Cipher Text
100010101110110110000100...
?
RC4
key
IV
?
110101100101010011001001...
?
Plain Text
010111001011100101001101...
71WPA (Wi-Fi Protected Access) - PSK (Pre-Shared
Key)
5j6 g0 is "Chu Shan".
72- Key
- Password
- Dictionary attack
- Passphrase
- Phrase
- life is good in NCNU
73WPA (Wi-Fi Protected Access) - 802.1X
74IEEE 802.1X
EAP Extended Authentication Protocol RADIUS Rem
ote Authentication Dial In User Service
75802.11i (WPA2) - PSK
WPA2-PSK Encryption AES-CCMP
AES-CCMP AES-Counter Mode CBC-MAC Protocol
CBC-MAC Cipher Block Chaining-Message
Authentication Code
76802.11i (WPA2) - 802.1X
77WLAN??????
78WLAN??????
79WLAN??????????
- ????PDA?????WLAN?????
- Web-Based
- ????????
- ?????????????
- ????????????
80(No Transcript)