首页 / 专利库 / 软件 / 中间件 / 消息中间件 / Method and an apparatus to modify CRC in intermediate high speed network nodes

Method and an apparatus to modify CRC in intermediate high speed network nodes

阅读:43发布:2021-11-06

专利汇可以提供Method and an apparatus to modify CRC in intermediate high speed network nodes专利检索,专利查询,专利分析的服务。并且A method and an apparatus to calculate in an intermediate node of a communication network, the new Frame Check Sequence (FCS) appended to a data bits message which has been modified in said intermediate network node. The invention is useful for high speed networks where the transit delay needs to be optimized in the network along with the computing resources in the intermediate network nodes in terms of computer cycles and memory size. The invention consists in calculating the difference between the FCS using the difference between the modified fields in the message and the distance in bits between the end of the modified field and the end of the message; the calculation consists in differentiating `short messages` in the data flow and to provide an optimized processing for the short messages, the processing for larger messages being based on this first optimized processing. The calculation of the modified FCS comprises operations on polynomials whose coefficients belong to the Galois's Field and whose degree is limited to the one of the polynomial generator of the corresponding CRC code. The calculations include also look up operations in tables limited in size. The choice between the possible implementations (full software, full hardware and mixed hardware and software with the usage of a Remult operator for the last two) will depend on the kind of the network (Frame Relay or other network) and the capacity of the intermediate network node.,下面是Method and an apparatus to modify CRC in intermediate high speed network nodes专利的具体信息内容。

We claim:1. For use at an intermediate node of a telecommunications data network at which input messages are received and may be modified before being forwarded as output messages to other nodes in the network, each message being contained in a frame having a header field, a data field and a CRC code field, a method of calculating a new CRC code for use in an output message, the value of said new CRC code being a function of the CRC code in the input message, modifications made in a modifiable part of the header field at the intermediate node, and the length of the data field, the distance in bits between the end of the modifiable part and the end of the message being defined as a variable m, said method comprising the steps of: a. calculating the bit by bit difference of the input message and the message once modified in the intermediate network node, said difference being represented by a polynomial B(X), X being the symbolic variable of the polynomial representation and the polynomial coefficients belonging to the modulo 2 Galois's Field. b. solving the equation m+16=n.sub.0 +N.multidot.n derive integer values for n.sub.0 and n.sub.1 where N is an integer power of the base 2; c. calculating the difference between the CRC codes of the input and the modified messages using the three values n.sub.0, n.sub.1 and m as input; and d. performing a modulo 2 addition of the said difference with the initial message code value to obtain the new message code value. 2. The method according to claim 1, where the step of calculating the difference between the CRC codes comprises the following intermediate steps: a. performing a look up operation to a first table T.sub.0, addressed by n.sub.0 and providing the remainder of the polynomial division of X.sup.8n 0 by the polynomial generator G(X) of the CRC code, the coefficients of said polynomial belonging to modulo 2 Galois's Field; b. performing a modulo 2 polynomial multiplication of B(X) by the result of the preceding step; c. computing the remainder of the division by G(X) of the 15 high order bits of the result of the preceding step obtained by modulo 2 polynomial multiplication of said result by X.sup.16 ; d. if m+16 is low than N, adding the previous result to the 16 low order bits of step b) herein the result being the difference between the input and modified message code values. e. if m+16 is greater than N: 1) performing a look up operation to a second table T.sub.1, addressed by n.sub.1 and providing the remainder of the modulo 2 polynomial division by G(X) of X.sup.8Nn 1; 2) performing a modulo 2 polynomial multiplication of B(X) and the result of preceding step; 3) computing the remainder of the division by G(X) of the 15 high order bits of the result of the preceding step obtained by modulo 2 polynomial multiplication of said result by X.sup.16 ; 4) adding the previous result to the 16 low order bits of step e.1) the result of this current step being the difference between the input and the modified message code values. 3. The method, according to claim 1 where the step of calculating the difference between the CRC codes comprises the following steps: a. performing a look up operation in a third table T', addressed by B.sub.i (X) and n.sub.0 and providing the remainder of the polynomial division by G(X) of X.sup.8n 0.multidot.B.sub.i (X) where B(X) is the polynomial representation of all the possible 8 bits values; b. adding two third table values, the first being addressed by n.sub.0 and the 8 high order bits values of B(X), and the second by n.sub.0 +1 and the 8 low order bits values of B(X); c. if m+16 is lower than N, selecting the result of preceding step as the difference between the input and the modified message code values; d. if m+16 is greater than N, performing a look up operation in the second table T.sub.1, with the value n.sub.1 ; e. performing modulo 2 polynomial multiplication of the results of steps b and d herein; f. calculating the remainder of the polynomial division of the result of step e herein by G(X), the result being the difference between the input and the modified message. 4. The method, according to claim 1, 2 or 3, where the telecommunication network is a Frame Relay network, the messages being variable length packets, the error detection and correction code being the 16 bits Frame Check Sequence (FCS) based on the generator polynomial G(X) from the V41 CCITT recommendation, the m+16 value being the message size in bytes, N being the maximum size in bytes of the short messages, the modification brought to the packets in the intermediate network node applying to the two first bytes of the packet. 5. In an intermediate node of a telecommunication network, an apparatus to calculate the new CRC code of input data bits messages which have been modified; said CRC code being a function of the modified message field, the initial error code of the message and the distance m between the end of the modified message field and the end of the message, said apparatus comprising; a. means for calculating the bit by bit difference of the input message and the message once modified in the intermediate node, said difference being represented by a polynomial B(X), X being the symbolic variable of the polynomial representation and with the coefficients belonging to the modulo 2 Galois's Field (302 or 710); b. means for solving the equation m+16=n.sub.0 30 N.multidot.n, to establish integer values for n.sub.0 and n.sub.1 where N is an integer power of the base 2; c. means for calculating the difference between the CRC codes of the input and modified messages using the three values n.sub.0, n.sub.1 and m as inputs; d. means for performing a modulo 2 addition of the said difference with the initial message code value (308) to obtain the new message code value. 6. The apparatus according to claim 5, where the means for calculating the difference between the CRC codes comprise the following intermediate means: a. means for performing a look up operation to a first table T.sub.0, (525) addressed by n.sub.0 and B.sub.i (X) and providing the remainder of the polynomial division of X.sup.8n 0 by the polynomial generator G(X) of the CRC code, the coefficients of said polynomial belonging to modulo 2 Galois's Field; b. means for performing a modulo 2 polynomial multiplication of B(X) by said remainder (403); c. means for computing (407) the remainder of the division by G(X) of the 15 high order bits of the result of said modulo 2 polynomial multiplication of said result by X.sup.16 ; d. means, operative if m+16 is lower than N for selecting the remainder computed by the last named means as the difference between the input and modified message code values; e. means, operative if m+16 is greater than N, for performing a look up operation to a second table T.sub.1, (530) addressed by n.sub.1 and providing the remainder of the modulo 2 polynomial division by G(X) of X.sup.8N.n 1 and for performing a modulo 2 polynomial multiplication of B(X) and said remainder and for computing (407) the remainder of the division by G(X) of the 15 high order bits of the result of said modulo 2 polynomial multiplication of said result by X.sup.16 and for adding the previous result to the 16 low order bits of of the remainder resulting from the look up operation to the second table T1, the result being the difference between the input and the modified message code values. 7. The apparatus, according to claim 5 where the means for computing the remainder further comprises; a. means for performing a look up operation in a third table, T',(730) addressed by n.sub.0 and B.sub.i (X) and providing the remainder of the polynomial division by G(X) of X.sup.8n 0.multidot.Bi(X) where B.sub.i (X) is the polynomial representation of all the possible 8 bits values; b. means for adding two third table values, the first being addressed by n.sub.0 and the 8 high order bits values of B(X), and the second by n.sub.0 +1 and the 8 low order bits values of B(X)(730); c. means operative if m+16 is lower than N, for selecting the result provided by the last-named means as the difference between the input and the modified message code values; d. means operative if m+16 is greater than N for performing a look up operation in the second table T.sub.1, (740) with the value n.sub.1 and for performing the modulo 2 polynomial multiplication (750) of the results provided by said adding means the said means for performing a look up operation in the second table T1 and for calculating the remainder of the polynomial division by G(X) (760), the result being the difference between the input and the modified message. 8. The apparatus according to claim 5, 6 or 7, where the telecommunication network is a Frame Relay network, the messages being variable length packets, the error detection and correction code being the 16 bits Frame Check Sequence (FCS) based on the generator polynomial G(X) from the V41 CCITT recommendation, the m+16 value being the message size in bytes, N being the size in bytes of the short messages, the modification brought to the packets in the intermediate network node applying to the two first bytes of the packet. 9. The apparatus, according to claim 5, 6 or 7, where the telecommunication network is a Frame Relay network, the messages being variable length packets, the error detection and correction code being FCS, m+16 value being the message size in bytes, N being the size in bytes of the short messages, the modification brought to the packets in the intermediate node applying to the two first bytes of the packet.

说明书全文

FIELD OF THE INVENTION

This invention relates to a method and an apparatus for modifying Cyclic Redundany Check (CRC) encoded digital messages conveyed on high speed telecommunication networks.

BACKGROUND OF THE INVENTION

Due to evolution of networks towards more complex mixtures of sub-networks with heterogeneous architectures, it is becoming more difficult to meet the requirement to support distributed computing applications across high speed backbones that can carry LAN traffic, voice, video and traffic over hosts channel attached workstations. One challenge for high speed networking is to minimize the computing resources required within the network nodes to route the messages while ensuring security of the data conveyed in the network.

Particularly, it is fundamental to reduce processing requirements at intermediate network nodes allowing messages to travel from source nodes to end nodes along a number of point-to-point links. If intermediate processing time can be minimized, the network time should be lower and the thruput as high as possible.

When digital messages are transmitted over any telecommunication networks, some errors can be expected. To ensure data integrity, the serialized data is protected with error detection codes.

In high speed networks, the lines may have a low error rate and an error detection code is computed only by the original transmitting node and checked at the other end by the final receiving node.

For both reasons of error coverage and implementation ease, linear and systematic codes and particularly Cyclic Redundancy Check (CRC) codes are used in most of synchronous data communications. When properly used, CRC codes will detect much more than 99% of all errors in transmission.

The advantage of the CRC is highlighted with the following mathematical description: the transmitted data is represented as a pure binary number defined by a polynomial expression where the coefficients belongs to modulo 2 Galois's Field.

The 12 bits data `100010010010` is represented as a degree 11 polynomial:

P(X)=X11 +X7 +X4 +X

Encoding the data consists in concatenating to the data a set of redundancy check bits. These check bits can be deducted from a simple polynomial calculation applied to the polynomial expressions representing the data.

These check bits are deducted, from the remainder of the polynomial division of one polynomial expression based on the the data to be checked, a predefined polynomial characterizing the code (the generator polynomial).

Decoding the data Consists also in implementing a simple polynomial division of the polynomial representing the transmitted data including the check bits by the generator polynomial and checking that the remainder is the expected one.

Suppose P(X) represents the data to be transmitted and checked, G(X) the generator polynomial, g and p the degree of respectively G(X) and P(X).

If Q(X) and R(X) are the quotient and remainder of the division of XgP(X) by G(X) respectively:

Xg P(X)=G(X)Q(X)+R(X)

One notes that degree of Xg P(X) is g+p and that its polynomial coefficients for the X powers lower than g are all zero.

The degree of R(X) is<g (as remainder of division by G(X)).

Now, as polynomial coefficients belong to modulo 2 Galois's Field:

Xg P(X)+R(X)=G(X)Q(X)                                 (expression 1)

The left side of this last expression is the polynomial expression of the encoded data, P(X) being the polynomial expression of the initial data to encode.

The encoded data is represented by

Xg P(X)+R(X)

Assuming that the data is a number of p bits and that the code generator polynomial is of degree g, the encoded data will be a number of p+g bits where the first left p bits are the initial data and the g last ones are the calculated redundancy check bits.

Expression 1 means that the remainder of the division of Xg P(X)+R(X) by G(X) is zero. The data is correct at the receiving station the polynomial representing the received data is a multiplier of the generator polynomial.

Increased complexity of the cyclic code gives powerful detection but also greater redundancy with each block of data transmitted. The optimum codes are a compromise between good burst error detection and low redundancy.

As a matter of fact, a CRC code is used to generate the Frame Check Sequence (FCS) which is appended at the end of the original message so it can be checked at far end for proper transmission. The transmitting network node adds the FCS to the original message and the entire received message (original message plus FCS) is checked at the end node.

IEEE 802-series networks employ the ANSI standard 32-bit CRC algorithm where the generating polynomial is:

X32 +X26 +X23 +X22 +X16 +X12 +X11 +X10 +X8 +X7 +X5 +X4 +X2 +X+1

One CCITT standard (V41) recommends the following cyclic polynomial as generator polynomial:

X16 +X12 +X5 +1

This cyclic polynomial is used by the most of synchronous bits oriented line transmission protocols. There are 16 redundancy check bits in the data encoded with the CCITT V41 generator cyclic polynomial.

As explained in "Teleinformatique I", H. Nussbaumer, Presses Polytechniques Romandes, 1987 a FCS is calculated based on the CRC calculation with the CCITT V41 generator cyclic polynomial. It is a 16 bits long field defined in the following lines.

Assuming that L(X) is the polynomial of degree 15 where all the coefficients are equal to 1, the FCS of a message represented by the polynomial P(X) of degree p is defined as is:

L(X)=X15 +X14 +. . . +X2 +X+1

X16 P(X)+Xp L(X)=Q(X)G(X)+R(X)

FCS(P(X))=L(X)+R(X)

R(X) being the remainder (Rem):

FCS(P(X))=RemG(X) (X16 P(X)+Xp L(X))

The polynomial representing the encoded message is:

S(X)=X16 P(X)+FCS(P(X))

At the receiving node, the FCS is computed on the encoded message: there is no error in transmission if the computation yields the constant message represented by the following polynomial:

X15 +X14 +X13 +X12 +X7 +X5 +X4 +X3 

Data is transported in packets, cells or variable length frames which are normally shorter blocks than the original data; the message includes a header preceding the original data for routing in the intermediate network nodes and packet resequencing at the end node. The FCS is calculated on the original data plus the header.

Some routing methods result in the message (more particularly the header) being modified in the intermediate network nodes. If the modified message is sent along with the original FCS, the message will be rejected by the receiving node because the calculated and received FCS will not match. It is not recommended the FCS be checked and recomputed in the intermediate nodes since that requires computing resources and overall does not protect from errors which occur in a node after the FCS is checked and before it is recomputed. As D. R. Irvin explains (in IBM JOURNAL RESEARCH AND DEVELOPMENT VOL 33 NO. 6 November 1989), the computation of CRC being a linear operation, a new FCS can be calculated by modifying the previous one. This raises the need of calculating in the intermediate network nodes a modification to the original FCS based on the message changes instead of recalculating a new FCS from the full message.

To calculate in the intermediate network nodes the new FCS corresponding to a change in the message, it is sufficient to calculate the difference (dFCS) between the new and the previous FCS; the polynomial representation of new FCS will be deducted by simple modulo 2 addition in Galois's Field of the previous FCS polynomial and the difference (dFCS). This is easily implemented with a XOR logical function.

Assuming that P(X) represents the message originally sent in the network and P'(X) the message modified in the intermediate network node:

dFCS=FCS(P'(X))-FCS(P(X))

dFCS=RemG(X) (X16 P'(X)+Xp L(X))-RemG(X) (X16 P(X) +Xp L(X))

dFCS=RemG(X) (X16 (P'(X)-P(X)))                  (expression 2)

According to FIG. 1, if m is the distance in bits between the last bit of the modified field and the end of the message; assuming H(X) and H'(X) are the polynomials representing the previous and modified fields in P(X) and P'(X) and B(X) defined as follows:

B(X)=(H'(X)-H(X))/Xm 

then, expression 2 can be written as follows:

dFCS=RemG(X) (Xm+16 B(X))                        (expression 3)

Assuming that any type of data conveyed in the networks are byte based, m is assumed as a multiple of 8 since the modified field will end at a byte boundary in the message in bits. Thus we can define an integer n such as:

8n=m+16 and n=m/8+2

dFCS=RemG(X) (X8n B(X))                          (expression 4)

B(X) can be easily implemented by a logical XOR on the old field modified H(X) and the new field H'(X), the computation of dFCS is reduced to the computation of expression 3 or expression 4.

Existing methods to achieve this dFCS calculation are disclosed in the D. R. Irvin article and the EP-313707 patent on the same subject. These methods include usage of tables because of the properties of CRC code: linearity and cyclicity. The amount of memory required for the necessary tables and the number of computer cycles required for dFCS computation are not negligible.

In order to have a reference in terms of computing resources necessary with the best existing solution, let's evaluate these numbers if we implement the EP-313707 solution.

The solution proposed by EP-313707 patent assumes that the field of the messages to be altered is not longer than 2 bytes, and m is a multiple of 8. Thus, the mathematical description of this solution starts from expression 4. The basic idea is to split n into a binary number (of degree 16 for frames up to 64K bytes long):

dFCS=RemG(X) (X8n B(X))                          (expression 4)

The EP-313707 patent solution proposes a bit-wise decomposition:

n=n15 215 +n14 214 +. . . n3 8+n2 4+n1 2+n0 

Then expression 4 can be rewritten as:

dFCS=RemG(X) (F(n15)·RemG(X) (F(n14)·RemG(X) (F(n1) ·RemG(X) (F(n0)·B(X)) . . . )))

with F(ni)=1 if ni =0 and F(ni)=RemG(X) (X8.2i) if ni =1

F(ni) can be computed by look up to an input-table T defined as:

T(i)=RemG(X) (X8.2i)

This table to be read for any n not equal to zero.

The corresponding algorithm can be summarized as follows:

R←B(X)

do i=0 to 15

if ni =1

then R←RemG(X) (R·T(i))

end

If, as in the case of Frame Relay, the maximum frame length is 8K bytes, then i takes all the integer values from 0 to 12 and therefore, the maximum number of iterations is 13 and the T table size is 26 bytes. This implies a minimum of 900 processor cycles for computation.

Therefore, the dFCS computation in the intermediate network nodes will be optimized if one succeeds in implementing in these nodes the calculation represented by the mathematical expressions 3 or 4, reducing the memory size for tables and the number of computer cycles versus any existing solution.

SUMMARY OF THE INVENTION

The object of the invention is to provide a method and an apparatus for optimizing computing resources in term of memory size and number of processor cycles when calculating the modified CRC encoded messages in intermediate network nodes of a communication network.

It is another objective to provide such a method which is as simple as possible in order to be easily implemented.

The invention consists in calculating the difference between the FCS using the difference between the modified fields in the message and the distance in bits between the end of the modified field and the end of the message.

The principle of the subject invention is first to distinguish the computation upon the size of the message and to optimize the processing for treatment of short messages which is the most costly in terms of number of processing cycles. Therefore, two algorithms are defined, one for `short messages` and one for `long messages`, these two algorithms being correlated. The mathematical description of the solution starts from the expressions 3 or 4.

The second basis of the solution is the definition of a new function (Remult) for hardware implementations and limited size tables for software implementations which are used in the algorithms for short and long messages.

In order to simplify the hardware implementation, all the polynomial multiplications included in the algorithms for CRC modifications are reduced to multiplications on polynomial of degrees not greater than the degree of the generator polynomial.

The invention includes the following steps:

Defining a message size differentiation between `short` and `long` messages;

defining a Remult function as part of dFCS calculation for short or long messages treatment as well;

defining tables for short messages dFCS calculation;

defining tables for long messages dFCS calculation;

defining an algorithm for short messages dFCS calculation.

defining an algorithm for long messages dFCS calculation.

The different embodiments of the invention depend on two criteria which are the network type (implying a message size, message structure, CRC code) and the choice between a hardware or software implementation.

A first solution consists in having a full software solution which reaches the performance objectives of the invention. The preferred embodiment described with details hereunder has a mixed hardware and software implementation: only the Remult function is implemented in hardware as a special instruction of a processor inside the intermediate network node adapter. The performance in terms of number of computer cycles and table sizes will be compared in the `preferred embodiment` section of the description to the best prior art solution. The full hardware implementation includes the same Remult hardware function as part of a coprocessor implementation.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 describes the field of the messages before and after modification in an intermediate network node;

FIG. 2 is a table providing the tables sizes corresponding to different packet lengths;

FIG. 3 is a block diagram representing the global logical interfaces of the general solution;

FIG. 4 is a block diagram representing one hardware implementation of Remult function

FIG. 5 is a block diagram representing the hardware implementation of the solution

FIG. 6 is a graph of number of computer cycles being a function of the message length with two curves, one (610) representing the maximum computing capacity of the intermediate network node and the other one (620) representing the computing resources for modified FCS computation.

FIG. 7 is a block diagram of the full software implementation

DETAILED DESCRIPTION OF A PREFERRED EMBODIMENT OF THE INVENTION

The preferred embodiment of the invention described hereunder applies to a Frame Relay network in which the messages sent in the network exist in variable length frames with a maximum size of 8K bytes including a 2 bytes frame header. In this case the field modified in the frame is the 2 bytes header.

In FIG. 1, the message structure 110 is a general message format and the message structure 120 applies to the special case of Frame Relay. The parameter m is the distance in bits between the end of the modifiable message field and the end of the message. Considering that messages are byte based, and m is typically a multiple of 8, the integer n defined as n=(m+16)/8 is, in the case of Frame Relay the length of the frame in bytes. This implies that this value is easily obtained. Let's start from expression 4:

dFCS=RemG(X) (X8n B(X))                          (expression 4)

The basic idea is to split n into a kind of base N with N being a power of 2

n=n0 +N·n1 

with 0≦n0 ≦N-1. As 8n is lower or equal to 8K bytes (the maximum length of a Frame Relay frame), n is lower or equal to 8K (=8192) and

0≦n1 ≦8192/N

According to CRC code linearity, expression 4 can be rewritten as:

dFCS=RemG(X) (X8N·n.sbsp.1)·X8n.sbsp.0 ·B(X))

dFCS=RemG(X) (RemG(X) (X8N·n.sbsp.1)·RemG(X) (X8n.sbsp.0 ·B(X)))                                          (expression 5)

dFCS=RemG(X) (RemG(X) (X8N·n.sbsp.1)·RemG(X) (RemG(X) (X8n.sbsp.0)·RemG(X) (B(X))

The expression RemG(X) (X8N·n.sbsp.1) can be precomputed in a table, T1, of 8192/N inputs, as a function of n1 :

T1 (n1)=RemG(X) (X8N·n.sbsp.1)

The expression RemG(X) (X8n.sbsp.0) can be precomputed in a table, T0, of N inputs, as a function of n0 :

T0 (n0)=RemG(X) (X8·n.sbsp.0)

dFCS=RemG(X) (T1 (n1)·RemG(X) (T0 (n0)·RemG(X) (B(X)))

B(X) being of degree<16 (two bytes modified field in the Frame Relay messages),

dFCS=RemG(X) (T1 (n1)·RemG(X) (T0 (n0)·B(X)))                                 (expression 6)

Let's define a new function Remult applied to 2 polynomials A(X) and B(X) such as:

A(X)Remult B(X)=RemC(X) (A(X)·B(X))

using Remult function, expression 6 becomes:

dFCS=T1 (n1) Remult (T0 (n0) Remult B(X))

The algorithm to be run is the following (algorithm 1):

Read the T0 table at the address n0

perform B(X) Remult T0 (n0) (and let's call R(X) the result)

read the T1 table at the address n1

perform R(X) Remult T1 (n1)

If n<N then n1 =0 and n=n0. Only T0 table needs to be read and the algorithm is limited to 2 operations:

Read the T0 table at the address n0

perform R(X) Remult T(n1)

This last simpler algorithm is for `short packets` with length lower than N.

To evaluate the table size, we first now that the polynomial representation of one entry is a remainder of a division by G(X) of degree 16. Thus, a table entry is on 2 bytes.

n=n0 +N·n1 

n≦8192 and 0≦n1 ≦8192/N

The number of entries is N for T0 (n0) table and 8192/N for T1 (n1) table. The total tables size for dFCS calculation is:

Size (in bytes)=2(N+8192/N)

One can refer to the table of FIG. 2 providing the different T0 and T1 table sizes necessary to perform dFCS calculation corresponding to the different message size and the chosen size for `short messages`. For example, for short packet of 256 bytes, the table size is 576 bytes.

The block diagram of FIG. 3 describes the solution as implemented in an intermediate network node (in the line adapter part of the network node) for the calculation of the new FCS of a modified message.

A sixteen 300 16 bits bus 300 conveys the original value of the message field which will be modified in the intermediate network node. Mathematically this original message field is represented by the polynomial H(X) (see description above). Another sixteen bits bus 301 conveys the message field modified mathematically represented by the polynomial H'(X). The block 302 represents the logical XOR function and the result of this logical operation is conveyed on the sixteen bits bus 303 and is represented by the polynomial B(X). The value m=8n-16 is conveyed on the sixteen bits bus 304. B(X) and m are the inputs to the 306 block for calculation of dFCS. On sixteen bits bus 305 is conveyed the original FCS. dFCS and the original FCS are the inputs of the logical XOR operator represented by the block 308. The output on the sixteen 16 bits bus 309 is new value of FCS'.

The block 306 in FIG. 3 is for dFCS computation. The preferred embodiment of the invention is a software implementation of the solution of the general algorithm. Moreover, let's suppose the Remult function is implemented in hardware as a special instruction of the processor inside the intermediate network node adapter. The algorithm includes 5 instructions:

R1←B(X)

R2←T0 (n0) Read the T0 table

R1←R1 Remult R2

R2←T1 (n1) Read the T1 table

R1←R1 Remult R2

If the message is a `short packet` (means n<N and n1 =0) the algorithm is reduced to the 3 instructions:

R1←B(X)

R2←T0 (n) Read the T0 table

R1←R1 Remult R2

As we have taken in the assumption a maximum byte count of 8K, the number of bits in the message is 13. If N=256, n0 is made of the 8 low order bits of the frame bytes count and n1 is the 5 high order bits. In that case (refer to the table, FIG. 2) the table size requires 576 bytes.

As for computer cycles, one can see that large packets computation takes 5 cycles and short packets computation requires 3 cyclcs.

FIG. 4 describes the hardware implementation of the Remult function.

Polynomial expression of the Remult function applied to the polynomials A(X) and B(X) is:

A(X)Remult B(X)=RemG(X) (A(X)·B(X))

As the assumptions for this special embodiment description is that the modification of the message applies to two bytes only of the message header, the polynomials which will be considered in this Remult implementation are of degree 15.

It comprises the following three entities:

1. A 16 bits×16 bits modulo 2 multiplier (403) operating as a classical multiplier but without carry, the polynomial coefficients belonging to Galois's Field modulo 2; the result on 31 bits is conveyed on the thirty two bits bus 404. The 2×16 bits inputs are conveyed on input sixteen bits buses 401 and 402.

The module 2 multiplier can be implemented with 256×2 way NAND and 235×2 way XOR. It is 5 layers deep.

2. A function (407) which computes the remainder of the division by G(X) of the 15 high order bits of the result obtained by the modulo 2 multiplication of this result (on sixteen bits bus 405), by X16. It can be implemented with 48×2 way XOR and is 8 layers deep.

3. The addition of the previous result (on sixteen bits bus 408) to the 16 low order bits of the modulo 2 multiplication (on sixteen bits bus 406). This requires 16×2 way XOR (409) and is 1 layer deep. The result of the operation 409 is conveyed on bus 410.

The Remult function can be built in hardware with 555×2 way gates, which is in the order of 1% of a 100K gate chip like those available in today's technology. The total depth is 14 layers, which represents less than 20 Ns delay in a 0.8 CMOS technology

The choice of the limit size between short and large packets depends on the capacity of the intermediate network node in terms of computing resources and memory size.

The choice of the `N` base corresponds to the maximum size of `short messages`. It is the best compromise among all the performance characteristics of the network node. In terms of cycles for computing, as previously said, processing for short messages is relatively more expensive compared to the treatment of large messages; whatever the size of the messages, the computing cycles necessary for dFCS computation must not exceed the processor capacity, which depends on the media speed constraint. The maximum size of short messages must be chosen taking into account the computing capacity. FIG. 6 illustrates the computing capacity of one intermediate network node, considering the media speed and the size of the messages. The curve (in two steps) representing the cycles necessary for dFCS calculation must not exceed the second half region defined by the media speed constraint curve. The invention optimizes the processing for short messages and the algorithm for large packets extends the optimized algorithm for short packets.

As the different embodiments of the invention depend on two criteria which are the network type and the choice between a hardware or software implementation, let's see now that the solution reaches also the performance and simplicity objectives in the other cases than those presented with the special embodiment solution.

If the network is not a Frame Relay network, let's consider the alternatives and the effect of the invention applied to the other network message structure:

The modified field is not the header: this implies that the number n is not directly the size of the message in bytes but must be deducted from the size of the message. This require one step more but not really significant in the global performance of the dFCS calculation.

If the message is not based on bytes, but on bits it is not the case with the current network messages requiring CRC security checking but the invention applies also to this kind of structure: the only impact is on tables size which is only multiplied by 8:

dFCS=RemG(X) (Xm+16 B(X))                        (expression 3)

If m is no more a multiple of 8 we apply the split in base N to an other defined n:

n=m+16

m is a value in bits, n≦8.8192

n=n0 +N·n1 

n≦8.8192 and 0≦n1 ≦8.8192/N

The number of entries is N (max 8.8192) for T0 (n0) table and 8.8192/N for T1 (n1) table. The table size has only been multiplied by 8.

The max length of the message can be greater than 8K Bytes (case of Frame Relay), it does not reduce the performance improvements of the invention:

Assuming max length of the message is 8K and N is 256 bytes, the table size is:

2(N+8K/N)=576 bytes

Assuming max message length is 64K and N is 256 bytes, the table size is only:

2(N+8K/N)=1024 bytes

In the case of Frame Relay, the calculation of dFCS is based on multiplications of polynomials of degree lower or equal to 16 which is the degree of the generator polynomial: this simplifies the physical implementation of CRC calculations in the intermediate network nodes. If the degree of the polynomial representing the modified field size is larger or equal to the degree of the generator polynomial (CRC polynomial generator can be of degree 16, 32 etc. . . . ), the field will be split into several fields of degree lower or equal to the degree of the polynomial generator and the same general algorithm would be applied as many times as needed with the similar performance benefits.

The maximum length of the message can be greater than 8K Bytes (case of Frame Relay), it does not impact the performance improvements of the invention:

As for the other embodiments of the invention, we can consider other cases such as full hardware implementation and full software implementation.

Full hardware implementation.

FIG. 5 illustrates a coprocessor implementation of block 306 (FIG. 3) in the solution for Frame Relay. The functions of this coprocessor which will be used by the master processor are the following:

Write B(X) and n: B(X) is provided by the XOR of old and previous field modified (see FIG. 3). n is the frame byte count (maximum 8K in the case of Frame Relay, represented with 13 bits).

Read the result: dFCS. The result is available after one or two coprocessor cycles depending on the size of the message.

All the buses in FIG. 5 are sixteen bits buses. The block 510 is for reception of the input data: B(X) and n, the number of bytes. B(X) is sent and stored at the level of block 515 to be sent as input to the block Remult operator 535; n is sent for splitting in block 520. n is a 8K maximum number (8K Bytes being the maximum frame size) represented on 13 bits. The n0 address (one byte) is sent for searching in T0 table (block 530) and the result of table look up is sent as input to the block Remult operator (535); the n1 address (one byte) is sent for searching in T1 table (block 525) and the result of table look up is sent as input to the block Remult operator (540). The output from 535 Remult operator, the Remult of the two inputs, B(X) and T0 (n0) is sent as one input to the second Remult operator (block 540). As output from the Remult operator 540, is the dFCS value sent to the block 545 for transfer thru the bi-directional bus 500.

Full software implementation for Frame Relay:

The full software implementation comprises two correlated algorithms for short and long messages. The Remult hardware operator is not used, the two new tables are larger than with the preferred embodiment and the number of necessary computer cycles has also increased. However, the full software implementation of the new FCS calculation based on the differentiation between short and long packets, reaches the objectives of performance and simplification:

n being the message size in bytes, no size for `short packets` still lower than N

n=n0 +N·n1 

dFCS=RemG(X) (RemG(X) (X8N·n.sbsp.1)·RemG(X) (X8n.sbsp.0 ·B(X)))                                          (expression 5)

The expression RemG(X) (X8N.n1) can be precomputed in a table, T1, of 8192/N inputs, as a function of n1 (same table as in the implementations with hardware):

T1 (n1)32 RemG(X) (X8N·n.sbsp.1)

Let's compute the following part of expression 5 which is also the expression of dFCS for short packets (n1 =0):

RemG(X) (X8n.sbsp.0 ·B(X))

In the case of Frame Relay, B(X) is a degree 16 polynomial representing a 16 bits field (two bytes). If we split the two bytes into the Most Significant Bits (MSBs) B1 (x) and Least Significant Bits (LSBs) B2 (x), then polynomial B(x) can be written:

B(X)=X8 B1 (X)+B2 (X)

RemG(X) (X8n.sbsp.0 ·B(X))=RemG(X) (X8(n.sbsp.0+1) ·B1 (X)+(X8n.sbsp.0 ·B2 (X))

RemG(X) (X8n.sbsp.0 ·B(X))=RemG(X) (X8(n.sbsp.0+1) ·B1 (X)) +RemG(X) (X8n.sbsp.0 ·B2 (X))                   (expression 7)

The expressions:

RemG(X)(X8(n.sbsp.0+1) ·B1 (X))

and

RemG(X) (X8n.sbsp.0 ·B2 (X))

can be precomputed in a table, T' of (n0 +1)×28 inputs where the values are represented as a function of n0 (integer) and the 8th order polynomials Bi (X) with the coefficients belonging to the modulo 2 Galois's field (all the possible 8 bits values).

T'(n0,Bi (X))=RemG(X) (Xn0 ·B1 (X))

The size in bytes of the table T' (1 entry being a double byte) is:

(n0 +1)×28 ×2                        (expression 8)

Expression 7 is calculated with T':

RemG(X) (X8n.sbsp.0 ·B(X))=T'(n0 +1, B1)+T'(n0, B2)

expressing also the dFCS calculation for short packets. One can easily calculate that the expression 7 computation algorithm including two table look ups: one for B1 and a second for B2, takes 12 computer cycles.

For long packets calculation, coming back to expression 5 calculation algorithm:

dFCS=RemG(X) (RemG(X) (X8N·n.sbsp.1)·RemG(X)) (X8n.sbsp.0 ·B(X)))                                          (expression 5)

Expression 5 is calculated using T' and T1 :

dFCS=RemG(X) (T1 (n1)·(T'(n0, B1)+(T'(n0, B2)))

One can evaluate this calculation takes 150 computer cycles when following the block diagram of FIG. 7:

710 is for B(X) calculation from the original and modified fields respectively represented by polynomials H(X) and H'(X).

720 represents computation of n0 and n1 from n, taking into account the maximum size one has decided for short packets

730 represents the two T' table look ups and the addition of the result to obtain

RemG(X) (X8n.sbsp.0 ·B(X))=T'(n0, B1)+T'(n0, B2)

740 step is for T1 table look up, n1 being the input variable.

T1 (n1)=RemG(X) (X8N·n.sbsp.1)

750 is for modulo 2 polynomial multiplication without carry.

T1 (n1)·(T'(n0, B1)+T'(n0, B2))

760 is to compute the remainder of modulo 2 polynomial division of the polynomial resulting of the previous step by the generator polynomial G(X).

dFCS=RemG(X) (T1 (n1)·(T'(n0, B1)+T'(n0, B2)))

The following table provides the computing resources necessary to compute dFCS with the best existing solution identified (first row), the full software implementation of the invention (second row) and the solution of preferred embodiment of the invention (third row); the assumptions on network messages characteristics being these of Frame Relay.

______________________________________Solution    Table size                 Cycles      Notes______________________________________Prior art solu-       32 bytes  900         13 iterationstion soft-warePrior art solu-       32 bytes  13          13 iterations,tion                              Remult oper-(EP-313707)                       atorhardwareNew software       16K bytes 12 (short   2 iterations                 packets),                 150 (long                 packets)New best    576 bytes 3 (short    Only Remult                 packets), 5 hardware                 (long packets)                             implemented______________________________________

Compared to the existing solution, the computing resources in terms of memory are comparable and in terms of computer cycles are significantly improved for dFCS calculation with the best solution of the invention. As the dFCS calculation is the central point for calculation of modified CRC encoded messages, the solution of the invention allows corresponding substantial improvement for this calculation in intermediate network nodes.

高效检索全球专利

专利汇是专利免费检索,专利查询,专利分析-国家发明专利查询检索分析平台,是提供专利分析,专利查询,专利检索等数据服务功能的知识产权数据服务商。

我们的产品包含105个国家的1.26亿组数据,免费查、免费专利分析。

申请试用

分析报告

专利汇分析报告产品可以对行业情报数据进行梳理分析,涉及维度包括行业专利基本状况分析、地域分析、技术分析、发明人分析、申请人分析、专利权人分析、失效分析、核心专利分析、法律分析、研发重点分析、企业专利处境分析、技术处境分析、专利寿命分析、企业定位分析、引证分析等超过60个分析角度,系统通过AI智能系统对图表进行解读,只需1分钟,一键生成行业专利分析报告。

申请试用

QQ群二维码
意见反馈