CN113300921A - Information transmission method and equipment - Google Patents

Information transmission method and equipment Download PDF

Info

Publication number
CN113300921A
CN113300921A CN202010109111.1A CN202010109111A CN113300921A CN 113300921 A CN113300921 A CN 113300921A CN 202010109111 A CN202010109111 A CN 202010109111A CN 113300921 A CN113300921 A CN 113300921A
Authority
CN
China
Prior art keywords
network device
routing weight
routing
weight
network
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
CN202010109111.1A
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.)
Huawei 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 CN202010109111.1A priority Critical patent/CN113300921A/en
Publication of CN113300921A publication Critical patent/CN113300921A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2869Operational details of access network equipments
    • H04L12/287Remote access server, e.g. BRAS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Landscapes

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

Abstract

The embodiment of the application discloses an information transmission method which can be applied to a backup network. When the first network device fails, the second network device may switch the running state of the second network device from the standby network device to the main network device, and update the routing weight of the second network device, so that the second network device communicates with the routing device, thereby avoiding the bypassing of information transmission and improving the information processing speed.

Description

Information transmission method and equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an information transmission method and apparatus.
Background
When the Broadband is accessed, a Broadband Remote Access Server (BRAS) can be deployed into a main standby mode, and both the main BRAS and the standby BRAS can be accessed to a user so as to guarantee the internet experience of the user. The working principle of the primary and standby modes of the BRAS is as follows: both the primary BRAS and the standby BRAS distribute the routing information required to be led to the outside in the routing equipment on the network side. And the primary BRAS and the standby BRAS carry out mutual information backup. When the primary BRAS breaks down, the backup BRAS can be promoted to the primary, and functions of accessing users, forwarding traffic and the like are borne. When the fault of the main BRAS is recovered, the main BRAS can be switched back to the state before the fault, namely, the functions of accessing users, forwarding traffic and the like are carried out by recovering the main BRAS; or the backup BRAS can not switch back, namely, the backup BRAS continues to take on the functions of accessing users, forwarding traffic and the like. When a message in a network is transmitted from a routing device on the network side to a BRAS device, routing needs to be performed. The current route deployment mode enables the messages in the network to preferentially reach the main BRAS, if the main BRAS fails, the routing equipment still sends a request message to the main BRAS, at the moment, the main BRAS which fails is in a backup state, the request message needs to be backed up to the standby BRAS, and then the standby BRAS processes the request message. The transmission mode has message bypassing, and the processing speed is reduced.
Disclosure of Invention
The embodiment of the application provides an information transmission method, which can avoid the bypassing of information processing and improve the processing speed of information.
In a first aspect, an embodiment of the present application provides an information transmission method, which may be performed by a second network device. The second network device may be a standby network device. The second network device obtains routing weight information of the first network device, wherein the routing weight information of the first network device comprises a first routing weight when the running state of the first network device is a main network device, or a fourth routing weight after the running state of the first network device is switched from the main network device to a standby network device. If the operation state of the first network device is switched from the main network device to the standby network device, the second network device switches the operation state of the second network device from the standby network device to the main network device, and updates the routing weight information of the second network device from the second routing weight to the third routing weight. The second routing weight is routing weight information of the second network device when the operation state of the second network device is a standby network device, the third routing weight is routing weight information of the second network device after the operation state of the second network device is switched from the standby network device to a main network device, and the third routing weight is greater than or equal to the first routing weight, or the third routing weight is greater than the fourth routing weight. And the second network equipment sends the third routing weight of the second network equipment to the routing equipment and communicates with the routing equipment according to the third routing weight.
It can be seen that, when the operation state of the first network device is switched from the main network device to the standby network device, the second network device may switch the operation state from the standby network device to the main network device, and update the routing weight information of the second network device to the third routing weight. The third routing weight is greater than or equal to the first routing weight, and the third routing weight is greater than the fourth routing weight, that is, the operation state of the second network device is the main network device, and the operation state of the first network device is the standby network device. The second network equipment sends the third routing weight to the routing equipment, so that the routing equipment updates the running states of the first network equipment and the second network equipment in real time, and information is prevented from being transmitted to the first network equipment for processing when the first network equipment fails, thereby avoiding the bypassing of information processing and improving the information processing speed.
In a possible design, the obtaining, by the second network device, the routing weight information of the first network device may be receiving a fourth routing weight from the first network device, where the operation state of the first network device is switched from the main network device to the standby network device. It can be seen that, when the operation state of the first network device is switched from the primary network device to the standby network device, if the backup channel between the first network device and the second network device is in the connection state, the first network device may backup the updated fourth routing weight to the second network device.
In one possible design, the second network device obtaining the routing weight information of the first network device may be receiving a fourth routing weight from the routing device. It can be seen that, when the operation state of the first network device is switched from the primary network device to the standby network device, if the backup channel between the first network device and the second network device is in the disconnected state, but the route between the first network device and the routing device is in the connected state, the first network device may send the updated fourth routing weight to the routing device, and the second network device may obtain the fourth routing weight from the routing device.
In one possible design, the second network device updates the routing weight information of the second network device to a third routing weight according to the fourth routing weight, the third routing weight being greater than the fourth routing weight. As can be seen, if the second network device can obtain the updated fourth routing weight of the first network device, when the second network device updates the routing weight information, it can be determined that the updated third routing weight of the second network device is greater than the fourth routing weight, that is, it is determined that the operation state of the second network device is the primary network device, and the operation state of the first network device is the standby network device.
In one possible design, the second network device obtaining the routing weight information of the first network device may obtain a first routing weight when the operation state of the first network device stored locally is the main network device. It can be seen that, when the operating state of the first network device is switched from the main network device to the standby network device, if the backup channel between the first network device and the second network device is in the disconnected state and the route between the first network device and the route device is in the disconnected state, the second network device can only obtain the first route weight of the first network device backed up in the history.
In one possible design, the second network device updates the routing weight information of the second network device to a third routing weight according to the first routing weight, where the third routing weight is greater than or equal to the first routing weight. It can be seen that, if the second network device cannot obtain the routing weight information after the operation state of the first network device is switched to the standby network device, but the routing weight information after the operation state of the first network device is switched to the standby network device is definitely smaller than the first routing weight, when the second network device updates the routing weight information, it may be determined that the updated third routing weight of the second network device is larger than the first routing weight, that is, the operation state of the second network device is determined to be the main network device, and the operation state of the first network device is the standby network device.
In a possible design, if the second network device receives the operation state switching information from the first network device, the second network device switches the operation state of the second network device from the standby network device to the master network device. It can be seen that, when the operation state of the first network device is switched from the main network device to the standby network device, the second network device may be directly notified, so that the operation state of the second network device is switched from the standby network device to the main network device.
In a possible design, if the second network device does not receive the connection confirmation information from the first network device within a preset time period, the second network device switches the operation state of the second network device from the standby network device to the master network device. As can be seen, when the protocol mechanism between the first network device and the second network device causes the operating state of the first network device to be switched from the main network device to the standby network device, the second network device may perceive the switching of the operating state of the first network device, and switch the operating state of the second network device from the standby network device to the main network device.
In a possible design, if failure recovery is detected, the second network device switches the operation state of the second network device from the master network device to the standby network device; the second network equipment updates the routing weight information of the second network equipment into the second routing weight; and the second network equipment sends the second routing weight to the first network equipment. It can be seen that, when the failure is recovered, the operation state of the second network device is switched from the main network device to the standby network device, the routing weight information of the second network device is also updated to the original second routing weight, and the second network device further sends the second routing weight to the routing device, so that the routing device updates the routing information.
In a possible design, after the failure is recovered, the second network device sends the second routing weight to the first network device, so that the first network device determines that the operation state of the second network device is switched from the master network device to the standby network device.
In one possible design, after the failure is recovered, the second network device receives the first routing weight from the first network device, where the first routing weight is updated to the first routing weight by the fourth routing weight when the operation state of the first network device is switched from a standby network device to a main network device.
In one possible design, after the second network device updates the routing weight information of the second network device from the second routing weight to a third routing weight, the second network device sends the third routing weight to the first network device, so that the first network device backs up the updated third routing weight of the second network device.
In one possible design, the first routing weight is greater than the fourth routing weight, and the third routing weight is greater than the second routing weight, that is, the routing weight information of the primary network device is greater than the routing weight information of the standby network device.
In a second aspect, an embodiment of the present application provides an information transmission method, which may be performed by a first network device. Wherein the first network device may be a primary network device. The first network device switches the running state of the first network device from a main network device to a standby network device, and updates the routing weight information of the first network device from the first routing weight to a fourth routing weight. The first network device sends the fourth routing weight to the routing device or the second network device, so that when the operation state of the second network device is switched from the standby network device to the main network device, the second network device updates the second routing weight of the second network device to the third routing weight according to the fourth routing weight. It can be seen that, when the first network device fails, the operation state of the first network device is switched from primary to standby, and the routing weight information of the first network device updates the first routing weight to the fourth routing weight.
In one possible design, the first network device receives a second routing weight sent by the second network device; the second routing weight is routing weight information of the second network device when the operation state of the second network device is the standby network device. It can be seen that, before the operation state of the first network device is switched from the main network device to the standby network device, the first network device may receive the second routing weight from the second network device for information backup.
In a possible design, if the connection between the first network device and the second network device is disconnected, the first network device updates the routing weight information of the first network device to the fourth routing weight according to the second routing weight, where the fourth routing weight is less than or equal to the second routing weight.
In one possible design, the first network device receives a third routing weight from the second network device, where the third routing weight is routing weight information of the second network device when the operation state of the second network device is a main network device; and the first network equipment updates the routing weight information of the first network equipment into the fourth routing weight according to the third routing weight, wherein the fourth routing weight is smaller than the third routing weight.
In a possible design, if failure recovery is detected, the first network device switches the operation state of the first network device from a standby network device to a main network device; and the first network equipment updates the routing weight information of the first network equipment from the third routing weight to the first routing weight.
In a third aspect, an embodiment of the present application provides an information transmission method, which may be executed by a routing device. The routing device receives a third routing weight from a second network device, wherein the third routing weight is routing weight information of the second network device after the running state of the second network device is switched to a main network device by a standby network device; and the routing equipment communicates with the second network equipment according to the three-route weight information of the second network equipment. Therefore, the routing device determines that the second network device is the main network device by receiving the updated third routing weight from the second network device, so that the information is directly sent to the second network device, and the information processing is prevented from being bypassed.
In one possible design, the routing device receives a fourth routing weight from the first network device; the fourth routing weight is routing weight information of the first network device after the operation state of the first network device is switched from the main network device to the standby network device. As can be seen, by receiving the updated fourth routing weight from the first network device, the network device may determine that the operation state of the first network device is switched from the primary network device to the standby network device.
In one possible design, the routing device sends the fourth routing weight to the second network device, so that the second network device updates the routing weight information of the second network device to the third routing weight according to the fourth routing weight. Wherein the third routing weight is greater than the fourth routing weight.
In a fourth aspect, an embodiment of the present application provides a network device, which includes a processor and a transceiver;
the processor is configured to acquire routing weight information of a first network device, where the routing weight information of the first network device includes a first routing weight when an operation state of the first network device is a main network device, or a fourth routing weight after the operation state of the first network device is switched from the main network device to a standby network device;
the processor is further configured to switch the operation state of the second network device from the standby network device to the master network device if the operation state of the first network device is switched from the master network device to the standby network device;
the processor is further configured to update the routing weight information of the second network device from a second routing weight to a third routing weight, where the second routing weight is the routing weight information of the second network device when the operation state of the second network device is a standby network device, the third routing weight is the routing weight information of the second network device after the operation state of the second network device is switched from the standby network device to a main network device, and the third routing weight is greater than or equal to the first routing weight, or the third routing weight is greater than the fourth routing weight;
the transceiver is configured to send the third routing weight to a routing device;
the transceiver is further configured to communicate with the routing device according to the third routing weight.
In one possible design, the processor is configured to obtain routing weight information of the first network device, and specifically includes:
the processor is configured to receive, via a transceiver, the fourth routing weight from the first network device.
In one possible design, the processor is configured to obtain routing weight information of the first network device, and specifically includes:
the processor is configured to receive, via the transceiver, the fourth routing weight from the routing device.
In one possible design, the processor is configured to update the routing weight information of the second network device from the second routing weight to a third routing weight, and specifically includes:
the processor is configured to update the routing weight information of the second network device to a third routing weight according to the fourth routing weight, where the third routing weight is greater than the fourth routing weight.
In one possible design, the processor is configured to obtain routing weight information of the first network device, and specifically includes:
the processor is configured to obtain a first routing weight when the locally stored operation state of the first network device is a main network device.
In one possible design, the processor is configured to update the routing weight information of the second network device from the second routing weight to a third routing weight, and specifically includes:
the processor is configured to update the routing weight information of the second network device to a third routing weight according to the first routing weight, where the third routing weight is greater than or equal to the first routing weight.
In a possible design, if the operation state of the first network device is switched from the main network device to the standby network device, the processor is configured to switch the operation state of the second network device from the standby network device to the main network device, and specifically includes:
the processor is configured to switch the operation state of the second network device from the standby network device to the master network device if the second network device receives the operation state switching information from the first network device.
In a possible design, if the operation state of the first network device is switched from the main network device to the standby network device, the processor is configured to switch the operation state of the second network device from the standby network device to the main network device, and specifically includes:
and if the second network device does not receive the connection confirmation information from the first network device within a preset time period, the processor is used for switching the running state of the second network device from the standby network device to the main network device.
In one possible design, the processor is further to:
if the fault recovery is detected, switching the running state of the second network equipment from the main network equipment to the standby network equipment;
updating the routing weight information of the second network device from the third routing weight to the second routing weight;
the transceiver is further configured to:
and sending the second routing weight to the routing equipment.
In one possible design, the transceiver is further to:
and sending the second routing weight to the first network equipment so that the first network equipment determines that the operation state of the second network equipment is switched from the main network equipment to the standby network equipment.
In one possible design, the transceiver is further to:
receiving the first routing weight from the first network device, where the first routing weight is updated to the first routing weight by the fourth routing weight when the operation state of the first network device is switched from a standby network device to a main network device.
In one possible design, the transceiver is further to:
sending the third routing weight to the first network device.
In one possible design, the first routing weight is greater than the fourth routing weight, and the third routing weight is greater than the second routing weight.
In a fifth aspect, an embodiment of the present application provides a network device, including a processor and a transceiver;
the processor is used for switching the running state of the first network equipment from a main network equipment to a standby network equipment;
the processor is further configured to update the routing weight information of the first network device from the first routing weight to a fourth routing weight;
the transceiver is configured to send the fourth routing weight to the routing device or the second network device, so that when the operation state of the second network device is switched from the standby network device to the primary network device, the second network device updates the second routing weight of the second network device to the third routing weight according to the fourth routing weight.
In one possible design, the transceiver is further to:
receiving a second routing weight sent by the second network equipment; the second routing weight is routing weight information of the second network device when the operation state of the second network device is the standby network device.
In one possible design, the processor is configured to update the routing weight information of the first network device from the first routing weight to a fourth routing weight, and specifically includes:
if the connection between the first network device and the second network device is disconnected, the processor is configured to update the routing weight information of the first network device to the fourth routing weight according to the second routing weight, where the fourth routing weight is less than or equal to the second routing weight.
In one possible design, the transceiver is further to:
receiving a third routing weight from the second network device, where the third routing weight is routing weight information of the second network device when the operating state of the second network device is a master network device;
the processor is configured to update the routing weight information of the first network device from the first routing weight to a fourth routing weight, and specifically includes:
the processor is configured to update the routing weight information of the first network device to the fourth routing weight according to the third routing weight, where the fourth routing weight is smaller than the third routing weight.
In one possible design, the processor is further to:
if the fault recovery is detected, switching the running state of the first network equipment from the standby network equipment to the main network equipment;
updating the routing weight information of the first network device from the fourth routing weight to the first routing weight.
In a sixth aspect, an embodiment of the present application provides a routing device, including a transceiver and a processor;
the transceiver is configured to receive a third routing weight from a second network device, where the third routing weight is routing weight information of the second network device after the operation state of the second network device is switched from a standby network device to a main network device;
the processor is configured to communicate with the second network device according to the third routing weight.
In one possible design, the transceiver is further to:
receiving a fourth routing weight from the first network device; the fourth routing weight is routing weight information of the first network device after the operation state of the first network device is switched from the main network device to the standby network device.
In one possible design, the transceiver is further to:
sending the fourth routing weight to the second network device, so that the second network device updates the routing weight information of the second network device to the third routing weight according to the fourth routing weight; the third routing weight is greater than the fourth routing weight.
In a seventh aspect, an embodiment of the present application provides a network device, where the network device has a function of implementing the information transmission method provided in the first aspect. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In an eighth aspect, an embodiment of the present application provides a network device, where the network device has a function of implementing the information transmission method provided in the second aspect. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In a ninth aspect, an embodiment of the present application provides a routing device, where the routing device has a function of implementing the information transmission method provided in the third aspect. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In a tenth aspect, an embodiment of the present application provides a communication system, where the communication system includes the network device provided in the fourth aspect or the seventh aspect, the network device provided in the fifth aspect or the eighth aspect, and the routing device provided in the sixth aspect or the ninth aspect.
In an eleventh aspect, embodiments of the present application provide a computer-readable storage medium, which includes a program or instructions, which when executed on a computer, causes the computer to perform the method of the first aspect or any of the possible implementations of the first aspect.
In a twelfth aspect, embodiments of the present application provide a computer-readable storage medium, which includes a program or instructions, which when executed on a computer, causes the computer to execute the method of the second aspect or any possible implementation manner of the second aspect.
In a thirteenth aspect, the present application provides a computer-readable storage medium, which includes a program or instructions, when the program or instructions are run on a computer, the program or instructions causing the computer to execute the method in the third aspect or any one of the possible implementation manners of the third aspect.
In a fourteenth aspect, an embodiment of the present application provides a chip or a chip system, where the chip or the chip system includes at least one processor and an interface, the interface and the at least one processor are interconnected by a line, and the at least one processor is configured to execute a computer program or instructions to perform the method described in any one of the first aspect or any one of the possible implementation manners of the first aspect.
In a fifteenth aspect, an embodiment of the present application provides a chip or a chip system, where the chip or the chip system includes at least one processor and an interface, where the interface and the at least one processor are interconnected by a line, and the at least one processor is configured to execute a computer program or instructions to perform the method described in any one of the second aspect or any one of the possible implementation manners of the second aspect.
In a sixteenth aspect, an embodiment of the present application provides a chip or a chip system, where the chip or the chip system includes at least one processor and an interface, where the interface and the at least one processor are interconnected by a line, and the at least one processor is configured to execute a computer program or instructions to perform the method described in any one of the third aspect or any one of the possible implementations of the third aspect.
The interface in the chip may be an input/output interface, a pin, a circuit, or the like.
The system-on-chip in the above aspect may be a system-on-chip (SOC), a baseband chip, and the like, where the baseband chip may include a processor, a channel encoder, a digital signal processor, a modem, an interface module, and the like.
In one possible implementation, the chip or chip system described above in this application further comprises at least one memory having instructions stored therein. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or may be a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).
Drawings
In order to more clearly illustrate the technical solution in the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly described below.
Fig. 1 is a schematic diagram of a backup networking according to an embodiment of the present application;
fig. 2 is a schematic diagram of a processing flow of network packets in a backup networking;
fig. 3 is a schematic flowchart of an information transmission method according to an embodiment of the present application;
fig. 4a is a schematic diagram of a user-side fault according to an embodiment of the present application;
fig. 4b is a schematic diagram of a network-side fault according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a fault scenario in which an information transmission method provided in the embodiment of the present application is applied to a backup networking;
fig. 6 is a schematic flowchart of another fault scenario in which an information transmission method provided in the embodiment of the present application is applied to a backup networking;
fig. 7 is a schematic structural diagram of a network device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a network device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a network device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a network device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a routing device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a routing device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Before the description of the embodiments of the present application, the related concepts are first explained.
A network device that implements broadband access, for example, a Broadband Remote Access Server (BRAS), may be deployed in a master/standby mode, and both the master network device and the standby network device may access a user, so as to ensure the user's internet experience. Fig. 1 is a schematic diagram of a backup networking according to an embodiment of the present application. Fig. 1 shows a dual-computer backup situation (i.e., one main network device and one standby network device perform backup), in practice, there may be multiple backup devices, so as to form a 1+ N (i.e., one main network device and multiple standby network devices perform backup) multi-computer backup situation. In the backup networking shown in fig. 1, one of the backup networking devices is a primary network device 121, and the other backup networking device is a backup network device 122. The master network device 121 and the standby network device 122 may communicate with an external third party server 140 through the routing device 110. The main network device 121 may be connected to the access device 132, and configured to provide support for services of the access device 132, forward service traffic, and send backup information to the standby network device 122. Standby network device 122 may be connected to access device 131 as well as access device 132. Besides receiving the backup information of the main network device 121, after the main network device 121 fails, the standby network device 122 may convert into the main network device, and continue to forward the service traffic, so that the service is not interrupted. Optionally, when the failure of the main network device 121 is recovered, the main network device may switch back to the state before the failure, that is, recover to the main network device to accept functions of an access user (such as the user device 3 and the user device 4), forwarding traffic, and the like; or, the network device 122 may not switch back, that is, continue to assume the functions of accessing the user and forwarding the traffic.
For example, as shown in fig. 2, fig. 2 is a schematic diagram illustrating a processing flow of network packets in a backup networking. In the example of fig. 2, the network packet may come from a third party server (e.g., radius server). When deploying authentication (COA) operation, it is necessary to enable an authorization packet of the radius server to reach the primary BRAS. The specific processing flow may include the following steps:
radius server sends the message of COA request to the main network equipment through the routing equipment;
if a link between the main network device and an access device (such as a switch) at a user side fails, the operation state of the main network device is switched to a backup state, and a request message is backed up to the backup network device;
the standby network equipment processes the COARequest;
after the standby network device finishes processing, the standby network device sends an Acknowledgement (ACK) message to the radius server through the routing device;
and the standby network equipment backs up the ACK message to the main network equipment.
As can be seen, in the above processing flow of the network packet, since the routing device is currently deployed in the static routing manner, when receiving the network packet, the routing device preferentially sends the network packet to the main network device. When the main network device fails, the routing device preferentially sends the network message to the main network device, the main network device cannot process the message, and the message needs to be backed up to the standby network device for processing, so that the message bypasses, and the message processing speed is reduced.
In order to solve the problem of message detour, embodiments of the present application provide an information transmission method, which may be applied to a backup network. The information transmission method can avoid the bypassing of information processing and improve the processing speed of information.
The following description will be made in conjunction with specific embodiments.
An embodiment of the present application provides an information transmission method, please refer to fig. 3. The information transmission method may be performed by a second network device, and may include the steps of:
s301, the second network device obtains the routing weight information of the first network device.
In the active/standby network, the second network device may obtain the routing weight information from the first network device. The routing weight information of the first network device includes a first routing weight when the operation state of the first network device is the main network device, or a fourth routing weight after the operation state of the first network device is switched from the main network device to the standby network device. For example, the second network device may receive the first routing weight when the operation state of the first network device is the main network device, so as to backup the routing weight information of the main network device. It should be noted that, when the first network device fails, the connection between the first network device and the second network device (e.g., a backup channel between the main device and the standby device) may be disconnected or may still be connected. Then, when the first network device fails, if the first network device and the second network device are connected, the second network device may receive a fourth routing weight after the operation state of the first network device is switched from the primary network device to the standby network device. If the connection between the first network device and the second network device is disconnected, the second network device may obtain the first routing weight when the backup operation state of the first network device is the main network device.
S302, if the operation state of the first network device is switched from the main network device to the standby network device, the second network device switches the operation state of the second network device from the standby network device to the main network device.
In the active/standby network, when the first network device fails, the operating state of the first network device is switched from the main network device to the standby network device. The condition that the first network device fails may include, but is not limited to, a link failure between the first network device and an access device on the user side, a link failure between the first network device and a routing device, and the like. When the operation state of the first network device is switched from the main network device to the standby network device, the second network device detects that the operation state of the first network device is changed. There may be a plurality of methods for the second network device to detect that the operation state of the first network device is switched from the main network device to the standby network device. For example, if the first network device and the second network device are connected, the second network device may receive operation state switching information from the first network device, where the operation state switching information is used to indicate that the operation state of the first network device is switched from the main network device to the standby network device. According to the operation state switching information, the second network device may switch the operation state of the second network device from the standby network device to the main network device. For another example, if the connection between the first network device and the second network device is disconnected, and the second network device does not receive the connection confirmation information from the first network device within a preset time period, the second network device may determine that the first network device fails, and the second network device switches the operation state of the second network device from the standby network device to the master network device. Therefore, in the backup network, when the main network device fails, the backup network device can switch the operation state in time to execute the function of the main network device.
S303, the second network device updates the routing weight information of the second network device from the second routing weight to a third routing weight.
And when the running state of the second network equipment is switched to the main network equipment from the standby network equipment, the routing weight information of the second network equipment is updated to third routing weight from the second routing weight. The second routing weight is routing weight information of the second network device when the operation state of the second network device is the standby network device, and the third routing weight is routing weight information of the second network device after the operation state of the second network device is switched from the standby network device to the main network device. It can be understood that, after the first network device fails, the second network device is in the master network device operating state, and the first network device is in the standby network device operating state. Then the third routing weight of the second network device is greater than the fourth routing weight of the first network device or the third routing weight of the second network device is greater than or equal to the first routing weight.
For example, after the first network device fails, if the first network device and the second network device are connected, the second network device may receive the fourth routing weight when the operation state of the first network device is the standby network device. According to the fourth routing weight, the second network device may determine that the third routing weight is greater than the fourth routing weight, that is, the second network device is a master network device, the first network device is a standby network device, and the routing weight of the master network device is greater than the routing weight of the standby network device. The routing weight may be represented by a numerical value, for example, the third routing weight is 0.6, and the fourth routing weight is 0.3. The routing weights may also be represented by a COST (COST), for example, the third routing weight is COST a and the fourth routing weight is COST B, where COST a is greater than COST B. It should be noted that the routing weight may also be represented in other forms, and this embodiment is not limited thereto.
Optionally, after the first network device fails, if the connection between the first network device and the second network device is disconnected, the second network device may obtain the first routing weight when the running state of the backed-up first network device is the main network device. In accordance with the first routing weight, the second network device may determine that a third routing weight is greater than or equal to the first routing weight. It should be noted that, when the operation state of the first network device is switched from the main network device to the standby network device, the routing weight information of the first network device is updated from the first routing weight to a fourth routing weight, where the first routing weight is greater than the fourth routing weight. It may be determined that the third routing weight is greater than the fourth routing weight, which means that the second network device is the master network device, the first network device is the standby network device, and the routing weight of the master network device is greater than the routing weight of the standby network device. The third routing weight may be greater than the first routing weight, for example, the third routing weight may be a sum of the first routing weight and the second routing weight. For example, the first routing weight is 0.6, the second routing weight is 0.3, the third routing weight is 0.9, and the third routing weight is greater than the first routing weight. For another example, the first routing weight is COST a, the second routing weight is COST B, and the third routing weight is COST a + B. Wherein COST A + B is greater than COST A. The third routing weight may also be equal to the first routing weight, e.g., the first routing weight is 0.6 and the fourth routing weight is 0.4. Then the third routing weight may be 0.6, which is greater than the fourth routing weight.
S304, the second network device sends the third routing weight to the routing device.
After the second network device updates the routing weight information of the second network device from the second routing weight to the third routing weight, the second network device may resend the third routing weight to the routing device, so that the routing device stores the third routing weight when the operating state of the second network device is the main network device.
S305, the second network device communicates with the routing device according to the routing weight information of the second network device.
The operation state of the second network device is switched from the standby network device to the main network device, that is, the routing weight information of the second network device is updated from the second routing weight to the third routing weight. At this time, the second network device serves as a main network device and takes charge of information transmission tasks in the backup network. For example, when information from the third-party server is sent to the routing device, the routing device sends the information to the second network device knowing that the current primary network device is the second network device. And the second network equipment forwards the information to the corresponding access equipment according to the contents such as address information and the like in the information. And the corresponding access equipment forwards the information to the user equipment corresponding to the address information, thereby realizing communication.
The embodiment of the application provides an information transmission method, wherein a second network device obtains routing weight information of a first network device, and the routing weight information of the first network device includes a first routing weight when an operation state of the first network device is a main network device, or a fourth routing weight after the operation state of the first network device is switched from the main network device to a standby network device. If the operation state of the first network device is switched from the main network device to the standby network device, the second network device switches the operation state of the second network device from the standby network device to the main network device, and updates the routing weight of the second network device from the second routing weight to the third routing weight. The second network device may communicate with the routing device according to the third routing weight. It can be seen that, when the first network device fails, the operation state of the second network device may be switched from the standby network device to the main network device. The second network device sends the updated third routing weight to the routing device, so that the routing device determines that the second network device is the main network device, and subsequently the second network device communicates with the routing device, thereby avoiding the bypassing of information transmission and improving the information processing speed.
The following describes in detail the steps in which the operation state of the first network device is switched from the master network device to the standby network device, and the routing weight of the first network device is updated from the first routing weight to the fourth routing weight, and the operation state of the second network device is switched from the standby network device to the master network device, and the routing weight information of the second network device is updated from the second routing weight to the third routing weight.
In one example, when the operation state of the first network device is the main network device, the routing weight information of the first network device is the first routing weight. For example, when the operation state of the first network device is the main network device, the routing weight information of the first network device is a first routing weight, and the first routing weight is COST a. When the first network equipment fails, the operation state of the first network equipment is switched from the main network equipment to the standby network equipment. When the operation state of the first network device is switched from the main network device to the standby network device, the routing weight information of the first network device is updated to the fourth routing weight from the first routing weight. For example, after the operation state of the first network device is switched from the main network device to the standby network device, the routing weight of the first network device is updated from the first routing weight COST a to the fourth routing weight COST a-. It is to be understood that the routing weight information of the first network device may fluctuate according to a certain threshold range when updated. It should be noted that when the first network device fails, the failure types can be divided into a user-side failure and a network-side failure. Wherein, the user side failure may be a link failure between the first network device and the access device of the user side, as shown in fig. 4 a. The network-side failure may be a link failure between the first network device and a routing device on the network side, as shown in fig. 4 b. In the case of a user-side failure or a network-side failure, if the first network device and the second network device are connected, the first network device may send the fourth routing weight to the second network device. Optionally, in the case of a failure at the user side, the first network device may further send the fourth routing weight of the first network device to the routing device, so that the routing device updates the routing information.
Correspondingly, if the operation state of the first network device is switched from the main network device to the standby network device, the operation state of the second network device is switched from the standby network device to the main network device. And, the routing weight information of the second network device is updated by the second routing weight to a third routing weight. Optionally, in the case of a user-side failure or a network-side failure, if the first network device and the second network device are connected, the third routing weight of the second network device may be determined according to the fourth routing weight. For example, if the fourth routing weight when the operation status of the first network device is the standby network device is COST a —, then the second network device receives the fourth routing weight COST a —, from the first network device, and may determine that the updated third routing weight of the second network device is COST B +, where COST B + is greater than COST a-. It can be understood that the routing weight information of the second network device may also fluctuate according to a certain threshold range, and it is sufficient that the third routing weight when the operation state of the second network device is the main network device is greater than the fourth routing weight when the operation state of the first network device is the standby network device.
Optionally, under the condition of a user-side failure, if the connection between the first network device and the second network device is disconnected, the first network device may not send the fourth routing weight to the second network device, and may only send the fourth routing weight to the routing device. The second network device may obtain the fourth routing weight from the routing device, and determine the third routing weight when the operation state of the second network device is the main network device according to the fourth routing weight. For example, the fourth routing weight when the running state of the first network device is the standby network device is 0.3, and the first network device sends the fourth routing weight to the routing device. Then the second network device receives a fourth routing weight from the routing device of 0.3 and may determine that the third routing weight is a value greater than 0.3 (e.g., the third routing weight is 0.5) when the second network device is the primary network device.
Optionally, in the case of a network side failure, if the connection between the first network device and the second network device is disconnected, the first network device may not send the fourth routing weight to the second network device, and may also not send the fourth routing weight to the routing device. The first network device cannot acquire the updated fourth routing weight of the second network device. It can be understood that, after the operation state of the first network device is switched from the main network device to the standby network device, the routing weight of the first network device must be updated, and the routing weight when the operation state of the first network device is the standby network device must be smaller than the routing weight when the operation state of the first network device is the main network device, that is, the fourth routing weight must be smaller than the first routing weight. The second network device may determine, according to the first routing weight when the operation state of the first network device backed up in the history is the main network device, the third routing weight when the operation state of the second network device is the main network device. For example, the first routing weight when the operation state of the first network device is the main network device is 0.6, and the fourth routing weight when the operation state of the first network device is the standby network device is 0.3. Since the second network device cannot obtain the fourth routing weight, it can only be determined that the third routing weight is 0.6 or a value greater than 0.6 when the second network device is the main network device according to the first routing weight 0.6 backed up in the history, which is not limited in this embodiment. Then the third routing weight must be greater than the fourth routing weight.
In one example, in the case of a network side failure, the operation state of the first network device is switched from the main network device to the standby network device, and the routing weight information of the first network device is updated from the first routing weight to the fourth routing weight. However, in case of a network side failure, the fourth routing weight of the first network device cannot be sent to the routing device any more. In an implementation manner, if the first network device and the second network device are connected, the second network device may determine that the first network device fails according to protocol information between the active and standby network devices, switch the running state from the standby network device to the active network device, and update the routing weight of the second network device from the second routing weight to the third routing weight. The second network device may retransmit the updated third routing right to the routing device to cause the routing device to update the routing information. It can be understood that a certain time is required for routing convergence in the network, that is, when the network side fails, the routing device cannot immediately know that the primary-standby relationship between the first network device and the second network device has changed. After the first network device fails, the second network device switches the operation state of the second network device from the standby network device to the main network device, and updates the routing weight of the second network device from the second routing weight to the third routing weight. The second network device may resend the third routing right to the routing device, so that the routing device knows that the second network device is the main network device and the first network device is the standby network device, and thus before routing convergence, the routing device can know that the main-standby relationship between the first network device and the second network device is switched, and the information processing efficiency is improved.
In one example, in the case of an access side failure or a network side failure, the routing weight information of the first network device and the routing weight information of the second network device may be interchanged according to a preset rule. Before the first network device fails, the first network device and the second network device may perform mutual information backup, that is, the first routing weight of the first network device is backed up at the second network device, and the second routing weight of the second network device is backed up at the first network device. Under the condition of access side failure or network side failure, updating the routing weight information of the first network equipment to a fourth routing weight by the first routing weight, wherein the fourth routing weight can be equal to the second routing weight; the routing weight of the second network device is updated from the second routing weight to a third routing weight, which may be equal to the first routing weight. For example, when the first network device does not fail, the first routing weight of the first network device is COST a and the second routing weight of the second network device is cotstb. The first network device and the second network device back up the first routing weight and the second routing weight with each other. When the access side fails, the operation state of the first network device is switched from the main network device to the standby network device, and the routing weight of the first network device is updated from the first routing weight COST a to a fourth routing weight COST B, where the fourth routing weight COST B is equal to the second routing weight COST B. The operation state of the second network device is switched from the standby network device to the main network device, and the routing weight information of the second network device is updated from the second routing weight COST B to a third routing weight COST a, where the third routing weight COST a is equal to the first routing weight COST a. The first network device and the second network device respectively send the updated routing weight information to the routing device, and the routing device may determine that the current master network device is the second network device.
Optionally, in the case of an access side failure or a network side failure, the routing weight information of the first network device and the routing weight information of the second network device may fluctuate within a certain range according to a preset threshold. For example, when the first network device is not failed, the first routing weight of the first network device is 0.7, and the second routing weight of the second network device is 0.3. The first network device and the second network device back up the first routing weight and the second routing weight with each other. When the network side fails, the operation state of the first network device is switched from the main network device to the standby network device, and the routing weight information of the first network device is updated to the fourth routing weight 0.2 from the first routing weight 0.7. The operation state of the second network device is switched from the standby network device to the main network device. The routing weight information of the second network device is updated by the second routing weight 0.3 to the third routing weight 0.8. Wherein, the third route weight 0.8 is greater than the first route weight 0.7 and is also greater than the fourth route weight 0.2. The second network device may send the third routing weight to the routing device, and the routing device may compare the first routing weight 0.7 of the first network device received before the failure with the routing weight 0.8 of the second network device, and determine that the current primary network device is the second network device.
The following describes in detail the processing procedures of the first network device and the second network device after the failure recovery.
In an example, if failure recovery is detected, the first network device switches the operation state of the first network device from the standby network device to the main network device, and updates the routing weight information of the first network device from the fourth routing weight to the first routing weight. The failure recovery may be a link failure recovery between the first network device and the routing device, or a link failure recovery between the first network device and the access device. Optionally, the first network device may send the updated routing weight information to the second network device, that is, the first network device sends the first routing weight to the second network device, so that the second network device backups the routing weight of the first network device again. Optionally, the first network device may further send the first routing weight to the routing device, so that the routing device updates the routing information.
Optionally, if it is detected that the failure is recovered, the first network device may not switch the operation state, and continue to be used as the standby network device, and the routing weight information of the first network device is also unchanged. For example, if the link between the first network device and the access device fails to recover, or if the link between the first network device and the routing device fails to recover, the operating status of the first network device is still the standby network device. After the failure is recovered, no matter whether a direct connection line exists between the first network device and the second network device, information backup can be achieved between the first network device and the second network device.
In one example, if failure recovery is detected, the second network device switches the operation state of the second network device from the primary network device to the standby network device, and updates the routing weight information of the second network device from the third routing weight to the second routing weight. The second network device may send the second routing weight to the first network device to cause the first network device to re-backup the routing weight of the second network device. For example, if the link between the first network device and the access device fails to recover, or if the link between the first network device and the routing device fails to recover, the operation state of the first network device is switched from the standby network device to the master network device. After the failure is recovered, the connection between the first network device and the second network device is kept smooth, and then the first network device may notify the second network device through the protocol information of the master network device and the standby network device, so that the second network device switches the operating state of the second network device from the master network device to the standby network device. The second network device updates the routing weight of the second network device from the third routing weight to the second routing weight.
Optionally, if it is detected that the failure is recovered, the second network device may also continue to serve as the primary network device to perform a corresponding function, that is, the operation state of the second network device is still the primary network device, and the routing weight information of the second network device is also unchanged. For example, if the link between the first network device and the access device fails to recover, or if the link between the first network device and the routing device fails to recover, the operation status of the second network device maintains the main network device, and continues to receive the information from the routing device, or continues to forward the information from the access device to the routing device.
The following describes in detail specific steps of the information transmission method provided in the embodiment of the present application when applied to a network scenario as shown in fig. 4a or fig. 4 b.
Referring to fig. 5, fig. 5 is a specific interaction flow when the information transmission method according to the embodiment of the present application is applied to the scenario of the user-side fault shown in fig. 4a, and may include the following steps:
s501a, the first network device backups the first routing weight of the first network device to the second network device.
S501b, the second network device backups the second routing weight of the second network device to the first network device.
S502, if the access side fails, the first network device switches the operation state of the first network device from the primary network device to the standby network device, and updates the routing weight information of the first network device from the first routing weight to a fourth routing weight.
S503a, the first network device sends the fourth routing weight to the routing device.
S504, if the operation state of the first network device is switched from the main network device to the standby network device, the second network device switches the operation state of the second network device from the standby network device to the main network device.
And S505, the second network device updates the routing weight information of the second network device from the second routing weight to a third routing weight.
S506a, the second network device sends the third routing weight to the routing device.
And S507, the second network equipment communicates with the routing equipment according to the third routing weight of the second network equipment.
Optionally, after the first network device updates the routing weight of the first network device, the following steps may be further performed:
s503b, the first network device sends the fourth routing weight to the second network device.
Optionally, after the second network device updates the routing weight of the second network device, if the backup channel between the first network device and the second network device is kept connected, the second network device may further perform the following steps:
s506b, the second network device sends the third routing weight to the first network device.
Optionally, after S506, the above interaction flow may further include the following steps:
s508, if it is detected that the failure is recovered, the first network device switches the running state of the first network device from the standby network device to the primary network device, and updates the routing weight information of the first network device from the fourth routing weight to the first routing weight.
S509, the second network device switches the operation state of the second network device from the primary network device to the standby network device, and updates the routing weight information of the second network device from the third routing weight to the second routing weight.
S510a, the first network device sends the first routing weight to the second network device.
S510b, the first network device sends the first routing weight to the routing device.
S511a, the second network device sends the second routing weight to the first network device.
S511b, the second network device sends the second routing weight to the routing device.
Wherein, S501a and S501b represent steps without sequential execution order. For example, the first network device backups the first routing weight of the first network device to the second network device, and simultaneously, the second network device backups the second routing weight of the second network device to the first network device, and the two have no execution sequence in sequence. Similarly, S503a and S503b indicate steps that are not executed sequentially. For example, the first network device sends the fourth routing weight to the routing device, and meanwhile, if the first network device and the second network device are connected, the first network device sends the fourth routing weight to the second network device. Similarly, S506a and S506b represent steps that are not executed sequentially. For example, the second network device sends the third routing weight to the routing device, and at the same time, the second network device sends the third routing weight to the first network device, and the two do not have a sequential execution order. Similarly, S510a and S510b represent steps that are not executed sequentially. For example, a first network device sends the first routing weight to a second network device. Meanwhile, the first network device sends the first routing weight to the routing device. Similarly, S506a and S506b represent steps that are not executed sequentially. For example, the second network device sends the second routing weights to the first network device. And meanwhile, the second network equipment sends the second routing weight to the routing equipment. It should be noted that the above is only an example, and the present embodiment is not limited.
As can be seen, when the information transmission method provided in the embodiment of the present application is applied to a scenario with a user-side failure as shown in fig. 4a, when a first network device fails, an operation state of a second network device may be switched from a standby network device to a main network device, and a routing weight of the second network device is updated from a second routing weight to a third routing weight. The second network device sends the updated routing weight information to the routing device, so that the routing device updates the routing information, and the second network device communicates with the routing device subsequently, thereby avoiding the bypassing of information transmission and improving the information processing speed.
Referring to fig. 6, fig. 6 is a specific interaction flow when the information transmission method according to the embodiment of the present application is applied to the scenario of network side failure shown in fig. 4b, including the following steps:
s601a, the first network device backups the first routing weight of the first network device to the second network device.
S601b, the second network device backups the second routing weight of the second network device to the first network device.
S602, if the network side fails, the first network device switches the operation state of the first network device from the primary network device to the standby network device, and updates the routing weight information of the first network device from the first routing weight to a fourth routing weight.
S603a, if the first network device and the second network device are connected, the first network device sends the operation state switching information to the second network device; the second network device switches the running state of the second network device from the standby network device to the main network device.
S603b, if the connection between the first network device and the second network device is disconnected, the second network device does not receive the connection confirmation information from the first network device within a preset time period, and the second network device switches the operation state of the second network device from the standby network device to the master network device.
S604, the second network device updates the routing weight information of the second network device from the second routing weight to a third routing weight.
S605, the second network device sends the third routing weight to the routing device.
And S606, the second network equipment communicates with the routing equipment according to the third routing weight of the second network equipment.
Optionally, after S606, the above interaction flow may further include the following steps:
s607, if it is detected that the failure is recovered, the first network device switches the operation state of the first network device from the standby network device to the main network device, and updates the routing weight information of the first network device from the fourth routing weight to the first routing weight.
S608, the second network device switches the operation state of the second network device from the primary network device to the standby network device, and updates the routing weight information of the second network device from the third routing weight to the second routing weight.
S609a, the first network device sends the first routing weight to the second network device.
S609b, the first network device sends the first routing weight to the routing device.
S610a, the second network device sends the second routing weight to the first network device.
S610b, the second network device sends the second routing weight to the routing device.
Wherein, S601a and S601b represent steps without sequential execution order. For example, the first network device backups the first routing weight of the first network device to the second network device, and simultaneously, the second network device backups the second routing weight of the second network device to the first network device, and the two have no execution sequence in sequence. Similarly, S609a and S609b represent steps that are not executed sequentially. For example, a first network device sends the first routing weight to a second network device. Meanwhile, the first network device sends the first routing weight to the routing device. Similarly, S610a and S610b represent steps that are not executed sequentially. For example, the second network device sends the second routing weights to the first network device. And meanwhile, the second network equipment sends the second routing weight to the routing equipment. S603a and S603b represent two possible implementations, for example, if the first network device and the second network device are connected, the first network device sends the operation state switching information to the second network device, so that the second network device switches the operation state from the standby network device to the master network device. For another example, if the connection between the first network device and the second network device is disconnected, the second network device may also determine that the first network device fails according to the protocol of the active/standby network devices, so as to switch the operating state of the second network device from the standby network device to the main network device. S605b represents a possible implementation step after S604, for example, if the first network device and the second network device are connected, the second network device sends the third routing weight to the first network device.
As can be seen, when the information transmission method provided in the embodiment of the present application is applied to a scenario with a network side failure as shown in fig. 4b, when a first network device fails, the running state of a second network device may be switched from a standby network device to a main network device. The second network device sends the updated routing weight information to the routing device, so that the routing device determines that the second network device is the main network device, and subsequently the second network device communicates with the routing device, thereby avoiding the bypassing of information transmission and improving the information processing speed.
The following describes related apparatuses and systems according to embodiments of the present application in detail with reference to fig. 7 to 12.
An embodiment of the present application provides a network device, as shown in fig. 7, where the network device 700 may be used to implement the information transmission method described in fig. 3, fig. 5, and fig. 6. The network device 700 may include:
an obtaining unit 701, configured to obtain routing weight information of a first network device, where the routing weight information of the first network device includes a first routing weight when an operation state of the first network device is a main network device, or a fourth routing weight after the operation state of the first network device is switched from the main network device to a standby network device. For a specific implementation, please refer to the detailed description in S301 in the embodiment shown in fig. 3, which is not repeated here.
A processing unit 702, configured to switch the operation state of the second network device from the standby network device to the main network device if the operation state of the first network device is switched from the main network device to the standby network device. Please refer to S302 in the embodiment shown in fig. 3, S504 in the embodiment shown in fig. 5, and S603a or S603b in the embodiment shown in fig. 6, which are not described herein again.
The processing unit 702 is further configured to update the routing weight information of the second network device from a second routing weight to a third routing weight, where the second routing weight is the routing weight information of the second network device when the operation state of the second network device is the standby network device, the third routing weight is the routing weight information of the second network device after the operation state of the second network device is switched from the standby network device to the main network device, and the third routing weight is greater than or equal to the first routing weight, or the third routing weight is greater than the fourth routing weight. Please refer to S303 in the embodiment shown in fig. 3, S505 in the embodiment shown in fig. 5, and S604 in the embodiment shown in fig. 6 for detailed description, which is not repeated herein.
A transceiver 703, configured to send the third routing weight to a routing device. Please refer to S304 in the embodiment shown in fig. 3, S506a in the embodiment shown in fig. 5, and S605 in the embodiment shown in fig. 6, which are not described herein again in detail.
The transceiver 703 is further configured to communicate with the routing device according to the third routing weight. Please refer to S305 in the embodiment shown in fig. 3, S507 in the embodiment shown in fig. 5, and S606 in the embodiment shown in fig. 6 for detailed description, which is not repeated herein.
In an implementation manner, when the obtaining unit 701 is configured to obtain the routing weight information of the first network device, the obtaining unit specifically includes:
the obtaining unit 701 is configured to receive the fourth routing weight from the first network device through the transceiver unit 703. Please refer to detailed description in S301 in the embodiment shown in fig. 3 and S503b in the embodiment shown in fig. 5, which are not repeated herein.
In an implementation manner, the obtaining unit 701 is configured to obtain the routing weight information of the first network device, and specifically includes:
the obtaining unit 701 is configured to receive the fourth routing weight from the routing device through the transceiver unit 703. For a specific implementation, please refer to the detailed description in S301 in the embodiment shown in fig. 3, which is not repeated here.
In an implementation manner, the processing unit 702 is configured to update the routing weight information of the second network device from the second routing weight to a third routing weight, and specifically includes:
the processing unit 702 is configured to update the routing weight information of the second network device to a third routing weight according to the fourth routing weight, where the third routing weight is greater than the fourth routing weight. Please refer to S303 in the embodiment shown in fig. 3, S505 in the embodiment shown in fig. 5, and S604 in the embodiment shown in fig. 6 for detailed description, which is not repeated herein.
In an implementation manner, when the obtaining unit 701 is configured to obtain the routing weight information of the first network device, the obtaining unit specifically includes:
the obtaining unit 701 is configured to obtain a first routing weight when the locally stored operation state of the first network device is a main network device. For a specific implementation, please refer to the detailed description in S301 in the embodiment shown in fig. 3, which is not repeated here.
In an implementation manner, the processing unit 702 is configured to update the routing weight information of the second network device from the second routing weight to a third routing weight, and specifically includes:
the processing unit 702 is configured to update the routing weight information of the second network device to a third routing weight according to the first routing weight, where the third routing weight is greater than or equal to the first routing weight. Please refer to S303 in the embodiment shown in fig. 3, S505 in the embodiment shown in fig. 5, and S604 in the embodiment shown in fig. 6 for detailed description, which is not repeated herein.
In an implementation manner, if the operation state of the first network device is switched from the main network device to the standby network device, the processing unit 702 is configured to switch the operation state of the second network device from the standby network device to the main network device, and specifically includes:
if the second network device receives the operation state switching information from the first network device, the processing unit 702 is configured to switch the operation state of the second network device from the standby network device to the primary network device. Please refer to S302 in the embodiment shown in fig. 3, S504 in the embodiment shown in fig. 5, and S603a in the embodiment shown in fig. 6, for detailed description, which is not repeated herein.
In an implementation manner, if the operation state of the first network device is switched from the main network device to the standby network device, the processing unit 702 is configured to switch the operation state of the second network device from the standby network device to the main network device, and specifically includes:
if the second network device does not receive the connection confirmation information from the first network device within a preset time period, the processing unit 702 is configured to switch the operation state of the second network device from the standby network device to the primary network device. Please refer to S302 in the embodiment shown in fig. 3, S504 in the embodiment shown in fig. 5, and S603b in the embodiment shown in fig. 6, for detailed description, which is not repeated herein.
In one implementation, the processing unit 702 is further configured to:
if the fault recovery is detected, switching the running state of the second network equipment from the main network equipment to the standby network equipment;
and updating the routing weight information of the second network equipment from the third routing weight to the second routing weight. Please refer to S509 in the embodiment shown in fig. 5 and S608 in the embodiment shown in fig. 6 for detailed description, which is not repeated herein.
The transceiver unit 703 is further configured to:
and sending the second routing weight to the routing equipment. Please refer to S511b in the embodiment shown in fig. 5 and detailed description in S610b in the embodiment shown in fig. 6, which are not repeated herein.
In one implementation manner, the transceiver 703 is further configured to:
and sending the second routing weight to the first network equipment so that the first network equipment determines that the operation state of the second network equipment is switched from the main network equipment to the standby network equipment. Please refer to S511a in the embodiment shown in fig. 5 and detailed description in S610a in the embodiment shown in fig. 6, which are not repeated herein.
In one implementation manner, the transceiver 703 is further configured to:
receiving the first routing weight from the first network device, where the first routing weight is updated to the first routing weight by the fourth routing weight when the operation state of the first network device is switched from a standby network device to a main network device. Please refer to S510a in the embodiment shown in fig. 5 and S609a in the embodiment shown in fig. 6 for detailed description, which is not repeated here.
In one implementation manner, the transceiver 703 is further configured to:
sending the third routing weight to the first network device. For a specific implementation, please refer to the detailed description in S506b in the embodiment shown in fig. 5, which is not repeated here.
In one implementation, the first routing weight is greater than the fourth routing weight, and the third routing weight is greater than the second routing weight.
In one implementation, the relevant functions implemented by the various units in fig. 7 may be implemented in conjunction with a processor and a transceiver. Referring to fig. 8, fig. 8 is a schematic structural diagram of a network device according to an embodiment of the present disclosure, where the network device may be a second network device in a backup network or a device (e.g., a chip) having an information transmission function according to an embodiment of the present disclosure. The network device 800 may include a transceiver 801, at least one processor 802, and a memory 803. The transceiver 801, the processor 802 and the memory 803 may be connected to each other via one or more communication buses, or may be connected in other ways.
The transceiver 801 may be used, among other things, to transmit information as well as receive information. It is to be appreciated that the transceiver 801 is generally referred to and may include a receiver and a transmitter. For example, the receiver is configured to receive routing weight information from a first network device. For another example, the transmitter is configured to transmit the third routing weight to a routing device.
The processor 802 may be configured to process information transmitted by the transceiver 801 or information received by the transceiver 801. For example, the processor 802 may invoke program code stored in the memory 803 to implement communications procedures via the transceiver 801. The processor 802 may include one or more processors, for example, the processor 802 may be one or more Central Processing Units (CPUs), Network Processors (NPs), hardware chips, or any combination thereof. In the case where the processor 802 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
The memory 803 is used for storing program codes and the like, among others. The memory 803 may include a volatile memory (volatile memory), such as a Random Access Memory (RAM); the memory 803 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory (flash memory), a Hard Disk Drive (HDD), or a solid-state drive (SSD); the memory 803 may also comprise a combination of memories of the kind described above.
The transceiver 801 and the processor 802 may be configured to implement the information transmission method in the embodiments shown in fig. 3, fig. 5, and fig. 6, where the specific implementation manner is as follows:
the processor 802 is configured to obtain routing weight information of a first network device, where the routing weight information of the first network device includes a first routing weight when an operation state of the first network device is a main network device, or a fourth routing weight after the operation state of the first network device is switched from the main network device to a standby network device. For a specific implementation, please refer to the detailed description in S301 in the embodiment shown in fig. 3, which is not repeated here.
The processor 802 is further configured to switch the operation state of the second network device from the standby network device to the main network device if the operation state of the first network device is switched from the main network device to the standby network device. Please refer to S302 in the embodiment shown in fig. 3, S504 in the embodiment shown in fig. 5, and S603a or S603b in the embodiment shown in fig. 6, which are not described herein again.
The processor 802 is further configured to update the routing weight information of the second network device from a second routing weight to a third routing weight, where the second routing weight is the routing weight information of the second network device when the operation state of the second network device is the standby network device, the third routing weight is the routing weight information of the second network device after the operation state of the second network device is switched from the standby network device to the main network device, and the third routing weight is greater than or equal to the first routing weight, or the third routing weight is greater than the fourth routing weight. Please refer to S303 in the embodiment shown in fig. 3, S505 in the embodiment shown in fig. 5, and S604 in the embodiment shown in fig. 6 for detailed description, which is not repeated herein.
The transceiver 801 is configured to send the third routing weight to a routing device. Please refer to S304 in the embodiment shown in fig. 3, S506a in the embodiment shown in fig. 5, and S605 in the embodiment shown in fig. 6, which are not described herein again in detail.
The transceiver 801 is further configured to communicate with the routing device according to the third routing weight. Please refer to S305 in the embodiment shown in fig. 3, S507 in the embodiment shown in fig. 5, and S606 in the embodiment shown in fig. 6 for detailed description, which is not repeated herein.
In one implementation, the processor 802 is configured to obtain routing weight information of a first network device, and specifically includes:
the processor 802 receives the fourth routing weight from the first network device through the transceiver 801. Please refer to detailed description in S301 in the embodiment shown in fig. 3 and S503b in the embodiment shown in fig. 5, which are not repeated herein.
In one implementation, the processor 802 is configured to obtain routing weight information of a first network device, and specifically includes:
the processor 802 receives the fourth routing weight from the routing device through the transceiver 801. For a specific implementation, please refer to the detailed description in S301 in the embodiment shown in fig. 3, which is not repeated here.
In one implementation, the processor 802 is configured to update the routing weight information of the second network device from the second routing weight to a third routing weight, and specifically includes:
the processor 802 is configured to update the routing weight information of the second network device to a third routing weight according to the fourth routing weight, where the third routing weight is greater than the fourth routing weight. Please refer to S303 in the embodiment shown in fig. 3, S505 in the embodiment shown in fig. 5, and S604 in the embodiment shown in fig. 6 for detailed description, which is not repeated herein.
In one implementation, the processor 802 is configured to obtain routing weight information of a first network device, and specifically includes:
the processor 802 is configured to obtain a first routing weight when the locally stored operation state of the first network device is a main network device. For a specific implementation, please refer to the detailed description in S301 in the embodiment shown in fig. 3, which is not repeated here.
In one implementation, the processor 802 is configured to update the routing weight information of the second network device from the second routing weight to a third routing weight, and specifically includes:
the processor 802 is configured to update the routing weight information of the second network device to a third routing weight according to the first routing weight, where the third routing weight is greater than or equal to the first routing weight. Please refer to S303 in the embodiment shown in fig. 3, S505 in the embodiment shown in fig. 5, and S604 in the embodiment shown in fig. 6 for detailed description, which is not repeated herein.
In an implementation manner, if the operation state of the first network device is switched from the main network device to the standby network device, the processor 802 is configured to switch the operation state of the second network device from the standby network device to the main network device, and specifically includes:
if the second network device receives the operation state switching information from the first network device, the processor 802 is configured to switch the operation state of the second network device from the standby network device to the primary network device. Please refer to S302 in the embodiment shown in fig. 3, S504 in the embodiment shown in fig. 5, and S603a in the embodiment shown in fig. 6, for detailed description, which is not repeated herein.
In an implementation manner, if the operation state of the first network device is switched from the main network device to the standby network device, the processor 802 is configured to switch the operation state of the second network device from the standby network device to the main network device, and specifically includes:
if the second network device does not receive the connection confirmation information from the first network device within a preset time period, the processor 802 is configured to switch the operation state of the second network device from the standby network device to the primary network device. Please refer to S302 in the embodiment shown in fig. 3, S504 in the embodiment shown in fig. 5, and S603b in the embodiment shown in fig. 6, for detailed description, which is not repeated herein.
In one implementation, the processor 802 is further configured to:
if the fault recovery is detected, switching the running state of the second network equipment from the main network equipment to the standby network equipment;
and updating the routing weight information of the second network equipment from the third routing weight to the second routing weight. Please refer to S509 in the embodiment shown in fig. 5 and S608 in the embodiment shown in fig. 6 for detailed description, which is not repeated herein.
The transceiver 801 is further configured to:
and sending the second routing weight to the routing equipment. Please refer to S511b in the embodiment shown in fig. 5 and detailed description in S610b in the embodiment shown in fig. 6, which are not repeated herein.
In one implementation, the transceiver 801 is further configured to:
and sending the second routing weight to the first network equipment so that the first network equipment determines that the operation state of the second network equipment is switched from the main network equipment to the standby network equipment. Please refer to S511a in the embodiment shown in fig. 5 and detailed description in S610a in the embodiment shown in fig. 6, which are not repeated herein.
In one implementation, the transceiver 801 is further configured to:
receiving the first routing weight from the first network device, where the first routing weight is updated to the first routing weight by the fourth routing weight when the operation state of the first network device is switched from a standby network device to a main network device. Please refer to S510a in the embodiment shown in fig. 5 and S609a in the embodiment shown in fig. 6 for detailed description, which is not repeated here.
In one implementation, the transceiver 801 is further configured to:
sending the third routing weight to the first network device. For a specific implementation, please refer to the detailed description in S506b in the embodiment shown in fig. 5, which is not repeated here.
In one implementation, the first routing weight is greater than the fourth routing weight, and the third routing weight is greater than the second routing weight.
An embodiment of the present application provides a network device, as shown in fig. 9, where the network device 900 may be used to implement the information transmission method described in fig. 3, fig. 5, and fig. 6. The network device 900 may include:
a processing unit 901, configured to switch an operation state of the first network device from a main network device to a standby network device. Please refer to detailed description in S502 in the embodiment shown in fig. 5 and S602 in the embodiment shown in fig. 6, which are not repeated herein.
The processing unit 901 is further configured to update the routing weight information of the first network device from the first routing weight to a fourth routing weight. Please refer to detailed description in S502 in the embodiment shown in fig. 5 and S602 in the embodiment shown in fig. 6, which are not repeated herein.
A transceiving unit 902, configured to send the fourth routing weight to the routing device or the second network device, so that when the operation state of the second network device is switched from the standby network device to the primary network device, the second network device updates the second routing weight of the second network device to a third routing weight according to the fourth routing weight. Please refer to the detailed description in S503a and S503b in the embodiment shown in fig. 5, which is not repeated here.
In one implementation, the transceiving unit 902 is further configured to:
receiving a second routing weight sent by the second network equipment; the second routing weight is routing weight information of the second network device when the operation state of the second network device is the standby network device. For a specific implementation, please refer to detailed descriptions in S501b and S601b in the embodiment shown in fig. 5, which are not described herein again.
In an implementation manner, the processing unit 901 is configured to update the routing weight information of the first network device from the first routing weight to a fourth routing weight, and specifically includes:
if the connection between the first network device and the second network device is disconnected, the processing unit 901 is configured to update the routing weight information of the first network device to the fourth routing weight according to the second routing weight, where the fourth routing weight is less than or equal to the second routing weight. Please refer to detailed description in S502 in the embodiment shown in fig. 5 and S602 in the embodiment shown in fig. 6, which are not repeated herein.
In one implementation, the transceiving unit 902 is further configured to:
receiving a third routing weight from the second network device, where the third routing weight is routing weight information of the second network device when the operation state of the second network device is a master network device. For a specific implementation, please refer to the detailed description in S506b in the embodiment shown in fig. 5, which is not repeated here.
The processing unit 901 is configured to update the routing weight information of the first network device from the first routing weight to a fourth routing weight, and specifically includes:
the processing unit 901 is configured to update the routing weight information of the first network device to the fourth routing weight according to the third routing weight, where the fourth routing weight is smaller than the third routing weight. For a specific implementation, please refer to the detailed description in S502 in the embodiment shown in fig. 5, which is not repeated here.
In one implementation, the processing unit 901 is further configured to:
if the fault recovery is detected, switching the running state of the first network equipment from the standby network equipment to the main network equipment;
updating the routing weight information of the first network device from the fourth routing weight to the first routing weight. Please refer to detailed description of S508 in the embodiment shown in fig. 5 and S607 in the embodiment shown in fig. 6, which are not repeated herein.
In one implementation, the relevant functions implemented by the various units in fig. 9 may be implemented in conjunction with a processor and a transceiver. Referring to fig. 10, fig. 10 is a schematic structural diagram of a network device according to an embodiment of the present disclosure, where the network device may be a first network device in a backup network or a device (e.g., a chip) having an information transmission function according to an embodiment of the present disclosure. The network device 1000 may include a transceiver 1001, at least one processor 1002, and memory 1003. The transceiver 1001, the processor 1002 and the memory 1003 may be connected to each other through one or more communication buses, or may be connected in other manners.
Among other things, transceiver 1001 may be used to transmit information, as well as receive information. It is understood that the transceiver 1001 is a generic term and may include both receivers and transmitters. For example, the receiver is configured to receive the second routing weight sent by the second network device. For another example, the transmitter is configured to transmit the fourth routing weight to the routing device or the second network device.
The processor 1002 may be configured to process information transmitted by the transceiver 1001 or process information received by the transceiver 1001. For example, the processor 1002 may invoke program code stored in the memory 1003 to implement communications procedures through the transceiver 1001. The processor 1002 may include one or more processors, for example, the processor 1002 may be one or more Central Processing Units (CPUs), Network Processors (NPs), hardware chips, or any combination thereof. In the case where the processor 1002 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
The memory 1003 is used to store program codes and the like. The memory 1003 may include volatile memory (volatile memory), such as Random Access Memory (RAM); the memory 1003 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory (flash memory), a Hard Disk Drive (HDD), or a solid-state drive (SSD); the memory 1003 may also include a combination of the above types of memories.
The transceiver 1001 and the processor 1002 may be configured to implement the information transmission method in the embodiments shown in fig. 3, fig. 5, and fig. 6, where the specific implementation manner is as follows:
the processor 1002 is configured to switch the operation state of the first network device from a main network device to a standby network device. Please refer to detailed description in S502 in the embodiment shown in fig. 5 and S602 in the embodiment shown in fig. 6, which are not repeated herein.
The processor 1002 is further configured to update the routing weight information of the first network device from the first routing weight to a fourth routing weight. Please refer to detailed description in S502 in the embodiment shown in fig. 5 and S602 in the embodiment shown in fig. 6, which are not repeated herein.
The transceiver 1001 is configured to send the fourth routing weight to the routing device or the second network device, so that when the operation state of the second network device is switched from the standby network device to the primary network device, the second network device updates the second routing weight of the second network device to the third routing weight according to the fourth routing weight. Please refer to the detailed description in S503a and S503b in the embodiment shown in fig. 5, which is not repeated here.
In one implementation, the transceiver 1001 is further configured to:
receiving a second routing weight sent by the second network equipment; the second routing weight is routing weight information of the second network device when the operation state of the second network device is the standby network device. For a specific implementation, please refer to detailed descriptions in S501b and S601b in the embodiment shown in fig. 5, which are not described herein again.
In one implementation, the processor 1002 is configured to update the routing weight information of the first network device from the first routing weight to a fourth routing weight, and specifically includes:
if the connection between the first network device and the second network device is disconnected, the processor 1002 is configured to update the routing weight information of the first network device to the fourth routing weight according to the second routing weight, where the fourth routing weight is less than or equal to the second routing weight. Please refer to detailed description in S502 in the embodiment shown in fig. 5 and S602 in the embodiment shown in fig. 6, which are not repeated herein.
In one implementation, the transceiver 1001 is further configured to:
receiving a third routing weight from the second network device, where the third routing weight is routing weight information of the second network device when the operation state of the second network device is a master network device. For a specific implementation, please refer to the detailed description in S506b in the embodiment shown in fig. 5, which is not repeated here.
The processor 1002 is configured to update the routing weight information of the first network device from the first routing weight to a fourth routing weight, and specifically includes:
the processor 1002 is configured to update the routing weight information of the first network device to the fourth routing weight according to the third routing weight, where the fourth routing weight is smaller than the third routing weight. For a specific implementation, please refer to the detailed description in S502 in the embodiment shown in fig. 5, which is not repeated here.
In one implementation, the processor 1002 is further configured to:
if the fault recovery is detected, switching the running state of the first network equipment from the standby network equipment to the main network equipment;
updating the routing weight information of the first network device from the fourth routing weight to the first routing weight. Please refer to detailed description of S508 in the embodiment shown in fig. 5 and S607 in the embodiment shown in fig. 6, which are not repeated herein.
An embodiment of the present application provides a routing device, as shown in fig. 11, where the routing device 1100 may be used to implement the information transmission method shown in fig. 3, fig. 5, and fig. 6. The routing device 1100 may include:
the transceiving unit 1101 is configured to receive a third routing weight from a second network device, where the third routing weight is routing weight information of the second network device after the operation state of the second network device is switched from a standby network device to a main network device. Please refer to S304 in the embodiment shown in fig. 3, S506a in the embodiment shown in fig. 5, and S605 in the embodiment shown in fig. 6, which are not described herein again in detail.
A processing unit 1102, configured to communicate with the second network device according to the third routing weight. Please refer to S305 in the embodiment shown in fig. 3, S507 in the embodiment shown in fig. 5, and S606 in the embodiment shown in fig. 6 for detailed description, which is not repeated herein.
In one implementation, the transceiver unit 1101 is further configured to:
receiving a fourth routing weight from the first network device; the fourth routing weight is routing weight information of the first network device after the operation state of the first network device is switched from the main network device to the standby network device. For a specific implementation, please refer to the detailed description in S503a in the embodiment shown in fig. 5, which is not repeated here.
In one implementation, the transceiver unit 1101 is further configured to:
sending the fourth routing weight to the second network device, so that the second network device updates the routing weight information of the second network device to the third routing weight according to the fourth routing weight; the third routing weight is greater than the fourth routing weight. For a specific implementation, please refer to the detailed description in S503b in the embodiment shown in fig. 5, which is not repeated here.
In one implementation, the relevant functions implemented by the various units in fig. 12 may be implemented in conjunction with a processor and a transceiver. Referring to fig. 12, fig. 12 is a schematic structural diagram of a routing device according to an embodiment of the present disclosure, where the routing device may be a routing device in a backup network or a device (e.g., a chip) having an information transmission function according to an embodiment of the present disclosure. The routing device 1200 may include a transceiver 1201, at least one processor 1202, and a memory 1203. The transceiver 1201, the processor 1202, and the memory 1203 may be connected to each other through one or more communication buses, or may be connected in other manners.
Among other things, the transceiver 1201 may be used to transmit information, as well as receive information. It is understood that the transceiver 1001 is a generic term and may include both receivers and transmitters. For example, the receiver is to receive a third routing weight from the second network device. For another example, the transmitter is configured to transmit the fourth routing weight to the second network device.
The processor 1202 may be configured to process information transmitted by the transceiver 1201, or process information received by the transceiver 1201. For example, the processor 1202 may invoke program code stored in the memory 1203 to implement communications procedures through the transceiver 1201. The processor 1202 may include one or more processors, for example, the processor 1202 may be one or more Central Processing Units (CPUs), Network Processors (NPs), hardware chips, or any combination thereof. In the case where the processor 1202 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
The memory 1203 is used for storing program codes and the like. The memory 1203 may include volatile memory (volatile memory), such as Random Access Memory (RAM); the memory 1203 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD); the memory 1203 may also include a combination of the above types of memories.
The transceiver 1201 and the processor 1202 may be configured to implement the information transmission method in the embodiments shown in fig. 3, fig. 5, and fig. 6, where the specific implementation manner is as follows:
the transceiver 1201 is configured to receive a third routing weight from a second network device, where the third routing weight is routing weight information of the second network device after the operation state of the second network device is switched from a standby network device to a master network device. Please refer to S304 in the embodiment shown in fig. 3, S506a in the embodiment shown in fig. 5, and S605 in the embodiment shown in fig. 6, which are not described herein again in detail.
The processor 1202 is further configured to communicate with the second network device according to the third routing weight. Please refer to S305 in the embodiment shown in fig. 3, S507 in the embodiment shown in fig. 5, and S606 in the embodiment shown in fig. 6 for detailed description, which is not repeated herein.
In one implementation, the transceiver 1201 is further configured to:
receiving a fourth routing weight from the first network device; the fourth routing weight is routing weight information of the first network device after the operation state of the first network device is switched from the main network device to the standby network device. For a specific implementation, please refer to the detailed description in S503a in the embodiment shown in fig. 5, which is not repeated here.
In one implementation, the transceiver 1201 is further configured to:
sending the fourth routing weight to the second network device, so that the second network device updates the routing weight information of the second network device to the third routing weight according to the fourth routing weight; the third routing weight is greater than the fourth routing weight. For a specific implementation, please refer to the detailed description in S503b in the embodiment shown in fig. 5, which is not repeated here.
An embodiment of the present application provides a communication system, which includes a network device provided in the embodiment shown in fig. 7 or fig. 8, a network device provided in the embodiment shown in fig. 9 or fig. 10, and a routing device provided in the embodiment shown in fig. 11 or fig. 12.
An embodiment of the present application provides a computer-readable storage medium, which includes a program or instructions, and when the program or instructions are run on a computer, the program or instructions cause the computer to execute the information transmission method in the embodiment shown in fig. 3, fig. 5, or fig. 6.
The present application provides a chip or a chip system, where the chip or the chip system includes at least one processor and an interface, the interface and the at least one processor are interconnected by a line, and the at least one processor is configured to run a computer program or instructions to perform the information transmission method in the embodiments shown in fig. 3, fig. 5, or fig. 6.
The interface in the chip may be an input/output interface, a pin, a circuit, or the like.
The system-on-chip in the above aspect may be a system-on-chip (SOC), a baseband chip, and the like, where the baseband chip may include a processor, a channel encoder, a digital signal processor, a modem, an interface module, and the like.
In one implementation, the chip or chip system described above in this application further includes at least one memory having instructions stored therein. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or may be a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., Digital Video Disk (DVD)), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (46)

1. An information transmission method, comprising:
the method comprises the steps that a second network device obtains routing weight information of a first network device, wherein the routing weight information of the first network device comprises a first routing weight when the running state of the first network device is a main network device, or a fourth routing weight after the running state of the first network device is switched from the main network device to a standby network device;
if the running state of the first network equipment is switched from the main network equipment to the standby network equipment, the second network equipment switches the running state of the second network equipment from the standby network equipment to the main network equipment;
the second network device updates the routing weight information of the second network device from a second routing weight to a third routing weight, the second routing weight is the routing weight information of the second network device when the operation state of the second network device is a standby network device, the third routing weight is the routing weight information of the second network device after the operation state of the second network device is switched to a main network device by the standby network device, and the third routing weight is greater than or equal to the first routing weight or is greater than the fourth routing weight;
the second network device sends the third routing weight to a routing device;
and the second network equipment communicates with the routing equipment according to the third routing weight.
2. The method of claim 1, wherein the second network device obtaining routing weight information of the first network device comprises:
the second network device receives the fourth routing weight from the first network device.
3. The method of claim 1, wherein the second network device obtaining routing weight information of the first network device comprises:
the second network device receives the fourth routing weight from the routing device.
4. The method of claim 2 or 3, wherein the second network device updates the routing weight information of the second network device from the second routing weight to a third routing weight, comprising:
and the second network equipment updates the routing weight information of the second network equipment into a third routing weight according to the fourth routing weight, wherein the third routing weight is greater than the fourth routing weight.
5. The method of claim 1, wherein the second network device obtaining routing weight information of the first network device comprises:
the second network device obtains a first routing weight when the locally stored running state of the first network device is the main network device.
6. The method of claim 5, wherein the second network device updates the routing weight information of the second network device from the second routing weight to a third routing weight, comprising:
and the second network equipment updates the routing weight information of the second network equipment into a third routing weight according to the first routing weight, wherein the third routing weight is greater than or equal to the first routing weight.
7. The method of claim 1, wherein if the operation status of the first network device is switched from a main network device to a standby network device, the second network device switches the operation status of the second network device from the standby network device to the main network device, comprising:
and if the second network equipment receives the running state switching information from the first network equipment, the second network equipment switches the running state of the second network equipment from the standby network equipment to the main network equipment.
8. The method of claim 1, wherein if the operation status of the first network device is switched from a main network device to a standby network device, the second network device switches the operation status of the second network device from the standby network device to the main network device, comprising:
and if the second network equipment does not receive the connection confirmation information from the first network equipment within a preset time period, the second network equipment switches the running state of the second network equipment from standby network equipment to main network equipment.
9. The method of claim 1, further comprising:
if the fault recovery is detected, the second network equipment switches the running state of the second network equipment from the main network equipment to the standby network equipment;
the second network equipment updates the routing weight information of the second network equipment from the third routing weight to the second routing weight;
and the second network equipment sends the second routing weight to the routing equipment.
10. The method of claim 9, further comprising:
and the second network equipment sends the second routing weight to the first network equipment so that the first network equipment determines that the operation state of the second network equipment is switched from the main network equipment to the standby network equipment.
11. The method according to claim 9 or 10, characterized in that the method further comprises:
and the second network equipment receives the first routing weight from the first network equipment, and the first routing weight is updated to the first routing weight by the fourth routing weight when the running state of the first network equipment is switched from the standby network equipment to the main network equipment.
12. The method of claim 2, wherein after the second network device updates the routing weight information of the second network device from the second routing weight to the third routing weight, the method further comprises:
the second network device sends the third routing weight to the first network device.
13. The method according to any of claims 1 to 12, wherein said first routing weight is greater than said fourth routing weight, and wherein said third routing weight is greater than said second routing weight.
14. An information transmission method, comprising:
the first network equipment switches the running state of the first network equipment from a main network equipment to a standby network equipment;
the first network equipment updates the routing weight information of the first network equipment from the first routing weight to a fourth routing weight;
the first network device sends the fourth routing weight to the routing device or the second network device, so that when the operation state of the second network device is switched from the standby network device to the main network device, the second network device updates the second routing weight of the second network device to the third routing weight according to the fourth routing weight.
15. The method of claim 14, wherein before the first network device switches the operational state of the first network device from a primary network device to a standby network device, the method further comprises:
the first network equipment receives a second routing weight sent by the second network equipment; the second routing weight is routing weight information of the second network device when the operation state of the second network device is the standby network device.
16. The method of claim 15, wherein the first network device updates the routing weight information of the first network device from the first routing weight to a fourth routing weight, comprising:
if the connection between the first network device and the second network device is disconnected, the first network device updates the routing weight information of the first network device to the fourth routing weight according to the second routing weight, wherein the fourth routing weight is smaller than or equal to the second routing weight.
17. The method of claim 14, wherein before the first network device updates the routing weight information of the first network device from the first routing weight to the fourth routing weight, the method further comprises:
the first network device receives a third routing weight from the second network device, wherein the third routing weight is routing weight information of the second network device when the operation state of the second network device is a main network device;
the first network device updates the routing weight information of the first network device from the first routing weight to a fourth routing weight, and the method comprises the following steps:
and the first network equipment updates the routing weight information of the first network equipment into the fourth routing weight according to the third routing weight, wherein the fourth routing weight is smaller than the third routing weight.
18. The method of claim 14, further comprising:
if the fault recovery is detected, the first network equipment switches the running state of the first network equipment from standby network equipment to main network equipment;
and the first network equipment updates the routing weight information of the first network equipment to the first routing weight from the fourth routing weight.
19. An information transmission method is applied to a network system, and the network system comprises a first network device, a second network device and a routing device; the method is executed by the routing device, the running state of the first network device is a main network device, and the running state of the second network device is a standby network device; it is characterized by comprising:
the routing equipment receives a third routing weight from second network equipment, wherein the third routing weight is routing weight information of the second network equipment after the running state of the second network equipment is switched to main network equipment by standby network equipment;
the routing device communicates with the second network device according to the third routing weight.
20. The method of claim 19, further comprising:
the routing device receiving a fourth routing weight from the first network device; the fourth routing weight is routing weight information of the first network device after the operation state of the first network device is switched from the main network device to the standby network device.
21. The method of claim 20, further comprising:
the routing device sends the fourth routing weight to the second network device, so that the second network device updates the routing weight information of the second network device to the third routing weight according to the fourth routing weight; the third routing weight is greater than the fourth routing weight.
22. A network device comprising a processor and a transceiver;
the processor is configured to acquire routing weight information of a first network device, where the routing weight information of the first network device includes a first routing weight when an operation state of the first network device is a main network device, or a fourth routing weight after the operation state of the first network device is switched from the main network device to a standby network device;
the processor is further configured to switch the operation state of the second network device from the standby network device to the master network device if the operation state of the first network device is switched from the master network device to the standby network device;
the processor is further configured to update the routing weight information of the second network device from a second routing weight to a third routing weight, where the second routing weight is the routing weight information of the second network device when the operation state of the second network device is a standby network device, the third routing weight is the routing weight information of the second network device after the operation state of the second network device is switched from the standby network device to a main network device, and the third routing weight is greater than or equal to the first routing weight, or the third routing weight is greater than the fourth routing weight;
the transceiver is configured to send the third routing weight to a routing device;
the transceiver is further configured to communicate with the routing device according to the third routing weight.
23. The device of claim 22, wherein the processor is configured to obtain the routing weight information of the first network device, and specifically includes:
the processor is configured to receive, via a transceiver, the fourth routing weight from the first network device.
24. The device of claim 22, wherein the processor is configured to obtain the routing weight information of the first network device, and specifically includes:
the processor is configured to receive, via the transceiver, the fourth routing weight from the routing device.
25. The device according to claim 23 or 24, wherein the processor is configured to update the routing weight information of the second network device from the second routing weight to a third routing weight, and specifically includes:
the processor is configured to update the routing weight information of the second network device to a third routing weight according to the fourth routing weight, where the third routing weight is greater than the fourth routing weight.
26. The device of claim 22, wherein the processor is configured to obtain the routing weight information of the first network device, and specifically includes:
the processor is configured to obtain a first routing weight when the locally stored operation state of the first network device is a main network device.
27. The device of claim 26, wherein the processor is configured to update the routing weight information of the second network device from the second routing weight to a third routing weight, and specifically comprises:
the processor is configured to update the routing weight information of the second network device to a third routing weight according to the first routing weight, where the third routing weight is greater than or equal to the first routing weight.
28. The device according to claim 22, wherein if the operation state of the first network device is switched from the main network device to the standby network device, the processor is configured to switch the operation state of the second network device from the standby network device to the main network device, specifically including:
if the second network device receives the running state switching information from the first network device, the processor is configured to switch the running state of the second network device from the standby network device to the main network device.
29. The device according to claim 22, wherein if the operation state of the first network device is switched from the main network device to the standby network device, the processor is configured to switch the operation state of the second network device from the standby network device to the main network device, specifically including:
and if the second network device does not receive the connection confirmation information from the first network device within a preset time period, the processor is used for switching the running state of the second network device from the standby network device to the main network device.
30. The device of claim 22, wherein the processor is further configured to:
if the fault recovery is detected, switching the running state of the second network equipment from the main network equipment to the standby network equipment;
updating the routing weight information of the second network device from the third routing weight to the second routing weight;
the transceiver is further configured to:
and sending the second routing weight to the routing equipment.
31. The device of claim 30, wherein the transceiver is further configured to:
and sending the second routing weight to the first network equipment so that the first network equipment determines that the operation state of the second network equipment is switched from the main network equipment to the standby network equipment.
32. The apparatus of claim 30 or 31, wherein the transceiver is further configured to:
receiving the first routing weight from the first network device, where the first routing weight is updated to the first routing weight by the fourth routing weight when the operation state of the first network device is switched from a standby network device to a main network device.
33. The device of claim 23, wherein the transceiver is further configured to:
sending the third routing weight to the first network device.
34. The apparatus according to any of claims 22 to 33, wherein said first routing weight is greater than said fourth routing weight, and wherein said third routing weight is greater than said second routing weight.
35. A network device comprising a processor and a transceiver;
the processor is used for switching the running state of the first network equipment from a main network equipment to a standby network equipment;
the processor is further configured to update the routing weight information of the first network device from the first routing weight to a fourth routing weight;
the transceiver is configured to send the fourth routing weight to the routing device or the second network device, so that when the operation state of the second network device is switched from the standby network device to the primary network device, the second network device updates the second routing weight of the second network device to the third routing weight according to the fourth routing weight.
36. The device of claim 35, wherein the transceiver is further configured to:
receiving a second routing weight sent by the second network equipment; the second routing weight is routing weight information of the second network device when the operation state of the second network device is the standby network device.
37. The device according to claim 36, wherein the processor is configured to update the routing weight information of the first network device from the first routing weight to a fourth routing weight, and specifically includes:
if the connection between the first network device and the second network device is disconnected, the processor is configured to update the routing weight information of the first network device to the fourth routing weight according to the second routing weight, where the fourth routing weight is less than or equal to the second routing weight.
38. The device of claim 35, wherein the transceiver is further configured to:
receiving a third routing weight from the second network device, where the third routing weight is routing weight information of the second network device when the operating state of the second network device is a master network device;
the processor is configured to update the routing weight information of the first network device from the first routing weight to a fourth routing weight, and specifically includes:
the processor is configured to update the routing weight information of the first network device to the fourth routing weight according to the third routing weight, where the fourth routing weight is smaller than the third routing weight.
39. The device of claim 35, wherein the processor is further configured to:
if the fault recovery is detected, switching the running state of the first network equipment from the standby network equipment to the main network equipment;
updating the routing weight information of the first network device from the fourth routing weight to the first routing weight.
40. A routing device comprising a transceiver and a processor;
the transceiver is configured to receive a third routing weight from a second network device, where the third routing weight is routing weight information of the second network device after the operation state of the second network device is switched from a standby network device to a main network device;
the processor is further configured to communicate with the second network device according to the third routing weight.
41. The device of claim 40, wherein the transceiver is further configured to:
receiving a fourth routing weight from the first network device; the fourth routing weight is routing weight information of the first network device after the operation state of the first network device is switched from the main network device to the standby network device.
42. The device of claim 41, wherein the transceiver is further configured to:
sending the fourth routing weight to the second network device, so that the second network device updates the routing weight information of the second network device to the third routing weight according to the fourth routing weight; the third routing weight is greater than the fourth routing weight.
43. A communication system, comprising:
a first network device for performing the method of any one of claims 1 to 13;
a second network device for performing the method of any of claims 14 to 18.
44. The system of claim 43, further comprising a routing device;
the routing device for performing the method of any one of claims 19 to 21.
45. A chip comprising a processor and an interface;
the processor is configured to read instructions to perform the method of any one of claims 1 to 21.
46. A computer-readable storage medium comprising a program or instructions for performing the method of any one of claims 1 to 21 when the program or instructions are run on a computer.
CN202010109111.1A 2020-02-21 2020-02-21 Information transmission method and equipment Pending CN113300921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010109111.1A CN113300921A (en) 2020-02-21 2020-02-21 Information transmission method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010109111.1A CN113300921A (en) 2020-02-21 2020-02-21 Information transmission method and equipment

Publications (1)

Publication Number Publication Date
CN113300921A true CN113300921A (en) 2021-08-24

Family

ID=77317576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010109111.1A Pending CN113300921A (en) 2020-02-21 2020-02-21 Information transmission method and equipment

Country Status (1)

Country Link
CN (1) CN113300921A (en)

Similar Documents

Publication Publication Date Title
KR101593168B1 (en) Physical one direction communication device and method thereof
CN101547463B (en) Access point device for wireless LAN and method of securing communication path
CN112543468B (en) Disaster recovery method for gateway equipment and communication equipment
WO2019062500A1 (en) Data transmission method, device and system
CN103957155A (en) Message transmission method and device and interconnection interface
EP2632081A1 (en) Path switch-back method and apparatus in transport network
CN110234140B (en) Communication method, device, entity and storage medium
US11178032B2 (en) Connectivity monitoring for data tunneling between network device and application server
US20030117948A1 (en) Method and gateway GPRS support node (GGSN) for control plane redundancy
CN102882704A (en) Link protection method and apparatus in soft restart upgrade process of ISSU (in-service software upgrade)
CN111988222A (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN113055196B (en) Message processing method, network device and computer readable storage medium
KR101028298B1 (en) Method and system for distributing data processing units in a communication network
JP5039975B2 (en) Gateway device
CN111679925A (en) Database fault processing method and device, computing equipment and storage medium
KR20150045639A (en) Method and its apparatus for selectioning network in beamforming system
JP2014045238A (en) Information processing system, relay device, information processing device and information processing method
WO2015180265A1 (en) Multi-link protection switching method and device
KR20050002865A (en) A method for providing redundancy for channel adapter failure
CN113300921A (en) Information transmission method and equipment
US20220217093A1 (en) Sequence Number Synchronization Method and Apparatus
CN113992740B (en) Middleware based on autonomous control and data transmission method
JP2016162324A (en) Information processing system, control program and control method
CN114362893A (en) Data transmitting method, data receiving method, terminal and computer storage medium
KR20210075501A (en) Network management apparatus and control method thereof

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