CN107332793B - Message forwarding method, related equipment and system - Google Patents

Message forwarding method, related equipment and system Download PDF

Info

Publication number
CN107332793B
CN107332793B CN201610278405.0A CN201610278405A CN107332793B CN 107332793 B CN107332793 B CN 107332793B CN 201610278405 A CN201610278405 A CN 201610278405A CN 107332793 B CN107332793 B CN 107332793B
Authority
CN
China
Prior art keywords
gateway
switch
target
message
gateways
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201610278405.0A
Other languages
Chinese (zh)
Other versions
CN107332793A (en
Inventor
沈懿华
吴蔚聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610278405.0A priority Critical patent/CN107332793B/en
Publication of CN107332793A publication Critical patent/CN107332793A/en
Application granted granted Critical
Publication of CN107332793B publication Critical patent/CN107332793B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/252Store and forward routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/253Routing or path finding in a switch fabric using establishment or release of connections between ports
    • H04L49/254Centralised controller, i.e. arbitration or scheduling

Abstract

The embodiment of the invention discloses a message forwarding method, related equipment and a system, wherein the method comprises the following steps: the method comprises the steps that a switch sends a plurality of messages to a target gateway, the target gateway comprises a first load interface connected to a target Internet Service Provider (ISP) and a second load interface connected with the switch, and the target gateway is used for respectively forwarding part of the messages to the switch and the target ISP through the first load interface and the second load interface; the switch receives a part of messages forwarded by the target gateway; the switch forwards the received part of the message to other gateways, the other gateways comprise third load interfaces connected to other ISPs, the other gateways are used for forwarding the part of the message to other ISPs through the third load interfaces after receiving the part of the message, and the target gateway and the other gateways are in the same gateway cluster. By adopting the invention, the performance of the target gateway can be improved.

Description

Message forwarding method, related equipment and system
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a message forwarding method, a related device, and a system.
Background
A Gateway (GW), also called Gateway connector and protocol converter, is a computer device acting as a conversion task, and can be applied to different communication protocols, data formats or languages, even two systems with completely different architectures, the Gateway repackages the received information to meet the requirements of the destination system, and the Gateway can be used for both wan interconnection and lan interconnection.
In order to avoid the problem of network transmission interruption caused by gateway failure in the network transmission process, a dual-computer networking mode is usually adopted to configure a primary gateway and a standby gateway, the primary gateway backs up generated service information to the standby gateway, and when the primary gateway fails, the standby gateway takes over the service of the primary gateway based on the service information, so that the service continuity in network transmission is ensured. The dual-machine networking includes a symmetric dual-machine networking and an asymmetric dual-machine networking, the symmetric dual-machine networking is shown in fig. 1, the asymmetric dual-machine networking is shown in fig. 2, both fig. 1 and fig. 2 include a first gateway 102, a second gateway 103, and a switch 101, the first gateway 102 is a main gateway, the second gateway 103 is a standby gateway, wherein the switch 101 is configured to determine whether to forward a service packet to the first gateway 102 or to forward the service packet to the second gateway 103 according to a working state (failure or normal) of the first gateway 102, and a link for backing up service information and a core jumper for failure detection are configured between the first gateway 102 and the second gateway 103. In an asymmetric dual-computer networking, the first gateway 102 includes a first link for transmitting a Service packet to a first Internet Service Provider (ISP), and the second gateway 103 includes a second link for transmitting a Service packet to a second ISP, where the first gateway 102 and the second gateway 103 cannot share a load together through the first ISP and the second ISP. In a symmetric dual-computer networking, the first gateway 102 includes two links, one of which is used to transmit a service packet to the first ISP, and the other of which is used to transmit a service packet to the second ISP; second gateway 103 also includes two links, one for transmitting traffic messages to the first ISP and the other for transmitting traffic messages to the second ISP, and first gateway 102 and second gateway 103 both establish a link to each ISP.
The prior art has the defect that the traffic load cannot be shared fully by the ISPs on the premise of establishing fewer links connected with the ISPs.
Disclosure of Invention
The embodiment of the invention discloses a message forwarding method, related equipment and a system, which can share the message forwarding task of a target gateway through other ISPs and the target ISP on the premise of not independently configuring links connected to the other ISPs, thereby improving the performance of the target gateway.
In a first aspect, an embodiment of the present invention provides a packet forwarding method, where the method includes:
the method comprises the steps that a switch sends a plurality of messages to a target gateway, the target gateway comprises a first load interface connected to a target Internet Service Provider (ISP) and a second load interface connected with the switch, and the target gateway is used for forwarding part of the messages to the switch and the target ISP respectively through the first load interface and the second load interface;
the switch receives a part of messages forwarded by the target gateway;
the switch forwards the received part of the message to other gateways, the other gateways comprise third load interfaces connected to other ISPs, the other gateways are used for forwarding the part of the message to the other ISPs through the third load interfaces after receiving the part of the message, and the target gateway and the other gateways are in the same gateway cluster.
By executing the method, a dedicated link is configured between the target gateway and other gateways, when the target gateway receives a message sent by the switch, a part of the message is sent to the target ISP, another part of the message is sent to other gateways through the configured link, and the other gateways send the part of the message to other ISPs, so that the target gateway can share the task of message forwarding through the other ISPs and the target ISP under the premise of not separately configuring the links connected to the other ISPs, and the performance of the target gateway is improved.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the target gateway is configured as an active gateway, and the other gateways are configured as standby gateways; after the switch forwards the received partial message to other gateways, the method further includes:
and the switch does not send a message to the target gateway and sends a message to the other gateways when the target gateway fails, so that the other gateways forward the received message to the other ISPs through the third load interface.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, before the switch receives the partial packet forwarded by the target gateway, the method further includes:
the switch receives an operation state message sent by the other gateway, the operation state message comprises at least one item of bandwidth information, load information and fault information of the other gateway, and the fault information is used for indicating whether the other gateway is in fault or not;
and the switch forwards the running state message to the target gateway so that the target gateway determines the proportion of the message sent by the second load interface in the plurality of messages according to the running state message.
In a second aspect, an embodiment of the present invention provides a packet forwarding method, where the method includes:
the target gateway receives a plurality of messages sent by the switch;
the target gateway respectively forwards part of the messages to the target ISP and the switch through a first load interface connected to the target Internet service provider ISP and a second load interface connected with the switch; the switch is configured to forward the received partial packet to another gateway, so that the other gateway forwards the received partial packet to the other ISP through a third load interface connected to the other ISP, where the target gateway and the other gateway are in the same gateway cluster.
By executing the method, a dedicated link is configured between the target gateway and other gateways, when the target gateway receives a message sent by the switch, a part of the message is sent to the target ISP, another part of the message is sent to other gateways through the configured link, and the other gateways send the part of the message to other ISPs, so that the target gateway can share the task of message forwarding through the other ISPs and the target ISP under the premise of not separately configuring the links connected to the other ISPs, and the performance of the target gateway is improved.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the target gateway is configured as an active gateway, and the other gateways are configured as standby gateways; and the switch is used for not sending the message to the target gateway and sending the message to other gateways when the target gateway fails.
With reference to the second aspect, or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, after the target gateway receives a plurality of messages sent by a switch, before the target gateway forwards a part of the plurality of messages to each of the target ISP and the switch through a first load interface connected to the target internet service provider ISP and a second load interface connected to the switch, respectively, the method further includes:
the target gateway receives an operation state message sent by the switch, wherein the operation state message is a message which is sent by the other gateway to the switch and contains at least one item of bandwidth information, load information and fault information of the other gateway, and the fault information is used for indicating whether the other gateway is in fault;
and the target gateway analyzes the information about the other gateways in the running state and determines a part of messages sent to the switch from the plurality of messages according to the analyzed information.
In a third aspect, an embodiment of the present invention provides a switch, where the switch includes a processor, a memory, and a network interface, where:
the network interface is used for receiving messages and sending messages;
the memory is used for storing instructions and data;
the processor is used for reading the instructions and data stored in the memory and executing the following operations:
sending a plurality of messages to a target gateway through the network interface, wherein the target gateway comprises a first load interface connected to a target Internet Service Provider (ISP) and a second load interface connected with the switch, and the target gateway is used for respectively forwarding part of the messages to the switch and the target ISP through the first load interface and the second load interface;
receiving a part of messages forwarded by the target gateway through the network interface;
and forwarding the received part of the message to other gateways through the network interface, wherein the other gateways comprise third load interfaces connected to other ISPs, the other gateways are used for forwarding the part of the message to the other ISPs through the third load interfaces after receiving the part of the message, and the target gateway and the other gateways are in the same gateway cluster.
By executing the method, a dedicated link is configured between the target gateway and other gateways, when the target gateway receives a message sent by the switch, a part of the message is sent to the target ISP, another part of the message is sent to other gateways through the configured link, and the other gateways send the part of the message to other ISPs, so that the target gateway can share the task of message forwarding through the other ISPs and the target ISP under the premise of not separately configuring the links connected to the other ISPs, and the performance of the target gateway is improved.
With reference to the third aspect, in a first possible implementation manner of the third aspect, the target gateway is configured as an active gateway, and the other gateways are configured as standby gateways; after forwarding the received partial message to other gateways through the network interface, the processor is further configured to:
and when the target gateway fails, sending the message to the other gateways through the network interface instead of the target gateway, so that the other gateways forward the received message to the other ISPs through the third load interface.
With reference to the third aspect, or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, before the processor receives, through the network interface, the partial packet forwarded by the target gateway, the processor is further configured to:
receiving an operation state message sent by the other gateway through the network interface, wherein the operation state message comprises at least one of bandwidth information, load information and fault information of the other gateway, and the fault information is used for indicating whether the other gateway is in fault;
and forwarding the running state message to the target gateway through the network interface so that the target gateway determines the proportion of the message sent through the second load interface in the plurality of messages according to the running state message.
In a fourth aspect, an embodiment of the present invention provides a gateway, where the gateway is a target gateway, and the target gateway includes a processor, a memory, and a network interface, where:
the network interface is used for receiving messages and sending messages;
the memory is used for storing instructions and data;
the processor is used for reading the instructions and data stored in the memory and executing the following operations:
receiving a plurality of messages sent by a switch through the network interface;
respectively forwarding part of the plurality of messages to a target Internet Service Provider (ISP) and the switch through a first load interface connected to the ISP and a second load interface connected to the switch through the network interface; the switch is configured to forward the received partial packet to another gateway, so that the other gateway forwards the received partial packet to the other ISP through a third load interface connected to the other ISP, where the target gateway and the other gateway are in the same gateway cluster.
By executing the method, a dedicated link is configured between the target gateway and other gateways, when the target gateway receives a message sent by the switch, a part of the message is sent to the target ISP, another part of the message is sent to other gateways through the configured link, and the other gateways send the part of the message to other ISPs, so that the target gateway can share the task of message forwarding through the other ISPs and the target ISP under the premise of not separately configuring the links connected to the other ISPs, and the performance of the target gateway is improved.
With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the target gateway is configured as an active gateway, and the other gateways are configured as standby gateways; and the switch is used for not sending the message to the target gateway and sending the message to other gateways when the target gateway fails.
With reference to the fourth aspect or the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, after the processor receives, through the network interface, a plurality of messages sent by a switch, before the processor forwards, through the network interface, a part of the plurality of messages to each of a target internet service provider ISP and the switch through a first load interface connected to the target ISP and a second load interface connected to the switch, respectively, the processor is further configured to:
receiving an operation state message sent by the switch through the network interface, wherein the operation state message is a message which is sent by the other gateway to the switch and contains at least one item of bandwidth information, load information and fault information of the other gateway, and the fault information is used for indicating whether the other gateway is in fault;
and analyzing the information about the other gateways in the running state, and determining a part of messages sent to the switch from the plurality of messages according to the analyzed information.
In some possible implementations of the first and third aspects, at least two interfaces on the switch are configured in a link aggregation manner.
In some possible implementations of the first and third aspects, the number of the other gateways is multiple, and each of the other gateways is connected to a different ISP.
In some possible implementations of the second aspect and the fourth aspect, at least two interfaces on the target gateway are configured in a link aggregation manner.
In a fifth aspect, an embodiment of the present invention provides a switch, where the switch includes a functional unit configured to perform part or all of the steps of any implementation manner of the first aspect of the present invention.
In a sixth aspect, an embodiment of the present invention provides a target gateway, where the target gateway includes a functional unit configured to perform part or all of the steps of any implementation manner of the second aspect of the present invention.
In a seventh aspect, an embodiment of the present invention provides a packet forwarding system, where the system includes a switch and a target gateway;
the switch is the switch described in any possible implementation manner of the third aspect or any possible implementation manner of the fifth aspect;
the target gateway is the target gateway described in any possible implementation manner of the fourth aspect or any possible implementation manner of the sixth aspect;
by implementing the embodiment of the invention, a special link is configured between the target gateway and other gateways, when the target gateway receives a message sent by the switch, one part of the message is sent to the target ISP, the other part of the message is sent to other gateways through the configured link, and the other gateways send the part of the message to other ISPs, so that the target gateway can share the task of message forwarding through the other ISPs and the target ISP together on the premise of not configuring links connected to the other ISPs independently, and the performance of the target gateway is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of a symmetric dual-machine networking in the prior art;
fig. 2 is a schematic view of a scenario of asymmetric dual-machine networking in the prior art;
fig. 3 is a schematic flowchart of a message forwarding method according to an embodiment of the present invention;
fig. 4 is a schematic view of a scenario in which another gateway is a gateway according to an embodiment of the present invention;
fig. 5 is a schematic view of a scenario in which another gateway is a type of gateway according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a switch provided in an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a target gateway according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another switch provided in the embodiment of the present invention;
fig. 9 is a schematic structural diagram of another target gateway provided in an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a message forwarding system according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Referring to fig. 3, fig. 3 is a schematic flow chart of a message forwarding method according to an embodiment of the present invention, where the method includes, but is not limited to, the following steps.
Step S301: the switch receives a message from the intranet.
Specifically, the switch is connected with a device in an intranet and a gateway in a gateway cluster, wherein the gateway in the gateway cluster is used for connecting to an ISP (internet service provider) to access to the extranet; when the device in the internal network needs to send a message to the external network, the message to be sent is sent to the switch. Accordingly, the switch receives the message sent by the device, and the switch receives a plurality of messages within a period of time.
Step S302: the switch forwards the plurality of messages to the target gateway.
In an alternative scheme, a primary gateway and a backup gateway exist in the gateway cluster, and the backup gateway is configured to take over services on the primary gateway when the primary gateway fails, for example, when the primary gateway fails, the switch sends a message from an intranet to the primary gateway, and when the primary gateway fails, the switch sends a message from the intranet to the backup gateway. The target gateway is a pre-configured main gateway, and all gateways except the target gateway in the gateway cluster are other gateways. The target gateway may be manually configured as the active gateway in advance, and the other gateways may be configured as the standby gateways. A Protocol for selecting the primary gateway, for example, a Virtual Router Redundancy Protocol (VRRP) may be configured in advance for the gateways and the cluster, so that each gateway in the gateway cluster collectively selects a primary gateway when there is no primary gateway or the primary gateway fails, and the selected primary gateway is the target gateway.
In another optional scheme, each gateway in the gateway cluster is not in a relationship between a primary gateway and a standby gateway, each gateway is used for receiving an intranet message service forwarded by the switch and forwarding a received extranet message to the switch, and after receiving the intranet message, the switch specifically forwards the message to which gateway needs to determine according to address information in the message; in the scheme, if the gateway analyzes that the messages need to be forwarded to a gateway in the gateway cluster according to the address information of the received messages, the gateway is a target gateway, and relative to the target gateway, gateways other than the target gateway in the gateway cluster are other gateways; it should be noted that if the switch sends multiple messages to multiple gateways in a period of time (the messages sent to each gateway are different in general), the multiple gateways are all target gateways, for example, assuming that the gateway cluster includes gateway a, gateway B, and gateway C, the messages sent by the switch to gateway a in a period of time are message a1, message a2, and message A3, the messages sent to gateway B are message B1, message B2, and message B3, and the messages sent to gateway C are message C1, message C2, and message C3, then for sending message a1, message a2, and message A3, the gateway a is the target gateway and the gateway B and the gateway C are other gateways, for sending message B1, message B2, and message B3, the gateway B is the target gateway and the gateway a and the gateway C are other gateways, for the send message C1, message C2, and message C3, the gateway C is the target gateway and gateways a and B are the other gateways.
Step S303: the target gateway receives a plurality of messages sent by the switch.
Step S304: the target gateway sends part of the plurality of messages to the target ISP.
In the embodiment of the present invention, the connection manner of the target gateway to the ISP may be divided into two manners, the first manner is that the target gateway is connected to the ISP through other gateways in the gateway cluster, and this manner may be referred to as indirect connection; the second way is that the target gateway is connected to the ISP but the path to the ISP does not go through other gateways in the gateway cluster, which may be referred to as a direct connection where there may be other network nodes between the target gateway and the ISP. The target gateway is connected to an ISP by a direct connection and is also connected to an ISP by an indirect connection, but the ISP connected by the direct connection is different from the ISP connected by the indirect connection, and the ISP connected by the direct connection is called a target ISP and the ISP connected by the indirect connection is called another ISP.
The target gateway needs to send out the received multiple messages through the target ISP and the other ISPs, so that the target ISP and the other ISPs share a forwarding task of the messages together. After determining which part of the message is sent to the target ISP, the target gateway sends the part of the message to the target ISP, optionally, an interface connected to the target ISP may be configured on the target gateway in advance, and may be referred to as a first load interface to distinguish from other interfaces, and then after determining which part of the message is sent to the target ISP, the part of the message is sent through the first load interface.
In the following, steps S305 to S309 are described how the target gateway determines the message to be transmitted to the other ISP and then transmits the message to the other ISP. It should be noted that the execution sequence of step S304 and steps S305 to S309 is not limited here.
Step S305: and the target gateway sends part of the messages to the switch.
Specifically, since the target gateway calculates which part of the message needs to be sent to the other ISP through the load balancing algorithm, the target gateway first sends the part of the message that needs to be sent to the other ISP to the switch. For example, an interface connected to the switch may be configured on the target gateway in advance, the interface may be referred to as a second load interface to distinguish it from other interfaces, and when it is calculated which part of the message needs to be sent to the other ISPs, the part of the message is sent through the second load interface.
Step S306: the switch receives the part of the message sent by the target gateway.
Specifically, an interface corresponding to the second load interface is also preconfigured on the switch, and may be referred to as a fourth load interface, a link is formed between the fourth load interface and the second load interface to transmit a packet, and a packet sent by the target gateway through the second load interface is correspondingly transmitted to the switch through the fourth load interface.
Step S307: the switch forwards the received part of the message to other gateways.
Specifically, a forwarding path of the packet is also preconfigured in the switch, that is, a corresponding relationship between the fourth load interface and the other gateways may be established in advance, and when the packet from the fourth load interface is received, the packet is directly forwarded to the other gateways.
Step S308: and the other gateway receives the part of the message sent by the switch.
In this embodiment of the present invention, an Internet Protocol (IP) Address of a fourth load interface may be configured on the target gateway in advance as a next hop of the second load interface, when a message is sent from the second load interface, the target gateway sends an Address Resolution Protocol (ARP) request message from the second load interface, requests a Media Access Control (MAC) Address corresponding to the next hop, and after the other gateways where the fourth load interface is located feed back a response message, the target gateway may send the message according to the response formal message.
Step S309: the other gateway sends the received portion of the message to the other ISP.
Specifically, a third load interface connected to the other ISP may be configured on the other gateway in advance, and a link mapping relationship between the third load interface and the fourth load interface is established, where the link mapping relationship is shown in table 1:
output interface Input interface
Fourth load interface Third load interface
TABLE 1
After receiving the message from the fourth load interface, the other gateways do not query the route but search the interface corresponding to the fourth load interface and the address information of the next hop connected with the interface in the link mapping relation table, and then send the received message out from the third load interface according to the address information.
It should be noted that the connection mode between the "other ISP" in the above description and the target gateway "that the third load interface to the other ISP may be configured in advance in the other gateway" is indirect connection, but the connection mode with the other gateway is direct connection. The messages sent to the target ISP and other ISPs are all subjected to the gateway repacking process (e.g., converting protocols and data formats) in the gateway cluster as in the prior art, for example, the message sent to the target ISP is subjected to the target gateway repacking process, and the message sent to the other ISPs is subjected to the target gateway or the other gateways repacking process. Optionally, a virtual link passing through the switch is configured between any two gateways in the gateway cluster, and the virtual link in the embodiment of the present invention may be configured in a link aggregation manner to facilitate management of the interface.
Before performing the above steps S304 and S305, the other gateway may further send an operation status message to the target gateway, where the operation status message includes at least one of bandwidth information, load information, and failure information of the other gateway, and the failure information is used to indicate whether the other gateway fails, for example, whether a link connected to the third load interface fails, whether a hardware failure occurs in the other gateway, or the like. And after receiving the running state message, the target gateway analyzes the information contained in the running state message, and then determines which part of the message is sent to the target ISP and which part of the message is sent to the switch according to the analyzed information. In general, if the other gateway does not fail, has a higher bandwidth and a lower load, the target gateway may send some more messages to the switch, that is, the ratio of the messages sent through the second load interface to the messages is increased. Specifically, the other gateways may first send the operation status message to the switch, and the switch forwards the operation status message to the target gateway after receiving the operation status message, for example, a special virtual link may be established among the target gateway, the switch, and the other gateways to transmit the operation status message. The other gateways may send the operation status message at regular time according to a preset time period, and may also detect the status of the other gateways at appropriate time, and send the operation status message when the status of the other gateways is abnormal, for example, send the operation status message when a link connected to the other ISP on the third load interface fails, so as to notify that the link fails. Further, the operation status message may be sent in a unicast manner, or may be sent in a broadcast manner.
It should be noted that, when a target gateway in the gateway cluster refers to a primary gateway and other gateways refer to standby gateways, the switch may further determine whether the target gateway fails, for example, whether the target gateway fails is analyzed by receiving failure information reported by other devices (e.g., the target gateway), detecting through a Bidirectional Forwarding Detection (BFD) mechanism, and the like; if the switch fails, the switch receives the message from the intranet and forwards the message to the other gateways, and the message is not forwarded to the target gateway.
When the target gateway in the gateway cluster is not in the relationship between the primary gateway and the standby gateway, any one gateway in the gateway cluster may be the target gateway, so that each gateway in the gateway cluster has the same configuration, which is embodied as: the target gateway transmits a part of the received messages through the first load interface, and transmits another part of the received messages through the second load interface, because the second load interface is connected to the switch, and the switch establishes a direct link mapping relationship between the fourth load interface and the third load interface of the other gateway, the target gateway can finally transmit the part of the messages to the target ISP through the first load interface, and transmit another part of the messages to the other ISP through the third load interface. Correspondingly, when the other gateway also receives the message sent by the switch, the other gateway sends a part of the message to the other ISP through the third load interface by using the same principle as that of the target gateway, and sends another part of the message to the target ISP through the first load interface, and the specific implementation manner may be as follows:
the other gateways may be configured with a fifth load interface connected to the switch, and the switch may also be configured with a sixth load interface corresponding to the fifth load interface, where a link is formed between the fifth load interface and the sixth load interface to transmit a message, and the message sent by the other gateways through the fifth load interface is correspondingly transmitted to the switch through the sixth load interface. The switch also establishes a corresponding relationship between the sixth load interface and the target gateway, and when receiving a message sent through the sixth load interface, the switch directly sends the message to the target gateway. Thus, when the other gateway receives a plurality of messages sent by the switch, it may also be calculated through a load sharing algorithm which part of the messages needs to be sent by the other ISP (i.e., the ISP directly connected to the other gateway), which part of the messages needs to be sent by the target ISP, and the messages that need to be sent by the other ISP are sent through the third load interface, and the messages that need to be sent by the target ISP are sent through the fifth load interface.
It should be noted that, in the embodiment of the present invention, the number of other gateways may refer to one gateway or may be a type of gateway, and when the other gateway refers to one gateway, the gateway cluster includes one target gateway and one other gateway; when the other gateway refers to a type of gateway, the gateway cluster includes a target gateway and a plurality of (two or more) other gateways, and when the number of the other gateways is multiple, the number of the other ISPs is also multiple, for example, a first other gateway and a second other gateway exist in the gateway cluster, an ISP to which the first other gateway is connected is a first ISP, and an ISP to which the second other gateway is connected is a second ISP. Fig. 4 is a schematic view of a scenario in which the other gateway refers to one gateway, and fig. 5 is a schematic view of a scenario in which the other gateway refers to one type of gateway (taking two gateways as an example).
Fig. 4 includes a switch 401, a target gateway 402, and other gateways 403, where the switch 401 may receive a message sent from an intranet, and the target gateway 402 and the other gateways 403 may send messages to ISPs connected to the respective gateways. The target gateway 402 is configured with a first load interface O1 and a second load interface V2, the switch 401 is configured with a fourth load interface I2 and a sixth load interface I1, the other gateways 403 are configured with a third load interface O2 and a fifth load interface V1, when receiving multiple messages sent by the switch 401, the target gateway 402 sends a part of the messages through the first load interface O1 and a part of the messages through the second load interface V2, the switch 401 correspondingly receives the messages sent by the target gateway 402 through the second load interface V2 and sends the received messages to the other gateways 403 through the fourth load interface I2, and the other gateways 403 send the messages through the third load interface O2 after receiving the messages sent by the switch 401 through the fourth load interface I2.
Correspondingly, when receiving a plurality of messages sent by the switch 401, another gateway 403 sends a part of the messages through the third load interface O2, and sends a part of the messages through the fifth load interface V1, the switch 401 correspondingly receives the messages sent by the other gateway 403 through the fifth load interface V1, and sends the received messages to the target gateway 402 through the sixth load interface I1, and after receiving the messages sent by the switch 401 through the sixth load interface I1, the target gateway 402 sends the messages through the first load interface O1.
Fig. 5 includes a switch 501, a target gateway 502, and other gateways 503, where the switch 501 may receive a message sent from an intranet, and the target gateway 502 and the other gateways 503 may send messages to ISPs connected to the respective gateways. The target gateway 502 is configured with an interface O1, an interface V21, and an interface V31, the switch 501 is configured with an interface I21, an interface I11, an interface I21, an interface I22, an interface I31, and an interface I32, the other gateways 503 are configured with an interface O2, an interface V11, and an interface V32, and the other gateways 504 are configured with an interface O3, an interface V22, and an interface V12, arrows in fig. 5 illustrate optional transmission paths of the message, and specific how to transmit the message may refer to the description in fig. 4, which is not described herein again.
Further, each interface described in the embodiment of the present invention is a virtual interface, in fig. 5, the target gateway 502 is connected to the switch 501 through the interfaces V31 and V21, in this case, the interface V31 and the interface V21 may be configured in a link aggregation manner, and the configuration of the interfaces in the other gateways and the switch 501 may refer to the configuration manner of the interfaces in the target gateway 502.
In the method described in fig. 3, a dedicated link is configured between a target gateway and another gateway, when the target gateway receives a message sent by a switch, a part of the message is sent to a target ISP, another part of the message is sent to another gateway through the configured link, and the other gateway sends the part of the message to another ISP, so that the target gateway can share the task of forwarding the message through the other ISP and the target ISP together without separately configuring a link connected to the other ISP, thereby improving the performance of the target gateway.
While the method of the embodiments of the present invention has been described in detail above, to facilitate a better understanding of the above-described aspects of the embodiments of the present invention, the following provides a corresponding apparatus of the embodiments of the present invention.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a switch 60 according to an embodiment of the present invention, the switch 60 includes a processor 601, a memory 602, and a network interface 603, and the processor 601, the memory 602, and the network interface 603 are connected to each other through a bus.
The memory 602 includes, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), or portable read only memory (CD-ROM).
The processor 601 may be one or more Central Processing Units (CPUs), and in the case that the processor 601 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
The network Interface 603 may be a wired Interface, such as a Fiber Distributed Data Interface (FDDI), Gigabit Ethernet (GE) Interface; the network interface 603 may also be a wireless interface.
The memory 602 is also used for storing session table entries, related instructions and data, and other information.
The processor 601 in the switch 60 is configured to read the program code stored in the memory 602, and then perform the following operations:
sending a plurality of messages to a target gateway through the network interface 603, where the target gateway includes a first load interface connected to a target internet service provider ISP and a second load interface connected to the switch, and the target gateway is configured to forward part of the plurality of messages to the switch and the target ISP through the first load interface and the second load interface, respectively;
receiving a part of the message forwarded by the target gateway through the network interface 603;
and forwarding the received partial message to other gateways through the network interface 603, where the other gateways include third load interfaces connected to other ISPs, the other gateways are configured to forward the partial message to the other ISPs through the third load interfaces after receiving the partial message, and the target gateway and the other gateways are in the same gateway cluster.
By executing the above operation, a dedicated link is configured between the target gateway and another gateway, when the target gateway receives a message sent by the switch, a part of the message is sent to the target ISP, another part of the message is sent to another gateway through the configured link, and the other gateway sends the part of the message to another ISP, so that the target gateway can share the task of forwarding the message through the other ISP and the target ISP together without separately configuring the link connected to the other ISP, thereby improving the performance of the target gateway.
In an optional scheme, the target gateway is configured as an active gateway, and the other gateways are configured as standby gateways; after forwarding the received partial packet to other gateways through the network interface 603, the processor 601 is further configured to:
when the target gateway fails, the network interface 603 sends a message to the other gateways instead of sending a message to the target gateway, so that the other gateways forward the received message to the other ISPs through the third load interface.
In yet another optional scenario, before the processor 601 receives the partial packet forwarded by the target gateway through the network interface 603, the processor is further configured to:
receiving an operation status message sent by the other gateway through the network interface 603, where the operation status message includes at least one of bandwidth information, load information, and fault information of the other gateway, and the fault information is used to indicate whether the other gateway is faulty;
and forwarding the running state message to the target gateway through the network interface 603, so that the target gateway determines the proportion of the message sent through the second load interface in the plurality of messages according to the running state message.
In yet another alternative, the number of the other gateways is multiple, and each of the other gateways is connected to a different ISP.
In yet another alternative, at least two interfaces on the switch are configured in a link aggregation manner.
It should be noted that the specific implementation of the switch shown in fig. 6 may also correspond to the corresponding description with reference to the method embodiment shown in fig. 3.
In the switch shown in fig. 6, a dedicated link is configured between a target gateway and another gateway, when the target gateway receives a message sent by the switch 60, a part of the message is sent to a target ISP, another part of the message is sent to another gateway through the configured link, and the other gateway sends the part of the message to another ISP, so that the target gateway can share the task of forwarding the message through the other ISP and the target ISP together without separately configuring the link connected to the other ISP, thereby improving the performance of the target gateway.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a target gateway 70 according to an embodiment of the present invention, please refer to the target gateway 70 including a processor 701, a memory 702, and a network interface 703, where the processor 701, the memory 702, and the network interface 703 are connected to each other through a bus.
The memory 702 includes, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), or portable read only memory (CD-ROM).
The processor 701 may be one or more Central Processing Units (CPUs), and in the case that the processor 701 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
The network Interface 703 may be a wired Interface, such as a Fiber Distributed Data Interface (FDDI) Interface or a Gigabit Ethernet (GE) Interface; the network interface 703 may also be a wireless interface.
The memory 702 is also used for storing session table entries, related instructions and data, etc.
The processor 701 in the switch 70 is configured to, after reading the program code stored in the memory 702, perform the following operations:
the network interface 703 is used for receiving messages and sending messages;
the memory 702 is used to store instructions and data;
the processor 701 is configured to read instructions and data stored in the memory 702, and perform the following operations:
receiving a plurality of messages sent by the switch through the network interface 703;
forwarding part of the plurality of messages to the target internet service provider ISP and the switch respectively through a first load interface connected to the target ISP and a second load interface connected to the switch via the network interface 703; the switch is configured to forward the received partial packet to another gateway, so that the other gateway forwards the received partial packet to the other ISP through a third load interface connected to the other ISP, where the target gateway and the other gateway are in the same gateway cluster.
By performing the above operations, a dedicated link is configured between the target gateway 70 and another gateway, when the target gateway 70 receives a message sent by the switch, a part of the message is sent to the target ISP, another part of the message is sent to another gateway through the configured link, and the other gateway sends the part of the message to another ISP, so that the target gateway 70 can share the task of forwarding the message through the other ISP and the target ISP together without separately configuring the link connected to the other ISP, thereby improving the performance of the target gateway 70.
In an optional scheme, the target gateway is configured as an active gateway, and the other gateways are configured as standby gateways; and the switch is used for not sending the message to the target gateway and sending the message to other gateways when the target gateway fails.
In yet another alternative, after the processor 701 receives a plurality of messages sent by a switch through the network interface 703, before the processor 701 forwards a part of the plurality of messages to a target internet service provider ISP and the switch respectively through the first load interface connected to the target internet service provider ISP and the second load interface connected to the switch through the network interface 703, the processor 701 is further configured to:
receiving an operation status message sent by the switch through the network interface 703, where the operation status message is a message sent by the other gateway to the switch and containing at least one of bandwidth information, load information, and fault information of the other gateway, and the fault information is used to indicate whether the other gateway is faulty;
and analyzing the information about the other gateways in the running state, and determining a part of messages sent to the switch from the plurality of messages according to the analyzed information.
In yet another alternative, at least two interfaces on the target gateway are configured in a link aggregation manner.
It should be noted that the specific implementation of the target gateway shown in fig. 7 may also correspond to the method embodiment shown in fig. 1.
In the target gateway 70 shown in fig. 7, a dedicated link is configured between the target gateway 70 and another gateway, when the target gateway 70 receives a message sent by the switch, a part of the message is sent to the target ISP, another part of the message is sent to another gateway through the configured link, and the other gateway sends the part of the message to another ISP, so that the target gateway 70 can share the task of forwarding the message through the other ISP and the target ISP together without separately configuring a link connected to the other ISP, thereby improving the performance of the target gateway 70.
Referring to fig. 8, fig. 8 is a schematic structural diagram of another switch 80 according to an embodiment of the present invention, where the switch 80 may include a receiving unit 801 and a sending unit 802, where the receiving unit 801 and the sending unit 802 are described in detail as follows.
A sending unit 801, configured to send a plurality of messages to a target gateway, where the target gateway includes a first load interface connected to a target internet service provider ISP and a second load interface connected to the switch 80, and the target gateway is configured to forward a part of the plurality of messages to the switch 80 and the target ISP through the first load interface and the second load interface, respectively;
the receiving unit 802 is configured to receive a part of the packet forwarded by the target gateway;
the sending unit 801 forwards the received partial message to other gateways, where the other gateways include third load interfaces connected to other ISPs, the other gateways are configured to forward the partial message to the other ISPs through the third load interfaces after receiving the partial message, and the target gateway and the other gateways are in the same gateway cluster.
By operating the above units, a dedicated link is configured between the target gateway and another gateway, when the target gateway receives the message sent by the switch 80, a part of the message is sent to the target ISP, another part of the message is sent to another gateway through the configured link, and the other gateway sends the part of the message to another ISP, so that the target gateway can share the task of forwarding the message through the other ISP and the target ISP together without separately configuring the link connected to the other ISP, thereby improving the performance of the target gateway.
In an optional scheme, the target gateway is configured as an active gateway, and the other gateways are configured as standby gateways; after the sending unit 801 forwards the received partial message to another gateway, the sending unit 801 is configured to send a message to the other gateway instead of sending a message to the target gateway when the target gateway fails, so that the other gateway forwards the received message to the other ISP through the third load interface.
In yet another optional scheme, before the receiving unit 802 receives a part of the message forwarded by the target gateway, the receiving unit 802 is configured to receive an operation status message sent by the other gateway, where the operation status message includes at least one of bandwidth information, load information, and fault information of the other gateway, and the fault information is used to indicate whether the other gateway is faulty;
the sending unit 801 is further configured to forward the operation status packet to the target gateway, so that the target gateway determines, according to the operation status packet, a ratio of the packet sent through the second load interface to the plurality of packets.
In yet another alternative, the number of the other gateways is multiple, and each of the other gateways is connected to a different ISP.
In yet another alternative, at least two interfaces on the switch 80 are configured in a link aggregation manner.
It should be noted that the specific implementation of each unit may also correspond to the corresponding description of the method embodiment shown in fig. 3.
In the switch 80 described in fig. 8, a dedicated link is configured between a target gateway and another gateway, when the target gateway receives a message sent by the switch 80, a part of the message is sent to a target ISP, another part of the message is sent to another gateway through the configured link, and the other gateway sends the part of the message to another ISP, so that the target gateway can share the task of forwarding the message through the other ISP and the target ISP together without separately configuring a link connected to the other ISP, thereby improving the performance of the target gateway.
Referring to fig. 9, fig. 9 is a schematic structural diagram of another target gateway 90 according to an embodiment of the present invention, where the target gateway may include a receiving unit 901 and a sending unit 902, and the receiving unit 901 and the sending unit 902 are described in detail as follows.
The receiving unit 901 is configured to receive multiple messages sent by the switch;
the sending unit 902 is configured to forward, to a target internet service provider ISP and the switch, a part of the multiple messages respectively through a first load interface connected to the target internet service provider ISP and a second load interface connected to the switch; the switch is configured to forward the received partial packet to another gateway, so that the other gateway forwards the received partial packet to the other ISP through a third load interface connected to the other ISP, where the target gateway and the other gateway are in the same gateway cluster.
By operating the above units, a dedicated link is configured between the target gateway 90 and another gateway, when the target gateway 90 receives a message sent by the switch, a part of the message is sent to the target ISP, another part of the message is sent to another gateway through the configured link, and the other gateway sends the part of the message to another ISP, so that the target gateway 90 can share the task of forwarding the message through the other ISP and the target ISP together without separately configuring the link connected to the other ISP, thereby improving the performance of the target gateway 90.
In an optional scheme, the target gateway 90 is configured as an active gateway, and the other gateways are configured as standby gateways; the switch is configured to send a message to the other gateways instead of sending a message to the target gateway 90 when the target gateway 90 fails.
In yet another optional scheme, the target gateway further includes an analysis unit, after the receiving unit 901 receives a plurality of messages sent by a switch, the sending unit 902 forwards a part of the plurality of messages to the target internet service provider ISP and the switch respectively through a first load interface connected to the target internet service provider ISP and a second load interface connected to the switch; the receiving unit 901 is further configured to receive an operation status message sent by the switch, where the operation status message is a message that is sent by the other gateway to the switch and includes at least one of bandwidth information, load information, and fault information of the other gateway, and the fault information is used to indicate whether the other gateway is faulty;
the analysis unit is used for analyzing the information about the other gateways in the running state and determining a part of messages sent to the switch from the plurality of messages according to the analyzed information.
In yet another alternative, at least two interfaces of the target gateway 90 are configured in a link aggregation manner.
It should be noted that the specific implementation of each unit may also correspond to the corresponding description of the method embodiment shown in fig. 3.
In the target gateway 90 depicted in fig. 9, a dedicated link is configured between the target gateway 90 and another gateway, when the target gateway 90 receives a message sent by the switch, a part of the message is sent to the target ISP, another part of the message is sent to another gateway through the configured link, and the other gateway sends the part of the message to another ISP, so that the target gateway 90 can share the task of message forwarding through the other ISP and the target ISP together without separately configuring a link connected to the other ISP, thereby improving the performance of the target gateway 90.
While the method and apparatus of the embodiments of the present invention have been described in detail above, in order to better implement the above-described aspects of the embodiments of the present invention, the following provides a related system of the embodiments of the present invention.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a message forwarding system 100 according to an embodiment of the present invention, where the system 100 includes a switch 1001 and a target gateway 1002, and the switch 1001 is the switch 60 described in the embodiment shown in fig. 6 or the switch 80 described in the embodiment shown in fig. 8; the target gateway is the target gateway 70 described in the embodiment shown in fig. 7 or the target gateway 90 described in the embodiment shown in fig. 9.
It should be noted that the specific implementation of the message forwarding system 100 may also correspond to the corresponding description of the method embodiment shown in fig. 3, and the corresponding description of the switch and the target gateway in the embodiments shown in fig. 6 to 9.
In the system 100 described in fig. 10, a dedicated link is configured between a target gateway and another gateway, when the target gateway receives a message sent by a switch, a part of the message is sent to a target ISP, another part of the message is sent to another gateway through the configured link, and the other gateway sends the part of the message to another ISP, so that the target gateway can share the task of forwarding the message through the other ISP and the target ISP together without separately configuring the link connected to the other ISP, thereby improving the performance of the target gateway.
In summary, by implementing the embodiments of the present invention, a dedicated link is configured between a target gateway and another gateway, and when the target gateway receives a message sent by an exchange, a part of the message is sent to a target ISP, another part of the message is sent to another gateway through the configured link, and the other gateway sends the part of the message to another ISP, so that the target gateway can share a task of forwarding the message through the other ISP and the target ISP together without separately configuring a link connected to the other ISP, thereby improving the performance of the target gateway.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. And the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above embodiments are only for illustrating the preferred embodiments of the present invention, and the scope of the present invention should not be limited thereby, and those skilled in the art can understand that all or part of the processes of the above embodiments can be implemented and equivalents thereof can be made according to the claims of the present invention, and still fall within the scope of the invention.

Claims (19)

1. A message forwarding method is characterized by comprising the following steps:
the method comprises the steps that a switch sends a plurality of messages to a target gateway, the target gateway comprises a first load interface connected to a target Internet Service Provider (ISP) and a second load interface connected with the switch, and the target gateway is used for forwarding part of the messages to the switch and the target ISP respectively through the first load interface and the second load interface;
the switch receives a part of messages forwarded by the target gateway through a fourth load interface, wherein a link is formed between the fourth load interface and the second load interface to transmit the messages;
the switch forwards the part of the message received from the fourth load interface to other gateways, the other gateways include third load interfaces connected to other ISPs, a corresponding relationship exists between the third load interfaces and the fourth load interfaces, the other gateways are used for forwarding the part of the message to the other ISPs through the third load interfaces under the condition of not inquiring routes after receiving the part of the message sent by the switch from the fourth load interface, the target gateway and the other gateways are in the same gateway cluster, and the second load interfaces, the third load interfaces and the fourth load interfaces are all virtual interfaces.
2. The method of claim 1, wherein the target gateway is configured as a primary gateway and the other gateways are configured as backup gateways; after the switch forwards the received partial message to other gateways, the method further includes:
and the switch does not send a message to the target gateway and sends a message to the other gateways when the target gateway fails, so that the other gateways forward the received message to the other ISPs through the third load interface.
3. The method according to claim 1 or 2, wherein before the switch receives the partial packet forwarded by the target gateway, the method further comprises:
the switch receives an operation state message sent by the other gateway, the operation state message comprises at least one item of bandwidth information, load information and fault information of the other gateway, and the fault information is used for indicating whether the other gateway is in fault or not;
and the switch forwards the running state message to the target gateway so that the target gateway determines the proportion of the message sent by the second load interface in the plurality of messages according to the running state message.
4. The method according to claim 1 or 2, wherein the number of the other gateways is plural, and each of the other gateways is connected to a different ISP.
5. The method according to claim 1 or 2, wherein at least two interfaces on the switch are configured in a link aggregation manner.
6. A message forwarding method is characterized by comprising the following steps:
the target gateway receives a plurality of messages sent by the switch;
the target gateway respectively forwards part of the messages to the target ISP and the switch through a first load interface connected to the target Internet service provider ISP and a second load interface connected with the switch; a link for transmitting messages is configured between the second load interface and a fourth load interface on the switch, the switch is configured to forward a part of the messages received through the fourth load interface to other gateways, so that the other gateways forward the received part of the messages to other ISPs through a third load interface connected to the other ISPs without inquiring about a route, the target gateway and the other gateways are in the same gateway cluster, and the second load interface, the third load interface and the fourth load interface are all virtual interfaces.
7. The method of claim 6, wherein the target gateway is configured as a primary gateway and the other gateways are configured as backup gateways; and the switch is used for not sending the message to the target gateway and sending the message to other gateways when the target gateway fails.
8. The method according to claim 6 or 7, wherein after the target gateway receives the plurality of messages sent by the switch, before the target gateway forwards a part of the plurality of messages to the target ISP and the switch respectively through a first load interface connected to the target Internet service provider ISP and a second load interface connected to the switch, the method further comprises:
the target gateway receives an operation state message sent by the switch, wherein the operation state message is a message which is sent by the other gateway to the switch and contains at least one item of bandwidth information, load information and fault information of the other gateway, and the fault information is used for indicating whether the other gateway is in fault;
and the target gateway analyzes the information about the other gateways in the running state and determines a part of messages sent to the switch from the plurality of messages according to the analyzed information.
9. The method according to claim 6 or 7, wherein at least two interfaces on the target gateway are configured in a link aggregation manner.
10. A switch, comprising a processor, a memory, and a network interface, wherein:
the network interface is used for receiving messages and sending messages;
the memory is used for storing instructions and data;
the processor is used for reading the instructions and data stored in the memory and executing the following operations:
sending a plurality of messages to a target gateway through the network interface, wherein the target gateway comprises a first load interface connected to a target Internet Service Provider (ISP) and a second load interface connected with the switch, and the target gateway is used for respectively forwarding part of the messages to the switch and the target ISP through the first load interface and the second load interface;
receiving a part of messages forwarded by the target gateway through a fourth load interface on the network interface, wherein a link is formed between the fourth load interface and the second load interface to be used for transmitting the messages;
and forwarding the part of the message received from the fourth load interface to other gateways through the network interface, where the other gateways include a third load interface connected to another ISP, a correspondence exists between the third load interface and the fourth load interface, and the other gateways are configured to forward the part of the message to the other ISP through the third load interface without querying a route after receiving the part of the message sent by the switch from the fourth load interface, where the target gateway and the other gateways are in the same gateway cluster, and the second load interface, the third load interface, and the fourth load interface are all virtual interfaces.
11. The switch of claim 10, wherein the target gateway is configured as a primary gateway and the other gateways are configured as backup gateways; after forwarding the received partial message to other gateways through the network interface, the processor is further configured to:
and when the target gateway fails, sending the message to the other gateways through the network interface instead of the target gateway, so that the other gateways forward the received message to the other ISPs through the third load interface.
12. The switch according to claim 10 or 11, wherein before the processor receives the part of the packet forwarded by the target gateway through the network interface, the processor is further configured to:
receiving an operation state message sent by the other gateway through the network interface, wherein the operation state message comprises at least one of bandwidth information, load information and fault information of the other gateway, and the fault information is used for indicating whether the other gateway is in fault;
and forwarding the running state message to the target gateway through the network interface so that the target gateway determines the proportion of the message sent through the second load interface in the plurality of messages according to the running state message.
13. The switch according to claim 10 or 11, wherein the number of said other gateways is plural, and each of said other gateways is connected to a different ISP.
14. The switch according to claim 10 or 11, characterized in that at least two interfaces on the switch are configured in a link aggregation.
15. A gateway, wherein the gateway is a target gateway comprising a processor, a memory, and a network interface, wherein:
the network interface is used for receiving messages and sending messages;
the memory is used for storing instructions and data;
the processor is used for reading the instructions and data stored in the memory and executing the following operations:
receiving a plurality of messages sent by a switch through the network interface;
respectively forwarding part of the plurality of messages to a target Internet Service Provider (ISP) and the switch through a first load interface connected to the ISP and a second load interface connected to the switch through the network interface; a link for transmitting messages is configured between the second load interface and a fourth load interface on the switch, the switch is configured to forward a part of the received messages to other gateways, so that the other gateways forward the part of the received messages to other ISPs through third load interfaces connected to the other ISPs without inquiring routes, the target gateway and the other gateways are in the same gateway cluster, and the second load interface, the third load interface and the fourth load interface are all virtual interfaces.
16. The gateway of claim 15, wherein the target gateway is configured as a primary gateway and the other gateways are configured as backup gateways; and the switch is used for not sending the message to the target gateway and sending the message to other gateways when the target gateway fails.
17. The gateway of claim 15 or 16, wherein after the processor receives the plurality of messages sent by the switch via the network interface, the processor is further configured to, before forwarding a portion of the plurality of messages to the target ISP and the switch via the network interface via a first load interface connected to the target internet service provider ISP and a second load interface connected to the switch, respectively:
receiving an operation state message sent by the switch through the network interface, wherein the operation state message is a message which is sent by the other gateway to the switch and contains at least one item of bandwidth information, load information and fault information of the other gateway, and the fault information is used for indicating whether the other gateway is in fault;
and analyzing the information about the other gateways in the running state, and determining a part of messages sent to the switch from the plurality of messages according to the analyzed information.
18. The gateway according to claim 15 or 16, wherein at least two interfaces on the target gateway are configured in a link aggregation manner.
19. A message forwarding system is characterized in that the system comprises a switch and a target gateway;
the switch is the switch of any one of claims 10 to 14;
the target gateway is the target gateway of any one of claims 15 to 18.
CN201610278405.0A 2016-04-28 2016-04-28 Message forwarding method, related equipment and system Active CN107332793B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610278405.0A CN107332793B (en) 2016-04-28 2016-04-28 Message forwarding method, related equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610278405.0A CN107332793B (en) 2016-04-28 2016-04-28 Message forwarding method, related equipment and system

Publications (2)

Publication Number Publication Date
CN107332793A CN107332793A (en) 2017-11-07
CN107332793B true CN107332793B (en) 2020-10-16

Family

ID=60192428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610278405.0A Active CN107332793B (en) 2016-04-28 2016-04-28 Message forwarding method, related equipment and system

Country Status (1)

Country Link
CN (1) CN107332793B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109802985B (en) * 2017-11-17 2021-01-29 北京金山云网络技术有限公司 Data transmission method, device, equipment and readable storage medium
CN110213161B (en) * 2019-05-10 2022-02-11 腾讯科技(深圳)有限公司 Routing scheduling method and related equipment
CN113507480B (en) * 2021-07-23 2023-10-27 北京众享比特科技有限公司 Network equipment, gateway equipment and system and inter-network data transmission and reporting method
CN114567524B (en) * 2022-03-14 2024-02-02 杭州萤石软件有限公司 Dynamic gateway communication system and method of (a)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383778A (en) * 2008-10-27 2009-03-11 杭州华三通信技术有限公司 Packet transmission method based on network dual exit and exit router
CN101964736A (en) * 2010-10-20 2011-02-02 清华大学 Exit network framework system of local area network
CN102761476A (en) * 2012-03-30 2012-10-31 杭州华三通信技术有限公司 Load balancing method and device
CN105359469A (en) * 2013-03-14 2016-02-24 诺玛迪克斯公司 Hierarchical rule-based routing system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030009585A1 (en) * 2001-07-06 2003-01-09 Brian Antoine Dynamic policy based routing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383778A (en) * 2008-10-27 2009-03-11 杭州华三通信技术有限公司 Packet transmission method based on network dual exit and exit router
CN101964736A (en) * 2010-10-20 2011-02-02 清华大学 Exit network framework system of local area network
CN102761476A (en) * 2012-03-30 2012-10-31 杭州华三通信技术有限公司 Load balancing method and device
CN105359469A (en) * 2013-03-14 2016-02-24 诺玛迪克斯公司 Hierarchical rule-based routing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
网络环境可靠性保障技术研究及应用;顾清;《中国优秀硕士学位论文全文数据库》;20091215;参见文献第40页倒数第5行至第41页第1行,第56页第1行至倒数第3行,第60页倒数第9行至第63页倒数第1行,以及图3-9、4-2、4-4 *

Also Published As

Publication number Publication date
CN107332793A (en) 2017-11-07

Similar Documents

Publication Publication Date Title
US9659075B2 (en) Providing high availability in an active/active appliance cluster
JP4840236B2 (en) Network system and node device
US9019815B2 (en) Source alive route injection
CN108306777B (en) SDN controller-based virtual gateway active/standby switching method and device
US20140029419A1 (en) System, method and apparatus providing mvpn fast failover
US9455916B2 (en) Method and system for changing path and controller thereof
CN107332793B (en) Message forwarding method, related equipment and system
WO2011110118A2 (en) Fault detection method and system
JP5884892B2 (en) Network system, controller, and load balancing method
US10326681B2 (en) System and method to analyze route information in a network
WO2012077262A1 (en) Server management apparatus, server management method, and program
WO2022253087A1 (en) Data transmission method, node, network manager, and system
WO2020173424A1 (en) Message processing method, and gateway device
US9571346B2 (en) Fault tolerant communication system, method, and device that uses tree searching
JP2007208502A (en) Communication system, backup router, redundant processing program thereof, and redundant processing method thereof
WO2022007861A1 (en) Failure notification method and electronic device
US11290319B2 (en) Dynamic distribution of bidirectional forwarding detection echo sessions across a multi-processor system
CN112637054B (en) Networking optimization method and device for IP bearing network, computing equipment and storage medium
EP4094421A2 (en) Pce controlled network reliability
JP2005294966A (en) Data communication control system and data communication control method
US11876680B2 (en) Method and apparatus for determining link for forwarding service flow
WO2024021878A1 (en) Method for sending load information, method for sending message, and apparatus
CN114124753B (en) Message sending method and device
US9331924B2 (en) Distribution route construction method and terminal device
WO2020179704A1 (en) Network management method, network system, intensive analysis device, terminal device, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211228

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: Super fusion Digital Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right