CN Practical 1
CN Practical 1
LD College of Engineering
Ahmedabad- 380015
Computer Network
Practical- 1
Study of different Network devices
Computer Network 1
200280116023 Bhavik
Network devices
Network devices, or networking hardware, are physical devices that
are required for communication and interaction between hardware
on a computer network.
There are several types of network devices which are demonstrated
below one by one.
1. Hub
A hub can be used with both digital and analoge data, provided its
settings have been configured to prepare for the formatting of the
incoming data. For example, if the incoming data is in digital
format,the hub must pass it on as packets; however, if the incoming
data is analog, then the hub passes it on in signal form.
Computer Network 2
200280116023 Bhavik
Hubs do not perform packet filtering or addressing functions; they just
send data packets to all connected devices. Hubs operate at the
Physical layer of the Open Systems Interconnection (OSI) model. There
are two types of hubs: simple and multiple port.
Features of Hubs
Computer Network 3
200280116023 Bhavik
network management, switching, providing flexible data rates
etc.
2. Switch:
Features of Switches
A switch operates in the layer 2, i.e. data link layer of the OSI
model.
It is an intelligent network device that can be conceived as a
multiport network bridge.
It uses MAC addresses (addresses of medium access control
sublayer) to send data packets to selected destination ports.
It uses packet switching technique to receive and forward data
packets from the source to the destination device.
It is supports unicast (one-to-one), multicast (one-to-many) and
Computer Network 4
200280116023 Bhavik
broadcast (one-to-all) communications.
Transmission mode is full duplex, i.e. communication in the
channel occurs in both the directions at the same time. Due to
this, collisions do not occur.
Switches are active devices, equipped with network software and
network management capabilities.
Switches can perform some error checking before forwarding
data to the destined port.
The number of ports is higher – 24/48.
Types of Switches
There are variety of switches that can be broadly categorised into 4
types −
3. Router:
Computer Network 6
200280116023 Bhavik
Features of Routers
A router is a layer 3 or network layer device.
It connects different networks together and sends data packets
from one network to another.
A router can be used both in LANs (Local Area Networks) and
WANs (Wide Area Networks).
It transfers data in the form of IP packets. In order to transmit
data, it uses IP address mentioned in the destination field of the
IP packet.
Routers have a routing table in it that is refreshed periodically
according to the changes in the network. In order to transmit
data packets, it consults the table and uses a routing protocol.
In order to prepare or refresh the routing table, routers share
information among each other.
Routers provide protection against broadcast storms.
Routers are more expensive than other networking devices like
hubs, bridges and switches.
Routers are manufactured by some popular companies like −
o Cisco
o D-Link
o HP
o 3Com
o Juniper
o Nortel
Routing Table
The functioning of a router depends largely upon the routing table
stored in it. The routing table stores the available routes for all
destinations. The router consults the routing table to determine the
optimal route through which the data packets can be sent.
A routing table typically contains the following entities −
IP addresses and subnet mask of the nodes in the network
Computer Network 7
200280116023 Bhavik
Interface information among the network devices and channels
Routing tables are of two types −
Static Routing Table − Here, the routes are fed manually and are
Computer Network 8
200280116023 Bhavik
functionalities of bridges as well. Like a bridge, brouters help to
transfer data between networks. And like a router, they route
the data within the devices of a network.
Applications of Routers:
Computer Network 9
200280116023 Bhavik
4. Bridge:
A bridge is a network device that connects multiple LANs (local area networks)
together to form a larger LAN. The process of aggregating networks is called
network bridging. A bridge connects the different components so that they
appear as parts of a single network. Bridges operate at the data link layer of the
OSI model and hence also referred as Layer 2 switches.
The following diagram shows a bridges connecting two LANs –
Computer Network 10
200280116023 Bhavik
Uses of Bridge
• Bridges connects two or more different LANs that has a similar protocol
and provides communication between the devices (nodes) in them.
• By joining multiple LANs, bridges help in multiplying the network capacity
of a single LAN.
• Since they operate at data link layer, they transmit data as data frames. On
receiving a data frame, the bridge consults a database to decide whether to
pass, transmit or discard the frame.
o If the frame has a destination MAC (media access control) address in the
same network, the bridge passes the frame to that node and then discards it.
o If the frame has a destination MAC address in a connected network, it will
forward the frame toward it.
• By deciding whether to forward or discard a frame, it prevents a single
faulty node from bringing down the entire network.
• In cases where the destination MAC address is not available, bridges can
broadcast data frames to each node. To discover new segments, they maintain
the MAC address table.
• In order to provide full functional support, bridges ideally need to be
transparent. No major hardware, software or architectural changes should be
required for their installation.
• Bridges can switch any kind of packets, be it IP packets or AppleTalk
packets, from the network layer above. This is because bridges do not examine
the payload field of the data frame that arrives, but simply looks at the MAC
address for switching.
• Bridges also connect virtual LANs (VLANs) to make a larger VLAN.
Computer Network 11
200280116023 Bhavik
• A wireless bridge is used to connect wireless networks or networks having
a wireless segment.
Working Principle
The working principle of a bridge is, it blocks or forwards the data depending on
the destination MAC address and this address is written into every data frame.
5 Modem:
Modem is a device that enables a computer to send or receive data
over telephone or cable lines. The data stored on the computer is
digital whereas a telephone line or cable wire can transmit only analog
data.
The main function of the modem is to convert digital signal into analog
and vice versa. Modem is a combination of two devices
− modulator and demodulator. The modulator converts digital data
into analog data when the data is being sent by the computer. The
demodulator converts analog data signals into digital data when it is
being received by the computer.
Computer Network 12
200280116023 Bhavik
Types of Modem
6. 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 boosters.
Computer Network 13
200280116023 Bhavik
Types of Repeaters
Repeaters are simple to install and can easily extend the length
or the coverage area of networks.
They are cost effective.
Repeaters don’t require any processing overhead. The only
time they need to be investigated is in case of degradation of
performance.
They can connect signals using different types of cables.
Disadvantages of Repeaters
Sheath
This is the outer layer of the coaxial cable. It protects the cable from
physical damage.
Braided shield
This shield protects signals from external interference and noise. This shield
is built from the same metal that is used to build the core.
Insulation
Insulation protects the core. It also keeps the core separate from the
braided shield. Since both the core and the braided shield use the
same metal, without this layer, they will touch each other and create a
Computer Network 15
200280116023 Bhavik
short-circuit in the wire.
Conductor
Twisted-pair cables
Computer Network 16
200280116023 Bhavik
color wire. Solid colors are blue, brown, green, and orange. In stripped
color, the solid color is mixed with the white color.
Based on how pairs are stripped in the plastic sheath, there are two
types of twisted-pair cable; UTP and STP.
In the UTP (Unshielded twisted-pair) cable, all pairs are wrapped in a
single plastic sheath.
In the STP (Shielded twisted-pair) cable, each pair is wrapped with an
additional metal shield, then all pairs are wrapped in a single outer
plastic sheath.
8 Gateway:
A gateway is a network node that forms a passage between two
networks operating with different transmission protocols. The most
common type of gateways, the network gateway operates at layer
3, i.e. network layer of the OSI (open systems interconnection)
model. However, depending upon the functionality, a gateway can
operate at any of the seven layers of OSI model. It acts as the entry
– exit point for a network since all traffic that flows across the
networks should pass through the gateway. Only the internal traffic
between the nodes of a LAN does not pass through the gateway.
Computer Network 17
200280116023 Bhavik
Features of Gateways
Gateway is located at the boundary of a network and manages
all data that inflows or outflows from that network.
It forms a passage between two different networks operating
with different transmission protocols.
Types of Gateways
On basis of direction of data flow, gateways are broadly divided into
Computer Network 18
200280116023 Bhavik
two categories –
Computer Network 19
200280116023 Bhavik
and fax machines, with VoIP (voice over Internet Protocol)
network.
Computer Network 20