A practical Network Coding and Routing Scheme based on Maximum Flow Combination


Algorithm Design for the Coding - Routing Scheme



Download 1.23 Mb.
Page9/19
Date02.05.2018
Size1.23 Mb.
#47331
1   ...   5   6   7   8   9   10   11   12   ...   19

Algorithm Design for the Coding - Routing Scheme


First of all, multicast flow graph is constructed by merging all the max-flow paths to every sink node. Second, all the data blocks are packed into packets along with its destination node index. Finally, these packets are dispensed from source node to sink nodes through forward, multicast or coding operations.
    1. Construction of Multicast Flow Graph

      1. Max-Flow Algorithms


Max flow of one graph can be found out through two types of algorithm: augmenting path methods or pre-flow-push methods.

Augmenting path method, also known as the Ford Fulkerson method, is based on the idea of finding out one path that could enhance the current flow, until no path could be found. Let |E| = n, |V|=m, and assume maximum edge capability is u. The general labelling algorithm is finding any possible path with the time complexity of O (nmu). The capacity scaling algorithm limited the path to be the one with maximum increasing improvement and reduces the time complexity to O (nm log u). Another shortest augmenting path algorithm - Edmonds Karp algorithm aims at finding out the path with the smallest number of nodes, e.g. the Board First Search (BFS). The time complexity is O (nm2).


      1. Labelling Algorithm


The high level of the iterative Ford-Fulkerson-Method is described below:

  1. procedure labelling(net, s, t)

  2. initialize flow to 0

  3. while there exists an augmenting path p

  4. augment flow along p

The pseudo code of the labelling algorithm to work out the max-flow from node s to node t is described below:

  1. net[i][j] is the capacity of edge

  1. flow[i][j] is the flow value of each edge

  2. res[i][j] is the residual capacity for edge

  3. pred[i] is predecessor of node i in the augmenting path

  4. list is the set of nodes to be visited while seeking the augmenting path



  5. procedure labelling(net, s, t)

  6. begin

  7. label node t

  8. while t is labelled do

  9. begin

  10. # Find augmenting path

  11. unlabel all nodes

  12. set pred[i] ← 0 for every node iV

  13. label node s

  14. list ← {s}

  15. while list≠∅ or t is unlabeled do

  16. begin

  17. remove a node i from list

  18. for each edge <i,j> in the residual network do

  19. res[i][j] = net[i][j] – flow[i][j] + flow[j][i]

  20. if res[i][j]>0 and node j is unlabeled then

  21. begin

  22. pred[j] ← i

  23. label node j

  24. append j to list

  25. end

  26. end

  27. # Augment the path

  28. if t is labelled then

  29. begin

  30. use pred to trace back from t to s to obtain an augmenting path P

  31. delta := min {res[i][j] : ∈P}

  32. augment delta units of flow along P

  33. end

  34. end

  35. end

(a) (b)



  1. Max-flows to each sink node of butterfly network

For example, the two max-flows to sink node 5 and sink node 6 are shown in Figure 8.(a) and (b), respectively. In this figure, flow values Fi,j and capacity values Ci,j are separated by slash “/” and placed beside each edge. The edges with non zero flow are marked with same colour with the sink node. Both sink nodes have the same maximum flow value 2. The two paths to sink node 5 are 0-1-5 and 0-2-3-4-5. Similarly, the two paths to sink node 6 are 0-1-3-4-6 and 0-2-6.
      1. Merging Max-Flow for Obtaining Multicast Flow Graph


The unit capacity of each link is a common assumption in most network coding approaches. Larger capacity is substituted with multiple parallel links in the same direction between two nodes. However, link capacity in real networks is always a quantity in a large number instead of 1. The approaches based on unit capacity encounter a problem to deal with a large number of links with unit capacity. Hence the computational complexity is increased dramatically. The proposed approach here avoids this problem. Since links are not unit capacity, the new definitions are proposed as follows.

Definition 1: The merged max flow to all the sink nodes is defined as



That is to say, for every edge, the merged max flow is the maximal one of the single max flows overlapping on the edge. The value of the merged max flow is used as the new limitation of the edge capacity.

Definition 2: The overlapped edge is the edge used in two or more max-flows to different sink nodes, i.e. the edge <i, j> satisfies

Fti,j >0 ∧ Fki,j>0 (1≤tl , 1≤kl, k≠t, E)



For the example in Figure 8., the combined maximum flow for the two max-flows is shown in Figure 9.. The overlapped edges are marked with bold lines. The numbers beside the edges are the merged capacity limitations.

According to Theorem 2 in Section 2, the upper bound multicast transportation capacity is the minimum one of the two single max-flows. For this example, it is min(2,2)=2, i.e. there are 2 different packets can be broadcasted from s to t1 and t2 at one time unit if network coding is used. At the end of this algorithm a network coding scheme under this capacity limitation will be constructed. The merged flow graph simplifies the network topology. Only the edges and nodes in the merged max-flows will be used to construct the coding and routing scheme,



  1. Merged max flows for butterfly network
      1. The Target Set of an Edge


Definition 3: The target set of edge is denoted as Di,j, for any sink node t in Di,j, the edge <i,j> is on the max-flow from s to t. The sink nodes in the target set is represented with its index number. The formal definition is as following:


T is the set of all sink nodes

l is the number of sink nodes

is the flow value of edge <i,j> to sink node td



For unit capacity, as , is equivalent to

For example, the target set D for butterfly network is shown in Figure 10.. It could be derived from Figure 8.. There are two sink node 5 (index=0) and sink node 6 (index=1). Edge <0, 1> is shared by both max-flows, so the target set D0,1 is {0,1}; Edge <1, 3> is on the max-flow of node 6 only, so the target set D1,3 is {1}. The other edges could be done by parity of reasoning.





  1. Target sets for butterfly network

For multiple capacity edges, there are multiple target sets at each edge . The number of target sets is the flow value of the merged flow . Each target set is defined as follows:

Intuitively, the multiple capacity edge is treated as several parallel edges, and each edge is assigned a target set.



For example, if the capacity of each edge at the butterfly network is doubled. There are two target sets for each edge as shown in Figure 11..



  1. Target set for double capacity edge of butterfly network


    1. Download 1.23 Mb.

      Share with your friends:
1   ...   5   6   7   8   9   10   11   12   ...   19




The database is protected by copyright ©ininet.org 2024
send message

    Main page