WO2016173403A1 - 路由设备、负载均衡设备、消息分发方法及系统 - Google Patents

路由设备、负载均衡设备、消息分发方法及系统 Download PDF

Info

Publication number
WO2016173403A1
WO2016173403A1 PCT/CN2016/079308 CN2016079308W WO2016173403A1 WO 2016173403 A1 WO2016173403 A1 WO 2016173403A1 CN 2016079308 W CN2016079308 W CN 2016079308W WO 2016173403 A1 WO2016173403 A1 WO 2016173403A1
Authority
WO
WIPO (PCT)
Prior art keywords
load balancing
message
balancing device
session
subsequent message
Prior art date
Application number
PCT/CN2016/079308
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 WO2016173403A1 publication Critical patent/WO2016173403A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering

Definitions

  • the present invention relates to the field of communications, and in particular, to a routing device, a load balancing device, a message distribution method, and a system.
  • reliability redundancy is usually set for the distribution device in order to avoid a session interruption due to a failure of the distribution device.
  • each session is distributed through a distribution cluster, where the distribution cluster includes at least two load balancing devices, one of which is a master device and the other is a secondary device.
  • the master device activates the task of distributing the session message.
  • the secondary device is inactive.
  • the external network element sends a session message to the service processing device
  • the session message is sent to the master device through the interface address of the master device, and is sent by the master device to the corresponding service processing unit.
  • the slave device is activated.
  • the element modifies the interface address of the distribution device in the message header field to the interface address of the secondary device, and sends subsequent messages to the secondary device.
  • the load balancing device is also provided with a link management function for managing the message link.
  • the external network element needs to modify the interface address of the distribution device. This process causes the call loss of the session, affects the session quality, and the load balancing device also assumes the link management function.
  • the current link management function is also unavailable, which may cause a broken link to occur, resulting in a session failure.
  • the embodiment of the invention provides a routing device, a load balancing device, a message distribution method and a system.
  • the technical solution is as follows:
  • a routing device for use in a message distribution system, the message distribution system including the routing device, and at least two load balancing including a first load balancing device and a second load balancing device Equipment
  • the at least two load balancing devices respectively correspond to one interface address, and the corresponding interface addresses of the at least two load balancing devices are used to perform message equivalent between the routing device and the at least two load balancing devices.
  • Distributing; the routing device includes:
  • a fault detection module configured to detect whether the first load balancing device is faulty, where the first load balancing device is a original distribution device of a session;
  • a distribution device determining module configured to determine, according to a preset equal-cost routing rule, that the second load balancing device is a new distribution device of the session, if the first load balancing device fails;
  • a sending module configured to distribute, according to the interface address corresponding to the second load balancing device, a subsequent message of the session to the second load balancing device, where the second load balancing device sends the subsequent message to The next hop node corresponding to the conversation.
  • the fault detection module is configured to detect whether the first load balancing device fails by using a bidirectional forwarding detection BFD protocol.
  • the distribution device determining module is configured to determine, according to the Open Shortest Path First OSPF protocol, that the second load balancing device is a new distribution device of the session.
  • a load balancing device for use in a message distribution system, where the message distribution system includes a routing device, and at least two load balancing devices including the load balancing device and the first load balancing device, The at least two load balancing devices respectively correspond to one interface address, and the corresponding interface addresses of the at least two load balancing devices are used for performing messages between the routing device and the at least two load balancing devices.
  • Price distribution; the load balancing device includes:
  • a receiving module configured to receive a subsequent message of the session sent by the routing device, where the subsequent message is determined by the routing device after detecting that the first load balancing device is faulty, according to a preset equal-cost routing rule
  • the load balancing device is a new distribution device of the session, and is distributed according to an interface address corresponding to the load balancing device; the first load balancing device is an original distribution device of the session;
  • a sending module configured to send the subsequent message to a next hop node corresponding to the conversation.
  • the sending module includes:
  • a first sending unit configured to: when the subsequent message is a service message, and the subsequent message includes a scheduling parameter, send the subsequent message to the identifier according to the identifier of the service processing device carried in the scheduling parameter Business processing unit.
  • the sending module includes:
  • a first determining unit configured to: when the subsequent message is a service message, and the subsequent message does not include a scheduling parameter, performing a hash operation according to the call identifier of the subsequent message, and determining a service processing corresponding to the subsequent message Equipment
  • a second sending unit configured to send the subsequent message to the determined service processing device.
  • the sending module includes:
  • a second determining unit configured to: when the subsequent message is a link management message, perform a hash operation according to the destination address, the destination port, and the management protocol of the subsequent message, and determine a link management device corresponding to the subsequent message;
  • a third sending unit configured to send the subsequent message to the determined link management device.
  • a third aspect provides a message distribution method for a message distribution system, where the message distribution system includes a routing device and at least two load balancing devices including a first load balancing device and a second load balancing device.
  • the at least two load balancing devices respectively correspond to one interface address, and the corresponding interface addresses of the at least two load balancing devices are used to perform message equivalent between the routing device and the at least two load balancing devices.
  • Distribute the method includes:
  • the routing device detects whether the first load balancing device is faulty, and the first load balancing device is an original distribution device of a session;
  • the routing device determines, according to a preset equal-cost routing rule, that the second load balancing device is a new distribution device of the session;
  • the routing device distributes the subsequent message of the session to the second load balancing device according to the interface address corresponding to the second load balancing device, and sends the subsequent message to the second load balancing device by the second load balancing device.
  • the next hop node corresponding to the conversation The next hop node corresponding to the conversation.
  • the detecting, by the routing device, detecting whether the first load balancing device of the at least two load balancing devices fails includes:
  • the routing device detects whether the first load balancing device is faulty by using a bidirectional forwarding detection BFD protocol.
  • the determining, by the routing device, the second load balancing device is a new distribution device of the session according to a preset routing rule, including:
  • the routing device determines that the second load balancing device is a new distribution device of the session according to an open shortest path first OSPF protocol.
  • a fourth aspect provides a message distribution method, in a message distribution system, where the message distribution system includes a routing device, and at least two load balancing devices including a first load balancing device and a second load balancing device, The at least two load balancing devices respectively correspond to one interface address, and the corresponding interface addresses of the at least two load balancing devices are used for performing messages between the routing device and the at least two load balancing devices.
  • Price distribution the method includes:
  • the second load balancing device receives a subsequent message of the session sent by the routing device; the subsequent message is After detecting that the first load balancing device is faulty, the routing device determines that the second load balancing device is a new distribution device of the session according to a preset equal-cost routing rule, and according to the second load balancing device. Distributing an interface address corresponding to the device; the first load balancing device is an original distribution device of the session;
  • the second load balancing device sends the subsequent message to a next hop node corresponding to the conversation.
  • the second load balancing device when the subsequent message is a service message, and the subsequent message includes a scheduling parameter, the second load balancing device sends the subsequent message to the session Corresponding next hop nodes, including:
  • the second load balancing device sends the subsequent message to the service processing unit according to the identifier of the service processing device carried in the scheduling parameter.
  • the second load balancing device when the subsequent message is a service message, and the subsequent message does not include a scheduling parameter, the second load balancing device sends the subsequent message to the session Corresponding next hop nodes, including:
  • the second load balancing device performs a hash operation according to the call identifier of the subsequent message, and determines a service processing device corresponding to the subsequent message;
  • the second load balancing device sends the subsequent message to the determined service processing device.
  • the second load balancing device when the subsequent message is a link management message, sends the subsequent message to the next hop node corresponding to the session, including:
  • the second load balancing device performs a hash operation according to the destination address, the destination port, and the management protocol of the subsequent message, and determines a link management device corresponding to the subsequent message;
  • the second load balancing device sends the subsequent message to the determined link management device.
  • a message distribution system comprising:
  • the routing device When the routing device detects that the first load balancing device carrying the session distribution task fails, determining, by the equal-cost routing rule, the second load balancing device carries the subsequent message of the session, and passes only the routing device and the second load.
  • the interface address that is valid between the equalizing devices distributes the subsequent messages of the session to the second load balancing device.
  • the external network element only needs to send the message of the session to the routing device, and does not need to modify the session message.
  • the interface address does not cause call loss, which improves the quality of the session.
  • FIG. 1 is a network element architecture diagram of a network environment involved in a message distribution method according to some embodiments of the present invention
  • FIG. 2 is a flowchart of a method for distributing a message according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for distributing a message according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for distributing a message according to an embodiment of the present invention.
  • FIG. 5 is a structural diagram of a routing device according to an embodiment of the present invention.
  • FIG. 6 is a structural diagram of a load balancing device according to an embodiment of the present invention.
  • FIG. 7 is a block diagram of a network device according to an embodiment of the present invention.
  • FIG. 1 shows a network element architecture diagram of a network environment involved in a message distribution method according to some embodiments of the present invention.
  • the network environment includes at least the following network entities: a routing device 110, at least two load balancing devices 120 including a first load balancing device and a second load balancing device, at least one service processing device 130, and a link management device 140.
  • the routing device 110 is connected to the external network element 150 through the application network, and the routing device 110 is also connected to the at least two load balancing devices (English: Load Balancer, LB) 120, and at least two load balancing devices 120. Each device is connected to the at least one service processing device (English name: Service Process Unit, abbreviation: SPU) 130. Further, each of the at least two load balancing devices 120 is also connected to the link management device 140. At least two load balancing devices 120 are configured to transmit the service message to the service processing device 130 and send the link management message to the link management device 140.
  • the at least two load balancing devices English: Load Balancer, LB
  • SPU Service Process Unit
  • the external network element 150 sends a message to the routing device 110 according to the interface address of the routing device 110, and is distributed by the routing device 110 to one of the at least two load balancing devices 120.
  • Each of the at least two load balancing devices 120 has an interface address (as shown in FIG. 1 , each load balancing device 120 has an interface address corresponding to IP11-IP1n from left to right), and the at least two load balancing devices 120 Respective The interface address should be valid only between the routing device 110 and the at least two load balancing devices 120.
  • At least one service processing device 130 shares an interface address (IP1) for service message forwarding.
  • IP1 interface address
  • the external network element sends the session message distributed by the at least two load balancing devices to the routing device, and the routing device is equivalently forwarded to the corresponding load balancing device, when one of the load balancing devices occurs.
  • the routing device selects another load balancing device to forward subsequent messages of the session assumed by the failed load balancing device according to the corresponding interface address of each load balancing device. The process is only controlled by the routing device, and the external network element does not. The address of the interface in the session message needs to be modified, and no call loss will occur.
  • the solution shown in the present invention is independent of the link management device except the load balancing device, and the link management device sends the link management message to the link management device to separate the link management device from the load balancing device.
  • FIG. 2 shows a flowchart of a method for distributing a message according to an embodiment of the present invention.
  • the message distribution method can be used in the routing device of the network environment shown in FIG. 1.
  • the message distribution method may include:
  • Step 201 The routing device detects whether the first load balancing device is faulty, and the first load balancing device is an original distribution device of a session.
  • Step 202 If the first load balancing device fails, the routing device determines that the second load balancing device is a new distribution device of the session according to a preset equal-cost routing rule.
  • step 203 the routing device distributes the subsequent message of the session to the second load balancing device according to the interface address corresponding to the second load balancing device, and the second load balancing device sends the subsequent message to the corresponding session.
  • Next hop node the routing device distributes the subsequent message of the session to the second load balancing device according to the interface address corresponding to the second load balancing device, and the second load balancing device sends the subsequent message to the corresponding session.
  • the message distribution method determines that the second load balancing device carries the session according to the equal-cost routing rule when detecting that the first load balancing device carrying the session distribution task fails.
  • the subsequent message, and the subsequent message of the session is distributed to the second load balancing device by the interface address valid only between the routing device and the second load balancing device, in the process, the external network element only needs to be the session
  • the message can be sent to the routing device. It is not necessary to modify the interface address in the session message, and no call loss will occur, thus improving the session quality.
  • FIG. 3 is a flowchart of a method for distributing a message according to an embodiment of the present invention.
  • the message distribution method can be used in the second load balancing device of the network environment shown in FIG. 1.
  • the message distribution method may include:
  • Step 301 The second load balancing device receives a subsequent message of the session sent by the routing device. After the routing device detects that the first load balancing device is faulty, the second load balancing device is determined to be a new distribution device of the session according to a preset equal-cost routing rule, and corresponding to the second load balancing device according to the second load balancing device. The interface address is distributed; the first load balancing device is the original distribution device of the session.
  • Step 302 The second load balancing device sends the subsequent message to the next hop node corresponding to the session.
  • the message distribution method determines that the second load balancing device carries the session according to the equal-cost routing rule when detecting that the first load balancing device carrying the session distribution task fails. a subsequent message, and the subsequent message of the session is distributed to the second load balancing device by the interface address valid only between the routing device and the second load balancing device, after the second load balancing device receives the subsequent message of the session, The subsequent message of the session is sent to the next hop node.
  • the external network element only needs to send the message of the session to the routing device, and does not need to modify the interface address in the session message, and no call loss occurs. Situation, thereby improving the quality of the session.
  • FIG. 4 is a flowchart of a method for distributing a message according to an embodiment of the present invention.
  • the message distribution method can be used in the network environment shown in FIG.
  • the message distribution method may include:
  • Step 401 When the external network element establishes a session, the first message of the session is sent to the routing device.
  • an external NE When an external NE establishes a session, it sends a system-level encapsulation (English In System Package, abbreviation: SIP) first message to the routing device according to the interface address of the routing device.
  • SIP System-level encapsulation
  • TCP Transmission Control Protocol
  • Step 402 The routing device determines, according to the preset equal-cost routing rule, that the first load balancing device is the distribution device of the session.
  • the first load balancing device is determined according to a preset equal-cost routing rule, such as an Open Shortest Path First (OSPF) rule.
  • OSPF Open Shortest Path First
  • Step 403 The routing device distributes each message of the session to the first load balancing device according to the interface address of the first load balancing device.
  • Step 404 The first load balancing device sends each message of the session to the next node corresponding to the session.
  • the first load balancing device When the first load balancing device receives the SIP first message, performing a hash calculation according to the call ID (CALL ID) of the SIP first message, obtaining a service processing device corresponding to the session, and sending the SIP first message, and subsequently receiving the message again.
  • the subsequent session message is sent to the same service processing device.
  • the first load balancing device When the first load balancing device receives the TCP message, sending the link management device to the link management device according to the port of the link management device. Send the TCP message.
  • Step 405 The routing device detects whether the first load balancing device is faulty.
  • the routing device can detect whether the first load balancing device is faulty by using a bidirectional forwarding detection (BFD) protocol.
  • BFD bidirectional forwarding detection
  • Step 406 If the first load balancing device fails, the routing device determines, according to the preset equal-cost routing rule, that the second load balancing device is a new distribution device of the session.
  • routing device detects that the first load device is faulty, determining, according to the same equal-cost routing rule (OSPF rule), that the second load balancing device is the new distribution device of the session from the remaining devices of the at least two load balancing devices .
  • OSPF rule equal-cost routing rule
  • Step 407 The routing device distributes the subsequent message of the session to the second load balancing device according to the interface address corresponding to the second load balancing device.
  • Step 408 The second load balancing device sends the subsequent message to the next hop node corresponding to the conversation.
  • the second load balancing device sends the subsequent message to the corresponding service processing unit according to the identifier of the service processing device carried in the scheduling parameter.
  • the scheduling parameter is a DPT (DISPATCH) parameter, which is a parameter of the SIP message routing header field extension itself.
  • the second load balancing device When the subsequent message is a service message, and the subsequent message does not include the scheduling parameter, the second load balancing device performs a hash operation according to the call identifier of the subsequent message, and determines a service processing device corresponding to the subsequent message, and the A subsequent message is sent to the determined service processing device.
  • the second load balancing device When the subsequent message is a link management message, the second load balancing device performs a hash operation according to the destination address, the destination port, and the management protocol of the subsequent message, determines a link management device corresponding to the subsequent message, and performs the subsequent The message is sent to the determined link management device.
  • the message distribution method determines that the second load balancing device carries the session according to the equal-cost routing rule when detecting that the first load balancing device carrying the session distribution task fails. a subsequent message, and the subsequent message of the session is distributed to the second load balancing device by the interface address valid only between the routing device and the second load balancing device, after the second load balancing device receives the subsequent message of the session, The subsequent message of the session is sent to the next hop node.
  • the external network element only needs to send the message of the session to the routing device, and does not need to modify the interface address in the session message, and no call loss occurs. Situation, thereby improving the quality of the session.
  • the link management function is set on a link management device that is independent of the load balancing device, and the routing device selects the load balancing device to perform link management message distribution.
  • the routing device can select another load balancing device to send the link management message, thereby avoiding the situation that the load balancing device is applauding and causing the link to be broken, thereby improving the reliability of the link management. Sex.
  • FIG. 5 is a structural diagram of a routing device according to an embodiment of the present invention.
  • the routing device can be the routing device 110 in the network environment shown in FIG. 1, which can perform all the steps of the method shown in FIG. 2 or perform some of the steps in the method shown in FIG.
  • the route may include: a fault detection module 501, a distribution device determination module 502, and a sending module 503;
  • the fault detection module 501 is configured to detect whether the first load balancing device is faulty, and the first load balancing device is a original distribution device of a session;
  • the distribution device determining module 502 is configured to determine, according to a preset equal-cost routing rule, that the second load balancing device is a new distribution device of the session, if the first load balancing device fails;
  • the sending module 503 is configured to distribute, according to the interface address corresponding to the second load balancing device, a subsequent message of the session to the second load balancing device, where the second load balancing device performs the subsequent The message is sent to the next hop node corresponding to the conversation.
  • the fault detection module 501 is configured to detect whether the first load balancing device fails by using a bidirectional forwarding detection BFD protocol.
  • the distribution device determining module 502 is configured to determine, according to the Open Shortest Path First OSPF protocol, that the second load balancing device is a new distribution device of the session.
  • the routing device determines that the second load balancing device carries the subsequent message of the session according to the equal-cost routing rule when detecting that the first load balancing device that carries a session distribution task fails. And distributing the subsequent message of the session to the second load balancing device by using only the interface address that is valid between the routing device and the second load balancing device. In this process, the external network element only needs to send the message of the session to The routing device can be used without modifying the interface address in the session message, and the call loss will not occur, thereby improving the session quality.
  • FIG. 6 is a structural diagram of a load balancing device according to an embodiment of the present invention.
  • the load balancing device may be a second load balancing device of at least two load balancing devices 120 in the network environment shown in FIG. 1, and the load balancing device may perform all the steps of the method shown in FIG. Show some steps in the method.
  • the route may include: a receiving module 601 and a sending module 602;
  • the message receiving module 601 is configured to receive a subsequent message of a session sent by the routing device, where the subsequent message is that the routing device detects that the first load balancing device is faulty, according to a preset setting, etc.
  • the price routing rule determines that the load balancing device is a new distribution device of the session, and according to the corresponding connection of the load balancing device The port address is distributed; the first load balancing device is an original distribution device of the session;
  • the sending module 602 is configured to send the subsequent message to a next hop node corresponding to the session.
  • the sending module 602 includes:
  • the first sending unit 602a is configured to send the subsequent message to the office according to the identifier of the service processing device carried in the scheduling parameter, when the subsequent message is a service message, and the subsequent message includes a scheduling parameter.
  • the business processing unit is configured to send the subsequent message to the office according to the identifier of the service processing device carried in the scheduling parameter, when the subsequent message is a service message, and the subsequent message includes a scheduling parameter.
  • the sending module 602 includes:
  • the first determining unit 602b is configured to perform a hash operation according to the call identifier of the subsequent message when the subsequent message is a service message, and the subsequent message does not include the scheduling parameter, and determine a service corresponding to the subsequent message.
  • the second sending unit 602c is configured to send the subsequent message to the determined service processing device.
  • the sending module 602 includes:
  • the second determining unit 602d is configured to: when the subsequent message is a link management message, perform a hash operation according to the destination address, the destination port, and the management protocol of the subsequent message, and determine a link management device corresponding to the subsequent message. ;
  • the third sending unit 602e is configured to send the subsequent message to the determined link management device.
  • the load balancing device determines that the load balancing device carries the session according to the equal-cost routing rule when detecting that the first load balancing device that carries a session distribution task fails. a subsequent message, and the subsequent message of the session is distributed by the interface address valid only between the routing device and the load balancing device, and the subsequent message of the session is sent to the next hop node, in the process, the external network element You only need to send the message of the session to the routing device. You do not need to modify the interface address in the session message, and no call loss will occur, thus improving the session quality.
  • FIG. 7 shows a block diagram of a network device according to an embodiment of the present invention.
  • the network entity 700 can be a routing device or a load balancing device in the network environment shown in FIG. 1 above.
  • the network device can include a bus 701, and a processor 702, a memory 703, a transmitter 704, and a receiver 705 coupled to the bus.
  • the memory 703 is configured to store a plurality of instructions, the instructions being configured to be executed by the processor 702;
  • the processor 702 is configured to detect whether the first load balancing device is faulty, and the first load balancing device Is the original of a conversation Distribute equipment;
  • the processor 702 is configured to determine, according to a preset equal-cost routing rule, that the second load balancing device is a new distribution device of the session, if the first load balancing device fails;
  • the processor 702 is configured to control, according to the interface address corresponding to the second load balancing device, the transmitter 704 to distribute subsequent messages of the session to the second load balancing device, where the second load is The equalization device sends the subsequent message to the next hop node corresponding to the conversation.
  • the processor 702 is configured to control the transmitter 704 and the receiver 705 to detect whether the first load balancing device is faulty by using a bidirectional forwarding detection BFD protocol.
  • the processor 702 is configured to determine, according to the Open Shortest Path First OSPF protocol, that the second load balancing device is a new distribution device of the session.
  • the processor 702 is configured to control the receiver 705 to receive a subsequent message of a session sent by the routing device.
  • the subsequent message is that after the routing device detects that the first load balancing device fails, the routing device determines that the load balancing device is a new distribution device of the session according to a preset equal-cost routing rule, and according to the Distributing the interface address corresponding to the load balancing device; the first load balancing device is the original distribution device of the session;
  • the processor 702 is configured to control the transmitter 704 to send the subsequent message to a next hop node corresponding to the session.
  • the processor 702 is configured to: when the subsequent message is a service message, and the subsequent message includes a scheduling parameter, control the transmitting according to the identifier of the service processing device carried in the scheduling parameter.
  • the 704 sends the subsequent message to the service processing unit.
  • the processor 702 is configured to perform a hash operation according to the call identifier of the subsequent message when the subsequent message is a service message, and the subsequent message does not include the scheduling parameter, and determine the subsequent
  • the service processing device corresponding to the message controls the transmitter 704 to send the subsequent message to the determined service processing device.
  • the processor 702 is configured to: when the subsequent message is a link management message, perform a hash operation according to the destination address, the destination port, and the management protocol of the subsequent message, and determine, corresponding to the subsequent message.
  • the link manages the device and controls the transmitter 704 to transmit the subsequent message to the determined link management device.
  • An embodiment of the present invention further provides a message distribution system, which can be a routing device and at least two load balancing devices.
  • the routing device is the routing device shown in FIG. 5 above
  • the load balancing device is the load balancing device shown in FIG. 6 above.
  • the routing device and the load balancing device may also be implemented as the network device shown in FIG. 7 above.
  • the message distribution system provided by the embodiment of the present invention may further include at least one service processing device, a link management device, and the like, and the connection relationship between the network devices included in the message distribution system may be as shown in FIG. The embodiments of the present invention are not described again.
  • routing device and the message distribution device provided by the foregoing embodiments distribute messages, only the division of the foregoing functional modules is illustrated. In actual applications, the functions may be allocated by different functional modules according to requirements. Completion, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • routing device and the message distribution device provided by the foregoing embodiments are in the same concept as the message distribution method embodiment, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

本发明公开了一种路由设备、负载均衡设备、消息分发方法及系统,属于通信领域。所述路由设备包括:故障检测模块、分发设备确定模块以及发送模块。所述路由设备通过在检测出承载一个会话分发任务的第一负载均衡设备发生故障时,根据等价路由规则确定第二负载均衡设备承载该会话的后续消息,并通过仅在路由设备和该第二负载均衡设备之间生效的接口地址向第二负载均衡设备分发该会话的后续消息,在此过程中,外部网元只需要将该会话的消息发送至路由设备即可,不需要修改会话消息中的接口地址,不会发生呼叫损失的情况,从而提高会话质量。

Description

路由设备、负载均衡设备、消息分发方法及系统
本申请要求于2015年4月30日提交中国专利局、申请号为201510217297.1、发明名称为“路由设备、负载均衡设备、消息分发方法及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信领域,特别涉及一种路由设备、负载均衡设备、消息分发方法及系统。
背景技术
电信设备进行消息分发时,为了避免因分发设备故障导致会话中断的情况,通常会对分发设备设置可靠性冗余。
在现有技术中,通常采用主备或双归属方式提供可靠性冗余。具体的,每个会话通过一个分发集群进行分发,该分发集群中包含至少两个负载均衡设备,其中一个为主设备,另一个为副设备,正常情况下,主设备激活承担会话消息的分发任务,副设备处于未激活状态。外部网元向业务处理设备发送会话消息时,通过主设备的接口地址将会话消息发送给主设备,由主设备下发给对应的业务处理单元;主设备发生故障时,激活副设备,外部网元将消息头域中的分发设备的接口地址修改为副设备的接口地址,并将后续的消息发送给副设备。此外,负载均衡设备中还设置有链路管理功能,用以对消息链路进行管理。
在实现本发明的过程中,申请人发现现有技术至少存在以下缺点:
当主分发设备发生故障时,需要外部网元修改分发设备的接口地址,该过程会导致会话的呼叫损失,影响会话质量,并且,由于负载均衡设备还承担链路管理功能,当主设备发生故障时,当前链路管理功能也不可用,可能导致断链的情况发生,从而导致会话失败。
发明内容
为了解决现有技术中当主分发设备发生故障时,需要外部网元修改分发设备的接口地址,导致会话的呼叫损失,并且,由于负载均衡设备中的链路管理功能不可用而导致断链的问题,本发明实施例提供了一种路由设备、负载均衡设备、消息分发方法及系统。所述技术方案如下:
第一方面,提供了一种路由设备,用于消息分发系统中,所述消息分发系统包括所述路由设备,以及包含第一负载均衡设备和第二负载均衡设备在内的至少两个负载均衡设备,所 述至少两个负载均衡设备各自对应一个接口地址,且所述至少两个负载均衡设备各自对应的接口地址用于在所述路由设备和所述至少两个负载均衡设备之间进行消息的等价分发;所述路由设备包括:
故障检测模块,用于检测所述第一负载均衡设备是否发生故障,所述第一负载均衡设备是一个会话的原分发设备;
分发设备确定模块,用于若所述第一负载均衡设备发生故障,则根据预先设置的等价路由规则确定所述第二负载均衡设备为所述会话的新的分发设备;
发送模块,用于根据所述第二负载均衡设备对应的接口地址,将所述会话的后续消息分发给所述第二负载均衡设备,由所述第二负载均衡设备将所述后续消息发送给所述对话对应的下一跳节点。
在第一方面的第一种可能实现方式中,所述故障检测模块,用于通过双向转发检测BFD协议检测所述第一负载均衡设备是否发生故障。
在第一方面的第二种可能实现方式中,所述分发设备确定模块,用于根据开放式最短路径优先OSPF协议确定所述第二负载均衡设备为所述会话的新的分发设备。
第二方面,提供一种负载均衡设备,用于消息分发系统中,所述消息分发系统包括路由设备,以及包含所述负载均衡设备和第一负载均衡设备在内的至少两个负载均衡设备,所述至少两个负载均衡设备各自对应一个接口地址,且所述至少两个负载均衡设备各自对应的接口地址用于在所述路由设备和所述至少两个负载均衡设备之间进行消息的等价分发;所述负载均衡设备包括:
接收模块,用于接收所述路由设备发送的,一个会话的后续消息;所述后续消息是所述路由设备检测出所述第一负载均衡设备发生故障后,根据预先设置的等价路由规则确定所述负载均衡设备为所述会话的新的分发设备,并根据所述负载均衡设备对应的接口地址分发的;所述第一负载均衡设备是所述会话的原分发设备;
发送模块,用于将所述后续消息发送给所述对话对应的下一跳节点。
在第二方面的第一种可能实现方式中,所述发送模块,包括:
第一发送单元,用于当所述后续消息为业务消息,且所述后续消息中包含调度参数时,根据所述调度参数中携带的业务处理设备的标识,将所述后续消息发送给所述业务处理单元。
在第二方面的第二种可能实现方式中,所述发送模块,包括:
第一确定单元,用于当所述后续消息为业务消息,且所述后续消息中不包含调度参数时,根据所述后续消息的呼叫标识进行散列运算,确定所述后续消息对应的业务处理设备;
第二发送单元,用于将所述后续消息发送给确定的所述业务处理设备。
在第二方面的第三种可能实现方式中,所述发送模块,包括:
第二确定单元,用于当所述后续消息为链路管理消息时,根据所述后续消息的目的地址、目的端口以及管理协议进行散列运算,确定所述后续消息对应的链路管理设备;
第三发送单元,用于将所述后续消息发送给确定的所述链路管理设备。
第三方面,提供一种消息分发方法,用于消息分发系统中,所述消息分发系统包括路由设备以及包含第一负载均衡设备和第二负载均衡设备在内的至少两个负载均衡设备,所述至少两个负载均衡设备各自对应一个接口地址,且所述至少两个负载均衡设备各自对应的接口地址用于在所述路由设备和所述至少两个负载均衡设备之间进行消息的等价分发;所述方法包括:
所述路由设备检测所述第一负载均衡设备是否发生故障,所述第一负载均衡设备是一个会话的原分发设备;
若所述第一负载均衡设备发生故障,则所述路由设备根据预先设置的等价路由规则确定所述第二负载均衡设备为所述会话的新的分发设备;
所述路由设备根据所述第二负载均衡设备对应的接口地址,将所述会话的后续消息分发给所述第二负载均衡设备,由所述第二负载均衡设备将所述后续消息发送给所述对话对应的下一跳节点。
在第三方面的第一种可能实现方式中,所述路由设备检测所述至少两个负载均衡设备中的第一负载均衡设备是否发生故障,包括:
所述路由设备通过双向转发检测BFD协议检测所述第一负载均衡设备是否发生故障。
在第三方面的第二种可能实现方式中,所述路由设备根据预先设置的等价路由规则确定所述第二负载均衡设备为所述会话的新的分发设备,包括:
所述路由设备根据开放式最短路径优先OSPF协议确定所述第二负载均衡设备为所述会话的新的分发设备。
第四方面,提供一种消息分发方法,用于消息分发系统中,所述消息分发系统包括路由设备,以及包含第一负载均衡设备和第二负载均衡设备在内的至少两个负载均衡设备,所述至少两个负载均衡设备各自对应一个接口地址,且所述至少两个负载均衡设备各自对应的接口地址用于在所述路由设备和所述至少两个负载均衡设备之间进行消息的等价分发;所述方法包括:
第二负载均衡设备接收所述路由设备发送的,一个会话的后续消息;所述后续消息是所 述路由设备检测出所述第一负载均衡设备发生故障后,根据预先设置的等价路由规则确定所述第二负载均衡设备为所述会话的新的分发设备,并根据所述第二负载均衡设备对应的接口地址分发的;所述第一负载均衡设备是所述会话的原分发设备;
所述第二负载均衡设备将所述后续消息发送给所述对话对应的下一跳节点。
在第四方面的第一种可能实现方式中,当所述后续消息为业务消息,且所述后续消息中包含调度参数时,所述第二负载均衡设备将所述后续消息发送给所述对话对应的下一跳节点,包括:
所述第二负载均衡设备根据所述调度参数中携带的业务处理设备的标识,将所述后续消息发送给所述业务处理单元。
第四方面的第二种可能实现方式中,当所述后续消息为业务消息,且所述后续消息中不包含调度参数时,所述第二负载均衡设备将所述后续消息发送给所述对话对应的下一跳节点,包括:
所述第二负载均衡设备根据所述后续消息的呼叫标识进行散列运算,确定所述后续消息对应的业务处理设备;
所述第二负载均衡设备将所述后续消息发送给确定的所述业务处理设备。
第四方面的第三种可能实现方式中,当所述后续消息为链路管理消息时,所述第二负载均衡设备将所述后续消息发送给所述对话对应的下一跳节点,包括:
所述第二负载均衡设备根据所述后续消息的目的地址、目的端口以及管理协议进行散列运算,确定所述后续消息对应的链路管理设备;
所述第二负载均衡设备将所述后续消息发送给确定的所述链路管理设备。
第五方面,提供一种消息分发系统,所述消息分发系统包括:
如上述第三方面或者第三方面的任一种可能实现方式所述的路由设备,以及,如上述第四方面或者第四方面的任一种可能实现方式所述的负载均衡设备。
本发明实施例提供的技术方案带来的有益效果是:
路由设备通过在检测出承载一个会话分发任务的第一负载均衡设备发生故障时,根据等价路由规则确定第二负载均衡设备承载该会话的后续消息,并通过仅在路由设备和该第二负载均衡设备之间生效的接口地址向第二负载均衡设备分发该会话的后续消息,在此过程中,外部网元只需要将该会话的消息发送至路由设备即可,不需要修改会话消息中的接口地址,不会发生呼叫损失的情况,从而提高会话质量。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明部分实施例提供的消息分发方法所涉及的网络环境的网元架构图;
图2是本发明一个实施例提供的消息分发方法的方法流程图;
图3是本发明一个实施例提供的消息分发方法的方法流程图;
图4是本发明一个实施例提供的消息分发方法的方法流程图;
图5是本发明一个实施例提供的路由设备的结构图;
图6是本发明一个实施例提供的负载均衡设备的结构图;
图7是本发明一个实施例提供的网络设备的框图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
请参考图1,其示出了本发明部分实施例提供的消息分发方法所涉及的网络环境的网元架构图。该网络环境至少包含以下网络实体:路由设备110、包括第一负载均衡设备和第二负载均衡设备在内的至少两个负载均衡设备120、至少一个业务处理设备130以及链路管理设备140。
其中,路由设备110通过应用网络与外部网元150相连,路由设备110还分别与该至少两个负载均衡设备(英文全称:Load Balancer,缩写:LB)120相连,至少两个负载均衡设备120中的每一个设备都与该至少一个业务处理设备(英文全称:Service Process Unit,缩写:SPU)130相连。此外,至少两个负载均衡设备120中的每一个设备还与该链路管理设备140相连。至少两个负载均衡设备120用于将业务消息发送给业务处理设备130,并将链路管理消息发送给链路管理设备140。
其中,外部网元150根据路由设备110的接口地址将消息发送至路由设备110,由路由设备110分发给至少两个负载均衡设备120中的一个。
至少两个负载均衡设备120各自对应有一个接口地址(如图1所示,各个负载均衡设备120,从左到右对应的接口地址分别为IP11-IP1n),且该至少两个负载均衡设备120各自对 应的接口地址仅在路由设备110和该至少两个负载均衡设备120之间生效。
至少一个业务处理设备130共享一个用于业务消息转发的接口地址(IP1)。
本发明所示的方案中,外部网元将通过该至少两个负载均衡设备分发的会话消息都发送至路由设备,由路由设备等价转发至相应的负载均衡设备,当其中一个负载均衡设备发生故障时,路由设备根据各个负载均衡设备各自对应的接口地址选择另一个负载均衡设备转发该发生故障的负载均衡设备所承担的会话的后续消息,该过程只由路由设备进行控制,外部网元不需要修改会话消息中的接口地址,不会发生呼叫损失的情况。
此外,本发明所示的方案设置独立于负载均衡设备之外的链路管理设备,由负载均衡设备将链路管理消息发送给链路管理设备,使链路管理设备与负载均衡设备剥离,避免因为负载均衡设备故障导致断链的情况。
请参考图2,其示出了本发明一个实施例提供的消息分发方法的方法流程图。该消息分发方法可以用于图1所示网络环境的路由设备中。该消息分发方法可以包括:
步骤201,路由设备检测第一负载均衡设备是否发生故障,该第一负载均衡设备是一个会话的原分发设备。
步骤202,若该第一负载均衡设备发生故障,则该路由设备根据预先设置的等价路由规则确定该第二负载均衡设备为该会话的新的分发设备。
步骤203,该路由设备根据该第二负载均衡设备对应的接口地址,将该会话的后续消息分发给该第二负载均衡设备,由该第二负载均衡设备将该后续消息发送给该对话对应的下一跳节点。
综上所述,本发明实施例提供的消息分发方法,路由设备通过在检测出承载一个会话分发任务的第一负载均衡设备发生故障时,根据等价路由规则确定第二负载均衡设备承载该会话的后续消息,并通过仅在路由设备和该第二负载均衡设备之间生效的接口地址向第二负载均衡设备分发该会话的后续消息,在此过程中,外部网元只需要将该会话的消息发送至路由设备即可,不需要修改会话消息中的接口地址,不会发生呼叫损失的情况,从而提高会话质量。
请参考图3,其示出了本发明一个实施例提供的消息分发方法的方法流程图。该消息分发方法可以用于图1所示网络环境的第二负载均衡设备中。该消息分发方法可以包括:
步骤301,第二负载均衡设备接收该路由设备发送的,一个会话的后续消息;该后续消 息是该路由设备检测出该第一负载均衡设备发生故障后,根据预先设置的等价路由规则确定该第二负载均衡设备为该会话的新的分发设备,并根据该第二负载均衡设备对应的接口地址分发的;该第一负载均衡设备是该会话的原分发设备。
步骤302,第二负载均衡设备将该后续消息发送给该对话对应的下一跳节点。
综上所述,本发明实施例提供的消息分发方法,路由设备通过在检测出承载一个会话分发任务的第一负载均衡设备发生故障时,根据等价路由规则确定第二负载均衡设备承载该会话的后续消息,并通过仅在路由设备和该第二负载均衡设备之间生效的接口地址向第二负载均衡设备分发该会话的后续消息,第二负载均衡设备接收该会话的后续消息之后,将该会话的后续消息发送给下一跳节点,在此过程中,外部网元只需要将该会话的消息发送至路由设备即可,不需要修改会话消息中的接口地址,不会发生呼叫损失的情况,从而提高会话质量。
请参考图4,其示出了本发明一个实施例提供的消息分发方法的方法流程图。该消息分发方法可以用于图1所示网络环境中。该消息分发方法可以包括:
步骤401,外部网元建立一个会话时,将该会话的首消息发送给路由设备。
外部网元建立会话时,根据路由设备的接口地址向路由设备发送系统级封装(英文全程:System In a Package,缩写:SIP)首消息。
或者,外部网元向链路管理设备发送传输控制协议(英文全称:Transmission Control Protocol,缩写:TCP)消息时,也根据路由设备的接口地址将TCP消息发送给路由设备。
步骤402,路由设备根据预先设置的等价路由规则确定第一负载均衡设备为该会话的分发设备。
路由设备接收该会话的SIP首消息或者TCP消息时,根据预先设置的等价路由规则,比如开放式最短路径优先(英文全称:Open Shortest Path First,缩写:OSPF)规则确定第一负载均衡设备为该会话的分发设备。
步骤403,路由设备根据第一负载均衡设备的接口地址向第一负载均衡设备分发该会话的各个消息。
步骤404,第一负载均衡设备将该会话的各个消息发送给该会话对应的下一条节点。
当第一负载均衡设备接收到SIP首消息时,根据SIP首消息的呼叫ID(CALL ID)进行散列(hash)计算,获得该对话对应的业务处理设备并发送该SIP首消息,后续再次接收到该会话的消息时,将后续的会话消息发送给同样的业务处理设备。
当第一负载均衡设备接收到TCP消息时,根据链路管理设备的端口向该链路管理设备发 送该TCP消息。
步骤405,路由设备检测第一负载均衡设备是否发生故障。
具体的,路由设备可以通过双向转发检测(英文全称:Bidirectional Forwarding Detection,缩写:BFD)协议检测该第一负载均衡设备是否发生故障。
步骤406,若第一负载均衡设备发生故障,则路由设备根据预先设置的等价路由规则确定第二负载均衡设备为该会话的新的分发设备。
如果路由设备检测出第一负载设备发生故障,则根据同样的等价路由规则(OSPF规则),从该至少两个负载均衡设备的其余设备中确定第二负载均衡设备为该会话新的分发设备。
步骤407,路由设备根据第二负载均衡设备对应的接口地址,将该会话的后续消息分发给该第二负载均衡设备。
步骤408,第二负载均衡设备将该后续消息发送给该对话对应的下一跳节点。
其中,当该后续消息为业务消息,且该后续消息中包含调度参数时,该第二负载均衡设备根据该调度参数中携带的业务处理设备的标识,将该后续消息发送给对应的业务处理单元。其中,该调度参数为DPT(DISPATCH)参数,是SIP消息路由头域扩展自己的参数。
当该后续消息为业务消息,且该后续消息中不包含调度参数时,该第二负载均衡设备根据该后续消息的呼叫标识进行散列运算,确定该后续消息对应的业务处理设备,并将该后续消息发送给确定的该业务处理设备。
当该后续消息为链路管理消息时,该第二负载均衡设备根据该后续消息的目的地址、目的端口以及管理协议进行散列运算,确定该后续消息对应的链路管理设备,并将该后续消息发送给确定的该链路管理设备。
综上所述,本发明实施例提供的消息分发方法,路由设备通过在检测出承载一个会话分发任务的第一负载均衡设备发生故障时,根据等价路由规则确定第二负载均衡设备承载该会话的后续消息,并通过仅在路由设备和该第二负载均衡设备之间生效的接口地址向第二负载均衡设备分发该会话的后续消息,第二负载均衡设备接收该会话的后续消息之后,将该会话的后续消息发送给下一跳节点,在此过程中,外部网元只需要将该会话的消息发送至路由设备即可,不需要修改会话消息中的接口地址,不会发生呼叫损失的情况,从而提高会话质量。
此外,本发明实施例提供的消息分发方法中,将链路管理功能设置在独立于负载均衡设备之外的链路管理设备上,并由路由设备选择负载均衡设备进行链路管理消息的分发,当一个负责发送链路管理消息的负载均衡设备发生故障时,路由设备可以选择另一个负载均衡设备发送该链路管理消息,避免因为负载均衡设备鼓掌导致断链的情况,提高链路管理的可靠 性。
请参考图5,其示出了本发明一个实施例提供的路由设备的结构图。该路由设备可以是图1所示的网络环境中的路由设备110,该路由设备可以执行图2所示方法的全部步骤或者执行如图4所示方法中的部分步骤。如图5所示,该路由可以包括:故障检测模块501、分发设备确定模块502以及发送模块503;
所述故障检测模块501,用于检测所述第一负载均衡设备是否发生故障,所述第一负载均衡设备是一个会话的原分发设备;
所述分发设备确定模块502,用于若所述第一负载均衡设备发生故障,则根据预先设置的等价路由规则确定所述第二负载均衡设备为所述会话的新的分发设备;
所述发送模块503,用于根据所述第二负载均衡设备对应的接口地址,将所述会话的后续消息分发给所述第二负载均衡设备,由所述第二负载均衡设备将所述后续消息发送给所述对话对应的下一跳节点。
可选的,所述故障检测模块501,用于通过双向转发检测BFD协议检测所述第一负载均衡设备是否发生故障。
可选的,所述分发设备确定模块502,用于根据开放式最短路径优先OSPF协议确定所述第二负载均衡设备为所述会话的新的分发设备。
综上所述,本发明实施例提供的路由设备,通过在检测出承载一个会话分发任务的第一负载均衡设备发生故障时,根据等价路由规则确定第二负载均衡设备承载该会话的后续消息,并通过仅在路由设备和该第二负载均衡设备之间生效的接口地址向第二负载均衡设备分发该会话的后续消息,在此过程中,外部网元只需要将该会话的消息发送至路由设备即可,不需要修改会话消息中的接口地址,不会发生呼叫损失的情况,从而提高会话质量。
请参考图6,其示出了本发明一个实施例提供的负载均衡设备的结构图。该负载均衡设备可以是图1所示的网络环境中的至少两个负载均衡设备120中的第二负载均衡设备,该负载均衡设备可以执行图3所示方法的全部步骤或者执行如图4所示方法中的部分步骤。如图6所示,该路由可以包括:接收模块601以及发送模块602;
所述消息接收模块601,用于接收所述路由设备发送的,一个会话的后续消息;所述后续消息是所述路由设备检测出所述第一负载均衡设备发生故障后,根据预先设置的等价路由规则确定所述负载均衡设备为所述会话的新的分发设备,并根据所述负载均衡设备对应的接 口地址分发的;所述第一负载均衡设备是所述会话的原分发设备;
所述发送模块602,用于将所述后续消息发送给所述对话对应的下一跳节点。
可选的,所述发送模块602,包括:
第一发送单元602a,用于当所述后续消息为业务消息,且所述后续消息中包含调度参数时,根据所述调度参数中携带的业务处理设备的标识,将所述后续消息发送给所述业务处理单元。
可选的,所述发送模块602,包括:
第一确定单元602b,用于当所述后续消息为业务消息,且所述后续消息中不包含调度参数时,根据所述后续消息的呼叫标识进行散列运算,确定所述后续消息对应的业务处理设备;
第二发送单元602c,用于将所述后续消息发送给确定的所述业务处理设备。
可选的,所述发送模块602,包括:
第二确定单元602d,用于当所述后续消息为链路管理消息时,根据所述后续消息的目的地址、目的端口以及管理协议进行散列运算,确定所述后续消息对应的链路管理设备;
第三发送单元602e,用于将所述后续消息发送给确定的所述链路管理设备。
综上所述,本发明实施例提供的负载均衡设备,接收路由设备在检测出承载一个会话分发任务的第一负载均衡设备发生故障时,根据等价路由规则确定该负载均衡设备承载该会话的后续消息,并通过仅在路由设备和该负载均衡设备之间生效的接口地址分发的该会话的后续消息,并将该会话的后续消息发送给下一跳节点,在此过程中,外部网元只需要将该会话的消息发送至路由设备即可,不需要修改会话消息中的接口地址,不会发生呼叫损失的情况,从而提高会话质量。
上述图5和图6所示的各个模块中,接收模块所执行的步骤可以由接收器在处理器的控制下完成,发送模块所执行的步骤可以由发射器在处理器的控制下完成,其它各个模块所执行的步骤可以由处理器独立完成。进一步的,请参考图7,其示出了本发明一个实施例提供的网络设备的框图。该网络实体700可以是上述图1所示的网络环境中的路由设备或者负载均衡设备。该网络设备可以包括:总线701,以及连接到所述总线的处理器702、存储器703、发射器704和接收器705。其中,所述存储器703用于存储若干个指令,所述若干个指令被配置成由所述处理器702执行;
当所述网络设备700实现为上述图1所示的网络环境中的路由设备110时,所述处理器702,用于检测所述第一负载均衡设备是否发生故障,所述第一负载均衡设备是一个会话的原 分发设备;
所述处理器702,用于若所述第一负载均衡设备发生故障,则根据预先设置的等价路由规则确定所述第二负载均衡设备为所述会话的新的分发设备;
所述处理器702,用于根据所述第二负载均衡设备对应的接口地址,控制所述发射器704将所述会话的后续消息分发给所述第二负载均衡设备,由所述第二负载均衡设备将所述后续消息发送给所述对话对应的下一跳节点。
可选的,所述处理器702,用于控制所述发射器704和所述接收器705,通过双向转发检测BFD协议检测所述第一负载均衡设备是否发生故障。
可选的,所述处理器702,用于根据开放式最短路径优先OSPF协议确定所述第二负载均衡设备为所述会话的新的分发设备。
当所述网络设备700实现为上述图1所示的网络环境中的路由设备110时,所述处理器702,用于控制所述接收器705接收所述路由设备发送的,一个会话的后续消息;所述后续消息是所述路由设备检测出所述第一负载均衡设备发生故障后,根据预先设置的等价路由规则确定所述负载均衡设备为所述会话的新的分发设备,并根据所述负载均衡设备对应的接口地址分发的;所述第一负载均衡设备是所述会话的原分发设备;
所述处理器702,用于控制所述发射器704将所述后续消息发送给所述对话对应的下一跳节点。
可选的,所述处理器702,用于当所述后续消息为业务消息,且所述后续消息中包含调度参数时,根据所述调度参数中携带的业务处理设备的标识,控制所述发射器704将所述后续消息发送给所述业务处理单元。
可选的,所述处理器702,用于当所述后续消息为业务消息,且所述后续消息中不包含调度参数时,根据所述后续消息的呼叫标识进行散列运算,确定所述后续消息对应的业务处理设备,并控制所述发射器704将所述后续消息发送给确定的所述业务处理设备。
可选的,所述处理器702,用于当所述后续消息为链路管理消息时,根据所述后续消息的目的地址、目的端口以及管理协议进行散列运算,确定所述后续消息对应的链路管理设备,并控制所述发射器704将所述后续消息发送给确定的所述链路管理设备。
本发明一个实施例还提供一种消息分发系统,该消息系统可以路由设备和至少两个负载均衡设备。该路由设备为上述图5所示的路由设备,该负载均衡设备为上述图6所示的负载均衡设备。或者,该路由设备和负载均衡设备也可以分别实现为上述图7所示的网络设备。
此外,本发明实施例提供的消息分发系统,还可以包含至少一个业务处理设备和链路管理设备等,且该消息分发统中包含的各个网络设备之间的连接关系可以如图1所示,本发明实施例不再赘述。
需要说明的是:上述实施例提供的路由设备和消息分发设备在分发消息时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的路由设备和消息分发设备与消息分发方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内

Claims (15)

  1. 一种路由设备,其特征在于,用于消息分发系统中,所述消息分发系统包括所述路由设备,以及包含第一负载均衡设备和第二负载均衡设备在内的至少两个负载均衡设备,所述至少两个负载均衡设备各自对应一个接口地址,且所述至少两个负载均衡设备各自对应的接口地址用于在所述路由设备和所述至少两个负载均衡设备之间进行消息的等价分发;所述路由设备包括:
    故障检测模块,用于检测所述第一负载均衡设备是否发生故障,所述第一负载均衡设备是一个会话的原分发设备;
    分发设备确定模块,用于若所述第一负载均衡设备发生故障,则根据预先设置的等价路由规则确定所述第二负载均衡设备为所述会话的新的分发设备;
    发送模块,用于根据所述第二负载均衡设备对应的接口地址,将所述会话的后续消息分发给所述第二负载均衡设备,由所述第二负载均衡设备将所述后续消息发送给所述对话对应的下一跳节点。
  2. 根据权利要求1所述的路由设备,其特征在于,
    所述故障检测模块,用于通过双向转发检测BFD协议检测所述第一负载均衡设备是否发生故障。
  3. 根据权利要求1所述的路由设备,其特征在于,
    所述分发设备确定模块,用于根据开放式最短路径优先OSPF协议确定所述第二负载均衡设备为所述会话的新的分发设备。
  4. 一种负载均衡设备,其特征在于,用于消息分发系统中,所述消息分发系统包括路由设备,以及包含所述负载均衡设备和第一负载均衡设备在内的至少两个负载均衡设备,所述至少两个负载均衡设备各自对应一个接口地址,且所述至少两个负载均衡设备各自对应的接口地址用于在所述路由设备和所述至少两个负载均衡设备之间进行消息的等价分发;所述负载均衡设备包括:
    接收模块,用于接收所述路由设备发送的,一个会话的后续消息;所述后续消息是所述路由设备检测出所述第一负载均衡设备发生故障后,根据预先设置的等价路由规则确定所述负载均衡设备为所述会话的新的分发设备,并根据所述负载均衡设备对应的接口地址分发的;所述第一负载均衡设备是所述会话的原分发设备;
    发送模块,用于将所述后续消息发送给所述对话对应的下一跳节点。
  5. 根据权利要求4所述的负载均衡设备,其特征在于,所述发送模块,包括:
    第一发送单元,用于当所述后续消息为业务消息,且所述后续消息中包含调度参数时,根据所述调度参数中携带的业务处理设备的标识,将所述后续消息发送给所述业务处理单元。
  6. 根据权利要求4所述的负载均衡设备,其特征在于,所述发送模块,包括:
    第一确定单元,用于当所述后续消息为业务消息,且所述后续消息中不包含调度参数时,根据所述后续消息的呼叫标识进行散列运算,确定所述后续消息对应的业务处理设备;
    第二发送单元,用于将所述后续消息发送给确定的所述业务处理设备。
  7. 根据权利要求4所述的负载均衡设备,其特征在于,所述发送模块,包括:
    第二确定单元,用于当所述后续消息为链路管理消息时,根据所述后续消息的目的地址、目的端口以及管理协议进行散列运算,确定所述后续消息对应的链路管理设备;
    第三发送单元,用于将所述后续消息发送给确定的所述链路管理设备。
  8. 一种消息分发方法,其特征在于,用于消息分发系统中,所述消息分发系统包括路由设备以及包含第一负载均衡设备和第二负载均衡设备在内的至少两个负载均衡设备,所述至少两个负载均衡设备各自对应一个接口地址,且所述至少两个负载均衡设备各自对应的接口地址用于在所述路由设备和所述至少两个负载均衡设备之间进行消息的等价分发;所述方法包括:
    所述路由设备检测所述第一负载均衡设备是否发生故障,所述第一负载均衡设备是一个会话的原分发设备;
    若所述第一负载均衡设备发生故障,则所述路由设备根据预先设置的等价路由规则确定所述第二负载均衡设备为所述会话的新的分发设备;
    所述路由设备根据所述第二负载均衡设备对应的接口地址,将所述会话的后续消息分发给所述第二负载均衡设备,由所述第二负载均衡设备将所述后续消息发送给所述对话对应的下一跳节点。
  9. 根据权利要求8所述的方法,其特征在于,所述路由设备检测所述至少两个负载均衡设备中的第一负载均衡设备是否发生故障,包括:
    所述路由设备通过双向转发检测BFD协议检测所述第一负载均衡设备是否发生故障。
  10. 根据权利要求8所述的方法,其特征在于,所述路由设备根据预先设置的等价路由规则确定所述第二负载均衡设备为所述会话的新的分发设备,包括:
    所述路由设备根据开放式最短路径优先OSPF协议确定所述第二负载均衡设备为所述会话的新的分发设备。
  11. 一种消息分发方法,其特征在于,用于消息分发系统中,所述消息分发系统包括路由设备,以及包含第一负载均衡设备和第二负载均衡设备在内的至少两个负载均衡设备,所述至少两个负载均衡设备各自对应一个接口地址,且所述至少两个负载均衡设备各自对应的接口地址用于在所述路由设备和所述至少两个负载均衡设备之间进行消息的等价分发;所述方法包括:
    第二负载均衡设备接收所述路由设备发送的,一个会话的后续消息;所述后续消息是所述路由设备检测出所述第一负载均衡设备发生故障后,根据预先设置的等价路由规则确定所述第二负载均衡设备为所述会话的新的分发设备,并根据所述第二负载均衡设备对应的接口地址分发的;所述第一负载均衡设备是所述会话的原分发设备;
    所述第二负载均衡设备将所述后续消息发送给所述对话对应的下一跳节点。
  12. 根据权利要求11所述的方法,其特征在于,当所述后续消息为业务消息,且所述后续消息中包含调度参数时,所述第二负载均衡设备将所述后续消息发送给所述对话对应的下一跳节点,包括:
    所述第二负载均衡设备根据所述调度参数中携带的业务处理设备的标识,将所述后续消息发送给所述业务处理单元。
  13. 根据权利要求11所述的方法,其特征在于,当所述后续消息为业务消息,且所述后续消息中不包含调度参数时,所述第二负载均衡设备将所述后续消息发送给所述对话对应的下一跳节点,包括:
    所述第二负载均衡设备根据所述后续消息的呼叫标识进行散列运算,确定所述后续消息对应的业务处理设备;
    所述第二负载均衡设备将所述后续消息发送给确定的所述业务处理设备。
  14. 根据权利要求11所述的方法,其特征在于,当所述后续消息为链路管理消息时,所述第二负载均衡设备将所述后续消息发送给所述对话对应的下一跳节点,包括:
    所述第二负载均衡设备根据所述后续消息的目的地址、目的端口以及管理协议进行散列 运算,确定所述后续消息对应的链路管理设备;
    所述第二负载均衡设备将所述后续消息发送给确定的所述链路管理设备。
  15. 一种消息分发系统,其特征在于,所述消息分发系统包括:
    如权利要求1至3任一所述的路由设备,以及,至少两个如权利要求4至7任一所述的负载均衡设备。
PCT/CN2016/079308 2015-04-30 2016-04-14 路由设备、负载均衡设备、消息分发方法及系统 WO2016173403A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510217297.1A CN104901881B (zh) 2015-04-30 2015-04-30 路由设备、负载均衡设备、消息分发方法及系统
CN201510217297.1 2015-04-30

Publications (1)

Publication Number Publication Date
WO2016173403A1 true WO2016173403A1 (zh) 2016-11-03

Family

ID=54034281

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079308 WO2016173403A1 (zh) 2015-04-30 2016-04-14 路由设备、负载均衡设备、消息分发方法及系统

Country Status (2)

Country Link
CN (1) CN104901881B (zh)
WO (1) WO2016173403A1 (zh)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104901881B (zh) * 2015-04-30 2018-12-07 华为技术有限公司 路由设备、负载均衡设备、消息分发方法及系统
US10122647B2 (en) * 2016-06-20 2018-11-06 Microsoft Technology Licensing, Llc Low-redistribution load balancing
CN106385381B (zh) * 2016-08-23 2019-05-10 广东科学技术职业学院 一种匹配计算的资源调度分配方法及其系统
CN107454155B (zh) * 2017-07-25 2021-01-22 北京三快在线科技有限公司 一种基于负载均衡集群的故障处理方法、装置以及系统
CN108377222A (zh) * 2018-01-15 2018-08-07 顺丰科技有限公司 基于软件的负载均衡实现方法、装置、设备及存储介质
CN109839041B (zh) * 2018-12-28 2021-05-28 北京航天测控技术有限公司 一种基于去中心化集群计算架构的免维护测控方法
CN110913039B (zh) * 2019-12-03 2020-06-16 杭州圆石网络安全技术有限公司 一种数据和控制分离的tcp流漂移处理方法及其装置
CN113132159B (zh) * 2021-04-08 2023-04-25 北京马赫谷科技有限公司 存储集群节点故障的处理方法、设备及存储系统
CN114363342A (zh) * 2021-12-30 2022-04-15 科大讯飞股份有限公司 故障收敛方法及其相关装置和负载均衡集群
CN114125915B (zh) * 2022-01-26 2022-04-12 舟谱数据技术南京有限公司 针对设定终端app应用的定位热修复系统和方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103560907A (zh) * 2013-10-23 2014-02-05 曙光信息产业(北京)有限公司 双机负载均衡设备的管理方法和装置
CN104113791A (zh) * 2013-04-19 2014-10-22 中兴通讯股份有限公司 一种自动交换光网络演进系统及方法
CN104468151A (zh) * 2013-09-13 2015-03-25 华耀(中国)科技有限公司 一种集群切换时保持tcp会话的系统和方法
CN104901881A (zh) * 2015-04-30 2015-09-09 华为技术有限公司 路由设备、负载均衡设备、消息分发方法及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7543069B2 (en) * 2004-10-18 2009-06-02 International Business Machines Corporation Dynamically updating session state affinity
CN101442429B (zh) * 2007-11-20 2011-04-20 华为技术有限公司 一种实现业务系统容灾的方法及系统
CN101605092A (zh) * 2009-07-10 2009-12-16 浪潮电子信息产业股份有限公司 一种基于内容的负载均衡系统
CN102685237B (zh) * 2012-05-16 2015-05-06 东南大学 一种集群环境下请求会话保持与调度的方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113791A (zh) * 2013-04-19 2014-10-22 中兴通讯股份有限公司 一种自动交换光网络演进系统及方法
CN104468151A (zh) * 2013-09-13 2015-03-25 华耀(中国)科技有限公司 一种集群切换时保持tcp会话的系统和方法
CN103560907A (zh) * 2013-10-23 2014-02-05 曙光信息产业(北京)有限公司 双机负载均衡设备的管理方法和装置
CN104901881A (zh) * 2015-04-30 2015-09-09 华为技术有限公司 路由设备、负载均衡设备、消息分发方法及系统

Also Published As

Publication number Publication date
CN104901881B (zh) 2018-12-07
CN104901881A (zh) 2015-09-09

Similar Documents

Publication Publication Date Title
WO2016173403A1 (zh) 路由设备、负载均衡设备、消息分发方法及系统
US9705735B2 (en) System and method using RSVP hello suppression for graceful restart capable neighbors
US9065768B2 (en) Apparatus for a high performance and highly available multi-controllers in a single SDN/OpenFlow network
US9659075B2 (en) Providing high availability in an active/active appliance cluster
US8825867B2 (en) Two level packet distribution with stateless first level packet distribution to a group of servers and stateful second level packet distribution to a server within the group
US9246696B2 (en) mRSVP-TE based fast reroute in facility (1:N) protection mode
US9219614B2 (en) mRSVP-TE based fast reroute in detour (1:1) protection mode
EP3399703B1 (en) Method for implementing load balancing, apparatus, and network system
JP2013510459A (ja) 分離的なパス計算アルゴリズム
US9736066B2 (en) Method, apparatus and system for establishing optical bypass
US20140204732A1 (en) Multicast traffic forwarding on pruned interface
WO2016124117A1 (zh) 一种sdn中的链路保护方法、交换设备及网络控制器
US10050908B2 (en) Synchronizing out-of-sync elements in a distributed fibre channel forwarder
WO2015154448A1 (zh) 一种虚拟以太网端口归属单板动态分配方法及系统
WO2018040916A1 (zh) 一种转发报文的方法及装置
US20190036817A1 (en) Transport network control apparatus, communication system, forwarding node control method, and program
US10924391B2 (en) Systems and methods for automatic traffic recovery after VRRP VMAC installation failures in a LAG fabric
JP2018502518A (ja) ポイントツーマルチポイントサービス送信方法および装置
US20170041214A1 (en) Wide area network, wan, sensing igmp proxy
US11522955B2 (en) Transferring state information of resources
JP2011239082A (ja) 通信装置及びアドレス変換方法
JP2017208589A (ja) 転送装置及び転送処理方法
JP2014049986A (ja) エッジノード装置、パス制御方法、及びプログラム

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: 16785834

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: 16785834

Country of ref document: EP

Kind code of ref document: A1