>>ONLY DEFINE :
i) Define Computer Network.
A Computer Network is a collection of interconnected computers and devices that communicate and share resources such as data, software, and hardware.
ii) What is Protocol Hierarchy?
A Protocol Hierarchy is a layered structure of protocols where each layer performs specific functions and provides services to the layer above it.
iii) Define Connection-Oriented Service.
A Connection-Oriented Service is a communication service in which a connection is established between the sender and receiver before data transmission begins.
iv) Expand OSI and TCP/IP.
OSI = Open Systems Interconnection
TCP/IP = Transmission Control Protocol / Internet Protocol
v) Define Routing.
Routing is the process of selecting the best path for transferring data packets from a source to a destination in a network.
vi) What is DNS?
DNS (Domain Name System) is a naming system that translates domain names (e.g., www.google.com) into IP addresses.
vii) Define CRC.
CRC (Cyclic Redundancy Check) is an error detection technique that uses binary division to detect errors in transmitted data.
>>LONG QnA
1.Compare OSI Reference Model and TCP/IP Reference Model.
OSI Reference Model
Definition:
OSI (Open Systems Interconnection) Model is a 7-layer network model developed by ISO to explain how data travels from one computer to another.
Layers:
- Physical Layer
- Data Link Layer
- Network Layer
- Transport Layer
- Session Layer
- Presentation Layer
- Application Layer
Example: Sending an email through a network.
TCP/IP Reference Model
Definition:
TCP/IP (Transmission Control Protocol/Internet Protocol) is a 4-layer network model used on the Internet for communication between devices.
Layers:
- Network Access Layer
- Internet Layer
- Transport Layer
- Application Layer
Example: Browsing websites on the Internet.
Compare OSI Reference Model and TCP/IP Reference Model
| OSI Reference Model | TCP/IP Reference Model |
|---|---|
| Developed by International Organization for Standardization (ISO) | Developed by Defense Advanced Research Projects Agency (DARPA) |
| Has 7 layers. | Has 4 layers. |
| It is a reference model. | It is a protocol suite/model used on the Internet. |
| Layers are clearly separated. | Some layers are combined. |
| Session and Presentation layers are separate. | Session and Presentation functions are included in the Application layer. |
| Network layer supports both connection-oriented and connectionless communication. | Internet layer mainly supports connectionless communication. |
| More complex and theoretical. | Simpler and practical. |
| Used mainly for understanding and teaching networking concepts. | Widely used in real-world networks and the Internet. |
The OSI model is a 7-layer theoretical model, while the TCP/IP model is a 4-layer practical model used on the Internet.
Conclusion: OSI is a 7-layer reference model used for understanding networking, while TCP/IP is a 4-layer model used for actual Internet communication.
Q.2 Explain Error Detection and Correction Techniques: Checksum, CRC and Hamming Code.
Error Detection and Correction Techniques
These techniques are used in computer networks to detect and correct errors that occur during data transmission.
1) Checksum
Definition:
Checksum is an error detection technique in which the sender calculates a value from the data and sends it along with the message.
Working:
Sender divides data into equal-sized blocks.
All blocks are added together.
The complement of the sum is sent as the checksum.
Receiver performs the same calculation.
If the result is correct, data is accepted; otherwise, an error is detected.
Example
Data blocks:
1010
1100
Addition:
1010
1100
----
10110
Take lower 4 bits = 0110
Complement of 0110 = 1001
Checksum = 1001
Sender sends:
1010 1100 1001
Receiver performs the same calculation. If the result is correct, data is accepted; otherwise, an error is detected.
Data blocks:
1010
1100
Addition:
1010
1100
----
10110
Take lower 4 bits = 0110
Complement of 0110 = 1001
Checksum = 1001
Sender sends:
1010 1100 1001
Receiver performs the same calculation. If the result is correct, data is accepted; otherwise, an error is detected.
Advantage: Simple and easy to implement.
Disadvantage: Cannot detect all types of errors.
2) CRC (Cyclic Redundancy Check)
Definition:
CRC is an error detection technique that uses binary division to detect errors in transmitted data.
Working:
Sender appends zeros to the data.
Data is divided by a predefined generator polynomial.
The remainder obtained is called the CRC.
CRC is attached to the data and transmitted.
Receiver performs the same division.
If the remainder is zero, data is accepted; otherwise, an error is detected.
Example
Data:
1101
Generator:
101
Append 2 zeros:
110100
Binary division:
110100 ÷ 101
Remainder:
01
CRC = 01
Transmitted data:
110101
At the receiver, the same division is performed. If the remainder is 00, data is accepted; otherwise, an error is detected.
Data:
1101
Generator:
101
Append 2 zeros:
110100
Binary division:
110100 ÷ 101
Remainder:
01
CRC = 01
Transmitted data:
110101
At the receiver, the same division is performed. If the remainder is 00, data is accepted; otherwise, an error is detected.
Advantage: Detects most transmission errors.
Disadvantage: More complex than checksum.
3) Hamming Code
Definition:
Hamming Code is an error detection and correction technique that can detect and correct single-bit errors.
Working:
Redundant (parity) bits are added to the data bits.
Data is transmitted with parity bits.
Receiver checks parity bits.
If an error is found, the exact error bit is identified.
The receiver corrects the error automatically.
Example
Data bits:
1011
Add parity bits at positions:
1, 2, 4
Hamming code formed:
0110011
Suppose received code:
0110001
Parity checking identifies the error position.
Error found at:
Position 2
Corrected code:
0110011
Thus, the receiver can automatically correct the single-bit error.
Data bits:
1011
Add parity bits at positions:
1, 2, 4
Hamming code formed:
0110011
Suppose received code:
0110001
Parity checking identifies the error position.
Error found at:
Position 2
Corrected code:
0110011
Thus, the receiver can automatically correct the single-bit error.
Advantage: Can detect and correct single-bit errors.
Disadvantage: Requires extra parity bits.
Conclusion
Checksum → Detects errors using addition.
CRC → Detects errors using polynomial division.
Hamming Code → Detects and corrects single-bit errors.
Checksum → Detects errors using addition.
CRC → Detects errors using polynomial division.
Hamming Code → Detects and corrects single-bit errors.
Q.3 Explain HTTP and World Wide Web (WWW).
Introduction
The World Wide Web (WWW) is a system of interlinked web pages available on the Internet. HTTP is the communication protocol used for transferring web pages and other resources between web browsers and web servers.
1) HTTP (HyperText Transfer Protocol)
Definition
HTTP (HyperText Transfer Protocol) is an application layer protocol used for communication between a web browser (client) and a web server. It defines how requests and responses are exchanged on the World Wide Web.
Working of HTTP
User enters a URL in the web browser.
The browser sends an HTTP request to the web server.
The server receives and processes the request.
The server sends an HTTP response containing the requested data.
The browser displays the web page to the user.
User enters a URL in the web browser.
The browser sends an HTTP request to the web server.
The server receives and processes the request.
The server sends an HTTP response containing the requested data.
The browser displays the web page to the user.
Example
Suppose a user enters:
https://www.google.com
Browser sends an HTTP request to Google's server.
Server processes the request.
Server returns the requested web page.
Browser displays the page on the screen.
Features of HTTP
Client-Server architecture.
Stateless protocol.
Supports multimedia data.
Fast and simple communication.
Client-Server architecture.
Stateless protocol.
Supports multimedia data.
Fast and simple communication.
Advantages of HTTP
Easy to implement and use.
Supports data transfer over the Internet.
Platform independent.
Allows communication between different systems.
Easy to implement and use.
Supports data transfer over the Internet.
Platform independent.
Allows communication between different systems.
Disadvantages of HTTP
Data is transmitted in plain text.
Less secure than HTTPS.
Vulnerable to interception and attacks.
Data is transmitted in plain text.
Less secure than HTTPS.
Vulnerable to interception and attacks.
2) World Wide Web (WWW)
Definition
The World Wide Web (WWW) is a collection of interconnected web pages and resources that can be accessed through the Internet using web browsers.
Components of WWW
Web Browser – Software used to access web pages (e.g., Google Chrome).
Web Server – Stores and delivers web pages.
URL (Uniform Resource Locator) – Address of a web resource.
HTTP – Protocol used for communication.
HTML – Language used to create web pages.
Web Browser – Software used to access web pages (e.g., Google Chrome).
Web Server – Stores and delivers web pages.
URL (Uniform Resource Locator) – Address of a web resource.
HTTP – Protocol used for communication.
HTML – Language used to create web pages.
Working of WWW
User enters a URL in the browser.
Browser sends a request to the web server using HTTP.
Server finds the requested resource.
Server sends the web page to the browser.
Browser interprets HTML and displays the page.
User enters a URL in the browser.
Browser sends a request to the web server using HTTP.
Server finds the requested resource.
Server sends the web page to the browser.
Browser interprets HTML and displays the page.
Example
When a user visits:
https://www.wikipedia.org
The browser requests the page from the server, and the server sends the web page, which is displayed on the screen.
Advantages of WWW
Easy access to information.
Supports text, images, audio, and video.
Provides online services such as education, banking, and shopping.
Global accessibility.
Easy access to information.
Supports text, images, audio, and video.
Provides online services such as education, banking, and shopping.
Global accessibility.
Disadvantages of WWW
Security and privacy concerns.
Presence of unreliable information.
Requires Internet connectivity.
Risk of malware and phishing attacks.
Security and privacy concerns.
Presence of unreliable information.
Requires Internet connectivity.
Risk of malware and phishing attacks.
Difference Between HTTP and WWW
| HTTP | WWW |
|---|---|
| HTTP is a communication protocol. | WWW is a collection of web pages and resources. |
| Used to transfer data between client and server. | Used to access information on the Internet. |
| Works at the Application Layer. | Uses HTTP, HTML, URL, and browsers. |
| Defines communication rules. | Provides web-based information and services. |
Q.4 Explain Protocol Hierarchy and Design Issues for Layers.
Introduction
In computer networks, communication is organized into a set of layers. Each layer performs specific functions and communicates with its corresponding layer on another system using protocols. This layered structure is called a Protocol Hierarchy.
Protocol Hierarchy
Definition
A Protocol Hierarchy is a layered arrangement of protocols in which each layer provides services to the layer above it and receives services from the layer below it.
Working
Data is generated at the sender's application layer.
Each layer adds its own control information (header).
Data moves through all layers to the physical medium.
At the receiver side, each layer removes its header.
Finally, the original data reaches the application layer.
Data is generated at the sender's application layer.
Each layer adds its own control information (header).
Data moves through all layers to the physical medium.
At the receiver side, each layer removes its header.
Finally, the original data reaches the application layer.
Example
Sender
Application Layer
↓
Transport Layer
↓
Network Layer
↓
Data Link Layer
↓
Physical Layer
Application Layer
↓
Transport Layer
↓
Network Layer
↓
Data Link Layer
↓
Physical Layer
Receiver
Physical Layer
↑
Data Link Layer
↑
Network Layer
↑
Transport Layer
↑
Application Layer
Physical Layer
↑
Data Link Layer
↑
Network Layer
↑
Transport Layer
↑
Application Layer
Advantages
Simplifies network design.
Easy troubleshooting and maintenance.
Supports interoperability.
Allows independent development of layers.
Simplifies network design.
Easy troubleshooting and maintenance.
Supports interoperability.
Allows independent development of layers.
Disadvantages
Increased overhead due to headers.
May reduce performance.
Complex implementation.
Increased overhead due to headers.
May reduce performance.
Complex implementation.
Design Issues for Layers
The following are important design issues that must be considered while designing network layers:
1. Addressing
Each device must have a unique address for identification and communication.
Example: IP Address (192.168.1.1)
2. Error Control
Detects and corrects errors that occur during data transmission.
Example: CRC, Checksum, Hamming Code.
3. Flow Control
Controls the rate of data transmission between sender and receiver.
Example: Stop-and-Wait Protocol.
4. Routing
Determines the best path for data packets to travel from source to destination.
Example: Routers selecting the shortest path.
5. Segmentation and Reassembly
Large messages are divided into smaller packets and reassembled at the destination.
Example: File transfer over the Internet.
6. Multiplexing
Allows multiple users or applications to share a communication channel.
Example: Multiple applications using the same Internet connection.
7. Connection Establishment and Termination
Manages creation and closing of communication sessions.
Example: TCP Three-Way Handshake.
Q.5 Explain Twisted Pair Cable with suitable diagram, advantages and disadvantages.
Definition
Twisted Pair Cable is a guided transmission medium consisting of two insulated copper wires twisted together. The twisting reduces electromagnetic interference and crosstalk between wires. It is widely used in telephone networks and LANs.
Diagram
Two copper wires are twisted together to form a twisted pair cable.
Types of Twisted Pair Cable
1. UTP (Unshielded Twisted Pair)
Does not have additional shielding.
Less expensive.
Commonly used in LAN networks.
Does not have additional shielding.
Less expensive.
Commonly used in LAN networks.
2. STP (Shielded Twisted Pair)
Definition
STP is a twisted pair cable that contains a metallic shield around the twisted wires to reduce interference and noise.
Contains a protective metal shield.
Provides better protection against interference.
More expensive than UTP.
Contains a protective metal shield.
Provides better protection against interference.
More expensive than UTP.
Working
Data is transmitted as electrical signals through copper wires.
The wires are twisted together to reduce noise and interference.
One wire carries the signal while the other acts as a return path.
The receiving device receives and interprets the signals.
Data is transmitted as electrical signals through copper wires.
The wires are twisted together to reduce noise and interference.
One wire carries the signal while the other acts as a return path.
The receiving device receives and interprets the signals.
Example
Telephone lines
Ethernet LAN cables (Cat5e, Cat6)
Office and home networks
Telephone lines
Ethernet LAN cables (Cat5e, Cat6)
Office and home networks
Advantages
Low cost and economical.
Easy to install and maintain.
Flexible and lightweight.
Suitable for short-distance communication.
Widely available and commonly used.
Low cost and economical.
Easy to install and maintain.
Flexible and lightweight.
Suitable for short-distance communication.
Widely available and commonly used.
Disadvantages
Limited transmission distance.
Lower bandwidth compared to fiber optic cable.
Susceptible to electromagnetic interference.
Less secure than fiber optic cable.
Signal attenuation increases over long distances.
Limited transmission distance.
Lower bandwidth compared to fiber optic cable.
Susceptible to electromagnetic interference.
Less secure than fiber optic cable.
Signal attenuation increases over long distances.
Applications
Telephone communication.
Local Area Networks (LANs).
Internet connections.
Office networking.
Telephone communication.
Local Area Networks (LANs).
Internet connections.
Office networking.
Q.6 Explain Distance Vector Routing Algorithm and Shortest Path Routing Algorithm.
Introduction
Routing algorithms are used in computer networks to find the best path for sending data from a source to a destination.
1) Distance Vector Routing Algorithm
Definition
Distance Vector Routing is a routing algorithm in which each router maintains a routing table containing the distance and next hop(router) to all destinations. Routers exchange this information with their neighboring routers.
Working
Each router creates a routing table.
The table contains destination address, distance, and next hop.
Routers periodically send their routing tables to neighboring routers.
Each router compares the received information with its own table.
If a shorter path is found, the routing table is updated.
The process continues until all routers have the latest routing information.
Each router creates a routing table.
The table contains destination address, distance, and next hop.
Routers periodically send their routing tables to neighboring routers.
Each router compares the received information with its own table.
If a shorter path is found, the routing table is updated.
The process continues until all routers have the latest routing information.
Example
A ----1---- B
| |
4 2
| |
C ----1---- D
A ----1---- B
| |
4 2
| |
C ----1---- D
Router A knows:
Distance to B = 1
Distance to C = 4
After receiving information from Router B:
Distance to D = A → B → D
Cost = 1 + 2 = 3
So, Router A updates its table and selects A → B → D as the best route.
Advantages
Simple and easy to implement.
Requires less processing power.
Suitable for small networks.
Routing tables are easy to maintain.
Simple and easy to implement.
Requires less processing power.
Suitable for small networks.
Routing tables are easy to maintain.
Disadvantages
Slow convergence.
Routing loops may occur.
Generates periodic update traffic.
Not suitable for large networks.
Slow convergence.
Routing loops may occur.
Generates periodic update traffic.
Not suitable for large networks.
2) Shortest Path Routing Algorithm
Definition
Shortest Path Routing is a routing algorithm that finds the path with the minimum cost between source and destination nodes. It is commonly implemented using Dijkstra’s Algorithm.
Working
Each network link is assigned a cost.
The source router starts the calculation.
Costs to neighboring nodes are calculated.
The path with the minimum cost is selected.
The process continues until the shortest path to all nodes is found.
Data is transmitted through the shortest path.
Each network link is assigned a cost.
The source router starts the calculation.
Costs to neighboring nodes are calculated.
The path with the minimum cost is selected.
The process continues until the shortest path to all nodes is found.
Data is transmitted through the shortest path.
Example
A ----2---- B
| |
5 1
| |
C ----3---- D
A ----2---- B
| |
5 1
| |
C ----3---- D
To find the shortest path from A to D:
Path 1:
A → B → D
Cost = 2 + 1 = 3
Path 2:
A → C → D
Cost = 5 + 3 = 8
Since cost 3 is less than cost 8,
Shortest Path = A → B → D
Advantages
Finds the best and shortest route.
Fast convergence.
Suitable for large networks.
Reduces routing loops.
Finds the best and shortest route.
Fast convergence.
Suitable for large networks.
Reduces routing loops.
Disadvantages
More complex than Distance Vector Routing.
Requires more memory.
Higher computation cost.
More complex than Distance Vector Routing.
Requires more memory.
Higher computation cost.
Conclusion
Distance Vector is simple and suitable for small networks, whereas Shortest Path Routing is more efficient and suitable for large networks.
Q.7 Distinguish between Connection-Oriented and Connectionless Services.
Definition
1) Connection-Oriented Service:
A connection is established between sender and receiver before data transmission begins.
Working of Connection-Oriented Service
Sender establishes a connection with the receiver.
Data is transmitted after connection establishment.
Receiver sends acknowledgments.
Connection is terminated after communication.
Sender establishes a connection with the receiver.
Data is transmitted after connection establishment.
Receiver sends acknowledgments.
Connection is terminated after communication.
Example
File transfer using TCP.
2) Connectionless Service:
Data is sent directly without establishing a connection between sender and receiver.
Working of Connectionless Service
No connection is established.
Data packets are sent directly.
Each packet travels independently.
Packets reach the destination without acknowledgment.
No connection is established.
Data packets are sent directly.
Each packet travels independently.
Packets reach the destination without acknowledgment.
Example
Video streaming and online gaming using UDP.
Difference Between Connection-Oriented and Connectionless Services
| Connection-Oriented Service | Connectionless Service |
|---|---|
| Connection is established before data transfer. | No connection is established before data transfer. |
| Reliable communication. | Less reliable communication. |
| Acknowledgment is provided. | No acknowledgment is provided. |
Error control is available. | Limited error control. |
Flow control is available. | No flow control. |
| Data is delivered in sequence. | Data may arrive out of sequence. |
Packets follow the same path. | Packets may follow different paths. |
Connection setup and termination are required. | No setup or termination is required. |
Higher overhead. | Lower overhead. |
Slower due to connection establishment. | Faster transmission. |
Suitable for file transfer and email. | Suitable for video streaming and online gaming. |
Uses more resources. | Uses fewer resources. |
Data delivery is guaranteed. | Data delivery is not guaranteed. |
Example: TCP | Example: UDP |
Q.8 Explain TCP Three-Way Handshake for Connection Establishment.
Definition
TCP Three-Way Handshake is a process used by the Transmission Control Protocol (TCP) to establish a reliable connection between a client and a server before data transmission begins. It ensures that both devices are ready to communicate and synchronizes their sequence numbers.
Purpose of TCP Three-Way Handshake
Establishes a reliable connection.
Synchronizes sequence numbers between client and server.
Confirms that both devices are ready for communication.
Prevents data loss during connection setup.
Establishes a reliable connection.
Synchronizes sequence numbers between client and server.
Confirms that both devices are ready for communication.
Prevents data loss during connection setup.
Working of TCP Three-Way Handshake
The connection establishment process consists of three steps:
Step 1: SYN (Synchronize)
The client sends a SYN packet to the server requesting a connection.
Client -------- SYN --------> Server
This packet contains the client's initial sequence number.
Step 2: SYN-ACK (Synchronize Acknowledgment)
The server receives the SYN packet and responds with a SYN-ACK packet.
Client <----- SYN + ACK ----- Server
SYN indicates the server is ready to communicate.
ACK acknowledges the client's request.
Step 3: ACK (Acknowledgment)
The client sends an ACK packet to the server.
Client -------- ACK --------> Server
After receiving this ACK, the server knows that the client is ready and the connection is established.
Diagram
Example
Suppose a user opens a website in a browser.
The browser (client) sends a SYN packet to the web server.
The web server responds with a SYN-ACK packet.
The browser sends an ACK packet.
The TCP connection is established.
The server starts sending the requested web page data.
Advantages
Provides reliable communication.
Ensures both sides are ready before data transfer.
Synchronizes sequence numbers.
Reduces the chances of communication errors.
Provides reliable communication.
Ensures both sides are ready before data transfer.
Synchronizes sequence numbers.
Reduces the chances of communication errors.
Disadvantages
Requires extra time for connection setup.
Generates additional network traffic.
Slightly increases communication overhead.
Requires extra time for connection setup.
Generates additional network traffic.
Slightly increases communication overhead.
Conclusion
TCP Three-Way Handshake is the connection establishment process used by TCP. It consists of three steps: SYN, SYN-ACK, and ACK. This process creates a reliable connection between the client and server, ensuring accurate and secure data transmission.
Q.9 Explain Stop-and-Wait Protocol and Sliding Window Protocol with suitable example.
Introduction
Flow control protocols are used to control the rate of data transmission between sender and receiver. Stop-and-Wait Protocol and Sliding Window Protocol are commonly used flow control techniques.
1) Stop-and-Wait Protocol
Definition
Stop-and-Wait Protocol is a flow control protocol in which the sender sends one frame at a time and waits for an acknowledgment (ACK) before sending the next frame.
Working
Sender sends one frame.
Receiver receives the frame and sends an ACK.
Sender waits until ACK is received.
After receiving ACK, the sender sends the next frame.
This process continues until all frames are transmitted.
Sender sends one frame.
Receiver receives the frame and sends an ACK.
Sender waits until ACK is received.
After receiving ACK, the sender sends the next frame.
This process continues until all frames are transmitted.
Diagram
Sender Receiver
Frame 1 -------------->
<------ ACK
Frame 2 -------------->
<------ ACK
Sender Receiver
Frame 1 -------------->
<------ ACK
Frame 2 -------------->
<------ ACK
Example
Suppose a sender has three frames F1, F2, and F3.
Send F1 → Receive ACK
Send F2 → Receive ACK
Send F3 → Receive ACK
The sender sends the next frame only after receiving the acknowledgment for the previous frame.
Advantages
Simple to implement.
Easy error detection and recovery.
Reliable data transmission.
Simple to implement.
Easy error detection and recovery.
Reliable data transmission.
Disadvantages
Low efficiency.
Wastes bandwidth while waiting for ACK.
Slow for long-distance communication.
Low efficiency.
Wastes bandwidth while waiting for ACK.
Slow for long-distance communication.
2) Sliding Window Protocol
Definition
Sliding Window Protocol is a flow control protocol in which the sender can send multiple frames before receiving acknowledgments.
Working
Sender maintains a window of frames.
Multiple frames are sent without waiting for ACK.
Receiver sends acknowledgments for received frames.
As ACKs arrive, the window moves (slides) forward.
New frames are transmitted.
Sender maintains a window of frames.
Multiple frames are sent without waiting for ACK.
Receiver sends acknowledgments for received frames.
As ACKs arrive, the window moves (slides) forward.
New frames are transmitted.
Diagram
Sender Receiver
F1 ----------->
F2 ----------->
F3 ----------->
<------ ACK for F1,F2,F3
F4 ----------->
F5 ----------->
Sender Receiver
F1 ----------->
F2 ----------->
F3 ----------->
<------ ACK for F1,F2,F3
F4 ----------->
F5 ----------->
Example
Assume window size = 3
Sender sends: F1, F2, F3
Receiver sends ACK
Window slides
Sender sends: F4, F5, F6
Thus, several frames can be transmitted before waiting for acknowledgments.
Advantages
Better bandwidth utilization.
Faster data transmission.
Higher efficiency than Stop-and-Wait.
Suitable for high-speed networks.
Better bandwidth utilization.
Faster data transmission.
Higher efficiency than Stop-and-Wait.
Suitable for high-speed networks.
Disadvantages
More complex implementation.
Requires more memory.
Window management is needed.
More complex implementation.
Requires more memory.
Window management is needed.
Difference Between Stop-and-Wait and Sliding Window Protocol
| Stop-and-Wait Protocol | Sliding Window Protocol |
|---|---|
| Sends one frame at a time. | Sends multiple frames at a time. |
| Waits for ACK after each frame. | Does not wait for ACK after every frame. |
| Low efficiency. | High efficiency. |
| Simple to implement. | More complex to implement. |
| Low bandwidth utilization. | Better bandwidth utilization. |
| Slower transmission. | Faster transmission. |
Conclusion
Stop-and-Wait Protocol sends one frame and waits for an acknowledgment before sending the next frame, making it simple but less efficient. Sliding Window Protocol allows multiple frames to be transmitted before receiving acknowledgments, resulting in better performance and higher network efficiency.
No comments:
Post a Comment