Router in Computer Networks (original) (raw)

Last Updated : 6 Oct, 2025

A router is a networking device that forwards data packets between different computer networks. It connects multiple packet-switched networks or subnetworks, managing traffic by directing packets to their intended IP addresses. Routers allow multiple devices to share an Internet connection efficiently.

Router

Router

**Example: When you access www.google.com, your request is broken into packets. These packets don’t travel directly to Google’s server-they pass through a series of routers that examine and forward them along the most efficient path until they reach the destination.

How Does a Router Work?

Routers determine the path for a packet by examining its destination IP address and consulting the routing table, which contains information on network paths. They use a set of rules to identify the most efficient route for each packet.

Network_devices

Router Network

**Note: Routers often work with a modem (cable, DSL, or fiber) to enable Internet connectivity

Functions of a Router

Router Architecture

routing_processor

Architecture of Router

A typical router consists of:

**Memory switching: CPU copies packets to output ports.
**Bus switching: Single bus transfers packets to the correct port.
**Interconnection networks: Complex designs connecting multiple input/output ports.

Common Routing Protocols

Applications of Routers

Types of Routers

  1. **Broadband Routers: Connect computers to the Internet and share the connection.
  2. **Wireless Routers: Create Wi-Fi networks in homes or offices.
  3. **Wired Routers: Connect multiple devices via Ethernet cables, common in schools and offices.
  4. **Edge Routers: Located at network boundaries, distributing packets to and from ISPs.
  5. **Core Routers: Operate within networks, handling heavy data traffic.
  6. **Virtual Routers: Software-based routers implemented on virtual machines for flexibility and scalability.
  7. **Portable Routers: Small devices creating private Wi-Fi for mobility.

Security Challenges in Routers