7. Topic 7(COLON) Networks and the Internet

Lesson 7.2: Protocols And The Layered Model

Official syllabus section covering Lesson 7.2: Protocols and the Layered Model within Topic 7: Networks and the Internet: The need for protocols and the idea of layering (TCP/IP and OSI models at an introductory level).; Packet switching: how data is divided into packets and reassembled..

Lesson 7.2: Protocols and the Layered Model

Introduction

In today's interconnected world, understanding how computers communicate is crucial. This lesson explores the essential role of protocols and the concept of layering in network communication. By the end of this lesson, you (students) will be able to:

  • Explain the need for protocols and the idea of layering, focusing on the TCP/IP and OSI models.
  • Describe how packet switching enables data to be divided into packets and reassembled at the destination.
  • Identify key protocols such as TCP/IP, HTTP, HTTPS, FTP, and SMTP, along with their purposes.
  • Understand IP addressing, MAC addresses, and the role of DNS in network communication.
  • Discuss why protocols and layering are necessary for effective networked communication.

Let’s dive deep into the foundational aspects of networking and how they facilitate seamless communication.

What Are Protocols?

Protocols are agreed-upon rules that dictate how data is transmitted across a network. Just as you follow certain rules to communicate effectively with your peers, computers also need protocols to exchange information reliably. Without protocols, the communication process would be chaotic and prone to errors.

The Need for Protocols

  1. Standardization: Different manufacturers create various devices that need to work together. Protocols standardize how data is transmitted and formatted.
  2. Interoperability: Protocols enable different devices and applications to communicate, regardless of the manufacturer or operating system deployed.
  3. Error Handling: Protocols provide methods for detecting and correcting errors that may occur during data transmission.

Consider the following scenario: When you send a message via an instant messaging app, the app follows a specific protocol to ensure your message is sent correctly, is received by the intended recipient, and that the other person can read it seamlessly. Without these protocols, your device would not understand how to send or receive messages from different devices.

The Layered Model of Networking

Layering is a design principle that helps break down the complexity of networking into smaller, manageable sub-units. The most commonly referenced models in networking are the OSI (Open Systems Interconnection) model and the TCP/IP (Transmission Control Protocol/Internet Protocol) model.

OSI Model

The OSI model consists of seven layers, each serving a specific function:

  1. Physical Layer: Concerned with the transmission of raw data over a physical medium.
  2. Data Link Layer: Ensures error-free node-to-node communication and frames the data for physical layer transmission.
  3. Network Layer: Manages data routing and forwarding through the network.
  4. Transport Layer: Ensures complete data transfer, managing end-to-end data flow and error correction.
  5. Session Layer: Manages sessions between applications.
  6. Presentation Layer: Formats data for the application layer, ensuring compatibility between different data formats.
  7. Application Layer: Provides network services to the user's software applications.

Example of the OSI Model

Imagine sending an email:

  • The application layer composes your email.
  • The presentation layer encrypts it.
  • The session layer opens a connection with your email server.
  • The transport layer segments the email into smaller packets.
  • The network layer determines the path these packets will take across the network.
  • The data link layer ensures that each packet gets to the right device on your local network.

TCP/IP Model

The TCP/IP model, which is the foundation of the Internet, has four layers:

  1. Link Layer: Similar to the data link and physical layers of OSI, it defines protocols used to transfer data between adjacent network nodes.
  2. Internet Layer: Corresponds to the OSI network layer and is responsible for logical addressing and routing.
  3. Transport Layer: Similar to OSI's transport layer, it provides end-to-end communication services.
  4. Application Layer: Combines functions performed by the OSI's application, presentation, and session layers.

Comparison of OSI and TCP/IP Models

OSI ModelTCP/IP Model
Application LayerApplication Layer
Presentation LayerApplication Layer
Session LayerApplication Layer
Transport LayerTransport Layer
Network LayerInternet Layer
Data Link LayerLink Layer
Physical LayerLink Layer

As shown in the table, the TCP/IP model condenses several OSI layers into one, reflecting a pragmatic approach developed through the real-world implementation of the protocols.

Packet Switching

Packet switching is a method used to send data over a network. Large files are broken down into smaller packets, each of which travels independently to the destination. To understand packet switching better, consider how mail is delivered:

  1. Segmentation: Just like breaking a long letter into several postcards to send through multiple routes, data is divided into manageable packets.
  2. Routing: Each packet can take different paths to reach the destination, depending on current network conditions.
  3. Reassembly: Once all packets arrive at their destination, they are reassembled in the correct order.

Example of Packet Switching

Imagine you are downloading a video:

  • The file (video) is divided into numerous packets.
  • Each packet may take a different route across the Internet (different routers and switches).
  • Upon arriving, your device receives all the packets and reconstructs the video, allowing you to watch it seamlessly.

This method of sending data is efficient because if one route is congested or fails, packets can be redirected without having to resend the entire file.

Key Protocols

Several important protocols form the backbone of Internet communication:

TCP/IP

Transmission Control Protocol/Internet Protocol (TCP/IP) governs how data is sent and received. TCP ensures reliable delivery, while IP is responsible for addressing and routing the data packets.

Working Example of TCP/IP

When you access a website, TCP divides the request into packets. It also ensures these packets reach the server. If some packets are lost, TCP requests their retransmission.

HTTP and HTTPS

HyperText Transfer Protocol (HTTP) is the foundation of data communication on the web. Its secure version, HTTPS (HTTP Secure), uses encryption for secure data transmission.

Working Example of HTTPS

When you access your bank's website, HTTPS encrypts your login information, ensuring that third parties cannot intercept your credentials.

FTP and SMTP

File Transfer Protocol (FTP) is used for transferring files between computers. Simple Mail Transfer Protocol (SMTP) is used for sending emails.

Working Example of SMTP

When you send an email, SMTP takes care of sending it from your email client to your mail server, ensuring the email reaches the recipient’s server.

IP Addressing and DNS

IP addresses are unique identifiers assigned to each device on a network. They can be of two versions: IPv4, which uses a 32-bit address (e.g., 192.168.1.1), and IPv6, which uses a 128-bit address (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334).

Role of DNS

The Domain Name System (DNS) translates human-friendly domain names (like www.example.com) into IP addresses. This process allows users to access websites without memorizing numerical addresses.

Why Are Protocols and Layering Necessary?

The complexity of networking demands protocols and the layered model. Key reasons include:

  • Efficiency: Layering allows for easier troubleshooting and management of networks.
  • Interoperability: Protocols ensure that different systems and devices can work together smoothly.
  • Scalability: Layering and protocols facilitate the expansion of networks without affecting existing operations.

In summary, both protocols and the layered approach are integral to ensuring reliable, efficient, and secure communication in a networked environment.

Conclusion

In this lesson, we explored the significance of protocols and the layered model in network communication. You learned about the OSI and TCP/IP models, the role of packet switching, key networking protocols, and the importance of IP addressing and DNS. Understanding these concepts forms the foundation for engaging with more complex networking topics in the future.

Study Notes

  • Protocols are standard rules for data transmission.
  • The OSI model has seven layers, while the TCP/IP model has four layers.
  • Packet switching divides data into packets and allows them to travel independently.
  • TCP ensures reliable delivery of data packets, while IP routes them.
  • HTTP facilitates web communication, and FTP is used for file transfers.
  • IP addresses and DNS are essential for navigating the Internet.

Practice Quiz

5 questions to test your understanding