Module 1
Module 1
COMPUTER NETWORKS
MODULE 1
1 /
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
Data communication
Networks
Network Types
Network Models
Protocol Layering
TCP/IP protocol
The OSI model
Physical layer
Transmission media
Switching 2 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
Data Communication
• Data communication is the transfer of data between the source and the receiver via
some form via some form of transmission medium such as a wire cable.
• Source transmits the data and receiver receives it.
Fundamental Characteristics
• The effectiveness of a data communication system depend on four fundamental
characteristics:
4 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
Data Flow
• The flow of data between two nodes or devices.
• The direction of data flow or Communication can
be in three forms
Simplex
Half duplex
Full duplex
5 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
Simplex mode
• One node will transmit and another node will Receive the data.
• Dataflow or Communication is unidirectional.
• Example: keyboard, monitor.
6 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
Half duplex
Data flows in both direction but one direction at a time.
7 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
FULL duplex
• Two way street, i.e. sending data and receiving data at the same time.
• Ex: Telephone network.
8 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
Data representation
Data can be represented in five formats
Text-we can send data in text format it is represented in bits format.
Images- we can send data in image format. Image is nothing but matrix of pixels.
NETWORKS
• Network is a interconnection of set of devices to communicate each other.
• Computer Network is made up of nodes and links.
NODE
It is capable of sending and receiving a data.
EX: COMPUTERS, WORKSTATION, ROUTER, SWITCHES ETC
LINK
• It carries the data or information.
• It is responsible for sending and receiving the data.
• It can be wired or wireless. Node link Node
• Wired link ex: coaxial cable, Fiber optic cable, USB cable.
• Wireless link ex: infrared, radio, microwave, satellite.
10 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
Network criteria
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
Performance:It measures how well a network can support communication between two nodes in
the Network. It is measured in many ways
– Response time: The total time a node takes to process an inquiry or a request from another
node/ device and respond.
– Throughput: Throughput measures how much data is transferred successfully from the
sender node to the receiver node in a particular time frame.
– Delay: Delay is the measure of time taken to do the delivery.
11 //skit.org.in
06/25/2025 skit.org.i
Types of connection
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
Point to point
• Dedicated link between two devices.
• The entire channel capacity is reserved only for two
devices in the connection.
• Use actual length of wire to connect two ends.
• There is a single transmitter and a single receiver.
• Ex: Tv and remote for wireless.
12 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
Technology
Karnataka) Multipoint connection
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
13 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
TOPOLOGY
15 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka) Advantages of bus topology
• It works very efficiently well when there is a small network.
• Very cost-effective as compared to other network topology.
• Easy to expand by joining the two cables together.
RING TOPOLOGY
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
17 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka) Advantages of Ring Topology
• Due to the presence of token passing the performance of ring topology becomes
better than bus topology under heavy traffic.
• All node have equal access.
18 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
STAR TOPOLOGY
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
• A Star topology is a type of network topology in which all the devices or nodes are
physically connected to a central node hub.
• All the data or traffic must pass through the hub or switch.
19 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka) Advantages of Star Topology
• Easy to design and develop
• Fault identification is easy.
• Centralized management.
• A device failure (computer, cable) doesn't damage the entire network.
21 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
Advantages
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka) of Mesh Topology
• Data can be transmitted from different devices simultaneously. It can withstand high
traffic.
• Failure during a single device won’t break the network.
• Fault tolerant and reliable :Even if one connection breaks, the network keeps sending data
through other paths.
• It provides high privacy and security.
22 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
Technology
Karnataka)
NETWORK TYPES
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
23 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
• Technology
LAN can be connected in two ways
Karnataka)
24 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka) Wide Area Network(WAN)
A wide area network is a telecommunication network that extends over a large
geographical area for the primary purpose of networking.
Telecommunication network -Any communication at a distance.
WAN is a interconnection of devices capable of communication.
Here two or more LAN’s within a country can communicate with each other.
25 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
SWITCHING
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
26 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
Technology
Karnataka) CIRCUIT-SWITCHED NETWORK
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
27 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
EX: Telephone network connection.
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
28 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
CIRCUIT-SWITCHING PROPERTIES
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
In Efficiency
• If no data, capacity is wasted
channel capacity is dedicated for the whole duration of a
connection
Delay
• Long initial delay-circuit establishment takes time.
• Low data delay-after circuit establishment, information is
transmitted at a fixed rate.
29 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
PACKET-SWITCHED NETWORK
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
• In Packet Switched Network a small units of data called packets are routed
through a network based on the destination address contained within each
packet.
• Each time one device sends a file to another, it breaks the file down into
packets so that it can determine the most efficient route for sending the data
across the network at that time.
• In packet switching no resource allocation for a packet. Resources are allocated
on demand.
30 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
Technology
Karnataka) INTERNET
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
31 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
Technology
Karnataka)
Accessing the Internet
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
33 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Second Scenario
Technology
Karnataka)
34 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
Principles of Protocol Layering
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
Frist principle
Both layers need to perform two opposite tasks.
1. First layer is to send and receive mail.
2. Second layer is to encrypt and decrypt.
3. Third layer is to listen or talk.
Logical connection
An imaginary connection established at each layer through which they can send
the object created from that layer.
35 //skit.org.in
06/25/2025 skit.org.i
TCP/IP Protocol suite
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
• This model defines how data is transmitted over networks, ensuring reliable
communication between devices.
• The TCP/IP model consists of five layers: the application layer, transport layer,
network layer, data link layer and physical layer.
• TCP/IP is a hierarchical protocol made up of interactive modules, and each of them
provides specific functionality..
• It is named from two important protocols in it
• Transmission control protocol(TCP)
• Internet protocol (IP)
36 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
37 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
Physical layer
38 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of Network Layer
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
• IP protocol is used in this layer, and it is the most significant part of the entire TCP/IP suite.
• Following are the responsibilities of this protocol:
• IP Addressing: This protocol implements logical host addresses known as IP addresses. The IP
addresses are used by the internet and higher layers to identify the device and to provide
internetwork routing.
• Host-to-host communication: It determines the path through which the data is to be
transmitted.
• Data Encapsulation and Formatting: An IP protocol accepts the data from the transport layer
protocol. It encapsulates the data into message known as IP datagram.
• Routing: it is responsible for routing packet from source to its destination, which can be
accomplished by routing the IP datagram
40 through various devices such as routers. //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
ARP
• ARP stands for Address Resolution Protocol.
• ARP is a network layer protocol which is used to find the physical address from the IP
address.
ICMP
• ICMP stands for internet control message protocol.
• It stands for Internet Control Message Protocol and notification regarding datagram
problems can be sent back to the user using this. Any issue with the network is
immediately notified to the user by ICMP. It can only inform the user about the errors
and cannot rectify the problem
41 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of Transport Layer
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
world wide web. It transfers the data in the form of plain text, audio, video.
• SNMP: SNMP stands for Simple Network Management Protocol.it is used by administrator to manage
44 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
• SMTP: SMTP stands for Simple mail transfer protocol. Used in electronic mail
service.
• DNS: DNS stands for Domain Name System. It is used by other protocols to find
• FTP: FTP stands for File Transfer Protocol. FTP is a standard internet protocol
used for transmitting the files from one computer to another computer.
45 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Encapsulation
Technology
Karnataka)
The process of adding headers and trailers around data being sent
through a network. At source we have only encapsulation.
At Application layer: data to be exchanged is called as message, it
doesn’t contain any header and trailer. This message is passed to
transport layer.
At 46 //skit.org.in
Transport layer: It takes message as payload, adds header and
06/25/2025 skit.org.i
Decapsulation and Encapsulation at router
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
• Decapsulation: the reverse process of encapsulation occurs when data is received on the
destination computer.
• At router we have both encapsulation and decapsulation.
• Data link layer receives set of bits, it decapsulates frame into datagram and passes to
network layer.
• At network layer it only inspects source and destination address and consults its forwarding
table to find next hop. The datagram is passed to datalink layer of the next link.
• The data link layer of next link encapsulates the datagram and passes it to physical layer
for transmission.
Decapsulation at destination
• At destination each layer decapsulates the packet received.
• Removes the payload and deliver packet to next higher layer protocol until message
reaches the application layer.
47 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
ADDRESSING
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
48 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of Multiplexing and
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
demultiplexing
Karnataka)
The TCP/IP protocol suite uses several protocols at some layer. We have multiplexing at source and
demultiplexing at destination.
Multiplexing means the protocol at a layer can encapsulate a packet from several next higher layer
protocols.
Demultiplexing means the protocol can decapsulate and send a packet to several next higher layer protocols.
49 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
OSI MODEL
• OSI stands for Open System Interconnection is a reference model that
describes how to facilitate communication between different systems without
requiring changes to the logic of the underlying hardware or software.
• OSI model was developed by the International Organization for Standardization
(ISO) in 1984, and it is now considered as an architectural model for the inter-
computer communications.
• OSI consists of seven layers, and each layer performs a particular network
function.
• OSI model divides the whole task into seven smaller and manageable tasks.
Each layer is assigned a particular task.
• Each layer is self-contained, so that task assigned to each layer can be
performed independently.
50 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Layers of OSI Model
Technology
Karnataka)
There are the seven OSI layers. Each layer has different functions. A list of seven
layers are given below:
1. Physical Layer
2. Data-Link Layer
3. Network Layer
4. Transport Layer
5. Session Layer
6. Presentation Layer
7. Application Layer
• Each layers are related and each of which defines a part of the process of moving
51 //skit.org.in
06/25/2025
information across the network. skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka) OSI VERSUS TCP/IP
The biggest difference between the OSI and TCP/IP models is the OSI model has seven
layers instead of five. Although both the TCP/IP and OSI models transport data, the
ways they send it are slightly different.
The session and presentation layers are separate
in OSI Model, but in TCP/IP model they are not
distinguished.
TCP/IP model, the transport layer has more than
One protocol, so some functionalities of session
Layer are available in some
transport layer protocol.
52 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, PACKET SWITCHING
Technology
Karnataka)
The packet switching is a switching technique in which the message is divided into
packets, and they are sent individually which allow faster and efficient data transfer.
Two types of packet switched networks:
1.Datagram network
2.Virtual circuit network
53 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Datagram Network:
Technology
Karnataka)
54 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
• Technology
Problems
Karnataka)
during data transmission
• Datagrams can arrive out of order with different delays between the packets.
• Packets may also be lost or dropped because of lack of resources.
• In most protocols it is the responsibility of the upper layer protocol to reorder the
datagrams or ask for lost datagrams before passing them on to the application.
• There are no setup or teardown phases.
• How are the packets routed to their destination??
55 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
Routing table in a datagram network
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
• Each packet switch has a routing table which is based on the destination address.
• The routing tables are dynamic and are updated periodically.
• The destination addresses and the corresponding forwarding output ports are
recorded in the tables.
• The destination address in the header of a packet in a datagram network remains
the same during the entire journey of the packet.
• When the switch receives the packet, this destination address is examined, the
routing table is consulted to find the corresponding port through which the packet
should be forwarded.
56 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
EFFICIENCY
• Better than circuit switched network
• Resources are allocated only when there are packets to be
transferred.
• If a source sends a packet and there is a delay of few minutes
before another packet can be sent, the resources can be
reallocated during these minutes for other packets from other
sources.
• Switching in the internet is done by using the datagram
approach to packet switching at the network layer.
57 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of Delay in datagram
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
network
Karnataka)
58 //skit.org.in
06/25/2025 skit.org.i
Virtual circuit switching
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Network
Karnataka)
Charateristics:
• Packets form a single message travel along the same path.
• Three phases to transfer data(setup, data transfer and tear down)
• Resources can be allocated during setup phase.
• Data are packetized and each packet carries an address in the header
• Implemented in data link layer. 59 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
Virtual circuit switching Network Addressing
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
Global addressing
• Source and destination needs unique addresses(used by the switches
only to create a virtual circuit identifier) during the set up phase.
• switches.
60 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
Setup request
• The switch, in the setup phase acts as a packet switch, it has a routing table used to know the output
port number //skit.org.in
06/25/2025 61
skit.org.i
Setup Acknowledgement
Sri Krishna Institute of
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
62 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
Data transfer and tear down phase
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
• After sending all frames, a special frame is send to end the connection.
• Destination B responds with tear down confirmation frame .
63 //skit.org.in
06/25/2025 skit.org.i
Sri Krishna Institute of
Delay in virtual circuit Network
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU,
Technology
Karnataka)
64 //skit.org.in
06/25/2025 skit.org.i