The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention.
In the drawings:
Reference will now be made in detail to the preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings.
A communication packet processing apparatus and method in accordance with the preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
Referring to
That is, each of the communication packet processing apparatuses 10 forms one communication node and is built in each of the control systems as a module.
Two upper and lower Ethernet communication ports are formed on the front surfaces of each communication packet processing apparatus 10. Two line communication media cables for transmission and reception are connected to each Ethernet communication port.
The plurality of control systems forming a distributed control system include the modules of the communication packet processing apparatuses 10. The Ethernet communication ports of the communication packet processing apparatuses 10 are connected to each other through the two line communication media cables, thereby forming the total dual type ring topology Ethernet network.
The detailed structure of the communication packet processing apparatus for the ring topology Ethernet network capable of preventing the permanent packet looping in accordance with the present invention will now be described with reference to
The communication packet processing apparatus for the ring topology Ethernet network capable of preventing the permanent packet looping includes a fast Ethernet transmitting/receiving device 3 installed on one communication node of the Ethernet network, for receiving or transmitting a communication packet to communication media of the Ethernet network.
In addition, the communication packet processing apparatus includes a Central Processing Unit (CPU) 1 installed on the communication node, for generating or processing and consuming the communication packet.
A Media Access Controller (MAC) 2 of the communication packet processing apparatus is connected between the CPU 1 and the fast Ethernet transmitting/receiving device 3 on the communication node.
The MAC 2 compares a destination MAC address of the communication packet received and provided by the fast Ethernet transmitting/receiving device 3 with its MAC address, and decides whether to transfer the communication packet to the CPU 1 according to the comparison result.
The MAC 2 also compares a source MAC address of the communication packet received and provided by the fast Ethernet transmitting/receiving device 3 with its MAC address, and decides whether to terminate the communication packet or transfer the communication packet to another communication node according to the comparison result.
The fast Ethernet transmitting/receiving device 3 can be called a media interface. In this embodiment, two fast Ethernet transmitting/receiving devices 3 are installed. The fast Ethernet transmitting/receiving devices 3 include ports port0 and port1 connectable to a pair of communication media cables for transmission and reception, for example, a pair of optical cables, respectively.
The CPU 1 processes and consumes the communication packet from another communication node, or generates the communication packet for another communication node.
In transmission, the MAC 2 transfers the communication packet from the CPU 1 to the fast Ethernet transmitting/receiving device 3. In reception, the MAC 2 is operated as follows on the basis of a prestored program and a preset and prestored MAC address.
The MAC 2 compares the destination MAC address contained in the received communication packet, namely, the address of the communication node intended to receive the communication packet with its preset and prestored MAC address.
As the comparison result, if the two addresses are identical, it means that the transmitting communication node has designated the current communication node as the receiving communication node and transmitted the communication packet to the current communication node. Therefore, the MAC 2 transfers the received communication packet to the CPU 1.
As the comparison result, if the two addresses are different, the MAC 2 compares the source MAC address of the received communication packet, namely, the address of the communication node which has generated and transmitted the communication packet (hereinafter, referred as ‘source address’) with its preset and prestored MAC address (MAC address of the communication node receiving the communication packet).
If the source address is identical to the preset MAC address, it means that the communication packet transmitted by the current communication node has returned by network looping. Thus, the MAC 2 terminates the communication packet.
If the source address is different from the preset MAC address, it means that another communication node has generated and transmitted the received communication packet by designating yet another communication node as the destination communication node. Accordingly, the MAC 2 transmits the communication packet to the corresponding communication node through a different port from the receiving port.
In accordance with the present invention, the communication packet processing apparatus further includes a memory 4 for temporarily storing the communication packets. When the MAC 2 and the CPU 1 intend to transmit the communication packet to the same fast Ethernet transmitting/receiving device 3 at the same time, the memory 4 serves to prevent collision. The memory 4 is called a queue.
As shown in
In each communication node, the MAC 2 can decide whether the communication packet has been damaged on the basis of the information of the FCS by using the prestored program. If the communication packet has been damaged, the MAC 2 can terminate the communication packet.
The operation of the communication packet processing apparatus and the communication packet processing method in accordance with the present invention will now be explained with reference to
The communication packet processing method is classified into two. The first method gives the authority of terminating the communication packet to the whole communication nodes.
The second method sets a specific communication node as a manager node, and gives the authority of terminating the communication packet performing the permanent looping to the manager node. The ordinary communication nodes transfer the communication packets to another communication nodes, when the destination addresses of the communication packets are different from their addresses.
The first communication packet processing method will now be described with reference to
When the MAC 2 receives the communication packet in step S1, the MAC 2 goes to step S2 and compares the destination MAC address of the frame of the communication packet with the MAC address of the receiving communication apparatus, namely, its communication node.
As the comparison result of step S2, if the two addresses are identical, it means that the transmitting communication node has transmitted the communication packet to the current communication node. Therefore, the MAC 2 goes to step S3 and transfers the communication packet to the CPU 1.
As the comparison result of step S2, if the two addresses are different, the MAC 2 goes to step S4 and compares the source MAC address of the received communication packet with the MAC address of the receiving communication apparatus, namely, its communication node.
As the comparison result of step S4, if the two addresses are identical, it means that the communication packet transmitted by the current communication node has returned by looping. Accordingly, the MAC 2 goes to step S5 and terminates the communication packet.
As the comparison result of step S4, if the two addresses are different, the MAC 2 goes to step S6 and transmits (transfers) the received communication packet to another communication node through a different port from the receiving port.
The second communication packet processing method will now be described with reference to
As illustrated in
When the MAC 2 of the communication node set as the manager node receives the communication packet in step S10, the MAC 2 goes to step S11 and compares the destination MAC address of the frame of the received communication packet with the MAC address of the receiving communication apparatus, namely, its communication node.
As the comparison result of step S11, if the two addresses are identical, it means that the transmitting communication node has transmitted the communication packet to the current communication node. Therefore, the MAC 2 goes to step S12 and transfers the communication packet to the CPU 1.
As the comparison result of step S11, if the two addresses are different, the MAC 2 goes to step S13 and terminates the communication packet.
As shown in
When the MAC 2 of the ordinary communication node which has not been set as the manager node receives the communication packet in step S20, the MAC 2 goes to step S21 and compares the destination MAC address of the frame of the received communication packet with the MAC address of the receiving communication apparatus, namely, its communication node.
As the comparison result of step S21, if the two addresses are identical, it means that the transmitting communication node has transmitted the communication packet to the current communication node. Accordingly, the MAC 2 goes to step S22 and transfers the communication packet to the CPU 1.
As the comparison result of step S21, if the two addresses are different, the MAC 2 goes to step S23 and transmits, namely transfers the communication packet to another communication node through a different port from the receiving port.
By transferring the received communication packet through the different port from the receiving port, the MAC 2 transmits the communication packet from the clockwise direction to the anticlockwise direction and vise versa in the ring topology communication network, thereby improving a transmission success rate of data.
As discussed earlier, in accordance with the present invention, the communication packet processing apparatus and method for the ring topology Ethernet network capable of preventing the permanent packet looping can prevent the communication packet generated by the receiving communication node, the communication packet which does not have a specific destination address, the communication packet which has a destination address which does not exist on the network, or the communication packet which has a damaged frame from seriously reducing the performance of the network by the permanent looping.
In addition, the communication packet processing apparatus and method for the ring topology Ethernet network can reduce an unnecessary processing load of the communication node receiving the communication packet performing the permanent looping, and improve the transmission success rate of data by transmitting the communication packet to both directions.
As the present invention may be embodied in several forms without departing from the spirit or essential characteristics thereof, it should also be understood that the above-described embodiments are not limited by any of the details of the foregoing description, unless otherwise specified, but rather should be construed broadly within its spirit and scope as defined in the appended claims, and therefore all changes and modifications that fall within the metes and bounds of the claims, or equivalents of such metes and bounds are therefore intended to be embraced by the appended claims.
| Number | Date | Country | Kind |
|---|---|---|---|
| 10-2006-0096378 | Sep 2006 | KR | national |