Data Communication Network Basics · Topic 2 of 3

Reference Models and Standard Protocols

Learn how applications create data, the OSI and TCP/IP layers, PDU names, encapsulation, TCP and UDP, and common ports for HCIA-Datacom H12-811.

  • 5 min
  • Includes a diagram
In a nutshell
  • OSI has seven layers, from physical (1) up to application (7).
  • PDUs: data, segment, packet, frame, bit.
  • TCP is reliable and connection-oriented with a three-way handshake. UDP is connectionless and has an 8-byte header.

What it is

Applications such as web browsing, email, file transfer and video calls are why a network exists. They produce data, and the network's job is to carry that data correctly to the right application on another host.

A network reference model splits that job into layers, each with its own protocols and header. The OSI model has seven layers and the TCP/IP model is the one real networks run. Standard protocols from bodies such as the IETF, IEEE, ITU and ISO let devices from different vendors work together.

Applicationcreates dataTransportports, segmentNetworkIP, packetData linkMAC, framePhysicalbits

How it works

The OSI and TCP/IP models

OSI layerJobTCP/IP equivalent model layerPDU
7 ApplicationNetwork services to applicationsApplicationData
6 PresentationFormat, encryption, compressionApplicationData
5 SessionSet up and manage sessionsApplicationData
4 TransportEnd to end delivery, portsTransportSegment
3 NetworkLogical addressing and routingNetworkPacket
2 Data linkFraming, MAC addressing, error checkData linkFrame
1 PhysicalBits on the mediumPhysicalBit

The standard TCP/IP model has four layers: application, transport, internet and network access. The HCIA course mostly uses the five-layer TCP/IP equivalent model shown above, which splits network access into data link and physical.

Protocols at each layer

LayerExample protocols
ApplicationHTTP, HTTPS, FTP, TFTP, Telnet, SSH, SMTP, POP3, DNS, DHCP, SNMP
TransportTCP, UDP
NetworkIP, ICMP, IGMP, OSPF
Data linkEthernet, PPP, ARP is often placed between Layers 2 and 3
PhysicalTwisted pair, optical fiber, radio

Well-known ports

ProtocolTransportPort
FTPTCP20 (data), 21 (control)
SSH and STelnetTCP22
TelnetTCP23
SMTPTCP25
DNSUDP and TCP53
DHCPUDP67 (server), 68 (client)
TFTPUDP69
HTTPTCP80
SNMPUDP161 (agent), 162 (trap)
HTTPSTCP443

TCP and UDP

TCP is connection-oriented and reliable. It sets up a connection with a three-way handshake (SYN, SYN+ACK, ACK), numbers bytes with sequence numbers, acknowledges data, retransmits lost segments, and uses a sliding window for flow control. It closes with a four-way exchange of FIN and ACK.

UDP is connectionless with an 8-byte header and no acknowledgments. It suits DNS queries, TFTP, voice and video, where low delay matters more than retransmission. The basic TCP header is 20 bytes.

ClientSYNServerSYN and ACKClientACKConnection opendata flows

Encapsulation and decapsulation

Encapsulation down the stack: application data gets a TCP or UDP header to become a segment, an IP header to become a packet, an Ethernet header and FCS to become a frame, and is sent as bits on the physical medium. Each layer adds its header in front of the data from the layer above, and the data link layer also adds a trailer, the FCS. The receiver checks and strips each header in reverse order and passes the payload up.

Peer layers communicate logically: the receiver's transport layer reads the header the sender's transport layer wrote. Fields in each header, such as the Ethernet Type, the IP Protocol field and the TCP or UDP port, tell the receiver which upper protocol gets the payload.

Header fieldValue exampleMeaning
Ethernet Type0x0800Payload is IPv4
IP Protocol6Payload is TCP
IP Protocol17Payload is UDP
IP Protocol1Payload is ICMP
TCP destination port80Payload goes to the web service

A worked example

A user opens a web page on a server. The browser creates an HTTP request, TCP adds source port 49152 and destination port 80, IP adds the two IP addresses with Protocol 6, and Ethernet adds the MAC addresses, Type 0x0800 and the FCS.

At the server, Ethernet sees Type 0x0800 and passes up to IP. IP sees Protocol 6 and passes up to TCP, and TCP sees port 80 and passes the request to the web service.

How the exam asks about this

  • "What is the PDU at the network layer called?" → A packet.
  • "Which of the following protocols use UDP?" → DNS (queries), TFTP, DHCP and SNMP. FTP, Telnet, SSH and HTTP use TCP.
  • "Which layer of the OSI model is responsible for data encryption and format conversion?" → The presentation layer (Layer 6).

What to remember for the exam

  • OSI has seven layers, from physical (1) up to application (7).
  • PDUs: data, segment, packet, frame, bit.
  • TCP is reliable and connection-oriented with a three-way handshake. UDP is connectionless and has an 8-byte header.
  • Telnet is TCP 23, SSH is TCP 22, FTP is TCP 20 and 21, TFTP is UDP 69.
  • The Ethernet Type, IP Protocol and transport port fields tell the receiver which upper layer gets the data.
Watch out

TFTP and FTP are easy to swap. FTP uses TCP with ports 20 and 21 and needs a login, while TFTP uses UDP port 69 with no authentication.

Common mistakes

Calling every PDU a packet. The exam is precise: a segment at transport, a packet at network, a frame at data link.

Placing routing protocols at the transport layer. OSPF runs directly over IP with Protocol number 89 and belongs to the network layer.

Forgetting the trailer. Only the data link layer adds a trailer, the 4-byte FCS used to detect errors.

Check yourself

  • Which OSI layer handles logical addressing and path selection?

    The network layer (Layer 3), where IP and routing work.

  • How many messages does TCP use to set up a connection, and what are they?

    Three: SYN, SYN+ACK and ACK, known as the three-way handshake.

  • Which IP Protocol field value means the payload is UDP?

    The value 17. TCP is 6 and ICMP is 1.

Topic 2 of 3 in Data Communication Network Basics

Test yourself on Data Communication Network Basics

The full Huawei HCIA-Datacom H12-811 question bank has 600 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by Huawei. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.