0% found this document useful (0 votes)
4 views11 pages

MCS-218 Data Communication and Computer Networks

The document outlines the assignment solution for MCS-218, focusing on Data Communication and Computer Networks, detailing the TCP/IP model, its layers, and alternative models like OSI. It compares Pure ALOHA and Slotted ALOHA, highlighting the efficiency improvements of Slotted ALOHA. Additionally, it discusses congestion control mechanisms essential for managing network traffic effectively.

Uploaded by

anoop18062000
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views11 pages

MCS-218 Data Communication and Computer Networks

The document outlines the assignment solution for MCS-218, focusing on Data Communication and Computer Networks, detailing the TCP/IP model, its layers, and alternative models like OSI. It compares Pure ALOHA and Slotted ALOHA, highlighting the efficiency improvements of Slotted ALOHA. Additionally, it discusses congestion control mechanisms essential for managing network traffic effectively.

Uploaded by

anoop18062000
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MCS – 218

Data Communication and Computer Networks


ASSIGNMENT SOLUTION
(MCA_NEW 2nd semester )
(July - 2025 & January - 2026)
Course Code : MCS-218
Course Title : Data Communication and Computer Networks
Assignment Number : MCA_NEW(II)/218/Assign/2025-26
Maximum Marks : 100
Weightage : 30%
Last Dates for Submission : 31st October, 2025 (For July, 2025 Session)
15th April, 2026 (For January, 2026 Session)

Note: Answer all the questions in the assignment which carry 80 marks in total. 20
marks are for viva voce. You may use illustrations and diagrams to enhance the
explanations. Please go through the guidelines regarding assignments given in the
Programme Guide for the formatof presentation.

Q1: Explain TCP/IP model with layer functionality. Are there any alternative (30 Marks)
models to TCP/IP. If yes, explain them.

Q2: How does Slotted ALOHA improve the performance of the system over Pure (30 Marks)
ALOHA.

Q3: What are various mechanisms for congestion control? (20 Marks)

3
Q1: Explain TCP/IP model with layer functionality. Are there any alternative models to TCP/IP. If yes, explain them.

Ans :

The TCP/IP model is the most widely used communication model in the world of computer networks. It was
developed in the 1970s by the United States Department of Defense for building a robust, fault-tolerant
communication system. The aim of TCP/IP was to connect different types of computers and networks
together and allow them to share information reliably. Today, the entire internet works on the TCP/IP model.
It describes how data should be packaged, addressed, transmitted, routed, and received. Unlike a single
protocol, TCP/IP is a set of rules and guidelines that different layers follow to complete communication.

The TCP/IP model consists of four layers. Each layer has its own functions, and each depends on the other to
complete the overall process of communication.

The Application Layer is the topmost layer. It is closest to the end user and provides services that allow
applications to communicate. Whenever we open a web browser to access a website, send an email, or
transfer a file from one computer to another, it is the Application layer that makes these services possible.
Important protocols in this layer include HTTP for websites, FTP for file transfer, SMTP for email sending,
POP3 and IMAP for email receiving, and DNS for translating domain names into IP addresses. Without this
layer, users would not be able to use the internet in a meaningful way.

The Transport Layer is responsible for end-to-end communication between the sending and receiving devices.
It ensures that the message is delivered completely and correctly. This layer handles error detection, error
correction, and flow control. It breaks down large data into smaller units called segments at the sender’s end
and reassembles them at the receiver’s end. The two major protocols used in this layer are TCP and UDP. TCP
(Transmission Control Protocol) provides reliable, connection-oriented communication. For example, when
we download a file or send an email, TCP ensures that no data is lost and everything reaches in the correct
order. UDP (User Datagram Protocol), on the other hand, is connectionless and faster, but less reliable. It is
used in cases where speed is more important than accuracy, such as video streaming, voice over IP (VoIP),
and online gaming.

The Internet Layer comes next. It is mainly responsible for logical addressing and routing. Each device on a
network is assigned a unique IP address, and the Internet layer ensures that data packets find their correct
destination using these addresses. This layer also decides the best path for data to travel across different
interconnected networks. The protocols that work at this layer include IP (both IPv4 and IPv6), ICMP for error
reporting and diagnostics, and ARP for mapping IP addresses to physical addresses. This layer can be
compared to a postal service where the correct address on an envelope ensures that a letter is delivered to
the right house, no matter how many routes it passes through.

The Network Access Layer, also called the Link Layer, is the lowest layer of the TCP/IP model. This layer is
responsible for the actual physical transmission of data over cables, fiber optics, or wireless signals. It converts
the data into electrical, optical, or radio signals that can travel across physical media. It also defines how
devices identify each other using MAC addresses. Technologies like Ethernet, Wi-Fi, and Bluetooth work in
this layer. For example, when a laptop connects to Wi-Fi and transmits data, the Network Access layer ensures
that the data is properly framed and transmitted over the wireless medium.

While TCP/IP is the most practical and widely used model, there are alternative models as well. The most
important one is the OSI (Open Systems Interconnection) model, which was developed by the International
ASSIGNMENT SOLUTION --- BY RUPESH BHANDARI MCS – 218 , Data Communication and Computer Networks
Standards Organization (ISO) in the late 1970s. Unlike TCP/IP which has 4 layers, OSI has 7 layers. These are
Application, Presentation, Session, Transport, Network, Data Link, and Physical layers. The OSI model gives a
very detailed and systematic view of communication. For example, the Presentation layer is responsible for
data encryption, compression, and formatting, while the Session layer handles synchronization and dialog
control between applications. Although the OSI model is not implemented directly in real networks, it is very
useful for teaching, learning, and troubleshooting network problems because it divides the process into more
steps.

Sometimes, a hybrid model is used in practice which combines the advantages of both TCP/IP and OSI. For
instance, functions of OSI’s Session and Presentation layers are often included in the Application layer of
TCP/IP. This makes TCP/IP practical but still benefits from the detailed explanation of OSI.

In conclusion, the TCP/IP model is the backbone of modern networking and the internet. Its simple four-layer
structure makes it efficient, flexible, and practical for real-world implementation. On the other hand, the OSI
model, even though it is not directly used, plays an important role as a reference model for understanding
and explaining communication processes in detail. Together, both models are essential in the study of data
communication and computer networks. TCP/IP provides the working framework of the internet, while OSI
provides the theoretical clarity.

TCP/IP model 4 layers vs OSI model 7 layers comparison diagram

Advantages of TCP/IP Model

The TCP/IP model has many advantages:

 It is simple and practical because it has only four layers.


 It is scalable and works for small local networks as well as the global internet.
ASSIGNMENT SOLUTION --- BY RUPESH BHANDARI MCS – 218 , Data Communication and Computer Networks
 It is flexible and can connect different types of hardware and operating systems.
 It is the backbone of the internet, meaning its protocols are universal standards used worldwide.

Limitations of TCP/IP Model

However, TCP/IP also has some limitations:

 It does not separate the Presentation and Session layers like OSI, so those functions are hidden
inside the Application layer.
 The IP protocol does not guarantee reliability; that responsibility is left to TCP.
 It is not always suitable to describe newer networking technologies like IoT in detail.

Real-Life Examples of TCP/IP

The TCP/IP model is not just theoretical, it is visible in daily life.

 When we browse the web, the Application layer uses HTTP, the Transport layer uses TCP, the
Internet layer uses IP, and the Link layer uses Wi-Fi or Ethernet.
 When we stream a video on YouTube, the Application layer again uses HTTP, the Transport layer
often uses UDP for speed, the Internet layer handles addressing with IP, and the Link layer uses Wi-Fi
to send the data.

Future of Networking Models

The future of networking is also evolving. With the adoption of IPv6, more devices can be connected
because IPv4 addresses are almost finished. Hybrid layered models are also being used in modern networks,
where functions of OSI are merged into TCP/IP. Moreover, concepts like Software Defined Networking (SDN)
are being researched, which may become the next step in networking models.

✅ Summary of TCP/IP Model and Alternatives

1. TCP/IP model is the backbone of the internet, developed by the US DoD.


2. It has 4 layers → Applica on, Transport, Internet, Network Access.
3. Application Layer → Provides user services like web, email, file transfer.
4. Transport Layer → Ensures end-to-end delivery with TCP (reliable) and UDP (fast).
5. Internet Layer → Handles IP addressing, rou ng, and packet delivery.
6. Network Access Layer → Deals with physical transmission using Ethernet, Wi-Fi.
7. Alternative model → OSI model with 7 layers, more detailed and theoretical.
8. OSI model explains Presentation (encryption, formatting) and Session (synchronization) separately.
9. Hybrid use → In prac ce, TCP/IP works, but OSI is used for learning and troubleshooting.
10. Conclusion → TCP/IP is prac cal and widely implemented, OSI is theore cal but important for
understanding.

ASSIGNMENT SOLUTION --- BY RUPESH BHANDARI MCS – 218 , Data Communication and Computer Networks
Q2: How does Slotted ALOHA improve the performance of the system over Pure ALOHA.

Ans :

Introduction

In computer networks, when many users share a common communication medium, one of the biggest
challenges is how to avoid collisions when two or more users try to transmit data at the same time. If collisions
are not controlled, the system becomes inefficient and a lot of bandwidth is wasted. To solve this problem,
different random access protocols have been developed. Among them, ALOHA is one of the earliest and most
famous.

ALOHA was first designed in the early 1970s at the University of Hawaii for a radio-based communication
network that connected computers across the Hawaiian Islands. The idea was very simple: whenever a station
has data to send, it just transmits the packet. If no other station transmits at the same time, the packet is
received successfully. However, if two or more stations transmit together, their packets collide, get destroyed,
and need to be retransmitted. This simple idea became the foundation for many later network access
methods like Ethernet and Wi-Fi.

There are two versions of ALOHA: Pure ALOHA and Slotted ALOHA. Pure ALOHA allows stations to transmit
at any time, which results in frequent collisions and low efficiency. Slotted ALOHA was introduced as an
improvement, where time is divided into fixed slots and stations are allowed to transmit only at the beginning
of these slots. This small modification greatly reduces the chances of collisions and almost doubles the
efficiency of the system.

Pure ALOHA

In Pure ALOHA, whenever a device has data to send, it transmits immediately without waiting. If another
device also transmits at the same time, a collision occurs and both packets are lost. The devices then wait for
a random back-off time and try again. The problem here is that the vulnerable time for collisions is quite large.
Since data can be sent at any time, the chances of overlap are high.

The efficiency of Pure ALOHA is low. Mathematically, the maximum efficiency is only about 18.4%. This means
that out of 100 packets sent, only about 18 succeed without collision.

Slotted ALOHA

Slotted ALOHA improves this situation by dividing the channel into equal time slots. Each slot corresponds to
the time required to send one packet. A station is only allowed to transmit at the beginning of a time slot. If
it misses the start, it must wait for the next slot.

This synchronization reduces the vulnerable time for collisions by half. In Pure ALOHA, the vulnerable time is
twice the frame time, but in Slotted ALOHA, it becomes only one frame time. As a result, the probability of
collisions decreases.

ASSIGNMENT SOLUTION --- BY RUPESH BHANDARI MCS – 218 , Data Communication and Computer Networks
The efficiency of Slotted ALOHA is about 36.8%, which is double that of Pure ALOHA. This makes it a much
better system for networks where multiple devices are sharing the same medium.

Pure ALOHA vs Slotted ALOHA diagram with time slots and collisions

How Slotted ALOHA Improves Performance

1. Synchronization: By forcing stations to send only at the beginning of slots, the system avoids
unnecessary overlapping.
2. Reduced Collisions: Collisions are still possible, but they occur less frequently than in Pure ALOHA.
3. Higher Efficiency: Slotted ALOHA doubles the efficiency of Pure ALOHA (36.8% vs. 18.4%).
4. Better Channel Utilization: More successful transmissions mean the channel is used more effectively.

Real-Life Example

Pure ALOHA was first used in wireless packet radio networks, but its efficiency was low. Slotted ALOHA later
became part of many systems such as satellite communication and cellular networks (GSM uses a form of
slotted ALOHA in its control channels). For example, in GSM, each mobile phone gets a slot to transmit in
order to avoid continuous collisions.

Advantages of Slotted ALOHA over Pure ALOHA

 Higher throughput (more data delivered successfully).


 Reduced collision probability.
 More predictable and stable performance.

ASSIGNMENT SOLUTION --- BY RUPESH BHANDARI MCS – 218 , Data Communication and Computer Networks
 Suitable for practical implementations like satellite and mobile systems.

Limitations of Slotted ALOHA

 Requires synchronization among all stations, which may be difficult in some networks.
 Still has a significant number of collisions, so efficiency is not 100%.
 Idle slots may waste bandwidth if no station has data to send.

Conclusion

Slotted ALOHA is a clear improvement over Pure ALOHA. By dividing the channel into slots and allowing
transmission only at the start of each slot, it reduces collisions and improves efficiency. While Pure ALOHA
achieves a maximum efficiency of 18.4%, Slotted ALOHA almost doubles it to 36.8%. This makes Slotted
ALOHA more practical for real-world communication systems like satellite networks and cellular
communication, where efficient use of bandwidth is very important.

✅ Summary in Points

1. ALOHA is a random access protocol used for sharing a channel.


2. Pure ALOHA: Stations send data anytime → high collisions → only 18.4% efficient.
3. Slotted ALOHA: Time is divided into slots → sta ons transmit only at slot start → fewer collisions.
4. Efficiency of Slotted ALOHA is about 36.8%, almost double Pure ALOHA.
5. Slotted ALOHA is used in satellite systems and GSM networks.
6. Limitation: needs synchronization but still far better than Pure ALOHA.
7. Conclusion: Slotted ALOHA improves system performance by reducing collisions and increasing
throughput.

Q3: What are various mechanisms for congestion control?


Ans :
Introduction

In computer networks, the ultimate goal is to provide fast, reliable, and efficient data communication between
devices. However, as the number of users and the amount of data increase, the network often faces a serious
problem known as congestion. Congestion occurs when the demand for network resources (like bandwidth,
buffer, or processing power) becomes higher than what the network can handle. This situation leads to packet
loss, long delays, retransmissions, reduced throughput, and even complete network collapse if not controlled.

Imagine a busy highway during rush hour. When the number of vehicles is far more than the road capacity,
traffic jams occur, making movement very slow and frustrating. Similarly, in a computer network, when too
many packets enter the system without proper regulation, congestion happens. Just like traffic rules and
ASSIGNMENT SOLUTION --- BY RUPESH BHANDARI MCS – 218 , Data Communication and Computer Networks
signals are needed to control road congestion, congestion control techniques are needed to manage network
traffic smoothly.

Congestion control is therefore one of the most important aspects of networking because it ensures that data
flows efficiently, prevents wastage of resources, and maintains fairness among users. Without it, even high-
speed networks can become unusable due to continuous collisions and delays. Different mechanisms have
been developed at both the network layer and the transport layer (especially in TCP) to deal with this problem.
Some of the common methods include open-loop techniques (which try to prevent congestion before it
happens) and closed-loop techniques (which try to control congestion once it has already started).

In this answer, we will study various mechanisms of congestion control, such as Traffic Shaping, Admission
Control, Flow Control, Retransmission Policies, Window-based control, Choke Packets, and TCP techniques like
Slow Start, Congestion Avoidance, Fast Retransmit, and Fast Recovery. Each of these plays an important role in
keeping the network healthy and avoiding breakdown due to overload.

1. Open-Loop Congestion Control (Prevention)

Open-loop methods try to prevent congestion before it happens. These mechanisms are applied at the design
stage of the network. Once implemented, they do not depend on feedback from the network.

 Traffic Shaping: Controls the rate of data entering the network. Two famous algorithms are Leaky
Bucket and Token Bucket. For example, Leaky Bucket forces data to leave at a steady rate, even if the
incoming flow is irregular.
 Admission Control: Used in virtual-circuit networks where the system decides whether to accept a
new connection or not based on available resources. If the network is already congested, new requests
are denied.
 Resource Reservation: Some protocols reserve bandwidth and buffer space in advance to prevent
congestion.

2. Closed-Loop Congestion Control (Reactive)

Closed-loop mechanisms rely on feedback from the network to detect congestion and then take steps to
reduce it. These methods are dynamic and adjust depending on current conditions.

 Backpressure: Works in virtual-circuit networks. If a node becomes congested, it stops accepting


packets and informs its upstream node to slow down. This chain reaction spreads back to the source.
 Choke Packets: A router detecting congestion sends a control packet called a choke packet to the
source, instructing it to reduce its transmission rate.
 Implicit Signaling: The network does not send an explicit signal, but congestion is inferred by the
sender through increased delays, packet loss, or timeouts.
 Explicit Signaling: The network explicitly informs the sender or receiver about congestion using special
bits in packet headers (e.g., ECN – Explicit Congestion Notification in IP).

ASSIGNMENT SOLUTION --- BY RUPESH BHANDARI MCS – 218 , Data Communication and Computer Networks
3. Congestion Control in TCP

TCP uses its own congestion control mechanisms, which are some of the most important in practice:

 Slow Start: TCP begins with a small congestion window and gradually increases it to avoid sudden
congestion.
 Congestion Avoidance: Once the threshold is reached, the congestion window grows slowly (additive
increase).
 Fast Retransmit and Fast Recovery: If packet loss is detected (a sign of congestion), TCP quickly
retransmits the packet and reduces its sending rate before gradually increasing it again.

Advantages of Congestion Control

 Prevents packet loss and delays.


 Ensures fair sharing of resources among multiple users.
 Improves throughput and efficiency of the network.
 Provides stability by avoiding overload.

Limitations of Congestion Control

 Open-loop methods may not adapt well to sudden traffic changes.


 Closed-loop methods add overhead because they require signaling.
 Some mechanisms (like backpressure) may slow down the entire network if not managed properly.

Congestion control mechanisms in computer networks diagram TCP slow start congestion avoidance fast
retransmit fast recovery

Conclusion

Congestion control is essential for smooth and efficient communication in networks. Open-loop mechanisms
prevent congestion before it occurs, while closed-loop mechanisms control it after detection. In practice, a

ASSIGNMENT SOLUTION --- BY RUPESH BHANDARI MCS – 218 , Data Communication and Computer Networks
combination of both methods is used. TCP’s congestion control techniques such as slow start, congestion
avoidance, and fast recovery are widely implemented on the internet. Effective congestion control ensures
that networks remain stable, reliable, and fair for all users.

✅ Summary in Points

1. Congestion happens when network load exceeds capacity, causing packet loss and delay.
2. Open-loop control prevents congestion using traffic shaping (leaky bucket, token bucket), admission
control, and resource reservation.
3. Closed-loop control reacts to congestion using backpressure, choke packets, implicit and explicit
signaling.
4. TCP congestion control uses slow start, congestion avoidance, fast retransmit, and fast recovery.
5. Advantages: better throughput, less packet loss, fairness.
6. Limitations: overhead, complexity, not always adaptive.
7. Conclusion: A mix of open-loop and closed-loop methods is needed for efficient congestion control.

ASSIGNMENT SOLUTION --- BY RUPESH BHANDARI MCS – 218 , Data Communication and Computer Networks

You might also like