Kaigai Blog living abroad in my twenties

【My Study Note】Routers

Infotech Networking

Routers


Hubs and switches are the primary devices used to connect computers on a single network, usually referred to as a LAN (local area network). But we often want to send or receive data to computers on other networks, this is where routers come into play.

A router is a device that knows how to forward data between independent networks. While a hub is a layer 1 device and a switch is a layer 2 device, a router operates at layer 3 (Network Layer). Just like a switch can inspect Ethernet data to determine where to send things, a router can inspect IP data to determine where to send things. Routers store internal tables containing information about how to route traffic between lots of different networks all over the world.

The most common type of router you’ll see is one for a home network or a small office. These devices generally don’t have very detailed routing tables. The purpose of these routers is mainly just to take traffic originating from inside the home or office LAN and to forward it along to the ISP (Internet service provider).

Once traffic is at the ISP, a way more sophisticated type of router takes over. These core routers form the backbone of the Internet and are directly responsible for how we send and receive data all over the Internet every single day.

Core ISP routers don’t just handle a lot more traffic than a home or small office router, they also have to deal with much more complexity in making decisions about where to send traffic. A core router usually has many different connections to many other routers.

Routers share data with each other via a protocol known as BGP(Border Gateway Protocol), which lets them learn about the most optimal paths to forward traffic.

When you open a web browser and load a web page, the traffic between computers and the web servers could have traveled over dozens of different routers. The Internet is incredibly large and complicated, and routers are global guides for getting traffic to the right places.