ArticleslgStudy

computer science

Routing protocol

Routing protocol is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Routing protocol rather than just read about it. In short: A routing protocol specifies how routers communicate with each other to distribute information that enables them to select paths between nodes on a computer network. Routers perform the traffic directing functions on the Internet; data packets are forwarded through the networks of the internet from router to router until they reach their destination computer.

Routing protocol — main illustration
Routing protocol — illustration

Key takeaways

  • Routing protocol belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Routing protocol to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Routing protocol from memory before moving on to harder problems.

Reference excerpt

A routing protocol specifies how routers communicate with each other to distribute information that enables them to select paths between nodes on a computer network. Routers perform the traffic directing functions on the Internet; data packets are forwarded through the networks of the internet from router to router until they reach their destination computer. Routing algorithms determine the specific choice of route. Each router has a prior knowledge only of networks attached to it directly. A routing protocol shares this information first among immediate neighbors, and then throughout the network. This way, routers gain knowledge of the topology of the network. The ability of routing protocols to dynamically adjust to changing conditions such as disabled connections and components and route data around obstructions is what gives the Internet its fault tolerance and high availability. The specific characteristics of routing protocols include the manner in which they avoid routing loops, the manner in which they select preferred routes, using information about hop costs, the time they require to reach routing convergence, their scalability, and other factors such as relay multiplexing and cloud access framework parameters. Certain additional characteristics such as multilayer interfacing may also be employed as a means of distributing uncompromised networking gateways to authorized ports. This has the added benefit of preventing issues with routing protocol loops. Many routing protocols are defined in technical standards documents called RFCs.

Types

Although there are many types of routing protocols, three major classes are in widespread use on IP networks:

Interior gateway protocols type 1, link-state routing protocols, such as OSPF and IS-IS Interior gateway protocols type 2, distance-vector routing protocols, such as Routing Information Protocol, RIPv2, IGRP. Exterior gateway protocols are routing protocols used on the Internet for exchanging routing information between Autonomous Systems, such as Border Gateway Protocol (BGP), a path-vector routing protocol. Exterior gateway protocols should not be confused with Exterior Gateway Protocol (EGP), an obsolete routing protocol.

OSI layer designation Routing protocols, according to the OSI routing framework, are layer management protocols for the network layer, regardless of their transport mechanism:

Intermediate System to Intermediate System (IS-IS) runs on the data link layer (Layer 2) Open Shortest Path First (OSPF) is encapsulated in IP, but runs only on the IPv4 subnet, while the IPv6 version runs on the link using only link-local addressing. IGRP, and EIGRP are directly encapsulated in IP. EIGRP uses its own reliable transmission mechanism, while IGRP assumes an unreliable transport. Routing Information Protocol (RIP) runs over the User Datagram Protocol (UDP). Version 1 operates in broadcast mode, while version 2 uses multicast addressing. BGP runs over the Transmission Control Protocol (TCP).

Interior gateway protocols Interior gateway protocols (IGPs) exchange routing information within a single routing domain. Examples of IGPs include:

Open Shortest Path First (OSPF) Routing Information Protocol (RIP) Intermediate System to Intermediate System (IS-IS) Enhanced Interior Gateway Routing Protocol (EIGRP)

Exterior gateway protocols Exterior gateway protocols exchange routing information between autonomous systems. Examples include:

Exterior Gateway Protocol (EGP) Border Gateway Protocol (BGP)

Routing software Many software implementations exist for most of the common routing protocols. Examples of open-source applications are Bird Internet routing daemon, Quagga, GNU Zebra, OpenBGPD, OpenOSPFD, and XORP.

Routed protocols Some network certification courses distinguish between routing protocols and routed protocols. A routed protocol is used to deliver application traffic. It provides appropriate addressing information in its internet layer or network layer to allow a packet to be forwarded from one network to another. Examples of routed protocols are the Internet Protocol (IP) and Internetwork Packet Exchange (IPX).

See also Static routing Dynamic routing Hierarchical state routing Optimized Link State Routing Protocol B.A.T.M.A.N. ZHLS-GF

Notes

References

Further reading Chapter "Routing Basics" in the Cisco "Internetworking Technology Handbook"

Worked examples

Example 1 — a first encounter with Routing protocol

Start with the simplest possible case. Write down what Routing protocol claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Routing protocol before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Routing protocol ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Routing protocol

In research
Routing protocol appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Routing protocol in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Routing protocol is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer networking, Lists of network protocols, Routing, so understanding it makes those chapters shorter.
In everyday life
Look for Routing protocol outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Routing protocol” →

How to study Routing protocol in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Routing protocol means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Routing protocol out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Routing protocol in simple terms?

A routing protocol specifies how routers communicate with each other to distribute information that enables them to select paths between nodes on a computer network. Routers perform the traffic directing functions on the Internet; data packets are forwarded through the networks of the internet from…

Why does Routing protocol matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Routing protocol?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Routing protocol.

Tags

  • Computer networking
  • Lists of network protocols
  • Routing
  • Routing protocols

Keep exploring