Problem 45
Question
Consider the two basic approaches identified for achieving broadcast, unicast emulation and network-layer (i.e., router-assisted) broadcast, and suppose spanning-tree broadcast is used to achive network-layer broadcast. Consider a single sender and 32 receivers. Suppose the sender is connected to the receivers by a binary tree of routers. What is the cost of sending a broadcast packet, in the cases of unicast emulation and network-layer broadcast, for this topology? Here, each time a packet (or copy of a packet) is sent over a single link, it incurs a unit of cost. What topology for interconnecting the sender, receivers, and routers will bring the cost of unicast emulation and true network-layer broadcast as far apart as possible? You can choose as many routers as you'd like.
Step-by-Step Solution
VerifiedKey Concepts
Unicast Emulation
In the context of our exercise with 32 receivers, this means that 32 separate paths are created from the sender. Each path carries a single packet independently to a receiver.
- Each packet incurs a unit cost per transmission.
- No sharing of paths occurs, meaning that each receiver gets one unique transmission.
- Total cost is directly proportional to the number of receivers.
Spanning-Tree
When used for broadcasting, a spanning-tree approach sends a single packet from the root to all the nodes in a network.
For our scenario:
- Only 31 transmissions are required to reach all 32 receivers in a perfectly balanced binary tree.
- The spanning tree effectively minimizes the number of necessary packet duplications.
- This approach ensures that the network is efficiently traversed with minimal redundancy.
Binary Tree Topology
- Each level of the tree doubles the number of nodes, efficiently expanding the network coverage.
- For the given problem, the binary tree has 31 routers to reach 32 receivers, indicating a fully balanced tree.
- This symmetry allows for evenly distributed packet flows.
Packet Transmission Cost
- For unicast emulation, the cost is straightforward: one transmission per receiver.
- In a network-layer broadcast, cost is minimized by efficiently using shared paths.
- In a balanced binary tree setup, spanning-tree broadcasting reduces the cost to just 31 transmissions for 32 receivers.