CN Practical (Suyash 448)
CN Practical (Suyash 448)
OF
Computer Network
(BTCS305-18)
DEPARTMENT OF CSE
BABA BANDA SINGH BAHADUR ENGINNERING COLLEGE
FATEHGARH SAHIB, PUNJAB
INDEX
S.no Name of the Program Date Signature
1. Write a program to demonstrate the different
data types in python.
2. Write a program to perform different operator
operations in python.
3. Write a program on logic development in C+
+.
Point-to-Point
Point-to-point networks contains exactly two hosts such as computer, switches or routers, servers
connected back to back using a single piece of cable. Often, the receiving end of one host is
connected to sending end of the other and vice-versa.
If the hosts are connected point-to-point logically, then may have multiple intermediate devices.
But the end hosts are unaware of underlying network and see each other as if they are connected
directly.
Advantages of Point-to-Point Topology:
Efficiency: P2P networks are highly efficient as they allow for direct communication
between two devices without any intermediate devices or network components.
Security: P2P networks are relatively more secure than other topologies as they do not
rely on intermediate devices that can be compromised or attacked.
Simple Configuration: P2P networks are easy to configure and require minimal
management or administration.
Limited Scalability: P2P networks are not scalable as adding new devices requires
establishing a separate link between each new device and the existing network, which can
be time-consuming and expensive.
Maintenance: P2P networks can be difficult to maintain as each device has to be managed
separately.
Lack of Redundancy: P2P networks do not provide redundancy, which can be a problem
if a link fails or a device goes offline. with a dedicated communication connection
between two systems.
Bus Topology
In case of Bus topology, all devices share single communication line or cable.Bus topology may
have problem while multiple hosts sending data at the same time. Therefore, Bus topology either
uses CSMA/CD technology or recognizes one host as Bus Master to solve the issue. It is one of
the simple forms of networking where a failure of a device does not affect the other devices. But
failure of the shared communication line can make all other devices stop functioning.
Both ends of the shared channel have line terminator. The data is sent in only one direction and
as soon as it reaches the extreme end, the terminator removes the data from the line.
Star Topology
All hosts in Star topology are connected to a central device, known as hub device, using a point-
to-point connection. That is, there exists a point to point connection between hosts and hub. The
hub device can be any of the following:
It is very reliable – if one cable or device fails then all the others will still work
It is high-performing as no data collisions can occur
Less expensive because each device only need one I/O port and wishes to be connected with
hub with one link.
Easier to put in
Robust in nature
Easy fault detection because the link are often easily identified.
No disruptions to the network when connecting or removing devices.
Each device requires just one port i.e. to attach to the hub.
If N devices are connected to every other in star, then the amount of cables required to attach
them is N. So, it’s easy to line up.
Failure of any host results in failure of the whole ring.Thus, every connection in the ring is a
point of failure. There are methods which employ one more backup ring.
In this data flows in one direction which reduces the chance of packet collisions.
In this topology additional workstations can be added after without impacting
performance of the network.
Equal access to the resources.
There is no need of server to control the connectivity among the nodes in the topology.
It is cheap to install and expand.
Minimum collision.
Speed to transfer the data is very high in this type of topology.
Due to the presence of token passing the performance of ring topology becomes better
than bus topology under heavy traffic.
Easy to manage.
Ring network is extremely orderly organized where every device has access to the token
and therefore the opportunity to transmit.
Due to the Uni-directional Ring, a data packet (token) must have to pass through all the
nodes.
If one workstation shuts down, it affects whole network or if a node goes down entire
network goes down.
It is slower in performance as compared to the bus topology
It is Expensive.
Addition and removal of any node during a network is difficult and may cause issue in
network activity.
Difficult to troubleshoot the ring.
In order for all the computer to communicate with each other, all computer must be
turned on.
Total dependence in on one cable.
They were not Scalable.
Mesh Topology
In this type of topology, a host is connected to one or multiple hosts.This topology has hosts in
point-to-point connection with every other host or may also have hosts which are in point-to-
point connection to few hosts only.
Hosts in Mesh topology also work as relay for other hosts which do not have direct point-to-
point links. Mesh technology comes into two types:
Full Mesh: All hosts have a point-to-point connection to every other host in the network. Thus
for every new host n(n-1)/2 connections are required. It provides the most reliable network
structure among all network topologies.
Partially Mesh: Not all hosts have point-to-point connection to every other host. Hosts connect
to each other in some arbitrarily fashion. This topology exists where we need to provide
reliability to some hosts out of all.
It’s costly as compared to the opposite network topologies i.e. star, bus, point to point
topology.
Installation is extremely difficult in the mesh.
Power requirement is higher as all the nodes will need to remain active all the time and
share the load.
Complex process.
The cost to implement mesh is above other selections.
There is a high risk of redundant connections.
Each node requires a further utility cost to think about.
Maintenance needs are challenging with a mesh.
Tree Topology
Also known as Hierarchical Topology, this is the most common form of network topology in use
presently.This topology imitates as extended Star topology and inherits properties of bus
topology.
This topology divides the network in to multiple levels/layers of network. Mainly in LANs, a
network is bifurcated into three types of network devices. The lowermost is access-layer where
computers are attached. The middle layer is known as distribution layer, which works as
mediator between upper layer and lower layer. The highest layer is known as core layer, and is
central point of the network, i.e. root of the tree from which all nodes fork.
All neighboring hosts have point-to-point connection between them.Similar to the Bus topology,
if the root goes down, then the entire network suffers even.though it is not the single point of
failure. Every connection serves as point of failure, failing of which divides the network into
unreachable segment.
This network is very difficult to configure as compared to the other network topologies.
The length of a segment is limited & the limit of the segment depends on the type of
cabling used.
Due to the presence of a large number of nodes, the network performance of tree
topology becomes a bit slow.
If the computer on the first level is erroneous, the next-level computer will also go under
problems.
Requires a large number of cables compared to star and ring topology.
As the data needs to travel from the central cable this creates dense network traffic.
The Backbone appears as the failure point of the entire segment of the network.
Treatment of the topology is pretty complex.
The establishment cost increases as well.
If the bulk of nodes is added to this network, then the maintenance will become
complicated.