Lecture 9 Networking
Lecture 9 Networking
INTRODUCTION TO COMPUTER
NETWORKS
Introduction to Computer Networks
Computer Networks
Computer network connects
two or more autonomous
computers.
Money Saving
People can save a lot of money by using the same software over
a network instead of purchasing separate copy of the software for
each other
Communication
We can communicate with different people very easily using a
large network like Internet
People can share information
They can send and receive Emails
They can also search information
Introduction to Computer Networks
Examples:
Following are the two examples of LAN:
1. In a computer Lab ,there are 40 computers connected
through LAN. The students can share files and data in the
LAB.
2. In Internet club, many computers can be connected through
LAN. These computers can share single connection of
Internet
Introduction to Computer Networks
Network Topology
Introduction to Computer Networks
Network Topology
Network Topology
• There are many ways for network connections.
Tree Mesh
Introduction to Computer Networks
Bus Topology
Commonly referred to as
a linear bus, all the
devices on a bus topology
are connected by one
single cable.
Introduction to Computer Networks
Bus Topology
Advantages :
It is simple and easy to use.
It requires small amount of cable to connect
computers.
It is less expensive .
It is easy to extend a bus.
If one node fails , it does not affect the rest of the
network.
Introduction to Computer Networks
Bus Topology
Disadvantages :
It only support small numbers of computers .
If number of computer increases, network speed will
slow down.
Introduction to Computer Networks
Star Topology
Star Topology
Advantages :
It is easy to maintain and modify network.
Adding and removing computers can be done without
disturbing the networks.
Star Topology
Disadvantages :
If central hubs fails , the entire networks break down.
It requires large amount of cable to connect
computers.
It is more expensive .
Introduction to Computer Networks
Ring Topology
Ring Topology
Advantages :
Every computer have an equal access to
network.
It is less expensive than star topology .
Disadvantages :
Failure of one computer in the ring can affect the
whole network.
It is difficult to troubleshoot.
Adding or removing computers affect the whole
network.
Introduction to Computer Networks
Mesh Topology
The mesh topology
connects each node is
directly connected to all to
nodes on the network
It is used in WANs to
interconnect LANs and
for mission critical
networks like those used
by banks and financial
institutions.
Implementing the mesh
topology is expensive and
difficult.
Introduction to Computer Networks
Mesh Topology
Advantages:
It is easy to troubleshoot
If one link becomes
unusable , it does not
harm the entire system.
The use of dedicated links
guarantees that each
connection can carry its
own data load. It
eliminates the traffic
problems.
Introduction to Computer Networks
Mesh Topology
Disadvantages:
A full mesh network can
be very expensive.
It is difficult to install.
Connecting Devices
• To connect LANs, or segments of LANs,we
use connecting devices
• There are different kinds of connecting devices
1. Hub
2. Switches
3. Repeaters
4. Bridges
5. Routers
Connecting Devices
Hubs
– Receives incoming data packets from different nodes
– Places them in a memory buffer if hub is busy
– Each packet the hub receives is sent to every node in
the network, regardless of the address on the packet.
– Nodes ignore any packets that are not addressed to
them.
– Used in star topology
– Topology must be the same
HUB
Switches
– Similar to hub
– A network switch is a computer networking device
that connects network segments
– It is often used to replace network hubs. A switch is
also often referred to as an intelligent hub.
– But it knows which of its connections lead to specific
nodes.
– Reads a packet’s addressing info and transmits the
packet out only on the line that leads to the node it is
addressed to.
– Some packets, - for example, one announcing that
another computer has come online – arrive addressed
as broadcast. The sending node wants all other
nodes to see the packet. The switch send copies of
the packet.
Repeaters
A repeater connects segments of a LAN
• A repeater forwards every frame; it has no
filtering capability
– A repeater is an electronic device that
receives a weak or low-level signal and
retransmits it at a higher level or higher
power, so that the signal can cover longer
distances without degradation.
– Strengthen the signal
– Extends a network’s length
– Mostly used in bus topology networks
Repeaters
Function of a Repeater
• A repeater is a regenerator, not an amplifier
Computer Networks
Bridges
– Similar to repeater but can interpret data
– Connects similar network segments together
– Can forward or filter data using database
– Eliminates unneeded network traffic
– Topology of entire network must be the same
Bridges
Routers
– Similar to switch.
• A specialized computer programmed to interface
between different networks.
• Routers make sure data sent over the Internet goes
where it needs to go and not where it is not needed.
• Routers are the only type of equipment that looks at
every single packet passing by on the network.
How does it works?
• A router receives data from the user.
• Looks for the remote address of the other computer
making routing decisions along the way
• Forwards the user data out to a different interface that is
closer to the remote computer
Routers