You are on page 1of 13

Computer Networks

Assignment #1

Q1:

Q2:
1.
Hub: A hub broadcasts packets to all connected devices, including
switches, without knowing who actually needs the data. This leads to
inefficiency and unnecessary network traffic.
Switch: Unlike a hub, a switch is intelligent. It checks the destination
address of a packet and uses a MAC address table to determine which
device is supposed to receive it. This way, it only sends the packet to the
specific device that needs it, reducing network congestion and making
the network more efficient.

2.
Hub and Router Interaction: When a hub is connected to a router, it
operates by broadcasting packets to all connected devices, lacking
intelligence about who actually needs the data. The router, being an
intelligent device, processes these packets based on its configuration.
Router's Behavior: The router examines the destination IP address of
incoming packets and uses its routing table to decide whether to forward
the packet to another network or not. If the packet is meant for a device
within the same local network, the router may choose to forward it
internally. However, if the packet is destined for a different network, the
router routes it accordingly.

Stopping or Forwarding Packets: Whether the router forwards or stops a


packet from a hub depends on its routing configuration. If the packet is
intended for a device within the local network, the router may forward it.
Conversely, if it's meant for another network, the router will handle the
routing process and send the packet on its way.

Q3:
Q4:
Q5:

You might also like