Unit-1, BCS603, Computer Network
Unit-1, BCS603, Computer Network
When two or more computers are connected together (wired or wireless) for the purpose of sharing
resources (sharing resources like video, audio, text, files, images, pdf, document etc.) is known as
Computer Network.
Types of Networks:
Wired Network: A wired network uses physical cables, like copper or fiber optic wires, to connect
devices to the internet or other networks. Devices such as laptops and desktop computers use these
cables to communicate.
Wireless Network: A wireless network does not need physical cables. It uses signals like radio
waves, microwaves or infrared to transmit data. Devices such as smartphones, Wi-Fi-enabled laptops,
and TV remotes use antennas to send and receive signals wirelessly, allowing communication without
any physical connections, also some wireless technologies like satellite communications and some
wireless internet connections, providing fast data transfer over long distances.
Sharing Information: Computer networks help different devices (like computers, phones, or
printers) share information with each other. This can be files, emails, or even messages.
Resource Sharing: Devices on a network can share resources like printers, storage, or internet
connection. This means you don‟t need separate devices for everything.
Communication: Networks allow people to communicate with each other, whether it's through
emails, messages, or video calls. This is really helpful for talking to people far away without needing
to travel, so you don‟t have to spend money on travel.
Access to Remote Services: With a network, you can access services or information stored on
other computers even if they are far away. This is like using the internet to visit websites or access
cloud storage.
Security: Networks aim to keep the data safe by protecting it from unauthorized access, using
passwords, encryption, and other methods.
Reliability: A good network ensures that data can be sent and received correctly, even if some
parts of the network fail.
Saving Costs: Computer networks save money because you can share things, talk to people, and
use services without traveling expenses.
Categories of Network
3. Based on Functionality:
Client-Server: Clients request services from servers.
Peer-to-Peer (P2P): Devices share resources directly.
5. Based on Protocols:
Ethernet, Wi-Fi, Bluetooth, VPN: Different technologies for communication.
6. Based on Security:
Private Network: Secure, restricted access.
Organization of Internet
The Internet is organized into several key layers and components:
1. Physical Infrastructure: Includes cables, routers, switch, hubs, computers, data centers, and
satellite systems that make up the physical network connecting the world.
2. Internet Service Providers (ISPs): Companies that provide users with access to the Internet,
managing regional networks and offering connectivity.
3. Protocols: Standards like TCP/IP (Transmission Control Protocol/Internet Protocol) and
HTTP/HTTPS that define how data is transmitted and accessed across the network.
4. Domain Name System (DNS): Translates human-readable domain names (e.g.,
www.example.com) into IP addresses that computers use. (DNS is use to convert names to IP
and IP to names).
5. Governance Bodies: Key organizations like ICANN (for domain names), IETF (for
standards), and W3C (for web technologies) oversee the Internet's functioning and
development.
6. Security: Protocols like SSL/TLS, firewalls, and cyber security measures protect data and
ensure privacy.
7. Content Delivery: by using Websites, cloud services, and applications we can easily deliver
the content to users.
8. Applications: Platforms like search engines, social media, email, and online services (e.g.,
Google, Amazon) operate on top of the Internet, offering interactive and informational
services.
Working of ISP:
Getting Connected: When you sign up with an ISP, they provide you with a way to connect
to the Internet, usually through a cable, fiber-optic line, or wireless network.
IP Address: They give your device (like your phone or computer) a unique number called an
IP address so it can talk to other devices online.
Speed and Service: ISPs offer different speeds and plans. For example, some plans let you
stream movies quickly, while others are slower and better for checking emails or browsing.
1. Wi-Fi (wireless internet): Connecting to the internet through a router in your home.
Notes by Professor Tanya Shrivastava
Notes by Professor Tanya Shrivastava
2. Cable or Fiber-Optic: Fast internet connections that come through cables plugged into your
home.
3. Mobile Internet: Internet through your phone or mobile device using 4G or 5G networks.
Examples of ISPs:
Comcast (USA)
AT&T (USA)
Verizon (USA)
BT Group (UK)
Vodafone (Global)
Sky (UK)
Airtel (India)
• Local Area Networks are used to connect Interconnection of PCs and other Network devices
that are very close together in a limited area such as a floor of a building, a building itself or
within a campus.
• Metropolitan Area Network is used to connect networking devices that may span around the
entire city or within a city.
• Wide Area Networks which connects two or more LANs present at different geographical
locations like Country or Satellite Communication.
• Campus Area Network was shortly called the CAN. Office, school, any area that presented at
a limited distance is called the campus. The providing of the network at a particular location
is called a Campus Area Network.
Notes by Professor Tanya Shrivastava
Notes by Professor Tanya Shrivastava
• It is the collection of multiple buildings or houses at a particular within the particular area.
• Example - university campus or school campus, the whole campus is connected through the
Internet.
• A personal area network (PAN) connects electronic devices within a user's immediate area.
• The size of a PAN ranges from a few centimeters to a few meters.
• One of the most common real-world examples of a PAN is the connection between a
Bluetooth earphone and a smartphone.
• PANs can also connect laptops, tablets, printers, keyboards, and other computerized devices.
• PAN network connections can either be wired or wireless.
• Wired connection methods include USB and FireWire.
• Wireless connection methods include Bluetooth, Hotspot etc. For instance, a desktop
computer, a wireless mouse, and wireless headphones can all be connected to each other.
Personal Area Network can be of 2 types depending upon its connection i.e., Wireless PAN, and
Wired PAN.
1. Wireless PAN –
Wireless Personal Area Network (WPAN) is connected through signals such as Hotspot,
Bluetooth etc.
2. Wired PAN –
Wired PAN is connected through cables/wires such as mobile connected through laptop, wired
earphone connected with mobile, Firewire or USB (Universal Serial Bus).
Unicast
Multicast
Broadcast
Anycast
• A Unicast communication is from one device on the network to another device on the
network.
• One to One Communication between sender and receiver.
• A Multicast communication is from one device on the network to many, but not all, devices
on the network.
• One to Many Communication between sender and multiple receivers.
• A Broadcast communication is from one device on the network to all devices on the
network.
• One to all Communication between sender and multiple receivers.
An Anycast communication is from one device on the network to many devices on the
network.
Communication between one sender and multiple receivers, but data is send to the nearest
node first.
Simplex Communication.
Half – duplex Communication.
Full – duplex Communication.
It is two way or bidirectional communication between two devices in which both the devices
can send and receive data or control signals in both directions, but not at the same time.
While one device is sending data, the other one will receive and vice-versa. Vehicles cannot
pass the bridge simultaneously.
Basically, it is a simplex channel where the direction of transmission can be switched.
Application of such type of communication can be found in walkie-talkie where one can
press the push-to-talk button and talk. This enables the transmitter and turns off the receiver
in that device and others can only listen.
Full-duplex Communication: (Two way communication but both at the same time)
It is two way or bidirectional communications in which both devices can send and receive
data simultaneously.
It is like a two way road where vehicles can go in both directions at the same time.
This type of communication channel is employed to allow simultaneous communication, for
example, in our mobile phones and landline telephones.
OSI Model
ISO – OSI Reference Model
There are 7 layers in OSI Reference Model:
Application Layer
Presentation Layer
Session Layer
Transport Layer
Network Layer
Data Link Layer
Physical Layer
OSI stands for Open Systems Interconnection. It has been developed by ISO – „International
Organization for Standardization„, in the year 1984. It is 7 layer architecture with each layer
having specific functionality to perform. All these 7 layers work collaboratively to transmit the
data from one person to another across the globe.
OSI mainly defines the relationship between layers over the internet.
The main purpose of OSI model is to transfer digital data among the 7 layers. If you send message
from one place to another, so that message will travel from all the layers of OSI model securely.
In OSI reference model all the 7 layers are separated because if an error occurs in one layer, then
that error does not cause problems in other layers because they are separated, therefore, we will
solve the layer, in which error occurs.
Receiver Side: Physical layer to Application layer: Bits converted into Frames, Frames converted
into Packets, Packets converted into Segment, Segment converted into Data.
Sender Side: Application layer to Physical layer: Data converted into Segments, Segments
converted into Packets, Packets converted into Frames, Frames converted into Bits.
Note:
Physical layer, Data link layer, Network layer are lower layers or we can say hardware
layers of OSI model.
Session layer, Presentation layer, Application layer are upper layers or we can say software
layers of OSI model.
The lowest layer or first layer of the OSI reference model is the physical layer.
Coverts bits into electrical signals.
Physical layer is a hardware layer because it contains hub, repeater, modem, cables,
computers etc.
The physical layer contains information in the form of bits.
Contains bits.
It is responsible for the actual physical connection between the devices.
It is responsible for transmitting individual bits from one node to the next.
When receiving data, this layer will get the signal received and convert it into 0s and 1s and
send them to the Data Link layer, which will put the frame back together.
The data link layer is responsible for the node-to-node delivery of the message.
The lowest layer or second layer of the OSI reference model is the data link layer.
Physical layer contains data in the form of bits and when that data moves from
physical layer to data link layer that bits converted into frames.
Error control and Flow control at local level.
Data link layer is a hardware layer because it contains Switch and Bridge.
Contains MAC address.
Contain frames.
The main function of this layer is to make sure data transfer is error-free from one node to
another, over the physical layer.
When a packet arrives in a network, it is the responsibility of DLL to transmit it to the Host
using its MAC address.
4. Flow Control: The data rate must be constant on both sides else the data may get corrupted
thus, flow control coordinates the amount of data that can be sent before receiving
acknowledgement.
5. Access control: When a single communication channel is shared by multiple devices, the
MAC sub-layer of the data link layer helps to determine which device has control over the
channel at a given time.
The lowest layer or third layer of the OSI reference model is the data link layer.
Data link layer contains frames, when that data moves from data link layer to
network layer that frames converted into packet.
Router, IP and Routing is done in this layer.
Host to host Communication.
Fragmentation – Divide the data into parts.
Network layer is a hardware layer because it contains Router that performs routing.
Contains packets.
Contains IP.
The network layer works for the transmission of data from one host to the other located in
different networks.
It also takes care of packet routing i.e. selection of the shortest path to transmit the packet,
from the number of routes available.
The sender & receiver‟s IP addresses are placed in the header by the network layer.
The functions of the Network layer are :
1. Routing: The network layer protocols determine which route is suitable from source to
destination. This function of the network layer is known as routing. Routing can be done by
using router.
2. Logical Addressing (IP): In order to identify each device on internetwork uniquely, the
network layer defines an addressing scheme. The sender & receiver‟s IP addresses are placed
in the header by the network layer. Such an address distinguishes each device uniquely and
universally.
The fifth layer of the OSI reference model is the Session layer.
Manage session or communication between two parties.
Contains DATA.
All the below 3 layers (including Session Layer) are integrated as a single layer in the TCP/IP
model as “Application Layer”.
Implementation of these 3 layers is done by the network application itself. These are also known
as Upper Layers or Software Layers.
Scenario:
Let us consider a scenario where a user wants to send a message through some Messenger
application running in his browser. The “Messenger” here acts as the application layer which
provides the user with an interface to create the data. This message or so-called Data is
compressed, encrypted (if any secure data), and converted into bits (0‟s and 1‟s) so that it can be
transmitted.
The presentation layer is also called the Translation layer or Syntax layer.
The sixth layer of the OSI reference model is the Presentation layer.
Contains DATA.
Contains encryption and decryption.
The data from the application layer is extracted here and manipulated as per the required
format to transmit over the network.
The functions of the presentation layer are:
Translation: physical layer plays a role of translator to receive and transfer the data.
Encryption/ Decryption: Data encryption translates the data into another form or code. The
encrypted data is known as the cipher text and the decrypted data is known as plain text. A key
value is used for encrypting as well as decrypting data.
Compression: Reduces the number of bits that need to be transmitted on the network.
Note: OSI model is the new model and TCP/IP is the old model, we will learn OSI model first but
actually TCP/IP model comes first, and then OSI model. OSI model is a theoretical model but
TCP/IP model is a practical model.
Host-to-Network Layer/Network interface −It is the lowest layer that is concerned with the
physical transmission of data. It is a combination of Physical layer and Data link layer.
TCP/IP does not specifically define any protocol here but supports all the standard protocols.
Internet Layer – In case of TCP/IP model Network layer is known as Internet Layer. It
defines the protocols for logical transmission of data over the network. The main protocol in
this layer is Internet Protocol (IP) and it is supported by the protocols ICMP, IGMP,
RARP, and ARP.
Transport Layer − It is responsible for error-free end-to-end delivery of data. The protocols
defined here are Transmission Control Protocol (TCP) and User Datagram Protocol
(UDP).
Application Layer − this is the topmost layer of TCP/IP model, and defines the interface
of host programs with the transport layer services. Application layer of TCP/IP model is a
combination of 3 layers i.e. application layer, presentation layer and session layer of OSI
Model. This layer includes all high-level protocols like Telnet, DNS, HTTP, FTP, SMTP,
etc.
The following diagram shows the layers and the protocols in each of the layers −
Notes by Professor Tanya Shrivastava
Notes by Professor Tanya Shrivastava
Physical Layer
1. Sending Data: It converts data into signals (like electrical signals or light) to send through
cables or air.
2. Choosing the Medium: It decides what kind of cables or wireless signals to use (like copper
cables or Wi-Fi).
3. Speed of Transmission: It controls how fast the data is sent.
4. Connection: It sets up and ends the physical connection between devices.
5. Signal Synchronization: It ensures the sender and receiver are in sync to send and receive
data correctly.
In short, the Physical Layer is all about physically sending data over a network.
Guided (Wired): Guided media in computer networks refers to physical cables or wires that
carry data signals from one place to another. The data travels through these cables in a specific path.
The most common types of guided media are:
1. Twisted Pair Cable: Wires twisted together to reduce interference, crosstalk, errors.
2. Coaxial Cable: A central wire surrounded by insulation and a shield to protect the signal.
3. Fiber Optic Cable: Uses light to transmit data through glass or plastic fibers.
Unguided (Wireless): Unguided wireless media refers to the transmission of data without the
use of physical cables or wires. Data is sent through the air using radio waves, microwaves, or
infrared signals. These are examples of wireless communication methods.
Microwave machines, ovens, and air fryers fall under unguided media because they use
microwaves (a type of electromagnetic wave) to cook food, and these microwaves travel through the
air without using any physical cables or wires.
Network Performance
Bandwidth: The amount of data is transfer from one place to another is known as
Bandwidth. The maximum data transfer rate (higher is better).
Latency: The time it takes for data to travel (lower is better). If data is transfer slowly then
latency is more or higher, if data is travel fast then latency is less or lower.
Throughput: throughput refers to the amount of data successfully transmitted over a
network in a given period of time. It is typically measured in bits per second (bps), kilobits
per second (Kbps), megabits per second (Mbps), or gigabits per second (Gbps). Packet
Loss: The percentage of lost data packets (lower is better).
Jitter: This is the inconsistency in how fast data moves. Sometimes data goes quickly,
sometimes slowly. High jitter can mess up things like video streaming or calls, making them
blurry or laggy. (Lower is better).
Error Rate: The rate of corrupted or lost packets (lower is better). A low error rate means
fewer problems.
Network Load: This is how much of the network is being used at any given time. If a lot of
people are using it, the network can get slow or overloaded, like a crowded highway. How
much of the network‟s capacity is being used (lower is better).
Transmission Impairments
Transmission impairment occurs when the received signal is different from the original signal send
by sender. In Analog signals due to transmission impairment the resulting received signal gets
different amplitude or the shape. In the case of digitally transmitted signals at the receiver side we
get changes in bits (0's or 1's).
Causes
There are various causes of transmission impairments −
Noise
Distortion
Attenuation
Noise
Noise is the major factor for the transmission distortion as any unwanted signal gets added to the
transmitted signal by which the resulting transmitted signal gets modified and at the receiver side it
is difficult to remove the unwanted noise signal. These noises are various kinds like shot noise,
impulse noise, thermal noise etc.
Noise is diagrammatically represented as follows −
Attenuation is generally decreased in signal strength, by which the received signal will be difficult to
receive at the receiver end. This attenuation happens due to environmental problems signal strength
decreases. The above picture shows that the signal loses power at its travels time.
Switching Techniques:
Switching is the process of transferring data packets from one device to another in a
network, or from one network to another, using specific devices called switches.
Switching takes place at the Data Link layer of the OSI Model.
A switch is a hardware device in a network that connects and helps multiple devices share a
network without their data interfering with each other.
Some data packets come from devices directly connected to the switch, like computers or
VoIP phones. Other packets come from devices connected through hubs or routers.
Types of Switching
There are three types of switching methods:
Message Switching
Circuit Switching
Packet Switching
o Datagram Packet Switching
o Virtual Circuit Packet Switching
Message Switching: This is an older switching technique that has become obsolete. In message
switching technique, the entire data block/message is forwarded across the entire network thus,
making it highly inefficient.
Circuit Switching: In this type of switching, a connection is established between the source and
destination beforehand. This connection receives the complete bandwidth of the network until the
data is transferred completely.
This approach is better than message switching as it does not involve sending data to the entire
network, instead of its destination only.
Packet Switching: This technique requires the data to be broken down into smaller components,
data frames, or packets. These data frames are then transferred to their destinations according to
the available resources in the network at a particular time.
This switching type is used in modern computers and even the Internet.
Datagram Packet Switching: In Datagram Packet switching, each data frame is taken as an
individual entity and thus, they are processed separately. Here, no connection is established before
data transmission occurs. Although this approach provides flexibility in data transfer, it may cause
a loss of data frames or late delivery of the data frames.
Multiplexing Techniques:
Example: Telephone systems often use TDM to allow multiple calls to share the same
physical line.
TDM mainly focus on time.
Imagine you have a single road, and multiple cars (data streams) need to travel on it. TDM
divides the road into time slots, and each car gets a turn to use the road for a short period of
time. It allows multiple signals to share the same channel by taking turns, based on time.
Description: FDM works by dividing the total bandwidth of a communication medium into
smaller frequency bands. Each data stream is transmitted at a different frequency, allowing
multiple signals to be transmitted simultaneously without interference.
Example: Analog TV, radio, broadcasts use FDM to transmit multiple channels over the
same frequency spectrum.
FDM mainly focus on frequency.
Think of FDM like a radio with multiple stations. Instead of everyone using the same
frequency (channel), each station gets its own frequency to broadcast on. This allows
multiple signals to travel simultaneously without interfering with each other.
Description: WDM is a technique used in fiber optic communication. It divides the available
fiber-optic bandwidth into multiple wavelength channels, where each wavelength carries a
separate data stream.
Types:
o Dense WDM (DWDM): Offers a large number of closely spaced channels (high
capacity).
o Coarse WDM (CWDM): Offers fewer channels with wider spacing.
Example: Internet service providers use WDM for high-speed data transmission over long
distances via fiber-optic cables.
WDM mainly focus on wavelength.
WDM is like FDM but for light signals in fiber optics. Imagine you have a fiber-optic cable
and can send light signals at different colors (wavelengths). Each color carries a separate
signal, allowing you to send many signals at once over the same fiber.
Description: CDM allows multiple signals to be transmitted simultaneously over the same
frequency channel by using unique codes for each signal. Each user or data stream is
assigned a unique code, and the data is transmitted by modulating the signal with that code.
The receiver can decode the signals using the same code.
Example: CDMA (Code Division Multiple Access) is widely used in mobile communication
networks for handling multiple calls.
CDM works like a secret code. Multiple signals are sent at the same time, but each signal is
scrambled with a unique code. The receiver can separate them out using the correct code,
even though they‟re all sent at the same time.
Description: SDM involves the use of multiple physical channels, each operating
independently. This is achieved through the use of different physical media, such as multiple
wires, antennas, or fiber optic cables.
Example: Multiple antennas or fiber-optic cables can be used to provide parallel
communication paths.
SDM is about using different physical paths for communication. For example, instead of
sending all signals through one wire, you can send them through multiple wires or antennas.
It‟s like having multiple lanes on a highway for different cars to travel at the same time.