This application claims priority to Chinese Patent Application No. 200810115302.8, filed Jun. 20, 2008, and International Patent Application No. PCT/CN2009/070180, filed Jan. 16, 2009, both of which are hereby incorporated by reference in their entirety.
The present disclosure relates to the field of network management, and more particularly to a method and a system for managing port statuses of a network device, and a relay device.
In the current network applications, users have an increasingly high requirement on the reliability of the network. Especially, as for some important service entry or access points, such as internet access points of enterprises and database servers of banks, the users always expect that the network operates uninterruptedly. But if only one network device is adopted at such service point, the system inevitably bear the risk of network interruption due to a single point failure, regardless of how high the reliability of the network device is.
A networking solution of two-node cluster hot backup may well solve the problem about the poor reliability of the single network device in the current network applications. In this solution, two dynamic virtual links are employed, in which one link is an active link, and the other link is a standby link. Once the active link fails, the system switches the service to the standby link to perform normal transmission, so as to guarantee the continuity of the service transmission.
If the port via which the firewall A and the router C are connected fails, the service to be transmitted from a terminal A to a terminal B may be actually transmitted via a link of Router C→Router D→Firewall B→Router B. The service to be returned from the terminal B to the terminal A may be actually transmitted via the link of Router A→Firewall A→Router C. Since the port via which the firewall A and the router C are connected fails, the link between the firewall A and the router C is interrupted, and thus the service to be returned from the terminal B to the terminal A cannot pass through. In this case, since the router A fails to sense the status of the port between the firewall A and the router C, the route cannot be switched. As a result, the transmission of the terminal service is interrupted.
During researching into the conventional art, the inventor finds that there exists at least the following problem in the conventional art.
Currently, the networking situations are increasingly complicated, and when the networking solution of two-node cluster hot backup is adopted, if the port of the relay device fails, the upstream/downstream device connected to the relay device cannot switch the terminal service to the standby link, which results in the interruption of the transmission of the terminal service.
Embodiments of the present disclosure provide a method and a system for managing port status of a network device, and a relay device, to avoid the interruption of the transmission of the terminal service.
A method for managing port status of a network device includes the following steps.
A relay device detects working status of ports in a logic group, and the ports are mounted on the relay device and connected to an upstream/downstream device.
Working status of the other ports in the logic group are all set as the Down status when it is detected that the working status of any port in the logic group is Down, so that the upstream/downstream device of the relay device switches the terminal service to a standby link according to the ports' Down status in the logic group being detected.
A relay device includes a detecting module and a setting module.
The detecting module is configured to detect working status of ports in a logic group, in which the ports are mounted on the relay device and connected to an upstream/downstream device.
The setting module is configured to set the other ports in the logic group as the Down status when it is detected by the detecting module that the working status of any port in the logic group is Down.
A system for managing port status of a network device includes: a relay device configured to detect working status of ports in a logic group and set the other ports in the logic group as Down when it is detected that the working status of any port in the preset logic group is Down; and an upstream/downstream device of the relay device configured to switch the terminal service to a standby link according to the ports' Down status in the relay device, in which the ports are mounted on the relay device and connected to the upstream/downstream device.
In the technical solution according to the embodiments of the present disclosure, the relay device detects the working status of the ports in the logic group, and when it is detected that the working status of any port in the logic group is a Down status, the relay device sets the working status of all the other ports in the logic group as the Down status. Thus, the upstream/downstream device of the relay device switches the terminal service to a standby link when it is detected that the ports of the relay device are in the Down status, so as to guarantee that the terminal service is transmitted uninterruptedly.
In order to make objectives, technical solutions, and advantages of the present disclosure more comprehensible, embodiments of the present disclosure are further described below in detail with reference to the drawings. Apparently, the embodiments described herein are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure. Based on the embodiments of the present disclosure described herein, any other embodiment achieved by those ordinary skilled in the art without any creative work falls within the scope of the present disclosure.
An embodiment of the present disclosure provides a method for managing port status of a network device, which includes the following processes. A relay device detects working status of ports in a preset logic group, in which the ports are mounted on the relay device and connected to an upstream/downstream device. When it is detected that the working status of any port in the preset logic group is a Down status, working status of all the other ports in the preset logic group are set as the Down status. Thus, when it is detected that the ports of the relay device are in the Down status, the upstream/downstream device of the relay device switches the terminal service to a standby link, so as to guarantee the normal transmission of the terminal service. As shown in
Block 101, the ports being mounted on the relay device and being connected to the upstream/downstream device of the relay device are bound as one logic group.
A list of association relations between port numbers and logic group numbers is created in the relay device according to the requirements of the terminal services, and a plurality of ports of the upstream/downstream device being connected to the relay device are assigned to the same logic group number. For example, when a terminal service is transmitted through a port A in the relay device and being connected to the upstream device of the relay device and a port B in the relay device and being connected to the downstream device of the relay device, the port A and the port B may be assigned to the same logic group. For another example, when a terminal service is transmitted through a port C and a port D in the relay device and being connected to the upstream device of the relay device and a port E and a port F in the relay device and being connected to the downstream device of the relay device, the ports C, D, E, and F are assigned to the same logic group. The relations between the ports of the relay device and the logic group are not limited to the above embodiment, and in the practical applications, the relation may be set correspondingly according to the requirements of the terminal services.
Block 102, the relay device detects the working status of the ports in the preset logic group, and when it is detected that any port in the preset logic group fails, that is, when it is detected that any port in the preset logic group is in a Down status, the relay device sets all the other ports in the preset logic group as the Down status.
Block 103, the upstream/downstream device of the relay device switches the terminal service to a standby link when it is detected that the ports of the relay device are in the Down status.
Block 102, all the port status in the logic group of the relay device is the Down status, and the change of the port status causes a failure of the uplink/downlink of the relay device. In this case, the upstream/downstream device connected to the relay device senses the failure of the ports through the Down status of the ports, and meanwhile switches the terminal service to the standby link.
Moreover, when the relay device detects that all the ports in the preset logic group work normally, the relay device sets all the ports in the preset logic group as an UP status. In this case, the upstream/downstream device connected to the relay device senses that the ports work normally through the UP status of the ports, and meanwhile switches the service back to an active link.
The embodiment is described below in detail through the following scenarios.
The schematic view of a networking solution in the first scenario is still based on the networking shown in
The schematic diagram of a networking solution in a second scenario is shown in
A relay device is further provided in an embodiment of the present disclosure. The relay device may be a firewall, a router, a switch, or a server and so on. Particularly, the relay device stores a list of association relations between port numbers and logic group numbers therein, and a plurality of ports are assigned for the same logic group number. The relay device detects the working status of the ports in the logic group. When it is detected that the working status of any port in the logic group is a Down status, the relay device sets working status of all the other ports in the logic group as the Down status. When it is detected that all the ports in the logic group work normally, the relay device sets working status of all the ports in the logic group as an UP status.
When the detecting module 11 detects that all the ports in the preset logic group work normally, the setting module 12 is further configured to set working status of all the ports in the preset logic group as the UP status.
A system for managing port status of a network device is further provided in an embodiment of the present disclosure. As shown in
Moreover, the relay device 21 is further configured to set working status of all the ports in the preset logic group as an UP status when detecting that all the ports in the preset logic group work normally, so that the upstream/downstream device 22 of the relay device switches the terminal service from the standby link back to the active link when it is detected that the ports of the relay device are in the UP status.
The relay device may be a firewall, a router, a switch, or a server and so on.
In the technical solution according to the embodiments of the present disclosure, the relay device detects the working status of the ports in the preset logic group, and when it is detected that the working status of any port in the preset logic group is a Down status, the relay device sets the working status of all the other ports in the preset logic group as the Down status. Thus, the upstream/downstream device of the relay device switches the terminal service to a standby link when it is detected that the ports of the relay device are in the Down status by the upstream/downstream device, so as to guarantee that the terminal service is transmitted uninterruptedly.
People skilled in this art can understand that the present invention includes a computer readable storage medium having program code stored therein which can be used to instruct a computer to perform any of the methods associated with the above-mentioned embodiments of the present invention. The storage medium comprises the various media which are able to store program codes such as ROM, RAM, diskette or compact disc, etc.
Finally, it should be understood that the above embodiments are only used to illustrate, but not to limit the technical solution of the present disclosure. Despite the detailed description of the present disclosure with reference to above exemplary embodiments, it should be understood that various modifications, changes or equivalent replacements can be made by those skilled in the art without departing from the spirit and scope of the present disclosure and covered in the claims of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
200810115302.8 | Jun 2008 | CN | national |
PCT/CN2009/070180 | Jan 2009 | CN | national |