Abstract:
A k-source N 1 ×N 2  nonblocking multicast switching network has N 1  input ports and N 2  output ports with each port having k independent channels, in which each input channel can perform a multicast connection, i.e. send data simultaneously to multiple output channels, without interrupting existing multicast connections from other input channels. We provide the construction and the routing algorithm of a multi-source nonblocking multicast three-stage switching network. A k-source N 1 ×N 2  such a switching network consists of three stages of switch modules (which are k-source multicast switching networks with smaller sizes). It has r 1  k-source n 1 ×m switch modules in the input stage, m k-source r 1 ×r 2  switch modules in the middle stage, and r 2  k-source m×n 2  switch modules in the output stage with N 1 =n 1 r 1  and N 2 =n 2 r 2 . There are exactly k channels (corresponding to one port of k-source switch module) between every two switch modules in two consecutive stages. The nonblocking condition for the multicast network is 
     
       
         
           
             m 
             &gt; 
             
               
                 min 
                 
                   1 
                   ≤ 
                   x 
                   ≤ 
                   
                     min 
                      
                     
                       { 
                       
                         
                           
                             n 
                             2 
                           
                           - 
                           1 
                         
                         , 
                         
                           r 
                           2 
                         
                       
                       } 
                     
                   
                 
               
                
               
                 { 
                 
                   
                     ⌊ 
                     
                       
                         ( 
                         
                           
                             n 
                             1 
                           
                           - 
                           
                             1 
                             k 
                           
                         
                         ) 
                       
                        
                       x 
                     
                     ⌋ 
                   
                   + 
                   
                     
                       ( 
                       
                         
                           n 
                           2 
                         
                         - 
                         1 
                       
                       ) 
                     
                      
                     
                       r 
                       2 
                       
                         1 
                         x 
                       
                     
                   
                 
                 } 
               
             
           
         
       
     
     A refining approach to further reduce the above m value by reducing m′ (which may start from 
     
       
         
           
             
               
                 ( 
                 
                   
                     n 
                     2 
                   
                   - 
                   1 
                 
                 ) 
               
                
               
                 r 
                 2 
                 
                   1 
                   x 
                 
               
             
             ) 
           
         
       
     
     for the chosen x in the above is also disclosed.

Description:
BACKGROUND OF THE INVENTION 
       [0001]    1. Field of the Invention 
         [0002]    The present invention pertains to a nonblocking multicast switching network. More specifically, the present invention pertains to a multicast switching network having m middle stage switches where x or fewer of the m middle switches are always available to form a channel connection between an input port and an idle output ports. 
         [0003]    2. Description of the Prior Art 
         [0004]    Traditionally, an N 1 ×N 2  Clos multicast network consists of three stages of switch modules. It has r 1  switch modules of size n 1 ×m in the input stage, m switch modules of size r 1 ×r 2  in the middle stage, and r 2  switch modules of size m×n 2  in the output stage with N 1 =n 1 r 1 , N 2 =n 2 r 2 , and m≧max{n 1 , n 2 } as shown in  FIG. 1 . In such a network, there is exactly one link between every two switch modules in two consecutive stages, and each switch module is assumed to be multicast-capable. 
         [0005]    Previous works such as Masson (G. M. Masson and B. W. Jordan, “Generalized multi-stage connection networks,”  Networks , vol. 2, pp. 191-209, 1972.), Hwang (F. K. Hwang and A. Jajszczyk, “On nonblocking multiconnection networks,”  IEEE Trans. Communications , vol. 34, pp. 1038-1041, 1986.), and Yang-Masson (Y. Yang and G. M. Masson, “Nonblocking broadcast switching networks,”  IEEE Trans. Computers , vol. 40, no. 9, pp. 1005-1015, 1991.) have demonstrated that when m takes certain values, the three-stage Clos network has full multicast capability in a nonblocking manner. 
         [0006]    Recently, as the new technology develops, more powerful switching elements are commercially available, see, for example, Fujitsu&#39;s AXEL-X MB8AA3020 10G Ethernet Switch (e.g. AXEL-X MB8AA3020 Chip Specification, Revision 2.0, Fujitsu Laboratories of America, March, 2006, and http://www.fujitsulabs.com/). In such a switch, each port of the switch can simultaneously support multiple data streams from independent sources. We call this type of switch multi-source switches. In general, an s×s multi-source multicast switch has s input ports and s output ports, and each port has k independent links. The switch can connect from any input link to any set of output links. We can simply call the switch an s×s k-source switch. The switch can function as an sk×sk ordinary multicast switch. In fact, the internal implementation of such a switch is packet switching. For example, letting k=5, an s×s multi-source switch with 10G bandwidth on each port is equivalent to an sk×sk ordinary switch with 2G bandwidth on each link. 
       SUMMARY OF THE INVENTION 
       [0007]    In this disclosure, a large nonblocking multicast switching network is constructed by using the above multi-source switching elements in the three-stage Clos type network. 
         [0008]    The new N 1 ×N 2  multicast network has N 1  input ports and N 2  output ports with each port having k links. We call this multistage network k-source N 1 ×N 2  multistage network. Compared to the ordinary Clos type network, the major difference is that in the k-source multistage switching network there are k links between every two switch modules in two consecutive stages as shown in  FIG. 2 . The aim of the following disclosure are to show what the nonblocking condition for this type of network is; how to optimize the design of such a three-stage network in terms of the number of multi-source switching elements (instead of the traditional cost metric, the number of crosspoints); and how to design the routing algorithm to add/delete a connection to/from an existing multicast connection tree without packet loss. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0009]      FIG. 1  shows a three-stage switching network of the prior art. 
           [0010]      FIG. 2  shows a three-stage multi-source switching network of the current disclosure. 
           [0011]      FIG. 3  shows a refining algorithm of the number of available middle stage switches. 
           [0012]      FIG. 4  shows a sketch of adding a new multicast branch to an existing multicast tree in different cases. 
           [0013]      FIG. 5  shows a illustration of two overlapped multicast trees for multicast connection request. 
           [0014]      FIG. 6  shows another example of two overlapped multicast trees for connection requests. 
           [0015]      FIG. 7  shows a routing algorithm of the current disclosure. 
       
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
       [0016]    The key issue of obtaining nonblocking conditions for such a network is to determine the minimum number of switches in the middle stage. 
         [0017]    For simplicity, we first consider the symmetric network, that is, N 1 =N 2 =N, n 1 =n 2 =n, and r 1 =r 2 =r, and then extend to the general case. 
         [0018]    Recall that in the ordinary Clos type multicast network, we defined the destination set of a middle stage switch as the set of labels of output stage switches that are connected from this middle stage switch. However, in the case of the k-source Clos type multicast network, a middle stage switch can have up to k connections to an output stage switch. Thus, we must consider destination multiset with elements that may have a multiplicity larger than 1 as defined in following notations. 
         [0019]    Let O={1, 2, . . . , r} denote the set of labels of all output stage switches numbered from 1 to r. Since there can be up to k multicast connections from a middle stage switch jε{1, 2, . . . , m} to an output stage switch pεO, one on each link, we shall use M j  to represent the destination multiset (whose base set is O), where p may appear more than once if more than one multicast connections are from j to p. The number of times p appears in M j , or the number of multicast connections from j to p, is called the multiplicity of p in multiset M j . 
         [0020]    More specifically, denote the multiset M j  as 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       M 
                       j 
                     
                     = 
                     
                       { 
                       
                         
                           1 
                           
                             i 
                             
                               j 
                               1 
                             
                           
                         
                         , 
                         
                           2 
                           
                             i 
                             
                               j 
                               2 
                             
                           
                         
                         , 
                         … 
                          
                         
                             
                         
                         , 
                         
                           r 
                           
                             i 
                             
                               j 
                               r 
                             
                           
                         
                       
                       } 
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   1 
                   ) 
                 
               
             
           
         
       
     
         [0000]    where 0≦i j     1   , i j     2   , . . . , i j     r   ≦k are the multiplicities of elements 1, 2, . . . , r, respectively. Notice that if every multiplicity is less than k, i.e. 0≦i j     1   , i j     2   , . . . , i j     r   ≦k−1, then the maximal multicast connection that can be realized through middle stage switch j without interfering any existing connections is {1, 2, . . . , r} (in terms of the set of output stage, switches reachable from middle stage switch j). In general, the maximal multicast connection that can go through middle stage switch j is {p|0≦i j     p   &lt;k for 1≦p≦r}. Now the question is: What is the maximal multicast connection that can go through two middle stage switches j and h? We thus define the intersection of multisets as follows. 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       M 
                       j 
                     
                     ⋂ 
                     
                       M 
                       h 
                     
                   
                   = 
                   
                     { 
                     
                       
                         1 
                         
                           min 
                            
                           
                             { 
                             
                               
                                 i 
                                 
                                   j 
                                   1 
                                 
                               
                               , 
                               
                                 i 
                                 
                                   h 
                                   1 
                                 
                               
                             
                             } 
                           
                         
                       
                       , 
                       
                         2 
                         
                           min 
                            
                           
                             { 
                             
                               
                                 i 
                                 
                                   j 
                                   2 
                                 
                               
                               , 
                               
                                 i 
                                 
                                   h 
                                   2 
                                 
                               
                             
                             } 
                           
                         
                       
                       , 
                       … 
                        
                       
                           
                       
                       , 
                       
                         r 
                         
                           min 
                            
                           
                             { 
                             
                               
                                 i 
                                 
                                   j 
                                   r 
                                 
                               
                               , 
                               
                                 i 
                                 
                                   h 
                                   r 
                                 
                               
                             
                             } 
                           
                         
                       
                     
                     } 
                   
                 
               
               
                 
                   ( 
                   2 
                   ) 
                 
               
             
           
         
       
     
       Then the maximal multicast connection that can go through two middle stage switches j and h is the maximal multicast connection that can go through a middle stage switch with its destination multiset equal to multiset M j ∩M h . 
       [0021]    From the point of realizing a multicast connection, which is characterized as an ordinary set, we can see that those elements in M j  with multiplicity k cannot be used. Accordingly, we define the cardinality of M j  as 
         [0000]      | M   j   |=|{p|p   k   εM   j  for 1≦p≦r}|  (3) 
         [0000]    and the null of M j  as 
         [0000]        M   j   =φiff|M   j |=0.  (4) 
         [0022]    It can be verified that a lemma proved by Yang-Masson (Y. Yang and G. M. Masson, “Nonblocking broadcast switching networks,”  IEEE Trans. Computers , vol. no. 9, pp. 1005-1015, 1991.) still holds when we consider M j  as a multiset and use the definitions of intersection, cardinality and null of multisets in (2)-(4). 
         [0023]    The lemma proved by Yang-Masson, which we call “Lemma 1” in this disclosure, is as follows: 
         [0024]    Lemma1: 
         [0000]    A new multicast connection request with fanout r can be satisfied using some x (x≧1) middle stage switches, say, i 1 , . . . , i x , from among the available middle switches if and only if the intersection of the destination sets of these x middle stage switches is empty, i.e. ∩ j=1   x M k     j   =φ. 
         [0025]    Now we are in the position to extend the results of nonblocking conditions for an ordinary multicast network in Yang-Masson to that for a k-source multicast network, i.e. the destination multiset being a multiset with multiplicity no more than k as defined in (1), and their operations are defined in (2)-(4). 
         [0026]    Theorem 1: 
         [0027]    For any x, 1≦x≦min{n−1,r}, let m′ be the maximum number of middle stage switches whose destination multisets satisfy that their multiplicities are no more than k, that there are at most (nk−1) 1&#39;s, (nk−1) 2&#39;s, . . . , (nk−1) r&#39;s distributed among the m′ destination multisets, and that the intersection of any x of the destination multisets is not empty. Then we have 
         [0000]    
       
         
           
             
               m 
               ′ 
             
             ≤ 
             
               
                 ( 
                 
                   n 
                   - 
                   1 
                 
                 ) 
               
                
               
                 r 
                 
                   1 
                   x 
                 
               
             
           
         
       
     
         [0028]    The Proof of Theorem 1 is as follows. Suppose these m′ middle switches are 1, 2, . . . , m′ with destination multisets M 1 , M 2 , . . . , M m′ , which are nonempty multisets by the assumptions. Clearly, by using (3) and (4) we have that 
         [0000]      0&lt;|M i |≦r for 1≦i≦m′ 
         [0029]    Notice that at most (nk−1) 1&#39;s, (nk−1) 2&#39;s, . . . , (nk−1) r&#39;s are distributed among the m′ multisets. Moreover, from (3), k multiple of the same element in M i  contributes a value 1 to |M i |. Thus, for any j (1≦j≦r), (nk−1) multiple of element j contributes a value no more than 
         [0000]    
       
         
           
             ⌊ 
             
               
                 nk 
                 - 
                 1 
               
               k 
             
             ⌋ 
           
         
       
     
         [0000]    to 
         [0000]    
       
         
           
             
               ∑ 
               
                 i 
                 = 
                 1 
               
               
                 m 
                 ′ 
               
             
              
             
               
                  
                 
                   M 
                   i 
                 
                  
               
               . 
             
           
         
       
     
         [0000]    have 
         [0000]    
       
         
           
             
               
                 
                   ∑ 
                   
                     i 
                     = 
                     1 
                   
                   
                     m 
                     ′ 
                   
                 
                  
                 
                    
                   
                     M 
                     i 
                   
                    
                 
               
               ≤ 
               
                 
                   ⌊ 
                   
                     
                       nk 
                       - 
                       1 
                     
                     k 
                   
                   ⌋ 
                 
                  
                 r 
               
             
             = 
             
               
                 
                   ⌊ 
                   
                     n 
                     - 
                     
                       1 
                       k 
                     
                   
                   ⌋ 
                 
                  
                 r 
               
               = 
               
                 
                   ( 
                   
                     n 
                     - 
                     1 
                   
                   ) 
                 
                  
                 r 
               
             
           
         
       
     
         [0030]    Let M j     1    be the multiset such that 
         [0000]    
       
         
           
             
                
               
                 M 
                 
                   j 
                    
                   
                       
                   
                    
                   1 
                 
               
                
             
             = 
             
               
                 min 
                 
                   1 
                   ≤ 
                   i 
                   ≤ 
                   
                     m 
                     ′ 
                   
                 
               
                
               
                  
                 
                   M 
                   i 
                 
                  
               
             
           
         
       
     
         [0031]    Then, we obtain that 
         [0000]    
       
         
           
             
               
                 
                   m 
                   ′ 
                 
                  
                 
                    
                   
                     M 
                     
                       j 
                        
                       
                           
                       
                        
                       1 
                     
                   
                    
                 
               
               ≤ 
               
                 
                   ∑ 
                   
                     i 
                     = 
                     1 
                   
                   
                     m 
                     ′ 
                   
                 
                  
                 
                    
                   
                     M 
                     i 
                   
                    
                 
               
               ≤ 
               
                 
                   ( 
                   
                     n 
                     - 
                     1 
                   
                   ) 
                 
                  
                 r 
               
             
             , 
           
         
       
     
         [0000]    and thus 
         [0000]    
       
         
           
             
               
                 
                   
                     m 
                     ′ 
                   
                   ≤ 
                   
                     
                       
                         ( 
                         
                           n 
                           - 
                           1 
                         
                         ) 
                       
                        
                       r 
                     
                     
                        
                       
                         M 
                         
                           j 
                            
                           
                               
                           
                            
                           1 
                         
                       
                        
                     
                   
                 
               
               
                 
                   ( 
                   5 
                   ) 
                 
               
             
           
         
       
     
         [0000]    by noting that |M j     1   |&gt;0. 
         [0032]    Without loss of generality, suppose that in multiset M j     1   , the |M j     1   | elements each with multiplicity k are 1, 2, . . . , |M j     1   |. Now, consider m′ new multisets M j     1   ∩M i  for 1≦i≦m′. From (2), (3) and the assumption that the intersection of any two multisets is nonempty, we have and only elements 1, 2, . . . , |M j     1   | in multiset M j     1   ∩M i  may have multiplicity k, thus can make a contribution to the value of |M j     1   ∩M i |. Notice that at most (nk−1) 1&#39;s, (nk−1) 2&#39;s, . . . , (nk−1) |M j     1   |&#39;s are distributed in the m′ multisets M j     1   ∩M 1  for 1≦i≦m′. Again, by using a similar analysis as above, we obtain that 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       
                         ∑ 
                         
                           i 
                           = 
                           1 
                         
                         
                           m 
                           ′ 
                         
                       
                        
                       
                          
                         
                           
                             M 
                             
                               j 
                                
                               
                                   
                               
                                
                               1 
                             
                           
                           ⋂ 
                           
                             M 
                             i 
                           
                         
                          
                       
                     
                     ≤ 
                     
                       
                         ⌊ 
                         
                           
                             nk 
                             - 
                             1 
                           
                           k 
                         
                         ⌋ 
                       
                        
                       
                          
                         
                           M 
                           
                             j 
                              
                             
                                 
                             
                              
                             1 
                           
                         
                          
                       
                     
                   
                   = 
                   
                     
                       ( 
                       
                         n 
                         - 
                         1 
                       
                       ) 
                     
                      
                     
                        
                       
                         M 
                         
                           j 
                            
                           
                               
                           
                            
                           1 
                         
                       
                        
                     
                   
                 
               
               
                 
                   ( 
                   6 
                   ) 
                 
               
             
           
         
       
     
       Let M j     2    be the multiset such that 
       [0033]    
       
         
           
             
                
               
                 
                   M 
                   
                     j 
                      
                     
                         
                     
                      
                     1 
                   
                 
                 ⋂ 
                 
                   M 
                   
                     j 
                      
                     
                         
                     
                      
                     2 
                   
                 
               
                
             
             = 
             
               
                 min 
                 
                   1 
                   ≤ 
                   i 
                   ≤ 
                   
                     m 
                     ′ 
                   
                 
               
                
               
                  
                 
                   
                     M 
                     
                       j 
                        
                       
                           
                       
                        
                       1 
                     
                   
                   ⋂ 
                   
                     M 
                     i 
                   
                 
                  
               
             
           
         
       
     
       Then, we can similarly obtain 
       [0034]    
       
         
           
             
               
                 
                   
                     m 
                     ′ 
                   
                   ≤ 
                   
                     
                       
                         ( 
                         
                           n 
                           - 
                           1 
                         
                         ) 
                       
                        
                       
                          
                         
                           M 
                           
                             j 
                              
                             
                                 
                             
                              
                             1 
                           
                         
                          
                       
                     
                     
                        
                       
                         
                           M 
                           
                             j 
                              
                             
                                 
                             
                              
                             1 
                           
                         
                         ⋂ 
                         
                           M 
                           
                             j 
                              
                             
                                 
                             
                              
                             2 
                           
                         
                       
                        
                     
                   
                 
               
               
                 
                   ( 
                   7 
                   ) 
                 
               
             
           
         
       
     
         [0000]    by noting that |M j     1   ∩M j     2   |&gt;0. 
         [0035]    In general, for 2≦y&lt;x, we have 
         [0000]    
       
         
           
             
               
                 
                   
                     m 
                     ′ 
                   
                   ≤ 
                   
                     
                       
                         ( 
                         
                           n 
                           - 
                           1 
                         
                         ) 
                       
                        
                       
                          
                         
                           
                             ⋂ 
                             
                               l 
                               = 
                               1 
                             
                             
                               y 
                               - 
                               1 
                             
                           
                            
                           
                             M 
                             
                               j 
                                
                               
                                   
                               
                                
                               1 
                             
                           
                         
                          
                       
                     
                     
                        
                       
                         
                           ⋂ 
                           
                             l 
                             = 
                             1 
                           
                           y 
                         
                          
                         
                           M 
                           
                             j 
                              
                             
                                 
                             
                              
                             1 
                           
                         
                       
                        
                     
                   
                 
               
               
                 
                   ( 
                   8 
                   ) 
                 
               
             
           
         
       
     
         [0000]    and |∩ l=1   y M j     l   |&gt;0 based on the assumption that the intersection of no more than x original multisets is nonempty. 
         [0036]    On the other hand, also based on this assumption, we have m′ multisets (∩ l=1   x−1 M j     1   )∩M i  (1≦i≦m′) which are all nonempty. This means that |(∩ l=1   x−1 M j     l   )∩M i |≧1 for 1≦i≦m′, and 
         [0000]    
       
         
           
             
               m 
               ′ 
             
             ≤ 
             
               
                 ∑ 
                 
                   i 
                   = 
                   1 
                 
                 
                   m 
                   ′ 
                 
               
                
               
                 
                    
                   
                     
                       ( 
                       
                         
                           
                             ⋂ 
                             
                               x 
                               - 
                               1 
                             
                           
                           
                             l 
                             = 
                             1 
                           
                         
                          
                         
                           M 
                           ji 
                         
                       
                       ) 
                     
                     ⋂ 
                     
                       M 
                       i 
                     
                   
                    
                 
                 . 
               
             
           
         
       
     
       Then, by using a similar argument as that in deriving (6), we can establish 
       [0037]    
       
         
           
             
               
                 
                   
                     m 
                     ′ 
                   
                   ≤ 
                   
                     
                       ( 
                       
                         n 
                         - 
                         1 
                       
                       ) 
                     
                      
                     
                        
                       
                         
                           
                             ⋂ 
                             
                               l 
                               = 
                               1 
                             
                           
                            
                           
                             M 
                             
                               j 
                               l 
                             
                           
                         
                         
                           x 
                           - 
                           1 
                         
                       
                        
                     
                   
                 
               
               
                 
                   ( 
                   9 
                   ) 
                 
               
             
           
         
       
     
         [0038]    Finally, m′ must be no more than the geometric mean of the right hand sides of (5), (8), and (9), and thus we obtain 
         [0000]    
       
         
           
             
               m 
               ′ 
             
             ≤ 
             
               
                 ( 
                 
                   n 
                   - 
                   1 
                 
                 ) 
               
                
               
                 r 
                 
                   1 
                   x 
                 
               
             
           
         
       
     
         [0039]    Q.E.D. 
         [0040]    The immediate corollary of Theorem 1 is as follows. 
       Corollary 1: 
       [0041]    In a Clos type k-source multicast network, for a new multicast connection request with fanout r′, 1≦r′≦r, if there exist more than 
         [0000]    
       
         
           
             
               
                 ( 
                 
                   n 
                   - 
                   1 
                 
                 ) 
               
                
               
                 r 
                 
                   ′ 
                    
                   
                     1 
                     x 
                   
                 
               
             
             , 
           
         
       
     
         [0000]    1≦x≦min{n−1, r′}, available middle switches for this connection request, then there will always exist x middle stage switches through which this new connection request can be satisfied. 
         [0042]    Accordingly, we can establish nonblocking conditions for the k-source multicast network as follows. 
         [0043]    Theorem 2: 
       A Clos type k-source N×N multicast network is nonblocking for any multicast assignments if 
       [0044]    
       
         
           
             
               
                 
                   m 
                   &gt; 
                   
                     
                       min 
                       
                         1 
                         ≤ 
                         x 
                         ≤ 
                         
                           min 
                            
                           
                             { 
                             
                               
                                 n 
                                 - 
                                 1 
                               
                               , 
                               r 
                             
                             } 
                           
                         
                       
                     
                      
                     
                       { 
                       
                         
                           ⌊ 
                           
                             
                               ( 
                               
                                 n 
                                 - 
                                 
                                   1 
                                   k 
                                 
                               
                               ) 
                             
                              
                             x 
                           
                           ⌋ 
                         
                         + 
                         
                           
                             ( 
                             
                               n 
                               - 
                               1 
                             
                             ) 
                           
                            
                           
                             r 
                             
                               1 
                               x 
                             
                           
                         
                       
                       } 
                     
                   
                 
               
               
                 
                   ( 
                   10 
                   ) 
                 
               
             
           
         
       
     
         [0045]    The Proof of Theorem 2 is as follows. Recall that the routing strategy for realizing multicast connections is to realize each multicast connection by using no more than x middle stage switches. By Corollary 1, if we have more than 
         [0000]    
       
         
           
             
               ( 
               
                 n 
                 - 
                 1 
               
               ) 
             
              
             
               r 
               
                 1 
                 x 
               
             
           
         
       
     
         [0000]    available middle switches for a new multicast connection request, we can always choose x middle stage switches to realize this connection request. Now there may be at most nk−1 other input links each of which is used for a multicast connection. By the routing strategy, each of them is connected to no more than x links on different outputs of this input stage switch and then connected to no more than x middle stage switches. Notice that unlike a traditional network, in a multi-source multicast network, two links at different input ports can be connected to two links of the same output of an input stage switch and then connected to the same middle stage switch. Now the question is: What is the number of middle stage switches which are not available for a new multicast connection in the worst case? Since each port has k links, if all the k links of the port connecting the current input stage switch to a middle stage switch are used by k existing multicast connections, this middle stage switch is not available. Therefore, we can have at most 
         [0000]    
       
         
           
             
               ⌊ 
               
                 
                   
                     ( 
                     
                       nk 
                       - 
                       1 
                     
                     ) 
                   
                    
                   x 
                 
                 k 
               
               ⌋ 
             
             = 
             
               ⌊ 
               
                 
                   ( 
                   
                     n 
                     - 
                     
                       1 
                       k 
                     
                   
                   ) 
                 
                  
                 x 
               
               ⌋ 
             
           
         
       
     
         [0000]    middle stage switches which are not available for a new multicast connection request. Thus, the total number of middle stage switches required, m, is greater than the number of unavailable middle switches in the worst case plus the maximum number of available middle switches needed to realize a multicast connection. The minimum value for m is obtained from (10) by minimizing the right hand side expression for all possible values of x. Q.E.D. 
         [0046]    The result for the more general network is Theorem 3 as shown below: 
         [0047]    A Clos type k-source N 1 ×N 2  multicast network is nonblocking for any multicast assignments if 
         [0000]    
       
         
           
             
               
                 
                   m 
                   &gt; 
                   
                     
                       min 
                       
                         1 
                         ≤ 
                         x 
                         ≤ 
                         
                           min 
                            
                           
                             { 
                             
                               
                                 
                                   n 
                                   2 
                                 
                                 - 
                                 1 
                               
                               , 
                               
                                 r 
                                 2 
                               
                             
                             } 
                           
                         
                       
                     
                      
                     
                       { 
                       
                         
                           ⌊ 
                           
                             
                               ( 
                               
                                 
                                   n 
                                   1 
                                 
                                 - 
                                 
                                   1 
                                   k 
                                 
                               
                               ) 
                             
                              
                             x 
                           
                           ⌋ 
                         
                         + 
                         
                           
                             ( 
                             
                               
                                 n 
                                 2 
                               
                               - 
                               1 
                             
                             ) 
                           
                            
                           
                             r 
                             2 
                             
                               1 
                               x 
                             
                           
                         
                       
                       } 
                     
                   
                 
               
               
                 
                   ( 
                   11 
                   ) 
                 
               
             
           
         
       
     
         [0048]    A description is now made on the design further refined for the nonblocking multi-source multicast network. In the previous description, we have performed the initial analysis and obtained tentative designs for multi-source nonblocking multicast switching networks. Notice that the theoretical bound in Theorems 1, 2, and 3 are based on the optimization on real functions, which provides an asymptotic closed form bound for the number of available middle stage switches. When considering the fact that the cardinality of each destination multiset is an integer, we can have the following refinement, which further reduces the network cost. 
         [0049]    For a given k-source multicast network with parameters 
         [0000]      N=160, n=8, r=20, k=5, 
         [0000]    by using Theorem 2 we can calculate 
         [0000]      x=3, m=43, 
         [0000]    and the bound on the number of available middle switches is 
         [0000]    
       
         
           
             
               m 
               ′ 
             
             = 
             
               
                 ⌈ 
                 
                   
                     ( 
                     
                       
                         n 
                         ′ 
                       
                       - 
                       1 
                     
                     ) 
                   
                    
                   
                     r 
                     
                       1 
                       x 
                     
                   
                 
                 ⌉ 
               
               = 
               
                 
                   ⌈ 
                   
                     7 
                     * 
                     
                       20 
                       
                         1 
                         3 
                       
                     
                   
                   ⌉ 
                 
                 = 
                 
                   
                     ⌈ 
                     
                       19.000923 
                        
                       
                           
                       
                        
                       … 
                     
                     ⌉ 
                   
                   = 
                   20 
                 
               
             
           
         
       
     
         [0050]    We first verify that any new multicast connection request can be realized by using x (=3) middle stage switches among given m′=20 available middle stage switches. 
         [0051]    According to (5), the first chosen middle stage switch j 1  satisfies 
         [0000]    
       
         
           
             
               
                 
                    
                   
                     M 
                     
                       j 
                       1 
                     
                   
                    
                 
                 ≤ 
                 
                   ⌊ 
                   
                     
                       
                         ( 
                         
                           n 
                           - 
                           1 
                         
                         ) 
                       
                        
                       r 
                     
                     
                       m 
                       ′ 
                     
                   
                   ⌋ 
                 
               
               = 
               
                 
                   ⌊ 
                   
                     
                       7 
                       * 
                       20 
                     
                     20 
                   
                   ⌋ 
                 
                 = 
                 7 
               
             
             ; 
           
         
       
     
         [0000]    according to (7), the second chosen middle stage switch j 2  satisfies 
         [0000]    
       
         
           
             
               
                 
                    
                   
                     
                       M 
                       
                         j 
                         1 
                       
                     
                     ⋂ 
                     
                       M 
                       
                         j 
                         2 
                       
                     
                   
                    
                 
                 ≤ 
                 
                   ⌊ 
                   
                     
                       
                         ( 
                         
                           n 
                           - 
                           1 
                         
                         ) 
                       
                        
                       
                          
                         
                           M 
                           
                             j 
                             1 
                           
                         
                          
                       
                     
                     
                       m 
                       ′ 
                     
                   
                   ⌋ 
                 
                 ≤ 
                 
                   ⌊ 
                   
                     
                       7 
                       * 
                       7 
                     
                     20 
                   
                   ⌋ 
                 
               
               = 
               
                 
                   ⌊ 
                   2.45 
                   ⌋ 
                 
                 = 
                 2 
               
             
             ; 
           
         
       
     
         [0000]    and finally, the third chosen middle stage switch j 3  satisfies 
         [0000]    
       
         
           
             
               
                  
                 
                   
                     M 
                     
                       j 
                       1 
                     
                   
                   ⋂ 
                   
                     M 
                     
                       j 
                       2 
                     
                   
                   ⋂ 
                   
                     M 
                     
                       j 
                       3 
                     
                   
                 
                  
               
               ≤ 
               
                 ⌊ 
                 
                   
                     
                       ( 
                       
                         n 
                         - 
                         1 
                       
                       ) 
                     
                      
                     
                        
                       
                         
                           M 
                           
                             j 
                             1 
                           
                         
                         ⋂ 
                         
                           M 
                           
                             j 
                             2 
                           
                         
                       
                        
                     
                   
                   
                     m 
                     ′ 
                   
                 
                 ⌋ 
               
               ≤ 
               
                 ⌊ 
                 
                   
                     7 
                     * 
                     2 
                   
                   20 
                 
                 ⌋ 
               
             
             = 
             
               
                 ⌊ 
                 0.7 
                 ⌋ 
               
               = 
               0. 
             
           
         
       
     
       Thus, we have M j     1   ∩M j     2   ∩M j     3   =φ. That is, any multicast connection request can be realized by the three middle stage switches j 1 , j 2  and j 3  chosen from m′=20 available middle stage switches. 
       [0052]    Since the bound calculated for m′ in the last section is based on real functions, the actual bound may be slightly smaller. In this specific case, it can be verified that m′=18 instead of m′=20 is the smallest m′ which guarantees that any new multicast connection request can be realized by at most x (=3) middle stage switches. The justification is given below. 
         [0053]    For the first chosen middle stage switch j 1 , 
         [0000]    
       
         
           
             
               
                 
                    
                   
                     M 
                     
                       j 
                       1 
                     
                   
                    
                 
                 ≤ 
                 
                   ⌊ 
                   
                     
                       
                         ( 
                         
                           n 
                           - 
                           1 
                         
                         ) 
                       
                        
                       r 
                     
                     
                       m 
                       ′ 
                     
                   
                   ⌋ 
                 
               
               = 
               
                 
                   ⌊ 
                   
                     
                       7 
                       * 
                       20 
                     
                     18 
                   
                   ⌋ 
                 
                 = 
                 
                   
                     ⌊ 
                     
                       7.777 
                        
                       
                           
                       
                        
                       … 
                     
                     ⌋ 
                   
                   = 
                   7 
                 
               
             
             ; 
           
         
       
     
         [0000]    for the second chosen middle stage switch j 2 , 
         [0000]    
       
         
           
             
               
                 
                    
                   
                     
                       M 
                       
                         j 
                         1 
                       
                     
                     ⋂ 
                     
                       M 
                       
                         j 
                         2 
                       
                     
                   
                    
                 
                 ≤ 
                 
                   ⌊ 
                   
                     
                       
                         ( 
                         
                           n 
                           - 
                           1 
                         
                         ) 
                       
                        
                       
                          
                         
                           M 
                           
                             j 
                             1 
                           
                         
                          
                       
                     
                     
                       m 
                       ′ 
                     
                   
                   ⌋ 
                 
                 ≤ 
                 
                   ⌊ 
                   
                     
                       7 
                       * 
                       7 
                     
                     18 
                   
                   ⌋ 
                 
               
               = 
               
                 
                   ⌊ 
                   
                     2.722 
                      
                     
                         
                     
                      
                     … 
                   
                   ⌋ 
                 
                 = 
                 2 
               
             
             ; 
           
         
       
     
         [0000]    and for the third chosen middle stage switch j 3 , 
         [0000]    
       
         
           
             
               
                  
                 
                   
                     M 
                     
                       j 
                       1 
                     
                   
                   ⋂ 
                   
                     M 
                     
                       j 
                       2 
                     
                   
                   ⋂ 
                   
                     M 
                     
                       j 
                       3 
                     
                   
                 
                  
               
               ≤ 
               
                 ⌊ 
                 
                   
                     
                       ( 
                       
                         n 
                         - 
                         1 
                       
                       ) 
                     
                      
                     
                        
                       
                         
                           M 
                           
                             j 
                             1 
                           
                         
                         ⋂ 
                         
                           M 
                           
                             j 
                             2 
                           
                         
                       
                        
                     
                   
                   
                     m 
                     ′ 
                   
                 
                 ⌋ 
               
               ≤ 
               
                 ⌊ 
                 
                   
                     7 
                     * 
                     2 
                   
                   18 
                 
                 ⌋ 
               
             
             = 
             
               
                 ⌊ 
                 
                   0.777 
                    
                   
                       
                   
                    
                   … 
                 
                 ⌋ 
               
               = 
               0. 
             
           
         
       
     
       Thus, x (=3) middle stage switches are sufficient to realize any multicast connection for m′=18. 
       [0054]    On the other hand, to see m′=18 is the smallest, we show that it is impossible to realize any multicast connection when m′=17. 
         [0055]    For the first chosen middle stage switch j 1 , 
         [0000]    
       
         
           
             
               
                 
                    
                   
                     M 
                     
                       j 
                       1 
                     
                   
                    
                 
                 ≤ 
                 
                   ⌊ 
                   
                     
                       
                         ( 
                         
                           n 
                           - 
                           1 
                         
                         ) 
                       
                        
                       r 
                     
                     
                       m 
                       ′ 
                     
                   
                   ⌋ 
                 
               
               = 
               
                 
                   ⌊ 
                   
                     
                       7 
                       * 
                       20 
                     
                     17 
                   
                   ⌋ 
                 
                 = 
                 
                   
                     ⌊ 
                     
                       8.235 
                        
                       
                           
                       
                        
                       … 
                     
                     ⌋ 
                   
                   = 
                   8 
                 
               
             
             ; 
           
         
       
     
         [0000]    for the second chosen middle stage switch j 2 , 
         [0000]    
       
         
           
             
               
                 
                    
                   
                     
                       M 
                       
                         j 
                         1 
                       
                     
                     ⋂ 
                     
                       M 
                       
                         j 
                         2 
                       
                     
                   
                    
                 
                 ≤ 
                 
                   ⌊ 
                   
                     
                       
                         ( 
                         
                           n 
                           - 
                           1 
                         
                         ) 
                       
                        
                       
                          
                         
                           M 
                           
                             j 
                             1 
                           
                         
                          
                       
                     
                     
                       m 
                       ′ 
                     
                   
                   ⌋ 
                 
                 ≤ 
                 
                   ⌊ 
                   
                     
                       7 
                       * 
                       8 
                     
                     17 
                   
                   ⌋ 
                 
               
               = 
               
                 
                   ⌊ 
                   
                     3.294 
                      
                     
                         
                     
                      
                     … 
                   
                   ⌋ 
                 
                 = 
                 3 
               
             
             ; 
           
         
       
     
         [0000]    and for the third chosen middle stage switch j 3 , 
         [0000]    
       
         
           
             
               
                 
                   
                      
                     
                       
                         M 
                         
                           j 
                            
                           
                               
                           
                            
                           1 
                         
                       
                       ⋂ 
                       
                         M 
                         
                           j 
                            
                           
                               
                           
                            
                           2 
                         
                       
                       ⋂ 
                       
                         M 
                         
                           j 
                            
                           
                               
                           
                            
                           3 
                         
                       
                     
                      
                   
                   ≤ 
                     
                    
                   
                     ⌊ 
                     
                       
                         
                           ( 
                           
                             n 
                             - 
                             1 
                           
                           ) 
                         
                          
                         
                            
                           
                             
                               M 
                               
                                 j 
                                  
                                 
                                     
                                 
                                  
                                 1 
                               
                             
                             ⋂ 
                             
                               M 
                               
                                 j 
                                  
                                 
                                     
                                 
                                  
                                 2 
                               
                             
                           
                            
                         
                       
                       
                         m 
                         ′ 
                       
                     
                     ⌋ 
                   
                 
               
             
             
               
                 
                   ≤ 
                     
                    
                   
                     ⌊ 
                     
                       
                         7 
                         * 
                         3 
                       
                       17 
                     
                     ⌋ 
                   
                 
               
             
             
               
                 
                   = 
                     
                    
                   
                     ⌊ 
                     
                       1.235 
                        
                       
                           
                       
                        
                       … 
                     
                     ⌋ 
                   
                 
               
             
             
               
                 
                   = 
                     
                    
                   1. 
                 
               
             
           
         
       
     
       We can see that we may have the case that M j     1   ∩M j     2   ∩M j     3   ≠φ; that is, x (=3) middle stage switches may not be sufficient to realize all possible multicast connections. 
       [0056]    Therefore, we have proved that m′=18 is the smallest. Thus, the configuration can be refined to 
         [0000]      n=8, r=20, N=160, k=5, x=3 and m=41 
         [0057]    Notice that the bounds on the minimum cardinalities of the intersected destination multisets in x (=3) steps for the minimum m′=18 are 
         [0000]      c 1 =7, c 2 =2 and c 3 =0 
       In general, let the bounds on the minimum cardinalities of the intersected destination multisets in x steps for the minimum m′ be 
       [0058]      c 1 , c 2 , . . . , c x .  (12) 
       It is worth pointing out that (12) will be used as system parameters in the routing algorithm later. 
       [0059]    A description is now made on the refining algorithm for the number of available middle stage switches. 
         [0060]      FIG. 3  presents the refining algorithm for an N 1 ×N 2  network. It takes inputs as the network parameters n 1 , r 1 , n 2 , r 2 , the chosen x, an initial m′ value (e.g. it can be chosen as 
         [0000]    
       
         
           
             
               
                 ( 
                 
                   
                     n 
                     2 
                   
                   - 
                   1 
                 
                 ) 
               
                
               
                 r 
                 2 
                 
                   1 
                   x 
                 
               
             
             ) 
           
         
       
     
         [0000]    and N′ that is the maximum number of elements distributed in middle stage switches (e.g. (n 2 −1)r 2 ) as shown in  FIG. 3 . The outputs of the algorithm are the refined m′ refine  and the system parameters in (12). 
         [0061]    Finally, the refined m is 
         [0000]    
       
         
           
             m 
             = 
             
               
                 ⌊ 
                 
                   
                     ( 
                     
                       
                         n 
                         1 
                       
                       - 
                       
                         1 
                         k 
                       
                     
                     ) 
                   
                    
                   x 
                 
                 ⌋ 
               
               + 
               
                 
                   m 
                   refine 
                   ′ 
                 
                 . 
               
             
           
         
       
     
         [0000]    according to Theorem 3. 
         [0062]    Notice that the refining approach is suitable for k-source three-stage multicast networks for any k≧1 that includes the ordinary multicast networks when k=1. 
         [0063]    In what follows, a high level description of a routing algorithm for adding and deleting a multicast connection is made. 
         [0064]    In the following, we present the routing algorithm for multi-source nonblocking multicast switching networks. Compared to the single-source multicast routing algorithm, the main challenges and differences are that we are considering adding and deleting a single multicast branch to/from an existing multicast tree, and we need to deal with the situation that two adjacent switch modules have multiple interstage links. 
         [0065]    Before we present the routing algorithm, we give some related terminologies. Notice that all entities described in the following are in terms of the logical layout of the switching network, not the physical layout. Therefore, we simply refer to a switch module as a switch. 
         [0066]    A channel (or a link) in a three-stage multi-source multicast switching network can be described as a 5-tuple 
         [0000]      &lt;Stage, InOut, Switch#, Port#, Channel#&gt;  (13) 
         [0000]    where Stage takes one of the values in set {IN, MID, OUT} representing which stage is referred to; InOut takes one of the values in set {IN, OUT} representing which side of the switch this channel is in; Switch# is the switch number in the stage; Port# is the port number in the switch; and Channel# is the channel number (between 0 and k−1) in the port. 
         [0067]    For simplicity, we may refer to an input channel of the network as 
         [0000]      &lt;Switch#, Port#, Channel#&gt;, 
         [0000]    which is in fact 
         [0000]      &lt;IN, IN, Switch#, Port#, Channel#&gt;; 
         [0000]    and similarly an output channel 
         [0000]      &lt;Switch#, Port#, Channel#&gt; 
         [0000]    actually means &lt;OUT, OUT, Switch#, Port#, Channel#&gt;. 
         [0068]    A multicast address is defined as a set of output channels 
         [0000]      {OutputChannel 1 , OutputChannel 2 , . . . , OutputChannel f };  (14) 
         [0000]    however, sometimes we may only be interested in the switches in the output stage, thus a multicast address can also be expressed in terms of output stage switch labels 
         [0000]      McastAddress ⊂ {0, 1, . . . , r 2 −1}  (15) 
         [0069]    A multicast connection request is defined as a pair of an input channel and a multicast address as 
         [0000]      &lt;InputChannel, MulticastAddress &gt;  (16) 
         [0070]    Multicast routing for a given multicast connection request is to build a multicast tree by setting up connections on some selected switches, which are consist of one input stage switch that the input channel is in, some selected middle stage switches, and all the output stage switches involved in the multicast address. 
         [0071]    The switch setting inside a switch is typically a one-to-many connection from a channel of an input port to a set of channels of different output ports in this switch. For some output stage switch, more than one channels may be in the same output port, as required by a particular multicast connection request. For a one-to-many connection in the switch, we call the input channel of the switch local input channel, and the set of output channels of the switch local multicast address. A one-to-many connection in a switch as part of the multicast tree is denoted as 
         [0000]      LocalInputChannel→LocalMulticastAddress  (17) 
       In addition, the fixed interstage connections in a multi-source Clos type multistage network enforce some channels between switches of the adjacent stages to be connected (or, equivalent.) In fact, we have 
       [0072]      &lt;IN, OUT, w 1 , p, channel#&gt;==&lt;MID, IN, p, w 1 , channel#&gt; 
         [0000]      &lt;MID, OUT, p, w 2 , channel#&gt;==&lt;OUT, IN, w, p, channel#&gt; 
         [0073]    where 0≦w 1 ≦r 1 −1, 0≦w 2 ≦r 2 −1, and 0≦p≦m−1 
         [0000]    Thus, the multicast connection request can be realized in the switching network by a multicast tree constructed by a set of one-to-many connections as shown in (17) in selected switches and the fixed interstage linkages as shown in (18). Clearly, among the selected middle stage switches, no two of them lead to the same output switch in the multicast tree. 
         [0074]    Notice that any connection in a multicast tree cannot share a channel with other multicast trees in any switch so that there is no conflict among different multicast trees. 
         [0075]    For convenience, the local multicast address of a one-to-many connection (17) in an input stage switch can also expressed as a set of middle stage switch labels 
         [0000]      InLocMcastAddr ⊂ {0, 1, . . . , m−1};  (18) 
         [0000]    and the local multicast address in a middle stage switch can also be expressed as a set of output stage switch labels as 
         [0000]      MidLocMcastAddr ⊂ {0, 1, . . . , r 2 −1}  (19) 
         [0076]    The destination multiset for a middle stage switch defined in the previous section 
         [0000]    
       
         
           
             
               
                 
                   
                     M 
                     j 
                   
                   = 
                   
                     { 
                     
                       
                         0 
                         
                           j 
                           0 
                         
                       
                       , 
                       
                         1 
                         
                           j 
                           1 
                         
                       
                       , 
                       … 
                        
                       
                           
                       
                       , 
                       
                         
                           ( 
                           
                             
                               r 
                               2 
                             
                             - 
                             1 
                           
                           ) 
                         
                         
                           j 
                           
                             
                               r 
                               2 
                             
                             - 
                             1 
                           
                         
                       
                     
                     } 
                   
                 
               
               
                 
                   ( 
                   20 
                   ) 
                 
               
             
           
         
       
     
         [0000]    is still useful in describing the routing algorithm. Also, for describing adding and deleting a connection in a middle stage switch, we define the operations of “+” and “−” of a multiset Mj and an ordinary set V based on set {0, 1, . . . , r−1} as 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       M 
                       j 
                     
                     ± 
                     V 
                   
                   = 
                   
                     { 
                     
                       
                         0 
                         
                           
                             j 
                             0 
                           
                           ± 
                           
                             v 
                             0 
                           
                         
                       
                       , 
                       
                         1 
                         
                           
                             j 
                             1 
                           
                           ± 
                           
                             v 
                             1 
                           
                         
                       
                       , 
                       … 
                        
                       
                           
                       
                       , 
                       
                         
                           ( 
                           
                             
                               r 
                               2 
                             
                             - 
                             1 
                           
                           ) 
                         
                         
                           
                             j 
                             
                               
                                 r 
                                 2 
                               
                               - 
                               1 
                             
                           
                           ± 
                           
                             v 
                             
                               
                                 r 
                                 2 
                               
                               - 
                               1 
                             
                           
                         
                       
                     
                     } 
                   
                 
               
               
                 
                   ( 
                   21 
                   ) 
                 
               
             
           
         
       
     
         [0077]    where v i =1 if iεV; v i =0 otherwise, for 0≦i≦r 2 −1. 
         [0078]    The resulting multiset of (21) becomes illegal if there is some multiplicity being &lt;0 or &gt;k, which is due to an illegal V being used. 
         [0079]    In the following, a description on a routing algorithm for adding and deletion of routes in a multi-source network is made. 
         [0080]    Recall that the nonblocking routing strategy for Clos type multicast networks is to allow each multicast tree to use at most x (a pre-determined value) middle stage switches. 
         [0081]    In general, there are two types of multicast connection requests, input-based multicast routing and output-based multicast routing. An input-based multicast connection request is to build a new multicast tree from an input link of the network. When requesting to delete the multicast connection, we drop the entire tree rooted at the input link. The routing algorithm in Yang-Masson can be used to serve this purpose. 
         [0082]    In output-based multicast routing, when requesting to add, we add a branch from an output link to the existing multicast tree; when requesting to delete, we remove a branch attached to an output link of the network from the multicast tree. 
         [0083]    Clearly, the deletion operation does not violate the nonblocking routing strategy since the number of middle stage switches for the multicast tree could not increase. Therefore, for the deletion operation in a multi-source network, we can simply delete the tree branch from the output channel towards the input side of the network until reaching a tree node that has another branch towards other output channels. 
         [0084]    In the rest of the disclosure, we focus on the add operation. As will be seen in the following routing algorithm sketch, since each time we only add one branch, we have a good chance not to violate the nonblocking routing strategy, and can make a simple connection in most cases. 
         [0085]      FIG. 4  shows a sketch of adding a new multicast branch (dashed line) to an existing multicast tree (solid lines) in different cases: (a) The new output channel is in one of the existing output stage switches on the tree; (b) The output stage switch that the new output channel is in is reachable from an idle channel in an output port of one of the existing middle stage switches; (c) The existing multicast tree has used less than predefined x middle stage switches; (d) The number of occupied middle stage switches already reaches x (non-trivial case). 
         [0086]    The routing algorithm can be outlined by handling the cases in the following order. 
         [0087]    Case 1: If the new output channel is in one of the existing output stage switches of the tree, then we simply make a connection in this output stage switch from the channel of the input port of the switch in the multicast tree to this output channel; then we are done (see the example in  FIG. 4(   a )); 
         [0088]    Case 2: If the output stage switch that the new output channel is in is reachable from an idle channel in an output port of one of the existing middle stage switches, then we make a connection in this middle stage switch so that the multicast tree is expanded to that idle channel; since the tree expands via an interstage link from this channel of the middle stage switch to the output stage switch, we finally make a connection in the output stage switch as in Case 1; then we are done (see the example in  FIG. 4  ( b )); 
         [0089]    Case 3: If the existing multicast tree has used less than x (a predefined value) middle stage switches, we can select an available middle stage switch that has an idle output port channel leading to (via an interstage link) this output stage switch (such a middle stage switch must exist since 
         [0000]    
       
         
           
             
               
                 
                   m 
                   ′ 
                 
                 = 
                 
                   
                     
                       ( 
                       
                         
                           n 
                           2 
                         
                         - 
                         1 
                       
                       ) 
                     
                      
                     
                       r 
                       2 
                       
                         1 
                         x 
                       
                     
                   
                   ≥ 
                   
                     n 
                     2 
                   
                 
               
               ) 
             
             , 
           
         
       
     
         [0000]    then we make a connection in the input stage switch to extend the tree to the chosen middle stage switch, and finally make a connection from the middle stage switch to the new output channel as in Case 2; then we are done (see the example in  FIG. 4  ( c )); 
         [0090]    Case 4: The number of occupied middle stage switches in the existing multicast tree has already reached x. This is a non-trivial case and will be discussed in the next subsection. 
         [0091]    In the following, a description on routing algorithm for the non-trivial case is made. 
         [0092]    As described above, in the worst case that the existing multicast tree has already used x middle stage switches, we do need to change the existing multicast tree so that we can ensure that at most x middle stage switches are used. Fortunately, we can make non-interruptive changes such that no conflicting data are sent and no packets are lost. 
         [0093]    In what follows a description on the properties of overlapped multi-source multicast trees is made 
         [0094]    Let&#39;s consider two multicast trees that have the same input channel as their root and at least partially overlapped multicast addresses. The second tree is independently determined as if the first tree were released, however, we assume that the two trees are co-existing in the network at this moment. Thus, besides the overlapped branches, the two trees may have conflicts at some channels. In particular, two types of channel merges (“conflicts”) are possible. When two channels (as two branches of the two trees) on the same input port of a switch merge to a channel of an output port of this switch, we call it a branch merge at channel level. When two channels (as two branches of the two trees) on two different input ports of a switch merge to a channel of an output port of this switch, we call it a branch merge at switch level. The following theorem describes all possible overlapping cases for these two independently determined multicast trees with the same root. 
         [0095]    Theorem 4: 
         [0000]    In a Clos type three stage multi-source multicast network satisfying the nonblocking condition in Theorem 2 or 3, for the two independently determined multicast trees from the same input channel to two overlapped multicast addresses, they do not overlap with multicast trees rooted at other input channels of the switch. On the other hand, the two trees may share some tree branches (i.e., the connections in a switch) in the input stage switch, middle stage switches, and/or output stage switches; the two trees may have a branch merge at channel level in middle stage switches and/or output stage switches, and may have a branch merge at switch level in output stage switches. 
         [0096]    The proof of Theorem 4 is as follows. Since each of the two multicast trees rooted at the same input channel is determined by at most x middle stage switches from 
         [0000]    
       
         
           
             
               m 
               ′ 
             
             = 
             
               m 
               - 
               
                 ⌊ 
                 
                   
                     ( 
                     
                       
                         n 
                         1 
                       
                       - 
                       
                         1 
                         k 
                       
                     
                     ) 
                   
                    
                   x 
                 
                 ⌋ 
               
             
           
         
       
     
         [0000]    available middle stage switches, by Theorem 2 or 3, each of them does not have any conflict with other (at most) n 1 k−1 multicast trees rooted at other different input channels of the switch. 
         [0097]    On the other hand, consider paths starting from the same input channel towards some common output channels of the network in the two trees. The two trees may share tree branches (i.e., the connections in a switch) in the input stage switch, middle stage switches, and/or output stage switches. In the connections of the input stage switch, since there is only one input channel for the two trees, it is impossible for two channels (as two branches of the two trees) of the input port to merge to a channel of an output port of this input stage switch. However, such a branch merge at channel level may occur at some middle stage switches and/or output stage switches shared by both multicast trees. Also, in the connections of a middle stage switch, since the tree branches of the two trees come from the same input stage switch, it is impossible for two channels of two different input ports of this middle stage switch (as two branches of the two trees) that come from two input stage switches merge to a channel of this middle stage switch. Such a branch merge at switch level is also impossible for the input stage switch. However, it is possible for some output stage switches. See  FIG. 5  for examples of various cases.  FIG. 5  is an illustration of two overlapped multicast trees for multicast connection request &lt;ic 1 , {oc 1 , oc 2 , oc 3 , oc 4 }&gt;: light solid lines are tree branches only for the first multicast tree, the dashed lines are only for the second multicast tree, and heavy solid lines are shared tree branches, e.g. those from ic 1  to oc 1 . Also, “A” and “B” are the points of the branch merge at channel level in the middle stage switch and the output stage switch, respectively; “C” is the point of the branch merge at switch level. Q.E.D. 
         [0098]    We now applying Theorem 4 to the case that given an existing multicast tree for multicast connection &lt;InChannel, McastAddr 1 &gt; in the network, add a new multicast connection branch with output channel oc new , to the multicast address so that the new multicast address becomes McastAddr 2 =McastAddr 1 ∪{oc new }. Clearly, according to the nonblocking condition in Theorem 2 or 3, the new multicast tree can be constructed by ignoring the existing multicast tree with the same input channel as the root. That is, the new multicast tree will never conflict with any other existing multicast trees with different roots. Clearly, the newly built tree may have some “conflicts” with the existing tree with the same root as detailed in Theorem 4. This type of “conflicts” essentially would not cause data loss or mixed up as the existing tree and the new multicast tree are sending the same data. 
         [0099]    In circuit switching, when given the circuit with merging capability, we can first add the new connection paths momentarily (by Theorem 2 or 3, m′ available middle stage switches can hold two x-sets of middle stage switches (may have some overlaps) for the two multicast trees) to provide non-interruptive data transmission, and then release the old multicast tree. Finally, the new multicast tree that realizes the new multicast connection request using at most x middle stage switches can guarantee the nonblocking condition for future multicast requests in the network. 
         [0100]    In packet switching as in this project, a proper setting for the routing table in each switch can do the similar job effectively, and we will elaborate it in more detail in the next section; 
         [0101]    Theoretically, the basic routing algorithm in Yang-Masson can be used here. However, for the operation of adding a multicast branch to an existing multicast tree, we prefer to keep original connections unchanged as much as possible. We now analyze all different cases described in Theorem 4 to see how we can meet this goal. Clearly, in the case of the two trees sharing some branches, we can keep the original setting of the existing tree for these branches. In the case of a branch merge at channel level, we still can use the original setting (as shown in the path from ic 1  to A and the path from ic 1  to B in  FIG. 5 ), because the original setting and the new setting lead to the same switch in the next stage. However, in the case of a branch merge at switch level, we have to exchange the branches between the existing tree and the new tree. 
         [0102]    The key step of multicast routing is to select up to x middle stage switches, which can be reached from the input channel and can connect to the output stage switches of the multicast address. In the following, we will develop a routing algorithm to generate a new multicast tree that utilizes branches from the existing multicast tree as much as possible, and keeps branch merges at switch level as few as possible. We first explore some useful properties to achieve these goals. 
         [0103]    For a given network, we have system parameters c 1 , c 2 , . . . , c x  as the bounds on the minimum cardinalities of the chosen intersected destination multisets for at most x selection steps, respectively. An example of such bounds is shown in (12). Based on the previous description on the design further fined for the nonblocking multi-source multicast network, in step i, any middle stage switch whose intersection with i−1 previously selected middle stage switches has a cardinality no more than c i  can be selected. Note that we do not need to select the middle stage switch with the minimum cardinality. This gives us more choices than the algorithm in Yang-Masson. In this case, among the candidates of such middle stage switches, we prefer to select a middle stage switch that is already in the existing multicast tree with the same root so that we can utilize the existing settings in the switch to achieve our first goal. 
         [0104]    Another benefit of selecting the middle stage switch shared with the existing tree is to reduce the branch merge at switch level, which is our second goal.  FIG. 6  is another example of two overlapped multicast trees for connection requests &lt;ic 1 , {oc 1 , oc 2 , . . . , oc 6 }&gt;, and &lt;ic 1 , {oc 1 , oc 2 , . . . , oc 6 , oc 7 }&gt;: light solid lines are only for the first multicast tree, the dashed lines are only for the second multicast tree, and heavy solid lines are share tree branches. That is, in  FIG. 6 , if we first choose middle stage switch MW 1 , the existing branch can cover both oc 1  and oc 2  in output stage switch OW 1 , then when we choose middle switch MW 3  later, it does not need to cover OW 1  again, and thus the branch merge at switch level at point “C” would not occur. 
         [0105]    On the other hand, let&#39;s examine the possible drawback of choosing such a middle stage switch. As can be seen in another example shown in  FIG. 6 , if we choose middle stage switch MW 2 , which has an existing connection with local multicast address LM 2 ={OW 3 , OW 4 }, the new connection yields the new local multicast address LM new,2 ={OW 2 , OW 3 , OW 4 }, and thus it would cause branch merges at switch level at oc 2  and oc 3  in output stage switch OW 2  later. Therefore, if we have multiple candidate middle stage switches that are in the existing multicast tree with the same root, the priority for the selection would be to select a middle stage switch that achieves 
         [0000]    
       
         
           
             
               
                 
                   
                     min 
                     q 
                   
                    
                   
                      
                     
                       
                         LM 
                         
                           new 
                           , 
                           q 
                         
                       
                       - 
                       
                         LM 
                         q 
                       
                     
                      
                   
                 
               
               
                 
                   ( 
                   22 
                   ) 
                 
               
             
           
         
       
     
         [0000]    so that we can reduce the number of branch merges at switch level. Of course, in the above example, since MW 2  is the only such middle switch, we have to choose it. 
         [0106]    We now describe more detail on the routing algorithm. The detailed routing algorithm, called BuildNewMcastTree, is described in  FIG. 7 . The algorithm constructs a new multicast tree based on an existing multicast tree at the same root. The input to the algorithm is the new multicast connection request with McastAddr new , in terms of a set of output stage switches, the set of available middle switches (including the middle stage switches of the existing multicast tree at the same root) for the new connection request, their destination multisets, the set of middle stage switches in the existing multicast tree, and the local multicast addresses of one-to-many connections in these middle stage switches in the existing multicast tree. The output of the algorithm is a set of selected middle stage switches for the new multicast tree, and the local multicast addresses of one-to-many connections in the selected middle stage switches in the new multicast tree. 
         [0107]    Since we assume that the routing algorithm is for the non-trivial case, which implies that the number of middle stage switches for the existing multicast tree with the same root is already x, set F exist  is thus denoted as {i 1 , i 2 , . . . , i x }. In the initialization, W q  is defined as multiset M q −LM q  (by using operation (21)) for qεF exist , or simply M q  for q∉F exist ; and V q  is defined as a set of output stage switches with no idle links from middle stage switch q. Thus, in the rest of the functions in the algorithm, only set operations (no multiset operations) are involved. 
         [0108]    In the main function of the algorithm, set MASK is initially assigned McastAddr new . It takes at most x iterations based on system parameters c 1 , c 2 , . . . , c x  given earlier. In each iteration, it calls select(c j , MASK) to choose a middle stage switch p for the new multicast tree (and stores p in F new ), then generates local multicast address LM new,p , a set of output stage switches, of the one-to-many connection in middle stage switch p in the new tree, and finally updates variables MASK, etc. 
         [0109]    In function select(c j , MASK), it first checks whether there is any middle stage switch q in the existing multicast tree such that |V p ∩MASK|≦c j . If there are multiple such switches, it returns the one with the minimum value as specified in (22). If no such a switch, it returns a middle stage switch p that satisfies |V p ∩MASK|≦c j . 
         [0110]    In what follows a description on the channel level implementation of the routing algorithm is made. 
         [0111]    The algorithm outlined in the previous description generates a set of switches in the new multicast tree, and one-to-many connections at port level for each switch. In this section, we discuss how to implement the routing algorithm at channel level, i.e. how to identify and keep the shared branches (at channel level) of the existing tree and the new tree; how to identify and drop the branches that only belong to the existing tree; how to identify and add a branch (and how to assign a channel) that only belongs to the new tree; and how to change connections (drop and add simultaneously) in a switch that is on both existing and new trees. The implementation of adding and deleting routing algorithm in this section is actually to update switch routing tables so that the connections of the existing tree are changed to those of the new tree. 
         [0112]    A routing table of a switch module, is a set of one-to-many connections in the form of (17). Since the switch information is known, a one-to-many connection can be expressed as 
         [0000]      &lt;ip 1 , ic 1 &gt;→{&lt;op 1 , oc 1 &gt;, &lt;op 2 , oc 2 &gt;, &lt;op f , oc f &gt;}  (23) 
         [0000]    where ip 1  and op i  stand for the input port and output port of the switch, respectively, and ic 1  and oc i  stand for the input channel and output channel of the port, respectively. It should be pointed out that for connections of the existing tree, the channels are known, however, for those of the new tree, the channels are to be determined except for the input channel, and the output channels of the network specified in the new multicast connection request. 
         [0113]    A description oh the identifying involved switches and the operations is made in what follows. 
         [0114]    Let SW exist  and SW new  are sets of switches of the existing tree and the new tree respectively. Clearly, for any switch in SW exist −SW new , we need to perform a deletion operation only; for any switch in SW new −SW exist , we need to perform an add operation only. However, for any switch in SW new ∩SW   exist , the operations need to be performed depend on the connections in this switch for the existing tree and the new tree. We call this type of operations mixed operations and will discuss them in more detail in the following description on mixed operations. 
         [0115]    For the switch that needs to perform a deletion operation only, it has one and only one one-to-many connection in the form of (23) for the existing tree. We can simply remove it from the routing table of this switch. An example of this case is MW 1  in  FIG. 6 . 
         [0116]    For the switch that needs to perform an add operation only, it actually is part of the new tree. Thus we know the one-to-many connection at port level, but we need to determine the corresponding channels, i.e. (23) can be written as 
         [0000]      &lt;ip 1 , ic 1 (?)&gt;→{&lt;op 1 , oc 1 (?)&gt;, &lt;op 2 , oc 2 (?)&gt;, . . . , &lt;op f , oc f (?)&gt;} 
         [0000]    where “(?)” means that the channel number is to be determined. Clearly, if the switch is in the output stage, channel oc i  is determined by the detailed multicast address of the new multicast connection request; otherwise, channel oc i  of the corresponding output port of the switch can be assigned any idle channel on this port (the idle channel must exist based on the algorithm in the last section). The remaining is to determine channel ic 1 . If this switch is in the input stage, ic 1  must be the input channel of the connection request. Otherwise, we can trace back on the new tree to the previous stage. In fact, by using (18), we can find the switch number and output port number of the previous stage, which are unique in the new multicast tree and the channel has been determined earlier. Thus, by using (18) again, we can let ic 1  be the channel in the previous stage. Examples of this case are MW 3  and OW 5  in  FIG. 6 . 
         [0117]    In what follows a description on mixed operations is made. 
         [0118]    The switch is on both the existing tree and the new tree. We need to find the difference of their one-to-many connections in this switch on the two trees. As indicated by Theorem 4, in general, the one-to-many connections of the existing tree and the new tree at port level share an input port of the switch, and thus we can let channel ic 1  of the new tree be the same as the existing tree (to avoid branch merges at channel level); only in an output stage switch, the two one-to-many connections may have different input ports on this switch. We have following different cases depending on the relationship between the new subtree and the existing subtree in the switch. Note that in the following descriptions for several cases concerning the new subtree and the existing subtrees, the one-to-many connections of the existing tree and the new tree share the same input port on the switch, while in the following description for the case in which new subtree and the existing subtree do not share an input port of the switch, the one-to-many connections use two different input ports on the switch. 
         [0119]    The case in which the new subtree equals to the existing subtree is described below. That is, in the case, the one-to-many connections of this switch for the existing tree and the new tree are the same (at port level for the switch in the input stage or middle stage, and at output channel level for the switch in the output stage). The one-to-many connections (at channel level) of this switch for the existing tree can be used by the new tree directly. Thus nothing needs to be done. Examples of this case are OW 3  and OW 4  in  FIG. 6 . 
         [0120]    The case in which the new subtree C the existing subtree is described below. That is, in this case, the one-to-many connections of the existing tree and the new tree at port level share an input port of the switch, but the local multicast address of the new tree is only a subset of the local multicast address of the existing tree. Therefore, we change the one-to-many connection (23) of the routing table for the existing tree by simply drop the unwanted local multicast address for the new tree. For example, if &lt;op 1 , oc 1 &gt;, &lt;op 2 , oc 2 &gt; are not in the new tree, the connection (23) is modified to 
         [0000]      &lt;ip 1 ,ic 1 &gt;→{&lt;op 3 ,oc 3 &gt;, . . . , &lt;op f ,oc f &gt;} 
         [0000]    in the routing table. 
         [0121]    The case in which the new subtree⊃existing subtree is described below. That is, in this case, the one-to-many connections of the existing tree and the new tree at port level share an input port of the switch, but the local multicast address of the new tree is a superset of the local multicast address of the existing tree. We simply add some local multicast address to (23). It is similar to the above description, but here we do not need to determine ic 1 , as it is already in use. An example of this case is MW 2  in  FIG. 6 . 
         [0122]    The other cases in which the new subtree # the existing subtree are described below. That is, in these cases again the one-to-many connections of the existing tree and the new tree at port level share an input port of the switch, but there are some &lt;op i , oc i (?)&gt; in the new tree that are not in the existing tree, and some &lt;op j , oc j &gt; in the existing tree that are not in the new tree. We can modify the local multicast address in (23) to that for the new tree. An example of this case is IW 1  in  FIG. 6 . We may also have the special case of no shared branch in this switch for the two trees. 
         [0123]    The description on the case in which the new Subtree and the existing subtree are not sharing an input port of the switch is made below. 
         [0124]    In this case, the one-to-many connections of the existing tree and the new tree use different input ports of the switch. It is a branch merge at switch level, and occurs only in the output stage switch as stated in Theorem 4. What we need to do in the routing table is to drop the one-to-many connection for the existing tree as in the above description, and simultaneously add the one-to-many connection for the new tree as in another above description. Examples of this case are OW 1  and OW 2  in  FIG. 6 .