Many M×M type switches exist in the art, but all suffer from the overloading or bottlenecking of data packets. Data packets are typically set in standard sizes and allocated to output buffers and switches in these standard sizes. The invention is directed to an improved switch to alleviate such bottlenecking.
Assumtion:
Each M×M switch supports variable length Ethernet packets with maximum packet size of 1518 bytes.
Each M×M switch supports up to 4 levels of QoS.
1. Cascade Architecture
Let n is one of divisors of the number M, and N=M*n. In this case (as shown below) the Clo's architecture may be used to create cascade of 3*n M×M switches that functions as N×N switch. See
M/n consecutive outputs of each input switch are connected to M/n consecutive inputs of the same central switch.
Let m is the number of the input switch
Outputs k*M/n, k*M/n+1, . . . k*M/n+n−1 of the input switch m are connected to inputs m*M/n, m*M/n+1, . . . , m*M/n+n−1 of the central switch k.
In the same manner M/n consecutive outputs of each central switch are connected to M/n consecutive inputs of the same output switch.
Outputs r*M/n, r*M/n+1, . . . r*M/n+n−1 of the central switch k are connected to inputs k*M/n, k*M/n+1, . . . , k*M/n+n−1 of the output switch r.
For example in case M=32,n=4, N=128 we have connections
and so on.
Each stage has 4 single switch. The out ports in each single switch combined in 4 groups:
The First Group in First Switch in First Stage we will denote as I00.
Let N=32*n, and N=128, n=4 (each stage has 4 switches).
Let m,k,r=0, 1, . . . , n−1. In our case m, k, r=0, 1, 2, 3, are numbers of the First, second and third stage switches.
Then,
According to above equations we get
Outputs of Stage I are connected to the inputs of Stage II as follows:
Outputs of Stage II are connected to the inputs of Stage III as follows:
Hence, the following will be the clo's network path:
Any incoming packet to some port of the input switch m may be send through any one of its M output ports to some central switch k, and then through one of the M/n output ports of this central switch to corresponding output switch.
So there are M*M/n routs from a given input switch m to a given output switch r. It is necessary to send packets from input switch m to output switch r so that for any given interval flow of information is uniformly distributed over possible M*M/n routs. Such uniform distribution of the flow from input switch m to output switch r is equivalent to uniform distribution of the flow through M output ports of the input switch m, and uniform distribution of the flow through M/n output ports of each central switch connected to output switch r.
2.1 Switching Algorithm for the Input Switch m.
Let for example M=32 and n=4.
Input ports of the input switch m are divided into n=4 groups. Each group includes M/n=8 consecutive ports:
Switching algorithm is based on parameters:
At start L(g,r,p)=0, P(g,r)=0; N(g,r)=3;
Each time a segment of some packet is moved from input buffer into intermediate buffer the corresponding flow L(g,r,p) is incremented by 64 (or 32).
Periodically(in manner discussed below) minimal flow L(g,r) is calculated, and L(g,r,p) is replaced by its normalized value.
Incoming packet to one of ports of the group g with a destination output port r is switched to output port P(g,r). Now there are two possibilities
(L(g,r,p)>=Limit)∥(N(g,r)==0) a)
Normalized flow is not too small, or three packets are send to the same port P(g,r). P(g,r) is increased by 1 in circular manner
P(g,r)=P(g,r)+1 if P(g,r)<M−1
0 if P(g,r)=M−1
The repetition parameter is set to Repeat
N(g,r)=Repeat;
(L(g,r,p)<Limit)&&(N(g,r)>0) b)
The next incoming packet must be sent to the same output port. N(g,r) is decreased by 1
N(g,r)−−;
C Simulation Model show that parameters Limit and Repeat may be equal to 1000, and 3.
Let us now consider normalization of the flow.
In case of central switch packets with destination output switch r must be uniformly distributed to Min outputs. So in case n=M there is now distribution problem. If n<M the algorithm used for input switch m must be used central switch k, but now P(g,r) has to change so that it covers M/n output ports in circular manner.
2.3 Switching Algorithm for the Output Switch r.
As shown above the input switches and central switches deliver packets based on the number r of destination output switch equal to quotient from division the number of the destination port j by M. In case M=32
r=j>>5;
Output switch r on its turn switches packets with destination port j to its output port j−r*M equal to remainder from division the number of the destination port j by M. In case M=32
j−r*M=(j&31);
The cascading M×M switches is based on 3 types of M×M switches that switch packets with destination j based on numbers M, and n.
This application claims the benefit of U.S. provisional patent application Ser. No. 60/733,963, filed Nov. 4, 2005. This application also claims the benefit of U.S. provisional patent application Ser. No. 60/733,966, filed Nov. 4, 2005. This application also claims the benefit of priority of U.S. patent application Ser. No. 11/400,367, filed Apr. 6, 2006, which claims the benefit of U.S. provisional patent application Ser. No. 60/669,028, filed Apr. 6, 2005. This application also claims the benefit of U.S. provisional patent application Ser. No. 60/634,631, filed Dec. 12, 2004.
Number | Date | Country | |
---|---|---|---|
60733963 | Nov 2005 | US | |
60733966 | Nov 2005 | US |