Explain OSI Reference Model with diagram
OSI (Open System Interconnection) Reference Model is a 7-layer architecture used for communication in computer networks. It was developed by International Organization for Standardization.
Each layer has its own work and passes data to the next layer.
Diagram of OSI Model:
+-------------------+
| 7. Application |
+-------------------+
| 6. Presentation |
+-------------------+
| 5. Session |
+-------------------+
| 4. Transport |
+-------------------+
| 3. Network |
+-------------------+
| 2. Data Link |
+-------------------+
| 1. Physical |
+-------------------+
Explanation of Layers:
1) Physical Layer
It is the lowest layer of the OSI model.
It is responsible for transmitting raw bits (0 and 1) from one device to another.
It defines the physical connection between devices such as cables, voltage, signals, and connectors.
It decides how bits are placed on the transmission media.
Example: Hub, cables, repeater
2) Data Link Layer
This layer provides error-free transfer of data.
It converts raw bits into frames.
It controls the flow of data and detects errors during transmission.
It also handles MAC addressing.
Example: Switch, Bridge
3) Network Layer
This layer decides the best path for data to travel.
It handles logical addressing using IP addresses.
It performs routing and forwarding of packets.
It helps data move from source to destination across different networks.
Example: Router, IP protocol
4) Transport Layer
It ensures complete and reliable delivery of data.
It divides data into segments and reassembles it at the destination.
It provides flow control and error recovery.
It makes sure data reaches in correct order.
Example: TCP, UDP
5) Session Layer
It creates, manages, and ends communication sessions between devices.
It keeps connection active during data exchange.
It controls dialog between sender and receiver.
It also handles synchronization.
Example: Login session, video call session
6) Presentation Layer
It works as a translator between application and network.
It converts data into readable format.
It handles data encryption and decryption for security.
It also performs data compression to reduce size.
Example: JPEG, GIF, ASCII
7) Application Layer
It is the top layer and closest to the user.
It provides network services directly to user applications.
It allows users to access email, files, and websites.
This layer acts as interface between user and network.
Example: HTTP, FTP, SMTP
Advantages of OSI Model:
Easy to understand and learn.
Divides network communication into layers.
Easy to find errors.
Helps in standardization of networking.
Conclusion:
The OSI model explains how data travels in a network step by step through seven layers. It makes communication easy, organized, and reliable.
Explain TCP/IP Reference Model (7 Marks)
TCP/IP (Transmission Control Protocol / Internet Protocol) is a standard communication model used for connecting computers over the internet. It defines the rules for data communication between devices.
It was developed by Defense Advanced Research Projects Agency (DARPA) in the 1970s for the U.S. Department of Defense.
TCP/IP is the most widely used protocol suite in networking. It has 4 layers and each layer performs a specific function.
Diagram of TCP/IP Reference Model:
+----------------------------+
| 4. Application Layer |
+----------------------------+
| 3. Transport Layer |
+----------------------------+
| 2. Internet Layer |
+----------------------------+
| 1. Network Access Layer |
+----------------------------+
Explanation of Layers:
1) Network Access Layer
The Network Access Layer is the lowest layer of TCP/IP model. It is responsible for sending data through physical network media such as cables or wireless signals. It controls hardware addressing and data framing. This layer combines the work of Physical Layer and Data Link Layer of the OSI model. It defines how data is actually transmitted over the network.
Functions:
Physical transmission of data
Hardware addressing
Error detection in frames
Examples: Ethernet, Wi-Fi, ARP
2) Internet Layer
The Internet Layer is responsible for logical addressing and routing of packets. It decides the best path for data to travel from source to destination. It handles packet forwarding between different networks. It uses IP addresses for identifying devices. This layer is very important because it makes inter-network communication possible.
Functions:
Routing of packets
Logical addressing
Packet fragmentation
Examples: IP, ICMP, IGMP
3) Transport Layer
The Transport Layer provides end-to-end communication between sender and receiver. It divides data into segments before transmission and reassembles them at the receiver side. It ensures reliable delivery of data by checking errors and controlling the flow of data. It also makes sure that data arrives in the correct order.
There are two important protocols:
TCP (Transmission Control Protocol): Reliable and connection-oriented
UDP (User Datagram Protocol): Fast and connectionless
Functions:
Segmentation
Error control
Flow control
Reliable delivery
4) Application Layer
The Application Layer is the topmost layer of TCP/IP model. It provides services directly to users and applications. It combines the functions of Application, Presentation, and Session layers of OSI model. This layer allows users to access services like web browsing, email, file transfer, etc.
Functions:
File transfer
Email services
Web services
Remote login
Examples: HTTP, FTP, SMTP, DNS, Telnet
Features of TCP/IP Model:
It is practical and widely used.
It supports communication over large networks.
It provides reliable and secure communication.
It supports routing and addressing.
Advantages of TCP/IP Model:
Easy to implement and maintain.
Supports all types of computers.
Highly scalable.
Used as the backbone of the internet.
Conclusion:
TCP/IP Reference Model is the foundation of modern networking. It was developed by DARPA and is used for communication on the internet. Its four-layer structure makes data transmission simple, reliable, and efficient.
3. Compare OSI and TCP/IP Reference Models
The OSI (Open System Interconnection) model and the TCP/IP (Transmission Control Protocol/Internet Protocol) model are both used for communication in computer networks. Both models divide the communication process into layers. The OSI model is mainly used for understanding networking concepts, while the TCP/IP model is used practically on the internet.
Difference between OSI and TCP/IP Reference Models:
| No. | OSI Reference Model | TCP/IP Reference Model |
|---|---|---|
| 1 | The OSI model was developed by International Organization for Standardization. | The TCP/IP model was developed by Defense Advanced Research Projects Agency. |
2 | The OSI model consists of seven layers. | The TCP/IP model consists of four layers. |
3 | The OSI model is a theoretical reference model. | The TCP/IP model is a practical model used in real networking. |
| 4 | In the OSI model, the model was developed first and then protocols were designed. | In TCP/IP, protocols were developed first and then the model was designed. |
| 5 | The OSI model has separate Session and Presentation layers. | In TCP/IP, Session and Presentation functions are included in the Application layer. |
| 6 | The OSI model has separate Physical and Data Link layers. | In TCP/IP, Physical and Data Link functions are combined into the Network Access layer. |
| 7 | The OSI model clearly defines the services, interfaces, and protocols of each layer. | The TCP/IP model does not clearly separate services, interfaces, and protocols. |
| 8 | The OSI model is less commonly used in practical networking. | The TCP/IP model is widely used for internet communication. |
| 9 | The OSI model is more complex because it has more layers. | The TCP/IP model is simpler and easier to implement. |
| 10 | The OSI model supports both connection-oriented and connectionless communication in the network layer. | The TCP/IP model mainly supports connectionless communication in the Internet layer. |
| 11 | The OSI model is mainly used for teaching and understanding networking concepts. | The TCP/IP model is mainly used for actual data communication over the internet. |
| 12 | Troubleshooting is easier in OSI because functions are divided into more layers. | Troubleshooting can be less detailed because fewer layers are used. |
Similarities:
Both models are used for data communication in networks.
Both models use layered architecture.
Both models divide networking tasks into different layers.
Both models help in transmitting data from source to destination.
Both models provide standards for network communication.
Conclusion:
The OSI and TCP/IP reference models are both important in networking. The OSI model is useful for learning and understanding the working of networks, while the TCP/IP model is more practical and widely used in real-life internet communication. Both models help in making communication between devices easy and organized.
4. Explain Design Issues for Layers (7 Marks)
In computer networks, data communication is divided into layers. Each layer has some design issues that must be solved for proper communication. These issues help in making the network efficient, reliable, and secure.
The important design issues for layers are as follows:
1) Addressing
Addressing is used to identify the sender and receiver in a network.
Sub-points:
Every device must have a unique address.
It helps data to reach the correct destination.
Different layers use different types of addresses.
Example: IP address, MAC address
2) Error Control
Errors may occur during transmission due to noise or disturbance.
Sub-points:
It detects errors in data.
It corrects errors if possible.
It ensures reliable communication.
Example: CRC, Checksum
3) Flow Control
Flow control manages the speed of data transfer.
Sub-points:
It prevents the sender from sending too much data at once.
It avoids data loss when receiver is slow.
It balances the communication speed.
Example: Stop-and-Wait Protocol
4) Sequencing
Sequencing arranges data in proper order.
Sub-points:
Large data is divided into smaller parts.
Each part is given a sequence number.
The receiver arranges them in the correct order.
5) Multiplexing and Demultiplexing
Multiplexing combines many signals into one channel.
Sub-points:
It allows multiple users to share one communication channel.
It increases efficiency of the channel.
Demultiplexing separates data at the receiver side.
6) Routing
Routing selects the best path for data transmission.
Sub-points:
It finds the shortest or best route.
It helps data move through multiple networks.
It reduces delay in communication.
Example: Router
7) Connection Establishment and Termination
Connection must be created before communication starts.
Sub-points:
It checks whether both devices are ready.
It starts communication between sender and receiver.
After data transfer, connection is closed properly.
8) Security
Security protects data during transmission.
Sub-points:
It prevents unauthorized access.
It provides data confidentiality.
It uses encryption and authentication.
9) Fragmentation and Reassembly
Large data is divided into small packets for transmission.
Sub-points:
Fragmentation makes transmission easy.
Small packets travel faster.
Reassembly combines packets at receiver side.
Conclusion:
Design issues for layers are important for proper network communication. They solve problems like addressing, routing, error handling, and security, which makes the network communication smooth and efficient.
Question 5: Define PAN, LAN, MAN and WAN
Answer
Introduction
Computer networks are classified based on geographical coverage area. Depending on the size of the network and communication range, networks are divided into PAN, LAN, MAN, and WAN.
These classifications help us understand how devices communicate over short or long distances.
Definition
1. PAN (Personal Area Network)
PAN is a small network used for communication among personal devices within a short range (typically 1–10 meters).
Examples:
•Bluetooth headset
•Smartwatch
•Mobile phone tethering
Features:
•Very small range
•Low cost
•Personal use
2. LAN (Local Area Network)
LAN connects devices within a small geographical area such as:
•Home
•Office
•School
•Laboratory
Examples:
•Office Wi-Fi
•Computer lab network
Features:
•High speed
•Low latency
•Private ownership
3. MAN (Metropolitan Area Network)
MAN covers a city or metropolitan area.
Examples:
•City-wide cable TV network
•Internet service across city
Features:
•Larger than LAN
•Covers kilometers
•Connects multiple LANs
4. WAN (Wide Area Network)
WAN covers very large geographical areas such as countries or continents.
Example:
•Internet (Internet)
Features:
•Large coverage
•Connects MANs/LANs
•Higher delay than LAN
6. Explain ARPANET and NSFNET (7 Marks)
ARPANET and NSFNET are important milestones in the development of the internet. They helped in creating the modern internet system.
1) ARPANET
ARPANET (Advanced Research Projects Agency Network) was the first packet-switching network and the foundation of the internet. It was developed by Defense Advanced Research Projects Agency in 1969.
Explanation:
ARPANET was created to connect computers of different universities and research centers. Its main goal was to share resources and information between computers. It used packet switching technology, where data is divided into small packets before transmission.
Features of ARPANET:
Sub-points:
It was the first network to use packet switching.
It connected four computers in the beginning.
It was mainly used for research purposes.
It introduced the concept of internetworking.
It later adopted TCP/IP protocol in 1983.
Advantages of ARPANET:
Resource sharing became easy.
Communication between distant computers became possible.
It became the base of the internet.
2) NSFNET
NSFNET (National Science Foundation Network) was developed by National Science Foundation in 1986 to connect supercomputers and research institutions.
Explanation:
NSFNET was created to provide a high-speed network for educational and research purposes. It replaced ARPANET as the main backbone of the internet. It helped in expanding internet access to more universities and organizations.
Features of NSFNET:
Sub-points:
It connected many universities and research centers.
It provided faster communication than ARPANET.
It became the main internet backbone in the late 1980s.
It supported the growth of the internet.
Advantages of NSFNET:
Increased internet speed.
Expanded internet to many users.
Helped in development of global internet.
Difference between ARPANET and NSFNET:
| ARPANET | NSFNET |
|---|---|
| Developed in 1969 | Developed in 1986 |
| Developed by DARPA | Developed by NSF |
| First packet-switching network | High-speed backbone network |
| Mainly for defense and research | Mainly for education and research |
| Foundation of internet | Expansion of internet |
Conclusion:
ARPANET was the starting point of the internet, while NSFNET helped in expanding and improving it. Both played an important role in the history of networking.
UNIT:3
## 4. Explain Sliding Window Protocol (GTU Style – Long Answer)
### Definition:
**Sliding Window Protocol** is a method of **flow control** used in computer networks.
It allows the sender to send multiple data frames continuously before receiving acknowledgment (ACK) from the receiver.
This increases the speed of data transmission and improves channel utilization.
It is mainly used in the **Data Link Layer** and **Transport Layer**.
In **Stop-and-Wait Protocol**, only one frame is sent at a time.
But in Sliding Window Protocol, many frames can be sent together, so it is faster and more efficient.
## Need of Sliding Window Protocol:
* To improve network efficiency.
* To use bandwidth properly.
* To reduce waiting time.
* To send multiple frames in one cycle.
* To control the flow of data between sender and receiver.
## Working of Sliding Window Protocol:
In this protocol, both sender and receiver maintain a **window**.
* **Sender Window:** Contains frames that can be sent without waiting for ACK.
* **Receiver Window:** Contains frames that can be received.
The sender sends frames within the window size.
When ACK is received, the sender moves the window forward. This movement is called **Sliding**.
If any frame is lost, retransmission is done.
## Example:
Suppose:
* Window size = **4**
* Frames = **0, 1, 2, 3, 4, 5, 6, 7**
### Step 1: Sender sends first 4 frames
Sender → [0] [1] [2] [3] → Receiver
Here sender does not wait after each frame.
### Step 2: Receiver receives and sends ACK
Receiver → ACK0, ACK1
This means frame 0 and 1 are received successfully.
### Step 3: Window slides
Now sender window moves forward.
Before:
+----+----+----+----+
| 0 | 1 | 2 | 3 |
+----+----+----+----+
After ACK of 0 and 1:
+----+----+----+----+
| 2 | 3 | 4 | 5 |
+----+----+----+----+
Now sender can send frame 4 and 5.
This process continues until all frames are sent.
## Important Terms:
### 1. Window Size
Number of frames that can be sent at one time without waiting for ACK.
Example: Window size = 4 means 4 frames can be sent together.
### 2. Sequence Number
Each frame has a unique number for identification.
Example: 0,1,2,3...
### 3. Acknowledgment (ACK)
Receiver sends ACK to confirm successful reception.
### 4. Retransmission
If frame is lost or damaged, sender sends it again.
## Types of Sliding Window Protocol:
### 1. Go-Back-N Protocol
* Sender can send many frames.
* If one frame is lost, all frames after that are resent.
Example:
Frames sent: 0 1 2 3
Frame 2 lost
Then sender resends:
2 3
**Advantage:** Simple
**Disadvantage:** Wastes bandwidth
### 2. Selective Repeat Protocol
* Only the lost frame is resent.
* Correct frames are not resent.
Example:
Frames sent: 0 1 2 3
Frame 2 lost
Only frame 2 is resent.
**Advantage:** Better efficiency
**Disadvantage:** More complex
## Advantages of Sliding Window Protocol:
1. Increases transmission speed.
2. Better bandwidth utilization.
3. Multiple frames can be sent together.
4. Reduces waiting time.
5. Improves efficiency.
6. Provides reliable communication.
## Disadvantages of Sliding Window Protocol:
1. More complex than Stop-and-Wait.
2. Needs more memory for buffering.
3. Sequence management is required.
4. Retransmission process can be complicated.
No comments:
Post a Comment