open course module 1 notes
open course module 1 notes
Module IV
Computer Networks
Types of Networks
The geographic area covered by the computer network decides its type.
This is a type of computer network that is usually used in places like a school or
colleges. This network covers a limited geographical area that is, it spreads across
several buildings within the campus.
3
A MAN is larger than a LAN but smaller than a WAN. This is the type of
computer network that connects computers over a geographical distance through a
shared communication path over a city, town, or metropolitan area.
Network Topologies
Network topology refers to the way that nodes and connections are
physically and logically arranged in a network.
1. Bus Topology
In a bus network, each node is connected to a single cable, like bus stops
branching off from a bus route. The data transmission all flows through that one
central connection. Because everything is connected in a straight line off one
central cable, it’s a cost-effective topology, and simple to set up and add new
nodes.
Drawbacks.
In a system that has one central link with many dependencies, a failure of that
central link causes all dependencies to fail. Bus networks are also not as secure as
some other types due to this shared central link. Additionally, the more nodes that
share a central cable, the slower a network is.
6
2. Ring Topology
In a ring network, the nodes and links are arranged in a ring. Each node has
exactly two neighbors. Data usually flows unidirectionally in a ring network.
Advantage: These kinds of networks are cheap to install and expand, and
data flows quickly within the network.
Drawback: A failure of a single node can bring down the whole network.
3. Star topology
In a star network, all the nodes are connected to a central hub. The nodes are
positioned around that central hub in a shape that roughly resembles a star.
If a single node fails, the rest of the network is unaffected. That said, if the
central hub goes down, then the entire network goes down with it.
4. Tree topology
In a tree topology, you still have one central hub that is connecting
everything, but instead of single nodes that branch out from that central root node,
it’s other star networks. This topology allows for more devices to connect to a
central data center, which speeds the flow of data. Like in a star network,
identifying issues with individual nodes is relatively easy.
5. Mesh topology
In a mesh network, each device is connected to at least one other node in the
network.
In a partial mesh network, only some of the nodes connect directly with each
other, while others need to pass through additional nodes to reach the targeted
node.
Since nodes can communicate directly with each other, rather than through a
central hub, communication on a mesh network is often very fast. A great example
of a mesh network is the internet itself, where each computer is a node in a
network provided by different internet service providers that also connect to each
other.
Advantage
Because mesh networks have multiple routes over which information can travel,
they are more resilient than many other topologies and can continue to function if a
node or connection fails. Mesh networks also offer greater security—if a node is
attacked or compromised it can be replaced.
Disadvantage
Mesh networks are often expensive to set up, requiring many cables to
establish the connections. Meshing multiple paths can also make installation
complicated and lead to maintenance costs that are higher than in other types of
topologies.
6. Hybrid topology
A tree network that combines a star network and a bus network is a type of hybrid
topology.
Advantage
Drawback
8
2. Twisted-pair cable
3. Co-axial cable
It contains two wires of copper and each wire is insulated from the other.
2.Twisted-pair cable
The twisted-pair cable also known as “Ethernet cables” are used for
telephone connections. They contain two wires of conducting material insulated
from each other.
The wires are twisted together in a helical form and hence the name.
9
Advantage
Disadvantage
Now they are rarely used for computer network interconnections because of
their inability to avoid disturbances.
3.Co-axial Cable
The co-axial cables are most commonly used to connect your television to
the cable operator’s setup.
The fiber optic cables carry data and information and transmit them in the
form of light rays. Hence, they are free from any outside interference like noise.
Advantage
Disadvantage
1. Infrared Transmission
2. Broadcast Radio
3. Microwave Transmission
4. Bluetooth
5. Wi-Fi Technology
10
1.Infrared Transmission
Features:
Drawback:
Infrared devices work only when two devices are in straight line.
2.Broadcast Radio
When you tune into AM or FM radio station, you are using broadcast radio. It
is a wireless transmission medium that sends data over long distance.
Ham radio, cell phones, GPS, pages use different radio frequencies to
support wireless communications.
3.Microwave Transmission
Advantages
Disadvantage
4.Bluetooth
Features
5.Wi-Fi Technology
Server
A single server can serve multiple clients, and a single client can use
multiple servers.
A client process may run on the same device or may connect over a network
to a server on a different device.
database servers, file servers, mail servers, print servers, web servers, game
servers, and application servers.[3]
Workstation
Networking Devices
Modems
These converted signals can be transmitted over the cable systems, telephone
lines, and other communication mediums.
A modem is also used to convert analog signal back into digital signal.
Modems are generally used to access internet by customers of an Internet Service
Provider (ISP).
Firewalls
A firewall is a network security device that monitors and controls the flow of
data between your computer or network and the internet. It acts as a barrier,
blocking unauthorized access while allowing trusted data to pass through.
Firewalls help protect your network from hackers, viruses, and other
online threats by filtering traffic based on security rules.
Repeater
14
Its job is to amplify (i.e., regenerate) the signal over the same network
before the signal becomes too weak or corrupted to extend the length to which the
signal can be transmitted over the same network.
Hub
Bridge
It is also used for interconnecting two LANs working on the same protocol.
It has a single input and single output port, thus making it a 2 port device.
Switch
Router
A router is a device like a switch that routes data packets based on their IP
addresses.
Gateway
A gateway, as the name suggests, is a passage to connect two networks that may
work upon different networking models.
History of Internet
The origin of the internet dates back to the 1950s when the world was
grappling with the Cold War, and researchers sought to create a communication
system that could withstand disruptions.
1. Dial up connection
2. DSL (Digital Subscriber Line)
3. ISDN(Integrated Services Digital Network)
4. Cable Network
5. Fiber Optic
6. Internet over Satellite (IoS)
7. Cellular Broadband
8. Internet in Mobile Phones
9. Wi-Fi
10.WiMAX
11.Broadband over Power Line (BPL)
1. Dial up Connection
Under this method, internet is accessed using a telephone line and a modem.
The connection is established by dialing the ISP number.
It uses analog telephone line. Encoding and decoding analog signals is done
by modem.
Disadvantages
DSL utilizes existing telephone line and modem. DSL integrates regular
phone service and internet access using a DSL hub.
Advantages
Here, there is no need to dial the ISP number because the user is always
connected to the internet.
It is an upgraded telephone line that can be used for high speed internet
access and for regular phone calls simultaneously.
4. Cable Network
Cable network provides broadband internet connection over cable TV
lines. The computer is connected to the cable modem via a network card
(NIC) and an Ethernet cable.
Cable internet connection speed varies with the number of users on
the service at a particular time.
5. Fiber Optic
The latest broadband service is fiber optic, which is the fastest internet
connection so far.
Advantage
Fiber optic internet access has become more available and affordable for
consumers and businesses.
The increasing number of service providers makes this access method a
better alternative to cable.
Disadvantage
17
This type of internet service is quite limited because of the cost involved in
laying down the fiber-optic cable.
Due to long distance between satellite and ground station dish antenna, IoS is
slower than other methods, but faster than dial up connection.
7. Cellular Broadband
Cellular broadband connections are useful when the user is travelling by car or
train.
Mobile phones can also connect to the internet, allowing people to access
websites, social media, email and other online services. This is usually done
through a cellular data plan, which is provided by the mobile phone company.
When you access the internet on your mobile phone, your phone connects to the
mobile network, which then routes your data to the internet.
9. Wi-Fi
Wi-Fi is a family of wireless network protocols based on the IEEE
802.11 family of standards, which are commonly used for local area
networking of devices and Internet access, allowing nearby digital devices to
exchange data by radio waves.
10.WiMAX
It is a type of wireless technology that provides wireless internet
service over longer distances than standard Wi-Fi. WiMAX (Worldwide
Interoperability for Microwave Access) is based on standard IEEE 802.16
technology and can provide broadband wireless access up to 30 miles.
18
BPL is the delivery of broadband over the existing low and medium voltage
electric power distribution network.
What is Broadband?
Since speed is measured by bit rate ( the number of bits processed per unit of
time ), broadband internet service is defined as being 256 kbps (kilobits per
second) or faster.
Currently, all internet connections other than dial up connection come under
the category “Broadband”.
TCP/IP transmits data in packets. These packets are routed from sender to
receiver and reassembled at the destination. In this process, we can break it into
two actions:
1.Web browsing
2. Email exchange
3. File transfer
4. Remote access
5. Streaming services
What is HTTP?
HTTP
Features of HTTP:
HTTP Transactions
The client initiates a transaction by sending a request message to the server.
The server replies to the request message by sending a response message.
Messages
HTTP messages are of two types: request and response. Both the message types
follow the same message format.
o The URL defines four parts: method, host computer, port, and path.
o Method: The method is the protocol used to retrieve the document from a
server. For example, HTTP.
o
o Host: The host is the computer where the information is stored, and the
computer is given an alias name. Web pages are mainly stored in the
computers and the computers are given an alias name that begins with the
characters "www". This field is not mandatory.
o
o Port: The URL can also contain the port number of the server, but it's an
optional field. If the port number is included, then it must come between the
host and path and it should be separated from the host by a colon.
o
o Path: Path is the pathname of the file where the information is stored. The
path itself contain slashes that separate the directories from the
subdirectories and files.
Example: https://www.apple.com.
FTP
Objectives of FTP
Why FTP?
Although transferring files from one system to another is very simple and
straightforward, but sometimes it can cause problems. For example, two systems
may have different file conventions. Two systems may have different ways to
represent text and data. Two systems may have different directory structures. FTP
protocol overcomes these problems by establishing two connections between hosts.
One connection is used for data transfer, and another connection is used for the
control connection.
Mechanism of FTP
o Control Connection: The control connection uses very simple rules for
communication. Through control connection, we can transfer a line of
command or line of response at a time. The control connection is made
23
Advantages of FTP:
o Speed: One of the biggest advantages of FTP is speed. The FTP is one of
the fastest way to transfer the files from one computer to another computer.
o Efficient: It is more efficient as we do not need to complete all the
operations to get the entire file.
o Security: To access the FTP server, we need to login with the username and
password. Therefore, we can say that FTP is more secure.
o Back & forth movement: FTP allows us to transfer the files back and forth.
Suppose you are a manager of the company, you send some information to
all the employees, and they all send information back on the same server.
Disadvantages of FTP:
o The standard requirement of the industry is that all the FTP transmissions
should be encrypted..
o FTP serves two operations, i.e., to send and receive large files on a network.
However, the size limit of the file is 2GB that can be sent. It also doesn't
allow you to run simultaneous transfers to multiple receivers.
o Passwords and file contents are sent in clear text that allows unwanted
eavesdropping. So, it is quite possible that attackers can carry out the brute
force attack by trying to guess the FTP password.
o It is not compatible with every system.
IP Address
24
IP address definition
What is an IP Address?
IP Versions
25
What Is IPv4?
IPv4 is the first major version of the Internet Protocol. IPv4 assigns 32-bit IP
addresses to devices. Each address has four groups of numbers (8-bit sections
called octets) separated by a period, such as:
192.158.1.38
The value of each octet ranges from 0 to 255, so the IPv4 model includes every
address between 0.0.0.0 and 255.255.255.255.
The network ID (the first three octets) that indicates which network the
device is on.
The host ID (the fourth octet) that identifies the specific device on that
network.
For example, if your home network has a 192.168.1.1 address, 192.168.1 is the
network ID, while the final octet (1) is the host ID. In most networks, the router
gets the .1 value by default.
IPv4 enables the creation and use of 4,294,967,296 unique addresses (more
commonly expressed as 2^32).
What Is IPv6?
IPv6 is the latest Internet Protocol version and the successor to IPv4. IPv6
aims to fulfill the need for more IP addresses, the main issue of the previous IP.
Another common name for IPv6 is IPng (Internet Protocol next generation).
IPv6 addresses are significantly longer than IPv4 variants (eight 16-bit
blocks with groups of four symbols, often called hextets or quartets) and are
alphanumeric. Also, whereas IPv4 relies on periods for formatting, IPv6 uses
colons, such as in this example:
2001:0db8:0000:0001:0000:ff00:0032:7879
26
The network ID (the first four 16 bit blocks) that indicates which network
the device is on.
The host ID (the last four 16 bit blocks) that identifies the specific device
on that network.
Inter network
An internet network is defined as two or more computer network LANs,
WANs, or computer network segments that are connected by devices
and configured with a local addressing system. The method is known as
internetworking. There are two types of Internetwork.
Intranet:
Intranet may be defined as “a private communication network created
using internet technology accessible only to members of a particular
organization”
Extranet:
An extranet can be viewed as an extension of an organization’s intranet that is
extended to users outside the organization, usually partners, vendors and suppliers.
Telnet
To use telnet, the user must know the internet address of the remote
computer and should have a valid user name and password.
Search Tools
27
There are three basic types of search tools that most people use to find what
they are looking for on the Web: Search Engines; Subject Directories and
MetaSearch Tools. Search Engines are more generic and much larger than Subject
Directories. Meta Search Tools get their results from several search engines.
Search Engines
Search Direcetories
Search directories are classified collections of documents. They are good for
searching with a context. These directories are good for browsing.
Meta Search engines are online tools (search engines) which performs
simultaneous search on more than one search engine at a time. These search
engines aggregates the results into a single list and displays them according to their
source.
e.g. Dogpile is a metasearch engine and gets its results from Google, Yahoo,
MSN Search, Ask , About, MIVA, LookSmart, and more.
Google Simple and straightforward, Google often provides A good place to start your Internet search.
a good list of relevant hits to your search. It also Google is often highly rated by users. It is
indexes PDF documents, Word documents, one of the largest indexers of the Web.
PostScript files, blogs, and YouTube,.
Google Image Easy and fast with excellent results. Clicking on an If you are looking for images this is a great
28
Search image shows the image and the page from which it site to use.
came.
Google Searches “open-to-the-free-web” scholarly Often does not link to the full text of articles,
Scholar literature (papers, theses, books, articles, etc.). or requires a fee to link to full text. Try the
Provides access to some documents that are not advanced search tips.
indexed by databases.
DuckDuckGo This search engine’s claim to fame is that it Search results often contain “instant
doesn’t track or “bubble” users. It’s a tool that answers.” A goodies service includes all
respects privacy and makes sure you see all sorts of special searches (calculations,
relevant results, not just the results it thinks you conversions, dates, etc.)
want to see.
Yahoo Yahoo has become a portal site – a home base for Best of the old “directory” style search
news, e-mail, weather, and consumer advice – as engines. Subject-listed entries are selected
well as a search tool. by people and arranged by category. It is a
good place to start a search.
AltaVista A huge index, like Google. Use the advanced AltaVista and Yahoo are owned by the same
search feature for best results. Good for searching company, so you might lose track of where
various types of images. you are…
Bing Microsoft’s addition to the list of search engines. Search results are broken down into
categories listed on the left side of the page
for easier topical searches.
Top-level domain
You might be familiar with some of the most popular generic TLDs:
.com – for commercial sites, it’s now the most popular TLD.
sites from India often use the .in domain extension, whereas
.mx → Mexico
.se → Sweden
.de → Germany
.it → Italy
31
community.
in the US.
Second-level domain
In www.hostinger.com,
This is the only customizable part of the domain and often the most
memorable.
32
Third-level domain
Search tools
Internet has in offer a variety of search tools such as search engines, search
directories to locate the information on web.
1. Search Directory
2. Search Engines
3. Meta-search Engines
Search Directory
Search directories are classified collections of documents. They are good for
searching with a context. These directories are good for browsing. In subject
directories, documents are pre classified by a person.
Search Engines
Internet offers a powerful tool known as search engine to manage, filter and
retrieve the information for their users. Search engines are automated tools for
searching information from a collection using metadata stored in the database of
search engine. In other words, it is an information retrieval system and assists in
locating information on web.
Meta-search Engines
Meta Search engines are online tools (search engines) which performs
simultaneous search on more than one search engine at a time. These search
engines aggregates the results into a single list and displays them according to their
source.