Professional Documents
Culture Documents
2.1.
1.6 TCP/IP 3
1. IP IP
2. ARP
3.
TCP/IP
1. EthernetFiberCopper
Medium Media
2. WLANWireless LAN
Radio
3. 3G
PPPPoint-to-Point Protocol
4. PDH/SDH/SONETPlesiochronous Digital Hierarchy Synchronous Digital
Hierarchy Synchronous Optical Networking
PPP HDLCHigh-level Data link Control
5. ATMAsynchronous Transfer Mode ATM TCP/IP
TCP/IP
6. GPON/EPON/EPCNGigabit-capable Passive Optical Network Ethernet
PON Ethernet Passive Coax Network
7. LoopbackGRE
8. WiMAXWDM/DWDM
TCP/IP
TCP/IP
WLANPPPLoopback
MTUMaximum Transmission Unit
2.2.
2-1
2000
1. 8 4
Twisted pairs+RJ45Registered Jack 45 HUB 2 HUB
2. 4
CSMA/CD
CSMA/CD
3.
Half Duplex
2-2
2-2 1 Tx 2 Rx
1 2 1 1 23
1.
2.
3.
4.
1 23
2 3
2 3 2
13 2
Switch
1. 1 1
1
2. 1
2-3
1. 1 1 1
Full Duplex
2. 1 234
2
Switch 1 2 1 Tx 2 Rx 1 Rx
2 Tx 1 2 3
Tx
Tx Rx
2 3 1
Bridge
WLAN
2.3.
IEEE 802
2.4.
802
802.3ak 10Gb/s
802.3av10Gb/s EPON
802.3az
802.3ba40Gb/s 100Gb/s
TCP/IP LLC
MAC
802.1Q802.1X
2.5.
WLAN
WLAN WLAN
HUB ALOHA1960
ALOHA Hello ALOHA WLAN ALOHA
WLAN 1997 Richard 1993
WLAN IEEE 802.11 WLAN = 802.11 = WiFi
WiFi WLAN 802.11
WLAN
2-6 WLAN
WLAN Channel
WLAN
CSMA/CAA
Avoidance CSMA/CD WLAN
WLAN 100m 10km
2-6
Infrastructure 4 2
AvoidanceDetection WLAN
station STA ad hoc STA
Peer to Peer Infrastructure STA Access Point
AP STA AP STA AP Infrastructure
WLAN
ad hoc 2-6 STA1 STA4
2.6.
WLAN
7) Retry 1 WLAN
1993
802.3
11) Order 1
2. Duration/ID /2 3
1) 1 0
us STA AP
802.11 Duration
3) 2 11 STA PS PS-Poll- AP
association ID ID aidSTA
AP AP aid AP STA
(Receiver) (Transmitter)
IBSS
DA
SA
BSSID
To AP
BSSID
SA
DA
From AP
DA
BSSID
SA
WDS
RA
TA
DA
SA
2-8 WLAN
2.8 WLAN MAC
1) BSS IDBSS Basic Service Set STA
ad hoc BSS ID Infrastructure
AP BSS AP MAC STA BSS ID
Infrastructure STA AP AP MAC BSS ID
4.
5.
6.
7.
2.7.
WLAN
WLAN
WLAN 10 WLAN
WLAN
802.3/
2
802.11eQoS WLAN
802.11i WLAN 802.1x WPI
2.8.
PPPPoint-to-Point Protocol
2-9 PPP
PPP 2-9 PPP
PPP
PPP
WLAN PPP
ModemPPP 2-10
2-10 PPP
PPP 2-10
Dial-up Modem
ADSL Modem 3G /WLAN
PPP over Ethernet PPPoE
SDH
2M155M622M2.5G
LCP LCP 2
PAPPassword Authentication Protocol CHAPChallenge Authentication
Protocol
PAP CHAP MD5
2.9.
PPP
2-11 PPP
PPP flag flag flag PPP
7E
address FF PPP 2
2-9 1 2
2
control 03
protocol type information
0x0021 IPv4 0x8021 IPv4CP0x0057 IPv6 0x8057
IPv6CP0xc021 LCP
information data 1500 0
CRC CRC 2 CRC 4
PPP 0x7E 01111110 0x7E
PPP 0x7E PPP
escape character 0x7E
3. ASCII 0x20
= PPP
information 1500 1+1+1+2+1500+2=1507 PPP
99.536%
2.10.
100Mb/s 200
500kb/s
PPP
PPP 2Mb/s
2-12 PPPoE
PPPoE
1. PPPoE PPPoE
PPPoE
2. PPPoEPPPoE PPPoE
PPPoE ADSL Digital
Subscriber Line Modem
DSL ATM Asynchronous Transfer Mode
PPPoEoA DSL PPPoE PPPoEoA
PPPoE PPPoE PPPoE
PPPoE
DSL
DSL Modem DSL
PPP
DSL Modem DSL Modem
ADSL PC DSL
ModemWLAN DSL Modem
2-12 PPPoE DSL Modem2
PPPoE
802.1x 802.11i PPPoE
2-13 PPPoE
PPPoE 802.3802.11 3 LLC
PPPoE Type 0x8863PPPoE discovery 0x8864PPPoE session
IPv4 0x0800IPv6 0x86dd
PPPoE Session PPPoE
Version 4bit 0x1
Type 4bit 0x1
Code 8bit PPPoE Session
PPPoE code
PPPoE discoverysessionterminate
discovery 0x09 code 0x00
Session ID 16bit
PPPoE Stevens
Unix tcpdump PC
Windows Wireshark WinPcap
Linux tcpdump Wireshark Statistics
Flow Graph
Wireshark guide filter PPPoE discovery
Discovery 4
Unicast Multicast
Code 0x65
Offer
2-14 4 1 0
PPPoE 0.006s 6
PPPoE PPP 2.8 PPP LCP
NCP
2-19 PPP
2-19 LCP 4 4
Configuration Request MRUMaximum Receive Unit
1
Configuration Ack MRU
Configuration Reject
Configuration Nak Nak
3
PPP A Ack A
A
A Ack
2-20 LCP
Type 0x8864 PPPoE PPPoE Type
PPPoE Code 0x00PPPoE Session data;
Session ID 0x0001 Session ID
Payload Length 20 PPPoE 6 26 46
20
PPP PPP E1
PPPoE
Hub
PPPoE PPP Protocol flag
0xc021 LCP
LCP Code0x01 Configuration Request0x02 Configuration
Ack
Identifier
Length LCP Payload Length
Header Header
LCP Options 14 CodeIdentifierLength 18
1 Option MRU PPP MTU
MRU MTUMTU
MRU MRU
MRU MRU MRU
1492 2-13 MTU 1500 PPPoE 6 PPP 2
1492
Authentication Protocol PAP CHAPChallenge
Handshake Authentication Protocol 0xc023
PAP
Magic Number PPP 2-9 1
Tx 2 Rx 1 Rx 2 Tx Tx Rx
PPP
PPP
2-21 LCP
Destination Source
2-22 LCP *
LCP Code 0x04 configuration Reject
Options Callback
Options
PPP PAP
2-23 PAP
SourceDestination Type 0x8864PPPoE
CodeSession ID LCP
PPP 0xc023 PAP
PAP Code 0x01 Authenticate-Request
Identifier 0x01 Identifier 0x01 Ack Request
2-24 PAP
MAC
PAP Code 0x02 Authenticate-Ack
Identifier 0x01 Identifier 0x01
Data MessageWelcome to use this device
How are you doing?
2-25 IPCP
PPP Protocol 0x8021 IPCP
IPCP Code 0x01 Configuration Request
Options IP IP Address 6.16.5.1
6.16.5.1
2-26 IPCP
Options
1 IP Address 0.0.0.0
2 Primary DNS Server IP address DNS 0.0.0.0
2-27 IPCP
2-28 IPCP
Code 0x02 Configuration Ack
Options IP 6.16.5.1
Options
2-29 IPCP
2-26 Options DNS
DNS 2
2-30 IPCP
Nak IP 6.16.5.6
2-31 IPCP
Ack
Reject Option Request Nak
Nak Request Ack
PPP TCP/IP
PPP PAP CHAP
PPP
LCP Options 0xc023 CHAP
Algorithm MD5Message Digestion 5 Hash
MD5(How are you doing?) = 16bytes-String MD5 How are
you doing? 16bytes-String MD5
16bytes-StringHow are you doing?
Name AccessRouter2
Response
Response Identifier 0x1Response Identifier Challenge
2.11.
2-43 802.1Q
2-43 802.1Q VLAN tag 2 type
1 type 0x8100 802.1Q
2 type data type
802.1Q 4 2 type 0x8100 2
802.1Q802.1Q 3
1. 3 802.1P QoS 3 07 8
0
2. 1 CFI 0
3. 12 VLAN ID VLAN Id 04095 0 4095
14094VLAN 1 VLAN
VLAN
2-44 VLAN
R&D Marketing LAN R&D
Marketing R&D PC VLAN 2Marketing PC
VLAN 3 trunk 2-44
trunk aggregated
PC VLAN trunk
VLAN tag
VLAN tag VLAN Switch 1
R&D PC VLAN ID = 2 trunk Switch 2 Switch 2
VLAN ID = 2 VLAN 2 R&D PC
PC 802.1Q PC
access
access 1 VLAN n VLAN ID = n
VLAN ID = n
trunk VLAN x/y/z 1 primary VLAN
VLAN Id pvid x VLAN ID = x/y/z
VLAN ID = x 802.1Q
802.1Q 802.1Q VLAN ID = x
hybrid VLAN trunk pvid hybrid pvid
trunk hybrid VLAN 802.1Q
VLAN untagged VLAN hybrid 802.1Q
VLAN tagged VLAN hybrid 802.1Q
pvid 802.1Q hybrid pvid = xuntagged VLAN =
ytagged VLAN = z 802.1Q VLAN ID = x y hybrid
VLAN ID = z 802.1Q
802.1Q VLAN ID = x 802.1Q
VLAN ID y z
VLAN
VLAN
VLAN VLAN router
bridge bridge VLAN
bridge VLAN VLAN VLAN
router router
router bridge layer 3 switch 3
PC 802.1Q
2.12.
802.1X Authentication802.1X
TCP/IP TCP/IP
IP
TCP/IP
2.10 PPPoE
PPPoE
port-based network access control
PC PC
IEEE 802.1X Authentication 1X
802.1X IETF EAPExtensible Authentication Protocol 802.1X
EAP
MD5
EAP
EAP
EAP 802.1X
WLAN EAP EAPOLEAP Over LAN802.1X EAP
WEB Portal
PC
802.1X802.1X
802.1X
2.44 1 802.1X
2 1 PC
2 PC 2 PC 2 PC
WLAN
802.1X
2-47 802.1X
Supplicant802.1X
EAP 2-47 WLAN Pc Ethernet PC Supplicant
Authenticator802.1X
Supplicant Authentication Server Supplicant
802.1X Supplicant 802.1X PAEPort Authentication Entity
2-47 WLAN PC AP Ethernet PC Switch Authenticator
Authentication Server802.1X
EAP Authenticator Authentication Server
EAP Method
802.1X
Supplicant DA
Nearest01:80:c2:00:00:03 Authenticator Authenticator
Supplicant Authenticator
Authenticator WLAN AP MAC DA RA AP
Authenticator STA
2-49 EAPOLStart
EAP Method
MD5-Challenge
EAP CHAP
18
EAP-SIM
GSM SIM
23
EAP-AKA
29
EAP-MSCHAP-V2
CHAP
13
EAP-TLS
21
EAP-TTLS
25
PEAP
2-54 EAPSuccess*Authenticator
2) Identity 2 Request
3) Length 4 Type Type-Data
Authenticator 10s Supplicant PPP LCP Echo
2-48 0.047s Success 9.787s Authenticator
Identity Request MD5-Challenge RequestSupplicant Identity ResponseAuthenticator
Success OK 21.787s 24.783s
Supplicant 802.1X Logoff
2-55 EAPOLLogoff*Supplicant
2-56 EAPFailure*Authenticator
Open SourceFree
Software 802.11 Wireless Networks: The Definitive Guide, Mathew S. Gast
2.13.
802.11i WLAN
802.1X Supplicant
WLAN WLAN
WLAN
Switch HUB
Show Care
Switch
Switch Mirror
Mirror
WLAN
2-57 WLAN
2-57 WLAN
WLAN
MAC MAC
Open System STA STA AP
MAC MAC
IntegrityAuthentication
WEP CRC
802.11i TKIP Michael CCMP CBC
Anti-Reply
TKIP CCMP 802.11e QoS
802.1X EAP
pre-shared key 802.1X 802.1X
pre-shared key
STAAP pre-shared key STA AP
WPA Personal pre-shared
key WPA-PSK
EAP-TLS WPA Enterprise
TLS WPA Enterprise PEAPCisco
TTLSMicrosoft
MAC 802.1X MAC MAC
802.11i WPA2
802.11
2-58 802.11
Protected 1 TKIPData
1520 TKIP MAC 802.11 MAC
4) Ack Wireshark
2. authentication WPA Open System
1) 4 STA authentication STA Open System
2) 5 AP STA authentication 4
3. association association MAC
1) 6 STA AP association request WLAN
TKIPpre-shared keyRSNv1
2) 7 AP STA association response STA STA
Ack STA AP MAC LLC
PSK
4. WPA Enterprise
5. WEPWPA
6.
2.14.
QoS
VIP
VIP
3
50
2 iPhone
iPhone show
Quality of Service
QoS
QoS
iPhone
QoS
QoS
QoS
2. PCFDCF STA AP
PCF PC(Point Coordinator ) AP AP STA
PCF AP CF-Poll STA CF-Poll
Duration STA AP NAV
802.11 DCFPoint Beacon STA AP
CFPContention Free Period Point CF-End CPContention
Period
802.11 DCF PCF DCF PCF
STA STA STA
WLAN STA
802.11e HCFHybrid Coordinated Function
1. 802.11e HCCAHCF Controlled Access HCF PCF
2-63 802.11e
2-63 2-7 802.11 802.11e WLAN
802.11e 802.11e 2-63 802.11
802.11e Type-SubType SubType 4 1000
802.11e QoS Frame802.11e 2 QoS Control
1. 3bit Traffic Identifier TID 802.1p
802.11e AC TID
Background
Best Effort
Best Effort
Best Effort
Excellent Effort
Best Effort
Critical Apps
Video Probe
Video 100ms
Video
Voice 10ms
Video
Internetwork Control
Voice
Network Control
Voice
3) 2 TCP
2-64 MAC
2-64 EDCF DCF
1. LLC MAC MAC NAV
2. MAC SIFS<PIFS<DIFS<=AIFS
1) SIFS RTS/CTS ACK
2) PIFS PCF
3) DIFS DCF
3.
4.
5.
6.
2.15.
Loopback Interface
TCP/IP
TCP/IP
2 1-2
UP TCP/IP
TCP/IP
2-67 TCP/IP
2-67 16 Loopback TCP/IP
Loopback 2-67
1. 2-67 output
Up IP
3
1) IP IPv4 127.0.0.0/8 IPv6 ::1/128 IPv4 IPv6
2) IP
3) IP
2. IP input
output input
2
PC TCP/IP TCP/IP
IP
2.16.
MTU PMTU
MTU
payload MTU payload
1 payload fragmentation
IPv6 MTU
1280 MTU 1280 MTU
1500 2-7 802.11 10 000 payload 802.11
MTU 1500 payload 2-5 802.3
MTU 1492
MTU Tx MRU Rx
half duplex Tx Rx
MTU = MRU Hub WLAN
MRU MTU 802.1Q
2-69 PMTU
Tx Rx 4 Device1~4 Tx Rx
Path
2.17.
2-70
2-5 802.3 2-5
2-70 20
1. 7 preamble
2. 1 delimiter
3. 12 IFGInter Frame Gap CRC
12 IFG
IFG 12
2-70 IFGIFG
84 1Gbps
10 ^ 9 / (84 * 8) = 1488095.238095238
1 488 095.24 fpsframe per second 1538
81 274.38 fps
app
2-70 app data 84 46 = 38
2-70 head TCP 40
78
IP efficiency IP bps
IP payload 461500 efficiency
[54.76%, 97.53%] IP [547.62Mbps, 975.29Mbps] 2-11 PPP
IP 1500 / 1508 = 99.47%
IP MTU
PMTU
2-71
Hub 2-2
2-71
DIFS 54Mbps 802.11g
1MBps WLAN 2 STA
AP
STA AP
AP
AP 54Mbps 802.11g
2.18.
PPPPPPoE 802.11
802.1Q802.1X 802.11i 802.11e
MTU PMTU
OSI ISO
Open System Interconnection TCP/IP
IP
MAC
802.1ah 802.1qbg 802.1qbh
802.1aq 802.1ag 40G 100G 802.11n802.11e
P2P
WLAN Hub
TCP/IP
2.1. 2 10
CSMA/CD WLAN CSMA/CA
2.2. 2 2
2.13.