CSE306
CSE306
Contents ⭐
Introduction 1.
Network
Software
Architecture
and its Layers
and Protocols
Network Software Architecture
Framework that defines how software components interact over a network. Layered Network
Model
Network software architecture is generally structured in a layered model, where each layer
performs a specific function.
The most commonly referenced model is the OSI (Open Systems Interconnection) Model and the
TCP/IP Model.
OSI Model (7 Layers)
The OSI model consists of 7 layers. Each layer provides services to the layer above
it and receives services from the layer below it.
Physical Layer, Data Link Layer, Network Layer, Transport Layer, Session Layer,
Presentation Layer, Application Layer. TCP/IP Model (4 Layers)
The TCP/IP model is a simplified model primarily used in real-world networking and
the internet. It has fewer layers than the OSI model.
Network Interface Layer (Link Layer), Internet Layer, Transport
Layer, Application Layer
Protocols
Set of rules governing data communication.
Importance:
Ensure data integrity and efficient communication.
Enable interoperability among different systems and devices.
Ethernet: Standard for wired LAN communication.
PPP: Used for direct communication between two network nodes.
IP (Internet Protocol): The primary protocol for delivering packets across network boundaries.
ICMP (Internet Control Message Protocol): Used for diagnostics (like ping). ARP:
Translates IP addresses to MAC addresses for devices on the same local network.
TCP (Transmission Control Protocol): Reliable, connection-oriented protocol ensuring data
delivery.
UDP (User Datagram Protocol): Connectionless protocol used for fast data transfer without error-
checking.
HTTP (Hypertext Transfer Protocol): Used for web browsing.
HTTPS (Secure HTTP): Encrypts HTTP traffic to ensure secure communication.
FTP (File Transfer Protocol): Used for file transfers.
SMTP (Simple Mail Transfer Protocol): Used for sending emails.
DNS (Domain Name System): Resolves domain names to IP addresses.
2. Network Hardware Architecture and its topologies and device like HUB, Switch and
Routers
Network Hardware Architecture
⭐
NETWORK
MODELS 1. Protocol Layering Definition
Protocol Layering: A method of organizing network communication into layers, where each layer
serves a specific purpose and interacts with the layers directly above and below it.
Key Concepts
Encapsulation: Each layer adds its own header (and sometimes a footer) to the data received from
the layer above, forming a packet.
Abstraction: Higher layers do not need to understand the details of the lower layers, promoting
modularity.
Interoperability: Allows different types of networks to communicate with each other using standard
protocols.
Modularity: Each layer performs a specific function in the communication process.
Advantages
Simplifies Networking: Breaking down the networking process makes it easier to manage and
understand.
Troubleshooting: Easier to diagnose issues within specific layers without affecting the entire
system.
Flexibility: New protocols can be added without affecting existing layers.
2. TCP/IP Protocol Suite (Transmission Control Protocol/Internet Protocol Model) Overview
Definition: A set of protocols used for the Internet and similar networks, known for its robust and
flexible design. Layers:
Application Layer:
Protocols: HTTP, FTP, SMTP, DNS.
Functions: User interfaces, data presentation, and application services.
Transport Layer:
Protocols: TCP (connection-oriented) and UDP (connectionless).
Functions: Provides reliable (TCP) or fast (UDP) data transfer; ensures error
recovery and flow control.
Internet Layer:
Protocol: IP (Internet Protocol).
Functions: Routing of packets across networks; addressing (IPv4, IPv6).
Link Layer:
Protocols: Ethernet, Wi-Fi, PPP.
Functions: Physical addressing, framing, and managing access to the physical
medium.
How the TCP/IP model Works:
Application Layer:
The user interacts with an application (e.g., a web browser) to send or receive data.
Example: You request a webpage from a web server.
Transport Layer:
The data from the application is broken into segments, and TCP or UDP ensures
reliable or fast transmission.
Example: TCP ensures that the webpage data is sent in order and without errors.
Internet Layer:
The segments are packed into IP packets, and the Internet Layer determines how to
route these packets to the destination.
Example: The IP protocol determines the best route for the packets.
Link Layer:
The packets are formatted into frames and transmitted over the physical network
(e.g., Ethernet or Wi-Fi).
Example: The data is sent over the local network to the next device (router or
switch).
At the receiving end, the reverse process occurs, with each layer processing the data and passing
it up to the next layer until the original data is delivered to the application.
Characteristics
Scalability: Can handle a vast number of devices and networks.
Interoperability: Supports a wide range of hardware and software configurations.
Robustness: Handles errors and retransmissions efficiently.
3. OSI Model (Open Systems Interconnection Model)
Overview
Definition: A conceptual framework that standardizes the functions of a telecommunication or
computing system into seven layers.
Layers of the OSI Model
Application Layer:
Functions: End-user services and application protocols.
Examples: HTTP, FTP, SMTP.
Presentation Layer:
Functions: Data format translation, encryption, and compression.
Responsibilities: Ensures that data is in a usable format.
Session Layer:
Functions: Manages sessions between applications.
Responsibilities: Establishes, maintains, and terminates communication
sessions. Transport Layer:
Functions: Reliable (TCP) or unreliable (UDP) data transfer, segmentation, and flow
control.
Responsibilities: Ensures complete data transfer and error recovery.
Network Layer:
Functions: Routing and forwarding of packets.
Responsibilities: Logical addressing (IP), packet forwarding, and path
determination. Data Link Layer:
Functions: Node-to-node data transfer, framing, error detection/correction.
Examples: Ethernet, Wi-Fi, PPP.
Physical Layer:
Functions: Transmission of raw bits over a physical medium.
Responsibilities: Deals with the hardware aspects of networking, such as cables
and switches.
How the OSI Model Works
When data is transmitted over a network, it passes through the OSI model's layers in the following
way:
Application Layer: The application generates data and prepares it for transmission.
Presentation Layer: The data is formatted and prepared for the network.
Session Layer: A session is established between the communicating devices. Transport
Layer: The data is segmented into smaller packets, ensuring reliable transmission.
Network Layer: The packets are addressed with IP addresses and routed to the destination.
Data Link Layer: The packets are encapsulated into frames for local transmission.
Physical Layer: The frames are converted into signals (electrical or optical) and sent over the
physical medium.
At the receiving end, the process is reversed (decapsulation) as each layer extracts the relevant
information until the original data is delivered to the application.
Characteristics
Standardization: Provides a universal set of protocols and guidelines for network communication.
Interoperability: Facilitates communication between diverse systems and networks.
Modularity: Each layer can evolve independently, allowing for updates and improvements.
Comparison: TCP/IP vs. OSI Model
Number of Layers: TCP/IP has 4 layers, while OSI has 7 layers.
Development: TCP/IP was developed based on practical implementation, while OSI was
developed as a theoretical framework.
Flexibility: TCP/IP is more flexible and widely used in practice, whereas OSI is more
comprehensive and ideal for teaching purposes.