Router (computing) explained

A router is a computer and networking device that forwards data packets between computer networks, including internetworks such as the global Internet.[1] [2] [3]

A router is connected to two or more data lines from different IP networks. When a data packet comes in on a line, the router reads the network address information in the packet header to determine the ultimate destination. Then, using information in its routing table or routing policy, it directs the packet to the next network on its journey. Data packets are forwarded from one router to another through an internetwork until it reaches its destination node.[4]

The most familiar type of IP routers are home and small office routers that forward IP packets between the home computers and the Internet. More sophisticated routers, such as enterprise routers, connect large business or ISP networks to powerful core routers that forward data at high speed along the optical fiber lines of the Internet backbone.

Routers can be built from standard computer parts but are mostly specialized purpose-built computers. Early routers used software-based forwarding, running on a CPU. More sophisticated devices use application-specific integrated circuits (ASICs) to increase performance or add advanced filtering and firewall functionality.

Operation

When multiple routers are used in interconnected networks, the routers can exchange information about destination addresses using a routing protocol. Each router builds up a routing table, a list of routes, between two computer systems on the interconnected networks.[5] [6]

The software that runs the router is composed of two functional processing units that operate simultaneously, called planes:[7]

Applications

A router may have interfaces for multiple types of physical layer connections, such as copper cables, fiber optic, or wireless transmission. It can also support multiple network layer transmission standards. Each network interface is used to enable data packets to be forwarded from one transmission system to another. Routers may also be used to connect two or more logical groups of computer devices known as subnets, each with a unique network prefix.

Routers may provide connectivity within enterprises, between enterprises and the Internet, or between internet service providers' (ISPs') networks, they are also responsible for directing data between different networks.[8] The largest routers (such as the Cisco CRS-1 or Juniper PTX) interconnect the various ISPs, or may be used in large enterprise networks.[9] Smaller routers usually provide connectivity for typical home and office networks.

All sizes of routers may be found inside enterprises.[10] The most powerful routers are usually found in ISPs, academic and research facilities. Large businesses may also need more powerful routers to cope with ever-increasing demands of intranet data traffic. A hierarchical internetworking model for interconnecting routers in large networks is in common use.[11] Some routers can connect to Data service units for T1 connections[12] [13] [14] via serial ports.[15] [16]

Access, core and distribution

The hierarchical internetworking model divides enterprise networks into three layers: core, distribution, and access.

Access routers, including small office/home office (SOHO) models, are located at home and customer sites such as branch offices that do not need hierarchical routing of their own. Typically, they are optimized for low cost. Some SOHO routers are capable of running alternative free Linux-based firmware like Tomato, OpenWrt, or DD-WRT.[17]

Distribution routers aggregate traffic from multiple access routers. Distribution routers are often responsible for enforcing quality of service across a wide area network (WAN), so they may have considerable memory installed, multiple WAN interface connections, and substantial onboard data processing routines. They may also provide connectivity to groups of file servers or other external networks.[18]

In enterprises, a core router may provide a collapsed backbone interconnecting the distribution tier routers from multiple buildings of a campus, or large enterprise locations. They tend to be optimized for high bandwidth, but lack some of the features of edge routers.[19]

Security

External networks must be carefully considered as part of the overall security strategy of the local network. A router may include a firewall, VPN handling, and other security functions, or they may be handled by separate devices. Routers also commonly perform network address translation which restricts connections initiated from external connections but is not recognized as a security feature by all experts.[20] Some experts argue that open source routers are more secure and reliable than closed source routers because errors and potentially exploitable vulnerabilities are more likely to be discovered and addressed in an open-source environment.[21] [22]

Routing different networks

Routers are also often distinguished on the basis of the network in which they operate. A router in a local area network (LAN) of a single organisation is called an interior router. A router that is operated in the Internet backbone is described as exterior router. While a router that connects a LAN with the Internet or a wide area network (WAN) is called a border router, or gateway router.[23]

Internet connectivity and internal use

Routers intended for ISP and major enterprise connectivity usually exchange routing information using the Border Gateway Protocol (BGP). defines the types of BGP routers according to their functions:[24]

Wi-Fi routers

See main article: Wireless router. Wi-Fi routers combine the functions of a router with those of a wireless access point. They are typically devices with a small form factor, operating on the standard electric power supply for residential use. Connected to the Internet as offered by an Internet service provider, they provide Internet access through a wireless network for home or office use.

History

The concepts of a switching node using software and an interface computer were first proposed by Donald Davies for the NPL network in 1966.[30] [31] [32] The same idea was conceived by Wesley Clark the following year for use in the ARPANET, which were named Interface Message Processors (IMPs).[33] The first interface computer was implemented at the National Physical Laboratory in the United Kingdom in early 1969, followed later that year by the IMPs at the University of California, Los Angeles, the Stanford Research Institute, the University of California, Santa Barbara, and the University of Utah School of Computing in the United States.[34] [35] [36] [37] All were built with the Honeywell 516. These computers had fundamentally the same functionality as a router does today.

The idea for a router (called a gateway at the time) initially came about through an international group of computer networking researchers called the International Network Working Group (INWG).[38] These gateway devices were different from most previous packet switching schemes in two ways. First, they connected dissimilar kinds of networks, such as serial lines and local area networks. Second, they were connectionless devices, which had no role in assuring that traffic was delivered reliably, leaving that function entirely to the hosts.[39] This particular idea, the end-to-end principle, was pioneered in the CYCLADES network.[40]

The idea was explored in more detail, with the intention to produce a prototype system as part of two contemporaneous programs. One was a program at Xerox PARC to explore new networking technologies, which produced the PARC Universal Packet system. Some time after early 1974, the first Xerox routers became operational. Due to corporate intellectual property concerns it received little attention outside Xerox for years.[41] The other was the DARPA-initiated program, which created the TCP/IP architecture in use today.[42] The first true IP router was developed by Ginny Travers at BBN, as part of that DARPA-initiated effort, during 1975–1976.[43] [44] By the end of 1976, three PDP-11-based routers were in service in the experimental prototype Internet.[45] Mike Brecia, Ginny Travers, and Bob Hinden received the IEEE Internet Award for early IP routers in 2008.[46]

The first multiprotocol routers were independently created by staff researchers at MIT and Stanford in 1981 and both were also based on PDP-11s. Stanford's router program was led by William Yeager and MIT's by Noel Chiappa.[47] [48] [49] [50] Virtually all networking now uses TCP/IP, but multiprotocol routers are still manufactured. They were important in the early stages of the growth of computer networking when protocols other than TCP/IP were in use. Modern routers that handle both IPv4 and IPv6 are multiprotocol but are simpler devices than ones processing AppleTalk, DECnet, IPX, and Xerox protocols.

From the mid-1970s and in the 1980s, general-purpose minicomputers served as routers. Modern high-speed routers are network processors or highly specialized computers with extra hardware acceleration added to speed both common routing functions, such as packet forwarding, and specialized functions such as IPsec encryption. There is substantial use of Linux and Unix software-based machines, running open source routing code, for research and other applications. The Cisco IOS operating system was independently designed. Major router operating systems, such as Junos and NX-OS, are extensively modified versions of Unix software.

Forwarding

The main purpose of a router is to connect multiple networks and forward packets destined either for directly attached networks or more remote networks. A router is considered a layer-3 device because its primary forwarding decision is based on the information in the layer-3 IP packet, specifically the destination IP address. When a router receives a packet, it searches its routing table to find the best match between the destination IP address of the packet and one of the addresses in the routing table. Once a match is found, the packet is encapsulated in the layer-2 data link frame for the outgoing interface indicated in the table entry. A router typically does not look into the packet payload,[51] but only at the layer-3 addresses to make a forwarding decision, plus optionally other information in the header for hints on, for example, quality of service (QoS). For pure IP forwarding, a router is designed to minimize the state information associated with individual packets.[52] Once a packet is forwarded, the router does not retain any historical information about the packet.

The routing table itself can contain information derived from a variety of sources, such as a default or static routes that are configured manually, or dynamic entries from routing protocols where the router learns routes from other routers. A default route is one that is used to route all traffic whose destination does not otherwise appear in the routing table; it is common – even necessary – in small networks, such as a home or small business where the default route simply sends all non-local traffic to the Internet service provider. The default route can be manually configured (as a static route); learned by dynamic routing protocols; or be obtained by DHCP.[53]

A router can run more than one routing protocol at a time, particularly if it serves as an autonomous system border router between parts of a network that run different routing protocols; if it does so, then redistribution may be used (usually selectively) to share information between the different protocols running on the same router.[54]

Besides deciding to which interface a packet is forwarded, which is handled primarily via the routing table, a router also has to manage congestion when packets arrive at a rate higher than the router can process. Three policies commonly used are tail drop, random early detection (RED), and weighted random early detection (WRED). Tail drop is the simplest and most easily implemented: the router simply drops new incoming packets once buffer space in the router is exhausted. RED probabilistically drops datagrams early when the queue exceeds a pre-configured portion of the buffer, until reaching a pre-determined maximum, when it drops all incoming packets, thus reverting to tail drop. WRED can be configured to drop packets more readily dependent on the type of traffic.

Another function a router performs is traffic classification and deciding which packet should be processed first. This is managed through QoS, which is critical when Voice over IP is deployed, so as not to introduce excessive latency.[55]

Yet another function a router performs is called policy-based routing where special rules are constructed to override the rules derived from the routing table when a packet forwarding decision is made.[56]

Some of the functions may be performed through an application-specific integrated circuit (ASIC) to avoid overhead of scheduling CPU time to process the packets. Others may have to be performed through the CPU as these packets need special attention that cannot be handled by an ASIC.[57]

See also

Notes and References

  1. Web site: A Router is a Computer . https://web.archive.org/web/20220705091357/http://cisco.num.edu.mn/CCNA_R&S1/course/module6/6.3.1.1/6.3.1.1.html . 2022-07-05 . Cisco Network Academy.
  2. Book: Medhi . Deepankar . Ramasamy . Karthik . Network Routing: Algorithms, Protocols, and Architectures . Elsevier . 2007 . 19 . 9780120885886 .
  3. Book: Kundu . Sudakshina . Fundamentals of Computer Networks, 2nd Ed. . PHI Learning . 2009 . New Delhi . 85–86, 124 . 9788120334526 .
  4. Web site: Overview Of Key Routing Protocol Concepts: Architectures, Protocol Types, Algorithms and Metrics. Tcpipguide.com. 15 January 2011. live. https://web.archive.org/web/20101220111345/http://tcpipguide.com/free/t_OverviewOfKeyRoutingProtocolConceptsArchitecturesP.htm. 20 December 2010.
  5. Web site: Cisco Networking Academy's Introduction to Routing Dynamically. Cisco. August 1, 2015. live. https://web.archive.org/web/20151027133937/http://www.ciscopress.com/articles/article.asp?p=2180210&seqNum=4. October 27, 2015.
  6. Web site: What Is Routing? . Cisco . 2022-04-10 . 2024-03-25. Routing tables can be created manually and "learned" by software as it observes network traffic, or they can be built according to routing protocols..
  7. Requirements for Separation of IP Control and Forwarding . 3654 . H. Khosravi & T. Anderson . November 2003.
  8. Web site: Which networking component is responsible for directing data between different networks - ITEagers . 2024-02-27 . ITEagers - Prepare youself . en-GB.
  9. Web site: Setting uo Netflow on Cisco Routers. MY-Technet.com date unknown. 15 January 2011. live. https://web.archive.org/web/20110714141500/http://my-technet.com/index.php/cisco/setting-up-netflow-on-cisco-routers/. 14 July 2011.
  10. Web site: Windows Home Server: Router Setup. Microsoft Technet 14 Aug 2010. 15 January 2011. live. https://web.archive.org/web/20101222175405/http://social.technet.microsoft.com/wiki/contents/articles/windows-home-server-router-setup.aspx. 22 December 2010.
  11. Book: Oppenheimer , Pr . Top-Down Network Design . Cisco Press . 2004 . Indianapolis . 978-1-58705-152-4.
  12. Book: A Practical Guide to Advanced Networking . 978-0-13-335400-3 . Beasley . Jeffrey S. . Nilkaew . Piyasat . 5 November 2012 . Pearson Education .
  13. Book: Configuring Cisco AVVID . 978-0-08-047673-5 . Lawson . Wayne . 8 February 2001 . Elsevier .
  14. Web site: Computerworld . 23 January 1995 .
  15. Web site: Serial Interface Cards .
  16. Web site: Serial Network Modules .
  17. Web site: SOHO Network Requirements Planning and Implementation. 2021-03-25. ExamCollection. en.
  18. Web site: 2021-02-25. How Do WiFi Extenders Work? Repeater, Booster, Extender?. 2021-03-25. ISP Family. en-US.
  19. Web site: Hierarchical Network Design Overview (1.1) > Cisco Networking Academy Connecting Networks Companion Guide: Hierarchical Network Design Cisco Press. 2021-03-21. www.ciscopress.com.
  20. Web site: Security Considerations Of NAT. University of Michigan. https://web.archive.org/web/20141018184244/http://www.safecomputing.umich.edu/protect-personal/download/nat_security.pdf. October 18, 2014.
  21. Global Internet Experts Reveal Plan for More Secure, Reliable Wi-Fi Routers - and Internet. 14 October 2015. live. https://web.archive.org/web/20151020003515/http://www.businesswire.com/news/home/20151014005564/en. 2015-10-20.
  22. Web site: 2010-07-26 . Is Open Source Software More Secure than Proprietary Products? . 2024-03-30 . GovTech . en.
  23. Book: Network+ Guide to Networks. Tamara Dean . Cengage Learning. 2009 . 9781423902454. 272.
  24. 4098 . H. Berkowitz . etal . Terminology for Benchmarking BGP Device Convergence in the Control Plane . June 2005.
  25. Web site: What is the primary role of a router placed at the edge of an ISP network engaging in peering with upstream IP transit providers through eBGP - ITEagers . 2024-02-27 . ITEagers - Prepare youself . en-GB.
  26. BGP/MPLS IP Virtual Private Networks (VPNs) . Rekhter . Yakov . Rosen . Eric C. . February 2006 . Internet Engineering Task Force . RFC 4364.
  27. Web site: M160 Internet Backbone Router . Juniper Networks . 15 January 2011 . live . https://web.archive.org/web/20110920213215/http://www.juniper.net/techpubs/qrc/m160-qrc.pdf . 20 September 2011.
  28. Web site: Virtual Backbone Routers. IronBridge Networks, Inc. September, 2000. 15 January 2011. live. https://web.archive.org/web/20110716203325/http://www.telecomsportal.com/Assets_papers/Routers_%26_Netman/Ironbridge_Virt_Bbone_Route.pdf. 16 July 2011.
  29. BGP/MPLS VPNs . E. Rosen . Y. Rekhter . April 2004.
  30. Web site: Davies . D. W. . 1966 . Proposal for a Digital Communication Network .
  31. Web site: Roberts. Dr. Lawrence G.. The ARPANET & Computer Networks. 13 April 2016. May 1995. Then in June 1966, Davies wrote a second internal paper, "Proposal for a Digital Communication Network" In which he coined the word packet,- a small sub part of the message the user wants to send, and also introduced the concept of an interface computer to sit between the user equipment and the packet network.. live. https://web.archive.org/web/20160324032800/http://www.packet.cc/files/arpanet-computernet.html. 24 March 2016.
  32. Book: Pelkey, James . Entrepreneurial Capitalism & Innovation: A History of Computer Communications 1968 - 1988 . 2007 . paper dated June 1966 ... introduced the concept of an “interface computer” to sit between the user equipment and the packet network. . 2020-02-18.
  33. Web site: Pelkey . James . 4.7 Planning the ARPANET: 1967-1968 in Chapter 4 - Networking: Vision and Packet Switching 1959 - 1968 . dead . https://web.archive.org/web/20221223230647/https://historyofcomputercommunications.info/section/4.7/planning-the-arpanet-1967-1968/ . December 23, 2022 . May 9, 2023 . The History of Computer Communications.
  34. John S . Quarterman . Josiah C . Hoskins . 1986 . Notable computer networks . Communications of the ACM . EN . 29 . 10 . 932–971 . 10.1145/6617.6618 . 25341056 . The first packet-switching network was implemented at the National Physical Laboratories in the United Kingdom. It was quickly followed by the ARPANET in 1969. . free.
  35. Scantlebury . Roger . 2001 . A Brief History of the NPL Network . https://web.archive.org/web/20030807200346/http://www.topquark.co.uk/conf/IAP2001.html . dead . 2003-08-07 . Symposium of the Institution of Analysts & Programmers 2001 . 2024-06-13 . The system first went 'live' early in 1969 .
  36. Computer Freaks . June 22, 2023 . Haughney Dare-Bryan . Christine . Podcast . Inc. Magazine . Chapter Two: In the Air . 35:55 . Leonard Kleinrock: Donald Davies ... did make a single node packet switch before ARPA did.
  37. Book: Encyclopedia of 20th-Century Technology . 2005 . . 9781135455514 . Hempstead . C. . 573–5 . 2015-08-15 . Worthington . W..
  38. Davies, Shanks, Heart, Barker, Despres, Detwiler and Riml, "Report of Subgroup 1 on Communication System", INWG Note No. 1.
  39. Edmondson-Yurkanan . Chris . 2007 . SIGCOMM's archaeological journey into networking's past . Communications of the ACM . en . 50 . 5 . 63–68 . 10.1145/1230819.1230840 . 0001-0782 . INWG#1: Report of Subgroup 1 on Communication System Requirements by Davies, Shanks, Heart, Barker, Despres, Detwiler, and Riml. They wrote: “It was agreed that interworkingbetween packet switching networks should not add complications to the hosts, considering that networks will probably be different and thus gatewaysbetween networks will be required. These gateways should be as uncomplicated as possible, whilst allowing as much freedom as possible for the design of individual networks”. INWG#1 clarified that gateways and simplicity were accepted concepts when INWG was formed..
  40. Web site: Bennett . Richard . September 2009 . Designed for Change: End-to-End Arguments, Internet Innovation, and the Net Neutrality Debate . 11 September 2017 . Information Technology and Innovation Foundation . 7, 11.
  41. David Boggs, John Shoch, Edward Taft, Robert Metcalfe, "Pup: An Internetwork Architecture", IEEE Transactions on Communications, Volume 28, Issue 4, April 1980, pp. 612- 624.
  42. Vinton Cerf, Robert Kahn, "A Protocol for Packet Network Intercommunication", IEEE Transactions on Communications, Volume 22, Issue 5, May 1974, pp. 637 - 648.
  43. Web site: Virginia Travers . 2024-06-16 . Internet Hall of Fame . en-US.
  44. Web site: Ms. Ginny Strazisar. IT History Society. 21 December 2015. 21 November 2017. live. https://web.archive.org/web/20171201034131/http://www.ithistory.org/honor-roll/ms-ginny-strazisar. 1 December 2017.
  45. Craig Partridge, S. Blumenthal, "Data networking at BBN"; IEEE Annals of the History of Computing, Volume 28, Issue 1; January–March 2006.
  46. Web site: IEEE INTERNET AWARD RECIPIENTS .
  47. https://www.pbs.org/cringely/pulpit/1998/pulpit_19981210_000593.html Valley of the Nerds: Who Really Invented the Multiprotocol Router, and Why Should We Care?
  48. http://www.networkworld.com/supp/2006/anniversary/032706-routerman.html?t5 Router Man
  49. David D. Clark, "M.I.T. Campus Network Implementation", CCNG-2, Campus Computer Network Group, M.I.T., Cambridge, 1982; pp. 26.
  50. Pete Carey, "A Start-Up's True Tale: Often-told story of Cisco's launch leaves out the drama, intrigue", San Jose Mercury News, December 1, 2001.
  51. Web site: Packet Forwarding and Routing on IPv4 Networks - System Administration Guide: IP Services. 2021-03-25. docs.oracle.com.
  52. Web site: Roberts. Lawrence. The Next Generation of IP - Flow Routing. 22 February 2015. 22 July 2003. live. https://web.archive.org/web/20150404030549/http://www.packet.cc/files/FlowPaper/NextGenerationofIP-FlowRouting.htm. 4 April 2015.
  53. Web site: David Davis. Cisco administration 101: What you need to know about default routes. April 19, 2007. bot: unknown. https://web.archive.org/web/20140625042508/http://www.techrepublic.com/article/cisco-administration-101-what-you-need-to-know-about-default-routes/. June 25, 2014. June 5, 2014.
  54. Book: Diane Teare. Implementing Cisco IP Routing (ROUTE): Foundation Learning Guide. 330–334. Cisco Press. March 2013.
  55. Book: Donahue, Gary A. . Network Warrior . 2007-06-21 . "O'Reilly Media, Inc." . 978-0-596-10151-0 . en.
  56. Book: Diane Teare. Implementing Cisco IP-Routing (ROUTE): Foundation Learning Guide. 330–334. Cisco Press. March 2013. Chapter 5: Implementing Path Control.
  57. Book: Schudel . Gregg . Router Security Strategies: Securing IP Network Traffic Planes . Smith . David . 2007-12-29 . Pearson Education . 978-0-13-279673-6 . en.