METHOD AND SYSTEM OF ROUTING DATA BLOCKS IN DATA COMMUNICATION NETWORKS

Abstract: The invention relates to a method of routing data blocks in a data communication network comprising a plurality of nodes through which the data blocks are routed. A node identifier and a port identifier are assigned to each node and to each port in the nodes,respectively. Once the route has been established in the sending station, thereby identifying the nodes in the route to be crossed over by the data blocks and in each node of the route the destination port to be used by that node, the sending station includes in the data blocks to be sent a routing tag RT whose value is such that: RT modulo (Ni) = Pi where Ni are the node identifiers of the nodes in the route, and Pi are the destination port identifiers of the respective nodes in the route. At each node receiving a data block, dividing RT by the node identifier provides the the destination port identifier which specifies the port through which the received block has to be retransmitted.

Description: Technical Field The present invention relates to high speed data communication networks and more particularly to a method of routing data blocks through transit nodes within a data communication network. Background Art As high speed transmission facilities are becoming available at attractive prices, it becomes necessary to address the impact of such new facilities on network architecture, and particularly on routing in transit nodes. A high throughput is a key requirement for such nodes (several thousand of blocks of data per second), therefore routing tasks must be performed as rapidly as possible. Similar requirements can also be found in the interconnection of local area networks. Usually routing in a network is performed by means of tables. This method implies a mechanism to enable a route manager function, which has to be in communication with each routing process, to load the routing tables in every node within the network, and to insure the consistency of their contents when changes occur in the route definitions. Other methods do not need a routing table in intermediate nodes but imply that the contents of frames be changed by the routing process, or includes a long routing paths address. EP-A-0,006,798 describes a system for routing data blocks from a first station to a second station of a data communication network comprising a plurality of nodes through which the data blocks are routed, each node having a plurality of input/output ports. Means are provided at said first station for providing each data block to be sent to the second station, a routing tag whose value is a function of the route through the nodes to be followed by the data block to reach the second station; means at said first station for transmitting the data blocks including the routing tag over the network; means at each node in the route for receiving the data blocks and for extracting the routing tag from the received blocks. Summary of the Invention It is therefore a general object of the present invention to provide a method and system of routing data blocks through a network in which the routing task within each transit node is minimal and can be executed by a microprocessor, or by hardware. Another object of the invention is to provide a method and system of routing data blocks through a network which do not require the use of a long routing path address. Another object of the invention is to provide a method and system of routing data blocks through a network which do not require any routing table in the transit nodes and any further change in the nodes if additional nodes are installed. Generally, the invention provides a method for routing data blocks from a first station to a second station of a data communication network comprising a plurality of nodes through which the data blocks are routed. Said method including the steps of: (a) assigning a node identifier Ni to each node in the network; (b) assigning a port identifier Pi to each port of each node; (c) establishing a route to be followed by the data blocks sent by said first station to said second station, thereby identifying the nodes in the route to be crossed over by the data blocks and in each node of the route the destination port through which the node has to retransmit the data blocks; and said method being characterized in that is further includes: (d) transmitting from said first station the data blocks, each data block including a routing tag RT whose value is such that: where: N1, N2, ..., Nn are the node identifiers of the nodes in the route, and P1, P2, ..., Pn are the destination port identifiers of the respective nodes in the route; and (e) dividing at each node receiving a data block, the routing tag included in the received data block by the node identifier of this node, the division operation providing the destination port identifier which specifies the port through which the received block has to be retransmitted. According to one aspect of the invention, said node identifiers are selected amongst the polynomials of the first degree of the Galois ring G(2 8 ) and the port identifiers are selected amongst the elements of the same Galois ring. The invention also provides a system for routing data blocks from a first station to a second station of a data communication network comprising a plurality of nodes through which the data blocks are routed, each node having a plurality of input/output ports, characterized in that it comprises: means at said first station for providing to each data block to be sent to the second station, a routing tag RT whose value is a function of the route through the nodes to be followed by the data block to reach the second station; means at said first station for transmitting the data blocks including the routing tag RT, over the network; means at each node in the route for receiving the data blocks; means at each node in the route for extracting the routing tag from the received blocks; and means at each node in the route for dividing the routing tag from the received blocks, by a node identifier Ni, and thereby providing a destination port identifier Pi which specifies the port of the node through which the received data blocks have to be retransmitted, the value of the routing tag RT being such that: where: N1, N2, ..., Nn are the node identifiers of the nodes in the route, and P1, P2, ..., Pn are the destination port identifiers of the respective nodes in the route. Brief Description of the Drawings Fig. 1 shows a schematic representation of a network according to the teaching of the present invention. Fig. 2 is a block diagram showing the functional components of a node according to the invention. Fig. 3 is a block diagram showing a communication processor embodying the invention. Fig. 4A is a block diagram showing the principle of operation of a polynomial divider. Fig. 4B is a block diagram showing the principle of operation of routing mechanism 46. Fig. 5 is a block diagram of the routing mechanism 46 according to the invention. Detailed Description of the Invention Fig. 1 shows an overall schematic diagram of a typical data communication network embodying the teaching of the present invention. Generally, in data communications networks, a plurality of stations exchanges data blocks organized in a specific format called a frame, which are routed from the transmitting station to the receiving station through a plurality of transit nodes. For clarity, Fig. 1 which will be used to describe the method of the invention, illustrates a system comprising only a transmitting station 10 transmitting frames to a receiving station 12, through three transit nodes referred to as Node 1 to Node 3. Each of the station could be, for example, an IBM 3725 Communication Controller attached to a host system and which is capable of transmitting and receiving data blocks in the form of frames of the type known as HDLC (High-level Data Link Control) frames. In Fig. 1, each of the node, Node 1 to Node 3, is shown as having, for example, eight input/output ports, and could be implemented as illustrated in Figures 2 and 3. A Route is a path defined by a set of physical links and nodes allowing transmission of frames between the transmitting station and the receiving station. The transmitting station 10 adds a so-called Routing Tag (RT) whose value will be described later on, at the beginning of the frames to be sent to a receiving station through the network, and transmits it through its Link Interface 14, which can be of any type depending on the physical link used for transmission. The receiving station 12 receives the frames through its Link Interface 16 and deletes the Routing Tag at the end of the route. The Routing tag can be inserted in the HDLC frame as illustrated below. F, RT, A, C, Info, FCS, F The HDLC frame format is well known and made up of a header flag (F), an address field (A), a control field (C), an information field (Info), a frame check sequence field (FCS) and a trailer flag (F). Each node which receives a frame, checks it for validity in accordance with the HDLC procedure. If the frame is found invalid, it is disregarded. If the frame is found valid, the Routing Tag is processed and provides an identifier of the output port of the node through which the received frame has to be retransmitted. The Routing Tag RT is calculated by a route manager within the transmitting station when a route is established. A node I is given a specific node identifier Ni. When node I receives a frame, it calculates Pi = RT modulo Ni, in other words, it divides RT by Ni and saves the remainder Pi. RT is calculated according to the Chinese Remainder Theorem in such a way that Pi gives directly the address of the link on which the corresponding frame is to be sent, in all nodes encountered on a route. The Chinese Remainder Theorem may be expressed in the form: In a unitary commutative ring, if we consider a set of elements a1, a2, ...., an which are relatively prime by pairs and a set of elements b1, b2, ...., bn, such as (bi mod (ai)) = bi, then P defined by the following relation: where: Iaj(ai) is the inverse of aj modulo ai is such that: The fact that is is possible to derive from a single element of the ring a predetermined pair of elements is used to let each node derive from the Routing Tag RT, the identifier of the destination port through which the received frame has to be retransmitted. The method of the invention is based on the following: each node in the network is associated with a node identifier Ni selected amongst the elements a1, a2, ..., an of the ring; each port in each node is associated with a port identifier Pi selected amongst the elements b1, b2, ..., bn of the ring; in the transmitting station, once the route to be followed by the sent frames to reach the receiving station has been determined, that is, the nodes to be crossed over by the frames, and the output port to be used by the crossed nodes, the Routing Tag is calculated in accordance with relation (2) below which is directly derived from relation (1), and RT is inserted in the frame to be transmitted; and each node receiving a frame, divides the received RT by its node identifier Ni, which division operation provides the port identifier, Pi, and retransmits the received frame through the output port specified by this port identifier Pi. We have: In actual networks, each station can be provided with a table containing the addresses of all the other stations in the network, and associated with each of the addresses the pre-computed RT corresponding to the route established for reaching that address. Computation of RT in accordance with relation (2) can be carried out by any programming routine in the station. When a station has to send a frame to a predetermined station, it has only to fetch out from the table the value of RT corresponding to the address of said predetermined station. The table has been illustrated as block 18 within station 10 in Fig. 1. In the example shown in Fig. 1, the node and port identifiers have been selected from the ring of relative integers. Relations (1) and (2) are valid in all circumstances if the following conditions are met: A node must be assigned an integer larger than the number of links it controls. All integers assigned to nodes encountered on a route must be relatively prime by pairs. In the example shown on Fig 1 the three nodes are given the following integers: identifier of Node 1 : N1 = 9 identifier of Node 2 : N2 = 10 identifier of Node 3 : N3 = 11 identifier of the output port of Node 1 : P1 = 3 identifier of the output port of Node 2 : P2 = 1 identifier of the output port of Node 3 : P3 = 7 RT is calculated in accordance with relation (2) which can be written in this example as: Since: Then, It could be checked that : The integer to be put in RT has an upper bound which depends on the number of nodes encountered on a given route and on the integers assigned to these nodes. For n nodes on a route RT max = (N1 x N2 x . . . . x Nn) - 1 Where N1, N2, ...Nn are the node identifiers. For instance a two-byte RT will be adequate in a network including up to 12 nodes with a small number of ports, if the maximum number of nodes on a route is 3, the upper bound of a product of any three numbers picked in the list of numbers (11,13,14,15,17,19,23,29,31,37,41,43) being lower than 65,535. As the number of nodes included in the network increases additional prime numbers have to be added to the list and the size of RT increases. Divisions of large integers may become cumbersome, moreover this operation is not implemented in all microprocessors. As the division is also defined in the algebra of polynomials, the routing Tag RT and the identifiers can also be determined using the algebra of polynomials. Polynomials can be used in many ways, however as microprocessors are designed to handle bytes, we will concentrate on the application of polynomials with 8-bit coefficients. Let us consider a primitive polynomial of degree 8 with binary coefficients: G(X) = X⁸ + X⁴ + X³ + X² + 1 A root a of this polynomial, when raised at all powers from 1 to 255, will generate all the non zero elements of a Galois field made of 256 elements, referred to as GF(2⁸). Let us assign now to each node of a network a polynomial Ni (X) of first degree with coefficients in GF(2⁸) Ni(X) = X + ai where i can vary from 1 to 255. As 0 can also be used, the capability to have 256 nodes in the network is provided. It can easily be verified that for any pair of different polynomials (X + ai) and (X + ak) it is possible to find ai such that: ai x (X + aj) = 1 modulo (X + ak) Thus it is possible to assign to each node identifier a polynomial of first degree with coefficients within GF(2⁸), Pi(X) = X + ai , and assign to each port identifier a polynomial of degree zero, that is an element of GF(2⁸). The Routing Tag RT can be calculated by using relation (1) which when used with polynomials can be written in the form: We still have : If an information frame is to be routed through n nodes, the RT polynomial will have at most degree n-1, that is the RT will have a maximum size of n bytes. If a polynomial of degree 1 or higher is divided by Ni(x) the remainder of the division will have degree zero that is, the remainder will be one of the 256 elements of GF(2⁸). This allows a node to have up to 256 ports. Computation of RT in accordance with relation (3) can be carried by any programming routine in the stations. Because the inverse of any element of ring G(2⁸) is an element of this ring it is easy to determine a table containing the inverse element for every element of the ring. This speeds up computation of RT. Such a table has been constructed for the elements of G(2⁸) and is shown hereafter. Fig. 2 illustrates the schematic diagram of an example of transit node which embodies the invention. It mainly comprises a plurality of communication processors, each serving a port of the node. These communication processors, which will be described in details in connection with Fig. 3, are interconnected by a bus 20 which can be the Multibus 1 marketed by Intel (*). Each of the communication controllers is connected to other nodes or to a station through a port comprised of an appropriate high speedlink interface such as a V24 or a fiber optics interface. Such interfaces are widely used in the industry of data communications. In the example shown in Fig. 2, a routing mechanism according to the invention is included in each of the communication processors as will be explained subsequently. More details on the Multibus 1 bus is available in "Intel Multibus Specification" from Intel. Fig. 3 shows a block diagram for any one of the communication processors. The Link Interface is connected by a bus 30 to a communication controller 32 which, in the example shown in the figure is an Intel 82586 communication controller marketed by Intel. The communication controller 32 is connected through its local bus 34 to a common memory 36. Not shown in the figure, an Intel 8207 Advanced Dynamic RAM Controller controls the common memory 36. More details on the common memory 36 and the RAM Controller are available in "Microsystem Components Handbook- Volume 1" from Intel. The common memory 36 is connected to bus 20 via a bus 38 and to a microprocessor 40 through the microprocessor local bus 42. Microprocessor 40 is also connected to its local memory 44 and bus 20 through its local bus 42. Bus 42 is connected to the routing mechanism 46 which is shown in details in Fig. 5. In the example shown in the figure, the microprocessor 40 is an Intel 80186 microprocessor marketed by Intel. In operation, when a frame is coming from the Link Interface, it is handled by communication controller 32 which performs the following tasks: Header flag recognition Zero bit deletion FCS checking Data de-serialization and buffering into a so-called received frame area within the common memory 36. Information on the location and status of received frames is available in buffer descriptors also stored in common memory 36. A buffer descriptor includes information such as: The address of the first character of the received frame. The length of the frame. The address of the next buffer descriptor (if any) related to the same destination port. a flag meaning that the frame has been read by the destination port. A part of common memory 36 is reserved to store small areas, called port pointers, each one affected to one destination port and including the address of the first buffer descriptor related to frames for that port. Communication controller 32 executes commands stored in common memory 36 by microprocessor 40. Communication between the communication controller 32 and microprocessor 40 is carried out via the common memory 36 and four hardware signals (not shown in the figure): Interrupt signal used by controller 32 to draw microprocessor 40 attention Channel attention signal used by microprocessor 40 to draw controller 32 attention Hold signal used by controller 32 to request access to common memory 36 HLDA signal used by microprocessor 40 to accept the above request. More details on the communication controller 32 are available in the "Microsystem Components Handbook - Volume 2" from Intel. When a valid frame has been stored in the common memory 36, communication controller 32 informs microprocessor 40 which fetches out the routing tag of the received frame from the common memory, and stores it in its local memory 44. Then, microprocessor 40 transfers the routing tag to the routing mechanism 46 which divides the routing tag by the node identifier and provides the port identifier which specifies the destination port to which the received frame has to be transmitted. Microprocessor 40 reads out the port identifier from the routing mechanism 46 and stores it in its local memory 44. Microprocessor 40 then writes the port pointer associated with the destination port, within the common memory 36, with information on the received frame, and sends a message to the communication processor serving the destination port through bus 20. When the destination processor receives the message from the source port it reads its destination pointer within common memory 36, reads the received frame from that memory and stores it in the common memory of its communication processor. The received frame is then retransmitted through the communication controller of the communication processor serving the destination port. Figures 4A and 4B show the principle of operation of the routing mechanism 46 whose details are shown in Fig. 5, and which implements the routing method of the invention with polynomials in ring G(2⁸). As a reminder, when using polynomials, each node identifier is a polynomial of first degree of the form: Pi(X) = X + ai , and each port identifier is a polynomial of degree zero, that is, an element of G(2⁸). Fig. 4A illustrates the principle of operation of the division of any polynomial of any degree, n, by a polynomial of first degree which can be expressed in the form: g1X + g0. At each clock (CLK) time, a coefficient of the polynomial to be divided is inputted to the device of Fig. 4A. After n+1 clock times, the remainder of the division is available at the output from the memory element. The diagram of Fig. 4A can be simplified when using polynomials in G(2⁸), and when the divider polynomial of first degree is of the form: X + ai. Because the polynomial is X + ai, in the diagram of Fig. 4A, we will have g1 = g1⁻¹ = 1; In G(2⁸), each element is equal to its opposite, then we will have -g0 = g0. Accordingly, the diagram of Fig. 4A becomes that of Fig. 4B, which comprises only one multiplication by ai. Fig. 5 illustrates an exemplary embodiment of the routing mechanism 46 whose principle of operation is shown in Fig. 4B. The data bus lines D0-D7 from bus 42 (Fig. 3) are applied to the inputs of a 8-driver module 50 which can be of the LS244 type and whose outputs are connected to the first inputs set of a 8-XOR circuit module 52 which can be of the LS86 type. The outputs of module 52 are applied to the first inputs set of an 8-AND gate module 54 which can be of the LS08 type, and whose outputs are applied to the inputs of an 8-latch module 56 of the LS374 type. The outputs from module 56 are applied to one of the inputs of multiplier 58 whose other input receives the output from memory element 59. The output from multiplier 58 is applied to the second inputs set of module 52 whose outputs are also connected to the inputs of an 8-latch module 60 having its outputs connected to lines D0-D7. The memory element 59 contains coefficient ai of the node identifier Ni. Lines C1, C2 and C3 from bus 42 are connected to the input of inverters 62, 64, and 66. Lines C1, C2 and C3 carry signals S1*, S0* and PCS5* provided by the Intel 80186 microprocessor, which signals are used by the routing mechanism as READ ( RD ) , WRITE ( WR ) and CHIP SELECT ( CS ) , respectively. The output of inverter 62 is connected to one input of NAND gate 68 having its other input connected to the output of inverter 66 and its output connected to module 60. The output of NAND gate 68 is also connected to the input of a chain comprised of four inverters 70, 72, 74 and 76. The output of inverter 76 is connected to the eight inputs of the second inputs set of module 54. The outputs of inverters 62 and 64 are connected to the two inputs of NAND gate 78 whose output is connected to the clock input of module 60 and to one input of NAND gate 80 which has its other input connected to the output of NAND gate 68. The output of NAND gate 80 is connected to the clock input of module 56 through an inverter 82. The first operation which takes place in the routing mechanism is a read operation which is controlled by signals RD and CS which are available at the outputs of inverters 62 and 66, respectively. Signals RD and CS produce signal OE which activates the output enable input of module 60, and causes the contents of latch module 60 to be read out on lines D0-D7. Signal OE also forces to zero the outputs from module 54, setting the module 56 to zero. As the coefficients of RT are available on lines D0-D7, write operations are carried out. A write operation is controlled by signals WR and CS. Each time a coefficient is inputted to the mechanism, it goes through module 50, XOR module 52, module 54 and module 56 whose output is multiplied by ai in multiplier 58 which provides a partial result which is stored in latch module 60. When all the coefficients have been inputted to the mechanism, the result of the operation, that is the destination port identifier is available in latch module 60 which is read by microprocessor 40 through a Read operation. The routing mechanism illustrated in Fig. 5 can be replaced by a program running in microprocessor 40, but it has been found that such a program would not be as fast as desirable.

Claims: A method for routing data blocks from a first station to a second station of a data communication network comprising a plurality of nodes through which the data blocks are routed, characterized in that it comprises the steps of: (a) assigning a node identifier Ni to each node in the network; (b) assigning a port identifier Pi to each port of each node; (c) establishing a route to be followed by the data blocks sent by said first station to said second station, thereby identifying the nodes in the route to be crossed over by the data blocks and in each node of the route the destination port through which the node has to retransmit the data blocks; (d) transmitting from said first station the data blocks, each data block including a routing tag RT whose value is such that: where: N1, N2, ..., Nn are the node identifiers of the nodes in the route, and P1, P2, ..., Pn are the destination port identifiers of the respective nodes in the route; and, (e) dividing at each node receiving a data block, the routing tag included in the received data block by the node identifier of this node, the division operation providing the destination port identifier which specifies the port through which the received block has to be retransmitted. A method according to Claim 1, characterized in that said node identifiers are selected amongst the polynomials of the first degree of the Galois ring G(2⁸) and the port identifiers are selected amongst the elements of the same Galois ring. A system for routing data blocks from a first station (10) to a second station (12) of a data communication network comprising a plurality of nodes (node 1, node 2, node 3) through which the data blocks are routed, each node having a plurality of input/output ports (0-7), said system including: means at said first station for providing to each data block to be sent to the second station, a routing tag RT whose value is a function of the route through the nodes (3,2,1) to be followed by the data block to reach the second station; means at said first station for transmitting the data blocks including the routing tag RT, over the network; means at each node in the route for receiving the data blocks; means at each node in the route for extracting the routing tag from the received blocks; said system being characterized by: means at each node in the route for dividing the routing tag from the received blocks by a node identifier Ni, and thereby providing a destination port identifier Pi which specifies the port of the node through which the received data blocks have to be retransmitted, the value of the routing tag RT being such that: where: N1, N2, ..., Nn are the node identifiers of the nodes in the route, and P1, P2, ..., Pn are the destination port identifiers of the respective nodes in the route.

Inventors: PICARD, JEAN-LOUIS
Applicants: INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1986
Main classification: H04L12
IPC codes: H04L29, H04L12