0% found this document useful (0 votes)
10 views

CSC 303

The document outlines the OSI and TCP/IP models, detailing their layers and functions in network communication. The OSI model consists of seven layers, each responsible for specific tasks, while the TCP/IP model has four layers that simplify communication processes. Key concepts such as encapsulation and decapsulation are explained, illustrating how data is prepared for transmission and received across networks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

CSC 303

The document outlines the OSI and TCP/IP models, detailing their layers and functions in network communication. The OSI model consists of seven layers, each responsible for specific tasks, while the TCP/IP model has four layers that simplify communication processes. Key concepts such as encapsulation and decapsulation are explained, illustrating how data is prepared for transmission and received across networks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

The Seven Layers of the OSI Model:

1. Layer 1: Physical Layer


Deals with the physical connection between devices.

 Transmits raw bit streams over a physical medium (cables, fiber optics,
wireless).
 Examples: Ethernet cables, USB, and radio frequencies.
2. Layer 2: Data Link Layer
 Provides node-to-node data transfer and error detection/correction.

 Responsible for framing, addressing (MAC addresses), and flow control.


 Examples: Ethernet, Wi-Fi (IEEE 802.11), and PPP (Point-to-Point
Protocol).
3. Layer 3: Network Layer
 Manages packet forwarding and routing between different networks.

 Responsible for logical addressing (IP addresses) and routing decisions.


 Examples: IP (Internet Protocol), ICMP (Internet Control Message
Protocol).
4. Layer 4: Transport Layer
 Ensures complete data transfer and error recovery.

 Provides end-to-end communication, flow control, and segmentation of


data.
 Examples: TCP (Transmission Control Protocol), UDP (User Datagram
Protocol).
5. Layer 5: Session Layer
 Manages sessions and controls the dialogue between applications.

 Responsible for establishing, maintaining, and terminating connections.


 Examples: NetBIOS, RPC (Remote Procedure Call).
6. Layer 6: Presentation Layer
 Translates data formats and handles data encryption/decryption.
 Ensures that data is in a usable format for the application layer.
 Examples: JPEG, ASCII, SSL/TLS (for encryption).
7. Layer 7: Application Layer
 Interfaces directly with end-user applications and provides network
services.
 Responsible for application-level protocols and user interactions.
 Examples: HTTP (Hypertext Transfer Protocol), FTP (File Transfer
Protocol), SMTP (Simple Mail Transfer Protocol).

Importance of the OSI Model:


 Troubleshooting: The OSI model helps network engineers and
technicians diagnose and troubleshoot network issues by isolating
problems to specific layers.
 Protocol Development: It provides a framework for developing new
networking protocols and technologies, ensuring they fit within the
existing architecture.
 Education: The OSI model serves as a foundational concept in
networking education, helping students and professionals understand
how different networking components interact.

In summary, the OSI model is a vital tool for understanding and


implementing network communication, providing a structured approach
to networking that promotes interoperability and standardization.

The TCP/IP model (Transmission Control Protocol/Internet Protocol) is


a framework used to enable communication between devices over a
network. It is the foundation of the modern internet and is simpler than
the OSI model, consisting of four layers. Each layer is responsible for
specific networking tasks, and the layers work together to deliver data
reliably.

1. Overview of the TCP/IP Model

The TCP/IP model consists of four layers, each with distinct


responsibilities:

1. Application Layer
2. Transport Layer
3. Internet Layer
4. Network Access Layer

It is designed to ensure reliable communication between devices,


handling everything from application-level protocols (e.g., HTTP, FTP)
to the physical delivery of data packets.

2. Layers of the TCP/IP Model

1. Application Layer

 Function: Handles high-level protocols, user interfaces, and data


formats.
 Responsibilities:
o Provides services directly to end-users and applications.
o Supports protocols like HTTP (web browsing), FTP (file
transfer), SMTP (email), and DNS (domain name resolution).
 Example:
o A user opens a web browser and enters a URL (handled by
HTTP).
2. Transport Layer

 Function: Provides end-to-end communication, ensuring data is


transmitted reliably.
 Responsibilities:
o Breaks data into smaller packets for transmission.
o Ensures error-free delivery of packets using protocols like:
 TCP (Transmission Control Protocol): Reliable,
connection-oriented protocol for guaranteed delivery.
 UDP (User Datagram Protocol): Faster,
connectionless protocol, used where speed is prioritized
over reliability (e.g., video streaming).
 Example:
o TCP ensures all parts of a file sent via email are delivered
and reassembled correctly.

3.Network Layer

 Function: Handles logical addressing and routing of data packets


between devices.
 Responsibilities:
o Manages IP addressing and determines the best path for
packets to travel across networks.
o Includes protocols like:
 IP (Internet Protocol): Provides logical addressing
(IPv4, IPv6).
 ICMP (Internet Control Message Protocol): Handles
error messages and diagnostics (e.g., ping).
 ARP (Address Resolution Protocol): Resolves IP
addresses to MAC addresses.
 Example:
o A packet is routed from a user's device to a web server using
the shortest path.
4. Data link Layer

 Function: Deals with the physical transmission of data over the


network.
 Responsibilities:
o Encapsulates data into frames for transmission over physical
media (e.g., cables, Wi-Fi).
o Handles MAC addressing and error detection at the data link
level.
o Defines hardware standards (e.g., Ethernet, Wi-Fi).
 Example:
o Converts digital data into electrical signals for transmission
over a copper cable.

3. Comparison to OSI Model

TCP/IP Layer Corresponding OSI Layers


Application Application, Presentation, Session
Transport Transport
Network Network
Data link Data Link, Physical

4. Key Features of the TCP/IP Model

1. End-to-End Communication: Ensures devices on different


networks can communicate reliably.
2. Scalability: Designed to support large, scalable networks (e.g., the
internet).
3. Interoperability
Encapsulation and decapsulation are key concepts in the TCP/IP model,
which is used to structure network communication. These processes
occur as data travels through the layers of the model during transmission
and reception.

Encapsulation (Sender Side)

Encapsulation happens when data is prepared to be sent over the


network. It involves wrapping the data with protocol-specific headers
(and sometimes footers) as it moves down the layers of the TCP/IP
model.

Here’s how it happens:

1. Application Layer:
o The data is created by the application (e.g., a message, file, or
request).
o This data is passed to the Transport Layer.
2. Transport Layer:
o The Transport Layer (e.g., TCP or UDP) adds a header to the
data. This header contains information like the source and
destination port numbers, sequence numbers, and error-
checking codes.
o The resulting unit is called a segment (TCP) or datagram
(UDP).
3. Network Layer:
o The Network Layer (IP) adds its own header, which includes
the source and destination IP addresses.
o The resulting unit is called a packet.
4. Data Link Layer:
oThe Data Link Layer (e.g., Ethernet or Wi-Fi) encapsulates
the packet into a frame by adding a header and possibly a
trailer.
o The header includes the source and destination MAC
addresses, while the trailer may include error-detection data
(e.g., CRC).
5. Physical Layer:
o Finally, the frame is converted into bits (0s and 1s) and
transmitted as electrical signals, light pulses, or radio waves
over the physical medium.

Decapsulation (Receiver Side)

Decapsulation is the reverse process that occurs at the receiving end.


The additional headers (and trailer) are removed layer by layer as the
data travels up the TCP/IP model.

Here’s how it happens:

1. Physical Layer:
o The Physical Layer receives the raw bits and converts them
into a frame. This frame is passed to the Data Link Layer.
2. Data Link Layer:
o The Data Link Layer verifies the frame (using the trailer) and
removes the Data Link Layer header and trailer.
o The remaining packet is passed to the Network Layer.
3. Network Layer:
o The Network Layer checks the IP header (validates the
destination IP) and removes it.

The remaining segment/datagram is passed to the Transport Encapsulation


and decapsulation are key concepts in the TCP/IP model, which is used to structure network
communication. These processes occur as data travels through the layers of the model during
transmission and reception.
Encapsulation (Sender Side)

Encapsulation happens when data is prepared to be sent over the network. It involves wrapping
the data with protocol-specific headers (and sometimes footers) as it moves down the layers of
the TCP/IP model.

Here’s how it happens:

1. Application Layer:
o The data is created by the application (e.g., a message, file, or request).
o This data is passed to the Transport Layer.
2. Transport Layer:
o The Transport Layer (e.g., TCP or UDP) adds a header to the data. This header
contains information like the source and destination port numbers, sequence
numbers, and error-checking codes.
o The resulting unit is called a segment (TCP) or datagram (UDP).
3. Network Layer:
o The Network Layer (IP) adds its own header, which includes the source and
destination IP addresses.
o The resulting unit is called a packet.
4. Data Link Layer:
o The Data Link Layer (e.g., Ethernet or Wi-Fi) encapsulates the packet into a
frame by adding a header and possibly a trailer.
o The header includes the source and destination MAC addresses, while the trailer
may include error-detection data (e.g., CRC).
5. Physical Layer:
o Finally, the frame is converted into bits (0s and 1s) and transmitted as electrical
signals, light pulses, or radio waves over the physical medium.

Decapsulation (Receiver Side)

Decapsulation is the reverse process that occurs at the receiving end. The additional headers (and
trailer) are removed layer by layer as the data travels up the TCP/IP model.

Here’s how it happens:

1. Physical Layer:
o The Physical Layer receives the raw bits and converts them into a frame. This
frame is passed to the Data Link Layer.
2. Data Link Layer:
o The Data Link Layer verifies the frame (using the trailer) and removes the Data
Link Layer header and trailer.
o The remaining packet is passed to the Network Layer.
3. Network Layer:
o The Network Layer checks the IP header (validates the destination IP) and
removes it.
o The remaining segment/datagram is passed to the Transport Layer.
4. Transport Layer:
o The Transport Layer checks the header (e.g., port numbers and sequence
numbers), removes it, and passes the payload (data) to the Application Layer.
5. Application Layer:
o The Application Layer processes the data, making it available to the user or
application.

Summary of Units at Each Layer

 Application Layer: Data


 Transport Layer: Segment (TCP) / Datagram (UDP)
 Network Layer: Packet
 Data Link Layer: Frame
 Physical Layer: Bits

Visual Representation
scss
CopyEdit
Encapsulation (Sender) Decapsulation (Receiver)
--------------------- ------------------------
Application Layer -> [Data] <- Application Layer
Transport Layer -> [Header + Data] <- Transport Layer
Network Layer -> [Header + Segment] <- Network Layer
Data Link Layer -> [Header + Packet] <- Data Link Layer
Physical Layer -> [Bits] <- Physical Layer

Encapsulation and decapsulation ensure the data flows smoothly between devices, enabling
reliable communication across a network.

4. Transport Layer:
o The Transport Layer checks the header (e.g., port numbers
and sequence numbers), removes it, and passes the payload
(data) to the Application Layer.
5. Application Layer:
o The Application Layer processes the data, making it available
to the user or application.
Summary of Units at Each Layer

 Application Layer: Data


 Transport Layer: Segment (TCP) / Datagram (UDP)
 Network Layer: Packet
 Data Link Layer: Frame
 Physical Layer: Bits

Visual Representation

scss
CopyEdit
Encapsulation (Sender) Decapsulation (Receiver)
--------------------- ------------------------
Application Layer -> [Data] <- Application Layer
Transport Layer -> [Header + Data] <- Transport Layer
Network Layer -> [Header + Segment] <- Network Layer
Data Link Layer -> [Header + Packet] <- Data Link Layer
Physical Layer -> [Bits] <- Physical Layer

Encapsulation and decapsulation ensure the data flows smoothly


between devices, enabling reliable communication across a network.

You might also like