CN Unit-1-1
CN Unit-1-1
What is a Network?
A network consists of two or more computers that are linked in order to
share resources (such as printers and CDs), exchange files, or allow electronic
communications. The computers on a network may be linked through cables,
telephone lines, radio waves, satellites, or infrared light beams.
A computer network is a system that connects two or more
computing devices to transmit and share information.
A computer network is a system that connects two or more
computing devices for transmitting and sharing information.
Computing devices include everything from a mobile phone to a
server. These devices are connected using physical wires such as fiber
optics, but they can also be wireless.
• Peer-to-peer Architecture
• Client-Server Architecture
Peer-To-Peer network
o Peer-To-Peer network is a network in which all the computers are linked
together with equal privilege and responsibilities for processing the data.
o Peer-To-Peer network is useful for small environments, usually up to 10
computers.
o Peer-To-Peer network has no dedicated server.
o Special permissions are assigned to each computer for sharing the
resources, but this can lead to a problem if the computer with the resource
is down.
Advantages of Peer-To-Peer Network:
o It is less costly as it does not contain any dedicated server.
o If one computer stops working but, other computers will not stop working.
o It is easy to set up and maintain as each computer manages itself.
2. Client-Server Architecture:
client-server architecture, architecture of a computer network in which
many clients (remote processors) request and receive service from a
centralized server (host computer).
Client computers provide an interface to allow a computer user to request
services of the server and to display the results the server returns.
Client: A client is a program that runs on the local machine requesting service
from the server.
One-tier: A one-tier server uses a single device to run a program. It can help
eliminate network traffic, as it doesn't require network access.
Two-tier: These server systems include a client, server and program, and they
also store the graphical user interface (GUI) on the client's device while keeping
the domain logic on a server. This server type uses Java or C++ coding
languages to display the GUI.
o A local area network (LAN) is usually privately owned and links the
devices in a single office, building, or campus
o It is a widely useful network for sharing resources
Advantages of LAN
Wired Personal Area Network: Wired Personal Area Network is created by using
the USB.
Examples Of Personal Area Network:
o Body Area Network: Body Area Network is a network that moves with a
person. For example, a mobile network moves with a person. Suppose a
person establishes a network connection and then creates a connection
with another device to share the information.
o Offline Network: A home network is designed to integrate the devices
such as printers, computer, television but they are not connected to the
internet.
• The dual bus in MAN network provides support to transmit data in both
directions concurrently.
• A MAN network mostly includes some areas of a city or an entire city.
Bus Topology
• Bus topology is the simplest kind of topology in which a common bus or
channel is used for communication in the network.
• The bus is connected to various taps and droplines. Taps are the connectors,
while droplines are the cables connecting the bus with the computer. In other
words, there is only a single transmission line for all nodes.
• When a sender sends a message, all other computers can hear it, but only the
receiver accepts it(verifying the mac address attached with the data frame) and
others reject it.
• Bus technology is mainly suited for small networks like LAN, etc.
• In this topology, the bus acts as the backbone of the network, which joins every
computer and peripherals in the network.
• Both ends of the shared channel have line terminators.
• The data is sent only in one direction and as soon as it reaches the end, the
terminator removes the data from the communication line (to prevent signal
bounce and data flow disruption).
• In a bus topology, each computer communicates to another computer on the
network independently.
• Every computer can share the network's total bus capabilities. The devices share
the responsibility for the flow of data from one point to the other in the
network.
Star Topology
• Star topology is a computer network topology in which all the nodes are
connected to a centralized hub.
• The hub or switch acts as a middleware between the nodes. Any node
requesting for service or providing service, first contact the hub for
communication.
• The central device(hub or switch) has point to point communication link(the
dedicated link between the devices which cannot be accessed by some other
computer) with the devices.
• In a star topology, hub and switch act as a server, and the other connected
devices act as clients.
• The central device then broadcast or unicast the message based on the central
device used. The hub broadcasts the message, while the switch unicasts the
messages by maintaining a switch table.
• Broadcasting increases unnecessary data traffic in the network.
• Only one input-output port and one cable are required to connect a node to
the central device.
• This topology is better in terms of security because the data does not pass
through every node.
1. Centralized control.
2. Less Expensive.
3. Easy to troubleshoot(the faulty node does not give response).
4. Good fault tolerance due to centralized control on nodes.
5. Easy to scale(nodes can be added or removed to the network easily).
6. If a node fails, it will not affect other nodes.
7. Easy to reconfigure and upgrade(configured using a central device).
Following are the disadvantages of Star topology:
Mesh Topology
• Mesh topology is a computer network topology in which nodes are
interconnected with each other. In other words, direct communication takes
place between the nodes in the network.
Mainly two types of Mesh topologies are there, They are:
1. Full Mesh: In which each node is connected to every other node
in the network.
• In a fully connected mesh topology, each device has a point to point link
with every other device in the network.
• If there are 'n' devices in the network, then each device has exactly
(n-1) input-output ports and communication links.
• These links are simplex links, i.e., the data moves only in one
direction. A duplex link (in which data can travel in both the
directions simultaneously) can replace two simplex links.
• If we are using simplex links, then the number of communication
links will be n (n-1) for n devices, while it is n(n-1)/2 if we are using
duplex links in the mesh topology.
1. Partial Mesh: In which, some nodes are not connected to every node in the
network.
For Example, the Internet (WAN), etc.
5. Tree Topology:
• Tree topology is a computer network topology in which all the nodes are
directly or indirectly connected to the main bus cable. Tree topology is a
combination of Bus and Star topology.
• Tree topologies have a root node, and all other nodes ar e connected which
forming a hierarchy.
• In a tree topology, the whole network is divided into segments, which can be
easily managed and maintained.
• There is a main hub and all the other sub-hubs are connected to each other in
this topology.
• All the good features of each topology can be used to make an efficient
hybrid topology.
1. Complex design.
2. Expensive to implement.
3. Multi-Station Access Unit (MSAL) required.
OSI Reference Model
• OSI stands for Open Systems Interconnection. It has been developed
by ISO – ‘International Organization for Standardization‘, in the
year 1984.
• It is 7-layer architecture with each layer having specific functionality to
perform. OSI model divides the whole task into these seven smaller and
manageable tasks. Each layer is assigned a particular task.
• Each layer is self-contained, so that task assigned to each layer can be
performed independently.
• All these 7 layers work collaboratively to transmit the data from one
person to another across the globe.
1. Physical Layer
2. Data-Link Layer
3. Network Layer
4. Transport Layer
5. Session Layer
6. Presentation Layer
7. Application Layer
1) Physical layer
2) Data-Link Layer
o The data link layer is responsible for moving frames from one hop (node)
to the next
o This layer is responsible for the error-free transfer of data frames.
o It is mainly responsible for the unique identification of each device that
resides on a local network.
Functions of the Data-link layer
o Framing: The data link layer translates the physical's raw bit stream into
packets known as Frames. The Data link layer adds the header and trailer
to the frame. The header which is added to the frame contains the
hardware destination and source address.
o Physical Addressing: The Data link layer adds System addresses of both
source and destination systems to the frame. Physical address is known as
system address or host address.
o Flow Control: Flow control is the main functionality of the Data-link
layer. It is the technique through which the constant data rate is
maintained on both the sides so that no data get corrupted. It ensures a
balance between transmitting speed and receiving capacity between
source and destination.
o Error Control: The data link layer adds reliability to the physical layer
by adding mechanisms to detect and retransmit damaged or lost frames. It
also uses a mechanism to recognize duplicate frames. Error control is
normally achieved through a trailer added to the end of the frame.
o Access control. When two or more devices are connected to the same
link, data link layer protocols are necessary to determine which device
has control over the link at any given time.
3) Network Layer
o The network layer is responsible for the source-to-destination delivery of
a packet, possibly across multiple networks (links). Whereas the data link
layer oversees the delivery of the packet between two systems on the
same network (links), the network layer ensures that each packet gets
from its point of origin to its final destination.
o If two systems are connected to the same link, there is usually no need for
a net• work layer. However, if the two systems are attached to different
networks (links) with connecting devices between the networks (links),
there is often a need for the network layer to accomplish source-to-
destination delivery.
4) Transport Layer
5) Session Layer
The services provided by the first three layers (physical, data link, and network)
are not sufficient for some processes. The session layer is the network dialog
controller. It establishes, maintains, and synchronizes the interaction among
communicating systems.
Functions of Session layer:
o Dialog control: Session layer acts as a dialog controller that creates a
dialog between two processes or we can say that it allows the
communication between two processes which can be either half-duplex or
full-duplex.
6) Presentation Layer
o A Presentation layer is mainly concerned with the syntax and semantics
of the information exchanged between the two systems.
o It acts as a data translator for a network.
o This layer is a part of the operating system that converts the data from one
presentation format to another format.
o The Presentation layer is also known as the syntax layer.
Functions of Presentation layer:
7) Application Layer
o An application layer serves as a window for users and application
processes to access network service.
o The application layer enables the user, whether human or software, to
access the net• work. It provides user interfaces and support for services
such as electronic mail, remote file access and transfer, shared database
management, and other types of distributed information services..
Functions of Application layer: