A flooding algorithm is an algorithm for distributing material to every part of a connected network. In Mathematics, Computing, Linguistics and related subjects an algorithm is a sequence of finite instructions often used for Calculation A computer network is a group of interconnected Computers. Networks may be classified according to a wide variety of characteristics The name derives from the concept of inundation by a flood. A flood is an overflow of an expanse of water that submerges land a deluge
Flooding algorithms are used in systems such as Usenet and peer-to-peer file sharing systems and as part of some routing protocols, including OSPF, DVMRP, and those used in ad-hoc wireless networks. Usenet, a Portmanteau of "user" and "network" is a world-wide distributed Internet discussion system For other uses of the term see Peer-to-peer (disambiguation For peer-to-peer networks used for file sharing see File sharing A routing protocol is a protocol that specifies how Routers communicate with each other to disseminate information that allows them to select routes between any two Open Shortest Path First ( OSPF) is a dynamic Routing protocol for use in Internet Protocol (IP networks The Distance Vector Multicast Routing Protocol ( DVMRP) is used to share information between Routers to transport IP Multicast packets among networks A wireless ad hoc network is a decentralized Wireless network.
There are several variants of flooding algorithm: most work roughly as follows.
This results in every message eventually being delivered to all reachable parts of the network.
Real-world flooding algorithms have to be more complex than this, since precautions have to be taken to avoid wasted duplicate deliveries and infinite loops, and to allow messages to eventually expire from the system.
Flooding algorithms are also useful for solving many mathematical problems, including maze problems and many problems in graph theory. A maze is a complex Tour puzzle in the form of a complex branching passage through which the solver must find a route In Mathematics and Computer science, graph theory is the study of graphs: mathematical structures used to model pairwise relations between objects
Contents |
There are several disadvantages with this approach to routing. It is very wasteful in terms of the networks total bandwidth. While a message may only have one destination it has to be sent to every host. This increases the maximum load placed upon the network.
Messages can also become duplicated in the network further increasing the load on the networks bandwidth as well as requiring an increase in processing complexity to disregard duplicate messages.
A variant of flooding called selective flooding partially addresses these issues by only sending packets to routers in the same direction.
The main advantage of flooding is the increased reliability provided by this routing method. Since the message will be sent at least once to every host it is almost guaranteed to reach its destination.