Professional Documents
Culture Documents
Data Final 2555
Data Final 2555
Data Final 2555
Packet
-
Controlling Transfer Across Local Media
- media access control
(Network Interface Card : NIC)
Data link Layer
Creating a Frame
-
1. Data : Network Layer
2. Header : Frame Start, Addressing, Type,
Contol
3. Trailer : Error Detection, Frame Stop
Connecting Upper-Layer Services to the Media
- Data Link Layer 2 sublayer
1. Upper sublayer :
Network Layer
2. Lower sublayer :
IEEE802
LAN
LLC
LLC
(Network Layer)
LAN
ATM
LLC
MAC
MAC
MAC
Standards
- Data Link layer services specifications
- Engineering organizations
Data Link layer :
1. International Organization for Standardization (ISO) : HDLC
2. Institute of Electrical and Electronics Engineers (IEEE) :
802.2(LLC), 802.3(Eternet), 802.5(Token Ring), 802.11(Wireless
LAN)
3. American National Standards Institute (ANSI) : Q.922
4. International Telecommunication Union (ITU) : 3T9.5 , ADCCP
>Media Access Control (MAC) Techniques:
Placing Data on the Media
- Media access control
-
sophisticated protocols
1. Controlled :
2. Contention-based :
- Controlled Access for Shared Media
- Controlled Access
scheduled
access or deterministic
-
-
- Token Ring, FDDI
- Contention-based Access for Shared Media
- non-determistic
-
- Carrier Sense Multiple Access
(CSMA)
- Eternet, wireless
-
Collision
- CSMA
- CSMA
Ethernet
2. CSMA/Collision Avoidance (CSMA/CA) :
802.11
wireless
MAC for Nonshared Media
- point-to-point topologies
Data Link Layer
half-duplex full-duplex.
- Half-duplex :
- Full-duplex :
- Logical Topology :
- Topology Point-to-Point, Multi-Access, Ring
Point-to-Point Topology
- 2 ( 2
)
- Link
Link
-
Point-to-Point
- media access method Data Link
protocol logical point-to-point topology
Multi-Access Topology
- 2
Share
- (
)
- media access control methods CSMA/CD or
CSMA/CA, token passing
Ring Topology
- link Point-to-Point
2
- Ring
- media access control methods token passing
>MAC: Addressing and Framing Data
Data Link Layer Protocols: The Frame
- Header, Data, Trailer
- the structure of the frame and the fields contained in the header
and trailer vary according to the protocol.
- fields Header
Trailer Protocol
Framing: Role of the Header
- Header
1. Start Frame field
2. Source and Destination address fields
4. Type field
5. Logical connection control field
6. Physical link control field
- PPP
1.
2.
3.
4. (Authentication)
- PPP twisted pair, fiber optic
lines, satellite transmission
- Wireless Protocol for LANs
- IEEE 802.11 Wi-Fi contentionbased system Carrier Sense Multiple Access/Collision
Avoidance (CSMA/CA) media access process
- CSMA/CA
- High-Level Data Link Control (HDLC) :
Half duplex Full
duplex
- Frame Relay
- Asynchronous Transfer Mode (ATM)
- Layer 2 protocol
implement topology
-
LANs WANs.
1. LAN Technology : small geographic area, cost-effective >
Ethernet
2. WAN Technology : large geographic area, not cost-effective >
Point-to-Point Protocol for WANs
(Detection and
Correction) Data Link Layer
Transport Layer OSI
Parity Bit
parity
bit 0 1
2
- even parity
- Odd parity
Ex 1 0100110 (Even Parity)
Sol :
1. 1 ( 1)
01001101
Parity Check
2 2, 4, 6
Checksum
Parity Check Over head Parity
Check Compute and send arithmetic sum Handles multiple bit
errors Cannot handle all errors
Check sum
(Parity Bit Check) Overhead
Parity Bit Check check sum
Check Sum
Check Sum
Physical Layer
Physical Layer
Lan
Connector
layer
Serial
UTP
Lan
Lan
1. Lan
- ( Crossover ) PC
Lan PC ,
- ( Straight ) PC
Hub Switch
2. Lan Router PC
Lan
Ethernet
- IEEE The
AIEE TRE
..
1884
- IEEE 802
IEEE 802.3 /
IEEE 802.4
IEEE 802.5
IEEE 802
2 802.2
(LLC : Logical Link Control)
(802.3,
802.4 802.5)
LLC
LLC
(Network Layer)
LAN
ATM
LLC
- MAC LLC
(Addresses)
MAC
MAC
MAC
MAC
Physical Implementations of Ethernet
>Ethernet: Communication Through the LAN
Historic Ethernet
Legacy Ethernet
Current Ethernet
Moving to 1 Gbps and Beyond
>Ethernet Frame
0 1 packet
frame network
frame
upper-layer protocol
frame
upper-layer protocol
data portion frame data frame
frame 46-bytes
padding bytes frame
46-bytes
(CRC) 4 bytes
frame
frame
Ethernet MAC Address
- Mac Address LAN
LAN
- MAC 48 12
6 IEEE
>Ethernet MAC
MAC in Ethernet
CSMA/CD: The Process
- CSMA/CD (Carrier Sense Multiple Access With
Collision Detection)
(Half
Duplex)
(Carrier
Sense)
(Collision
Detection)
Ethernet Timing
-
(Collision)
MAC
(Collision Detection)
(Round-Trip Time)
51.2
ns (10-6 ) 10
Interframe Spacing and Backoff
>Ethernet Physical Layer
10 Base T
10 Base T
Ethernet
Ethernet Star
Concentrator HUB
HUB
1 0 Base T UTP (Unshield Twisted Pair)
RJ-45
100 Mbps
10 Mbps 10
Fast Ethernet
10 Mbps Ethernet
Fast Ethernet
- FAST ETHERNET
Network Diameter 205
(LAN-Local Area-Network)
Ethernet 10 Mbps
1 Gbps
CSMS/CD
Ethernet
1 Gbps
100% Gigabit
Ethernet mode full-duplex
mode Half-duplex
- Ethernet 802.3x
- Frame
IEEE 802.3
-
- Full Duplex
- LAN
Star
- Scalability :
- Latency :
Latency
- Network Failure :
A MAC
Address (Lookup
Table) X A
A
Learning
- Flooding : B
X)
Flooding
- Forwarding : A
B
A B
Forwarding
- Filtering : C A
MAC Address C
Filtering
- Aging :
Learning
Flooding
Aging
(Timestamp)
>Address Resolution Protocol (ARP)
- IP address Hardware
address
1.
A
ARP request B
IP address B
2.
A B
3.
IP address
B
4. B
ARP reply
5. B
A
A
B
IP address
(cache)
ARP cache
ARP
-
IP address
Ethernet card