Router Introduction
Date:
Introduction
A router is also commonly referred to as a gateway device. Within the context of the OSI Reference Model, a router performs network-layer relaying—specifically Layer 3 relaying tasks—by storing and forwarding data packets between disparate networks. Its primary function is to logically segment and separate distinct networks. When data needs to be transmitted from one subnet to another, this process is facilitated by the router's routing capabilities. In network communication, a router plays a crucial role in identifying network addresses and selecting appropriate IP paths. It enables the construction of flexible interconnection systems across diverse network environments, linking various subnets through the handling of different data packet formats and media access methods. Operationally, a router accepts information only from source hosts or other relevant routers; it is, fundamentally, an interconnection device operating at the network layer.
Routers typically reside at the network layer; consequently, routing technology is a discipline intrinsically linked to this layer. Compared to earlier networking devices such as bridges, routers represent a significant evolution and exhibit distinct differences. Generally, bridges face substantial limitations: they can only interconnect networks that share identical or similar data-link layer protocols, and are incapable of linking networks where the data-link layer protocols differ significantly. Routers, however, transcend this limitation; they are capable of interconnecting any two distinct networks. Nevertheless, a fundamental principle governs the interconnection of such disparate networks: they must utilize the same network-layer protocol to be successfully linked by a router. Simply put, routing technology is the discipline of forwarding and exchanging vast amounts of information across a network; more specifically, it involves transmitting information from a source address to a destination address across an interconnected network infrastructure. In recent years, routing technology has achieved remarkable development and progress—particularly with the advent of fifth-generation routers. These advanced devices meet the growing demand for integrated data, voice, and video applications, and have increasingly become the preferred choice for, and are widely deployed within, most home networks. Furthermore, domestic routing technology has matured significantly in recent years, incorporating contemporary intelligent technologies to deliver a fast, efficient, and seamless user experience. This evolution serves to drive and accelerate the overall development of the Internet and networking technologies.
Routers serve as the primary nodal devices of the Internet. They determine how data is forwarded based on routing decisions. This forwarding strategy is known as "routing"—a term that also gives the router its name. As the central hubs interconnecting disparate networks, router systems constitute the core infrastructure—or "backbone"—of the global, TCP/IP-based Internet. The processing speed of these routers represents one of the primary bottlenecks in network communication, while their reliability directly dictates the overall quality of network interconnection. Consequently, within the realms of campus networks, regional networks, and even the Internet as a whole, router technology has consistently occupied a central position; indeed, its evolutionary trajectory and future direction serve as a microcosm of Internet research itself. At a time when my country’s network infrastructure and information technology development are flourishing, an examination of the role, status, and future direction of routers within interconnected networks holds profound significance. Such an inquiry is vital for advancing domestic network technology research and infrastructure development, as well as for clarifying—and dispelling—various specious concepts regarding routers and network interconnection that currently circulate within the market.
Principles
Devices within a network communicate with one another primarily by using their IP addresses; routers are capable of forwarding data only based on specific IP addresses. An IP address consists of two parts: a network address and a host address. On the Internet, a *subnet mask* is used to distinguish between the network address and the host address. Like an IP address, a subnet mask is 32 bits in length, and the two correspond directly to one another: the "1" bits in the subnet mask correspond to the network address portion of the IP address, while the "0" bits correspond to the host address portion; together, the network address and host address constitute a complete IP address. Within the same network, the network address portion of all IP addresses must be identical. Communication between computers can only occur between devices possessing IP addresses with the same network address; if a computer wishes to communicate with a computer located on a different network segment, the data must be forwarded via a router. IP addresses with different network addresses cannot communicate directly with one another—even if the devices are physically located in close proximity. A router typically features multiple ports, allowing it to connect to multiple distinct network segments; the network address associated with the IP address of each specific port must match the network address of the segment to which it is connected. Each port possesses a unique network address corresponding to a specific network segment; this configuration enables hosts within each respective segment to send data to the router using the IP address assigned to their own segment.
**Transmission Media**
Routers are broadly categorized into *local routers* and *remote routers*. Local routers are designed to connect to standard network transmission media—such as fiber-optic cables, coaxial cables, or twisted-pair cables. Remote routers, conversely, are designed to connect to remote transmission media and typically require corresponding peripheral equipment; for instance, a connection via a telephone line requires a modem, while a wireless connection requires a wireless receiver and/or transmitter.
**Structure**
(1) **Power Interface (POWER):** This interface connects the router to a power source.
(2) **Reset Button (RESET):** This button allows the user to restore the router to its original factory default settings.
(3) **Modem/Switch Connection Port (WAN):** This interface is used to connect the router to a home broadband modem (or to a network switch) via an Ethernet cable.
(4) **Computer Connection Ports (LAN 1–4):** These interfaces are used to connect individual computers to the router via Ethernet cables.
**Startup Process**
Much like a standard PC system, a router contains a component that serves a function similar to a BIOS; this component is known as the **MiniIOS**. MiniIOS enables us to boot up the router and enter recovery mode—even when no ISO image is present in the router's Flash memory—so that we can subsequently import an ISO file into the Flash using methods such as TFTP or X-MODEM. Therefore, the router's boot process proceeds as follows:
(1) Upon powering on, the router first performs a POST (Power-On Self-Test)—a process involving the verification of the hardware components.
(2) Once the POST is complete, the router reads the Bootstrap program stored in ROM to perform the initial boot sequence.
(3) After the initial boot sequence concludes, the router attempts to locate and load the full ISO image file. Specifically, the router first searches for the ISO file within its Flash memory; if the ISO file is found, it loads the file and boots the router.
(4) If no ISO file is found in the Flash memory, the router enters BOOT mode. In BOOT mode, the router can utilize an ISO file hosted on a TFTP server, or one can use TFTP/X-MODEM to transfer an ISO file into the router's Flash memory (a process commonly referred to as "flashing" the ISO). Once the transfer is complete, the router is restarted, allowing it to boot normally into CLI mode.
(5) After the router has successfully initialized the ISO image, it begins searching in NVRAM for the STARTUP-CONFIG file—also known as the startup configuration file. This file stores all the configurations and modifications that have been applied to the router. Upon locating this file, the router loads all the configurations contained within it; it then learns, generates, and maintains its routing tables based on these settings. Finally, after loading all configurations into RAM (the router's working memory), it enters User mode, thereby completing the boot process.
(6) If no STARTUP-CONFIG file is found in NVRAM, the router enters the configuration dialog mode—commonly referred to as the "question-and-answer" configuration mode. In this mode, all router configurations can be performed interactively through a series of prompts and questions. However, under normal circumstances, this mode is rarely used; typically, we enter the CLI (Command Line Interface) mode to configure the router.