12 Cs Networking 2022-23
12 Cs Networking 2022-23
INTRODUCTION
We are living in a connected world. Information is being produced, exchanged, and traced
across the globe in real time. It's possible as almost everyone and everything in the digital
world is interconnected through one way or the other.
A group of two or more similar things or people interconnected with each other is called
network. Some of the examples of network in our everyday life includes:
• Social network
• Mobile network
• Network of computers
• Airlines, railway, banks, hospitals networks
What is Computer Network?
A Computer network is an interconnection among two or more computers or computing
devices. Such interconnection allows computers to share data and resources among each
other Resources such as files, applications, printers and software are common information
shared in a networking.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 123
Time Saving
Evolution of Network:
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 124
A global computer network providing variety of information and communication
facilities consisting of interconnected networks using standardized communication
protocols.
DATA
Data means information in digital form which is stored processed and exchanged between
digital devices like computer, mobile phones or laptop.
Data can be text, image, audio, video or multimedia files.
Computers stores raw data and process these data into meaningful information. Hence,
we can define Information as processed data.
COMMUNICATION
MESSAGE: message is the information being exchanged between a sender and a receiver
over a communication network.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 125
PROTOCOLS: The set of standard rules which are followed in data communication are
known as Data Communication Protocols. All the communicating devices like sender
receiver and other connected devices in the network should follow these protocols.
BANDWIDTH
Bandwidth is the difference between the highest and lowest frequencies a transmission
media can carry.
The unit of bandwidth is Hertz.
Data transfer rate is the number of bits transmitted through a channel per unit of time.
Data transfer rate is measured in bits per second (bps). It is also measured in Kilobits per
second (Kbps), Megabits per second (Mbps) or Gigabits per second (Gbps).
IP ADDRESS
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 126
An IP address allows computers to send and receive data over the internet. They can also
be used to track down a user's physical location.There are two versions for IP address IPV4
and IPV6. IP addresses are binary numbers but are typically expressed in decimal form
(IPv4) or hexadecimal form (IPv6) to make reading and using them easily.
The commonly used IP address is IPV4. An IPv4 address consists of four numbers, each of
which contains one to three digits, with a single dot (.) separating each set of digits. Each
of the four numbers can range from 0 to 255.
SWITCHING TECHNIQUES
In large networks, there may be more than one paths for transmitting data from sender to
receiver. The process of selecting a path of data out of the available paths is
called switching. There are two popular switching techniques – circuit switching and
packet switching.
1. Circuit Switching
In circuit switching, whenever a source end node wants to send a message to the
destination end node a physical link is first established between the source and the
destination. Then only the data transmission takes place. After the complete transmission
of data this physical link is terminated.
Simple example of a circuit switching is telephone network in which a person calls another
person. When the call receiving person receives the call, then only the connection is
established. Then the message is conveyed and finally the connection is terminated.
Advantages:
1. Since a dedicated communication channel is set up before communicating the message,
the data transmission is reliable and is suitable for long and continuous communication.
2 Circuit switching uses fixed bandwidth as well as data rates.
3. As the data is communicated continuously, no need of sequencing or re ordering it at
the receiving end.
Disadvantages:
1. Time required to setup a physical connection between the sender and the receiver
makes delay in communication
2. Since a communication channel is dedicated for a particular transmission, it cannot be
utilized for other communication, even if the channel is free.
3. More expensive since connection has to be established every time before
communication.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 127
2. Packet Switching
In the packet switching technique, the whole message is split into small packets. Now,
these packets are transmitted one by one from sender to the receiver through the
intermediary switches in the network. The packets will take shortest path as possible.
Every packet will have a sequence number in order to identify their order at the receiving
end. The packets will also contain information like source address, intermediate node
address, destination address etc.
Advantages:
1. Packet switching is effective type of data transmission technique as it effectively utilizes
the communication channel. Multiple users can share the channel simultaneously utilizing
the bandwidth effectively.
2. It is cost effective and easy to implement compared to circuit switching.
3. As the messages are sent as small sized packets, the data transmission is quick and easy.
Disadvantages:
1. In packet switching the movement of packets may not be in correct order. Hence it is
not suitable for voice communication.
2. Unorganized movement of packets makes it necessary to implement proper sequencing
and reordering techniques.
3. As the packets flow through multiple paths from the source to the destination, complex
security protocols are required to ensure reliable communication.
TRANSMISSION MEDIA
● A transmission medium can be anything that can carry signals or data between the
source (transmitter) and destination (receiver). In data communication, transmission
media are the links that carry messages between two or more communicating devices.
● Transmission can be classified as guided or unguided.
● In guided transmission, there is a physical link made of wire/cable through which
data in terms of signals are propagated between the nodes. These are usually metallic
cable, fiber-optic cable, etc. They are also known as wired media.
● In unguided transmission, data travels in air in terms of electromagnetic waves
using an antenna. They are also known as wireless media.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 128
Wired Transmission Media
● Any physical link that can carry data in the form of signals belongs to the category
of wired transmission media.
● Three commonly used guided/wired media for data transmission are, twisted pair,
coaxial cable, and fiber optic cable.
● Twisted-pair and coaxial cable carry the electric signals whereas the optical fiber
cable carries the light signals.
Advantages:
It is low-cost, low-weight and flexible cables.
It is easy to install and maintain and requires RJ-45 Connector.
Disadvantages:
Suitable for short distance (up to 100 mt.). For long distance Repeater is required.
It supports low bandwidth and offers up to 100 Mbps speed.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 129
(B) Coaxial cable
Coaxial cable has a copper wire at the core of the cable which is surrounded with
insulating material. The insulator is further surrounded with an outer conductor (usually
a copper mesh). This outer conductor is wrapped in a plastic cover.
The shielded design allows the cable's copper core to transmit data quickly,
without interference of environmental factors.
These types of cables are used to carry signals of higher frequencies to a longer
distance.
It is better shielded and has more bandwidth than a twisted pair.
Advantages:
It offers high bandwidth and carry data for a long distance (185-500 m)
Suitable for Broadband transmission (cable TV) and can be used in shared cable
network.
Disadvantages:
It is less flexible and expensive compared to Twisted Pair cable.
Not compatible with modern cables like Twisted pair cable.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 130
Advantages:
It is free from Electro-Magnetic Interference (EMI), since no Electrical signal are
carried.
Offers secure and high speed transmission up to a long distance.
Disadvantages:
Expensive and quite fragile (breakable).
They are unidirectional
Complicated Installation procedure and difficult to join two broken fiber.
Not suitable for domestic purposes due to high maintenance cost.
There are many types of wireless communication technologies such as Bluetooth, WiFi,
WiMax etc.
The electromagnetic spectrum range (3KHz to 900THz) can be divided into 4 categories (
Radio waves, Microwaves, Infrared waves and Visible or Light waves) according to their
frequency ranges.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 131
Classification of transmission waves and their properties
Transmission Properties
Waves
Radio Waves 1.
Waves of frequency range 3 KHz - 1 GHz
2.
Omni-directional, these waves can move in all directions
3.
Radio waves of frequency 300KHz-30MHz can travel long distance
4.
Susceptible to interference
5.
Radio waves of frequency 3-300KHz can penetrate walls
6.
These waves are used in AM and FM radio, television, cordless phones.
Microwaves 1.
Electromagnetic waves of frequency range 1GHz - 300GHz.
2.
Unidirectional, can move in only one direction.
3.
Cannot penetrate solid objects such as walls, hills or mountains.
4.
Needs line-of-sight propagation i.e. both communicating antenna must
be in the direction of each other.
5. Used in point-to-point communication or unicast communication such as
radar and satellite.
6. Provide very large information-carrying capacity.
Infrared waves 1. Electromagnetic waves of frequency range 300GHz - 400THz.
2. Very high frequency waves.
3. Cannot penetrate solid objects such as walls.
4. Used for short-distance point-to-point communication such as mobile-to-
mobile, mobile-to-printer, remote-control-to-TV, and Bluetooth-enabled
devices to other devices like mouse, keyboards etc.
Radiowave transmission
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 132
Network Devices
To communicate data through different transmission media and to configure networks
with different functionality, we require different devices like Modem, Hub, Switch,
Repeater, Router, Gateway, etc.
Modem
Ethernet Card
Ethernet card, also known as Network Interface Card (NIC) is a network adapter
used to set up a wired network. It acts as an interface between computer and the network.
It is a circuit board mounted on the motherboard of a computer
The Ethernet cable connects the computer to the network through NIC.
Ethernet cards can support data transfer between 10 Mbps and 1 Gbps (1000
Mbps). Each NIC has a MAC address, which helps in uniquely identifying the computer on
the network.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 133
RJ45
Repeater
Hub
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 134
Switch
Router
A router is a network device that can receive the data, analyses it, decide/alter how
it is packaged and transmit it to other networks.
A router connects a local area network to the internet.
For example, data has been divided into packets of a certain size. Suppose these
packets are to be carried over a different type of network which cannot handle bigger
packets. In such a case, the data is to be repackaged as smaller packets and then sent over
the network by a router.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 135
Gateway
“Gateway” is a key access point that acts as a “gate” between an organisation's
network and the outside world of the Internet.
Gateway serves as the entry and exit point of a network, as all data coming in or
going out of a network must first pass through the gateway in order to use routing
paths.
If a node from one network wants to communicate with a node of a foreign
network, it will pass the data packet to the gateway, which then routes it to the
destination using the best possible route.
For simple Internet connectivity at homes, the gateway is usually the Internet
Service Provider that provides access to the entire Internet.
Generally, a router is configured to work as a gateway device in computer
networks.
A gateway can be implemented completely in software, hardware, or a
combination of both.
Since a network gateway is placed at the edge of a network, the firewall is usually
integrated with it.
WiFi card
A Wi-Fi card connects to your laptop either in your USB port or a wider card slot.
The Wi-Fi card acts as both a receiver and transmitter.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 136
It receives the wireless signal and communicates with the wireless network,
enabling you to access the Web with your laptop.
Computer Network Types
A computer network is a group of computers linked to each other that enables the
computer to communicate with another computer and share their resources, data, and
applications.
A computer network can be categorized by their size, complexity and geographical spread.
A computer network is mainly of four types:
Local Area Network is a group of computers connected to each other in a small area
such as a building, office through a communication medium such as twisted pair,
coaxial cable, etc to share resources. Shared resources can be data, information,
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 137
programs, printers, hard-disks, modem etc. The data is transferred at an extremely
faster rate, and provides higher security
It is less costly as it is built with inexpensive hardware such as hubs, network adapters,
and Ethernet cables.
A Wide Area Network is a network that extends over a large geographical area such
as states or countries through a telephone line, fiber optic cable or satellite links.
The internet is one of the biggest WAN in the world.
A Wide Area Network is widely used in the field of Business, government, and
education.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 138
Advantages of Wide Area Network:
Security issue: A WAN network has many security issues as compared to LAN and MAN
network as all the technologies are combined together that creates the security
problem.
Needs Firewall & antivirus software: The data is transferred on the internet which can
be changed or hacked by the hackers, so the firewall needs to be used. Some people
can inject the virus in our system so antivirus is needed to protect from such a virus.
High Setup cost: An installation cost of the WAN network is high as it involves the
purchasing of routers, switches.
Troubleshooting problems: It covers a large area so fixing the problem is difficult.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 139
NETWORK PROTOCOL:
A protocol means the rules that are applicable for a network. Protocols defines
standardized formats for data packets, techniques for detecting and correcting errors etc.
It is a standard internet protocol provided by TCP/IP used for transmitting the files
from one host to another. It is mainly used for transferring the web page files from their
creator to the computer that acts as a server for other computers on the internet. It is
also used for downloading the files to computer from other servers.
Objectives of FTP
It provides the sharing of files.
It is used to encourage the use of remote computers.
It transfers the data more reliably and efficiently.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 140
Point-to-Point Protocol (PPP) is protocol that is used to connect one computer system to
another. Computers use PPP to communicate over the telephone network or the Internet.
A PPP connection exists when two systems physically connect through a telephone line.
You can use PPP to connect one system to another. For example, an established PPP
connection between a branch office and a central office allows either office to transfer
data to the other through the network.
POP3 Protocol
Post Office Protocol version 3 (POP3) is a standard mail protocol used to receive emails
from a remote server to a local email client. POP3 allows you to download email messages
on your local computer and read them even when you are offline.
How is mail transmitted?
twen J,
and JVM
Telnet
The main task of the internet is to provide services to users. For example, users want
to run different application programs at the remote site and transfers a result to the local
site. This requires a client-server program such as FTP, SMTP. But this would not allow us
to create a specific program for each demand.
The better solution is to provide a general client-server program that lets the user
access any application program on a remote computer. Therefore, a program that allows
a user to log on to a remote computer. A popular client-server program Telnet is used to
meet such demands. Telnet is an abbreviation for Terminal Network.
Telnet provides a connection to the remote computer in such a way that a local
terminal appears to be at the remote side.
There are two types of login:
Local Login- When a user logs into a local computer, then it is known as local login.
Remote logi- When the user wants to access an application program on a remote
computer, then the user must perform remote login.
VoIP :
VoIP stands for Voice over Internet Protocol. It is also referred to as IP telephony, internet
telephony, or internet calling. It's an alternative to a public switched telephone network
(PSTN).
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 141
Introduction to Web Services
Everyone is using internet irrespective of their background & interest. The types of
services available on internet are as diverse as the interest of the people. Web Services
means the services provided by World Wide Web. The World Wide Web provides services
like chatting, emailing, video conferencing, e-learning, e-shopping, e-reservation, e-
groups and social networking. These services may mean different things to different
people but in simple words, they are the ways to communicate and here the
communication takes place between two electronic devices.
The World Wide Web commonly referred to as WWW, W3, or the Web is an
interconnected system of public webpages accessible through the Internet.
The Web is not the same as the Internet: the Web is one of many applications built on top
of the Internet.It’s invented by Tim Berners-Lee in 1989. Since that time, the Web has
changed the world. It has perhaps become the most powerful communication medium
the world has ever known.
Major components of WWW are,
1. Web Server – It is a computer that stores website resources (web pages, images,
videos, etc.).
2. Web Browser (Client) - A software application used to access the web resources.
3. Webpage - Hypertext documents formatted in Hypertext Mark-up Language
(HTML) and displayed in a web browser.
4. Website - A website is a collection of inter-linked web pages that is identified by a
common domain name (website name) and stored on a web server.
5. HTTP Protocol - It governs data (web page) transfer between a server and a client.
6. HTML- A mark-up language used to specify the structure of a webpage.
7. URL- Address used to identify documents and other web resources on the internet.
Web Architecture
Web is working based on a client-server architecture.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 142
Client: It is a computer capable of requesting, receiving & displaying information in the
form of web pages or using a particular service from the service providers (Servers). It’s
also called as web browsers.
Servers: It is a remote computer which provides/transfers information to the client (in the
form of web pages) or access to particular services.
So, it’s basically the Client requesting web pages and the Server serving it as long as the
requested content is available in the server. i.e. a request-response model.
Difference between Internet and WWW
Internet World Wide Web(WWW)
Internet stands for Interconnected
WWW stands for World wide Web
Networks
Internet is a means of connecting a World Wide Web which is a collection of
computer to any other computer anywhere information which is accessed via the
in the world. Internet.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 143
HTML Code As Rendered in the Browser
<html>
<head>
<title>
Welcome to KVS RO Ekm
</title>
</head>
<body>
<h1>Web Services</h1>
<b>Hyper Text Mark-up Language</b>
<br>
<i>Used for creating web pages</i>
</body>
</html>
XML (eXtensible Mark-up Language)
HTML XML
HTML stands for Hyper Text Mark-up XML stands for eXtensible Mark-up
Language Language
HTML is a case insensitive. XML is case sensitive.
Predefined tags (commands). User defined tags (commands).
It is used for presentation of the Data. It is used for transportation of the Data.
Small errors can be ignored. Errors not allowed.
Closing tags are optional. Compulsory to use closing tags.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 144
HTTP - Hyper Text Transfer Protocol
HTTP is used to transfer data across the web. HTTP specifies how to transfer hypertext
(linked web documents) between two computers.
It allow users of the World Wide Web to exchange information found on web pages.
When accessing any web page entering http:// in front of the address tells the browser
to communicate over HTTP.
A Protocol is a set of rules for communication between two computers. HTTP is a
textual, stateless protocol.
Clients (web browsers) send requests through request object of http to web servers
for web pages, resources etc.
Web server respond accordingly through response object of http.
After this cycle (request – response), the connection between client and server across
the Internet is disconnected.
A new connection must be made for each request (means for each web page).
Hypertext Transfer Protocol Secure (HTTPS) is an extension of the HTTP.
It is used for secure communication over a computer network.
In HTTPS, the communication protocol is encrypted using Transport Layer Security
(TLS).
HTTPS provides,
1) Encryption: Encrypting the exchanged data to keep it secure from eavesdroppers.
2) Data integrity: Data cannot be modified or corrupted during transfer.
3) Authentication: Proves that your users communicate with the intended website.
Domain Names
The Internet is a vast ocean where information is available in the form of millions of
websites.
Each website is stored on a server which is connected to the Internet, which means
each server has an IP address. Every device connected to the Internet has an IP
address.
To access a website, we need to enter its IP address on our web browser.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 145
But it is very difficult to remember the IP addresses of different websites as they are
in terms of numbers or strings.
However, it is easier to remember names, and therefore, each computer server
hosting a website or web resource is given a name against its IP address. These names
are called the Domain names or hostnames corresponding to unique IP addresses
assigned to each server.
For easy understanding, it can be considered as the phonebook where instead of
remembering each person’s phone number, we assign names to their numbers.
For example, IP addresses and domain names of some websites are as follows:
Domain Name IP Address
ncert.nic.in 164.100.60.233
cbse.nic.in 164.100.107.32 DNS look-up table
kvsangathan.nic.in 164.100.166.91
wikipedia.org 198.35.26.96
The process of converting a hostname (such as www.google.com) into the
corresponding IP address (such as 172.217.14.196) is called domain name resolution.
Specialized DNS servers are used for domain name resolution (DNS resolution), so
whenever you type some web address (domain name) on the address bar of a web
browser, it will be translated into an equivalent IP address with the help of one or more
DNS servers including local DNS cache.
Server type://hostname/directory/sub-directory/.../filename
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 146
directory
A URL is illustrated in below figure.
http://in.reddif.com/news/index.html
protocolA Hostname or
domain name filename
Websites
A website is a collection of linked web pages (plus their associated resources) that
share a unique domain name.
Thus, a Web site is a collection of related Web pages.
Each web page of a given website provides explicit links, most of the time in the form
of clickable portion of text, that allow the user to move from one page of the website
to another.
Each Web site is owned and updated by an individual, company, or an organization.
Web is a dynamically moving and changing entity, today web sites generally change on
a daily or even hourly basis.
To access a website, type its domain name in your browser address bar, and the
browser will display the website's main web page, or homepage (casually referred as
"the home")
Web page
Web page is an electronic document designed using HTML.
It displays information in textual or graphical form.
It may also contain downloadable data files, audio files or video files.
Traversal from one webpage to another web page is possible through hyperlinks.
Difference between Webpage and Website
A web page is one single page of information, while a website is made up of a number of
related web pages inter-connected by links known as hyperlinks.
Web Browser
Web browser is software program to navigate the web pages on the internet.
A bowser interprets the coding language of the web page and displays it in graphic
form.
A web browser allows anyone to access the web without even knowing commands
used in software languages to design a web page.
Internet works on client -server model.
A web browser is a client which requests the information from the web server.
The web server sends the information back to the client.
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 147
The web address of the webpage written on the address bar tells the web browser
which page to access.
The most popular web browsers are: Google Chrome, Mozilla Firefox, Internet
Explorer, Safari, Opera, Netscape and UC Browser.
What is a cookie?
Web Server
A web server is a computer or a group of computers hosting one or more websites.
"Hosting" means that all the web pages and their supporting files are available on
that computer.
The web server will send any web page from the website it is hosting to any user's
browser, per user request.
More importantly, since a web server can host multiple websites, the term web
server is never used to designate a website, as it could cause great confusion.
It works on client/server model.
It delivers the requested web page to web browser.
Web servers use special programs such as Apache or IIS to deliver web pages over
the http Protocol
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 148
Web Hosting
Web hosting is the process of uploading/saving the web content on a web server to
make it available on WWW.
In case an individual or a company wants to make its website available on the internet,
it should be hosted on a web server.
A good way to think about this is if the domain name is the address of our house, then
web hosting is the actual house that address points to. All websites on the internet,
need web hosting.
Domain names and web hosting are two different services. However, they work
together to make websites possible. It is possible with the system known as DNS.
Model Questions
KVS RO EKM - STUDENT SUPPORT MATERIAL (COMPUTER SCIENCE-083) FOR THE ACADEMIC YEAR 2022-23 149