Networking - Study Notes
Networking - Study Notes
Part - 1
COMPUTER AWARENESS
Copyright © 2014-2020 TestBook Edu Solutions Pvt. Ltd.: All rights reserved
Download Testbook App
What is a network?
Network is defined as a set of devices connected to each other using a physical
transmission medium. For Example, A computer network is a group of computers
connected with each other to communicate and share information and resources like
hardware, data, and software.
Network, a group of computers and associated devices that are connected by
communication facilities.
Components of Networks
Homes usually have LAN networks as well, especially if there are multiple devices in
the home. Often they do not contain more than one subnet, if any, and are generally
controlled by a single administrator. They are not bound to be linked to the internet to
work, even though they can be.
LANs connect to WANs, such as the internet, using routers to transfer data and
information quickly and securely. WANs are generally too large to be controlled by
one administrator, and so generally have collective ownership, or in the case of the
internet, is publicly owned.
Initially a central gateway, which separates the LAN from the WAN, and then others
which transmit the data from one to the next, until it is received at its final destination
– another device which is being communicated with. This all takes place at a very
high speed over modern broadband modems, thanks to efficient and effective
protocols and rules being developed to control and manage data.
BUS Topology
Bus topology is a type of network in which each computer and network device is joint to
single cable. When it consists exactly two endpoints, then it is called Linear Bus
topology.
RING Topology
It is named ring topology because it creates a ring as each computer is linked to
neighbouring computer, with the last one linked to the first, exactly two neighbours
for each computer.
STAR Topology
In Star Topology all the nodes are linked to a common hub via a cable. This hub is
the central node and all others nodes are linked to the central node.
MESH Topology
It is type of a point-to-point to link other nodes or devices. All the network nodes are
linked to each other. Mesh consists of n(n-1)/2 physical channels to link n number of
devices.
There are two types of methods to transmit data via the Mesh topology, they are :
1. Routing
2. Flooding
TREE Topology
It has a root node and all other nodes are linked to it creating a hierarchy. It is also
called hierarchical topology. It must have minimum three levels to the hierarchy.
HYBRID Topology
It is two different kinds of topologies which is a combination of two or more
topologies. For example if in an office in some department ring topology is used and
in another department in same place, star topology is used, connecting these
topologies will form a Hybrid Topology (ring topology and star topology).
Simplex Mode
In Simplex mode, the communication is unidirectional, as on a one-way street. Only
one of the two devices on a link can transmit, the other can only receive. The
simplex mode can use the entire capacity of the channel to send data in one
direction.
Example: Keyboard and traditional monitors. The keyboard can only introduce input,
the monitor can only give the output.
Half-Duplex Mode
In half-duplex mode, each station can both transmit and receive, but not at the same
time. When one device is sending, the other can only receive, and vice versa. The
half-duplex mode is used in cases where there is no need for communication in both
direction at the same time. The entire capacity of the channel can be utilized for
each direction.
Example: Walkie- talkie in which message is sent one at a time and messages are
sent in both the directions.
Full-Duplex Mode
In full-duplex mode, both stations can transmit and receive simultaneously. In
full_duplex mode, signals going in one direction share the capacity of the link with
signals going in other direction, this sharing can occur in two ways:
Either the link must contain two physically separate transmission paths, one for
sending and other for receiving.
Full-duplex mode is used when communication in both direction is required all the time.
The capacity of the channel, however must be divided between the two directions.
Example: Telephone Network in which there is communication between two persons
by a telephone line, through which both can talk and listen at the same time.
Reference Model
Reference Model facilitates the ways of standardization which is acceptable
worldwide. As people using the computer network are situated over a huge physical
range and their network devices might consists heterogeneous architecture. The
need to provide connection among heterogeneous devices, we require a
standardized model i.e. a reference model, which would facilitate us way to
communicate using these devices regardless their architecture.
There exists two reference models namely OSI model and TCP/IP reference model,
however, the OSI model is basically a hypothetical one but the TCP/IP is absolutely
practical model.
OSI Model
OSI is acronym of Open System Interface. This model type was created by the
International organization of Standardization (ISO) and therefore also called as ISO-
OSI Model.
The OSI model consists of seven layers as shown in the given diagram. Each layer
is responsible for a specific function, however each layer provide services to the
layer above.
Physical Layer
The Physical layer is responsible for the given activities:
Activating, maintaining and deactivating the physical connection.
Defining voltages and data rates needed for transmission.
Converting digital bits into electrical signal.
Deciding whether the connection is simplex, half duplex or full duplex.
Network Layer
Given are the functions of Network Layer:
To route the signals through various channels to the other end.
To act as the network controller by deciding which route data must take.
To divide the outgoing messages into packets and to assemble incoming
packets into messages for higher levels.
Transport Layer
The Transport layer performs the given functions:
It decides if the data transmission must take place on parallel paths or single
path.
It performs multiplexing, splitting on the data.
It breaks the data groups into smaller units so that they are handled more
efficiently by the network layer.
The Transport Layer ensures sending of data from one end to other end.
Session Layer
The Session layer performs the given functions:
Manages the messages and synchronizes conversations between two
different applications.
It controls logging on and off, user identification, billing and session
management.
Presentation Layer
The Presentation layer performs the given functions:
This layer makes it sure that the information is delivered in such a form that
the receiving system will understand and use it.
Application Layer
The Application layer performs the given functions:
It provides various facilities such as manipulation of information in different
ways, retransferring the files of information, distributing the final results etc.
The functions such as LOGIN or password checking are also performed by
the application layer.
TCP/IP Model
TCP/IP model is practically implemented model, unlike OSI, and is used in the
Internet. TCP/IP refers to Transmission Control Protocol and Internet Protocol.
The TCP/IP model encapsulates the two layers (Physical and Data link layer) into
one layer i.e. Host-to-Network layer. The given diagram shows the various layers of
TCP/IP model:
Application Layer
This layer is same as that of the OSI model and performs the given functions:
It provides various facilities such as manipulation of information in different
ways, redistributing the files of information, distributing the results etc.
The functions such as LOGIN or password checking are also performed by
the application layer.
Protocols used in this layer: TELNET, HTTP, NNTP, FTP, SMTP, DN are the
protocols employed in this layer
Transport Layer
It performs the same functions as that of transport layer present in OSI model. Here
are the key points regarding transport layer:
It uses TCP and UDP protocol for end to end transmission.
TCP is reliable and connection oriented protocol.
TCP also handles flow control.
The UDP is not reliable and a connection less protocol also does not perform
flow control.
Protocols utilized in this layer: TCP/IP and UDP protocols are deployed in this layer.
Internet Layer
The responsibility of this layer is to permit the host to insert packets into network and
then make them travel independently to the destination. However, the sequence of
receiving the packet may vary from the sequence they were sent.
Protocols used: Internet Protocol (IP) is deployed in Internet layer.
Network Devices
HUB
Ethernet Hubs
It is a device linking various Ethernet
devices together and makes them carry on
the functions as a single device. They are
different in speed in terms of data transfer
rate. Ethernet utilizes so called Carrier
Sense Multiple Access with Collision
Detect (CSMA/CD) to control Media access. Ethernet hub connects in half-duplex
mode where the possibility of data collision are inevitable at most of the times.
Switches
Switches works as the connection points for an Ethernet network. Just like in hub,
devices in switches are linked to them through twisted pair cabling. But the variation
shows up in the manner both the devices, hub and a switch, takes the data. Hub
works by sending the data to all the ports on the device whereas a switch transfers it
only to that port which is linked to the destination device.
A switch does so by having an in-built learning of the MAC address of the devices
linked to it. Since the sending of data signals are predefined in a switch, therefore
the network performance is consequently effective. Switches work in full-duplex
mode where nodes can send and receive data from the switch simultaneously unlike
in half-duplex mode.
The transmission bandwidth in switches is double as compared to the Ethernet
hub transferring around 20Mbps connection into 30Mbps and around
200Mbps connection to become 300Mbps. Performance enhancements are
observed in networking with the extensive utilization of switches in the recent days.
Bridges
A bridge is a type of computer networking component that builds the connection with
the other bridge networks that are
present on the same protocol. It is
implemented at the Data Link layer of
the OSI Model and links the different
networks together and creates
communication between them. It
combines two local-area networks;
two physical LANs into bigger logical
LAN or two segments of the already
existing LAN that use the same
protocol.
Apart from creating larger networks, bridges are also utilized to segment bigger
networks into smaller portions. The bridge performs this by placing itself between
the two portions of two physical networks and managing the flow of the data
between them.
Types of Bridges
There are basically three types in which bridges can be segmented:
Transparent Bridge: As the name signifi es, it appears to be transparent
for the other devices on the network. The other devices are ignorant of its
existence. It only restricts or permits the data according to the MAC address.
Source Route Bridge: It received its name from the fact that the way
which packet takes via the network is implanted within the packet. It is mainly
utilized in Token ring networks.
Translational Bridge: The process of conversion happens via
Translational Bridge. It transforms the data format of one networking to
another. For example, conversion of Token ring to Ethernet and vice versa.
Routers
Routers are network layer components and are particularly categorised as Layer- 3
components of the OSI Model. They works on logical addressing information in the
Network header of a packet like IP Addresses.
Router is utilized to implement bigger complex networks by complex traffic routing. It
has the authority to connect dissimilar LANs on the same protocol. It also has the
authority to restrict the flow of broadcasts. A router mainly comprises of a hardware
component or a system of the computer which has multiple network interface and
routing software.
Functionality
When a router receives the data, it analyses the destination address by checking the
header of the packet. Once the address is analysed, it finds in its routing table to get
know how to connect to the destination and then transmits the packet to the higher
hop on the route. The hop might be the last destination or another router.
Routing tables play a very crucial role in letting the router takes a decision. That is
why a routing table needs to be updated and complete. The two methods using
which a router can receive data are:
Static Routing: In static routing, the routing information is fed into the routing
tables manually. It does not only become a time-taking task but gets prone to errors
as well. The manual updating is also required in case of statically configured routers
when change in the topology of the network or in the format takes place. Thus static
routing is considered for smallest environments with least number of one or two
routers.
Dynamic Routing: For larger environment dynamic routing proves to be the
practical solution. The process includes use of peculiar routing protocols to establish
communication. The purpose of these protocols is to facilitate the other routers to
transmit information about to other routers, so that the other routers can build their
own routing tables.
Repeater
Repeaters are network devices operating at physical layer of the OSI model that
amplify or regenerate an incoming signal before retransmitting it.
They are incorporated in networks to expand its coverage area. They are also
known as signal booster
Brouters
Brouters are the collaboration of bridge and routers. They take up the functionality of
the both networking components working as a bridge when forwarding data between
networks, and serving as a router when routing information to individual systems.
Brouter works as a filter that permits some data into the local network and redirects
unknown packets to the other network.
These days Brouters are not used because their functionality is embedded into the
routers in order to work as bridge as well.
RJ 45 Connector
RJ45 is a type of cable connector which is mainly used in computer
networks. RJ45 is mainly used for ethernet networking which is used to connect
different type of devices like a switch, hub, PC, router, firewall to each other. RJ45 is
the most known and popular connector type in the IT world
Gateways
Gateway is a device which is implemented to combine multiple networks and
transmits packets from one packet to the
other network. Working as the ‘gateway’ in
middle of different networking systems or
computer programs, a gateway is a
component which forms a link between
them.
It facilitates the computer programs, either
on the same device or on different device
to share information across the network via
protocols. A router is also a kind of
gateway, because it interprets data from one network protocol to another.
Other components such as bridge translates the data into different forms among two
networking systems. Then a software application transforms the data from one
format into another. Gateway is a crucial tool to translate the data format, even
though the data itself remains unchanged. Gateway might be implemented in some
other device to add its functionality into another.
Network Card
Network cards are sometimes referred as Network Interface Cards (NICs). These
are hardware components that link a computer with the network. They are installed
on the mother board. They works for
developing a physical connection of the
network to the computer. Computer data is
transformed into electrical (analog) signals
send to the network via Network Interface
Cards.
They are also able to manage some
important data-transformation function. These days’ network cards are software
controlled unlike in older days when drivers were required to configure them. In case
if the NIC doesn’t packed with the software in box then the latest drivers or the
associated software can be downloaded from the internet also.
Network Protocols
Network protocols forms a language of instructions and translations for
communication between the network components. It is mandatory that a networked
device should have one or more protocol drivers. Generally, for two computers to
interconnect on a network, they must use identical protocols. In some cases, a
computer is designed to use more than one protocols. Network protocols such as
HTTP, TCP/IP offer a provisions on which much of the Internet stands.
System requirement:
The bus compatibility should be verified on installation of an NIC into the
machine. The commonly utilized bus system is Peripheral Component
Interconnect (PCI)
Memory I/O addresses and IRQ are required.
Requirement of drivers if not already installed.
Modems
Modem is a device which transforms the computer-generated digital signals into
analog signals to enable their travelling through
phone lines. The ‘modulator-demodulator’ or
modem may work as a dial up for LAN or to
connect to an ISP.
Modems can be both external, as in the device
which connects to the USB or the serial port of a
computer machine, or proprietary components for
handheld smart devices and other devices, also
as internal, in the form of add-on expansion cards
for computer systems and PCMCIA cards for
laptop computers.
Design of a modem differs for both the external and internal modem. In internal
modems, IRQ – Interrupt request is utilized to configure the modem in addition to I/
O, which is a memory address. Usually before the installation of built-in modem,
integrated serial interfaces are disabled, assigning them the COM2 resources at the
same time.
For external types of a modem, the modem assigns and uses the resources itself.
This is especially helpful for the USB port and laptop users as the non-complex and
simpler nature of the process renders it far much more useful for daily usage.
At the time of setup, the second step to make sure the proper working of a modem is
the installation of drivers. The modem working efficiency and processing is decided
by two factors:
Speed of UART –An acronym for Universal Asynchronous Receiver or
Transmitter chip (installed on the motherboard to which the modem connection is
established)
Speed of the modem itself