CN116016309A - Information processing method and device and electronic equipment - Google Patents

Information processing method and device and electronic equipment Download PDF

Info

Publication number
CN116016309A
CN116016309A CN202211571768.5A CN202211571768A CN116016309A CN 116016309 A CN116016309 A CN 116016309A CN 202211571768 A CN202211571768 A CN 202211571768A CN 116016309 A CN116016309 A CN 116016309A
Authority
CN
China
Prior art keywords
routing information
weight
field
gateway
gateway device
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.)
Pending
Application number
CN202211571768.5A
Other languages
Chinese (zh)
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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology 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 Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202211571768.5A priority Critical patent/CN116016309A/en
Publication of CN116016309A publication Critical patent/CN116016309A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides an information processing method, an information processing device and electronic equipment, wherein a weight field is added in received first route information; and based on the determined target routing information, sending the determined target routing information to the second gateway equipment so that the second gateway equipment calculates weight values according to the field values of the weight fields, and distributing the access traffic to the target network segment to each first gateway equipment according to each weight value. In the mode, the first gateway device can add a weight field in the first routing information, the field value of the first gateway device is related to the sum of transmission rates of the dedicated line channels connected with the first gateway device, when the dedicated line channels are changed, the field value is changed, and further the weight value determined based on the field value is changed, the second gateway device distributes the flow to each first gateway device according to the weight value, so that the problem of information loss caused by the change of the dedicated line channels can be avoided, a large amount of redundancy deployment is not needed for the first gateway device or the dedicated line channels, and the waste of the first gateway device or the dedicated line bandwidth is reduced.

Description

Information processing method and device and electronic equipment
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to an information processing method, an information processing device, and an electronic device.
Background
The private IDC (Internet Data Center ) of the user can be connected to a plurality of POP point switches through the special lines, each POP point switch is also connected with the core switch generally, connection between IDC and public cloud can be realized, because the core switch can only sense the POP point switches, when forwarding the traffic of the access IDC network section, the traffic can be distributed evenly according to the number of the POP point switches, in order to avoid the problem of information loss caused by the fact that the special line between IDC and POP point switches cannot be sensed, in the related technology, only one special line can be deployed for each POP point switch, when one special line corresponding to a certain POP point switch is disconnected, the core switch does not distribute the traffic to the POP point switch any more, and a large number of POP point switches are required to be deployed in the mode; the number of special lines exceeding the total special line bandwidth can be deployed for a single POP point switch, and when the number of special lines of a certain POP point switch is smaller than the total special line bandwidth, the core switch does not distribute flow to the POP point switch any more; however, the redundant deployment approach used in the related art wastes relatively much POP point switch or private line bandwidth.
Disclosure of Invention
The invention aims to provide an information processing method, an information processing device and electronic equipment, which can avoid the problem of information loss caused by special line change and reduce the waste of gateway equipment or special line bandwidth.
The invention provides an information processing method, which is applied to a plurality of first gateway devices, wherein a private data center of a user is connected with each first gateway device through a private line channel, and each first gateway device is also connected with a second gateway device; the method comprises the following steps: for each first gateway device, receiving first routing information aiming at a target network segment and issued by a private data center; adding a weight field in the first routing information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the current first gateway equipment; and determining target route information corresponding to the current first gateway equipment based on the first route information added with the weight field, and sending the target route information to the second gateway equipment, so that the second gateway equipment calculates the weight value corresponding to each first gateway equipment according to the field value of the weight field in the target route information and the field value of the weight field in other received target route information, and when the access traffic corresponding to the access request for the target network segment is received, distributing the corresponding traffic to each first gateway equipment according to each weight value to send the access request to the private data center for processing.
Further, a plurality of dedicated channels are connected to the current first gateway device; the sum of the transmission rates is determined by: acquiring the bandwidth of each special line channel connected with the current first gateway equipment; determining the transmission rate corresponding to each dedicated line channel according to the bandwidth of each dedicated line channel; and adding the transmission rates corresponding to each special line channel to obtain the sum of the transmission rates.
Further, the first routing information includes a next-hop field, and a field value of the next-hop field is an identifier of the private line channel; the step of determining the target routing information corresponding to the current first gateway device based on the first routing information of the added weight field comprises the following steps: and updating the field value of the next hop field in the first routing information of the added weight field to the IP address of the current first gateway equipment to obtain the target routing information corresponding to the current first gateway equipment.
Further, the method further comprises: if the number of the special line channels connected with the first gateway equipment is updated, updating the field value of the weight field of the first routing information based on the sum of the transmission rates of the updated special line channels; determining updated target routing information corresponding to the current first gateway equipment based on the first routing information after updating the field value of the weight field; and sending the updated target routing information to the second gateway equipment, so that the second gateway equipment takes the updated target routing information as new target routing information, and repeatedly executing the steps of calculating the weight value corresponding to each first gateway equipment according to the field value of the weight field in the target routing information and the field values of the weight fields in other received target routing information until the access request is sent to the private data center for processing.
The invention provides an information processing method which is applied to second gateway equipment, wherein the second gateway equipment is in communication connection with a plurality of first gateway equipment; each first gateway device is connected with a private data center of a user through a private line channel; the method comprises the following steps: for each first gateway device, receiving target routing information from the current first gateway device; the target routing information is determined by the current first gateway device in the following manner: receiving first route information aiming at a target network segment and issued by a private data center; adding a weight field in the first routing information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the current first gateway equipment; determining target routing information corresponding to the current first gateway equipment based on the first routing information of the added weight field; calculating a weight value corresponding to each first gateway device according to the field value of the weight field in the target routing information and the field values of the weight fields in other received target routing information; when an access flow corresponding to an access request for a target network segment is received, distributing the corresponding flow to each first gateway device according to each weight value, and sending the access request to a private data center for processing through each first gateway device.
Further, after the step of calculating the weight value corresponding to each first gateway device, the method further includes: and generating a routing table corresponding to the target network segment according to the weight value corresponding to each first gateway device.
Further, when an access traffic corresponding to an access request for a target network segment is received, the step of distributing the corresponding traffic to each first gateway device according to each weight value includes: when an access request aiming at a target network segment is received, determining an access flow corresponding to the access request; selecting a routing table corresponding to the target network segment; and distributing corresponding traffic to each first gateway device according to the weight value corresponding to each first gateway device indicated by the routing table.
The invention provides an information processing device, which is arranged on a plurality of first gateway equipment, wherein a private data center of a user is connected with each first gateway equipment through a private line channel, and each first gateway equipment is also connected with a second gateway equipment; the device comprises: the first receiving module is used for receiving first route information aiming at a target network segment and issued by a private data center aiming at each first gateway device; an adding module, configured to add a weight field to the first routing information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the current first gateway equipment; and the sending module is used for determining the target route information corresponding to the current first gateway equipment based on the first route information added with the weight field, sending the target route information to the second gateway equipment, so that the second gateway equipment calculates the weight value corresponding to each first gateway equipment according to the field value of the weight field in the target route information and the field value of the weight field in other received target route information, and when the access traffic corresponding to the access request of the target network segment is received, distributing the corresponding traffic to each first gateway equipment according to each weight value to send the access request to the private data center for processing.
The invention provides an information processing device, which is arranged on second gateway equipment, wherein the second gateway equipment is in communication connection with a plurality of first gateway equipment; each first gateway device is connected with a private data center of a user through a private line channel; the device comprises: the second receiving module is used for receiving the target routing information from the current first gateway equipment aiming at each first gateway equipment; the target routing information is determined by the current first gateway device in the following manner: receiving first route information aiming at a target network segment and issued by a private data center; adding a weight field in the first routing information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the current first gateway equipment; determining target routing information corresponding to the current first gateway equipment based on the first routing information of the added weight field; the calculation module is used for calculating the weight value corresponding to each first gateway device according to the field value of the weight field in the target routing information and the received field value of the weight field in other target routing information; and the distribution module is used for distributing the corresponding traffic to each first gateway device according to each weight value when the access traffic corresponding to the access request of the target network segment is received, and sending the access request to the private data center for processing through each first gateway device.
The present invention provides an electronic device including a processor and a memory storing machine-executable instructions executable by the processor, the processor executing the machine-executable instructions to implement any one of the information processing methods described above.
The invention provides a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement any of the above-described information processing methods.
According to the information processing method, the information processing device and the electronic equipment, first route information aiming at a target network segment and issued by a private data center is received aiming at each first gateway equipment; adding a weight field in the first routing information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the current first gateway equipment; and determining target route information corresponding to the current first gateway equipment based on the first route information added with the weight field, and sending the target route information to the second gateway equipment, so that the second gateway equipment calculates the weight value corresponding to each first gateway equipment according to the field value of the weight field in the target route information and the field value of the weight field in other received target route information, and when the access traffic corresponding to the access request for the target network segment is received, distributing the corresponding traffic to each first gateway equipment according to each weight value to send the access request to the private data center for processing. In the mode, the first gateway device can add a weight field in the first routing information, the field value of the first gateway device is related to the sum of transmission rates of the dedicated line channels connected with the first gateway device, when the dedicated line channels are changed, the field value is changed, and further the weight value determined based on the field value is changed, the second gateway device distributes the flow to each first gateway device according to the weight value, so that the problem of information loss caused by the change of the dedicated line channels can be avoided, a large amount of redundancy deployment is not needed for the first gateway device or the dedicated line channels, and the waste of the first gateway device or the dedicated line bandwidth is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an information processing system according to an embodiment of the present invention;
FIG. 2 is a flowchart of an information processing method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another information processing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another information processing system according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another information processing system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another information processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be clearly and completely described in connection with the embodiments, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The private IDC (Internet Data Center ) of the user can be connected to a plurality of POP point switches through dedicated lines, each POP point switch is also typically connected to a core switch, and connection between IDC and public cloud can be achieved, for example, see a schematic structure diagram of an information processing system shown in fig. 1, and assuming that a customer wants to achieve 30G total bandwidth dedicated line access, the IDC and public cloud are opened, routing protocols are configured on IDC side and POP point switch side, the IDC side is connected to two POP point switches through dedicated lines based on the routing protocols, each POP point switch is connected to two dedicated lines of 10G, and the two POP point switches are DP-SW1 and DP-SW2 respectively.
IDC issues the route of network segment 10.10.0.0/16 to the outside, after the POP point exchanger DP-SW1 and DP-SW2 learn the network segment, respectively generates ECMP (Equal Cost Multi-path) equivalent routes of two next hops, the next hops are two special lines 1 and 2 and special lines 3 and 4 respectively; if traffic intended to access the IDC-side network segment 10.10.0.0/16 reaches the DP-SW1 and DP-SW2 switches, each POP point switch will issue traffic equalization from two 10G dedicated lines to the IDC side according to the ECMP hash algorithm set.
The POP point switches DP-SW1 and DP-SW2 also issue the learned route to the switch CORE (i.e. CORE switch), and the CORE learns ECMP equivalent routes of two next hops, namely DP-SW1 and DP-SW2; the CORE only perceives DP-SW1 and DP-SW2. Private line 1, private line 2, private line 3 and private line 4 cannot be perceived; if the dedicated line 1 is disconnected at this time, the bandwidth corresponding to the DP-SW1 becomes 10G, while the bandwidth of the DP-SW2 is 20G, and the CORE cannot perceive the change, and for the CORE, the ECMP equivalent routes of the two next hops DP-SW1 and DP-SW2 remain, so the traffic sent to the DP-SW1 and DP-SW2 is equal, and for the DP-SW1, the maximum bandwidth of 1 dedicated line of 10G may be exceeded.
In order to avoid the problem of information loss caused by the unaware of the change of the private line between the IDC and the POP point exchanger, the existing solutions generally have the following two kinds:
1. single DP-SW, single dedicated line deployment; i.e. a DP-SW switch, only one dedicated line is deployed. After a private line is disconnected, the route is converged, and the CORE no longer distributes traffic to the DP-SW. This solution requires cloud vendors to deploy a large number of DP-SW switches, resulting in lower DP-SW utilization.
2. A single DP-SW deploys an excessive special line mode; the DP-SW is effective when the number of the private lines of the DP-SW is larger than the total bandwidth, and can release IDC side routing outwards; when the number of the dedicated lines of the DP-SW is smaller than the total bandwidth of the dedicated lines, the DP-SW fails, the IDC-side route is immediately withdrawn, and the CORE no longer distributes traffic to the DP-SW. This solution requires the deployment of redundant dedicated lines, wasting a lot of dedicated line bandwidth.
In summary, the existing dedicated line high availability scheme mainly uses a redundancy deployment scheme to realize high availability, and the dedicated line bandwidth or dedicated line gateway resources are wasted. Based on the above, the embodiment of the invention provides an information processing method, an information processing device and electronic equipment, and the technology can be applied to a scene requiring to distribute access traffic.
For the convenience of understanding the present embodiment, first, a detailed description is given of an information processing method disclosed in the embodiment of the present invention; the method is applied to a plurality of first gateway devices, a private data center of a user is connected with each first gateway device through a private line channel, and each first gateway device is also connected with a second gateway device; the first gateway device may be a POP point switch, where an access point formed by the POP point switch is usually located outside an edge of a network enterprise and is an access point for accessing an enterprise network, and the number of POP point switches needs to be established according to an actual service requirement of a client, for example, 20G bandwidth is actually required, after a certain redundancy design, the POP point switch is designed to be 40G bandwidth, after a client determines a requirement, a cloud service manufacturer can determine the POP point switch that can be accessed for the client; the private data center can be understood as a private IDC of the user, and is a private data machine room of the user; the second gateway device may be understood as a core switch, which is a central node for data transfer; the number of dedicated channels to which each first gateway device is connected may be one or more; as shown in fig. 2, the method comprises the steps of:
Step S202, for each first gateway device, receives first routing information for a target network segment issued by a private data center.
The target network segment can be set according to actual requirements, for example, the target network segment for planning use is 10.10.0.0/16, etc.; in actual implementation, the private data center of the user can issue the first route information of the target network segment to the outside so as to access the public cloud through the private line channel, the first gateway equipment and the second gateway equipment, and each first gateway equipment can learn the first route information.
Step S204, adding a weight field in the first route information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the first gateway device.
After each first gateway device receives the first routing information, weight attributes can be added to the first routing information respectively, and specifically, a weight field can be added to the first routing information, wherein the field value of the weight field of each first gateway device is the sum of all the next-hop network interface rates of the routes of the first gateway device, and the unit is Mbyte. For example, the first gateway device is DP-SW1, the DP-SW1 is connected with the private data center through a dedicated line 1 and a dedicated line 2, each dedicated line is 10G bandwidth, and in the routing information initially issued by the DP-SW1, the field value of the added weight field is 10g+10g=20480 Mbyte.
Step S206, determining the target route information corresponding to the current first gateway device based on the first route information added with the weight field, and sending the target route information to the second gateway device, so that the second gateway device calculates the weight value corresponding to each first gateway device according to the field value of the weight field in the target route information and the field value of the weight field in other received target route information, and when the access traffic corresponding to the access request for the target network segment is received, distributing the corresponding traffic to each first gateway device according to each weight value, so as to send the access request to the private data center for processing.
The first routing information generally includes other fields, such as a next hop field, in addition to the weight field, and the target routing information may be understood as the routing information obtained by modifying other fields in the first routing information added with the weight field; when the second gateway device forwards the traffic accessing the target network segment, the second gateway device can forward the corresponding traffic to each first gateway device according to each weight value; for example, the first gateway device is respectively DP-SW1 and DP-SW2, and the DP-SW1 is connected with the private data center through a dedicated line 1; the DP-SW2 is connected with the private data center through a private line 2 and a private line 3, each private line is 10G bandwidth, the field value of the added weight field is 10G=10240Mbyte in target route information issued by the DP-SW1, and the field value of the added weight field is 10G+10G=20480 Mbyte in target route information issued by the DP-SW 1; calculation 10240:20480 =1:2, i.e. the calculated weight value corresponding to DP-SW1 is 1, the weight value corresponding to DP-SW2 is 2, and assuming that the access traffic corresponding to the access request received by the second gateway device is 30G, forwarding the traffic of 10G to DP-SW1, forwarding the traffic of 20G to DP-SW2 according to the calculated weight value, and sending the access request to the private data center through DP-SW1 and DP-SW2, so as to process the access request.
According to the information processing method, first route information aiming at a target network segment and issued by a private data center is received aiming at each first gateway device; adding a weight field in the first routing information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the current first gateway equipment; and determining target route information corresponding to the current first gateway equipment based on the first route information added with the weight field, and sending the target route information to the second gateway equipment, so that the second gateway equipment calculates the weight value corresponding to each first gateway equipment according to the field value of the weight field in the target route information and the field value of the weight field in other received target route information, and when the access traffic corresponding to the access request for the target network segment is received, distributing the corresponding traffic to each first gateway equipment according to each weight value to send the access request to the private data center for processing. In the mode, the first gateway device can add a weight field in the first routing information, the field value of the first gateway device is related to the sum of transmission rates of the dedicated line channels connected with the first gateway device, when the dedicated line channels are changed, the field value is changed, and further the weight value determined based on the field value is changed, the second gateway device distributes the flow to each first gateway device according to the weight value, so that the problem of information loss caused by the change of the dedicated line channels can be avoided, a large amount of redundancy deployment is not needed for the first gateway device or the dedicated line channels, and the waste of the first gateway device or the dedicated line bandwidth is reduced.
The embodiment of the invention also provides another information processing method, which is realized on the basis of the method of the embodiment; in the method, the first routing information comprises a next-hop field, and the field value of the next-hop field is the identifier of a private line channel; the identification can be realized by adopting a digital numbering mode and the like, for example, a special line channel 1, a special line channel 2 and the like; the method comprises the following steps:
step one, for each first gateway device, first routing information aiming at a target network segment, which is issued by a private data center, is received.
Step two, adding a weight field in the first routing information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the first gateway device.
The current first gateway equipment is connected with a plurality of special line channels; the sum of the transmission rates is determined by the following steps a to C:
and step A, obtaining the bandwidth of each special line channel connected with the current first gateway equipment.
And B, determining the transmission rate corresponding to each dedicated line channel according to the bandwidth of each dedicated line channel.
And C, adding the transmission rates corresponding to each special line channel to obtain the sum of the transmission rates.
For example, the current first gateway device is DP-SW1, and the DP-SW1 is connected with the private data center through a dedicated line channel 1 and a dedicated line channel 2; each dedicated line channel is 10G bandwidth, and the transmission rate corresponding to the 10G bandwidth is 10240Mbyte, and then the field value of the weight field added by the DP-SW1 in the first routing information is 10g+10g=20480 Mbyte.
And thirdly, updating the field value of the next hop field in the first routing information added with the weight field into the IP address of the current first gateway equipment, obtaining the target routing information corresponding to the current first gateway equipment, and sending the target routing information to the second gateway equipment, so that the second gateway equipment calculates the weight value corresponding to each first gateway equipment according to the field value of the weight field in the target routing information and the field values of the weight fields in other received target routing information, and when the access traffic corresponding to the access request of the target network segment is received, distributing the corresponding traffic to each first gateway equipment according to each weight value, so as to send the access request to the private data center for processing.
When the current first gateway equipment issues a route, the field value of the next hop field in the first route information of the added weight field is modified into the IP address of the current first gateway equipment by the identifier of the special line channel; for example, the first gateway device is respectively DP-SW1 and DP-SW2, and the DP-SW1 is connected with the private data center through a dedicated line channel 1 and a dedicated line channel 2; the DP-SW2 is connected with the private data center through the private line channel 3 and the private line channel 4, each private line is 10G bandwidth, and at the moment, the DP-SW1 receives the first routing information as follows:
Destination/Mask NextHop Interface
10.10.0.0/16 private line channel 1 10G1/0/1
Dedicated channel 2G 1/0/2;
the first routing information received by DP-SW2 is as follows:
Destination/Mask NextHop Interface
10.10.0.0/16 private line channel 3 10G1/0/1
Dedicated channel 4G 1/0/2;
wherein 10.10.0.0/16 is the target network segment, the field value of the next hop field NextHop is the identification of the dedicated line channel connected with DP-SW1 and DP-SW2, respectively, and the weight field is added when issuing the route to the CORE, namely the second gateway device.
The destination routing information that DP-SW1 publishes to the CORE is as follows:
Destination/Mask NextHop Weight(unit)
10.10.0.0/16 DP-SW1 20480(Mbyte);
the destination routing information that DP-SW2 issues to the CORE is as follows:
Destination/Mask NextHop Weight(unit)
10.10.0.0/16 DP-SW2 20480(Mbyte);
the field value of the next hop field NextHop is modified to be the IP addresses of DP-SW1 and DP-SW2, respectively, the field value in the Weight (unit) corresponding to DP-SW1 is the sum of the transmission rates of the dedicated line channel 1 and the dedicated line channel 2, and the field value in the Weight (unit) corresponding to DP-SW2 is the sum of the transmission rates of the dedicated line channel 3 and the dedicated line channel 4.
And step four, if the number of the special line channels connected with the first gateway equipment at present is updated, updating the field value of the weight field of the first routing information based on the sum of the transmission rates of the updated special line channels.
And fifthly, determining updated target routing information corresponding to the current first gateway equipment based on the first routing information after updating the field value of the weight field.
In actual implementation, a dedicated channel connected to the current first gateway device may have a situation that a certain dedicated channel is broken due to an abnormality, and in this case, the sum of transmission rates of the dedicated channel connected to the current first gateway device also changes, so that a field value of a weight field of the first routing information needs to be updated according to the sum of the changed transmission rates; for example, continuing with the example in the above step three, assume that the dedicated channel 2 is disconnected, and the first routing information received by the DP-SW1 is as follows:
Destination/Mask NextHop Interface
10.10.0.0/16 private line channel 1 10G1/0/1;
the first routing information received by DP-SW2 is as follows:
Destination/Mask NextHop Interface
10.10.0.0/16 private line channel 3 10G1/0/1
Dedicated channel 4G 1/0/2;
since the dedicated channel 2 connected to the DP-SW1 is disconnected, the DP-SW1 needs to send an update message to inform the CORE that the routing weight of the DP-SW1 is changed.
The DP-SW1 issues the target routing information to the CORE as follows (update needs to be issued):
Destination/Mask NextHop Weight(unit)
10.10.0.0/16 DP-SW1 10240(Mbyte);
the DP-SW2 issues the target routing information to the CORE as follows (update does not need to be issued):
Destination/Mask NextHop Weight(unit)
10.10.0.0/16 DP-SW2 20480(Mbyte)。
step six, the updated target route information is sent to the second gateway equipment, so that the second gateway equipment takes the updated target route information as new target route information, and the step of calculating the weight value corresponding to each first gateway equipment according to the field value of the weight field in the target route information and the field values of the weight fields in other received target route information is repeatedly executed until the access request is sent to the private data center for processing.
Before the special line channel 2 is disconnected, the corresponding weight values of the DP-SW1 and the DP-SW2 are 20480:20480=1:1, namely when the CORE forwards the traffic accessing the IDC network segment 10.10.0.0/16, the traffic is forwarded to the DP-SW1 and the DP-SW2 according to the weight 1:1, so that the special line access requirement of the client 30G can be met; after the dedicated line channel 2 is disconnected, the weight values corresponding to the DP-SW1 and the DP-SW2 are 10240:20480=1:2, namely when forwarding traffic accessing the IDC network segment 10.10.0.0/16, the CORE forwards the traffic to the DP-SW1 and the DP-SW2 according to the weight 1:2.
According to the information processing method, if the number of the special line channels connected with the first gateway equipment is updated currently, the field value of the weight field of the first routing information is updated based on the sum of the transmission rates of the updated special line channels. And determining updated target routing information corresponding to the current first gateway equipment based on the first routing information after updating the field value of the weight field. And sending the updated target routing information to the second gateway equipment, so that the second gateway equipment takes the updated target routing information as new target routing information, and repeatedly executing the steps of calculating the weight value corresponding to each first gateway equipment according to the field value of the weight field in the target routing information and the field values of the weight fields in other received target routing information until the access request is sent to the private data center for processing. In this way, when the number of dedicated channels connected to the first gateway device is updated, the field value of the weight field of the first routing information can be updated based on the sum of the transmission rates of the updated dedicated channels, so that the weight value can be updated, and the traffic is redistributed to each first gateway device according to the updated weight value, so that the problem of information loss caused by dedicated change can be avoided.
The embodiment of the invention also provides another information processing method which is applied to the second gateway equipment, wherein the second gateway equipment is in communication connection with the plurality of first gateway equipment; each first gateway device is connected with a private data center of a user through a private line channel; as shown in fig. 3, the method comprises the steps of:
step S302, for each first gateway device, receiving target routing information from the current first gateway device; the target routing information is determined by the current first gateway device in the following manner: receiving first route information aiming at a target network segment and issued by a private data center; adding a weight field in the first routing information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the current first gateway equipment; determining target routing information corresponding to the current first gateway equipment based on the first routing information of the added weight field;
step S304, calculating the weight value corresponding to each first gateway device according to the field value of the weight field in the target routing information and the field value of the weight field in the received other target routing information.
Step S306, when the access traffic corresponding to the access request for the target network segment is received, distributing the corresponding traffic to each first gateway device according to each weight value, and sending the access request to the private data center for processing through each first gateway device.
According to the information processing method, the first gateway device can add the weight field in the first routing information, and because the field value of the weight field is related to the sum of the transmission rates of the dedicated line channels connected with the first gateway device, when the dedicated line channels are changed, the field value is changed, and further the weight value determined based on the field value is changed, the second gateway device distributes the flow to each first gateway device according to the weight value, so that the problem of information loss caused by dedicated line change can be avoided, and the mode does not need to carry out a large number of redundant deployment on the first gateway device or the dedicated line channels, so that the waste of the bandwidth of the first gateway device or the dedicated line can be reduced.
The embodiment of the invention also provides another information processing method, which is realized on the basis of the method of the embodiment; the method comprises the following steps:
step ten, receiving target route information from the current first gateway device for each first gateway device; the target routing information is determined by the current first gateway device in the following manner: receiving first route information aiming at a target network segment and issued by a private data center; adding a weight field in the first routing information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the current first gateway equipment; and determining target routing information corresponding to the current first gateway equipment based on the first routing information of the added weight field.
Step eleven, calculating the weight value corresponding to each first gateway device according to the field value of the weight field in the target routing information and the field value of the weight field in the received other target routing information.
And step twelve, generating a routing table corresponding to the target network segment according to the weight value corresponding to each first gateway device.
In actual implementation, after the weight value corresponding to each first gateway device is obtained through calculation, the weight value corresponding to each first gateway device can be displayed in a list form, namely, a routing table corresponding to the target network segment is generated, so that subsequent processing, inquiry and the like are facilitated; for example, the destination routing information published by DP-SW1 to the CORE switch, i.e. the second gateway device, is as follows:
Destination/Mask NextHop Weight(unit)
10.10.0.0/16 DP-SW1 20480(Mbyte);
the destination routing information that DP-SW2 issues to the CORE is as follows:
Destination/Mask NextHop Weight(unit)
10.10.0.0/16 DP-SW2 20480(Mbyte);
the two received target routing information may be integrated into an initial routing table, i.e. the two received target routing information of the CORE switch are integrated as follows:
Destination/Mask NextHop Weight(unit)
10.10.0.0/16 DP-SW1 20480(Mbyte)
DP-SW2 20480(Mbyte);
the CORE switch receives the route carrying the weight field, generates a weight route, specifically calculates the weight value according to the field value of the weight field in the initial route table, that is, 20480:20480=1:1, and generates a final route table according to the weight value, as follows:
Destination/Mask NextHop(Weights)
10.10.0.0/16DP-SW1(1)
DP-SW2(1);
Wherein the numbers in brackets represent the respective weight values for each DP-SW.
And in the non-ECMP equivalent route and the weight route, generating a weight next hop according to the weight value carried by each next hop. For example, when the dedicated line 2 of the DP-SW1 is disconnected, the weight generated by the CORE is as follows:
the two target routing information received by the CORE are integrated as follows:
Destination/Mask NextHop Weight(unit)
10.10.0.0/16 DP-SW1 10240(Mbyte)
DP-SW2 20480(Mbyte);
the weight value is calculated according to the field value of the weight field in the initial routing table, that is, 10240:20480=1:2, and the final routing table is generated according to the weight value, as follows:
Destination/Mask NextHop(Weights)
10.10.0.0/16DP-SW1(1)
DP-SW2(2);
at this time, when forwarding the traffic of the access IDC network segment 10.10.0.0/16, the CORE switch forwards the traffic to the two DP-SW respectively according to the weight of 1:2, thereby meeting the access requirement of the client 30G private line; at the moment, the monitoring and alarming platform receives the disconnection message of the client private line channel 1 so as to prompt a user to check and repair the fault.
And step thirteen, when an access request aiming at the target network segment is received, determining the access flow corresponding to the access request.
As shown in fig. 1, when the EPC gateway in the figure needs to access the target network segment published by IDC, a corresponding access request can be sent out, and after receiving the access request, the CORE switch can determine the access flow corresponding to the access request first; the EPC gateway is a default gateway device of the bare metal server, is responsible for routing distribution of all service traffic of the bare metal server, and is an outlet for providing services to the outside by the EPC.
And fourteen, selecting a routing table corresponding to the target network segment.
Fifteen, distributing corresponding traffic to each first gateway device according to the weight value corresponding to each first gateway device indicated by the routing table, and sending the access request to the private data center for processing through each first gateway device.
After determining the access flow corresponding to the access request, the routing table corresponding to the generated target network segment can be firstly hit, and the corresponding flow is distributed to each first gateway device according to the weight value in the routing table; for example, after the CORE switch hits the routing table corresponding to the route 10.10.0.0/16 issued by IDC, traffic distribution is performed according to the weight of the next hop, and if the weight values corresponding to DP-SW1 and DP-SW2 are 1 and 2, the traffic ratio of the traffic to DP-SW1 to DP-SW2 is 1:2.
According to the information processing method, the routing table corresponding to the target network segment is generated according to the weight value corresponding to each first gateway device. When an access request for a target network segment is received, determining access traffic corresponding to the access request. Selecting a routing table corresponding to the target network segment. And distributing corresponding traffic to each first gateway device according to the weight value corresponding to each first gateway device indicated by the routing table, and sending the access request to the private data center for processing through each first gateway device. In the mode, when an access request is received, traffic distribution can be directly carried out according to the weight value in the corresponding routing table, the processing process is simple and convenient, and the information processing efficiency can be improved.
If the prior art is adopted, in order to meet the bandwidth requirement of the client 30G, there are generally two schemes as follows:
scheme one, public cloud vendors add DP-SW device schemes.
On a POP private line access point, a public cloud manufacturer deploys multiple sets of DP-SW, as shown in a structural schematic diagram of another information processing system in fig. 4, and deploys 4 sets of DP-SW, which are DP-SW1, DP-SW2, DP-SW3 and DP-SW4 respectively; the DP-SW1 and the DP-SW2 belong to a POP1 private line access point; DP-SW3 and DP-SW4 belong to POP2 private line access points; the four special line channels of the client are respectively connected to the four DP-SW.
For the case that the four dedicated channels 1, 2, 3, 4 are all normal, the following routes are provided on the DP-SW1, DP-SW2, DP-SW3, DP-SW 4:
the first routing information received by DP-SW1 is as follows:
Destination/Mask NextHop Interface
10.10.0.0/16 private line channel 1 10G1/0/1;
the first routing information received by DP-SW2 is as follows:
Destination/Mask NextHop Interface
10.10.0.0/16 private line channel 2 10G1/0/1;
the first routing information received by DP-SW3 is as follows:
Destination/Mask NextHop Interface
10.10.0.0/16 private line channel 3 10G1/0/1;
the first routing information received by the DP-SW4 is as follows:
Destination/Mask NextHop Interface
10.10.0.0/16 private line channel 4 10G1/0/1;
four DP-SWs issue routes to the CORE switch respectively, and the CORE switch device generates the following ECMP routing table:
CORE routing is as follows:
Figure BDA0003987986950000191
at this time, when the CORE forwards the traffic of the access IDC network segment 10.10.0.0/16, the CORE forwards the traffic to four DP-SWs respectively according to the weight of 1:1:1:1, thereby meeting the access requirement of the client 30G private line.
For the case that one of the four dedicated channels is broken, for example, the dedicated channel 2 is broken, the following routes are provided on the DP-SW1, DP-SW2, DP-SW3, DP-SW 4:
the first routing information received by DP-SW1 is as follows:
Destination/Mask NextHop Interface
10.10.0.0/16 private line channel 1 10G1/0/1;
the first routing information received by DP-SW2 is as follows (no 10.10.0.0/16 route on DP-SW2 because dedicated channel 2 is broken):
Destination/Mask NextHop Interface
at this time, the DP-SW2 needs to issue a routing message to the CORE switch, and the originally issued 10.10.0.0/16next hop route is withdrawn.
The first routing information received by DP-SW3 is as follows:
Destination/Mask NextHop Interface
10.10.0.0/16 private line channel 3 10G1/0/1;
the first routing information received by the DP-SW4 is as follows:
Destination/Mask NextHop Interface
10.10.0.0/16 private line channel 4 10G1/0/1;
four DP-SWs issue routes to the CORE switch respectively, and the CORE switch device generates the following ECMP routing table:
CORE routing is as follows:
Figure BDA0003987986950000201
at this time, when the CORE forwards the traffic of the access IDC network segment 10.10.0.0/16, the CORE forwards the traffic to three DP-SWs respectively according to the weight of 1:1:1, thereby meeting the access requirement of the client 30G private line.
This deployment requires public cloud vendors and increases DP-SW deployment. And resource waste is caused.
And a second scheme is that the number of special line channels is increased for the clients.
As shown in fig. 5, another information processing system is shown, in which 6 dedicated lines are established for clients, each POP dedicated line access point is connected to three dedicated lines, and monitor-link functions are configured on DP-SW1 and DP-SW2 to monitor the disconnection of the dedicated line channel. If the number of upstream dedicated channels of a DP-SW is less than 2, the 10.10.0.0/16 routes to the CORE switch are withdrawn.
For the six dedicated channels 1-6, the following routes are provided on the DP-SW1 and DP-SW 2:
the first routing information received by DP-SW1 is as follows:
Figure BDA0003987986950000202
Figure BDA0003987986950000211
the first routing information received by DP-SW2 is as follows:
Figure BDA0003987986950000212
two DP-SW issue routes to CORE respectively, and at this time the CORE device generates the following ECMP routing table:
CORE routing is as follows:
Destination/Mask NextHop
10.10.0.0/16DP-SW1(1)
DP-SW2(1);
at this time, when the CORE forwards the traffic of the access IDC network segment 10.10.0.0/16, the CORE forwards the traffic to two DP-SWs according to the weight of 1:1, so as to meet the access requirement of the client 30G private line.
For the case that one of the six dedicated channels is broken, for example, the dedicated channel 2 is broken, the following routes are provided on the DP-SW1 and DP-SW 2:
The first routing information received by DP-SW1 is as follows:
Destination/Mask NextHop Interface
10.10.0.0/16 private line channel 1 10G1/0/1
Dedicated channel 3G 1/0/3;
because monitor-link is configured, the number of the remaining dedicated channels is 2, and the route to the CORE is unchanged.
The first routing information received by DP-SW2 is as follows:
Figure BDA0003987986950000213
Figure BDA0003987986950000221
two DP-SW issue routes to CORE respectively, and at this time the CORE device generates the following ECMP routing table:
CORE routing is as follows:
Destination/Mask NextHop
10.10.0.0/16DP-SW1(1)
DP-SW2(1);
at this time, when the CORE forwards the traffic of the access IDC network segment 10.10.0.0/16, the traffic is forwarded to two DP-SWs according to a weight of 1:1, wherein each DP-SW takes charge of the traffic of 15G at maximum, and the requirement of the customer 30G private line access is satisfied. It should be noted that only the case of cutting off one dedicated line is analyzed, and in order to ensure that packets are not lost when a plurality of dedicated lines are cut off, redundant dedicated line channels are required to be additionally accessed.
The terminology involved in the scheme is explained below, and the dedicated line gateway: gateway devices responsible for distributing private line access traffic. VPC: (Virtual Private Cloud) operating on public cloud, isolating a part of public cloud resources for a user, and providing the user with a set of resources used privately; creating a proprietary two-layer network for a user on a public cloud; public cloud vendors provide isolation functions based on VPC forces. VRF: (Virtual Routing Forwarding) virtual routing forwarding, a technique used in a computer network for implementing a proprietary network in a multi-tenant shared link environment for implementing public cloud multi-tenant isolation. BGP: a routing protocol among autonomous systems is widely used as a wide area network routing distribution protocol.
Compared with the existing special line high availability scheme, the special line high availability scheme based on the weight provided by the embodiment has the following advantages: dedicated line bandwidth waste caused by dedicated line bandwidth redundancy deployment can be avoided; meanwhile, private line switch resource waste caused by redundant deployment of cloud manufacturer private line access switches is avoided; in addition, the problem of dynamic load caused by the disconnection of a single special line access channel can be solved.
The embodiment of the invention provides an information processing device, as shown in fig. 6, the device is arranged on a plurality of first gateway equipment, a private data center of a user is connected with each first gateway equipment through a private line channel, and each first gateway equipment is also connected with a second gateway equipment; the device comprises: a first receiving module 60, configured to receive, for each first gateway device, first routing information for a target network segment issued by a private data center; an adding module 61, configured to add a weight field to the first routing information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the current first gateway equipment; and the sending module 62 is configured to determine, based on the first routing information with the added weight field, target routing information corresponding to the current first gateway device, and send the target routing information to the second gateway device, so that the second gateway device calculates a weight value corresponding to each first gateway device according to the field value of the weight field in the target routing information and the field value of the weight field in the received other target routing information, and when an access traffic corresponding to an access request for a target network segment is received, distribute the corresponding traffic to each first gateway device according to each weight value, so as to send the access request to the private data center for processing.
The information processing device is used for receiving first route information aiming at a target network segment, which is issued by a private data center, aiming at each first gateway device; adding a weight field in the first routing information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the current first gateway equipment; and determining target route information corresponding to the current first gateway equipment based on the first route information added with the weight field, and sending the target route information to the second gateway equipment, so that the second gateway equipment calculates the weight value corresponding to each first gateway equipment according to the field value of the weight field in the target route information and the field value of the weight field in other received target route information, and when the access traffic corresponding to the access request for the target network segment is received, distributing the corresponding traffic to each first gateway equipment according to each weight value to send the access request to the private data center for processing. In the device, the first gateway equipment can add a weight field in the first routing information, the field value of the weight field is related to the sum of transmission rates of the dedicated line channels connected with the first gateway equipment, when the dedicated line channels are changed, the field value is changed, and then the weight value determined based on the field value is changed, the second gateway equipment distributes the flow to each first gateway equipment according to the weight value, so that the problem of information loss caused by the change of the dedicated line channels can be avoided, and a large amount of redundant deployment is not needed to be carried out on the first gateway equipment or the dedicated line channels, so that the waste of the first gateway equipment or the dedicated line bandwidth is reduced.
Further, a plurality of dedicated channels are connected to the current first gateway device; the device also comprises a sum determination module of transmission rates, the sum of the transmission rates is determined by the sum determination module of the transmission rates, and the sum determination module of the transmission rates is used for: acquiring the bandwidth of each special line channel connected with the current first gateway equipment; determining the transmission rate corresponding to each dedicated line channel according to the bandwidth of each dedicated line channel; and adding the transmission rates corresponding to each special line channel to obtain the sum of the transmission rates.
Further, the first routing information includes a next-hop field, and a field value of the next-hop field is an identifier of the private line channel; the sending module 62 is further configured to: and updating the field value of the next hop field in the first routing information of the added weight field to the IP address of the current first gateway equipment to obtain the target routing information corresponding to the current first gateway equipment.
Further, the device is also used for: if the number of the special line channels connected with the first gateway equipment is updated, updating the field value of the weight field of the first routing information based on the sum of the transmission rates of the updated special line channels; determining updated target routing information corresponding to the current first gateway equipment based on the first routing information after updating the field value of the weight field; and sending the updated target routing information to the second gateway equipment, so that the second gateway equipment takes the updated target routing information as new target routing information, and repeatedly executing the steps of calculating the weight value corresponding to each first gateway equipment according to the field value of the weight field in the target routing information and the field values of the weight fields in other received target routing information until the access request is sent to the private data center for processing.
The information processing apparatus according to the embodiment of the present invention has the same implementation principle and technical effects as those of the embodiment of the information processing method, and for the sake of brevity, reference may be made to the corresponding contents of the embodiment of the information processing method.
The embodiment of the invention provides an information processing device, as shown in fig. 7, the device is arranged on a second gateway device, and the second gateway device is in communication connection with a plurality of first gateway devices; each first gateway device is connected with a private data center of a user through a private line channel; the device comprises: a second receiving module 70, configured to receive, for each first gateway device, target routing information from a current first gateway device; the target routing information is determined by the current first gateway device in the following manner: receiving first route information aiming at a target network segment and issued by a private data center; adding a weight field in the first routing information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the current first gateway equipment; determining target routing information corresponding to the current first gateway equipment based on the first routing information of the added weight field; a calculating module 71, configured to calculate a weight value corresponding to each first gateway device according to a field value of a weight field in the target routing information and a received field value of a weight field in other target routing information; the distribution module 72 is configured to, when receiving an access traffic corresponding to an access request for a target network segment, distribute, according to each weight value, the corresponding traffic to each first gateway device, and send, through each first gateway device, the access request to the private data center for processing.
According to the information processing device, the first gateway equipment can add the weight field in the first routing information, and because the field value of the weight field is related to the sum of the transmission rates of the dedicated line channels connected with the first gateway equipment, when the dedicated line channels are changed, the field value is changed, and further the weight value determined based on the field value is changed, the second gateway equipment distributes the flow to each first gateway equipment according to the weight value, so that the problem of information loss caused by dedicated line change can be avoided, and the mode does not need to carry out a large number of redundant deployment on the first gateway equipment or the dedicated line channels, so that the waste of the bandwidth of the first gateway equipment or the dedicated line can be reduced.
Further, the device is also used for: and generating a routing table corresponding to the target network segment according to the weight value corresponding to each first gateway device.
Further, the distribution module 72 is further configured to: when an access request aiming at a target network segment is received, determining an access flow corresponding to the access request; selecting a routing table corresponding to the target network segment; and distributing corresponding traffic to each first gateway device according to the weight value corresponding to each first gateway device indicated by the routing table.
The information processing apparatus according to the embodiment of the present invention has the same implementation principle and technical effects as those of the embodiment of the information processing method, and for the sake of brevity, reference may be made to the corresponding contents of the embodiment of the information processing method.
The embodiment of the present invention further provides an electronic device, referring to fig. 8, where the electronic device includes a processor 130 and a memory 131, where the memory 131 stores machine executable instructions that can be executed by the processor 130, and the processor 130 executes the machine executable instructions to implement the above information processing method.
Further, the electronic device shown in fig. 8 further includes a bus 132 and a communication interface 133, and the processor 130, the communication interface 133, and the memory 131 are connected through the bus 132.
The memory 131 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 133 (which may be wired or wireless), and may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 132 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 8, but not only one bus or type of bus.
The processor 130 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware or instructions in software in processor 130. The processor 130 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 131, and the processor 130 reads the information in the memory 131, and in combination with its hardware, performs the steps of the method of the foregoing embodiment.
The embodiment of the invention also provides a machine-readable storage medium, which stores machine-executable instructions that, when being called and executed by a processor, cause the processor to implement the information processing method, and the specific implementation can be referred to the method embodiment and will not be described herein.
The information processing method, the information processing apparatus and the computer program product of the electronic device provided in the embodiments of the present invention include a computer readable storage medium storing program codes, and instructions included in the program codes may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be described herein.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (11)

1. The information processing method is characterized in that the method is applied to a plurality of first gateway devices, a private data center of a user is connected with each first gateway device through a private line channel, and each first gateway device is also connected with a second gateway device; the method comprises the following steps:
receiving first routing information aiming at a target network segment and issued by the private data center aiming at each first gateway device;
adding a weight field in the first routing information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the current first gateway equipment;
And determining target routing information corresponding to the current first gateway equipment based on the first routing information added with the weight field, and sending the target routing information to the second gateway equipment, so that the second gateway equipment calculates the weight value corresponding to each first gateway equipment according to the field value of the weight field in the target routing information and the field value of the weight field in other received target routing information, and when the access traffic corresponding to the access request of the target network segment is received, distributing the corresponding traffic to each first gateway equipment according to each weight value to send the access request to the private data center for processing.
2. The method of claim 1, wherein the current first gateway device has a plurality of dedicated channels connected thereto; the sum of the transmission rates is determined by:
acquiring the bandwidth of each dedicated channel connected with the current first gateway equipment;
determining the transmission rate corresponding to each dedicated line channel according to the bandwidth of each dedicated line channel;
and adding the transmission rates corresponding to each special line channel to obtain the sum of the transmission rates.
3. The method according to claim 1, wherein the first routing information includes a next-hop field, and a field value of the next-hop field is an identifier of a dedicated line channel; the step of determining the target routing information corresponding to the current first gateway device based on the first routing information added with the weight field comprises the following steps:
and updating the field value of the next hop field in the first routing information added with the weight field into the IP address of the current first gateway equipment to obtain the target routing information corresponding to the current first gateway equipment.
4. The method according to claim 1, wherein the method further comprises:
if the number of the dedicated channels connected with the current first gateway device is updated, updating the field value of the weight field of the first routing information based on the sum of the transmission rates of the updated dedicated channels;
determining updated target routing information corresponding to the current first gateway equipment based on the first routing information after updating the field value of the weight field;
and sending updated target routing information to the second gateway equipment, so that the second gateway equipment takes the updated target routing information as new target routing information, and repeatedly executing the steps of calculating the weight value corresponding to each first gateway equipment according to the field value of the weight field in the target routing information and the field values of the weight fields in other received target routing information until the access request is sent to the private data center for processing.
5. An information processing method, characterized in that the method is applied to a second gateway device, which is communicatively connected to a plurality of first gateway devices; each first gateway device is connected with a private data center of a user through a private line channel; the method comprises the following steps:
receiving target routing information from the current first gateway device for each first gateway device; wherein the target routing information is determined by the current first gateway device by: receiving first routing information aiming at a target network segment and issued by the private data center; adding a weight field in the first routing information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the current first gateway equipment; determining target routing information corresponding to the current first gateway equipment based on the first routing information added with the weight field;
calculating a weight value corresponding to each first gateway device according to the field value of the weight field in the target routing information and the field values of the weight fields in other received target routing information;
When the access traffic corresponding to the access request of the target network segment is received, distributing the corresponding traffic to each first gateway device according to each weight value, and sending the access request to the private data center for processing through each first gateway device.
6. The method of claim 5, wherein after the step of calculating the weight value for each of the first gateway devices, the method further comprises:
and generating a routing table corresponding to the target network segment according to the weight value corresponding to each first gateway device.
7. The method of claim 6, wherein when an access traffic corresponding to an access request for the target network segment is received, the step of distributing the corresponding traffic to each of the first gateway devices according to each of the weight values comprises:
when an access request aiming at the target network segment is received, determining access flow corresponding to the access request;
selecting a routing table corresponding to the target network segment;
and distributing corresponding traffic to each first gateway device according to the weight value corresponding to each first gateway device indicated by the routing table.
8. An information processing device is characterized in that the device is arranged on a plurality of first gateway devices, a private data center of a user is connected with each first gateway device through a private line channel, and each first gateway device is also connected with a second gateway device; the device comprises:
the first receiving module is used for receiving first route information aiming at a target network segment and issued by the private data center aiming at each first gateway device;
an adding module, configured to add a weight field to the first routing information; the field value of the weight field is determined according to the sum of the transmission rates of the dedicated channels connected with the current first gateway equipment;
and the sending module is used for determining target routing information corresponding to the current first gateway equipment based on the first routing information added with the weight field, sending the target routing information to the second gateway equipment, so that the second gateway equipment calculates the weight value corresponding to each first gateway equipment 5 according to the field value of the weight field in the target routing information and the field value of the weight field in other received target routing information, and when the access traffic corresponding to the access request of the target network segment is received, distributing the corresponding traffic to each first gateway equipment according to each weight value, so as to send the access request to the private data center for processing.
9. An information processing apparatus, characterized in that the apparatus is provided in a second gateway device,
the second gateway device is in communication connection with the plurality of first gateway devices; each of the first gateway devices
The private data center of the user is connected through a private line channel; the device comprises:
the second receiving module is used for receiving the target route information from the current first gateway equipment aiming at each first gateway equipment; wherein the target routing information is determined by the current first gateway device by: receiving first routing information aiming at a target network segment and issued by the private data center; adding a weight field in the first routing information; wherein the weight field
The field value of the (b) is determined according to the sum of the transmission rates of the dedicated channels connected with the current first gateway equipment; determining target routing information corresponding to the current first gateway equipment based on the first routing information added with the weight field;
a calculation module, configured to calculate each first network according to a field value of a weight field in the target routing information and a received field value of a weight field in other target routing information
The weight value corresponding to the closing equipment;
and the distribution module is used for distributing the corresponding traffic to each first gateway device according to each weight value when receiving the access traffic corresponding to the access request of the target network segment, and sending the access request to the private data center for processing through each first gateway device.
10. An electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the information processing method of any of claims 1-7.
11. A machine-readable storage medium storing machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the information processing method of any one of claims 1-7.
CN202211571768.5A 2022-12-08 2022-12-08 Information processing method and device and electronic equipment Pending CN116016309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211571768.5A CN116016309A (en) 2022-12-08 2022-12-08 Information processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211571768.5A CN116016309A (en) 2022-12-08 2022-12-08 Information processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116016309A true CN116016309A (en) 2023-04-25

Family

ID=86018544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211571768.5A Pending CN116016309A (en) 2022-12-08 2022-12-08 Information processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116016309A (en)

Similar Documents

Publication Publication Date Title
EP3806405B1 (en) Method and network node for sending network performance parameter and calculating network performance
CN108809847B (en) Method, device and network system for realizing load balance
US8817798B2 (en) Constraining topology size and recursively calculating routes in large networks
US8170022B2 (en) Method and apparatus for actively discovering internet protocol equal cost multiple paths and associate metrics
CN106209419B (en) Method for selecting network function to forward data and service function repeater
US11336577B2 (en) Method and apparatus for implementing load sharing
JP2013510459A (en) Separate path computation algorithm
CN1973486A (en) Avoiding micro-loop upon failure of fast reroute protected links
CN114070774A (en) Data forwarding method and system
EP3534571A1 (en) Service packet transmission method, and node apparatus
JP7389091B2 (en) METHODS, APPARATUS AND SYSTEM FOR CONTROLLING TRAFFIC FORWARDING
CN112187633A (en) Link fault convergence method and device, electronic equipment and storage medium
CN106470165B (en) Load sharing method, system and related equipment
CN111092824B (en) Traffic management system, traffic management method, electronic terminal, and storage medium
CN110719219B (en) Port state configuration method and network equipment
CN112087382B (en) Service routing method and device
CN112054969B (en) Method and device for realizing message mirror image
WO2020181733A1 (en) Vpc-based multi-data center intercommunication method and related device
CN116016309A (en) Information processing method and device and electronic equipment
CN114531396B (en) Fault back switching method and device in Ethernet virtual private network
US11012347B2 (en) Communication apparatus, communication control method, and communication system for multilink communication simultaneously using a plurality of communication paths
CN113098788A (en) Method and device for releasing route
CN113595915A (en) Method for forwarding message and related equipment
US11876680B2 (en) Method and apparatus for determining link for forwarding service flow
CN115442287B (en) Weight-based private line gateway method and device

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