computer networks
computer networks
-Network edge
-circuit switching
-Packet Switching
-Delay , Loss & Throughput | PPT (slideshare.net)
Every device attempting to access the internet is initially linked either physically
through cables or wirelessly. For instance, a computer can establish a physical
connection to a modem using an Ethernet cable or connect wirelessly through Wi-
Fi or Bluetooth signals.
Each computer connected to the internet is also assigned a unique IP address that
enables the device to be recognized.
When one device attempts to send a message to another device, the data is sent
over the internet in the form of packets and each packet is assigned a port
number that will connect it to its endpoint.
A packet that has both a unique IP address and port number can be translated from
alphabetic text into electronic signals by traveling through the layers of the Open
Systems Interconnection (OSI) model from the top application layer to the
bottom physical layer.
The message is then sent over the internet where it's received by the internet
service provider's (ISP) router.
The router examines the destination address assigned to each packet and
determines where to send it.
Eventually, the packet reaches the client and travels in reverse from the bottom
physical layer of the OSI model to the top application layer. During this process,
the routing data -- the port number and IP address -- is stripped from the packet,
thus enabling the data to be translated back into alphabetic text and completing the
transmission process.
The four layers of the TCP/IP model provide a suite
of protocols.
The main components of the internet
The internet is comprised of hardware, software and various protocols. The following
are the primary components of the internet:
Servers. Servers are the computers that provide services or share stored resources
with the client devices. Their main job is to comply with client requests by
providing the requested information or performing the requested tasks.
IP addresses. IP addresses are used to identify devices on the internet. These can
include IPv4 addresses such as 192.168.1.1, which is the default IP address
many router manufacturers use to access a router's interface. IPv4 addresses are
shorter than IPv6 addresses, which are designed to handle the increasing number
of connected devices.
ISPs. ISPs are companies that provide users with internet connectivity. They
operate the infrastructure, including the cables and routers needed to connect users
to the global network.
Firewalls and security measures. Incoming and outgoing network traffic on the
internet is monitored and controlled by different types of security firewalls and
security measures. Firewalls safeguard networks and devices against unauthorized
internet access, cyber threats and malicious activities.
Difference between the World Wide Web and the
internet
The key difference between the internet and the World Wide Web (WWW or web) is
that the internet is a global connection of networks, while the web is a collection of
information or websites that can be accessed using the internet. In other words, the
internet is the infrastructure and the web is a service on top of it.
The web is the most widely used part of the internet. Its outstanding feature is
hypertext, a method of instantly cross-referencing text. Used in blog posts, Hypertext
Markup Language (HTML) web pages, social media posts and online shopping
websites, hypertext appears in a different color than the rest of the text and is often
also underlined. When a user clicks on one of these words or phrases, they're
transferred to the related site or webpage. Buttons, images or portions of images are
also used as hyperlinks.
The web provides access to billions of pages of information. Web browsing is done
through a web browser, such as Chrome, Edge or Firefox. The appearance of a
particular website can vary slightly, depending on the browser used. Newer versions
of a particular browser can render more complex features, such as animation, virtual
reality, sound and music files.
Compatibility with other media types. Due to the standardized protocols and
formats that it offers, the internet facilitates compatibility with various media
types. This enables seamless integration and interaction across diverse multimedia
such as photos, videos and audio files.
Easy accessibility. Web browsers such as Chrome or Firefox are used to access
the internet. For end users and developers, these programs are simple to use,
comprehend and easy to develop.
Affordability. The expenses associated with developing and maintaining internet
services are low. However, the costs vary depending on the type of services and
providers being used.
Uses of the internet
In general, the internet can be used to communicate across large or small distances,
share information from any place in the world, and access information or answers to
almost any question in moments.
Some specific examples of how the internet is used include the following:
Email and other forms of communication, such as Internet Relay Chat, internet
telephony, instant messaging and video conferencing.
Searching for jobs -- both employers and applicants use the internet to post open
positions, apply for jobs and recruit individuals found on social networking sites
such as LinkedIn.
Use a virtual private network or, at least, a private browsing mode, such as Google
Chrome's Incognito window.
Use secure protocols, such as HTTPS, instead of HTTP for online transactions.
Deactivate autofill.
Use caution with spam emails and never open or download content from unknown
sources.
Additionally, there's an element of the internet called the dark web. The dark web is
hidden and inaccessible through standard browsers. Instead, it uses the Tor and I2P
browsers which let users remain completely anonymous. While this anonymity can be
a great way to protect an online user's security and free speech, or for the government
to keep classified data hidden, the dark web also creates an environment that
facilitates cybercrime, the transfer of illegal goods and terrorism.
On the other side, people believe the internet increases civic engagement, sociability
and the intensity of relationships.
Whether the effects are good or bad, the internet has changed the way society interacts
and connects. People are constructing social relationships based on individual
interests, projects and values. Communities are being formed by like-minded
individuals not only offline and in person, but through the internet and the multitude
of online environments it creates and offers. Social networking sites -- like Facebook
and LinkedIn -- have become the preferred platforms for both businesses and
individuals looking to perform all kinds of tasks and communicate with others.
Provides access to the IoT, which enables home appliances and devices to connect
to and be controlled from a computer or smartphone.
Allows users to save data and easily share files with cloud storage on cloud
computing platforms.
Enables users to monitor and control personal accounts instantly, such as bank
accounts or credit card bills.
The network edge is the point where a device or local network connects to the
internet. It's the first step between the core of the network and the endpoints.
What does it include?
Endpoints
Personal computers (PCs), modems, adapters, and other devices that
connect to them
Edge devices
Routers, switches, firewalls, wide-area networks (WANs), and integrated
access devices (IADs)
Converging locations
Regional data centers, fixed wireline access points, wireless access base
stations, and radio access networks (RANs)
On-premises locations
Universal customer premises equipment (uCPE) devices
What's its importance?
It's a crucial security boundary
It can improve throughput, which can lead to more efficient operation
It can be used to deliver services and content to end-users efficiently
What are some technologies used at the network edge? Content Delivery
Networks (CDNs), Network Function Virtualization (NFV), and Software-
Defined Wide Area Networking (SD-WAN).
However, with edge computing, you can experience improved response times and cost
savings. The edge computing device, because it is closer to the data source, makes faster
transmissions possible. It may also reduce expenditures related to setting up and
maintaining core devices because much of the computational workload is handled by the
edge computing device.
Edge devices
An edge device is one that serves as an entry point to an organization or service provider’s
network core. It includes routers, switches, wide-area networks (WANs), firewalls, and
integrated access devices (IADs).
Router
A router transmits packets of data between two different networks. This traffic includes the
content of websites as well as communications like video chat, email, and Voice over
Internet Protocol (VoIP) transmissions. Routers direct traffic on the internet, sending it from
one point to another, allowing different edge devices to communicate with each other.
Switch
A network switch connects devices within a computer network through packet switching,
which receives data then forwards it to the device for which it is intended. A switch allows
edge devices to interact and share resources without using devices at the core.
Wide-area network
A WAN consists of local-area networks (LANs) that connect to each other. In this way, the
WAN edge connects the edges of LANs. For example, an organization can connect three
offices, each with its own LAN, using a WAN or software-defined WAN (SD-WAN).
Firewall
A firewall controls the data that is allowed to enter and exit a network infrastructure
according to predefined rules. Firewalls inspect data packets, looking for anything that
raises suspicion, then discard any packets containing potential threats. Firewalls are a
primary line of defense at the network edge, keeping threats from entering or exiting.
An IAD converts different types of data input and renders them into a common format. For
example, an IAD is used to convert analog and digital phone signals into one common
digital signal. IADs help simplify communications and enable more efficient transmissions at
the edge.
The delays, here, means the time for which the processing of a
particular packet takes place. We have the following types of delays
in computer networks:
1. Transmission Delay:
The time taken to transmit a packet from the host to the
transmission medium is called Transmission delay.
Aiming for a top All India Rank in the GATE CS/IT or GATE DA
2026 exam but unsure about your preparation level?
We've got you covered! Our GATE Courses for CSE & DA at
GeeksforGeeks are designed to give you the competitive edge you
need. Get live classes from GATE experts (Khaleel Sir, Chandan
Jha Sir, Vijay Agarwal Sir, and many others), practice
problems, doubt-support, previous year questions, quizzes,
all India mock tests, and much more - all in one place.
For example, if bandwidth is 1 bps (every second 1 bit can be
transmitted onto the transmission medium) and data size is 20 bits
then what is the transmission delay? If in one second, 1 bit can be
transmitted. To transmit 20 bits, 20 seconds would be required.
Let B bps is the bandwidth and L bit is the size of the data then
transmission delay is,
Tt = L/B
This delay depends upon the following factors:
If there are multiple active sessions, the delay will become
significant.
Increasing bandwidth decreases transmission delay.
MAC protocol largely influences the delay if the link is shared
among multiple devices.
Sending and receiving a packet involves a context switch in the
operating system, which takes a finite time.
2. Propagation delay:
After the packet is transmitted to the transmission medium, it has to
go through the medium to reach the destination. Hence the time
taken by the last bit of the packet to reach the destination is called
propagation delay.
Ttotal = Tt+Tp
(when taking Tq and Tpro equals to 0)
In-circuit switching, each data unit In Packet switching, each data unit just knows
knows the entire path address which is the final destination address intermediate path is
provided by the source. decided by the routers.
The delay between data units in circuit The delay between data units in packet
switching is uniform. switching is not uniform.
Circuit switching is not convenient for Packet switching is suitable for handling
handling bilateral traffic. bilateral traffic.
The Takeaway
Traditional telecommunications systems and landlines rely on circuit
switching for their functioning. Packet switching is the foundation of
the modern Internet. Each has both advantages and disadvantages.
Sometimes they overlap, like when a packet-switching network
emulates circuit-switching technology and establishes a connection-
oriented manner of data transport. The internet and most phone
services now rely on packet switching. However, most legacy
networks were intended to handle circuit-switched traffic. A new
optical routing architecture could help overcome this gap.
Formulas Used in Circuit Switching
Transmission rate = Link Rate or Bit rate /
no. of slots = R/h bps
Transmission time = size of file / transmission rate
= x / (R/h)
= (x*h)/R second
Total time to send packet to destination = Transmission time +
circuit setup time
Question for Practice based on Circuit
switching
Question 1 : How long it takes to send a file of ‘x bits’ from host A
to host B over a circuit switched network that uses TDM with ‘h
slots’ and have a bit rate of ‘R Mbps’, circuit establish time is k
seconds. Find total time?
Transmission rate = Link Rate or Bit rate / no. of slots = R/h bps
Transmission time = size of file/ transmission rate = x / (R/h) =
(x*h)/R
Total time = transmission time + circuit setup time = (x*h)/R secs
+ k secs
Question 2 : If a link transmits F frames/sec and each slot has B
bits then find the transmission rate?
Since it is not mention how many slots in each frame we take one
frame has one slot.
The transmission rate is the amount of data sent in 1 second.
Transmission rate = F * B bits/sec
Conclusion
Before data transfer, circuit switching provides a dedicated
connection between the source and destination, ensuring a
consistent data flow with minimal latency. While it provides great
dependability and service quality, its resource-intensive nature and
higher prices make it inappropriate for high-traffic or large-scale
networks. Packet switching, on the other hand, is more adaptable
and resource-efficient, making it ideal for dealing with irregular
traffic patterns.
Packet Switching and Delays in
Computer Network
Packet Switching in computer networks is a method of transferring data to a
network in the form of packets. In order to transfer the file fast and efficiently
over the network and minimize the transmission latency, the data is broken
into small pieces of variable length, called Packet. At the destination, all
these small parts (packets) have to be reassembled, belonging to the same
file. A packet is composed of a payload and various control information. No
pre-setup or reservation of resources is needed.
Packet Switching uses the Store and Forward technique while switching the
packets; while forwarding the packet each hop first stores that packet then
forwards. This technique is very beneficial because packets may get
discarded at any hop for some reason. More than one path is possible
between a pair of sources and destinations. Each packet contains the
Source and destination address using which they independently travel
through the network. In other words, packets belonging to the same file may
or may not travel through the same path. If there is congestion at some path,
packets are allowed to choose different paths possible over an existing
network.
Diagram of Packet Switching
In packet switching the data is divided into small packets which allow faster
movement of data. Each packet contains two parts that is Header and
Payload, the header on each packet conation information. Below is the
diagram of how packet switching works.
Packet Switching
Types of Delays in Packet Switching
Transmission Delay: Time required by the spent station to transmit data
to the link.
Propagation Delay: Time of data propagation through the link.
Queueing Delay: Time spent by the packet at the destination’s queue.
Processing Delay: Processing time for data at the destination.
Advantages of Packet Switching over Circuit
Switching
More efficient in terms of bandwidth, since the concept of reserving a
circuit is not there.
Minimal transmission latency.
More reliable as a destination can detect the missing packet.
More fault tolerant because packets may follow a different path in case
any link is down, Unlike Circuit Switching.
Cost-effective and comparatively cheaper to implement.
Disadvantage of Packet Switching over Circuit
Switching
Packet Switching doesn’t give packets in order, whereas Circuit Switching
provides ordered delivery of packets because all the packets follow the
same path.
Since the packets are unordered, we need to provide sequence numbers
for each packet.
Complexity is more at each node because of the facility to follow multiple
paths.
Transmission delay is more because of rerouting.
Packet Switching is beneficial only for small messages, but for bursty data
(large messages) Circuit Switching is better.
Types of Packet Switching
1. Connection-oriented Packet Switching (Virtual Circuit)
Before starting the transmission, it establishes a logical path or virtual
connection using a signaling protocol, between sender and receiver and all
packets belongs to this flow will follow this predefined route. Virtual Circuit ID
is provided by switches/routers to uniquely identify this virtual connection.
Data is divided into small units and all these small units are appended with
help of sequence numbers. Packets arrive in order at the destination.
Overall, three phases take place here- The setup, data transfer and tear-
down phases.
Virtual Circuit
All address information is only transferred during the setup phase. Once the
route to a destination is discovered, entry is added to the switching table of
each intermediate node. During data transfer, packet header (local header)
may contain information such as length, timestamp, sequence number, etc.
A—R1—R2—BA is the sender (start)R1, R2 are two routers that store and
forward dataB is receiver(destination)
To send a packet from A to B there are delays since this is a Store and
Forward network.
Difference Between Packet Switching and Circuit
Switching
Packet Switching Circuit Switching
In packet switching data is divided into There is a dedicated path for each
Packet Switching Circuit Switching
The delay between data units in packet The delay between data units in circuit
switching is not uniform. switching is uniform.