Professional Documents
Culture Documents
www.huawei.com
T
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved
The communication is realized via TCP/IP protocol stack between The computers with different model, different manufacturer and different OS. This course will introduce the architecture of TCP/IP protocol stack, the function of each layer and data encapsulation.
Page 2
Upon completion of this course, you will be able to : Know architecture of OSI RM Master architecture TCP/IP and the function of each layer Understand the process of TCP/IP data encapsulation
Page 3
Chapter 1 TCP/IP Protocol Stack Chapter 2 Data Encapsulation of TCP/IP Protocol Stack
Page 4
To predigest pertinent network operation To provide compatibility and standard interface between devices To accelerate standardization working Structure is separable Easy to realize and maintenance
Page 5
7 6 5 4 3 2 1
Page 6
Application layer Presentation layer Session layer Transport layer Network layer Data link layer Physical layer
Provide communications between applications Deal with data format problems Establish, maintain and manage sessions Establish, maintain and manage end to end connection Addressing and routing Provide link medium access and link management Bit flow transmission
4
3 2 1
Page 7
TCP/IP model
OSI 7 6 Application layer Presentation layer Session layer Transport layer Network layer Data link layer Physical layer Transport layer Network layer Data link layer Physical layer 4 3 2 1 TCP/IP
VS
Application layer
5
4 3 2
Page 8
Application layer
Page 9
PDU
Application layer Transport layer Segment
TCP header
Upper layer data Upper layer data Upper layer FCS data
IP header
Network layer
Packet
LLC header
Frame
0101110101001000010
Physical layer
Bit
Page 10
Data De-encapsulation
Host B Application layer Transport layer Network layer Data link layer Physical layer
Upper layer data Upper layer data TCP+ upper layer data IP+TCP+ upper layer data LLC header+ IP+TCP+ upper layer data 0101110101001000010
Page 11
WAN
V.35
G.703 EIA/TIA-232
Page 12
Coaxial cable
Twisted-pair Fiber Wireless radio
Physical layer device
Repeaters, HUB
Page 13
Appoint that how to transmit data packet via physical line and communicate with physical layer
LLC Sub-layer: Logic Link Control Sub-layer
Distinguish protocol types, encapsulate the data and transmit via network Application layer Transport layer Network layer Data link layer Physical layer LLC sub-layer MAC sub-layer
Page 14
WAN
SDLC
HDLC
Frame Relay
PPP
8 0 2 . 4
8 0 2 . 5
V.24
V.35
G.703 EIA/TIA-232
Ethernet switch
Page 15
products is 0x00e0fc.
24 bits 24 bits
Rom
Ram
Page 16
D Host A
Host B
A
B Router A Router B Network layer Data link layer Physical layer All rights reserved E Router C Network layer Data link layer Physical layer Page 17 Application layer Transport layer Network layer Data link layer Physical layer
Network (Packets)
IP/ICMP/ARP/RARP
802.2 LLC
Dial on Demand
SDLC
HDLC
Frame Relay
PPP
Page 18
Network Address
Network address identifies a device in the network layer
uniquely
Network address include two parts
Network ID
Host ID
Host ID 8.2.48
Page 19
transmission
Page 20
Network (Packets)
IP
802.2 LLC
Dial on Demand
SDLC
HDLC
Frame Relay
PPP
Page 21
UDP
Connectionless Trustless Suit the application that concerns transmission efficiency Reliability depends on application
High cost
Page 22
Page 23
TCP
UDP
IP
F D D I
Dial on Demand
SDLC
HDLC
Frame Relay
PPP
Page 24
TCP/IP
Chapter 2 Data Encapsulation of TCP/IP Protocol Stack Chapter 3 Case Analysis
Page 25
Application
App header User data
TCP
TCP Segment TCP header User data
IP Packet
IP header
TCP header
User data
IP
IP header 20-64B
user data
Ethernet trailer 4B
Application drive
Page 26
TCP Segment
Ethernet Frame
Ethernet header
IP header
TCP header
User data
Ethernet trailer
14B
20-60B 20B-60B
4B
Source Port
Dest. Port
Seq Num
Ack Num
...
Option
16b
16b
32b
32b
64b
Page 27
IP Packet
Ethernet header IP header TCP header User data Ethernet trailer
14B
20-60B 20B-60B
4B
0 version
31
Flag
Chip offset
20B
Source IP address
Page 28
Issue of IP Fragment
Fragment principle: comparing with data length and MTU, if the former is
IP packet
Host Host
MTU
MTU
Page 29
Ethernet Frame
Ethernet header IP header TCP header User data Ethernet trailer
14B
20-60B 20B-60B
4B
DMAC
SMAC
L/T
6B
6B
2B
Length/Type value
Ethernet_II Length/T > 1500
meaning
Represents Type
802.3
Represents Length
Page 30
Chapter 1 Internet Connection of TCP/IP Chapter 2 Data Encapsulation in TCP/IP Protocol Stack Chapter 3 Case Analysis
Page 31
Page 32
Destination MAC
Type
Page 33
Page 34
Destination port
Page 35
Summary
What layers does OSI RM divide into? Whats the function of each layer of
Page 36
T Thank You
www.huawei.com