Professional Documents
Culture Documents
Algorithms
Outline
s s s s s s s s
Introduction to Multi-point Communication Three approaches to Multi-cast Routing Steiner Tree Heuristics The MZQ algo The SCTF algo The Virtual Trunk algo for dynamic routing The BSMA algo. The KPP algo
Multicast Routing Algorithms 2
Multipoint Communication
x
Concept: Single Source, Multiple Destinations, Duplication only at branch points. Present Day Support: Communication satellites. e-mail lists, internet news distribution. Tomorrow's multimedia applications require: efficient use of bandwidth.
Many to Many
x x
Video Conferencing Computer Supported Common Work. Distributed interactive simulation. Large scale distributed (super)computing. Distributed Games
4
Reliability
are different reliability models required for different classes of applications? session has to be receiver controlled. how to address groups at each level? Whether and how to identify groups in layers above the IP layer? one-to-many or many-to-many. are the transmitters a subset of the receivers?
Multicast Routing Algorithms 5
Addressing
Directionality
link failure should not increase delay or reduce resource availability. price to be paid end to end delay. (bandwidth consumed) (no. of links traversed)
End to end delay between source and receiver relative to the shortest unicast path delay. Cost of total bandwidth consumption Cost of tree state info Maximum number of flows on a unidirectional link. How evenly the routes are distributed.
Multicast Routing Algorithms 7
Low Cost :
Routing Algorithms
All multi-point services use some kind of a distribution tree. Multicast trees can be
s
Only one tree needs to be established for each group, which is shared by all the sources within that group.
A Source Rooted Shortest Path Tree (SRSPT) algo: Computes the shortest paths between the source and each of the receivers within the group. Eliminates duplicate data copies on common links. Maintains one SRSPT per sender. Concept: All receiving nodes compute path towards the source independently. Used by: current day IP multicast protocols as applications are still small scale. local area.
Multicast Routing Algorithms 9
Disadvantages
x
SRSPTs are easy to compute. Use the classic unicast routing tables. Efficient distributed implementations are possible x Entire global topology not required. There can be no loops in the path returned.
Does not minimize total cost of distribution Does not scale well. x One piece of state information per source and per group is kept in each router. May fail badly if the underlying unicast routing is asymmetric.
10
Monolithic algorithm.
The SMT defines an absolute limit on the minimum tree cost to serve as a reference for gauging the cost-optimality of heuristic alternatives. The SMT for all members of a multicast group is the same irrespective of the role of sender or receiver.
x x
only one state entry needs to be maintained per group. it scales well for larger groups.
Worst case maximum end-to-end path length of a SMT can be the longest acyclic path within the graph.
Multicast Routing Algorithms 12
4 A 5 2 1 H
Concept:
Use the shortest Path Tree rooted at a node in the center of the network Choose an optimal center for the group. Multiple cores can be used for better fault tolerance & delay characteristics. Group members send a join message to the center. Intermediate nodes mark interface from which the multicast info is received and forward it to the center. minimize max/avg delay for all members on the tree. Minimize the sum of tree-link costs.
Multicast Routing Algorithms 14
Steps:
A B
15
x x
Work well with multiple senders/receivers state information is stored per group, therefore scalable. Receiver based approach. Supports dynamic group membership with relative ease. Suitable for sparsely distributed receivers. SPTs will not have many common links. Do not have the unbounded delay problems of SMTs. Simple to implement used as the basis of PIM and of The CBT interdomain Routing Protocol.
Multicast Routing Algorithms 16
Incur extra delay as compared to the RPF approach. Suffer from traffic concentration on links converging towards the center. Choosing the optimal center is an NP complete problem. Locating the center requires complete knowledge of the network topology.
17
MULTIPOINT ROUTING
TradeOffs between algos
x
Any single tree cannot achieve Minimal Cost and Minimal Delay both.
Shortest Path Trees Minimize delay at expense of Cost. Steiner Minimal Trees Minimize cost at expense of Delay. Between these spectrum of different types of trees offering different tradeoffs.
Different strategies to place the routes results in different degrees of traffic concentration.
Multicast Routing Algorithms 18
MULTIPOINT ROUTING
Ideals Ideally multicast routing algorithms should x Compute trees with the desired cost and delay characteristics. x Adapt to dynamic group behavior.
x x x
Maintain properties of the original route. Not perturb ongoing data transfers. Be receiver driven.
19
x x
Take an arbitrary node as source. Find the single source shortest path tree T for graph G using Dijkstras algo. Delete from T, all S-vertices of degree 1.
21
x x
x x
v any member of G with minimum distance. Remove v from U. For each neighbor w of v, do
x
Stop.
Determine a Z-vertex i Z - Zk closest to Tk Construct a tree Tk+1 by adding the minimum cost path from Tk to i k = k+1. If k < p go-to step2. If k = p, output Tp as the solution Stop.
x x x
23
B D F E
Tree built so far Idea: For each iteration while M is not empty --Pick up that node from M which closest to the tree built so far. All pair shortest paths (Floydd Warshalls algo O(n3)a)
24
and Z. Step 2: Find the minimum spanning tree T1 of G1. (pick any to break ties) Step3: Construct a subgraph GS of G by replacing each edge in T1 by its corresponding shortest path in G. (break ties arbitrarily). Step 4: Find the minimum spanning tree TS of GS (break ties arbitrarily). Step 5: Construct a Steiner tree TH from TS by deleting edges in TS if necessary, so that all the leaves in TH are Steiner points.
x x
Worst case time complexity O(|S||V|2). Cost no more than 2(1 - 1/l) *optimal cost where l = number of leaves in the steiner tree.
Multicast Routing Algorithms 25
Working of KMB
A A
1 10 1/2
A
1
4 4
4 C
H G
1
1/2
I
1
H
1/2
1/2
A 4
D B
G 1
1
1
1 2
B
8
F
2
1 2
F
2
C C
26
Working of KMB
A
1
A
1
H
1/2
1/2
G B
1
1
1 2
1
B
1
F
2
F
2
1 2
Limited wavelength conversion : every node is capable of converting an input wavelength to only a subset of output wavelengths. Sparse wavelength conversion : an input wavelength can be converted to any output wavelength, but only a few nodes posses this capability. Sparse Splitting : only a fraction of nodes can forward as many copies as needed, and the rest of the nodes have no splitting capability. MZQ assumes there are always enough wavelengths on each link. Constructs multi-cast trees based on splitting capability of the nodes. Nodes without splitting capability can have at-most one child in the tree.
Multicast Routing Algorithms 28
Algorithm maintains three sets of nodes V: nodes in the tree through which the tree can grow . (nodes with splitting capability). V`: nodes in the tree through which the tree cannot grow. (nodes without splitting capability)
s s s
Pick that node from UV which is nearest to the tree Include as many destinations as possible in one multicasting tree. For nodes not included in the preceding tree(s), algorithm called recursively to construct another multicasting tree.
29
Performance Metrics:
Unlimited wavelengths on each link. First-Fit algorithm used for wavelength assignment.
Multicast Routing Algorithms 30
4 1 Source
Results: The bandwidth savings from using multicasting saturate at 50%. Multicasting reduces number of wavelengths required by as much as 60%. Even when the network does not have any nodes that have the splitting capability, multicasting reduces the bandwidth consumed by 43% to 45%. No more than 75% of the nodes need to have the splitting capability to obtain the same effect as having the splitting capability in all the nodes.
Multicast Routing Algorithms 32
s s
s s
Bin B holds first vertices of the queue. Choose the path of least cost from all vertices in B to all non-terminals not in the Tree.
Multicast Routing Algorithms 33
Init
Q {s},
Vt {s},
At { }.
While M not empty do B first min( , |Q| ) vertices in Q. Initialize PATH to any path from B to M. For each v in B do s for each m in M do if cost( shortestPath( v, m) < cost (PATH) PATH P. Branch subpath ( w z ) : only w is in Vt.
s s s
PDH, MPH, and KMB are special cases of the R-algo. = 1. SCTF equivalent to PDH. = |M|+1 & Ignore non-terminals in B. SCTF equivalent to KMB. = |V|. SCTF equivalent to MPH. As from 1 to n, Tree_Cost , and Running_Time .
Running Time of R-Algo : O(m2 + e) Assumption: Shortest Paths from every vertex to every terminal are available. ( takes O( m . n . log(e) ) time ) Performance Guarantee
A = max{ A(I)/OPT(I) }
Tree cost
s s
2 . m. Optimal_Cost
m = MAX[u, v] max(cost(u,v), cost(v, u))/ min(cost(u,v), cost(v, u)) m = 1 for symmetric graphs.
A = O ( m).
Multicast Routing Algorithms 36
select the right tradeoff & operating point to accommodate the differing requirements of voice, video and data.
37
Problem Formulation.. s Source node s. Sequence of requests R = {r1, r2, ... rm}
s
Cost Modelling
s
39
s s
s s
A virtual trunk is a tree of the underlying graph. Spans nodes which have the greatest probability of being a part of the multi-casting tree. Used as a template for building the multicasting tree. Nodes which have a greater number of shortest paths passing through them, have a greater probability of being a part of the multi-cast tree. Weight W(vi) of vertex vi = number of shortest paths passing through vi.
Multicast Routing Algorithms 40
s s s s s s
Find the shortest paths for all pairs of nodes in G. Assign weights to the vertices in G. Find the set of trunk nodes F. Construct a complete graph for the set of trunk nodes. Find the minimum spanning tree for the complete graph. Convert edges in min. span. Tree back to the corres shortest paths in graph G. Run the minimum spanning tree algo and remove unnecessary nodes and links to obtain the virtual trunk.
Multicast Routing Algorithms 41
s s
Build the virtual trunk. Adding a node to the multicast group establish shortest route from the node to the virtual trunk. is established. Route along virtual trunk to source node also established if not yet there. Add node to the multicast group. Removing a node from the multi-cast group First remove the node from the multicast group. If it is a leaf node, remove the node from the tree. Prune the excess branch, if the node did not have any downstream nodes.
Multicast Routing Algorithms 42
Step1:
If node B on the virtual trunk, denote it as node A & go to step2. Else, find the shortest route from node B to the virtual trunk. Add portion of the shortest route not yet included in the multicast tree to the multicast tree. Let node A be the node on the virtual trunk which attaches node B to the virtual trunk via the selected shortest route. If node A is already on the multicast tree go to step 3. Else add portion of route from node A to source node that has not yet been included in the multicast tree to the multicast tree.
Multicast Routing Algorithms 43
Step2:
Step3:
Step1:
Step2:
If node B has downstream nodes the procedure is done. Else, if node B is a leaf, remove node B and its upstream link to the multicast tree.
Step3:
If the upstream node of node B is in the multicast group, the procedure is done. Else denote this node as node B and go to step 2.
Multicast Routing Algorithms 44
s s s s
Mean Inefficiency = TreeCost using AlgoA/ TreeCost using AlgoB. KMB is taken as the reference algorithm. VTDM compared against dynamic greedy (DG), Shortest Path (SP). Mean Inefficiency versus Number of nodes significant improvement over SP, better than DG. Mean Inefficiency versus Size of multicast group. significant improvement over SP, better than DG for large grps. Max Degree of nodes in the multicast trees. (no. of data copies). Much lesser degree than SP, less than DG algorithm.
Multicast Routing Algorithms 45
Problem : s Minimize the tree cost. s Guarantee all delays are less than predetermined bounds. Feasible region : the set of all delay bounded Steiner trees. Steps: Construct minimum delay steiner tree T0 using Dijkstras shortest path algorithm Refine T0 iteratively for lower cost while staying within feasible region.Multicast Routing Algorithms 46
Path Switching:
refinement of Tj to Tj+1.
Choosing a path p to be taken out of Tj. Tj = Tj1 + Tj2 p Choosing the new path ps in G not in Tj that replaces the path to be deleted from Tj. Tj+1 = Tj1 + Tj2 ps. Tj+1 is delay bounded.
48
Tj/ has the source, all destination nodes, and all relay nodes of degree more than 2. Tj/. Edges of Tj/ are called super_edges. All nodes between the two end_nodes of a super_edge are relay nodes of degree 1. Every super_edge represents a candidate path in Tj for switching.
* *
49
Initially all super_edges are unmarked. Step1:Among all unmarked super_edges, BSMA selects the super_edge Ph with the highest path cost.
s s
Exchange it with another super_edge of lesser cost, such that resulting tree is delay bounded.. One of the two cases must happen: The delay bounded shortest path is the same as Ph.
Mark that super edge. Go to Step1. The delay bounded shortest path is a path other than Ph.
s s
Do The replacement. s Unmark all super_edges. s Go to Step 1. Stops when all super edges are marked.
Multicast Routing Algorithms 50
BSMA incrementally calculates k shortest paths between subtrees Tj1 and Tj2. K is determined only after a shortest path is found which has resulted in a delay bounded tree. So the shortest path incremental construction stops when one of the following two conditions is satisfied. The shortest path found does not result in the new tree violating the delay bound. The shortest path found has equal path length to the one just deleted. Dijkstras algo is extended to construct shortest path between two subtrees instead of two nodes A pseudo source node s is connected to all nodes in Tj1 and a pseudo destination node d is connected to all nodes in Tj2. The shortest path algo starts from s and ends at d.
Multicast Routing Algorithms
51
6,2 3,3 4,5 Delay Bound = 12, end-end delay = 12 6,2 * 3,3 4,5 5,5 5,5
1,1
1,1
1,1
1,1
End-end delay = 9
Multicast Routing Algorithms 52
s s
Gain = cost reduction after a round of path switching if c = cost of Tj and c_prime = cost of Tj+1, then gain = c - c_prime. BSMA computes gains of all pairs of possible path switchings in Tj and then selects one with the maximum gain. BSMA continues the greedy switching and terminates when the maximum gain is zero. The time complexity of this greedy approach is more.
Multicast Routing Algorithms 53
Time complexity of BSMA O(kn3log(n)). Using the tightest possible delay bound, as determined by the min. delay tree, the cost of the BSMA tree is substantially better than the cost of the min. delay tree. A Range of min. cost solutions can be obtained between the two extremes of the KMB and the min. delay solution. Compared to KMB the relative quality of results improve with the number of destinations in the multicast group. A tighter bound results in a larger value for k, and hence increases the computation time required by the algo, a slight relaxation of the bound often results in considerably fewer computations.
Multicast Routing Algorithms 54
C (e )
eT eP ( s ,v )
is minimized.
D (e )
Features: s Edge_Cost and Delay are different functions. s Delay constraints are on individual path delay. Assumption: s Source has all the info necessary for tree construction.
Multicast Routing Algorithms 55
Constrained Cheapest Path between v and w Least cost path between v and w that has delay less than . Cost of such a path is PC(v, w). Delay on this path is PD(v, w). Closure graph G/ A complete graph on the nodes in N, with PC(v, w) as edge costs PD(v, w) as the edge delay. To compute Closure graph G/ Calculate all-pair-constrained-cheapest-paths using Floyds algorithm. ( is bounded, so possible in poly-time)
Multicast Routing Algorithms 56
PC(v, w) = min d< { Cd(v, w) } Compute all-pair-constrained-cheapest-paths. From these, compute G/. Constructing graph G/ takes O(n3 ) time.
Multicast Routing Algorithms 57
s s s
Compute the closure graph G/ of G. Construct a constrained spanning tree T/of G/, using one of the two selection functions fC or fCD as the selection function. Expand the edges in the constrained spanning tree T/ into the constrained cheapest paths they represent, and remove any loops that may be caused by this expansion.
Multicast Routing Algorithms 58
CSTCD
Tries to choose low cost edges but modulates the choice to pick edges that maximize the residual delay. This increases the chances of extending the path along this edge, and beyond to another destination. Has a tendency to optimize on delay. May find trees with delay far lower than at the expense of added cost to the tree.
C (v, w) ( P(v) + D (v, w))
Uses fCD=
fCD = infinity
otherwise
59
CSTC
minimizes fC. Constructs cheapest tree possible, while remaining within delay bounds. Minimizes cost, without unduly minimizing delay.
fc
fc = infinity otherwise.
60
CSTC and OPT have comparable performance. CSTCD performs marginally worse than CSTC. For large group sizes the heuristics converge to the optimal solution. When delay-tolerance increases, the performance of both source based heuristics converges. SPT gives trees with consistently high costs (70%-80%) more than CSTC.
Multicast Routing Algorithms
61
List of References
s
KMB Algorithm : L Kou, G Markowski, L. Berman A Fast algorithm for Steiner Trees. Acta Informatica 15, 1981, pages 141-145 Minimum Cost Path Heuristic: H. Takahashi and A. Matsuyama An Approximate Solution for Steiner Problem in Graphs Math Japonica vol 24, pp 573-577. MZQ: Rajkumar Malli, Xijun Zhang, Chunming Qiao Benefit of Multicasting in All-Optical Networks. SCTF: S. Ramanathan Multicast Tree Generation in Networks with Asymmetric Links. IEEE/ACM Transactions on Networking 1996 v4, 558-568
62
BSMA: Qing Zhu, Mehrdad Parsa, J.J. Gracia-Luna-Aceves A source based algo. for delay constrained minimum cost multicasting. IEEE Infocom 1995 pp 377-385 VTDM: Hwa-Chun Lin Shou-Chuan Lai A dynamic Multicast Routing Algorithm IEEE Infocom 1998, pp 1426-1432 KPP: V. P. Kompella, J. C. Pasquale, G. C. Polyzos Multicast Routing for Multimedia Communication. IEEE /ACM Transactions on Networking, vol 1, June 1993.
63