Computer Network Tutorial
Computer Network Tutorial
A computer network is a set of devices connected through Major components of a computer network are:
links. A node can be computer, printer, or any other device
capable of sending or receiving the data. The links connecting NIC(National interface card)
the nodes are known as communication channels.
Security: It provides limited interaction that a user Wireless NIC: All the modern laptops use the
can have with the entire system. For example, a bank wireless NIC. In Wireless NIC, a connection is made
allows the users to access their own accounts through using the antenna that employs the radio wave
an ATM without allowing them to access the bank's technology.
entire database.
Wired NIC: Cables use the wired NIC to transfer
Faster problem solving: Multiple computers can the data over the medium.
solve the problem faster than a single machine
working alone.
Security through redundancy: Multiple computers Hub
running the same program at the same time can
provide the security through redundancy. For Hub is a central device that splits the network connection into
example, if four computers run the same program and multiple devices. When computer requests for information
any computer has a hardware error, then other from a computer, it sends the request to the Hub. Hub
computers can override it. distributes this request to all the interconnected computers.
Computer Network is a group of computers Switch is a networking device that groups all the devices over
connected with each other through wires, optical the network to transfer the data to another device. A switch is
fibres or optical links so that various devices can better than Hub as it does not broadcast the message over the
interact with each other through a network. network, i.e., it sends the message to the device for which it
The aim of the computer network is the sharing of belongs to. Therefore, we can say that switch sends the
resources among various devices. message directly from source to the destination.
In the case of computer network technology, there are
several types of networks that vary from simple to Cables and connectors
complex level.
Cable is a transmission media that transmits the
Components of Computer Network: communication signals. There are three types of cables:
Router is a device that connects the LAN to the internet. The File sharing is one of the major advantages of the computer
router is mainly used to connect the distinct networks or network. Computer network provides us to share the files with
connect the internet to multiple computers. each other.
Modem connects the computer to the internet over the existing Since the files are stored in the main server which is centrally
telephone line. A modem is not integrated with the computer located. Therefore, it is easy to take the back up from the main
motherboard. A modem is a separate part on the PC slot found server.
on the motherboard.
Software and Hardware sharing
Uses of Computer Network
We can install the applications on the main server; therefore,
Resource sharing: Resource sharing is the sharing of the user can access the applications centrally. So, we do not
resources such as programs, printers, and data among need to install the software on every machine. Similarly,
the users on the network without the requirement of hardware can also be shared.
the physical location of the resource and user.
Server-Client model: Computer networking is used
in the server-client model. A server is a central Security
computer used to store the information and
maintained by the system administrator. Clients are Network allows the security by ensuring that the user has the
the machines used to access the information stored in right to access the certain files and applications.
the server remotely.
Communication medium: Computer network Scalability
behaves as a communication medium among the
users. For example, a company contains more than
Scalability means that we can add the new components on the
one computer has an email system which the
network. Network must be scalable so that we can extend the
employees use for daily communication.
network by adding new devices. But, it decreases the speed of
E-commerce: Computer network is also important in the connection and data of the transmission speed also
businesses. We can do the business over the internet. decreases, this increases the chances of error occurring. This
For example, amazon.com is doing their business problem can be overcome by using the routing or switching
over the internet, i.e., they are doing their business devices.
over the internet.
Reliability
Features of Computer network
Computer network can use the alternative source for the data
A list Of Computer network features is given below.
communication in case of any hardware failure.
Communication speed
Computer Network Architecture
File sharing
Back up and Roll back is easy
Computer Network Architecture is defined as the physical and
Software and Hardware sharing
logical design of the software, hardware, protocols, and media
Security of the transmission of data. Simply we can say that how
Scalability computers are organized and how tasks are allocated to the
Reliability computer.
The two types of network architectures are used: Client/Server Network
It is less costly as it does not contain any dedicated Client/Server network is expensive as it requires the
server. server with large memory.
If one computer stops working but, other computers A server has a Network Operating System(NOS) to
will not stop working. provide the resources to the clients, but the cost of
It is easy to set up and maintain as each computer NOS is very high.
manages itself. It requires a dedicated network administrator to
manage all the resources.
Disadvantages of Peer-To-Peer Network:
Computer Network Components
In the case of Peer-To-Peer network, it does not
Computer network components are the major parts which are
contain the centralized system. Therefore, it cannot
needed to install the software. Some important network
back up the data as the data is different in different
components are NIC, switch, cable, hub, router, and
locations.
modem. Depending on the type of network that we need to
It has a security issue as the device is managed itself.
install, some network components can also be removed. For Switch
example, the wireless network does not require a cable.
A switch is a hardware device that connects multiple devices
Following are the major components required to install a on a computer network. A Switch contains more advanced
network: features than Hub. The Switch contains the updated table that
decides where the data is transmitted or not. Switch delivers
NIC the message to the correct destination based on the physical
address present in the incoming message. A Switch does not
broadcast the message to the entire network like the Hub. It
NIC stands for network interface card.
determines the device to whom the message is to be
NIC is a hardware component used to connect a
transmitted. Therefore, we can say that switch provides a
computer with another computer onto a network
direct connection between the source and destination. It
It can support a transfer rate of 10,100 to 1000 Mb/s. increases the speed of the network.
The MAC address or physical address is encoded on
the network card chip which is assigned by the IEEE
Router
to identify a network card uniquely. The MAC
address is stored in the PROM (Programmable read-
only memory). A router is a hardware device which is used to
connect a LAN with an internet connection. It is used
to receive, analyze and forward the incoming packets
There are two types of NIC:
to another network.
A router works in a Layer 3 (Network layer) of the
OSI Reference model.
A router forwards the packet based on the
information available in the routing table.
It determines the best path from the available paths
for the transmission of the packet.
Advantages of Router:
A Wide Area Network is a network that extends over Security issue: A WAN network has more security
a large geographical area such as states or countries. issues as compared to LAN and MAN network as all
A Wide Area Network is quite bigger network than the technologies are combined together that creates
the LAN. the security problem.
A Wide Area Network is not limited to a single Needs Firewall & antivirus software: The data is
location, but it spans over a large geographical area transferred on the internet which can be changed or
through a telephone line, fibre optic cable or satellite hacked by the hackers, so the firewall needs to be
links. used. Some people can inject the virus in our system
The internet is one of the biggest WAN in the world. so antivirus is needed to protect from such a virus.
A Wide Area Network is widely used in the field of High Setup cost: An installation cost of the WAN
Business, government, and education. network is high as it involves the purchasing of
routers, switches.
Troubleshooting problems: It covers a large area so
Examples of Wide Area Network:
fixing the problem is difficult.
Fully connected mesh topology Reliable: If a fault occurs in any part of the network
Partially connected mesh topology will not affect the functioning of the rest of the
network.
Scalable: Size of the network can be easily expanded This transmission mode is not very popular as mainly
by adding new devices without affecting the communications require the two-way exchange of
functionality of the existing network. data. The simplex mode is used in the business field
Flexible: This topology is very flexible as it can be as in sales that do not require any corresponding
designed according to the requirements of the reply.
organization. The radio station is a simplex channel as it transmits
Effective: Hybrid topology is very effective as it can the signal to the listeners but never allows them to
be designed in such a way that the strength of the transmit back.
network is maximized and weakness of the network Keyboard and Monitor are the examples of the
is minimized. simplex mode as a keyboard can only accept the data
from the user and monitor can only be used to display
Disadvantages of Hybrid topology the data on the screen.
The main advantage of the simplex mode is that the
full capacity of the communication channel can be
Complex design: The major drawback of the Hybrid utilized during transmission.
topology is the design of the Hybrid network. It is
very difficult to design the architecture of the Hybrid
network. Advantage of Simplex mode:
Costly Hub: The Hubs used in the Hybrid topology
are very expensive as these hubs are different from In simplex mode, the station can utilize the entire
usual Hubs used in other topologies. bandwidth of the communication channel, so that
Costly infrastructure: The infrastructure cost is more data can be transmitted at a time.
very high as a hybrid network requires a lot of
cabling, network devices, etc. Disadvantage of Simplex mode:
Layered Architecture
If there is no dedicated path exists between the
devices, then the capacity of the communication
channel is divided into two parts. The main aim of the layered architecture is to divide
the design into small pieces.
Differences b/w Simplex, Half-duplex and Full-duplex mode Each lower layer adds its services to the higher layer
to provide a full set of services to manage
communications and run the applications.
Basis for Half-duplex
Simplex mode Full-duplex mode It provides modularity and clear interfaces, i.e.,
comparison mode
provides interaction between subsystems.
It ensures the independence between layers by
In half-duplex
In simplex mode, mode, the In full-duplex mode,
providing the services from lower to higher layer
Direction of without defining how the services are implemented.
the communication communication is the communication is
communication Therefore, any modification in a layer will not affect
is unidirectional. bidirectional, but bidirectional.
one at a time. the other layers.
The number of layers, functions, contents of each
A device can only layer will vary from network to network. However,
send the data but Both the devices the purpose of each layer is to provide the service
Both the devices can
Send/Receive
cannot receive it or can send and
send and receive the
from lower to a higher layer and hiding the details
it can only receive receive the data, from the layers of how the services are implemented.
data simultaneously.
the data but cannot but one at a time. The basic elements of layered architecture are
send it. services, protocols, and interfaces.
o Service: It is a set of actions that a layer
The Full-duplex provides to the higher layer.
mode has better
o Protocol: It defines a set of rules that a layer
performance among
The performance uses to exchange the information with peer
The performance simplex and half-
of half-duplex
of full-duplex
duplex mode as it
entity. These rules mainly concern about
Performance mode is better both the contents and order of the messages
mode is better than doubles the
than the half- used.
the simplex mode. utilization of the
duplex mode. o Interface: It is a way through which the
capacity of the
communication message is transferred from one layer to
channel. another layer.
In a layer n architecture, layer n on one machine will
Examples of
Example of half- Example of the Full- have a communication with the layer n on another
Example
Simplex mode are
duplex is Walkie- duplex mode is a machine and the rules used in a conversation are
Talkies. telephone network. known as a layer-n protocol.
radio, keyboard,
Why do we require Layered architecture? hypertext environment where there are rapid jumps
from one document to another.
Divide-and-conquer approach: Divide-and-conquer SNMP: SNMP stands for Simple Network
approach makes a design process in such a way that Management Protocol. It is a framework used for
the unmanageable tasks are divided into small and managing the devices on the internet by using the
manageable tasks. In short, we can say that this TCP/IP protocol suite.
approach reduces the complexity of the design. SMTP: SMTP stands for Simple mail transfer
Modularity: Layered architecture is more modular. protocol. The TCP/IP protocol that supports the e-
Modularity provides the independence of layers, mail is known as a Simple mail transfer protocol.
which is easier to understand and implement. This protocol is used to send the data to another e-
Easy to modify: It ensures the independence of mail address.
layers so that implementation in one layer can be DNS: DNS stands for Domain Name System. An IP
changed without affecting other layers. address is used to identify the connection of a host to
Easy to test: Each layer of the layered architecture the internet uniquely. But, people prefer to use the
can be analyzed and tested individually. names instead of addresses. Therefore, the system
that maps the name to the address is known as
Domain Name System.
Functions of the OSI Layers
TELNET: It is an abbreviation for Terminal
Network. It establishes the connection between the
There are the seven OSI layers. Each layer has different local computer and remote computer in such a way
functions. A list of seven layers is given below: that the local terminal appears to be a terminal at the
remote system.
1. Physical Layer FTP: FTP stands for File Transfer Protocol. FTP is a
2. Data-Link Layer standard internet protocol used for transmitting the
3. Network Layer files from one computer to another computer.
4. Transport Layer
5. Session Layer What is Transmission media?
6. Presentation Layer
7. Application Layer
Transmission media is a communication channel that
carries the information from the sender to the
TCP/IP model
receiver. Data is transmitted through the
electromagnetic signals.
The TCP/IP model was developed prior to the OSI The main functionality of the transmission media is
model. to carry the information in the form of bits through
The TCP/IP model is not exactly similar to the OSI LAN(Local Area Network).
model. It is a physical path between transmitter and receiver
The TCP/IP model consists of five layers: the in data communication.
application layer, transport layer, network layer, data In a copper-based network, the bits in the form of
link layer and physical layer. electrical signals.
The first four layers provide physical standards, In a fibre based network, the bits in the form of light
network interface, internetworking, and transport pulses.
functions that correspond to the first four layers of In OSI(Open System Interconnection) phase,
the OSI model and these four layers are represented transmission media supports the Layer 1. Therefore,
in TCP/IP model by a single layer called the it is considered to be as a Layer 1 component.
application layer. The electrical signals can be sent through the copper
TCP/IP is a hierarchical protocol made up of wire, fibre optics, atmosphere, water, and vacuum.
interactive modules, and each of them provides The characteristics and quality of data transmission
specific functionality. are determined by the characteristics of medium and
signal.
Here, hierarchical means that each upper-layer protocol is Transmission media is of two types are wired media
supported by two or more lower-level protocols. and wireless media. In wired media, medium
characteristics are more important whereas, in
Following are the main protocols used in the application wireless media, signal characteristics are more
layer: important.
Different transmission media have different
properties such as bandwidth, delay, cost and ease of
HTTP: HTTP stands for Hypertext transfer protocol.
installation and maintenance.
This protocol allows us to access the data over the
The transmission media is available in the lowest
World Wide Web. It transfers the data in the form of
layer of the OSI reference model, i.e., Physical layer.
plain text, audio, video. It is known as a Hypertext
transfer protocol as it has the efficiency to use in a
Some factors need to be considered for designing the Guided Media
transmission media:
It is defined as the physical medium through which the signals
Bandwidth: All the factors are remaining constant, are transmitted. It is also known as Bounded media.
the greater the bandwidth of a medium, the higher the
data transmission rate of a signal. Types of Guided media:
Transmission impairment: When the received
signal is not identical to the transmitted one due to Twisted pair:
the transmission impairment. The quality of the
signals will get destroyed due to transmission Twisted pair is a physical media made up of a pair of cables
impairment. twisted with each other. A twisted pair cable is cheap as
Interference: Interference is defined as the process compared to other transmission media. Installation of the
of disrupting a signal when it travels over a twisted pair cable is easy, and it is a lightweight cable. The
communication medium on the addition of some frequency range for twisted pair cable is from 0 to 3.5KHz.
unwanted signal.
A twisted pair consists of two insulated copper wires arranged
Causes of Transmission Impairment: in a regular spiral pattern.
A shielded twisted pair is a cable that contains the mesh It is more expensive as compared to twisted pair
surrounding the wire that allows the higher transmission rate. cable.
If any fault occurs in the cable causes the failure in
Characteristics of Shielded Twisted Pair: the entire network.
The cost of the shielded twisted pair cable is not very Fibre Optic
high and not very low.
An installation of STP is easy. Fibre optic cable is a cable that uses electrical signals
It has higher capacity as compared to unshielded for communication.
twisted pair cable. Fibre optic is a cable that holds the optical fibres
It has a higher attenuation. coated in plastic that are used to send the data by
It is shielded that provides the higher data pulses of light.
transmission rate. The plastic coating protects the optical fibres from
heat, cold, electromagnetic interference from other
types of wiring.
Disadvantages
Fibre optics provide faster data transmission than
copper wires.
It is more expensive as compared to UTP and coaxial
cable.
Diagrammatic representation of fibre optic cable:
It has a higher attenuation rate.
Coaxial Cable
Advantages of Microwave: