Computer Networks Notes
Computer Networks Notes
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.
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.
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 .
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
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.
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.
Advantages:
• It offers high bandwidth and carry data for along 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.
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.
Classification of transmission waves and their properties
Transmission Waves Properties
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.
RJ45
Repeater
Hub
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.
• 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.
• 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:
• 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.
•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.
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.
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?
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 login- 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).
Web Architecture
Web is working based on a client-server architecture.
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.
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.
▪ 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.
▪ 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
directory
A URL is illustrated in below figure.
http://in.reddif.com/news/index.html
Hostname or
protocol 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.
• 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
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 .