OSI Refrence Model TCP-IP
OSI Refrence Model TCP-IP
TCP/IP
Rev 1.0
www.huawei.com
Objectives
Data Communication Overview
TCP/IP Model
Physical Layer
DataLink Layer
Network Layer
Transport Layer
Application Layer
Page 2
Computer Network
SOHO
Intranet
Internet
Server
IP Hotel
Wireless
All rights reserved
Page 3
Network Protocols
5
Source Host A
Perfect! I
understand
TCP/IP.
Destination Host B
communication rules.
HUAWEI TECHNOLOGIES CO., LTD.
Page 4
Datacom Equipment
Cable
Modem
Router
Switch
HUB
Access Servers
Page 5
Transmitting Parameters
Bandwidth: describes the information volume of the
Page 6
Packet switching
Page 7
Page 8
Standardization Organization
International Organization for Standardization (ISO)
Institute of Electrical & Electronic Engineers (IEEE)
America National Standard Institute (ANSI)
Electronic Industries Association/Telecom Industries
Association (EIA/TIA)
International Telecom Union (ITU)
INTERNET Action Board (IAB)
Page 9
Objectives
Data Communication Overview
TCP/IP Model
Physical Layer
DataLink Layer
Network Layer
Transport Layer
Application Layer
Page 10
What Is TCP/IP
TCP/IP has simple hierarchical design
In clear corresponding relations with OSI reference model.
Application layer
Presentation layer
TCP/IP
Application layer
Conversation layer
Protocol
Transport layer
Transport layer
Network layer
Network layer
Physical layer
Physical layer
Page 11
Interface
Data
SI
Application layer
ALH Data
APDU
SI
Transport layer
Segment
SI
Network layer
Packet
Frame
Physical layer
11010101110110101011101011010
Bit Flow
SI
Page 14
Page 15
TCP/IP
Ethernet
Token Ring
X.25
FR
ATM
Page 16
PPP/SDH
Data Encapsulation
TELNET
23
FTP
20/21
SMTP
25
TFTP
69
TCP/UDP (Port)
6/17
IP PACKETS (Protocol)
0x0800
FRAMES (Type, VPI/VCI, DLCI, )
BITS
HUAWEI TECHNOLOGIES CO., LTD.
Page 17
Transport Layer
TCP/UDP
Interconnection
Layer
Provide application
program
network interfaces
Establish terminal to
terminal connection
ICMP
Addressing and routing
IP
ARP/RARP
Data link Layer
Physical Layer
Page 18
Application
Application
Transport
Transport
Internet
Internet
Internet
Physical layer
Physical layer
Physical layer
Physical layer
Physical layer
LAN switch
End system
End system
Router
Router
Internet
Page 19
Peer Layer
If two networks are identical in physical layers, they can
Page 20
Objectives
Data Communication Overview
TCP/IP Model
Physical Layer
DataLink Layer
Network Layer
Transport Layer
Application Layer
Page 21
Physical Layer
Physical layer: defines the voltage, interface, cable
Page 22
Physical Layer
LAN and Physical Layer
Cable standard:10Base-T, 100Base-T and 1000Base-SX
etc.;
Network equipment: repeater and hub etc.
Page 23
Objectives
Data Communication Overview
TCP/IP Model
Physical Layer
DataLink Layer
Network Layer
Transport Layer
Application Layer
Page 24
Application
Ethernet
Token Ring
FDDI
HDLC
PPP
ATM
Frame Relay
X.25
Transport
Network
Data link
Hardware
Page 25
Page 26
nowadays
IEEE802.1 Common LAN Conceptions
IEEE802.2 Definition of LLC Sub-Layer
Ethernet switch
Page 27
Frame Relay
Page 28
MAC Address
24 bits
Unicast
24 bits
Vender Code
Serial Number
00E0FC 012345
10111011
00111010
10111010
10111110
Page 29
10101000
Objectives
Data Communication Overview
TCP/IP Model
Physical Layer
DataLink Layer
Network Layer
Transport Layer
Application Layer
Page 30
Page 31
Flat Network
A
B
MAC
PORT
2
All rights reserved
Page 32
IP Forwarding (Routing)
N4
N2.H1
N1.H1
N1.H2
N3.H1
Page 33
IP Addressing
32 Bits
Network
8 Bits
Host
8 Bits
8 Bits
128 .
1.
8 Bits
11111110
255 .
Page 34
254
IP Forwarding Process
Router
Router
IP
IP
ETH PPP
E1/0 S2/0
LAN 1
encapsulation
decapsulation
Routing
(selecting path)
PPP ETH
S2/1 E0/1
WAN
LAN 2
Page 37
IP:10.1.1.3
MAC: 00E0-FC01-6789
IP:10.1.1.2
MAC: 00E0-FC01-2345
PC C
IP:10.1.1.5
MAC: 00E0-FC01-ABCD
HUAWEI TECHNOLOGIES CO., LTD.
Page 38
IP:10.1.1.3
MAC: 00E0-FC01-6789
IP:10.1.1.2
MAC: 00E0-FC01-2345
PC C
I have 10.1.1.5 (00E0-FC01-ABCD)
IP:10.1.1.5
MAC: 00E0-FC01-ABCD
HUAWEI TECHNOLOGIES CO., LTD.
Page 39
ICMP
Echo Request
Echo Reply
10.1.1.0/24
.2
129.6.1.0/24
.1
E0/0
.1
E0/1
10.2.2.0/24
.2
E1/0
.1
E1/1
GW:10.1.1.1
.2
GW:10.2.2.1
ping 10.2.2.1
Reply from 10.2.2.1: bytes=32 time<1ms TTL=252
Dest./Mask
NextHop
Interface
Dest./Mask
NextHop
Interface
10.1.1.0/24
10.1.1.1
E0/0
10.1.1.0/24
129.6.1.1
E1/0
10.2.2.0/24
129.6.1.2
E0/1
10.2.2.0/24
10.2.2.1
E1/1
129.6.1.0/24
129.6.1.1
E0/1
129.6.1.0/24
129.6.1.2
E1/0
Page 40
ICMP
Echo Request
Echo Reply
10.1.1.0/24
.2
129.6.1.0/24
.1
E0/0
.1
E0/1
10.2.2.0/24
.2
E1/0
.1
E1/1
GW:10.1.1.1
.2
GW:10.2.2.1
ping 10.2.2.1
Reply from 10.1.1.1: Destination host unreachable
Dest./Mask
NextHop
Interface
Dest./Mask
NextHop
Interface
10.1.1.0/24
10.1.1.1
E0/0
10.1.1.0/24
129.6.1.1
E1/0
129.6.1.0/24
129.6.1.1
E0/1
10.2.2.0/24
10.2.2.1
E1/1
129.6.1.0/24
129.6.1.2
E1/0
Page 41
Objectives
Data Communication Overview
TCP/IP Model
Physical Layer
DataLink Layer
Network Layer
Transport Layer
Application Layer
Page 42
Transmission Control
Protocol (TCP)
Application
Transport
User Datagram
Protocol (UDP)
Internet
Network Interface
Hardware
Page 43
Page 44
24
16
8
16 bits source port
31
Data
0
24
SYN
RST
PSH
ACK
Reserved(6 bits
URG
offset
Options
Data
TCP header format
HUAWEI TECHNOLOGIES CO., LTD.
Page 45
31
Host
WWW.HUAWEI.COM
FTP.HUAWEI.COM
Application
FTP
Transport
21 1028 Data
WWW
80 1027 Data
Page 46
TCP Connection
Internet
client
server
Page 47
Acknowledgement Technology
Transport Layer Virtual Circuit
Source Equipment
Destination Equipment
Host
Host
Send 1,2,3
Send 4,5,6
Send 5,6,7
1
2
3
Acknowledge 4
4
5
6
Acknowledge 5
5
6
7
Page 48
Flow Control
Three method of flow control:
Buffering: burst data buffered, forward when idle.
Source quench message: send the source quench message
by ICMP
windowing: use to control how many data be sent at one time
Page 49
Slide Window
To modify the
widows size
The sender
is too fast
Page 50
Page 51
real-time performance
Use streams to solve line header block
Adopt 4-step startup to avoid DOS attack
Supports the multi-homing function
appropriate congestion avoidance behavior and
Page 52
SCTP Terminology
SCTP Endpoint A
SCTP Endpoint B
SCTP
stream
(uni-directional)
Multiple
IP/SCTP-port
Multiple
SCTP connection
IP/SCTP-port
Page 53
SCTP Functions
Sequenced delivery within streams
Chunk bundling
Packet validation
Path management
Page 54
Association Startup
endpoint A
endpoint Z
INIT(Tag_A)
T1-init
INITACK
COOKIE ECHO+ DATA
T3-rtx
T1-cookie
established
SACK
established
Page 55
A, B, C, D
TSN=3,SSN=2
TSN=1,SSN=1
Stream1
TSN=5,SSN=2
TSN=4,SSN=2
TSN=2,SSN=1
D2
D1
Stream2
HUAWEI TECHNOLOGIES CO., LTD.
Page 56
an initial TSN, to each data chunk sent by the local end to permit the
receiving SCTP endpoint to acknowledge its receipt.
TSN is maintained on the basis of association.
Page 57
Page 58
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 01 2 3 4 5 6 7 8 9 0 1
Type = 0
Reserve U B E
Length
TSN
Stream ID
SSN
User Data
Page 59
Meaning
Unfragmented message
Length: from the beginning of the type field to the end of the user
data field
TSN: 0~4294967295
Stream Identifier
Stream sequence number: 0 to 65535
HUAWEI TECHNOLOGIES CO., LTD.
Page 60
SCTP Acknowledgement
Sender
Receiver
Data (TSN=1)
Data (TSN=2)
Data (TSN=3)
Data (TSN=4)
Data (TSN=5)
Data (TSN=6)
Data (TSN=7)
Data (TSN=8)
Data (TSN=9)
SACK
Page 61
Page 62
Multi-homing function
Actually, except multi-homing function and
Page 63
happened in one stream, the stream will wait till all packages
in order before reporting to next section. And this wont
effect other stream.
So SCTP ensures the real-time feature on sender and
receiver.
Page 64
an association.
The two RWND values will vary with data transmission and
acknowledgement.
If the RWND is equal to 0, the data sender can always have one packet in
flight to the receiver.
Before sending packages, SCTP will check the number of unacknowledged
package to sure its smaller than RWND.
The retransmission data has higher priority than new data.
Congestion window (CWND):
Page 65
restart T3 timer.
If T3 timeout, SCTP will check the PMTU, then bundle all
unacknowledged data into one package, send it to
destination address and start T3.
Page 66
Page 67
Page 68
Page 69
Page 70
Objectives
Data Communication Overview
TCP/IP Model
Physical Layer
DataLink Layer
Network Layer
Transport Layer
Application Layer
Page 71
Application
Transport
Network
Data link
File Transfer
- TFTP
- FTP
E-Mail
- SMTP
Remote Login
- Telnet
Network Management
- SNMP
Name Management
- DNS
Routing
- OSPF
- BGP
Hardware
Page 72
Thank you
www.huawei.com