02 Network Reference Model
02 Network Reference Model
Page 1 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Foreword
In the digital era, various information is presented as data in our life. What is data? How is data transmitted?
In this course, we will use the network reference model to understand the "life" of data.
Page 2 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Objectives
On completion of this course, you will be able to:
Understand the data definition and transmission process.
Understand the concepts and advantages of the network reference model.
Understand common standard protocols.
Understand the data encapsulation and decapsulation processes.
Page 3 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. Applications and Data
Page 4 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Origin of the Story - Applications
Applications are used to meet various requirements of people, such as web page access, online gaming, and online video
playback.
Information is generated along with applications. Texts, pictures, and videos are all information presentation modes.
Application
Information
Page 5 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Application Implementation - Data
Data generation
In the computer field, data is the carrier of all kinds of information.
Data transmission
Data generated by most applications needs to be transmitted between devices.
Page 6 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. Applications and Data
Page 7 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
OSI Reference Model
5. Session Layer Establishes, manages, and terminates sessions between communicating parties.
Establishes, maintains, and cancels an end-to-end data transmission process; controls transmission speeds
4. Transport Layer and adjusts data sequences.
3. Network Layer Defines logical addresses and transfers data from sources to destinations.
2. Data Link Layer Encapsulates packets into frames, transmits frames in P2P or P2MP mode, and implements error checking.
1. Physical Layer Transmits bitstreams over transmission media and defines electrical and physical specifications.
Page 8 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
TCP/IP Reference Model
The OSI protocol stack is complex, and the TCP and IP protocols are widely used in the industry. Therefore, the TCP/IP
reference model becomes the mainstream reference model of the Internet.
Application Layer
Session Layer
Page 9 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Common TCP/IP Protocols
The TCP/IP protocol stack defines a series of standard protocols.
Page 10 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Common Protocol Standardization Organizations
Internet Engineering Task Force (IETF)
IETF is a voluntary organization responsible for developing and promoting Internet protocols (especially protocols that constitute the TCP/IP protocol suite), and
releasing new or replacing old protocol standards through RFCs.
Page 12 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Application Layer
• The application layer provides interfaces for application software so that applications can use network services. The application layer protocol
designates transport layer protocols and ports.
• PDUs transmitted at the network layer are called data.
Page 13 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
FTP client: provides commands for local users to operate files on a FTP server: a device that runs the FTP service. It provides the
remote server. A user can install an FTP client program on a PC and set access and operation functions for remote clients, allowing users
up a connection with an FTP server to operate files on the server. to access the FTP server through the FTP client program and
access files on the server.
Page 14 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Telnet server
Telnet client
SW Firewall
were entered on the console of the server.
...
Server
Page 15 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Network
Visits www.huawei.com.
Page 16 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Transport Layer
A transport layer protocol receives data from an application layer protocol, encapsulates the data with the corresponding transport
layer protocol header, and helps establish an end-to-end (port-to-port) connection.
PDUs transmitted at the transport layer are called segments.
Application Layer
Transport layer protocols:
Transport Layer TCP: a connection-oriented reliable protocol defined
(Segment) by IETF in RFC 793.
UDP: a simple connectionless protocol defined by
Network Layer
IETF in RFC 768.
Data Link Layer
Physical Layer
Page 17 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Page 18 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
TCP port 1024 TCP port 1231 TCP port 80 TCP port 23
House number: 1.1.1.1 (IP address) House number: 2.2.2.2 (IP address)
Network
• Generally, the source port used by a client is randomly allocated, and the destination port is specified by the application of a server.
• The system generally selects a source port number that is greater than 1023 and is not being used.
• The destination port number is the listening port of the application (service) enabled on the server. For example, the default port number for HTTP is 80.
Page 20 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
PC1 PC2
1.1.1.1:1024 2.2.2.2:23
Page 21 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
PC1 PC2
1.1.1.1:1024 2.2.2.2:23
1 A TCP connection is
2
3 established.
4
5
6 …… IP header TCP header
Page 22 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
PC1 PC2
Data to be sent
2 seq=101 win=3
Page 23 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Page 24 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Network Layer
The transport layer is responsible for establishing connections between processes on hosts, and the network layer is responsible for
transmitting data from one host to another.
PDUs transmitted at the network layer are called packets.
Application Layer
Transport Layer
• The network layer is also called the Internet layer.
It sends packets from source hosts to destination hosts.
Network Layer
• Functions of the network layer:
(Packet)
Provides logical addresses for network devices.
Routes and forwards data packets.
Data Link Layer Common network layer protocols include IPv4, IPv6, ICMP, and IGMP.
Physical Layer
Page 25 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
PC1 G0/0/1
PC2
The PC encapsulates the IP header (envelope).
The key information is about source and destination IP
addresses. Network A
Routing table of Router 1 • The network layer header of a packet sent by a source device carries the
network layer addresses of the source and destination devices.
Outbound • Each network device (such as a router) that has the routing function maintains
Network
Interface a routing table (like a map of the network device).
• After receiving a packet, the network device reads the network layer
Network A G0/0/1 destination address of the packet, searches the routing table for the
Envelope: IP packet header matching entry of the destination address, and forwards the packet according
Sender: source IP address … … to the instruction of the matching entry.
Receiver: destination IP address
… …
Page 26 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Application Layer
Transport Layer
The data link layer is located between the network layer and the physical layer.
Network Layer • The data link layer provides intra-segment communication for the network
layer.
Data Link Layer • The functions of the data link layer include framing, physical addressing,
(Frame) and error control.
• Common data link layer protocols include Ethernet, PPPoE, and PPP.
Physical Layer
Page 27 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Switch A
I have a MAC address when I
leave the factory. Name: Host A
Switch B
MAC address/Ethernet address/physical address:
Host A Host B
Host A
Network A
Host C Host D • A media access control (MAC) address uniquely identifies a NIC on a network. Each
• Ethernet is a broadcast multiple access protocol that works at the data link NIC requires and has a unique MAC address.
layer protocol. • MAC addresses are used to locate specific physical devices in an IP network
• The network interfaces of PCs comply with the Ethernet standard. segment.
• Generally, a broadcast domain corresponds to an IP network segment. • A device that works at the data link layer, such as an Ethernet switch, maintains a
MAC address table to guide data frame forwarding.
Page 28 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
ARP
Address Resolution Protocol (ARP):
Discovers the MAC address associated with a given IP address.
ARP request
Destination IP address: 192.168.1.2
Destination MAC address: ?
Host A Host B
192.168.1.1/24 192.168.1.2/24
3C-52-82-49-7E-9D ARP reply 48-A4-72-1C-8F-4F
Source IP address: 192.168.1.2
Source MAC address: 48-A4-72-1C-8F-4F
Page 29 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Page 30 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Host 1 Host 2
Host 1 checks cached ARP entries.
3 GE 0/0/1 GE 0/0/2
Step 2:
Host 2 sends an ARP reply. • Host 1 sends an ARP request to discover the MAC address of
2
Eth_II ARP Request FCS Host 2.
• The destination MAC address in the ARP request is 0 because
the destination MAC address is unknown.
Host 1 adds an ARP entry.
Destination MAC address: Operation type: ARP request
FF-FF-FF-FF-FF-FF MAC address of the sender: MAC 1
Source MAC address: IP address of the sender: IP 1 Step 3:
MAC 1 Destination MAC address: 00-00-00-00-00-00 • The ARP request message is a broadcast data frame. After
Destination IP address: IP 2 receiving the ARP request message, the switch floods it.
Page 31 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Page 32 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Page 33 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Page 34 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Physical Layer
After data arrives at the physical layer, the physical layer converts a digital signal into an optical signal, an electrical signal, or an electromagnetic
wave signal based on the physical media.
PDUs transmitted at the physical layer are called bitstreams.
Application Layer
Transport Layer
Network Layer
Page 35 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Transport Network Physical
Application Layer Data Link Layer
Layer Layer Layer
Data transmission through twisted pairs Data transmission through optical fibers
1 2
3 4
Page 36 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. Applications and Data
Page 37 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Data Encapsulation on the Sender
Data
Page 40 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Data Decapsulation on the Receiver
0 1 1 0 0 1 0 1 0 1 ...
Transmission Media
Page 41 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Summary
Both the OSI reference model and the TCP/IP reference model adopt the layered design concept.
Clear division of functions and boundaries between layers facilitates the development, design, and troubleshooting of each
component.
Interfaces can be provided to enable communication between hardware and software on various networks, improving
compatibility.
Data generation and transmission require collaboration between modules. Meanwhile, each module must fulfill its own
responsibilities.
Page 42 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Quiz
1. What are the benefits of the layered model?
2. What are the common protocols at the application layer, transport layer, network layer, and data link layer?
Page 43 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Thank You
www.huawei.com
Page 44 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.