WO2012097604A1 - 网关故障时的消息处理方法、系统和网关 - Google Patents

网关故障时的消息处理方法、系统和网关 Download PDF

Info

Publication number
WO2012097604A1
WO2012097604A1 PCT/CN2011/080119 CN2011080119W WO2012097604A1 WO 2012097604 A1 WO2012097604 A1 WO 2012097604A1 CN 2011080119 W CN2011080119 W CN 2011080119W WO 2012097604 A1 WO2012097604 A1 WO 2012097604A1
Authority
WO
WIPO (PCT)
Prior art keywords
gateway
message
switch
layer
current
Prior art date
Application number
PCT/CN2011/080119
Other languages
English (en)
French (fr)
Inventor
张�杰
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012097604A1 publication Critical patent/WO2012097604A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection

Definitions

  • the present invention relates to the field of data communications, and in particular to a message processing method, system, and gateway when a gateway fails.
  • BACKGROUND A short message gateway is a key device in a short message service, and is widely used in point-to-point short message intercommunication and short message value-added service access, which brings great profits to mobile operators, and therefore must ensure its absolute security.
  • Once the SMS gateway has a problem all related SMS messages cannot be sent and received, which will not only reduce the revenue of the telecom operators, but also bring negative impacts such as user complaints. From the current trend of SMS gateway construction in the industry, it is necessary to realize disaster recovery backup between similar SMS gateways while creating a new SMS gateway. Two sets of SMS gateways usually run their own businesses and form load sharing.
  • SMS gateway backup is mainly implemented by manual backup or cold standby.
  • manual backup mode when a set of SMS gateways fails, you need to manually modify the configuration and routing of related NEs step by step. The service takeover time is long, the real-time performance is poor, and the requirements for maintenance managers are compared. high.
  • Cold standby provides a set of identically configured physical devices as backup nodes for the normal working SMS gateway. When the working SMS gateway fails, immediately power on the backup node to take over the SMS processing. This solution has the disadvantages of repeated equipment investment, poor equipment utilization, and untimely failure response.
  • a message processing method for a gateway failure includes: after a first gateway failure, the second gateway sends a notification of the first gateway failure to a four-layer switch that is in communication with the first gateway.
  • the fourth layer switch determines that the current message is a message addressed to the first gateway, according to the first gateway
  • the takeover policy forwards the current message to the second gateway; the second gateway forwards the current message using the process of taking over the first gateway message.
  • the fourth layer switch forwards the current message to the second gateway according to the takeover policy corresponding to the first gateway, where: the fourth layer switch converts the destination address of the current message to the designated address corresponding to the second gateway; and the fourth layer switch forwards the message to the second gateway.
  • the current message after the destination address translation.
  • the second gateway forwards the current message by using a process of taking over the first gateway message, including: after receiving the current message, the second gateway determines that the destination address of the current message is the specified address, and invokes a process of taking over the first gateway message; The process of the gateway message forwards the current message according to the specified address, the network connection account of the first gateway that is backed up in advance, and the routing data.
  • the method further includes: the first gateway or the second gateway sends a notification of the first gateway failure recovery to the fourth layer switch; the second gateway closes the process of taking over the first gateway message; The business before the failure occurred.
  • the four-layer switch is disposed in one of the following locations: on a designated switch in the access network to which the first gateway is connected; on the designated switch in the local area network where the first gateway is located.
  • a message processing method when a gateway is faulty comprising: after a first gateway failure, the second gateway sends a first gateway failure to a four-layer switch that is in communication with the first gateway.
  • the process of taking over the first gateway message to send the message to the layer 4 switch includes: the process of taking over the first gateway message sends a message to the layer 4 switch, where the source address of the message carries the specified address; the layer 4 switch according to the first gateway The takeover policy forwards the current message, including: The four-layer switch translates the source address of the current message into the address of the first gateway; and the four-layer switch forwards the current message after the source address is translated.
  • the method further includes: the first gateway or the second gateway sends a notification of the first gateway failure recovery to the fourth layer switch; the second gateway closes the process of taking over the first gateway message; The business before the failure occurred.
  • the four-layer switch is disposed in one of the following locations: on a designated switch in the access network to which the first gateway is connected; on the designated switch in the local area network where the first gateway is located.
  • a message processing system for a gateway failure comprising a first gateway and a second gateway, the system further comprising: a four-layer switch communicatively linked with the first gateway; wherein The second gateway includes: a failure notification module, configured to send a notification of the first gateway failure to the fourth layer switch after the first gateway failure; wherein, the second gateway is a backup gateway of the first gateway; and the first takeover module is set to a fault notification After the module sends the notification, the process of taking over the first gateway message is started, and the current message is forwarded by using the process of taking over the first gateway message; the four-layer switch includes: a first message determining module, configured to receive the notification of the second gateway, determine Whether the current message is a message sent to the first gateway
  • the first message forwarding module is configured to forward the current message to the second gateway according to the takeover policy corresponding to the first gateway when the first message determining module determines that the result is yes.
  • the first message determining module includes: a first message determining unit, configured to determine, according to a destination address of the current message, that the current message is a message addressed to the first gateway; the first message forwarding module includes: a first address translation unit, setting The first message forwarding unit is configured to forward the current message converted by the first address translation unit, to convert the destination address of the current message determined by the first message determining unit to the specified address corresponding to the second gateway.
  • the second gateway further includes: a second takeover module, configured to take over the first gateway message to send a message to the layer 4 switch;
  • the layer 4 switch further includes: a second message determining module, configured to receive the current message, according to the current The source address of the message determines whether the current message is a message sent by the process of taking over the first gateway message;
  • the second message forwarding module is configured to forward according to the takeover policy corresponding to the first gateway when the result determined by the second message determining module is yes Current message.
  • the second takeover module includes: a takeover unit, configured to take over the first gateway message to send a message to the layer 4 switch, where the source address of the message carries the specified address;
  • the second message forwarding module includes: a second address translation unit, And being configured to convert the source address of the current message determined by the second message determining module to an address of the first gateway; and the second message forwarding unit is configured to forward the current message converted by the second address translation unit.
  • the system further includes: a fault recovery notification module; the fault recovery notification module is disposed on the first gateway or the second gateway, and is configured to send the first gateway fault recovery to the fourth layer switch after the first gateway fails to recover
  • the second gateway includes: a shutdown module, configured to close the process of taking over the first gateway message; the first gateway includes: a recovery module, configured to recover the service before the failure occurs.
  • the four-layer switch is disposed in one of the following locations: on a designated switch in the access network to which the first gateway is connected; on the designated switch in the local area network where the first gateway is located.
  • a gateway is provided, and the gateway is used as a backup gateway of the first gateway, and includes: a fault notification module, configured to send a first to a four-layer switch that is in communication with the first gateway after the first gateway fails A notification of a gateway failure; a takeover module, configured to send a notification to the fault notification module, initiate a process of taking over the first gateway message, and forward the current message by using a process of taking over the first gateway message.
  • the takeover module includes: a message forwarding processing unit, configured to take over the first gateway message, and forward the current message according to the destination address of the current message, the network connection account of the first gateway that is backed up in advance, and the routing data.
  • the four-layer switch that communicates with the faulty gateway is used to forward the received message, so that the message of the faulty gateway can be smoothly forwarded to the corresponding device, which effectively ensures the smooth operation of the service on the faulty gateway.
  • the message processing when the gateway fails is not timely.
  • the invention does not require excessive participation of network management personnel, reduces the requirements for personnel, and saves labor costs.
  • FIG. 1 is a flowchart of a message processing method when a gateway is faulty according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of another message processing method when a gateway is faulty according to Embodiment 1 of the present invention
  • 3 is a schematic structural diagram of a network networking according to Embodiment 2 of the present invention
  • FIG. 1 is a flowchart of a message processing method when a gateway is faulty according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of another message processing method when a gateway is faulty according to Embodiment 1 of the present invention
  • 3 is a schematic structural diagram of a network networking according to Embodiment 2 of the present invention
  • FIG. 4 is a schematic structural diagram of another network networking according to Embodiment 2 of the present invention
  • FIG. 5 is an implementation of two SMS gateways according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic diagram of message forwarding after a faulty gateway is restored according to Embodiment 2 of the present invention;
  • FIG. 7 is a structural block diagram of a message processing system when a gateway is faulty according to Embodiment 3 of the present invention.
  • the embodiment of the present invention implements a secure backup mechanism between the short message gateways by using the method of the four-layer switch in combination with the software function of the short message gateway. Based on the backup mechanism, the embodiment of the present invention provides a message processing method and system for a gateway fault. And gateway.
  • the gateway in the embodiment of the present invention may be various types of short message gateways, such as a China Mobile industry gateway, a short message interworking gateway, and a short message network gateway; or, may be an China Unicom industry application platform, a short message interworking gateway, or a gateway ; and China Telecom industry gateways, interworking gateways or service gateways.
  • Step S102 After the first gateway fails, the second gateway communicates with the first gateway.
  • the fourth layer switch sends a notification of the first gateway failure, and initiates a process of taking over the first gateway message (the process may also be referred to as a disaster recovery process); wherein, the second gateway is a backup gateway of the first gateway; wherein, the first The gateway and the second gateway are preferably located on different local area networks, and the four-layer switch that is communicatively linked with the first gateway may also be directly referred to as a four-layer switch of the first gateway.
  • the four-layer switch is disposed in one of the following locations: On the designated switch in the access network; on the designated switch in the LAN where the first gateway is located.
  • the second layer switch is configured with a second gateway to take over the takeover policy corresponding to the first gateway, for example, how to forward the message of the first gateway, etc., specifically: when the first gateway works normally, the external gateway address of the first gateway is Corresponding relationship of the local area network address of the gateway, according to the correspondence, the four-layer switch can convert the destination address of the message sent to the first gateway (that is, the external communication address of the first gateway) into the local area network address of the first gateway.
  • the Layer 4 switch can perform destination address translation on the message sent to the first gateway, and then forward the message to the backup gateway for processing.
  • Step S104 After receiving the foregoing notification, the layer 4 switch determines that the current message is a message sent to the first gateway, and forwards the current message according to the takeover policy corresponding to the first gateway. In this embodiment, the four layer switch takes over according to the foregoing. The policy translates the address of the message and completes the takeover of the message.
  • Step S106 The second gateway forwards the current message by using the process of taking over the first gateway message.
  • the process of taking over the first gateway message in this embodiment is a different process from the message processing flow of the second gateway itself, so as to ensure that the message of the second gateway itself and the original first gateway message can be distinguished from each other, simplifying the device switching. Process flow.
  • the received message is forwarded by the four-layer switch that is connected to the faulty gateway, so that the message of the faulty gateway can be smoothly forwarded to the corresponding device, thereby effectively ensuring the smooth running of the service on the faulty gateway, and solving the existing In the manual backup mode, the message processing when the gateway fails is not timely.
  • this embodiment does not require excessive participation of the network maintenance personnel, which reduces the requirements for personnel and saves labor costs.
  • this embodiment does not need to configure a four-layer switch for each gateway, and several gateways can share A four-layer switch reduces the duplication of equipment investment and improves equipment utilization.
  • the process establishes a connection with the relevant network element by using the network connection account of the first gateway, and completes communication of the first gateway.
  • the message received by the foregoing four-layer switch may be in two directions.
  • the current message in the foregoing step S102-S106 is a message sent to the first gateway, and the message should be sent to the user side through the first gateway, because the first If the gateway is faulty, the message needs to be forwarded by the backup device (that is, the second gateway). Therefore, the foregoing four-layer switch needs to translate the destination address of the message into the designated address of the second gateway.
  • step S104 that is, the fourth The forwarding of the current message by the layer switch according to the takeover policy corresponding to the first gateway includes: 1) determining, by the fourth layer switch, that the current message is a message sent to the first gateway according to the destination address of the current message;
  • the four-layer switch converts the destination address of the current message to a specified address corresponding to the second gateway (for example, a certain local area network address of the second gateway);
  • the Layer 4 switch forwards the current message after the destination address translation to the second gateway. After the destination address translation in step 2), the current message will be forwarded to the second gateway's process of taking over the first gateway message through the routing device and the switching device in the network, and the subsequent message processing is completed by the process.
  • the message received by the foregoing four-layer switch may also be a message sent by the first gateway. The first gateway is faulty, and the message is sent by the backup gateway (ie, the second gateway) of the first gateway. Another method for processing a message when the gateway is faulty is provided. Referring to FIG. 2, the process of the message includes: Step S202: After the first gateway fails, the second gateway sends the first to the four-layer switch that is in communication with the first gateway.
  • Step S204 the process of taking over the first gateway message sends a message to the layer 4 switch; The message should originally be sent by the first gateway. Because the first gateway fails, the message is forwarded after the process is enabled as the second gateway of its backup device.
  • Step S206 The fourth layer switch receives the current message, and determines, according to the source address of the current message, that the current message is a message sent by the process of taking over the first gateway message, and forwards the current message according to the takeover policy corresponding to the first gateway.
  • the source address of the message sent by the process of the first gateway message to the layer 4 switch carries the specified address (for example, a certain local area network address of the second gateway); based on this, the layer 4 switch according to the received message Whether the specified address is in the source address determines whether the message is from the process of taking over the first gateway message.
  • the four-layer switch in the foregoing step S206 forwards the current message according to the takeover policy corresponding to the first gateway.
  • the four-layer switch converts the source address of the current message into an address of the first gateway (that is, the external communication address of the first network element);
  • the Layer 4 switch forwards the current message after the source address translation. After the above source address translation, the message will be forwarded to other network elements through the routing device and the switching device in the network, and other network elements will consider that the received message is from the first gateway, thus maintaining other network elements to The original processing flow of the message. After the first gateway is faulty, the foregoing method further includes: the first gateway or the second gateway to the foregoing four-layer switch
  • the fourth layer switch of the first gateway sends a notification of the first gateway failure recovery; the second gateway closes the process of taking over the first gateway message; the first gateway recovers the service before the failure occurs.
  • the above four-layer switch forwards the received message according to the original process.
  • the message of the second gateway may be processed in the foregoing manner, and the specific processing manner is the same as the foregoing method, and details are not described herein again.
  • the maintenance manager when there is a problem with a short message gateway, the maintenance manager only needs one operation (calling the takeover process on the backup gateway), so that the normal running short message gateway can take over all the services of the faulty short message gateway, and the whole process is automatic.
  • the maintenance management personnel are not required to modify the configuration data, which greatly saves the time for the fault to be taken over.
  • the security solution also provides the corresponding recovery function, that is, when the faulty SMS gateway is re-run normally after the problem is checked,
  • the maintenance manager also needs only one simple operation (disabling the takeover process on the backup gateway), so that the entire system can be restored to the state before the failure occurred, and each set of SMS gateways runs their own services.
  • Embodiment 2 This embodiment is described by taking the network networking structure shown in FIG. 3 as an example.
  • the gateway platform A and the gateway platform B are backup gateways respectively, and two sets of short message gateways are deployed in two independent network domains, usually The system is deployed in different areas of the equipment room to implement remote disaster recovery. When the existing platform fails, the system can switch the function to the corresponding backup platform through a simple switching interface.
  • This embodiment is implemented in two sets of SMS gateway access layer switch groups. (corresponding to the switch groups 1 and 2 in Figure 3), the switch is connected to the switch in the equipment room where the peer gateway is located.
  • the access layer switch group (corresponding to the switch groups 1 and 2 in Figure 3) implements network interworking through the aggregation layer switch and router.
  • the switch group 1 and 2 can also improve the stability, reliability, and message forwarding efficiency of the network connection through direct fiber connection.
  • Switch group 1 and switch group 2 are connected to all external related router groups, and then connected to related network elements by routers, such as group customers or business integrators (EC/SI), BOSS (Business Operations Support System, business operation support). System), national industry gateway, different network gateway, etc.
  • E/SI business integrators
  • BOSS Business Operations Support System, business operation support). System
  • System business operation support System
  • the following policy is set for the four-layer switch of the short message gateway A:
  • IPa is the floating address of a pair of four-layer switches, and is also the external communication address of the short message gateway A, which corresponds to the local area network address IPc of the short message gateway A system; wherein, a pair of four-layer switches refers to each of the four layers for further security enhancement.
  • the switch is configured with a backup Layer 4 switch, and the configurations on the two Layer 4 switches are the same;
  • IPa' is the floating address of a pair of four-layer switch. After the failure of the short message gateway A occurs, the message sent to the IPa address passes the new forwarding destination address set by the layer 4 switch policy, and corresponds to the gateway B system LAN address IPc';
  • IPb' is the floating address of the four-layer switch, as the short message gateway B
  • the message sent to the IPb address passes the new forwarding destination address set by the Layer 4 switch policy, which corresponds to the SMS gateway A LAN address IPd' ;
  • IPb is the floating address of a pair of four-layer switches, and is also the external communication address of the short message gateway B, which corresponds to the short message gateway B local area network address IPd;
  • the configuration of the Layer 4 switch of SMS Gateway B is similar to that of the Layer 4 switch of SMS Gateway A, and will not be described in detail here.
  • the four-layer switch in the embodiment of the present invention can also be hanged on the internal LAN switch of the short message gateway.
  • the internal local area network switch has a three-layer switching function, as shown in FIG.
  • the following is an example of the process of taking over the short message gateway A (that is, the gateway platform A) and the short message gateway B taking over the short message gateway A as an example.
  • the two sets of SMS gateways implement the automatic disaster recovery backup process. If the SMS gateway A device is abnormal, manually perform the "automatic takeover" operation on the SMS gateway B. The system automatically performs the following steps:
  • SMS gateway A service notifies the SMS gateway A of the four-layer switch SMS gateway A to modify the configuration of the four-layer switch.
  • the existing process of SMS Gateway B is unchanged, to the SMS network After the IPA message flow is passed through the four-layer switch for DNAT (destination address translation) to IPa', it is routed through the switch to the SMS gateway B switch group 2;
  • the system automatically enables all emergency accounts, such as to other external network element accounts;
  • the short message gateway B Since the short message gateway B has the original account and routing data of the short message gateway A, the received message is automatically sent to the short message gateway B, and the automatic receiving of the receiving service is completed.
  • the Layer 4 switch on the B side of the SMS gateway will directly route to the Layer 4 switch of the SMS gateway A for source address translation, and still send the IPa address as the source address to the destination address. Therefore, the message sent by the short message gateway B can also be simulated as a message sent by the short message gateway A, and successfully sent to the destination address; if the short message gateway A device returns to normal, the "automatic recovery" operation is performed once on the short message gateway B, the system The following steps are performed automatically:
  • the system automatically disables all emergency accounts (equivalent to the process of closing the first gateway message in Embodiment 1);
  • FIG. 6 a schematic diagram of message forwarding after the faulty gateway (ie, the short message gateway A) is restored to normal is performed. At this time, the short message gateway A and the short message gateway B each perform their own services.
  • this method can effectively realize the remote disaster recovery backup of two sets of SMS gateways, and has been experimentally verified.
  • the method has the characteristics of short switching time, no need for external network element cooperation, fully automatic process, high reliability, etc., and can provide higher quality services for mobile operators, and solves the problems existing in existing manual backup and cold backup.
  • Embodiment 3 FIG.
  • the system includes a first gateway 50 and a second gateway 60.
  • the system further includes: communicating with the first gateway 50.
  • a four-layer switch 70 wherein the four-layer switch 70 is placed between the first gateway 50 and the second gateway 60, the first gateway 50 and the
  • the two gateways 60 are also provided with related network element devices.
  • the processing flow of the message by the network element devices is unchanged, and is implemented according to the related art. This embodiment does not describe too much.
  • the second gateway 60 includes: a failure notification module 62, configured to send a notification of the failure of the first gateway 50 to the four-layer switch 70 after the failure of the first gateway 50; wherein, the second gateway 60 is a backup gateway of the first gateway 50;
  • a takeover module 64 is connected to the fault notification module 62, and is configured to start the process of taking over the first gateway message after the fault notification module 62 sends the notification; and forward the current message by using the process of taking over the first gateway message;
  • the four-layer switch 70 includes: A message determining module 72 is configured to: after receiving the notification of the second gateway 60, determine whether the current message is a message addressed to the first gateway 50; the first message forwarding module 74 is configured to determine the result determined by the first message determining module 72.
  • the first gateway 50 and the second gateway 60 are preferably located in different local area networks, and the four-layer switch 70 of the first gateway 50 is disposed at one of the following locations: a designated switch in the access network connected to the first gateway 50; The gateway 50 is located on a designated switch in the local area network.
  • the four-layer switch is configured with a takeover policy corresponding to the first gateway 50, for example, how to forward the message of the first gateway 50, etc., specifically: when the first gateway 50 works normally, the external communication address of the first gateway 50 and the first Corresponding relationship of the local area network address of the gateway 50, according to the correspondence, the four-layer switch can convert the destination address of the message sent to the first gateway 50 (ie, the external communication address of the first gateway 50) into the first gateway 50.
  • the four-layer switch can perform destination address translation on the message sent to the first gateway 50, and then forward the message to the backup gateway for processing.
  • the second gateway 60 of the embodiment when the first gateway 50 fails, enables the process of taking over the first gateway message, and the flow is only enabled if the first gateway 50 fails.
  • the four-layer switch 70 receives two types of messages: one is a message sent to the first gateway, and the other is a message sent by the identity of the first gateway, and the first message determining module 72 and the first message are forwarded. Module 74 The message is sent to the first gateway.
  • the first message determining module 72 includes: a first message determining unit, configured to determine, according to the destination address of the current message, that the current message is a message sent to the first gateway 50;
  • the first message forwarding module 74 is configured to: convert the destination address of the current message determined by the first message determining unit to a specified address corresponding to the second gateway; the first message forwarding unit, and the first address
  • the conversion unit is connected, and is set to forward the current message converted by the first address translation unit.
  • the message sent by the first gateway is sent by the backup gateway of the first gateway, that is, the second gateway, because the first gateway is faulty.
  • the second gateway 60 further includes: a second takeover module, which is set to take over The flow of a gateway message sends a message to the layer 4 switch 70.
  • the layer 4 switch 70 further includes: a second message determining module, configured to receive the current message, and determine, according to a source address of the current message, whether the current message is to take over the first gateway message.
  • the message sent by the process; the second message forwarding module is configured to forward the current message according to the takeover policy corresponding to the first gateway when the result determined by the second message determining module is YES.
  • the second takeover module includes: a takeover unit, configured to take over the first gateway message to send a message to the fourth layer switch 70, where the source address of the message carries the specified address; at this time, the second message determining module is based on the source of the message Whether the specified address in the address determines whether the message is from the process of taking over the first gateway message; the message forwarding module 72 includes: a second address translation unit, configured to convert the source address of the current message determined by the second message determining module The address of the first gateway 50 is connected to the second address translation unit, and is configured to forward the current message converted by the second address translation unit.
  • the first takeover module 64 includes: a message forwarding processing unit, and the process of setting the takeover of the first gateway message forwards the current message according to the destination address of the current message, the network connection account of the first gateway 50 that is backed up in advance, and the routing data.
  • the system further includes: a fault recovery notification module; the fault recovery notification module is disposed on the first gateway 50 or the second gateway 60, and is configured to send the fault to the fourth layer switch after the first gateway 50 recovers from the fault.
  • the second gateway 60 includes: a shutdown module, configured to close the process of taking over the first gateway message; the first gateway 50 includes: a recovery module, configured to restore the service before the failure occurs.
  • the four-layer switch 70 is disposed at one of the following locations: a designated switch in the access network to which the first gateway 50 is connected; the first gateway 50 is located on a designated switch in the local area network.
  • the embodiment also provides a gateway, which serves as a backup gateway of the first gateway, and can be implemented by using the second gateway in FIG. 7 above, and details are not described herein again.
  • the received message is forwarded by the four-layer switch that is connected to the faulty gateway, so that the message of the faulty gateway can be smoothly forwarded to the corresponding device, thereby effectively ensuring the smooth running of the service on the faulty gateway, and solving the existing In the manual backup mode, the message processing when the gateway fails is not timely.
  • this embodiment does not require excessive participation of the network maintenance personnel, which reduces the requirements for personnel and saves labor costs.
  • this embodiment does not need to configure a four-layer switch for each gateway, and several gateways can share A four-layer switch reduces the duplication of equipment investment and improves equipment utilization.
  • the present invention can effectively implement remote disaster recovery backup of two sets of short message gateways by externally attaching a limited number of four-layer switches in the network. Based on the backup mechanism, when a short message gateway fails The gateway can be switched in a short time. The switching process does not require external network elements to cooperate, and can be fully automated. It can provide higher quality services for mobile operators, improve service reliability, and solve existing manual backups. And problems with cold backups.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明提供了一种网关故障时的消息处理方法、系统和网关。其中,该方法包括:第一网关故障后,第二网关向与第一网关通信链接的四层交换机发送第一网关故障的通知,并启动接管第一网关消息的流程;其中,第二网关为第一网关的备份网关;该四层交换机收到通知后,确定当前消息为发往第一网关的消息时,根据第一网关对应的接管策略向第二网关转发该当前消息;第二网关使用接管第一网关消息的流程转发该当前消息。根据本发明,解决了现有手工备份方式下,网关故障时的消息处理不及时的问题。同时,本发明不需要网管维护人员过多参与,降低了对人员的要求,并节省了人力成本。

Description

网关故障时的消息处理方法、 系统和网关 技术领域 本发明涉及数据通信领域, 具体而言, 涉及一种网关故障时的消息处理方法、 系 统和网关。 背景技术 短信网关是短消息业务中的一个关键设备, 广泛应用于点对点短信互通、 短信增 值业务接入中, 为移动运营商带来丰厚利润, 因此必须要保证其绝对的安全性。 一旦 该短信网关产生问题, 相关所有短信都不能发送和接收, 不仅会减少电信运营商的收 入, 而且会带来用户投诉等负面影响。 从目前业界的短信网关建设新趋势来看, 在新建短信网关的同时, 要能实现同类 短信网关之间的容灾备份。 两套短信网关平时各自运行自己的业务, 形成负荷分担。 一旦其中的一套短信网关出现问题,则正常运行的短信网关可以接管故障网关的业务。 目前在业界, 短信网关备份实现的主要是手工备份方式或冷备方式。 在手工备份这种方式下, 当一套短信网关出现故障时, 需要手工一步一步地对相 关网元的配置及路由等进行修改, 业务接管时间长, 实时性差, 而且对维护管理人员 的要求比较高。 而冷备则是提供一套配置完全相同的物理设备作为正常工作短信网关的备份节 点。 当正常工作的短信网关出现故障后, 立即上电备份节点来接管短信处理。 这种方 案存在设备投资重复、 设备利用率差、 故障响应不及时的缺点。 由此可以看出, 上述手工备份和冷备份方式, 在网关故障时, 故障网关的消息处 理均存在不足, 不适合广泛地推广使用。 发明内容 本发明旨在提供一种网关故障时的消息处理方法、 系统和网关, 以至少解决上述 手工备份方式下, 网关故障时的消息处理不及时的问题。 根据本发明的一个方面, 提供了一种网关故障时的消息处理方法, 该方法包括: 第一网关故障后, 第二网关向与第一网关通信链接的四层交换机发送第一网关故障的 通知, 并启动接管第一网关消息的流程; 其中, 第二网关为第一网关的备份网关; 四 层交换机收到通知后, 确定当前消息为发往第一网关的消息时, 根据第一网关对应的 接管策略向第二网关转发当前消息; 第二网关使用接管第一网关消息的流程转发该当 前消息。 优选地,四层交换机根据第一网关对应的接管策略向第二网关转发当前消息包括: 四层交换机将当前消息的目的地址转换为第二网关对应的指定地址; 四层交换机向第 二网关转发目的地址转换后的当前消息。 优选地, 第二网关使用接管第一网关消息的流程转发当前消息包括: 第二网关接 收到当前消息后, 确定当前消息的目的地址为指定地址, 调用接管第一网关消息的流 程; 接管第一网关消息的流程根据指定地址、 预先备份的第一网关的网络连接账号和 路由数据转发当前消息。 优选地, 第一网关故障恢复后, 方法还包括: 第一网关或第二网关向四层交换机 发送第一网关故障恢复的通知; 第二网关关闭接管第一网关消息的流程; 第一网关恢 复故障发生前的业务。 优选地, 四层交换机设置在以下位置之一: 第一网关相连的接入网中的指定交换 机上; 第一网关所在局域网中的指定交换机上。 根据本发明的另一方面,还提供了一种网关故障时的消息处理方法, 该方法包括: 第一网关故障后, 第二网关向与第一网关通信链接的四层交换机发送第一网关故障的 通知, 并启动接管第一网关消息的流程; 其中, 第二网关为第一网关的备份网关; 接 管第一网关消息的流程向四层交换机发送消息; 四层交换机接收当前消息, 根据该当 前消息的源地址确定当前消息为接管第一网关消息的流程发送的消息时, 根据第一网 关对应的接管策略转发该当前消息。 优选地, 接管第一网关消息的流程向四层交换机发送消息包括: 接管第一网关消 息的流程向四层交换机发送消息, 消息的源地址携带有指定地址; 四层交换机根据第 一网关对应的接管策略转发当前消息包括: 四层交换机将当前消息的源地址转换为第 一网关的地址; 四层交换机转发源地址转换后的当前消息。 优选地, 第一网关故障恢复后, 方法还包括: 第一网关或第二网关向四层交换机 发送第一网关故障恢复的通知; 第二网关关闭接管第一网关消息的流程; 第一网关恢 复故障发生前的业务。 优选地, 四层交换机设置在以下位置之一: 第一网关相连的接入网中的指定交换 机上; 第一网关所在局域网中的指定交换机上。 根据本发明的再一方面, 提供了一种网关故障时的消息处理系统, 该系统包括第 一网关、 第二网关, 该系统还包括: 与第一网关通信链接的四层交换机; 其中, 第二 网关包括: 故障通知模块, 设置为第一网关故障后, 向四层交换机发送第一网关故障 的通知; 其中, 第二网关为第一网关的备份网关; 第一接管模块, 设置为故障通知模 块发送通知后, 启动接管第一网关消息的流程, 使用接管第一网关消息的流程转发当 前消息; 该四层交换机包括: 第一消息确定模块, 设置为收到第二网关的通知后, 确定当 前消息是否为发往第一网关的消息; 第一消息转发模块, 设置为当第一消息确定模块 确定的结果为是时, 根据第一网关对应的接管策略向第二网关转发当前消息。 优选地, 第一消息确定模块包括: 第一消息确定单元, 设置为根据当前消息的目 的地址确定当前消息为发往第一网关的消息; 第一消息转发模块包括: 第一地址转换 单元, 设置为将第一消息确定单元确定的当前消息的目的地址转换为第二网关对应的 指定地址; 第一消息转发单元, 设置为转发第一地址转换单元转换后的当前消息。 优选地, 第二网关还包括: 第二接管模块, 设置为接管第一网关消息的流程向四 层交换机发送消息; 四层交换机还包括: 第二消息确定模块, 设置为接收当前消息, 根据当前消息的源地址确定当前消息是否为接管第一网关消息的流程发送的消息; 第 二消息转发模块, 设置为当第二消息确定模块确定的结果为是时, 根据第一网关对应 的接管策略转发当前消息。 优选地, 第二接管模块包括: 接管单元, 设置为接管第一网关消息的流程向四层 交换机发送消息, 消息的源地址携带有指定地址; 第二消息转发模块包括: 第二地址 转换单元, 设置为将第二消息确定模块确定的当前消息的源地址转换为第一网关的地 址; 第二消息转发单元, 设置为转发第二地址转换单元转换后的当前消息。 优选地, 系统还包括: 故障恢复通知模块; 故障恢复通知模块设置在第一网关或 第二网关上, 设置为第一网关故障恢复后, 向四层交换机发送第一网关故障恢复的通 知; 第二网关包括: 关闭模块, 设置为关闭接管第一网关消息的流程; 第一网关包括: 恢复模块, 设置为恢复故障发生前的业务。 优选地, 四层交换机设置在以下位置之一: 第一网关相连的接入网中的指定交换 机上; 第一网关所在局域网中的指定交换机上。 根据本发明的又一方面, 提供了一种网关, 网关作为第一网关的备份网关, 包括: 故障通知模块, 设置为第一网关故障后, 向与第一网关通信链接的四层交换机发送第 一网关故障的通知; 接管模块, 设置为故障通知模块发送通知后, 启动接管第一网关 消息的流程, 使用接管第一网关消息的流程转发当前消息。 优选地, 接管模块包括: 消息转发处理单元, 设置为接管第一网关消息的流程根 据当前消息的目的地址、 预先备份的第一网关的网络连接账号和路由数据转发当前消 息。 通过本发明, 采用与故障网关通信链接的四层交换机对接收到的消息进行转发, 使故障网关的消息能够顺利转发至对应的设备, 有效地保证了故障网关上的业务顺利 进行, 解决了现有手工备份方式下, 网关故障时的消息处理不及时的问题。 同时, 本 发明不需要网管维护人员过多参与, 降低了对人员的要求, 并节省了人力成本。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例 1的网关故障时的消息处理方法的流程图; 图 2是根据本发明实施例 1的另一种网关故障时的消息处理方法的流程图; 图 3是根据本发明实施例 2的网络组网结构示意图; 图 4是根据本发明实施例 2的另一网络组网结构示意图; 图 5是根据本发明实施例 2的两套短信网关实现自动容灾备份流程示意图; 图 6是根据本发明实施例 2的故障网关恢复后的消息转发示意图; 图 7是根据本发明实施例 3的网关故障时的消息处理系统的结构框图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 本发明实施例利用四层交换机结合短信网关软件功能的方法, 实现了短信网关之 间的安全备份机制, 基于这种备份机制, 本发明实施例提供了一种网关故障时的消息 处理方法、 系统和网关。 其中, 本发明实施例中的网关可以是各种类型短信网关, 如 中国移动行业网关、 短信互通网关、 短信梦网网关; 或者, 也可以是中国联通行业应 用平台、 短信互通网关、 在信网关; 以及中国电信行业网关、 互通网关或业务网关等。 实施例 1 图 1示出了根据本发明实施例的网关故障时的消息处理方法的流程图, 该方法包 括以下步骤: 步骤 S102, 第一网关故障后, 第二网关向与第一网关通信链接的四层交换机发送 第一网关故障的通知,并启动接管第一网关消息的流程(该流程也可以称为灾备流程); 其中, 第二网关为第一网关的备份网关; 其中, 第一网关与第二网关优选位于不同的局域网, 与第一网关通信链接的四层 交换机也可以直接简称为第一网关的四层交换机,该四层交换机设置在以下位置之一: 第一网关相连的接入网中的指定交换机上; 第一网关所在局域网中的指定交换机上。 上述四层交换机上配置有第二网关接管第一网关对应的接管策略, 例如, 如何转 发第一网关的消息等, 具体可以为: 第一网关正常工作时, 第一网关的对外通信地址 与第一网关的局域网地址的对应关系, 根据该对应关系, 该四层交换机可以将发往第 一网关的消息的目的地址 (即第一网关的对外通信地址) 转换为上述第一网关的局域 网地址, 以使该消息能够正确发送到第一网关; 第一网关故障时, 第一网关的对外通 信地址与接管地址的对应关系, 以及该情况下, 接管地址与备份网关的局域网地址的 对应关系, 根据这种对应关系, 在第一网关故障时, 该四层交换机可以对发往第一网 关的消息进行目的地址转换, 进而将该消息转发至备份网关进行处理。 为了不影响第二网关自身的业务, 以及使第一网关的四层交换机能够识别来自第 二网关的消息哪些是第二网关自身的, 哪些属于接管第一网关的消息, 本实施例的第 二网关在第一网关故障时, 启用接管第一网关消息的进程, 并且该进程仅在第一网关 故障的情况下才启用。 步骤 S104, 该四层交换机收到上述通知后, 确定当前消息为发往第一网关的消息 时, 根据第一网关对应的接管策略转发该当前消息; 本实施例中, 四层交换机根据上述接管策略对消息的地址进行转换, 完成消息的 接管转发。 步骤 S106, 第二网关使用上述接管第一网关消息的流程转发上述当前消息。 本实施例中的接管第一网关消息的流程是与第二网关自身的消息处理流程不同的 流程, 以保证第二网关自身的消息与原第一网关的消息能够相互区分, 简化设备切换 后的处理流程。 本实施例通过与故障网关通信链接的四层交换机对接收到的消息进行转发, 使故 障网关的消息能够顺利转发至对应的设备,有效地保证了故障网关上的业务顺利进行, 解决了现有手工备份方式下, 网关故障时的消息处理不及时的问题。 同时, 本实施例 不需要网管维护人员过多参与, 降低了对人员的要求, 并节省了人力成本; 另外, 本 实施例不需要为每个网关各配置一个四层交换机,几个网关可以共用一个四层交换机, 降低了设备投资的重复, 提高了设备的利用率。 第二网关启动上述接管第一网关消息的流程后, 第二网关使用上述接管第一网关 消息的流程转发当前消息可以包括: 第二网关接收到当前消息后, 确定该当前消息的 目的地址为指定地址, 调用接管第一网关消息的流程; 接管第一网关消息的流程根据 该指定地址、 预先备份的第一网关的网络连接账号和路由数据转发当前消息。 例如, 该进程使用第一网关的网络连接账号与相关网元建立连接, 完成第一网关的通讯等。 其中, 上述四层交换机接收的消息可以为两个方向, 上述步骤 S102-步骤 S106中 的当前消息为发往第一网关的消息, 该消息本应该通过第一网关发往用户侧, 因第一 网关发生故障, 该消息需要备用设备 (即第二网关) 完成转发, 因此, 上述四层交换 机需要将该消息的目的地址转换为第二网关的指定地址, 基于此, 上述步骤 S104, 即 该四层交换机根据第一网关对应的接管策略转发当前消息包括: 1 ) 该四层交换机根据当前消息的目的地址确定当前消息为发往第一网关的消息;
2)该四层交换机将当前消息的目的地址转换为第二网关对应的指定地址(例如第 二网关的某一局域网地址);
3 ) 该四层交换机向第二网关转发上述目的地址转换后的当前消息。 经过步骤 2) 中的目的地址转换, 该当前消息将会通过网络中的路由设备和交换 设备转发至第二网关的接管第一网关消息的流程上, 由该流程完成后续的消息处理。 上述四层交换机接收的消息还可以是由第一网关发出的消息, 因第一网关故障, 该消息由第一网关的备份网关 (即第二网关) 发出, 针对该消息, 本发明实施例还提 供了另一种网关故障时的消息处理方法, 参见图 2, 该消息的处理过程包括: 步骤 S202, 第一网关故障后, 第二网关向与第一网关通信链接的四层交换机发送 第一网关故障的通知, 并启动接管第一网关消息的流程; 其中, 第二网关为第一网关 的备份网关; 步骤 S204, 上述接管第一网关消息的流程向四层交换机发送消息; 该流程发送的消息原本应该由第一网关发送, 因为第一网关发生故障, 作为其备 份设备的第二网关启用该流程后, 对此类消息进行转发处理。 步骤 S206, 上述四层交 换机接收当前消息, 根据该当前消息的源地址确定该当前消息为接管第一网关消息的 流程发送的消息时, 根据第一网关对应的接管策略转发该当前消息。 上述步骤 S204中,接管第一网关消息的流程向四层交换机发送的消息的源地址中 携带有指定地址(例如第二网关的某一局域网地址); 基于此, 四层交换机根据接收到 的消息的源地址中是否有该指定地址确定此消息是否来自上述接管第一网关消息的流 程, 当确定的结果为是时,上述步骤 S206中的四层交换机根据第一网关对应的接管策 略转发当前消息包括:
1 )该四层交换机将该当前消息的源地址转换为第一网关的地址(即第一网元对外 的通信地址);
2) 该四层交换机转发上述源地址转换后的当前消息。 经过上述源地址转换, 该消息将会通过网络中的路由设备和交换设备转发至其它 网元, 而其它网元将会认为所接收到的消息来自第一网关, 因此维持了其它网元对该 消息的原有处理流程。 第一网关故障恢复后, 上述方法还包括: 第一网关或第二网关向上述四层交换机
(第一网关的四层交换机) 发送第一网关故障恢复的通知; 第二网关关闭上述接管第 一网关消息的进程; 第一网关恢复故障发生前的业务。 上述四层交换机收到第一网关 故障恢复的通知后, 将按照原有流程转发接收到的消息。 其中, 这几个动作的先后顺 序没有严格的限制, 在保障业务顺畅的前提下可以相互调换顺序。 当然, 若第二网关发生故障, 也可以采用上述方式处理第二网关的消息, 具体处 理方式与上述方法相同, 这里不再赘述。 采用上述方法, 当一个短信网关出现问题时, 维护管理人员只需要一次操作 (调 用备份网关上的接管进程),就可以让正常运行的短信网关接管故障短信网关的所有业 务, 整个过程是自动的, 不需要维护管理人员去修改配置数据等, 大大节省了故障接 管的时间; 同时, 本安全解决方案还提供相应恢复功能, 也就是说, 当出现故障的短 信网关经过问题排查重新运行正常时, 维护管理人员也只需要一次简单的操作 (禁用 备份网关上的接管进程), 就可以让整个系统恢复到故障出现前的状态, 每套短信网关 各自运行自己的业务。 实施例 2 本实施例以图 3所示的网络组网结构为例进行说明, 其中, 网关平台 A和网关平 台 B互为备份网关, 两套短信网关部署在独立的两个网络域中, 通常在不同地域机房 内部署, 以实现异地容灾; 当现有平台发生故障时, 系统能通过简单的切换界面将功 能切换到对应备份平台上; 本实施例在两套短信网关接入层交换机组(对应图 3中交换机组 1、 2)上侧挂四 层交换机, 并保证双方接入层交换机组有路由功能, 能够路由到对端网关所在机房的 交换机。 接入层交换机组 (对应图 3中交换机组 1、 2) 通过汇聚层交换机、 路由器实现网 络互通。 交换机组 1、 2之间也可通过光纤直连提高网络连接的稳定性、 可靠性、 消息 转发效率。 交换机组 1、 交换机组 2都和外部所有的相关路由器组实现连接, 由路由器再连 接到相关网元,例如集团客户或业务集成商(EC/SI)、BOSS( Business Operations Support System, 业务运营支撑系统)、 省行业网关、 异网网关等。 本实施例对短信网关 A的四层交换机进行如下策略设置:
1 )在短信网关 A的四层交换机上就 IPa设置 VS(Virtual Server,虚拟服务器) nodel (节点 1 )、 node2 (节点 2), 分别对应到 IPc和 IPa', 其中 nodel为主用, node2为备 用; 其中, IPa是一对四层交换机的浮动地址, 也是短信网关 A的对外通信地址, 其 对应短信网关 A系统局域网地址 IPc; 其中, 一对四层交换机指为了进一步增强安全 性, 每个四层交换机配置有一个备份四层交换机, 两个四层交换机上的配置相同;
IPa'是一对四层交换机的浮动地址,作为短信网关 A故障出现后,发到 IPa地址的 消息经过四层交换机策略设定后的新转发目的地址, 其对应网关 B 系统局域网地址 IPc';
2)在短信网关 A的四层交换机上就 IPb'设置 VS nodel , 该节点对应 IPd', 用于接 管短信网关 B的消息处理; 其中, IPb'为四层交换机的浮动地址, 作为短信网关 B故障出现后, 发到 IPb地 址的消息经过四层交换机策略设定后的新转发目的地址, 其对应短信网关 A局域网地 址 IPd';
IPb是一对四层交换机的浮动地址, 也是短信网关 B的对外通信地址, 其对应短 信网关 B局域网地址 IPd;
3 ) 在短信网关 A的四层交换机上设置 VS路由策略 irulesl , 对来自 IPd'的消息, 路由至 IPa'; 否则, 将源地址转换为 IPa发出。 短信网关 B的四层交换机配置和上述短信网关 A的四层交换机的配置类似,这里 不再详述。 在两套短信网关上除了要预先配置自己的一些帐号信息, 还需要配置备份网关与 其他网元连接的帐号, 将该帐号作为应急帐号, 这些应急帐号平时均不启用, 仅在对 应的备份网关发生故障时启用。 本发明实施例中的四层交换机也可侧挂在短信网关的内部局域网交换机上, 在这 种情况下, 内部局域网交换机具有三层交换功能, 如图 4所示。 下面以短信网关 A (即网关平台 A)设备异常, 短信网关 B接管短信网关 A为例 进行说明,本实施例以短信网关 B上的灾备进程作为接管短信网关 A消息的流程为例。 参见图 5, 两套短信网关实现自动容灾备份流程示意图, 若短信网关 A设备异常, 则 在短信网关 B上手工一次性执行"自动接管"操作, 系统自动执行如下步骤:
1、 自动执行接管短信网关 A业务的脚本 (SP, 通知短信网关 A的四层交换机短 信网关 A故障, 以修改四层交换机的配置)。 短信网关 B的现有流程不变, 到短信网 关 IPa的消息流程经过四层交换机作 DNAT (目的地址转换)为 IPa'后, 通过交换机路 由到短信网关 B交换机组 2上;
2、 系统自动启用所有应急帐号, 如到其它外部网元帐号;
3、 由于短信网关 B具有短信网关 A原有的帐号和路由数据, 因此接收的消息自 动发给短信网关 B, 至此完成接收业务的自动接管。
4、 对于短信网关 B灾备进程发出的消息, 短信网关 B侧的四层交换机都会直接 路由至短信网关 A的四层交换机做源地址转换,仍以 IPa地址为源地址发往目的地址。 因此, 短信网关 B发出的消息也能模拟成短信网关 A所发出的消息, 成功发到目的地 址; 若短信网关 A设备恢复正常, 则在短信网关 B上一次性执行 "自动恢复"操作, 系 统自动执行如下步骤:
1、 自动执行恢复短信网关 A业务的脚本 (SP, 通知短信网关 A的四层交换机短 信网关 A故障恢复, 修改四层交换机的配置);
2、系统自动禁用所有应急帐号(相当于实施例 1中的关闭接管第一网关消息的进 程操作);
3、 禁用后, 系统自动断开这些帐号的原有连接;
4、 启动短信网关 A设备程序, 系统自动建立相关帐号连接, 业务恢复成功。 参见图 6, 为故障网关 (即短信网关 A) 恢复正常后的消息转发示意图, 此时, 短信网关 A和短信网关 B各自执行自身的业务。 通过上述流程的分析, 可以看出采用该方法可以有效实现两套短信网关的异地容 灾备份, 并得到了实验验证。 该方法具备切换时间短、 无需外部网元配合、 全自动流 程、 高可靠性等特点, 可为移动运营商提供更高质量的服务, 解决了现有手工备份和 冷备份存在的问题。 实施例 3 图 7示出了根据本发明实施例的网关故障时的消息处理系统的结构框图, 该系统 包括第一网关 50、 第二网关 60, 该系统还包括: 与第一网关 50通信链接的四层交换 机 70; 其中, 四层交换机 70置于第一网关 50和第二网关 60之间, 第一网关 50和第 二网关 60之间还设置有相关的网元设备,这些网元设备对消息的处理流程不变, 按照 相关技术实现, 本实施例不做过多描述。 第二网关 60包括: 故障通知模块 62, 设置为第一网关 50故障后, 向四层交换机 70发送第一网关 50 故障的通知; 其中, 第二网关 60为第一网关 50的备份网关; 第一接管模块 64,与故障通知模块 62相连,设置为故障通知模块 62发送通知后, 启动接管第一网关消息的流程; 使用接管第一网关消息的流程转发当前消息; 四层交换机 70包括: 第一消息确定模块 72, 设置为收到第二网关 60的通知后, 确定当前消息是否为 发往第一网关 50的消息; 第一消息转发模块 74, 设置为第一消息确定模块 72确定的 结果为是时, 根据第一网关 50对应的接管策略向第二网关 60转发当前消息。 其中,第一网关 50与第二网关 60优选位于不同的局域网,第一网关 50的四层交 换机 70设置在以下位置之一: 第一网关 50相连的接入网中的指定交换机上; 第一网 关 50所在局域网中的指定交换机上。 该四层交换机上配置有第一网关 50对应的接管 策略, 例如, 如何转发第一网关 50的消息等, 具体可以为: 第一网关 50正常工作时, 第一网关 50的对外通信地址与第一网关 50的局域网地址的对应关系, 根据该对应关 系, 该四层交换机可以将发往第一网关 50的消息的目的地址 (即第一网关 50的对外 通信地址)转换为上述第一网关 50的局域网地址, 以使该消息能够正确发送到第一网 关 50; 第一网关 50故障时, 第一网关 50的对外通信地址与接管地址的对应关系, 以 及该情况下, 接管地址与备份网关的局域网地址的对应关系, 根据这种对应关系, 在 第一网关 50故障时,该四层交换机可以对发往第一网关 50的消息进行目的地址转换, 进而将该消息转发至备份网关进行处理。 为了不影响第二网关 60自身的业务, 以及使第一网关的四层交换机 70能够识别 来自第二网关的消息中哪些是第二网关 60自身的,哪些属于接管第一网关 50的消息, 本实施例的第二网关 60在第一网关 50故障时, 启用接管第一网关消息的流程, 并且 该流程仅在第一网关 50故障的情况下才启用。 其中, 四层交换机 70接收的消息有两类: 一类为发往第一网关的消息, 另一类为 以第一网关的身份发出的消息, 上述第一消息确定模块 72和第一消息转发模块 74处 理的消息为发往第一网关的消息, 基于此, 第一消息确定模块 72包括: 第一消息确定 单元, 设置为根据当前消息的目的地址确定当前消息为发往第一网关 50的消息; 第一消息转发模块 74包括: 第一地址转换单元, 设置为将第一消息确定单元确定 的该当前消息的目的地址转换为第二网关对应的指定地址; 第一消息转发单元, 与第 一地址转换单元相连, 设置为转发第一地址转换单元转换后的当前消息。 对于以第一网关的身份发出的消息, 因第一网关故障, 由第一网关的备份网关, 即第二网关发出, 基于此, 第二网关 60还包括: 第二接管模块, 设置为接管第一网关 消息的流程向四层交换机 70发送消息; 四层交换机 70还包括: 第二消息确定模块, 设置为接收当前消息, 根据当前消息 的源地址确定该当前消息是否为接管第一网关消息的流程发送的消息; 第二消息转发 模块, 设置为当第二消息确定模块确定的结果为是时, 根据第一网关对应的接管策略 转发该当前消息。 其中, 第二接管模块包括: 接管单元, 设置为接管第一网关消息的流程向四层交 换机 70发送消息, 该消息的源地址携带有指定地址; 此时, 第二消息确定模块根据消 息的源地址中是否有该指定地址确定此消息是否来自上述接管第一网关消息的流程; 消息转发模块 72包括: 第二地址转换单元, 设置为将第二消息确定模块确定的该 当前消息的源地址转换为第一网关 50的地址; 第二消息转发单元, 与第二地址转换单 元相连, 设置为转发第二地址转换单元转换后的该当前消息。 优选地, 第一接管模块 64包括: 消息转发处理单元, 设置为接管第一网关消息的 流程根据当前消息的目的地址、预先备份的第一网关 50的网络连接账号和路由数据转 发该当前消息。 第一网关 50故障恢复后, 该系统还包括: 故障恢复通知模块; 故障恢复通知模块 设置在第一网关 50或第二网关 60上, 设置为第一网关 50故障恢复后, 向四层交换机 发送第一网关 50故障恢复的通知; 第二网关 60包括: 关闭模块, 设置为关闭接管第一网关消息的流程; 第一网关 50包括: 恢复模块, 设置为恢复故障发生前的业务。 优选地, 四层交换机 70设置在以下位置之一: 第一网关 50相连的接入网中的指 定交换机上; 第一网关 50所在局域网中的指定交换机上。 本实施例还提供了一种网关, 该网关作为第一网关的备份网关, 其可以采用上述 图 7中第二网关的方式实现, 这里不再一一赘述。 本实施例通过与故障网关通信链接的四层交换机对接收到的消息进行转发, 使故 障网关的消息能够顺利转发至对应的设备,有效地保证了故障网关上的业务顺利进行, 解决了现有手工备份方式下, 网关故障时的消息处理不及时的问题。 同时, 本实施例 不需要网管维护人员过多参与, 降低了对人员的要求, 并节省了人力成本; 另外, 本 实施例不需要为每个网关各配置一个四层交换机,几个网关可以共用一个四层交换机, 降低了设备投资的重复, 提高了设备的利用率。 从以上的描述中可以看出, 本发明通过在网络中外挂有限个数的四层交换机, 可 以有效实现两套短信网关的异地容灾备份, 基于这种备份机制, 当有一个短信网关发 生故障时, 可以在较短的时间完成网关切换, 切换过程无需外部网元配合, 能够全自 动操作, 可为移动运营商提供更高质量的服务, 提高了业务的可靠性, 解决了现有手 工备份和冷备份存在的问题。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1. 一种网关故障时的消息处理方法, 包括:
第一网关故障后, 第二网关向与所述第一网关通信链接的四层交换机发送 所述第一网关故障的通知, 并启动接管第一网关消息的流程; 其中, 所述第二 网关为所述第一网关的备份网关;
所述四层交换机收到所述通知后, 确定当前消息为发往所述第一网关的消 息时, 根据所述第一网关对应的接管策略向所述第二网关转发所述当前消息; 所述第二网关使用所述接管第一网关消息的流程转发所述当前消息。
2. 根据权利要求 1所述的方法, 其中, 所述四层交换机根据所述第一网关对应的 接管策略向所述第二网关转发所述当前消息包括:
所述四层交换机将所述当前消息的目的地址转换为所述第二网关对应的指 定地址;
所述四层交换机向所述第二网关转发目的地址转换后的所述当前消息。
3. 根据权利要求 2所述的方法, 其中, 所述第二网关使用所述接管第一网关消息 的流程转发所述当前消息包括:
所述第二网关接收到所述当前消息后, 确定所述当前消息的目的地址为所 述指定地址, 调用所述接管第一网关消息的流程;
所述接管第一网关消息的流程根据所述指定地址、 预先备份的所述第一网 关的网络连接账号和路由数据转发所述当前消息。
4. 根据权利要求 1所述的方法, 其中, 所述第一网关故障恢复后, 所述方法还包 括:
所述第一网关或所述第二网关向所述四层交换机发送所述第一网关故障恢 复的通知;
所述第二网关关闭所述接管第一网关消息的流程;
所述第一网关恢复故障发生前的业务。
5. 根据权利要求 1-4任一项所述的方法, 其中, 所述四层交换机设置在以下位置 之一:
所述第一网关相连的接入网中的指定交换机上;
所述第一网关所在局域网中的指定交换机上。
6. 一种网关故障时的消息处理方法, 包括:
第一网关故障后, 第二网关向与所述第一网关通信链接的四层交换机发送 所述第一网关故障的通知, 并启动接管第一网关消息的流程; 其中, 所述第二 网关为所述第一网关的备份网关;
所述接管第一网关消息的流程向所述四层交换机发送消息; 所述四层交换机接收当前消息, 根据所述当前消息的源地址确定所述当前 消息为所述接管第一网关消息的流程发送的消息时, 根据所述第一网关对应的 接管策略转发所述当前消息。
7. 根据权利要求 6所述的方法, 其中, 所述接管第一网关消息的流程向所述四层交换机发送消息包括: 所述接管 第一网关消息的流程向所述四层交换机发送消息, 所述消息的源地址携带有指 定地址; 所述四层交换机根据所述第一网关对应的接管策略转发所述当前消息 包括: 所述四层交换机将所述当前消息的源地址转换为所述第一网关的地址; 所述四层交换机转发源地址转换后的所述当前消息。
8. 根据权利要求 6所述的方法, 其中, 所述第一网关故障恢复后, 所述方法还包 括:
所述第一网关或所述第二网关向所述四层交换机发送所述第一网关故障恢 复的通知;
所述第二网关关闭所述接管第一网关消息的流程;
所述第一网关恢复故障发生前的业务。
9. 根据权利要求 6-8任一项所述的方法, 其中, 所述四层交换机设置在以下位置 之一:
所述第一网关相连的接入网中的指定交换机上;
所述第一网关所在局域网中的指定交换机上。
10. 一种网关故障时的消息处理系统, 包括第一网关、第二网关, 所述系统还包括: 与所述第一网关通信链接的四层交换机;
所述第二网关包括:
故障通知模块, 设置为所述第一网关故障后, 向所述四层交换机发送所述 第一网关故障的通知; 其中, 所述第二网关为所述第一网关的备份网关;
第一接管模块, 设置为所述故障通知模块发送所述通知后, 启动接管第一 网关消息的流程, 使用所述接管第一网关消息的流程转发当前消息;
所述四层交换机包括:
第一消息确定模块, 设置为收到所述第二网关的所述通知后, 确定当前消 息是否为发往所述第一网关的消息;
第一消息转发模块, 设置为当所述第一消息确定模块确定的结果为是时, 根据所述第一网关对应的接管策略向所述第二网关转发所述当前消息。
11. 根据权利要求 10所述的系统, 其中,
所述第一消息确定模块包括: 第一消息确定单元, 设置为根据当前消息的 目的地址确定所述当前消息为发往所述第一网关的消息;
所述第一消息转发模块包括:
第一地址转换单元, 设置为将所述第一消息确定单元确定的所述当前消息 的目的地址转换为所述第二网关对应的指定地址;
第一消息转发单元, 设置为转发所述第一地址转换单元转换后的所述当前 消息。
12. 根据权利要求 10所述的系统, 其中, 所述第二网关还包括: 第二接管模块, 设置为所述接管第一网关消息的流 程向所述四层交换机发送消息;
所述四层交换机还包括:
第二消息确定模块, 设置为接收当前消息, 根据所述当前消息的源地址确 定所述当前消息是否为所述接管第一网关消息的流程发送的消息;
第二消息转发模块, 设置为当所述第二消息确定模块确定的结果为是时, 根据所述第一网关对应的接管策略转发所述当前消息。
13. 根据权利要求 12所述的系统, 其中, 所述第二接管模块包括: 接管单元, 设置为所述接管第一网关消息的流程 向所述四层交换机发送消息, 所述消息的源地址携带有指定地址; 所述第二消 息转发模块包括:
第二地址转换单元, 设置为将所述第二消息确定模块确定的所述当前消息 的源地址转换为所述第一网关的地址;
第二消息转发单元, 设置为转发所述第二地址转换单元转换后的所述当前 消息。
14. 根据权利要求 10所述的系统, 其中, 所述系统还包括: 故障恢复通知模块; 所述故障恢复通知模块设置在所述第一网关或所述第二网关上, 设置为所 述第一网关故障恢复后,向所述四层交换机发送所述第一网关故障恢复的通知; 所述第二网关包括:关闭模块,设置为关闭所述接管第一网关消息的流程; 所述第一网关包括: 恢复模块, 设置为恢复故障发生前的业务。
15. 根据权利要求 10-14任一项所述的系统, 其中, 所述四层交换机设置在以下位 置之一:
所述第一网关相连的接入网中的指定交换机上;
所述第一网关所在局域网中的指定交换机上。
16. 一种网关, 所述网关作为第一网关的备份网关, 包括:
故障通知模块, 设置为所述第一网关故障后, 向与所述第一网关通信链接 的四层交换机发送所述第一网关故障的通知;
接管模块, 设置为所述故障通知模块发送所述通知后, 启动接管第一网关 消息的流程, 使用所述接管第一网关消息的流程转发当前消息。
17. 根据权利要求 16所述的网关, 其中, 所述接管模块包括: 消息转发处理单元, 设置为所述接管第一网关消息的流程根据当前消息的 目的地址、 预先备份的所述第一网关的网络连接账号和路由数据转发所述当前 消息。
PCT/CN2011/080119 2011-01-18 2011-09-23 网关故障时的消息处理方法、系统和网关 WO2012097604A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110009962XA CN102595353A (zh) 2011-01-18 2011-01-18 网关故障时的消息处理方法、系统和网关
CN201110009962.X 2011-01-18

Publications (1)

Publication Number Publication Date
WO2012097604A1 true WO2012097604A1 (zh) 2012-07-26

Family

ID=46483470

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/080119 WO2012097604A1 (zh) 2011-01-18 2011-09-23 网关故障时的消息处理方法、系统和网关

Country Status (2)

Country Link
CN (1) CN102595353A (zh)
WO (1) WO2012097604A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973476A (zh) * 2013-02-06 2014-08-06 上海杰之能信息科技有限公司 网关、网关热备份系统及方法
CN106972958A (zh) * 2017-03-13 2017-07-21 海信集团有限公司 网关设备配置方法、装置及系统
CN108737260A (zh) * 2017-04-13 2018-11-02 中国移动通信集团上海有限公司 一种行业短信发送方法、控制器、交换机及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571410A (zh) * 2003-07-15 2005-01-26 华为技术有限公司 上报分布式信令网关链路故障的方法
CN1691615A (zh) * 2004-04-27 2005-11-02 华为技术有限公司 检测默认网关工作状态的方法及其装置
JP2010220014A (ja) * 2009-03-18 2010-09-30 Oki Electric Ind Co Ltd 冗長化ゲートウェイシステム

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571410A (zh) * 2003-07-15 2005-01-26 华为技术有限公司 上报分布式信令网关链路故障的方法
CN1691615A (zh) * 2004-04-27 2005-11-02 华为技术有限公司 检测默认网关工作状态的方法及其装置
JP2010220014A (ja) * 2009-03-18 2010-09-30 Oki Electric Ind Co Ltd 冗長化ゲートウェイシステム

Also Published As

Publication number Publication date
CN102595353A (zh) 2012-07-18

Similar Documents

Publication Publication Date Title
US11323307B2 (en) Method and system of a dynamic high-availability mode based on current wide area network connectivity
US8339940B2 (en) Multi-active detection method and stack member device
CN102148677B (zh) 一种更新地址解析协议表项的方法及核心交换机
WO2011157151A2 (zh) 实现容灾备份的方法、设备及系统
JP5366177B2 (ja) スロットインターフェースアクセス装置、その方法及びそのプログラム並びに主装置の冗長構成及び代替方法
WO2008046358A1 (fr) Procédé et dispositif destinés à réaliser une pénétration d'un statut de liaison de réseau point à multipoint
WO2007062559A1 (fr) Procede et passerelle de restitution de service au moment de la permutation entre passerelles pilote et asservie
WO2007000094A1 (fr) Procede pour effectuer un raccordement a double anneau de central de commutation mobile
WO2008014696A1 (fr) Méthode et dispositif pour effectuer un transfert de communications
WO2011147312A1 (zh) 一种业务接入路由器的端口备份方法、装置和系统
JP2013030190A (ja) スロットインターフェースアクセス装置、その方法及びそのプログラム並びに主装置の冗長構成及び代替方法
WO2020057445A1 (zh) 一种通信系统、方法及装置
WO2009055995A1 (en) Maintaining method for automatic switched optical network system when operation engenders alarm
AU2011229566A1 (en) Load sharing method and apparatus
CN101242254B (zh) 虚拟冗余路由器系统及传输虚拟冗余路由协议报文的方法
WO2014048128A1 (zh) 环网中点到多点业务的保护方法及环网中的上环节点
WO2008095360A1 (fr) Méthode et système de commutation rapide en cas de défaillance d'une liaison d'un réseau privé virtuel
WO2012097604A1 (zh) 网关故障时的消息处理方法、系统和网关
WO2009152700A1 (zh) 管理网络设备端口状态的方法、系统及中转设备
WO2014101125A1 (zh) 聚合组链路协商方法、装置和系统
JP5767309B2 (ja) 緊急時用切り替え方法及びそのシステム
KR20200072941A (ko) 실시간 오류 감지를 통한 vrrp 기반의 네트워크 장애 대응 방법 및 장치
WO2015135280A1 (zh) 一种实现按需智能拨号的方法、系统和接入路由器
WO2014044088A1 (zh) L2tp网络的保护方法、装置及系统
CN114268581A (zh) 一种实现网络设备高可用和负载分担的方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11856238

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11856238

Country of ref document: EP

Kind code of ref document: A1