DATA COMMUNICATION AND NETWORKING
Unit-1
Q.1. Explain TCP\IP reference model in details with
proper diagram?
Ans-- The TCP/IP model is a framework that is used to model
the communication in a network. It is mainly a collection of
network protocols and organization of these protocols in
different layers for modeling the network.
Layers of TCP/IP Model
1. Application Layer
The Application Layer is the top layer of the TCP/IP model and
the one closest to the user. This is where all the apps you use
like web browsers, email clients, or file sharing tools connect to
the network. It acts like a bridge between your software (like
Chrome, Gmail, or WhatsApp) and the lower layers of the
network that actually send and receive data.
Applications
• Web Browsing → HTTP/HTTPS used in browsers (Chrome,
Edge, Firefox).
• Email Services → SMTP, IMAP, POP3 (used in Gmail,
Outlook, Yahoo Mail).
• File Transfer → FTP, SFTP for transferring files over a
network.
• Remote Access → SSH, Telnet for remotely accessing
servers.
• Domain Resolution → DNS converts website names to IP
addresses.
2. Transport Layer
The Transport Layer is responsible for making sure that data is
sent reliably and in the correct order between devices. It checks
that the data you send like a message, file, or video arrives
safely and completely. This layer uses two main protocols: TCP
and UDP, depending on whether the communication needs to
be reliable or faster.
Applications
• Reliable Communication → TCP ensures correct delivery
of messages (used in chats, banking apps, file downloads).
• Streaming & Gaming → UDP provides fast communication
for online games, video calls (Zoom, Google Meet, PUBG,
etc.).
• Error Control & Flow Control → Ensures that data arrives
correctly and in the right order.
3. Internet Layer
The Internet Layer is used for finding the best path for data to
travel across different networks so it can reach the right
destination. It works like a traffic controller, helping data
packets move from one network to another until they reach the
correct device. This layer uses the Internet Protocol (IP) to give
every device a unique IP address, which helps identify where
data should go.
Applications
• Logical Addressing → Assigning unique IP addresses
(IPv4/IPv6) to each device.
• Routing → Routers use IP to send packets from one
network to another (e.g., your request from India to a US
server).
• Network Diagnostics → ICMP used in tools like ping and
traceroute for troubleshooting.
4. Network Access Layer
The Network Access Layer is the bottom layer of the TCP/IP
model. It deals with the actual physical connection between
devices on the same local network like computers connected
by cables or communicating through Wi-Fi. This layer makes
sure that data can travel over the hardware, such as wires,
switches, or wireless signals.
Applications
• LAN/WAN Communication → Ethernet, Wi-Fi, Bluetooth
for physical connectivity.
• Data Framing & MAC Addressing → Helps devices identify
each other in a local network.
• Mobile Communication → 4G/5G networks use this layer
to physically transmit signals.
Advantages of TCP/IP Model
• Interoperability : The TCP/IP model allows different types
of computers and networks to communicate with each
other, promoting compatibility and cooperation among
diverse systems.
• Scalability : TCP/IP is highly scalable, making it suitable for
both small and large networks, from local area networks
(LANs) to wide area networks (WANs) like the internet.
• Standardization : It is based on open standards and
protocols, ensuring that different devices and software can
work together without compatibility issues.
• Flexibility : The model supports various routing protocols,
data types, and communication methods, making it
adaptable to different networking needs.
• Reliability : TCP/IP includes error-checking and
retransmission features that ensure reliable data transfer,
even over long distances and through various network
conditions.
Disadvantages of TCP/IP Model
• Security Concerns : TCP/IP was not originally designed
with security in mind. While there are now many security
protocols available (such as SSL/TLS), they have been
added on top of the basic TCP/IP model, which can lead to
vulnerabilities.
• Inefficiency for Small Networks : For very small networks,
the overhead and complexity of the TCP/IP model may be
unnecessary and inefficient compared to simpler
networking protocols.
• Limited by Address Space : Although IPv6 addresses this
issue, the older IPv4 system has a limited address space,
which can lead to issues with address exhaustion in larger
networks.
• Data Overhead : TCP the transport protocol, includes a
significant amount of overhead to ensure reliable
transmission
Q.2. What do you mean by ISO-OSI reference model?
Explain function, service, and protocol of each layer.
Ans- The OSI (Open Systems Interconnection) Model is a set of
rules that explains how different computer systems
communicate over a network. OSI Model was developed by
the International Organization for Standardization (ISO). The
OSI Model consists of 7 layers and each layer has specific
functions and responsibilities.
Layers of the OSI Model
1: Physical Layer
The lowest layer of the OSI reference model is the Physical
Layer. It is responsible for the actual physical connection
between the devices. The physical layer contains information in
the form of bits.
Functions of the Physical Layer
• Bit Synchronization:
• Bit Rate Control:
• Physical Topologies:
• Transmission Mode
Protocols/Standards:
• Ethernet (physical specification)
• RS-232
• DSL
• USB
• Bluetooth, Wi-Fi (PHY layer specs)
2: Data Link Layer (DLL)
The data link layer is responsible for the node-to-node delivery
of the message. The main function of this layer is to make sure
data transfer is error-free from one node to another, over the
physical layer.
Functions of the Data Link Layer
• Framing
• Physical Addressing:
• Error Control:
• Flow Control:
• Access Control:
Protocols/Technologies:
Ethernet (IEEE 802.3)
PPP (Point-to-Point Protocol)
HDLC (High-Level Data Link Control)
ARP (Address Resolution Protocol)
Wi-Fi (IEEE 802.11)
3: Network Layer
The network layer works for the transmission of data from one
host to the other located in different networks.
Functions of the Network Layer
• Routing:
• Logical Addressing:
Protocols:
• IP (IPv4, IPv6)
• ICMP (Internet Control Message Protocol)
• RIP, OSPF, BGP (Routing Protocols)
• IPsec (for security)
4: Transport Layer
The transport layer provides services to the application
layer and takes services from the network layer. The data
in the transport layer is referred to as Segments. It is
responsible for the end-to-end delivery of the complete
message.
Functions of the Transport Layer
• Segmentation and Reassembly:
• Service Point Addressing:
Protocols:
TCP (Transmission Control Protocol – reliable, connection-
oriented).
UDP (User Datagram Protocol – fast, connectionless,
unreliable).
SCTP (Stream Control Transmission Protocol).
5: Session Layer
Session Layer in the OSI Model is responsible for the
establishment of connections, management of connections,
terminations of sessions between two devices.
Functions of the Session Layer
• Session Establishment, Maintenance, and Termination:
• Synchronization:
• Dialog Controller:
Protocols:
• NetBIOS
• RPC (Remote Procedure Call)
• PPTP (Point-to-Point Tunneling Protocol)
6: Presentation Layer
The presentation layer is also called the Translation layer. The
data from the application layer is extracted here and
manipulated as per the required format to transmit over the
network.
Functions of the Presentation Layer
• Translation
• Encryption/ Decryption:
• Compression:
Protocols/Standards:
SSL/TLS (encryption for secure communication)
JPEG, PNG, GIF (image formats)
MPEG, MP3 (audio/video formats)
7: Application Layer
At the very top of the OSI Reference Model stack of layers, we
find the Application layer which is implemented by the network
applications.
Functions of the Application Layer
• Network Virtual Terminal (NVT):
• File Transfer Access and Management (FTAM):
• Mail Services:
• Directory Services:
Protocols
HTTP/HTTPS (Web browsing)
FTP (File Transfer)
SMTP, POP3, IMAP (Email services)
DNS (Domain Name System)
SNMP (Network Management)
Q.3. What do you mean by computer network and its
types? What is their application? also explain
advantages and disadvantages.
Ans-- A computer network is a system where two or more
computers or devices are connected together to share
resources, data, files, and services (like printers, internet, etc.).
🔹 Applications of Computer Networks
• Communication: Emails, video conferencing, instant
messaging.
• Resource Sharing: Printers, files, internet connection.
• E-commerce: Online shopping, digital banking.
• Education: Online classes, e-learning platforms.
• Entertainment: Streaming movies, online gaming.
• Business: Cloud computing, remote working, data sharing.
• Research: Collaboration between researchers across the
world.
Types of Computer Networks
1. Personal Area Network (PAN)
PAN is the most basic type of computer network. It is a type of
network designed to connect devices within a short range,
typically around one person. It allows your personal devices,
like smartphones, tablets, laptops, and wearables, to
communicate and share data with each other.
2. Local Area Network (LAN)
LAN is the most frequently used network. It is a computer
network that connects computers through a common
communication path, contained within a limited area, that is,
locally. A LAN encompasses two or more computers connected
over a server.
4. Metropolitan Area Network (MAN)
A MAN is larger than a LAN but smaller than a WAN. This is the
type of computer network that connects computers over a
geographical distance through a shared communication path
over a city, town, or metropolitan area.
5. Wide Area Network (WAN)
WAN is a type of computer network that connects computers
over a large geographical distance through a shared
communication path. It is not restrained to a single location but
extends over many locations.
🔹 Advantages of Computer Networks
1. Resource Sharing (printers, files, software, internet).
2. Improved Communication (email, chat, video calls).
3. Centralized Data (easy backup and management).
4. Cost Efficiency (shared resources reduce costs).
5. Remote Access (work from anywhere via VPN/Internet).
6. Collaboration (teams can work together easily).
🔹 Disadvantages of Computer Networks
1. Security Issues (hacking, viruses, data theft).
2. High Setup Cost (hardware, cabling, configuration).
3. Maintenance Required (network administrators needed).
4. Risk of Data Loss if the server crashes.
5. Network Congestion (slow speed if too many users).
6. Unauthorized Access without proper firewalls.
Q.4. What is network topology? What are the various
types of network topology?
Ans--In Computer Networks, Network Topology is the
arrangement of the various elements of a communication
network. Network Topology is a topological structure of a
network and may be depicted physically or logically.
Network Topology is divided into two types:
• Physical Topology: Physical topology indicates the
arrangement of different elements of a network. It reflects
the physical layout of devices and cables to form a
connected network.
• Logical Topology: Logical topology defines the path that
data packets take as they travel through the network
independent of its physical layout.
📌 Applications of Network Topology in Computer Networks
[Link] Communication → Determines the best path for data
transfer.
[Link] → Helps in expanding networks (e.g., star and tree
topologies are easy to scale).
[Link] Tolerance & Reliability → Mesh topology provides
redundancy in case of link failures.
[Link] Performance → Star topology improves performance
since each node has a dedicated link.
[Link] Optimization → Bus topology is cost-effective for small
networks.
[Link] Structure → Tree and hybrid topologies help in
structuring large enterprise networks.
[Link] & Management → Centralized topologies (like star)
make it easier to monitor and secure.
Types of Network Topology
1. Mesh Topology
In Mesh Topology, every node has a dedicated point-to-point
link in every other node. Such a network is called complete
because, for any two devices, there is a special link and non-
redundant links cannot be added to the main network.
2. Star Topology
In a Star Topology, all the nodes (PCs, printers and peripherals)
are connected to the central server. It has a central connection
point, like a hub or switch. In star topology .each device is
connected with central hub.
3. Bus Topology
In bus topology, all stations are attached to the same cable. In
the bus network, messages are sent to both directions from a
single point. In the bus topology, signals are broadcast to all
stations.
4. Ring Topology
All the nodes in a Ring Topology are connected in a closed circle
of cable. Messages that are transmitted travel around the ring
unit they are addressed to, the signal being refreshed by each
node. In a ring network, every device has exactly two neighbors
for communication purposes.
5. Tree Topology
In tree topology nodes are connected in a hierarchical structure
to form a tree. There is a root node in tree topology and the
remaining nodes are considered as child nodes, basically it is a
combination of star and bus topology.
6. Hybrid Topology
Hybrid topology is the combination of two or more types of
topology, they arise from the integration of multiple network
topologies that is why called Hybrid Network Topology.
Q.5. What do you mean by network protocol? How
there is useful? Explain types of network protocol
Anss-- A network protocol is a set of rules that govern data
communication between different devices in the network. It
determines what is being communicated, how it is being
communicated, and when it is being communicated. It permits
connected devices to communicate with each other,
irrespective of internal and structural differences.
Real-World Applications of Network Protocols
1. Internet Browsing: Protocols like HTTP and DNS help users
navigate websites.
2. Email Communication: SMTP and IMAP are key protocols
used for sending and receiving emails.
3. File Sharing: FTP and SMB protocols facilitate file transfers.
4. Secure Communication: SSL/TLS and SSH guarantee
encrypted data exchanges.
5. Video Streaming: Protocols such as RTSP and RTP handle
real-time media delivery.
6. Gaming: UDP ensures low-latency communication for
online gaming experiences.
Why are Network Protocols Useful?
Enable Communication – Allow devices from different
manufacturers to communicate.
Ensure Accuracy – Provide error detection, correction, and
reliable transmission.
Provide Security – Encrypt data and prevent unauthorized
access.
Support Standardization – Ensure global compatibility between
systems.
Optimize Performance – Manage data flow to avoid congestion
and improve speed.
Types of Network Protocols
1. Network Communication
Communication protocols are really important for the
functioning of a network. They are so crucial that it is not
possible to have computer networks without them. These
protocols formally set out the rules and formats through which
data is transferred. These protocols handle syntax, semantics,
error detection, synchronization, and authentication. Below
mentioned are some network communication protocol:
Hypertext Transfer Protocol(HTTP)
Transmission Control Protocol(TCP)
User Datagram Protocol(UDP)
Border Gateway Protocol(BGP)
Address Resolution Protocol(ARP)
Internet Protocol(IP)
2. Network Management
These protocols assist in describing the procedures and policies
that are used in monitoring, maintaining, and managing the
computer network.
Internet Control Message Protocol(ICMP)
Simple Network Management Protocol(SNMP)
File Transfer Protocol(FTP)
Post Office Protocol(POP3)
3. Network Security
These protocols secure the data in passage over a network.
These protocols also determine how the network secures data
from any unauthorized attempts to extract or review data.
Secure Socket Layer(SSL)
Hypertext Transfer Protocol(HTTPS)
Transport Layer Security(TLS)
Advantages → Standardization, reliability, security, efficiency,
interoperability. Disadvantages → Complexity, overhead,
security risks, latency, and compatibility issues.
Q.6. What is Peer-to-Peer network model? Also its adv.
And disadv.
Ans-- A Peer-to-Peer (P2P) network model is a type of
computer network where each computer (peer) acts as both a
client and a server. Instead of relying on a central server, peers
share resources (like files, storage, or processing power) directly
with each other.
Types of P2P Networks
• Unstructured P2P Networks:
• Structured P2P Networks:
• Hybrid P2P Networks:
🔹 Features of P2P Network:
No central server → every device can request and provide
services.
All devices have equal status.
Easy to set up for small networks.
Resources like files, printers, and internet connections can be
shared directly.
Applications of P2P Network
Below are some of the common uses of P2P network:
• File Sharing:
• Blockchain:
• Direct Messaging:
• Collaboration:
• File Sharing Networks:
• Content Distribution
• IP Telephony:
Advantages of P2P Network
• Easy to Maintain:
• Less Costly:
• No Network Manager:
• Adding Nodes is Easy:
• Less Network Traffic:
Disadvantages of P2P Network
• Data is Vulnerable:
• Less Secure:
• Slow Performance:
• Files Hard to Locate: