Networking Protocols and Models
Protocols, Protocol Interaction, and Network Reference Models
1. What Is a Protocol?
A protocol is a set of agreed-upon rules that governs communication. In everyday life, protocols determine how people behave during a meeting, including:
When the meeting begins and ends
Who speaks and when
What topics are discussed
How participants respond to one another
Networking protocols perform the same general function for computers and network devices. They establish the rules that devices must follow so that communication is orderly and understandable.
A protocol is a set of rules that governs communication.
Without agreed-upon rules, devices could be connected physically but still be unable to communicate successfully. Two computers must agree on matters such as:
How data is formatted
How devices are identified
How messages are sent
How messages are received
How errors are detected
How the sender and receiver coordinate their communication
Protocols operate behind the scenes during nearly every computer and Internet activity. Users may simply browse a website, send an email, or download a file, but several protocols are coordinating those actions.
2. Fundamental Elements of Communication
Every communication process requires three basic elements:
Sender
The sender is the device or entity that originates and transmits a message.
Examples include:
A computer sending a request to a web server
A phone sending a message
A network device forwarding a data packet
Receiver
The receiver is the intended destination of the message.
Examples include:
A web server receiving a browser request
A computer receiving a file
An email server receiving an email message
Channel or Medium
The channel is the path or medium through which the message travels from sender to receiver.
The channel may be:
Wired, such as copper cable or fiber-optic cable
Wireless, such as Wi-Fi or radio communication
A combination of multiple physical and logical network segments
The presence of a sender, receiver, and communication channel is not enough by itself. The communicating devices must also use compatible protocols.
Two devices can communicate end-to-end only when they agree on the rules governing their communication.
3. Protocols Used for Different Network Activities
Different network activities require different protocols because each activity has different communication requirements. A protocol used for web browsing does not use exactly the same rules as a protocol used for email or file transfer.
Web Browsing
HTTP, or Hypertext Transfer Protocol, governs the transfer of web pages and related web resources.
HTTPS, or Hypertext Transfer Protocol Secure, performs web communication with security provided through encryption and authentication.
HTTPS is generally preferred for modern web communication because it helps protect data exchanged between a client and a web server.
Email communication uses several protocols, depending on the activity:
SMTP, or Simple Mail Transfer Protocol, is primarily used to send and relay email.
POP3, or Post Office Protocol version 3, is used to retrieve email from a mail server.
Other email-retrieval protocols, such as IMAP, may also be used, although the main emphasis here is on SMTP and POP3.
File Transfer
FTP, or File Transfer Protocol, governs the uploading and downloading of files.
FTP defines how files are requested, transmitted, and managed between a client and a server.
Remote Login
Remote-login protocols allow a user to access and control another device over a network.
Telnet provides remote terminal access but sends communication without adequate security. It is generally not recommended for modern network administration.
SSH, or Secure Shell, provides encrypted remote access and is the preferred protocol for secure device administration.
Name Resolution
DNS, or Domain Name System, translates human-readable domain names into IP addresses.
Users commonly enter names such as a website domain into a browser. Computers, however, use IP addresses to locate network destinations. DNS provides the translation between the domain name and the corresponding IP address.
4. Network Protocols
Network protocols define common rules for communication across networks. These rules may be implemented in:
Software, such as operating-system networking components and protocol stacks
Hardware, such as network interfaces, switches, routers, and other networking equipment
Both hardware and software
A computer cannot simply connect a cable or join a Wi-Fi network and immediately communicate without additional configuration and protocol support. Several processes must operate correctly, including:
Establishing a physical or wireless connection
Enabling networking protocols on the operating system
Obtaining or configuring an IP address
Communicating with local and remote devices
Forwarding data through switches and routers
Supporting services such as web browsing, file transfer, and email
Protocols are therefore implemented throughout the network environment, including:
End-user operating systems
Network operating systems
Network interface hardware
Switches
Routers
Servers
Applications and services
The TCP/IP protocol suite is an important example of a collection of networking protocols implemented across devices and operating systems.
5. Protocol Functions, Formats, and Rules
Each protocol has its own:
Function: The purpose the protocol serves
Format: The structure and arrangement of the information being exchanged
Rules: The procedures and behavior that communicating devices must follow
For example, a protocol may specify:
How a message begins and ends
How the sender and receiver are identified
How data is divided into smaller pieces
How the pieces are numbered
How the receiver confirms successful delivery
What happens when an error occurs
How quickly data should be transmitted
Different protocols have different rules because different forms of communication have different purposes. The rules for downloading a file are not identical to the rules for browsing a web page, sending email, or remotely administering a device.
Protocol rules vary according to the type of communication being performed.
6. Network Protocol Functions
When a device sends a message to another device across a network, multiple protocols and network mechanisms cooperate to deliver the message.
For example, a client may send a request to a server. The communication may involve the following functions.
Addressing
Devices require addresses so that the network knows:
Who sent the message
Where the message is going
Which device should receive the message
An IP address identifies the source and destination at the network or Internet layer.
Routing
Routers use routing tables to determine how to forward traffic toward its destination. A routing table contains information about reachable networks and possible paths.
When a router receives a packet, it examines the destination address and selects an appropriate next hop. The selected path may depend on factors such as:
Network destination
Available routes
Routing metrics
Administrative preferences
Network conditions
The packet may pass through several routers before reaching the destination.
Reliability
Some protocols provide mechanisms that help ensure data arrives correctly and completely. Reliability may involve:
Acknowledgments
Retransmission of lost data
Detection of missing information
Reordering of received data
Not every protocol provides the same degree of reliability. Some prioritize speed and efficiency instead.
Flow Control
Flow control regulates the rate at which data is transmitted. A sender should not send data faster than the receiver or the network can process it.
Flow control helps prevent:
Receiver buffer overflow
Excessive packet loss
Network congestion
Reduced communication performance
Sequencing
Large messages may be divided into smaller units before transmission. Sequencing assigns order information to these units so the receiver can:
Determine the correct order
Identify missing units
Reassemble the original message
Error Detection
Data may become damaged or corrupted while traveling through a network. Error-detection mechanisms allow a device to determine whether the received data matches what was transmitted.
If corruption is detected, the communication process may:
Discard the damaged data
Request retransmission
Notify the sender or receiving application
Apply another recovery mechanism
Application Interface
Protocols also define how network services interact with applications. An application-layer protocol allows software such as a web browser or email client to communicate with the appropriate network service.
7. Protocol Interaction
A single network activity usually requires multiple protocols. These protocols do not operate independently; they cooperate across different layers of the network architecture.
This cooperation is called protocol interaction.
For example, web browsing may involve:
HTTP or HTTPS to define web communication
TCP to provide transport services
IP to provide logical addressing and routing
Ethernet or Wi-Fi to provide local network access
These protocols perform different jobs, but they work together to complete one communication process.
Protocol interaction is the coordinated operation of multiple protocols that work at different layers to accomplish a communication task.
Relationship Among the Protocols
A simplified relationship can be expressed as:
HTTP or HTTPS relies on TCP or another transport protocol.
TCP relies on IP for logical addressing and delivery across interconnected networks.
IP relies on a lower-layer technology such as Ethernet or Wi-Fi to transmit data across an individual link.
If a required lower-layer protocol is unavailable, the higher-layer protocol cannot complete its task. For example:
Without Ethernet or Wi-Fi, IP cannot transmit data across the local link.
Without IP, TCP cannot deliver data between different networks.
Without TCP or another transport service, HTTP cannot reliably communicate with a web server.
The protocols operate together as part of one communication process rather than as completely separate events.
8. Protocol Suites
A protocol suite is a group of related protocols that work together to perform network communication.
A protocol suite is a group of interrelated protocols necessary to perform a communication function.
A protocol suite contains protocols assigned to different layers. Each protocol contributes a specific function, while the entire suite provides complete end-to-end communication.
The TCP/IP suite includes protocols such as:
HTTP and HTTPS
DNS
DHCP
FTP
TCP
UDP
IPv4
IPv6
ICMP
Ethernet-related protocols
Address Resolution Protocol
Protocol interaction and protocol suite describe closely related ideas:
Protocol interaction emphasizes how protocols cooperate.
Protocol suite emphasizes the collection or group of related protocols.
Protocols must be designed to work with other protocols. A protocol that cannot interact with the rest of the communication system would not be useful in a layered network architecture.
Upper-Layer and Lower-Layer Protocols
Protocols are often described according to their position in a network model:
Upper-layer protocols are closer to applications and user services. HTTP, DNS, and FTP are examples.
Lower-layer protocols support the delivery of data across networks and physical links. IP, Ethernet, and Wi-Fi are examples.
The distinction becomes clearer when the OSI and TCP/IP models are studied.
9. TCP/IP Model Layers and Common Protocols
The TCP/IP model groups networking functions into four broad layers.
Application Layer
The application layer provides network services directly to applications and users.
Common protocols include:
HTTP
HTTPS
DNS
DHCP
FTP
These protocols define how applications request and exchange network-based services.
Transport Layer
The transport layer provides communication between applications running on source and destination devices.
Common protocols include:
TCP, which is connection-oriented and provides reliable, ordered delivery
UDP, which is connectionless and prioritizes lower overhead and speed over guaranteed delivery
TCP and UDP provide different services because applications have different requirements.
Internet Layer
The Internet layer is responsible primarily for logical addressing and routing between networks.
Common protocols include:
IPv4
IPv6
ICMPv4
ICMPv6
This layer helps move packets from a source network to a destination network.
Network Access Layer
The network access layer combines functions associated with local network delivery and physical transmission.
Common technologies and protocols include:
Ethernet
Address Resolution Protocol
Wireless LAN technologies
This layer allows data to travel across a particular local network connection.
10. Reference Models
A reference model is a conceptual framework used to describe how network communication operates. It divides communication into layers, with each layer responsible for particular functions.
Reference models help network professionals:
Understand how data moves from source to destination
Organize complex networking functions
Design interoperable hardware and software
Develop protocols and applications
Troubleshoot network problems
Explain how different protocols relate to one another
The two major models discussed are:
The OSI model
The TCP/IP model
Both models describe the flow of data through layers, although they organize the functions differently.
11. The OSI Reference Model
The OSI model, or Open Systems Interconnection model, contains seven layers. It was developed to provide a detailed framework for explaining network communication.
The seven layers are:
Application
Presentation
Session
Transport
Network
Data Link
Physical
Application Layer
The application layer is the layer closest to the end user. When a user interacts with a browser, email client, or other network application, that activity is represented at the application layer.
This layer provides network services to software applications.
Presentation Layer
The presentation layer is concerned with how data is represented. Its responsibilities may include matters such as:
Data formatting
Translation between different data representations
Encryption and decryption
Compression and decompression
Session Layer
The session layer manages communication sessions between applications. It can help establish, maintain, coordinate, and terminate a communication session.
Transport Layer
The transport layer provides end-to-end delivery between applications. It may handle:
Segmentation
Reliability
Flow control
Sequencing
Error recovery
Network Layer
The network layer handles logical addressing and routing. IP addressing and routing are associated with this layer.
Data Link Layer
The data link layer manages communication across a local network link. It is associated with functions such as:
Framing
Hardware or MAC addressing
Local delivery
Error detection
Access to the transmission medium
Physical Layer
The physical layer transmits raw bits across the physical medium. It includes elements such as:
Cables
Connectors
Electrical or optical signals
Radio signals
Physical interfaces
The representation of data as binary bits
12. Data Names at Different OSI Layers
As data moves down the OSI model at the sender, it is given different names at different layers.
At the application, presentation, and session layers, it is generally called data.
At the transport layer, it is called a segment when TCP is used.
At the network layer, it is called a packet.
At the data link layer, it is called a frame.
At the physical layer, it is called bits.
The terminology reflects the additional information added at each layer.
Encapsulation
Encapsulation is the process by which data moves down through the layers and receives the information required for transmission.
The general process is:
An application creates data.
Transport-layer information is added, creating a segment.
Network-layer information is added, creating a packet.
Data-link information is added, creating a frame.
The frame is converted into bits at the physical layer.
The bits travel across the network medium.
Each layer adds its own control information, usually in the form of headers and, at some layers, trailers.
Encapsulation packages data with the information required for delivery across the network.
De-encapsulation
At the destination, the reverse process occurs. The receiving device moves the information upward through the layers:
Bits are received at the physical layer.
The data-link layer processes the frame.
The network layer processes the packet.
The transport layer processes the segment.
Upper layers process the data until it reaches the receiving application.
This reverse process is called de-encapsulation. It removes the layer-specific information and reconstructs the original application data in a form the receiving application can understand.
Computers ultimately transmit information as binary values, represented by zeros and ones. Encapsulation prepares the information for binary transmission, while de-encapsulation restores it for use by the receiving application.
13. TCP/IP Model Compared with the OSI Model
The TCP/IP model is a modification and practical implementation of the layered approach represented by the OSI model. Modern Internet communication is built primarily on the TCP/IP model.
The TCP/IP model commonly uses four layers:
Application
Transport
Internet
Network Access
Layer Mapping
The TCP/IP application layer combines the functions of three OSI layers:
OSI application
OSI presentation
OSI session
The TCP/IP transport layer corresponds mainly to the OSI transport layer.
The TCP/IP Internet layer corresponds mainly to the OSI network layer.
The TCP/IP network access layer combines the functions of:
OSI data link
OSI physical
Main Similarity
Both models:
Divide network communication into layers
Describe how data flows from source to destination
Assign particular responsibilities to different layers
Help explain protocol operation
Support the design and troubleshooting of networks
Main Difference
The OSI model is more detailed, with seven separate layers. The TCP/IP model combines several OSI layers into broader groups.
For example:
OSI separates application, presentation, and session functions.
TCP/IP places those functions within its application layer.
OSI separates data-link and physical functions.
TCP/IP combines them within its network access layer.
Network professionals often use the OSI model for detailed analysis because it separates functions that might otherwise be mixed together. The TCP/IP model is used to describe the practical protocol architecture underlying modern networks and the Internet.
14. Why Layered Models Matter
Layered models help explain complex communication by dividing it into manageable functions. Each layer performs a specific task and interacts with the layers immediately above and below it.
This approach makes it easier to:
Design network technologies
Develop network applications
Replace one technology without redesigning the entire system
Identify the location of a failure
Explain the responsibilities of protocols
Ensure that products from different vendors can work together
Layering also provides a common language for network professionals. Instead of describing a problem vaguely, a technician can identify the relevant layer.
For example:
A damaged cable is likely a physical-layer problem.
A problem with local framing or MAC addressing may involve the data-link layer.
A routing or IP-addressing problem may involve the network layer.
A reliability or sequencing problem may involve the transport layer.
A browser or network-service problem may involve the application layer.
15. Using the OSI Model for Troubleshooting
Troubleshooting is the process of identifying and resolving a problem. The OSI model provides a systematic way to locate network faults.
A network engineer can test the network layer by layer rather than treating the entire network as one undifferentiated system.
Layer 1: Physical Layer
The physical layer should be checked first because it is the foundation of communication. Possible problems include:
Damaged cables
Loose connectors
Faulty network interfaces
Incorrect wireless signal conditions
Loss of electrical, optical, or radio transmission
If the physical layer is not functioning, higher layers cannot operate successfully.
Layer 2: Data Link Layer
Possible data-link problems include:
Incorrect MAC-address behavior
Faulty switching
Frame errors
VLAN or local-link issues
Problems accessing the local transmission medium
Layer 3: Network Layer
Possible network-layer problems include:
Incorrect IP addresses
Incorrect subnet configuration
Missing routes
Faulty routing decisions
Inability to reach a remote network
Layer 4: Transport Layer
Possible transport-layer problems include:
Failed connections
Port-related issues
Incorrect reliability behavior
Flow-control problems
Transport traffic being blocked
Application Layer
Possible application-layer problems include:
Incorrect application configuration
DNS failures
Web-service failures
Email-service problems
Server or application software errors
The model helps distinguish network problems from application or programming problems. A network engineer can verify that the physical, data-link, network, and transport functions are working before determining that an application or software team must investigate further.
16. Using Layered Models When Building Networks
Layered models are also useful during network design and installation. A network can be developed from the lower layers upward:
Verify the physical infrastructure, including cables, connectors, and network interfaces.
Configure local data-link communication, such as switching and framing.
Configure IP addressing and routing.
Verify transport-layer connectivity and service availability.
Test the applications that use the network.
This approach reflects the dependency between layers. Higher-layer services cannot work correctly when lower-layer foundations are defective.
A failure at a lower layer prevents the successful operation of the layers above it.
The physical layer is often compared to the foundation of a building. If the foundation is defective, the upper parts of the structure will eventually experience problems regardless of how well they are designed.
17. MAC Addresses and IP Addresses in the Layered Model
The OSI model helps distinguish different types of addressing.
MAC Address
A MAC address is associated with the data-link layer. It identifies a network interface for communication on a local network.
A MAC address is useful for local delivery between devices connected to the same network segment.
IP Address
An IP address is associated with the network layer. It identifies a device or interface logically and supports communication across interconnected networks.
A useful conceptual comparison is:
An IP address identifies a broader network location, similar to identifying a street or compound.
A MAC address identifies a more specific local interface, similar to identifying a particular room within that location.
Both forms of addressing are important, but they serve different purposes at different layers.
18. Standardization and Interoperability
In the early development of networking, manufacturers often created systems that worked only with their own products. A computer or network device from one vendor might not communicate correctly with equipment from another vendor.
This created an interoperability problem.
Interoperability is the ability of products and systems from different vendors to communicate and work together.
Standardization addressed this problem by defining common rules and technical requirements that manufacturers and developers could follow.
A standard may define:
How devices communicate
How data is formatted
How network hardware operates
How cables and interfaces are constructed
How protocols exchange information
How devices from different manufacturers connect
Because vendors follow common standards, a network can contain equipment from multiple manufacturers while still supporting communication.
For example, a network may include:
A Cisco switch
A Huawei device
A Juniper router
Computers from different manufacturers
Tablets and phones from different manufacturers
These devices can communicate because they follow shared standards rather than requiring every device to come from the same vendor.
Benefits of Open Standards
Interoperability
Open standards allow different devices and systems to communicate without vendor-specific restrictions.
Competition
When vendors follow common standards, customers can compare products from different manufacturers. Vendors must compete through factors such as:
Performance
Reliability
Security
Features
Cost
Ease of management
Innovation
Vendors can create improved products while still maintaining compatibility with existing systems. They do not need to invent an entirely isolated communication system.
Reduced Vendor Dependence
Open standards reduce barriers and restrictions. An organization is not forced to purchase every component from one manufacturer simply to maintain connectivity.
19. Standards Organizations
Standards organizations develop and publish the technical rules that support interoperability.
Examples include:
IEEE, the Institute of Electrical and Electronics Engineers, which develops standards related to networking, communications, cabling, and network hardware.
IETF, the Internet Engineering Task Force, which develops and maintains many Internet standards and protocols.
These organizations help establish common technical requirements that vendors and engineers can follow. Their work supports the widespread interoperability that makes modern networks and the Internet possible.
20. Reference Models and Standardization
Reference models contribute to standardization by giving engineers and manufacturers a common description of network functions.
When the industry agrees that communication can be divided into defined layers, it becomes easier to determine:
Which function belongs to which layer
How protocols should interact
Where a device fits into the communication process
How products should exchange data
How to test compatibility
How to troubleshoot failures
The OSI model is especially useful as a detailed reference model because it separates network functions into seven layers. The TCP/IP model is more closely associated with the practical architecture of today’s Internet.
Both models help establish a common language for discussing networking and support the development of interoperable products.
21. Overall Communication Flow
A complete communication process can be summarized as follows:
A user or application creates data.
An application-layer protocol defines the communication.
A transport-layer protocol provides an appropriate end-to-end service.
The Internet or network layer adds logical addressing and determines how the data should travel.
The data-link layer prepares the information for local delivery.
The physical layer transmits the information as bits.
Intermediate network devices examine the information relevant to their functions and forward it toward the destination.
The destination device receives the bits.
The destination processes the information upward through the layers.
De-encapsulation removes the layer-specific information.
The receiving application receives the original data.
This process depends on the interaction of multiple protocols, each following its own function, format, and rules. The result is end-to-end communication between applications running on devices that may be located anywhere in the world.

Ask anything
We've read this whole study set, so questions about it get the best answers.