ArticleslgStudy

computer science

Flooding (computer networking)

Flooding (computer networking) 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 Flooding (computer networking) rather than just read about it. In short: Flooding is used in computer network routing algorithms in which every incoming packet is sent through every outgoing link except the one it arrived on. Flooding is used in bridging and in systems such as Usenet and peer-to-peer file sharing and as part of some routing protocols, including OSPF, DVMRP, and those used in ad-hoc wireless networks (WANETs).

Flooding (computer networking) — main illustration
Flooding (computer networking) — illustration

Key takeaways

  • Flooding (computer networking) 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 Flooding (computer networking) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Flooding (computer networking) from memory before moving on to harder problems.

Reference excerpt

Flooding is used in computer network routing algorithms in which every incoming packet is sent through every outgoing link except the one it arrived on. Flooding is used in bridging and in systems such as Usenet and peer-to-peer file sharing and as part of some routing protocols, including OSPF, DVMRP, and those used in ad-hoc wireless networks (WANETs).

Types Flooding can be divided into two types: data flooding and routing control packet flooding. Another categorization option is uncontrolled flooding and controlled flooding. In uncontrolled flooding each node unconditionally distributes packets to each of its neighbors. Without conditional logic to prevent indefinite recirculation of the same packet, broadcast storms are a hazard. Controlled flooding has its own two algorithms to make it reliable: SNCF (Sequence Number Controlled Flooding) and RPF (reverse-path forwarding). In SNCF, the node attaches its own address and sequence number to the packet, since every node has a memory of addresses and sequence numbers. If it receives a packet in memory, it drops it immediately; in RPF, the node will only send the packet forward. If it is received from the next node, it sends it back to the sender.

Algorithms

There are several variants of flooding algorithms. Most work roughly as follows:

Each node acts as both a transmitter and a receiver. Each node tries to forward every message to every one of its neighbors except the source node. This results in every message eventually being delivered to all reachable parts of the network. Algorithms may need to be more complex than this, since, in some cases, precautions have to be taken to avoid wasted duplicate deliveries and infinite loops, and to allow messages to eventually expire from the system.

Selective flooding A variant of flooding called selective flooding partially addresses these issues by only sending packets to routers in the same direction. In selective flooding, the routers don't send every incoming packet on every line, but only on those lines that are going approximately in the right direction.

Advantages The advantages of this method are that it is very simple to implement. If a packet can be delivered, then it will (probably multiple times), and since flooding naturally utilizes every path through the network, it will also use the shortest path.

Disadvantages Flooding can be costly in terms of wasted bandwidth. While a message may only have one destination, it has to be sent to every host. In the case of a ping flood or a denial of service attack, it can be harmful to the reliability of a computer network. Messages can become duplicated in the network, further increasing the load on the network as well as requiring an increase in processing complexity to disregard duplicate messages. Duplicate packets may circulate forever, unless certain precautions are taken:

Use a hop count or a time to live (TTL) count and include it with each packet. This value should take into account the number of nodes that a packet may have to pass through on the way to its destination. Have each node keep track of every packet seen and only forward each packet once. Enforce a network topology without loops.

Examples In Open Shortest Path First (OSPF), flooding is used for transferring updates to the topology (LSAs). In low data rate communications, flooding can achieve fast and robust data communications in dedicated protocols such as VEmesh, which operates in the Sub-1 GHz frequency band and Bluetooth mesh networking, which operates in the 2.4 GHz frequency band. Both these protocols serve as underlying technologies in the Digital Addressable Lighting Interface in use in professional and commercial lighting control.

See also Broadcasting (networking) Flood search routing Multicast Spanning Tree Protocol

References

Illustrations

Flooding (computer networking): Flooding algorithm
Flooding algorithm
Flooding (computer networking): Flooding algorithm with ACK messages
Flooding algorithm with ACK messages

Worked examples

Example 1 — a first encounter with Flooding (computer networking)

Start with the simplest possible case. Write down what Flooding (computer networking) 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 Flooding (computer networking) 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 Flooding (computer networking) 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 Flooding (computer networking)

In research
Flooding (computer networking) 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 Flooding (computer networking) 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
Flooding (computer networking) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Flooding algorithms, Routing algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Flooding (computer networking) 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 “Flooding (computer networking)” →

How to study Flooding (computer networking) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Flooding (computer networking) 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 Flooding (computer networking) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Flooding (computer networking) in simple terms?

Flooding is used in computer network routing algorithms in which every incoming packet is sent through every outgoing link except the one it arrived on. Flooding is used in bridging and in systems such as Usenet and peer-to-peer file sharing and as part of some routing protocols, including OSPF, DV…

Why does Flooding (computer networking) 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 Flooding (computer networking)?

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 Flooding (computer networking).

Tags

  • Flooding algorithms
  • Routing algorithms

Keep exploring