[go: up one dir, main page]

WO2015027687A1 - Network switching scheduling method based on matrix decomposition - Google Patents

Network switching scheduling method based on matrix decomposition Download PDF

Info

Publication number
WO2015027687A1
WO2015027687A1 PCT/CN2014/072067 CN2014072067W WO2015027687A1 WO 2015027687 A1 WO2015027687 A1 WO 2015027687A1 CN 2014072067 W CN2014072067 W CN 2014072067W WO 2015027687 A1 WO2015027687 A1 WO 2015027687A1
Authority
WO
WIPO (PCT)
Prior art keywords
matrix
decomposition
order
algorithm
business
Prior art date
Application number
PCT/CN2014/072067
Other languages
French (fr)
Chinese (zh)
Inventor
许渤
张念
杨琦
邱昆
Original Assignee
电子科技大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 电子科技大学 filed Critical 电子科技大学
Publication of WO2015027687A1 publication Critical patent/WO2015027687A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Definitions

  • the present invention relates to the field of network switching scheduling technologies, and more particularly to a network switching scheduling method based on matrix decomposition.
  • a multi-stage switching structure can provide more switching interfaces to meet a large number of user accesses, provide higher bandwidth, and satisfy user service quality, and has become the first choice for a large-capacity switching structure.
  • the Multi-Plane and Multi-Stage (MPMS) structure which is a special case of a multi-level switch fabric, is an extension of the intermediate module of the multi-stage switch fabric to the switching plane.
  • FIG 1 is a schematic diagram of an MPMS exchange structure.
  • the plane can be a single-stage space switch structure or a multi-stage switch structure.
  • the exchange scheduling algorithm is divided into two different processing methods. If the arrival traffic is unknown, the schedule can be abstracted into a bipartite graph matching problem and solved using a bipartite graph matching algorithm. If the arrival traffic is known, a matrix decomposition algorithm can be used.
  • Definition 2 The business matrix ⁇ administrating the business matrix ⁇ honoring the number of services in which the input module number is connected to the output module number ', ⁇ represents the degree of the service matrix, ie the middle
  • the intermediate level module refers to the switching plane.
  • Connection matrix l ⁇ k ⁇ m, where each element [ ], 0 ⁇ /, 7 ⁇ Nl, represents whether the input module has a service connected to the output module through the intermediate module, and its element value is 1 Connection, an element value of 0 means no connection.
  • the subscript 1 indicates the degree of the connection matrix, that is, there is at most one service for each input module to each output module in each intermediate level module.
  • the basic idea of the matrix decomposition algorithm is to perform a unified routing assignment for the service in the case of coordinating the global service arrival. Firstly, according to the global business situation that arrives, a business matrix is obtained.
  • Non-blocking switching structures are: Single-stage Crossbar (cross-switching matrix), multi-level MPMS, Banyan ( ⁇ ), Bense, Clos, etc., all of which can be distributed by matrix decomposition algorithm.
  • the first trick of MPMS routing scheduling is to evenly deliver the services arriving at the input end to each plane.
  • the matrix decomposition algorithm decomposes the service matrix to obtain each sub-matrix, and each sub-matrix can be used as the basis for setting the routing of each plane in the MPMS.
  • the ring algorithm can process two sub-matrices at a time, that is, the ring algorithm is applicable to the business matrix with degree 2. Its specific implementation steps include:
  • Step 1 Initialize the elements of the service matrix [, '], Q ⁇ i, j ⁇ N_ ⁇ according to the arrival of the traffic. Initialize all connection matrices, l ⁇ k ⁇ 2, and mark each element value [ ] in the connection matrix as 0.
  • Step 2 In the business matrix ⁇ 2 , the elements are traversed row by row from the element ⁇ 2 [0, 0].
  • the ring algorithm selects a starting point in step 2, then loops the jump execution between steps 3 and 4, and finally ends with returning to the starting point.
  • the ring algorithm handles slightly different depending on whether the service arrives full or not. In the case of the full service, the sum of the elements of each row and column of the service matrix ⁇ 2 is equal to the constant 2, then the whole process of the ring algorithm starts with the starting point of the ring and ends with the starting point of the ring, from step 4 Go to step 2 and start looking for the starting point of the next ring start, until the non-zero element is found in step 2 to end the ring algorithm.
  • the sum of the elements of each row and column of the service matrix ⁇ 2 is less than or equal to the constant 2, and can also be processed by the ring algorithm.
  • the processing of a loop needs to be from the starting column (or row).
  • the opposite direction begins to traverse the loop until it returns to step 2 again to begin looking for the starting point of the next loop start, until the non-zero element is not found in step 2 to end the ring algorithm.
  • the following takes the full service matrix ⁇ 2 as an example to implement the ring algorithm.
  • FIG. 2 is a schematic diagram of the processing of the service matrix H 2 by the ring algorithm.
  • the ring algorithm processes the service matrix in FIG. 2, and the labels "1, 2" respectively represent the two connection matrices.
  • step 2 to find a non-zero value of 1 as the starting point of the start of the ring Start, the arrow pointing to represent the processing order, and finally returning to the starting point, a loop traversing End, and then performing step 2 to find the starting point of the next ring.
  • the service matrix ⁇ 2 here is a full-fit matrix, it is completed in one loop traversal. After that, the non-zero elements in the matrix have been processed, so the starting point of the next ring is not found, and the ring algorithm decomposition ends.
  • the MPMS and the multi-slot switching structure supporting multiple slots are non-blocking switching structures, which can be routed by a matrix decomposition algorithm.
  • the statistics of the service matrix are equal to the number of planes and the number of slots.
  • the ring algorithm is subject to the degree of the business matrix of 2.
  • a matrix decomposition strategy with a degree of business matrix greater than 2 has been studied.
  • most of the matrix decomposition strategies obtained in the later research need to be backtracked or rearranged, and the algorithm is out of the ring algorithm, and the algorithm implementation complexity is too high and not implementable. Summary of the invention
  • the object of the present invention is to overcome the deficiencies of the prior art and provide a low-complexity matrix-based network switching scheduling method.
  • the present invention is based on a matrix decomposition network switching scheduling method, which is characterized by:
  • the number of input modules and output modules in the network is N.
  • the expansion algorithm in step S2 includes:
  • step S2.2 traversing each element of the business matrix ⁇ j 'by row by row row by column ⁇ J '], if ⁇ ⁇ ', '] is zero value, go to step S2.6, if diary[ ⁇ is non-zero, Go to step S2.3;
  • step S2.5 Determine whether D', '] is 0, if not 0, repeat step S2.3; if it is 0, proceed to step S2.6;
  • the specific method of the compression algorithm in step S4 is: dividing the decomposition matrix M into two rows and two columns to obtain a block matrix of the second order, and replacing each sub-matrix in the block matrix with the sub-matrix The sum of all the elements yields a ⁇ 2 order compression matrix M ".
  • the expansion matrix of order P Nx /2, the P-order extended matrix is decomposed by a ring algorithm to obtain a P-order decomposition matrix of degree 1, and the P-order decomposition matrix is compressed into a P/ 2 order compression matrix of degree 2, again
  • the ring algorithm is used to decompose the P/ 2 order decomposition matrix with degree 1.
  • the decomposition matrix obtained at this time is the connection matrix required for network switching scheduling.
  • the ring algorithm performs matrix decomposition to achieve low complexity network switching scheduling.
  • FIG. 1 is a schematic diagram of an MPMS switching structure
  • FIG 2 is an annular processing algorithm schematic traffic matrix ⁇ 2;
  • FIG. 3 is a flow chart of a specific implementation manner of a network switching scheduling method based on matrix decomposition according to the present invention
  • FIG. 3 is a flow chart of a specific implementation manner of a network switching scheduling method based on matrix decomposition according to the present invention. As shown in FIG. 3, the specific implementation steps of the present invention include:
  • N The number of input modules and output modules in the network is N.
  • M 2 , P Nxm/2, 2 [ , 3], 0 ⁇ , 3 ⁇ corpse _1 is an element in the extension matrix 2 .
  • FIG. 4 is a flow chart of a specific implementation manner of a service matrix expansion algorithm. As shown in Figure 4, the business matrix expansion algorithm includes the following steps:
  • S402 It is judged whether the element D', '] is a zero value. If ⁇ [] is a zero value, the process proceeds to step S410. If ⁇ ', '] is a non-zero value, the process proceeds to step S403.
  • step S404 It is judged whether the counter is equal to 2, if not, no operation is performed, and the process directly proceeds to step S408; if yes, the process proceeds to step S405.
  • step S406 It is judged whether the counter is equal to 2, if not, no operation is performed, and the process directly proceeds to step S408; if yes, the process proceeds to step S407.
  • step S409 It is judged whether ⁇ ', '] is 0, if it is not 0, it returns to step S403, and if it is 0, it proceeds to step S410.
  • step S411 If yes, it indicates that the element of the line has been traversed, and the process proceeds to step S412.
  • the service matrix of degree ⁇ can be expanded to the extension matrix M 2 of degree 2 .
  • the specific method of the compression algorithm is as follows: The decomposition matrix M is divided into two rows and two columns to obtain a block matrix of P/ 2 order, and each sub-matrix in the block matrix is replaced with the sum of all elements in the sub-matrix, P/ 2nd order compression matrix M ". S305: Using the ring algorithm again, each of the compression matrices in the compression matrix M" is decomposed into the f matrix to obtain two decomposition matrices.
  • An input arrow indicates that a line is abstracted into two lines, and the output arrow also indicates that a column is abstracted into two columns.
  • the two compression matrices ⁇ ' 1 and M 2 8 ' 2 obtained by compression have a degree of 2, which is suitable for the ring algorithm.
  • the two compression matrices ⁇ 2 8 ⁇ , M 2 8 ' 2 are respectively decomposed by the circular algorithm to obtain 4 decomposition matrices 83 8, 4
  • the order of the business matrix is ooooooo ooooooo number ll, the matrix decomposition ends, ooooooo oooooooll
  • Connection matrix for network switching scheduling Ooooooo oooooooll
  • connection matrix can be successfully obtained by the present invention.
  • the order of the service matrix is 4, and the order of the decomposition matrix obtained at this time is 8, it is necessary to reprocess the four decomposition matrices.
  • the 4th-order decomposition matrix with 4 degrees is 1 is compressed into 4 4th-order compression matrices M with degree 2, and then the four compression matrices are decomposed by a ring algorithm to obtain 8 degrees of 4 degrees. Decompose the matrix to complete the matrix decomposition.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed is a network switching scheduling method based on matrix decomposition. The method comprises: in a case in which a service flow is known, expanding a service matrix with the degree of m equal to 2 r (r is a positive integer greater than 1) and the order of N to an expansion matrix with the degree of 2 and the order of P equal to Nxm/2 by using an expansion algorithm; decomposing the P-order expansion matrix to obtain a P-order decomposition matrix with the degree of 1 by using a circular algorithm; compressing the P-order decomposition matrix to a P/2-roder compression matrix with the degree of 2; then, decomposing the P/2-roder compression matrix to obtain a P/2-order decomposition matrix with the degree of 1 by using the circular algorithm; repeatedly compressing and re-decomposing the decomposition matrix until P/2 is equal to N, that is, the order of the decomposition matrix is equal to that of the service matrix, and when the matrix decomposition is finished, the obtained decomposition matrix is a connecting matrix required by network switching scheduling. The present invention is applicable to a non-blocking switching network. When a service matrix with m equal to 2 r (r is a positive integer greater than 1) is decomposed, matrix decomposition can be performed by using the simple and feasible circular algorithm, so that the network switching scheduling with low complexity is implemented.

Description

一种基于矩阵分解的网络交换调度方法 技术领域 本发明属于网络交换调度技术领域, 更为具体地讲, 涉及一种基于矩阵分 解的网络交换调度方法。 背景技术 多级交换结构能提供更多的交换接口满足大量用户接入, 提供更高的带宽 满足用户服务质量, 已成为了大容量交换结构的首选。 多级多平面(Multi-Plane and Multi-Stage, MPMS) 结构, 属于多级交换结构的特例, 是对多级交换结构 的中间模块扩展为交换平面而来。 图 1是 MPMS交换结构示意图。 平面内部可 以是单级空分交换结构, 也可以是多级交换结构。 根据到达流量是否已知, 交 换调度算法分为两种不同的处理方式。 若到达流量未知, 可以将调度抽象为二 分图匹配问题并使用二分图匹配算法来解决。 若到达流量已知, 可以使用矩阵 分解算法。  TECHNICAL FIELD The present invention relates to the field of network switching scheduling technologies, and more particularly to a network switching scheduling method based on matrix decomposition. BACKGROUND OF THE INVENTION A multi-stage switching structure can provide more switching interfaces to meet a large number of user accesses, provide higher bandwidth, and satisfy user service quality, and has become the first choice for a large-capacity switching structure. The Multi-Plane and Multi-Stage (MPMS) structure, which is a special case of a multi-level switch fabric, is an extension of the intermediate module of the multi-stage switch fabric to the switching plane. Figure 1 is a schematic diagram of an MPMS exchange structure. The plane can be a single-stage space switch structure or a multi-stage switch structure. According to whether the arrival traffic is known, the exchange scheduling algorithm is divided into two different processing methods. If the arrival traffic is unknown, the schedule can be abstracted into a bipartite graph matching problem and solved using a bipartite graph matching algorithm. If the arrival traffic is known, a matrix decomposition algorithm can be used.
为了更好的说明矩阵分解算法, 首先定义几个名词概念。  To better illustrate the matrix decomposition algorithm, first define several noun concepts.
定义 矩阵的度: 矩阵中每行元素之和与每列元素之和的最大值 ^是矩阵 的度。假设有 的矩阵 ^φ', ,
Figure imgf000003_0001
矩阵 tn'x[ , 的 度即为 max
Defining the degree of the matrix: The sum of the sum of the elements of each row in the matrix and the sum of the elements of each column ^ is the degree of the matrix. Suppose there is a matrix ^φ', ,
Figure imgf000003_0001
The degree of the matrix tn'x[ , is max
Figure imgf000003_0002
Figure imgf000003_0002
定义 2: 业务矩阵^„, 其中每个元素 ^^', '], 0≤/,7<N-l, 表示输入模块 序号 连接到输出模块序号 '的业务数, ^表示业务矩阵的度, 即中间级模块个 数,代表多级交换结构中最大可支持的业务数量; N表示输入 /输出模块的个数。 可见, 业务矩阵中的元素 ^J^ ]的值仅能从 0,1,2...... m-l, 中选一个。 对于 Definition 2: The business matrix ^„, where each element ^^', '], 0≤/,7<Nl, represents the number of services in which the input module number is connected to the output module number ', ^ represents the degree of the service matrix, ie the middle The number of modules, representing the maximum number of services that can be supported in a multi-level switch fabric; N is the number of input/output modules. It can be seen that the value of the element ^J^ ] in the service matrix can only be from 0, 1, 2. ..... ml, choose one. For
MPMS而言, 中间级模块指的是交换平面。 For MPMS, the intermediate level module refers to the switching plane.
定义 3: 连接矩阵 , l≤k≤m, 其中每个元素 [ ], 0≤/,7<N-l, 代 表输入模块 是否有业务经过中间级模块 连接到输出模块 ', 其元素值为 1 代 表有连接, 元素值为 0代表无连接。 其中下标 1表示连接矩阵的度, 即每个中 间级模块 中每个输入模块到每个输出模块最多只存在一个业务。 矩阵分解算法的基本思想是在统筹全局业务到达情况下, 对业务进行的一次 统一路由分配。 首先根据到达的全局业务情况, 统计得出一个业务矩阵^„。 矩 阵分解算法的目标是对全局业务一次统一路由分配, 即把业务矩阵^„分解成为 个子矩阵 A, Hm = + +... + r。 由 Hall定理可得知, 在无阻塞交换结构 中, 矩阵分解算法一定能分解出所有的子矩阵。 属于无阻塞交换结构有: 单级 Crossbar (交叉开关矩阵), 多级 MPMS、 Banyan (榕树网络)、 Bense、 Clos等, 均可采用矩阵分解算法进行路由分配。 以 MPMS为例, 如图 1所示, MPMS路 由调度的第一歩就是把输入端到达的业务均匀下发到各个平面。 矩阵分解算法 对业务矩阵分解得到各个子矩阵, 其中每个子矩阵就可以作为 MPMS中每个平 面的路由设置依据。 Definition 3: Connection matrix, l ≤ k ≤ m, where each element [ ], 0 ≤ /, 7 < Nl, represents whether the input module has a service connected to the output module through the intermediate module, and its element value is 1 Connection, an element value of 0 means no connection. The subscript 1 indicates the degree of the connection matrix, that is, there is at most one service for each input module to each output module in each intermediate level module. The basic idea of the matrix decomposition algorithm is to perform a unified routing assignment for the service in the case of coordinating the global service arrival. Firstly, according to the global business situation that arrives, a business matrix is obtained. The goal of the matrix decomposition algorithm is to allocate a unified route to the global service once, that is, to decompose the business matrix into a sub-matrix A, H m = + + .. . + r. It can be known from Hall's theorem that in a non-blocking switching structure, the matrix decomposition algorithm must be able to decompose all sub-matrices. Non-blocking switching structures are: Single-stage Crossbar (cross-switching matrix), multi-level MPMS, Banyan (榕树网络), Bense, Clos, etc., all of which can be distributed by matrix decomposition algorithm. Taking MPMS as an example, as shown in Figure 1, the first trick of MPMS routing scheduling is to evenly deliver the services arriving at the input end to each plane. The matrix decomposition algorithm decomposes the service matrix to obtain each sub-matrix, and each sub-matrix can be used as the basis for setting the routing of each plane in the MPMS.
现有矩阵分解算法中, 以环形算法为代表, 不需重排调整或回溯就能实现 对业务矩阵分解出所有子矩阵, 其时间复杂度随着端口数的增加线性增加。 在 文献 [S.Andresen, "The looping algorithm extended to base 2t rearrangeable switching networks," IEEE Trans. Commun. vol. COM-25, pp. 1057-1063, Oct. 1977]中 Andresen首次在可重排无阻塞结构中采用环形算法,基本歩骤是先在业 务矩阵中寻找一个未标记元素并标记为 0;其次在同列寻找最后一个未标记元素 并标记为 1; 紧接着在同行寻找最后一个未标记元素并标记为 0, 若此时未找到 最后一个未标记元素则重新选择其他行的未标记元素。 环形算法一次处理业务 矩阵能得到两个子矩阵, 即环形算法适用于度为 2 的业务矩阵。 其具体实现歩 骤包括:  In the existing matrix decomposition algorithm, represented by a ring algorithm, all sub-matrices can be decomposed into the service matrix without rearrangement adjustment or backtracking, and the time complexity increases linearly with the increase of the number of ports. In the literature [S. Andresen, "The looping algorithm extended to base 2t rearrangeable switching networks," IEEE Trans. Commun. vol. COM-25, pp. 1057-1063, Oct. 1977] Andresen is the first in the re-arrangement without blocking The loop algorithm is used in the structure. The basic step is to find an unmarked element in the service matrix and mark it as 0. Secondly, find the last unmarked element in the same column and mark it as 1; then find the last unmarked element in the peer. Marked as 0, if the last unmarked element is not found at this time, reselect the unmarked elements of the other rows. The ring algorithm can process two sub-matrices at a time, that is, the ring algorithm is applicable to the business matrix with degree 2. Its specific implementation steps include:
歩骤 1、 根据业务流量到达情况, 初始化业务矩阵各个元素 [, '], Q≤i,j≤N_\。 初始化所有连接矩阵 , l≤k≤2, 标记连接矩阵中每个元素值 [ ]为0。  Step 1. Initialize the elements of the service matrix [, '], Q ≤ i, j ≤ N_\ according to the arrival of the traffic. Initialize all connection matrices, l ≤ k ≤ 2, and mark each element value [ ] in the connection matrix as 0.
歩骤 2、 在业务矩阵 ^2中从元素 ^2[0,0]开始逐行逐列遍历各个元素。 Step 2: In the business matrix ^ 2 , the elements are traversed row by row from the element ^ 2 [0, 0].
2.1) 若寻找所有行未找到非零元素, 则环形算法结束。  2.1) If no rows are found for all non-zero elements, the ring algorithm ends.
2.2) 若寻找到元素 ^^', ']为非零值 2, 则更新连接矩阵和业务矩阵相应元 素 [ ] = 1, E [i,j] = \, H2[ ] = 0后, 重新执行歩骤 2。 2.2) If the element ^^', '] is found to be non-zero value 2, then update the connection matrix and the corresponding element of the business matrix [ ] = 1, E [i,j] = \, H 2 [ ] = 0, then Execute step 2.
2.3) 若寻找到元素 ^^', ']为非零值 1, 则更新连接矩阵和业务矩阵相应元 素 [ ] = 1, [ ] = 0后, 继续执行歩骤 3。 歩骤 3、 在行 中寻找非零元素值 1, 若找到元素 ^ ',/]为非零值 1, 则更新 连接矩阵和业务矩阵相应元素 = 1, H2 [i,l] = 0 , 继续执行歩骤 4 ; 反之则 回到歩骤 2。 2.3) If the element ^^', '] is found to be a non-zero value of 1, then update the connection matrix and the corresponding element of the business matrix [ ] = 1, [ ] = 0, continue to perform step 3. Step 3. Find the non-zero element value 1 in the row. If the element ^ ', /] is found to be a non-zero value 1, update the connection matrix and the corresponding element of the service matrix = 1, H 2 [i,l] = 0 , Continue to step 4; otherwise, return to step 2.
歩骤 4、在列 /中寻找非零元素值 1, 若找到元素 ^2 [r,/]为非零值 1, 则更新 连接矩阵和业务矩阵相应元素 [^,/] = 1, H2 [r,l] = 0 , i = r , 返回歩骤 3 ; 反之 则返回歩骤 2。 Step 4: Find the non-zero element value 1 in the column/, and if the element ^ 2 [r, /] is found to be a non-zero value 1, update the connection matrix and the corresponding element of the service matrix [^, /] = 1, H 2 [r,l] = 0 , i = r , return to step 3; otherwise, return to step 2.
可见, 环形算法在歩骤 2中选取一个起点, 接着在歩骤 3和 4之间循环跳 转执行, 最终以回到起点结束。 环形算法处理业务矩阵 ^2得到两个子矩阵 、 El , H2 = + 。 根据业务到达是否满配, 环形算法处理略有不同。 在到达业 务满配情况下, 业务矩阵 ^2每行和每列的元素之和都等于常数 2, 那么环形算 法整个处理过程以环的起点开始, 并以环的起点结束, 从歩骤 4回到歩骤 2开 始寻找下一个环开始的起点, 直到歩骤 2 中未找到非零元素才结束环形算法。 在到达业务非满配情况下, 业务矩阵 ^2每行每列的元素之和小于或等于常数 2, 同样可以采用环形算法处理。在环遍历矩阵中, 若出现从歩骤 3或 4回到歩骤 2 时的列(或行)并不是起始列(或行), 那么一个环的处理还需从起始列(或行) 的反方向开始遍历环, 直到再次回到歩骤 2才开始寻找下一个环开始的起点, 直到歩骤 2中未找到非零元素才结束环形算法。 下面以满配业务矩阵 ^2为例, 对环形算法的实现歩骤进行 。 It can be seen that the ring algorithm selects a starting point in step 2, then loops the jump execution between steps 3 and 4, and finally ends with returning to the starting point. The ring algorithm processes the business matrix ^ 2 to get two sub-matrices, El, H 2 = + . The ring algorithm handles slightly different depending on whether the service arrives full or not. In the case of the full service, the sum of the elements of each row and column of the service matrix ^ 2 is equal to the constant 2, then the whole process of the ring algorithm starts with the starting point of the ring and ends with the starting point of the ring, from step 4 Go to step 2 and start looking for the starting point of the next ring start, until the non-zero element is found in step 2 to end the ring algorithm. In the case of the non-full-fit service, the sum of the elements of each row and column of the service matrix ^ 2 is less than or equal to the constant 2, and can also be processed by the ring algorithm. In the loop traversal matrix, if the column (or row) from step 3 or 4 back to step 2 is not the starting column (or row), then the processing of a loop needs to be from the starting column (or row). The opposite direction begins to traverse the loop until it returns to step 2 again to begin looking for the starting point of the next loop start, until the non-zero element is not found in step 2 to end the ring algorithm. The following takes the full service matrix ^ 2 as an example to implement the ring algorithm.
Figure imgf000005_0001
Figure imgf000005_0001
图 2是环形算法对业务矩阵 H2的处理示意图。 如图 2所示, 环形算法处理 图 2中业务矩阵, 标号 "①、 ②"分别代表分配给两个连接矩阵 、 。 首先, 执行歩骤 2寻找到一个非零值 1作为环开始的起点 Start, 箭头指向代表了处理 顺序,最终回到起始点一个环遍历结束 End,再执行歩骤 2寻找下一个环的起点。 从图 2可看出, 由于此处的业务矩阵 ^2为满配矩阵, 因此在一个环遍历完成之 后, 已经把矩阵中的非零元素处理完, 所以就寻找不到下一个环的起点, 环形 算法分解结束。 2 is a schematic diagram of the processing of the service matrix H 2 by the ring algorithm. As shown in FIG. 2, the ring algorithm processes the service matrix in FIG. 2, and the labels "1, 2" respectively represent the two connection matrices. First, perform step 2 to find a non-zero value of 1 as the starting point of the start of the ring Start, the arrow pointing to represent the processing order, and finally returning to the starting point, a loop traversing End, and then performing step 2 to find the starting point of the next ring. As can be seen from Figure 2, since the service matrix ^ 2 here is a full-fit matrix, it is completed in one loop traversal. After that, the non-zero elements in the matrix have been processed, so the starting point of the next ring is not found, and the ring algorithm decomposition ends.
在大容量交换结构中, 比如 MPMS、 支持多时隙的多级交换结构属于无阻 塞交换结构, 可以采用矩阵分解算法路由, 统计出来的业务矩阵的度分别与平 面数、 时隙数相等。 然而, 环形算法受制于业务矩阵的度为 2, 为了克服这种限 制, 寻找业务矩阵的度大于 2 的矩阵分解策略, 人们做了大量的研宄。 然而, 后期研宄得到的大多矩阵分解策略需要回溯或者重排调整, 脱离了环形算法, 而且算法实现复杂度过高, 不具有实现性。 发明内容  In the large-capacity switching structure, for example, the MPMS and the multi-slot switching structure supporting multiple slots are non-blocking switching structures, which can be routed by a matrix decomposition algorithm. The statistics of the service matrix are equal to the number of planes and the number of slots. However, the ring algorithm is subject to the degree of the business matrix of 2. To overcome this limitation, a matrix decomposition strategy with a degree of business matrix greater than 2 has been studied. However, most of the matrix decomposition strategies obtained in the later research need to be backtracked or rearranged, and the algorithm is out of the ring algorithm, and the algorithm implementation complexity is too high and not implementable. Summary of the invention
本发明的目的在于克服现有技术的不足, 提供一种低复杂度的基于矩阵分 解的网络交换调度方法, 对于无阻塞交换网络中满足度 = 2 , 为大于 1的正 整数的业务矩阵, 通过矩阵分解得到连接矩阵, 实现网络交换调度。  The object of the present invention is to overcome the deficiencies of the prior art and provide a low-complexity matrix-based network switching scheduling method. For a service matrix with a satisfaction degree = 2 and a positive integer greater than 1, in a non-blocking switching network, The matrix is decomposed to obtain the connection matrix, which realizes network exchange scheduling.
为实现上述发明目的, 本发明基于矩阵分解的网络交换调度方法, 其特征 在于包括:  To achieve the above object, the present invention is based on a matrix decomposition network switching scheduling method, which is characterized by:
S1: 网络中输入模块和输出模块的个数均为 N, 根据业务流量到达情况, 统计得到 N阶业务矩阵 ^™,其中, ^表示业务矩阵 的度并满足 2的幂指数即 m = T, 为大于 1的正整数; 业务矩阵 ^m的每个元素^ ^', ']表示输入模块 连 接到输出模块 '的业务数, 的取值范围为 0≤i≤N-l,0≤ '≤N_l; S1: The number of input modules and output modules in the network is N. According to the arrival of traffic flow, the N-th order service matrix ^TM is obtained, where ^ represents the degree of the service matrix and satisfies the power exponent of 2, ie m = T, Is a positive integer greater than 1; each element of the service matrix ^ m ^ ^ ', '] represents the number of services connected to the output module of the input module, the value range is 0 ≤ i ≤ Nl, 0 ≤ ' ≤ N_l ;
S2:采用扩展算法对业务矩阵 Hm进行扩展,得到度为 2的 P阶扩展矩阵 M2, 其中, P = Nxmll Μ2[χ, ]表示扩展矩阵 M2中的元素, 的取值范围为 0< ≤ -l,0<7< -l; S2: expanding the service matrix H m by using an extension algorithm to obtain a P-order extension matrix M 2 of degree 2 , where P = Nxmll Μ 2 [χ, ] represents an element in the extension matrix M 2 , and the value range is 0< ≤ -l,0<7<-l;
S3: 采用环形算法对扩展矩阵 2进行矩阵分解, 分解得到两个 Ρ阶分解矩 阵 M '2, 此时分解矩阵个数 = 2; S3: using the ring algorithm to perform matrix decomposition on the extended matrix 2 , and decomposing to obtain two first-order decomposition matrices M ' 2 , and the number of decomposition matrices = 2;
S4: 采用压缩算法分别对 个 P阶分解矩阵 Mf = 1,2,… 进行压缩, 得 到 个度为 2的 P/2阶压缩矩阵 " ; S4: Compressing a P-order decomposition matrix Mf = 1, 2, ... by a compression algorithm to obtain a P/ 2 order compression matrix of degree 2";
S5: 再次采用环形算法对 个压缩矩阵 M "中的每个压缩矩阵分别进行矩 阵分解, 得到 2K个分解矩阵 M('2'kS5: Using the ring algorithm again, matrix decomposition is performed on each compression matrix in each compression matrix M" to obtain 2K decomposition matrices M(' 2 'k;
S6: 判断分解矩阵 Mf/"的阶数 P/2是否等于业务矩阵阶数 N, 如果等于, 矩阵分解结束, 得到网络交换调度的连接矩阵 :^ ' 如果不等于, 令 P = P/2, K = 2K , 返回歩骤 S4。 S6: judging whether the order P/ 2 of the decomposition matrix Mf/" is equal to the order N of the service matrix, if equal, the matrix decomposition ends, and the connection matrix of the network exchange scheduling is obtained: ^ ' If not equal, order P = P/2, K = 2K, returning to step S4.
其中, 歩骤 S2中扩展算法包括:  The expansion algorithm in step S2 includes:
S2.1: 业务矩阵^„的每行、 每列对应一个标志数 ·、 Lj, 初始化所有标志 数为 0; 扩展矩阵 2的每行、 每列对应一个计数器 c 、 Cy L , 初始化所有计数 器为 0; 初始化扩展矩阵 M2中每个元素 M2[x, ] = 0; S2.1: traffic matrix ^ "in each row, each column corresponds to a number of all flags the number of flags ·, Lj, is initialized to 0; 2 spreading matrix each row, each column corresponds to a counter c, C y L, initializes all counters 0; initialize each element M 2 [x, ] = 0 in the extended matrix M 2 ;
S2.2:逐行逐列遍历业务矩阵^„中的每个元素 ^J '],如果^ ^', ']为零值, 进入歩骤 S2.6, 如果 „[ Ί为非零值, 进入歩骤 S2.3;  S2.2: traversing each element of the business matrix ^j 'by row by row row by column ^J '], if ^ ^ ', '] is zero value, go to step S2.6, if „[ Ί is non-zero, Go to step S2.3;
S2.3: 令 ix^ + R^j^ + Lj, 判断计数器 是否等于 2, 如果不是, S2.3: Let ix^ + R^j^ + Lj, judge whether the counter is equal to 2, if not,
2 2 不作任何操作, 如果是, 标志数 A = +1并更新 X; 同时判断计数器 是否等 于 2, 如果不是, 不作任何操作, 如果是, 标志数 = +1并更新 ^ 进入歩骤 S2.4;  2 2 Do nothing, if yes, mark A = +1 and update X; also judge whether the counter is equal to 2, if not, do nothing, if yes, the number of flags = +1 and update ^ Go to step S2.4 ;
S2.4 : 令 2[ ,3] = 2[ ,3] + 1, 更新计数器 C
Figure imgf000007_0001
+l 、 Cy L =Cy L+l , Hm[i,j] = Hm[i,j]-\.
S2.4: Let 2 [ ,3] = 2 [ ,3] + 1, update counter C
Figure imgf000007_0001
+l , C y L =C y L +l , H m [i,j] = H m [i,j]-\.
S2.5: 判断 D', ']是否为 0, 如果不为 0, 重复歩骤 S2.3; 如果为 0, 进入 歩骤 S2.6;  S2.5: Determine whether D', '] is 0, if not 0, repeat step S2.3; if it is 0, proceed to step S2.6;
S2.6: 判断业务矩阵^„的元素是否遍历完毕, 如果没有遍历完毕, 则返回 歩骤 S2.2遍历下一元素, 如果遍历完毕, 则业务矩阵扩展结束。  S2.6: It is judged whether the element of the service matrix ^ traversal is completed. If no traversal is completed, the process returns to step S2.2 to traverse the next element. If the traversal is completed, the service matrix extension ends.
其中, 歩骤 S4中的压缩算法的具体方法为: 将分解矩阵 M 按两行两列进 行分块, 得到^ 2阶的分块矩阵, 将分块矩阵中的每个子矩阵替换为子矩阵中所 有元素的和, 得到^ 2阶压缩矩阵 M "。 The specific method of the compression algorithm in step S4 is: dividing the decomposition matrix M into two rows and two columns to obtain a block matrix of the second order, and replacing each sub-matrix in the block matrix with the sub-matrix The sum of all the elements yields a ^ 2 order compression matrix M ".
本发明基于矩阵分解的网络交换调度方法, 在业务流量到达已知的情况下, 将度为 = 2 , 为大于 1的正整数、 阶数为 N的业务矩阵采用扩展算法扩展成 为度为 2、阶数 P = Nx /2的扩展矩阵,对 P阶扩展矩阵采用环形算法进行分解 得到度为 1的 P阶分解矩阵,对 P阶分解矩阵压缩成为度为 2的 P/2阶压缩矩阵, 再次对 阶压缩采用环形算法分解得到度为 1的 P/2阶分解矩阵, 重复对分解 矩阵进行压缩和再分解, 直到^ 2 =w, 即分解矩阵与业务矩阵阶数相同, 则矩 阵分解完毕, 此时得到的分解矩阵即为网络交换调度所需的连接矩阵。 本发明 适用于无阻塞交换网络, 突破了环形算法对于业务矩阵度为 2 的限制, 也无需 进行回溯、 重排调整等复杂度较高的算法, 而是采用环形算法、 业务矩阵扩展、 分解矩阵压缩的结合, 使度为 = 2 , 为大于 1的正整数的业务矩阵能够采用 简单易行的环形算法进行矩阵分解, 从而实现低复杂度的网络交换调度。 附图说明 The network switching scheduling method based on matrix decomposition, when the traffic flow reaches a known state, the degree is = 2, and the service matrix with a positive integer greater than 1 and the order N is extended to a degree of 2. The expansion matrix of order P = Nx /2, the P-order extended matrix is decomposed by a ring algorithm to obtain a P-order decomposition matrix of degree 1, and the P-order decomposition matrix is compressed into a P/ 2 order compression matrix of degree 2, again For the order compression, the ring algorithm is used to decompose the P/ 2 order decomposition matrix with degree 1. The decomposition matrix is compressed and re-decomposed until ^ 2 =w, that is, the decomposition matrix is the same as the order of the service matrix, then the matrix is decomposed. The decomposition matrix obtained at this time is the connection matrix required for network switching scheduling. The present invention is applicable to a non-blocking switching network, and breaks through the limitation of the ring algorithm for the service matrix degree of 2, and does not need Performing a more complex algorithm such as backtracking and rearrangement adjustment, but using a combination of a ring algorithm, a service matrix extension, and a decomposition matrix compression, so that the degree is = 2, and a business matrix of a positive integer greater than 1 can be easily implemented. The ring algorithm performs matrix decomposition to achieve low complexity network switching scheduling. DRAWINGS
图 1是 MPMS交换结构示意图;  1 is a schematic diagram of an MPMS switching structure;
图 2是环形算法对业务矩阵 ^2的处理示意图; FIG 2 is an annular processing algorithm schematic traffic matrix ^ 2;
图 3 是本发明基于矩阵分解的网络交换调度方法的一种具体实施方式流程 图;  3 is a flow chart of a specific implementation manner of a network switching scheduling method based on matrix decomposition according to the present invention;
图 4是业务矩阵扩展算法的一种具体实施方式流程图。 具体实施方式 下面结合附图对本发明的具体实施方式进行描述, 以便本领域的技术人员 更好地理解本发明。 需要特别提醒注意的是, 在以下的描述中, 当已知功能和 设计的详细描述也许会淡化本发明的主要内容时, 这些描述在这里将被忽略。  4 is a flow chart of a specific implementation manner of a service matrix expansion algorithm. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The detailed description of the embodiments of the present invention will be described in the claims It is to be noted that in the following description, when a detailed description of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted herein.
图 3 是本发明基于矩阵分解的网络交换调度方法的一种具体实施方式流程 图。 如图 3所示, 本发明的具体实施歩骤包括:  FIG. 3 is a flow chart of a specific implementation manner of a network switching scheduling method based on matrix decomposition according to the present invention. As shown in FIG. 3, the specific implementation steps of the present invention include:
S301: 网络中输入模块和输出模块的个数均为 N, 根据业务流量到达情况, 统计得到 N阶业务矩阵 m,其中每个元素 m [ ],o≤ ≤ N - 1,0≤ _/≤ N - 1表示输 入模块 连接到输出模块 '的业务数, ^表示业务矩阵的度, 且 = 2 , 为大于 1的正整数, 即本发明仅针对度为 = 2 , 为大于 1的正整数的业务矩阵。 S301: The number of input modules and output modules in the network is N. According to the arrival of traffic flow, an N-th order service matrix m is obtained , wherein each element m [ ], o ≤ ≤ N - 1, 0 ≤ _ / ≤ N - 1 represents the number of services that the input module is connected to the output module, ^ represents the degree of the service matrix, and = 2 is a positive integer greater than 1, that is, the present invention is only for a degree of = 2, which is a positive integer greater than one. Business matrix.
S302: 采用扩展算法对业务矩阵^„进行扩展, 得到度为 2的 P阶扩展矩阵 S302: Extending the service matrix by using an extended algorithm to obtain a P-order extended matrix of degree 2
M2, P = Nxm/2, 2[ ,3],0≤ ,3≤尸_1是扩展矩阵 2中的元素。 M 2 , P = Nxm/2, 2 [ , 3], 0 ≤ , 3 ≤ corpse _1 is an element in the extension matrix 2 .
图 4是业务矩阵扩展算法的一种具体实施方式流程图。 如图 4所示, 业务 矩阵扩展算法包括歩骤:  4 is a flow chart of a specific implementation manner of a service matrix expansion algorithm. As shown in Figure 4, the business matrix expansion algorithm includes the following steps:
S401: 业务矩阵^„的每行、 每列对应一个标志数 ·、 Lj, 初始化所有标志 数为 0; 扩展矩阵 2的每行、 每列对应一个计数器 c、 Cy L , 初始化所有计数 器为 0; 初始化扩展矩阵 M2中每个元素 M2[x, ] = 0; 初始化 = 0, ' = 0。 S401: traffic matrix ^ "in each row, all the mark number corresponding to a number of flags ·, Lj, initializing the column is 0; spreading matrix per row, each column corresponds to a counter c, C y L, initializes all counters to zero ; spreading matrix initializing each element M 2 M 2 [X,] = 0; initialize = 0 '= 0.
S402: 判断元素 D', ']是否为零值, 如果^ [ ]为零值, 进入歩骤 S410, 如果 ^„^', ']为非零值, 进入歩骤 S403。 S403: ^x = i — ^R y = j — -^L 进入歩骤 S404和 S406。 S402: It is judged whether the element D', '] is a zero value. If ^[] is a zero value, the process proceeds to step S410. If ^^^', '] is a non-zero value, the process proceeds to step S403. S403: ^x = i - ^R y = j - -^L Proceed to steps S404 and S406.
2 2  twenty two
S404: 判断计数器 是否等于 2, 如果不是, 不作任何操作, 直接进入歩 骤 S408; 如果是, 进入歩骤 S405。  S404: It is judged whether the counter is equal to 2, if not, no operation is performed, and the process directly proceeds to step S408; if yes, the process proceeds to step S405.
γγΐ  Γγΐ
S405: 标志数 .= +1, 更新 x = x + R;., 进入歩骤 S408。 S405: The number of flags is .= +1, and the update x = x + R ; ., proceeds to step S408.
S406: 判断计数器 是否等于 2, 如果不是, 不作任何操作, 直接进入歩 骤 S408; 如果是, 进入歩骤 S407。 S406: It is judged whether the counter is equal to 2, if not, no operation is performed, and the process directly proceeds to step S408; if yes, the process proceeds to step S407.
S407: 标志数 ^=^+1, 更新 进入歩骤 S408。S407: The number of flags ^=^+1, the update proceeds to step S408.
Figure imgf000009_0001
Figure imgf000009_0001
S408: 令 2[ ,3] = 2[ ,3] + 1, 更新计数器 C
Figure imgf000009_0002
+l , Cy L =Cy L+\ , ,]= - 1。
S408: Let 2 [ ,3] = 2 [ ,3] + 1, update counter C
Figure imgf000009_0002
+l , C y L =C y L +\ , ,]= - 1.
S409: 判断^ ^', ']是否为 0, 如果不为 0, 返回歩骤 S403, 如果为 0, 进入 歩骤 S410。  S409: It is judged whether ^^', '] is 0, if it is not 0, it returns to step S403, and if it is 0, it proceeds to step S410.
S410: 判断是否 ' = W-1, 如果不是, 说明本行元素未遍历完, 进入歩骤 S410: Determine whether '=W-1, if not, indicating that the element of the line has not been traversed, enter the step
S411; 如果是, 说明本行元素已经遍历完, 进入歩骤 S412。 S411; If yes, it indicates that the element of the line has been traversed, and the process proceeds to step S412.
S411: 7 = 7+1, 即遍历本行下一个元素, 返回歩骤 S402。  S411: 7 = 7+1, that is, traversing the next element of the line, and returning to step S402.
S412: i = i + l,j = 0, 即进入下一行开始遍历, 进入歩骤 S413。  S412: i = i + l, j = 0, that is, the next line is traversed, and the process proceeds to step S413.
S413: 判断是否 = N, 如果不是, 说明业务矩阵^„的所有元素还没有遍历 完毕, 返回歩骤 S402, 遍历下一个元素; 如果是, 说明业务矩阵^„的所有元素 已经遍历完毕, 则业务矩阵扩展结束。  S413: determining whether = N, if not, indicating that all elements of the service matrix have not been traversed, returning to step S402, traversing the next element; if yes, indicating that all elements of the service matrix have been traversed, then the service The matrix extension ends.
采用歩骤 S401至歩骤 S413的业务矩阵扩展算法, 即可将度为 ^的业务矩 阵^„扩展为度为 2的扩展矩阵 M2By using the service matrix expansion algorithm from step S401 to step S413, the service matrix of degree ^ can be expanded to the extension matrix M 2 of degree 2 .
S303: 采用环形算法对扩展矩阵 2进行矩阵分解, 分解得到两个 P阶分解 矩阵 M '2, 此时分解矩阵个数 = 2。 S303: Perform a matrix decomposition on the extended matrix 2 by using a ring algorithm, and decompose to obtain two P-order decomposition matrices M ' 2 , and the number of decomposition matrices=2.
S304: 采用压缩算法分别对^:个 阶分解矩阵^^, ^^,…,^:进行压缩, 得到 个度为 2的^ 2阶压缩矩阵 M "。 S304: compressing the ^: order decomposition matrix ^^, ^^,...,^: by using a compression algorithm to obtain a ^ 2 order compression matrix M" with a degree of 2.
压缩算法的具体方法为: 将分解矩阵 M 按两行两列进行分块, 得到 P/2阶 的分块矩阵, 将分块矩阵中的每个子矩阵替换为子矩阵中所有元素的和, 得到 P/2阶压缩矩阵 M "。 S305: 再次采用环形算法对 个压缩矩阵 M "中的每个压缩矩阵分别进 f 矩阵分解, 得到 2 个分解矩阵
Figure imgf000010_0001
The specific method of the compression algorithm is as follows: The decomposition matrix M is divided into two rows and two columns to obtain a block matrix of P/ 2 order, and each sub-matrix in the block matrix is replaced with the sum of all elements in the sub-matrix, P/ 2nd order compression matrix M ". S305: Using the ring algorithm again, each of the compression matrices in the compression matrix M" is decomposed into the f matrix to obtain two decomposition matrices.
Figure imgf000010_0001
S306: 判断分解矩阵 的阶数 是否等于业务矩阵阶数 ,如果等于 矩阵分解结束, 网络交换调度的连接矩阵 =^^/2 如果不等于, 令 P = V2, = 2 返回歩骤 S304。 实施例 S306: Determine whether the order of the decomposition matrix is equal to the order of the service matrix. If it is equal to the end of the matrix decomposition, the connection matrix of the network exchange scheduling = ^^ /2, if not equal, let P = V2, = 2 return to step S304. Example
下面采用度为 = 22 =4、 阶数 N = 8的满配业务矩阵 H4为例, 描述本发明 的实施过程。 The implementation process of the present invention will be described below by taking the full service matrix H 4 of degree = 2 2 = 4 and order N = 8 as an example.
Figure imgf000010_0002
Figure imgf000010_0002
采用本发明提出的扩展算法对业务矩阵 A进行扩展, 得到度为 2、 阶数 p = WxW/2 = 16的扩展矩阵 M2。 用一个输入箭头表示一行被抽象为两行, 同样 用输出箭头表示一列被抽象为两列。 The service matrix A is extended by the extension algorithm proposed by the present invention, and an extension matrix M 2 having a degree of 2 and an order p = Wx W / 2 = 16 is obtained. An input arrow indicates that a line is abstracted into two lines, and the output arrow also indicates that a column is abstracted into two columns.
Figure imgf000010_0003
, 扩展矩阵 M2度为 2, 满足环形算法要求, 可以直接采用环形算法进 行分解, 分解后得到 = 2个分解矩阵 、 。
Figure imgf000010_0003
The expansion matrix M 2 degree is 2, which satisfies the requirements of the ring algorithm, and can be directly decomposed by a ring algorithm, and decomposed to obtain = 2 decomposition matrices.
Figure imgf000011_0001
Figure imgf000011_0001
同理可得, 分解矩阵 Μ 2得到的压缩矩阵 为:Similarly, the compression matrix obtained by the decomposition matrix Μ 2 is:
Figure imgf000011_0002
可见,经过压缩得到的两个压缩矩阵^^'1、 M2 8'2的度为 2,适用于环形算法。 接下来, 分别对两个压缩矩阵 Μ2 8Ί、 M2 8'2进行再次环形算法分解, 得到 4个分解 矩阵 83 8,4
Figure imgf000011_0002
It can be seen that the two compression matrices ^^' 1 and M 2 8 ' 2 obtained by compression have a degree of 2, which is suitable for the ring algorithm. Next, the two compression matrices Μ 2 8 Ί, M 2 8 ' 2 are respectively decomposed by the circular algorithm to obtain 4 decomposition matrices 83 8, 4
^、 M M 1 o  ^, M M 1 o
- - ooooooooooooooll- - ooooooooooooooll
Figure imgf000012_0001
ooooooo oooooooll
Figure imgf000012_0001
Ooooooo oooooooll
ooooooo oooooooll  Ooooooo oooooooll
此时 4 8, 与业务矩阵 的阶 ooooooo ooooooo数ll 一致, 矩阵分解结束, ooooooo oooooooll  At this time 4 8, the order of the business matrix is ooooooo ooooooo number ll, the matrix decomposition ends, ooooooo oooooooll
网络交换调度的连接矩阵 =
Figure imgf000012_0002
ooooooo oooooooll
Connection matrix for network switching scheduling =
Figure imgf000012_0002
Ooooooo oooooooll
ooooooo oooooooll Ooooooo oooooooll
Figure imgf000012_0003
+0000000ooooooo 1 l-l ^, 因此可知 采用本发明可成功得到连接矩阵。
Figure imgf000012_0003
+0000000ooooooo 1 ll ^, therefore, it can be seen that the connection matrix can be successfully obtained by the present invention.
如果业务矩阵的阶数为 4, 而此时得到的分解矩阵阶数为 8, 还需要对 4个 分解矩阵进行再处理。 即将 4个度为 1的 8阶分解矩阵 , 压缩为 4个度为 2 的 4阶压缩矩阵 M , 再对这 4个压缩矩阵 采用环形算法进行分解, 即可 得到 8个度为 1的 4阶分解矩阵 , 从而完成矩阵分解。  If the order of the service matrix is 4, and the order of the decomposition matrix obtained at this time is 8, it is necessary to reprocess the four decomposition matrices. The 4th-order decomposition matrix with 4 degrees is 1 is compressed into 4 4th-order compression matrices M with degree 2, and then the four compression matrices are decomposed by a ring algorithm to obtain 8 degrees of 4 degrees. Decompose the matrix to complete the matrix decomposition.
尽管上面对本发明说明性的具体实施方式进行了描述, 以便于本技术领域 的技术人员理解本发明, 但应该清楚, 本发明不限于具体实施方式的范围, 对 本技术领域的普通技术人员来讲, 只要各种变化在所附的权利要求限定和确定 的本发明的精神和范围内, 这些变化是显而易见的, 一切利用本发明构思的发 明创造均在保护之列。  While the invention has been described with respect to the preferred embodiments of the present invention, it should be understood that These variations are obvious as long as the various changes are within the spirit and scope of the invention as defined and claimed in the appended claims, and all inventions that utilize the inventive concept are protected.

Claims

权 利 要 求 书 claims
1、 一种基于矩阵分解的网络交换调度方法, 其特征在于, 包括以下歩骤: S1: 网络中输入模块和输出模块的个数均为 N, 根据业务流量到达情况, 统计得到 N阶业务矩阵 m,其中, ^表示业务矩阵^„的度并满足 2的幂指数即 m = 2r; 业务矩阵^„的每个元素^ ^', ']表示输入模块 连接到输出模块 '的业务 数, 的取值范围为 o≤ ≤N-i,o≤_/≤w_i; 1. A network switching scheduling method based on matrix decomposition, which is characterized by including the following steps: S1: The number of input modules and output modules in the network is both N. According to the arrival of business traffic, the N-order business matrix is obtained statistically m , where, ^ represents the degree of the business matrix ^„ and satisfies the power index of 2, that is, m = 2 r ; each element ^ ^' of the business matrix ^„, '] represents the number of services connected to the input module to the output module', The value range is o≤ ≤Ni,o≤_/≤w_i;
S2:采用扩展算法对业务矩阵 Hm进行扩展,得到度为 2的 P阶扩展矩阵 M2, 其中, P = Nxmll Μ2[χ, ]表示扩展矩阵 M2中的元素, 的取值范围为 0< ≤ -l,0<7< -l; S2: Use the expansion algorithm to expand the business matrix H m to obtain a P-order expansion matrix M 2 with degree 2, where P = Nxmll M 2 [χ, ] represents the elements in the expansion matrix M 2 , and the value range is 0< ≤ -l,0<7<-l;
S3: 采用环形算法对扩展矩阵 2进行矩阵分解, 分解得到两个 Ρ阶分解矩 阵 M '2, 此时分解矩阵个数 = 2; S3: Use the ring algorithm to perform matrix decomposition on the extended matrix 2 , and obtain two P-order decomposition matrices M ' 2 . At this time, the number of decomposition matrices = 2;
S4: 采用压缩算法分别对 个 P阶分解矩阵 Mf = 1,2,… 进行压缩, 得 到 个度为 2的 P/2阶压缩矩阵 " ; S4: Use the compression algorithm to compress each P-order decomposition matrix Mf = 1, 2,... to obtain a P/ 2 -order compression matrix with degree 2";
S5: 再次采用环形算法对 个压缩矩阵 M "中的每个压缩矩阵分别进行矩 阵分解, 得到 2K个压缩矩阵 M 'k . S5: Use the ring algorithm again to perform matrix decomposition on each compression matrix M ", and obtain 2K compression matrices M ' k .
S6: 判断分解矩阵 Mf/"的阶数 P/2是否等于业务矩阵阶数 N, 如果等于, 矩阵分解结束, 得到网络交换调度的连接矩阵 :^ ' 如果不等于, 令 P = P/2, K = 2K, 返回歩骤 S4。 S6: Determine whether the order P/ 2 of the decomposition matrix Mf/" is equal to the order N of the service matrix. If it is equal, the matrix decomposition ends and the connection matrix of network switching scheduling is obtained: ^ ' If not equal, let P = P/2, K = 2K, return to step S4.
2、 根据权利要求 1 所述的网络交换调度方法, 其特征在于, 所述歩骤 S2 中扩展算法包括: 2. The network switching scheduling method according to claim 1, characterized in that the expansion algorithm in step S2 includes:
S2.1: 业务矩阵^„的每行、 每列对应一个标志数 ·、 Lj, 初始化所有标志 数为 0; 扩展矩阵 2的每行、 每列对应一个计数器 c 、 Cy L, 初始化所有计数器 为 0; 初始化扩展矩阵 M2中每个元素 M2[x, ]; S2.1: Each row and column of the business matrix ^„ corresponds to a flag number, Lj, and initializes all flag numbers to 0; each row and column of the extended matrix 2 corresponds to a counter c, C y L , and initializes all counters is 0; initialize each element M 2 [x, ] in the extended matrix M 2 ;
S2.2:逐行逐列遍历业务矩阵^„中的每个元素 ^J '],如果^ ^', ']为零值, 进入歩骤 S2.6, 如果 „[ Ί为非零值, 进入歩骤 S2.3; S2.2: Traverse each element ^J '] in the business matrix ^" row by row and column by column. If ^ ^', '] is zero value, enter step S2.6. If "[Ί is non-zero value, Enter step S2.3;
S2.3: 令 ix^ + R^j^ + Lj, 判断计数器 是否等于 2, 如果不是, S2.3: Let ix^ + R^j^ + Lj, determine whether the counter is equal to 2, if not,
2 2 不作任何操作, 如果是, 标志数 A = +1并更新 X; 同时判断计数器 是否等 于 2, 如果不是, 不作任何操作, 如果是, 标志数 = +1并更新 ^ 进入歩骤 S2.4; S2.4: 令 2[ ,3] = 2[ ,3] + 1, 更新计数器 C
Figure imgf000014_0001
, Hm[i,j] = Hm[i,j]-\.
2 2 No operation is performed. If yes, the flag number A = +1 and update ; S2.4: Let 2 [ , 3] = 2 [ , 3] + 1, update counter C
Figure imgf000014_0001
, H m [i,j] = H m [i,j]-\.
S2.5: 判断 D', ']是否为 0, 如果不为 0, 重复歩骤 S2.3; 如果为 0, 进入 歩骤 S2.6; S2.5: Determine whether D', '] is 0. If not, repeat step S2.3; if it is 0, enter step S2.6;
S2.6: 判断业务矩阵^„的元素是否遍历完毕, 如果没有遍历完毕, 则返回 歩骤 S2.2遍历下一元素, 如果遍历完毕, 则业务矩阵扩展结束。 S2.6: Determine whether the elements of the business matrix have been traversed. If not, return to step S2.2 to traverse the next element. If the traversal is completed, the business matrix expansion ends.
3、 根据权利要求 1或 2所述的网络交换调度方法, 其特征在于, 所述歩骤 S4中的压缩算法的具体方法为:将分解矩阵 M 按两行两列进行分块,得到 P/2 阶的分块矩阵, 将分块矩阵中的每个子矩阵替换为子矩阵中所有元素的和, 得 到^ 2阶压缩矩阵 M "。 3. The network switching scheduling method according to claim 1 or 2, characterized in that the specific method of the compression algorithm in step S4 is: dividing the decomposition matrix M into two rows and two columns to obtain P/ For a 2- order block matrix, replace each sub-matrix in the block matrix with the sum of all elements in the sub-matrix to obtain a ^ 2 -order compressed matrix M ".
PCT/CN2014/072067 2013-08-30 2014-02-13 Network switching scheduling method based on matrix decomposition WO2015027687A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310385601.4 2013-08-30
CN201310385601.4A CN103475597B (en) 2013-08-30 2013-08-30 A kind of network exchange dispatching method based on matrix decomposition

Publications (1)

Publication Number Publication Date
WO2015027687A1 true WO2015027687A1 (en) 2015-03-05

Family

ID=49800302

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/072067 WO2015027687A1 (en) 2013-08-30 2014-02-13 Network switching scheduling method based on matrix decomposition

Country Status (2)

Country Link
CN (1) CN103475597B (en)
WO (1) WO2015027687A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475597B (en) * 2013-08-30 2016-03-23 电子科技大学 A kind of network exchange dispatching method based on matrix decomposition
CN103944840B (en) * 2014-04-17 2017-02-15 电子科技大学 Two-way exchange scheduling method
CN103944839B (en) * 2014-04-17 2017-02-22 电子科技大学 Same-way exchange scheduling method
CN112367272A (en) * 2020-11-09 2021-02-12 中国电子科技集团公司第二十研究所 Quick packaging method based on matrix coordinates

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1392696A (en) * 2002-07-09 2003-01-22 华中科技大学 NXN light exchanging structure in full photo exchanging nodal point
CN103475597A (en) * 2013-08-30 2013-12-25 电子科技大学 Network switching scheduling method based on matrix decomposition

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6456838B1 (en) * 1999-02-17 2002-09-24 Verizon Laboratories Inc. Generic approach to generating permutations for all-to-all personalized exchange for self-routing multistage interconnection networks
CN1767501A (en) * 2005-11-28 2006-05-03 西安邮电学院 A Routing Method
CN102129482B (en) * 2010-01-13 2013-04-10 电子科技大学 Chaotic discrete particle swarm optimization-based network on chip mapping method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1392696A (en) * 2002-07-09 2003-01-22 华中科技大学 NXN light exchanging structure in full photo exchanging nodal point
CN103475597A (en) * 2013-08-30 2013-12-25 电子科技大学 Network switching scheduling method based on matrix decomposition

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
STEINAR, ANDRESEN.: "The Looping Algorithm Extended to Base 2^ t Rearrangeable Switching Network", IEEE TRANSACTIONS ON COMMUNICATIONS, vol. 10, no. COM-25, 31 October 1997 (1997-10-31), pages 1057 - 1061 *

Also Published As

Publication number Publication date
CN103475597B (en) 2016-03-23
CN103475597A (en) 2013-12-25

Similar Documents

Publication Publication Date Title
WO2015027687A1 (en) Network switching scheduling method based on matrix decomposition
CN105337883B (en) It is a kind of to support multiple services network-switching equipment and its implementation
US8995456B2 (en) Space-space-memory (SSM) Clos-network packet switch
TWI313118B (en) Cut-through switching in a network edvice
Giaccone et al. On the maximal throughput of networks with finite buffers and its application to buffered crossbars
Quinton et al. Concentrator access networks for programmable logic cores on SoCs
US20170176688A1 (en) Network Switch With Augmented Input and Output Capabilities
Zhang et al. Space‐memory‐memory Clos‐network switches with in‐sequence service
Hwang A survey of nonblocking multicast three-stage Clos networks
US20130322879A1 (en) Matrix router and method of switching
Chen A survey of multistage interconnection networks in fast packet switches
Lo et al. The global packing number of a fat-tree network
Caldeira et al. OpticNet: self-adjusting networks for ToR-matching-Tor optical switching architectures
CN103944840B (en) Two-way exchange scheduling method
Chao et al. A dual-level matching algorithm for 3-stage Clos-network packet switches
CN103944839B (en) Same-way exchange scheduling method
Yuan et al. On folded-clos networks with deterministic single-path routing
Gong et al. SERENADE: A parallel iterative algorithm for crossbar scheduling in input-queued switches
Radonjic et al. Iterative throughput calculation for crosspoint queued switch
CN106330481B (en) A data rearrangement method and device
CN105791141A (en) A flow meter replacement method and device
Liu et al. Quantized BvND: A better solution for optical and hybrid switching in data center networks
Kleban et al. Packet dispatching algorithms with the static connection patterns scheme for three-stage buffered clos-network switches
Frankel et al. Flat, highly connected optical network for data centers
Kleban et al. Performance evaluation of selected packet dispatching schemes for the CBC switches

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14840054

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14840054

Country of ref document: EP

Kind code of ref document: A1