CN110572290B - Master device determination method, master device determination device, electronic device, storage medium, and network system - Google Patents
Master device determination method, master device determination device, electronic device, storage medium, and network system Download PDFInfo
- Publication number
- CN110572290B CN110572290B CN201910856813.3A CN201910856813A CN110572290B CN 110572290 B CN110572290 B CN 110572290B CN 201910856813 A CN201910856813 A CN 201910856813A CN 110572290 B CN110572290 B CN 110572290B
- Authority
- CN
- China
- Prior art keywords
- controller
- new
- master device
- original
- network system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/22—Alternate routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing 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 invention relates to a method and a device for determining master equipment, electronic equipment, a storage medium and a network system, and belongs to the field of communication. When the network system is split, the controller which originally plays a decision-making role does not make a decision any more, but transfers the decision-making right to the access equipment. For the access device, the new master device is determined from the aggregation devices in a connection state with the access device, and the role information of the original master device is removed, so that the problem of network failure after all the aggregation devices are disconnected from the controller when the controller makes a decision continuously can be solved, and the problem that the access device does not know which master device to select to forward the message when the controller makes a decision continuously can be solved, so that the occurrence probability of network failure can be reduced.
Description
Technical Field
The application belongs to the field of data communication, and particularly relates to a method and a device for determining master equipment, electronic equipment, a storage medium and a network system.
Background
In the traditional network deployment process, in order to improve the reliability of the whole network of the system, a plurality of devices form a cluster, and the devices in the cluster can be master/slave devices of each other.
In a network cluster including an access device (RouterC), a controller, and a plurality of aggregation routers (e.g., including RouterA and RouterB, of course, in a formal networking process, there may be more than two aggregation router devices in a cluster environment), a master device is generally directly designated by the controller. When the RouteR C needs to perform message interaction with an ascending aggregation router, the controller informs the RouteR C of the main device, so that all the service flows hung below the subsequent RouteR C are selected as the aggregation router of the main device to perform message forwarding. At this time, if the network cluster is split, and a complete system is split into two or more independent subsystems, since there is only one controller, it is necessary that only one subsystem includes the controller, for example, in the above-mentioned network cluster, the controller and RouterA belong to one independent subsystem, the RouterA is managed by the controller, and the RouterB is split out and is not managed by the controller, and belongs to another independent subsystem.
Assume that in the original complete system, the master device is RouterB. In the subsequent packet forwarding process, two situations may occur: (1) in the split subsystem, if the router b continues to manage the service traffic of the router c, because the controller and the router b are in an out-of-connection state, the controller may modify the routing policy, so that the router a manages the service traffic of the router c, and at this time, the router c does not know whether the router a or the router b should be selected to forward the packet, resulting in a network failure; (2) if the original main device is ignored, the controller reselects the aggregation router which is in the same subsystem as the controller as a new main device (for example, RouterA therein), and in a normal case, the newly determined new main device RouterA can normally process the service traffic of the RouterA, however, if the connection between the RouterA and the controller is also interrupted, that is, the controller is not in the same independent subsystem as any aggregation router, the RouterA cannot process the traffic on the RouterA, so that none of the aggregation routers can carry the uplink traffic of the RouterA, and further network failure is caused.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus, an electronic device, a storage medium, and a network system for determining a new master device from a new perspective after a network system is split, so as to reduce the occurrence probability of a network failure.
The embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for determining a master device, where the method is applied to an access device in a network system, where the network system further includes a controller and a plurality of aggregation devices, where the access device, the controller, and the aggregation devices communicate with each other through a network communication protocol, and the controller determines an original master device from the aggregation devices to process a packet sent by the access device, and after the network system is split, the method includes: after the indication message of the disconnection of the original main equipment is obtained, determining a new main equipment from the rest convergence equipment in the online state; sending a notification message to the original main device, wherein the notification message comprises a role clearing request; after feedback information which is sent by the original main device and is used for representing that the notification message is received is determined to be obtained, attribution information of the new main device is sent to the controller and the new main device, so that the controller sends the obtained new path forwarding information corresponding to the new main device. That is, when the network system is split, the controller that originally functions as a decision is not making a decision, but the decision right is transferred to the access device. For the access device, a new main device is determined from the aggregation devices in a connection state with the access device, and role information of the original main device is cleared, so that the problem of network failure after all the aggregation devices are disconnected from the controller when the controller makes a decision continuously can be avoided, and the problem that the access device does not know which main device should be selected to forward a message when two main devices are made continuously when the controller makes a decision can also be avoided, so that the occurrence probability of network failure can be reduced.
With reference to the embodiment of the first aspect, in a possible implementation manner, after the sending the attribution information of the new master device to the controller and the new master device, the method further includes:
and when the message is acquired, sending the message to the new main equipment for processing.
In a second aspect, an embodiment of the present application provides a method for determining a master device, which is applied to a controller included in a network system, where the network system further includes an access device and a plurality of aggregation devices, where the access device, the controller, and the aggregation devices communicate with each other through a network communication protocol, and the controller determines an original master device from the aggregation devices to process a packet sent by the access device, and after the network system is split, the method includes: after the original main equipment is determined to be disconnected, an indication message for representing the disconnection of the original main equipment is sent to the outside; acquiring attribution information of the new main equipment determined by the access equipment; and sending the acquired new path forwarding information corresponding to the new main equipment so that the new main equipment can issue the new path forwarding information. That is, when the network system is split, the controller that originally functions as a decision is not making a decision, but the decision right is transferred to the access device. For the access device, the new master device is determined from the aggregation devices in a connection state with the access device, and the role information of the original master device is removed, so that the problem of network failure after all the aggregation devices are disconnected from the controller when the controller makes a decision continuously can be solved, and the problem that the access device does not know which master device to select to forward the message when the controller makes a decision continuously can be solved, so that the occurrence probability of network failure can be reduced.
With reference to the second aspect, in a possible implementation manner, before the sending externally an indication message indicating that the original master device is disconnected, the method further includes: judging whether a keep-alive request sent by the original main equipment is acquired within a preset time period; and if not, determining that the original main equipment is disconnected.
In a third aspect, an embodiment of the present application provides a method for determining a master device, which is applied to a network system, where the network system includes a controller, an access device, and multiple aggregation devices that communicate with each other through a network communication protocol, where the controller determines an original master device from the multiple aggregation devices to process a packet sent by the access device, and when the network system is split, the method includes: after determining that the original main equipment is disconnected, the controller sends an indication message for representing the disconnection of the original main equipment to the outside; after the access device acquires the indication message of the disconnection of the original main device, determining a new main device from the rest convergence devices in the online state; the access equipment sends a notification message to the original main equipment, wherein the notification message comprises a role clearing request; the original main device acquires the role clearing request and sends feedback information to the access device after clearing the corresponding path forwarding information; after the access equipment acquires the feedback information, the attribution information of the new main equipment is sent to the controller and the new main equipment; the controller sends the acquired new path forwarding information corresponding to the new main equipment; and the new master equipment issues the new path forwarding information. That is, when the network system is split, the controller that originally functions as a decision is not making a decision, but the decision right is transferred to the access device. For the access device, the new master device is determined from the aggregation devices in a connection state with the access device, and the role information of the original master device is removed, so that the problem of network failure after all the aggregation devices are disconnected from the controller when the controller makes a decision continuously can be solved, and the problem that the access device does not know which master device to select to forward the message when the controller makes a decision continuously can be solved, so that the occurrence probability of network failure can be reduced.
In a fourth aspect, an embodiment of the present application provides a master device determining apparatus, which is applied to an access device included in a network system, where the network system further includes a controller and a plurality of aggregation devices, where the access device, the controller, and the aggregation devices communicate with each other through a network communication protocol, and the controller determines an original master device from the aggregation devices to process a packet sent by the access device, where the apparatus includes: the device comprises a determining module and a sending module. The determining module is used for determining a new main device from the rest gathering devices in the online state after the indication message of the disconnection of the original main device is obtained; a sending module, configured to send a notification message to the original master device, where the notification message includes a role clearing request; the sending module is further configured to send the attribution information of the new master device to the controller and the new master device after the determining module determines that the feedback information sent by the original master device and indicating that the notification message is received is obtained, so that the controller sends the obtained new path forwarding information corresponding to the new master device.
With reference to the embodiment of the fourth aspect, in a possible implementation manner, the apparatus further includes an obtaining module, configured to obtain a packet, and the sending module is further configured to send the packet to the new master device for processing.
In a fifth aspect, an embodiment of the present application provides a master device determining apparatus, which is applied to a controller included in a network system, where the network system further includes an access device and a plurality of aggregation devices, where the access device, the controller, and the aggregation devices communicate with each other through a network communication protocol, and the controller determines an original master device from the aggregation devices to process a packet sent by the access device, where the apparatus includes: the device comprises a sending module, an obtaining module and a forwarding module. The sending module is used for sending an indication message for representing the disconnection of the original main equipment to the outside after the original main equipment is determined to be disconnected; an obtaining module, configured to obtain attribution information of a new master device determined by the access device; and the forwarding module is used for sending the acquired new path forwarding information corresponding to the new main equipment so that the new main equipment can issue the new path forwarding information.
With reference to the fifth aspect, in a possible implementation manner, the apparatus further includes a determining module and a determining module, where the determining module is configured to determine whether a keep-alive request sent by the original master device is acquired within a preset time period; and the determining module is used for determining that the original main equipment is disconnected when the judging module judges that the original main equipment is not connected.
In a sixth aspect, an embodiment of the present application provides a network system, including a controller, an access device, and multiple aggregation devices, where the controller is configured to determine an original master device from the multiple aggregation devices to process a packet sent by the access device, and after the network system is split, the controller is configured to send an indication message indicating that the original master device is disconnected after determining that the original master device is disconnected; the access device is used for determining a new main device from the rest aggregation devices in the online state after acquiring the indication message of the disconnection of the original main device; the access device is used for sending a notification message to the original master device, wherein the notification message comprises a role clearing request; the original main device is used for acquiring the role clearing request and sending feedback information to the access device after clearing the corresponding path forwarding information; the access device is configured to send the affiliation information of the new master device to the controller and the new master device after acquiring the feedback information; the controller is configured to send the acquired new path forwarding information corresponding to the new master device; and the new master device is used for issuing the new path forwarding information.
In a seventh aspect, an embodiment of the present application further provides an electronic device, including: a memory and a processor, the memory and the processor connected; the memory is used for storing programs; the processor calls a program stored in the memory to perform the method of the first aspect embodiment and/or provided in connection with the first aspect embodiment or the second aspect embodiment and/or any possible implementation manner of the second aspect embodiment.
In an eighth aspect, the present application further provides a non-transitory computer-readable storage medium (hereinafter, referred to as a storage medium), on which a computer program is stored, where the computer program is executed by a computer to perform the method in the foregoing first aspect embodiment and/or the method provided in connection with the first aspect embodiment or the second aspect embodiment and/or any possible implementation manner of the second aspect embodiment.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The foregoing and other objects, features and advantages of the application will be apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not intended to be to scale as practical, emphasis instead being placed upon illustrating the subject matter of the present application.
Fig. 1 shows a schematic structural diagram of a network system before splitting is performed according to an embodiment of the present application.
Fig. 2 shows a schematic structural diagram of a network system after splitting is performed according to an embodiment of the present application.
Fig. 3 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Fig. 4 shows a flowchart of a method for determining a master device according to an embodiment of the present application.
Fig. 5 shows one of the block diagrams of the main device determination apparatus according to the embodiment of the present application.
Fig. 6 shows a second block diagram of the main device determination apparatus according to the 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.
It should be noted that: the term "and/or" in this application is only one kind of association relationship describing the associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In addition, the determination of the defect of the new master device, which is easy to cause network failure, by the controller after the network system is split in the prior art is the result of the practical and careful study of the applicant, and therefore, the discovery process of the above defect and the solution proposed by the embodiment of the present application to the above defect in the following description should be the contribution of the applicant to the present application in the process of the present application.
In order to solve the foregoing problems, embodiments of the present application provide a method and an apparatus for determining a master device, an electronic device, a storage medium, and a network system, where after a network system is split, a new master device is determined from a new perspective, so as to reduce the occurrence probability of a network fault. The technology can be realized by adopting corresponding software, hardware and a combination of software and hardware. The following describes embodiments of the present application in detail.
In the traditional network deployment process, in order to improve the whole network reliability of the system, a plurality of devices form a cluster. On this basis, please refer to fig. 1, an embodiment of the present application provides a network system 100 for implementing the master device determining method. Therein, the network system 100 includes a controller 110, an access device 120, and a plurality of aggregation devices 130 (only two are shown in the figure, in practical cases, the number of aggregation devices 130 may be greater than two).
The controller 110, the access device 120, and the aggregation devices 130 may communicate with each other via a network communication protocol (e.g., NETCONF, SNMP, etc.) to perform information interaction. It is worth noting that even if the connection between the devices breaks, the devices can still communicate according to the network communication protocol.
Before the network system 100 is split, the controller 110 plays a role in controlling, and may select one aggregation device 130 from among the multiple aggregation devices 130 as an original master device according to the obtained configuration information of the user. For example, a management address of a RouterB (one of the aggregation devices 130) is configured on the controller 110, the controller 110 may manage the RouterB and use the RouterB as an original master device.
After determining the original master device, the controller 110 waits for registration requests by the access device 120 and all aggregation devices. When the controller 110 receives the registration request of the RouterB, the controller 110 may send response information to the RouterB, where the response information indicates that the RouterB is an original master device (original master aggregation device) of the entire network system 100. And after receiving the response information, the RouterB stores the response information locally. Similarly, when the controller 110 receives a registration request from another device, for example, RouterA (one of the aggregation devices 130) or RouterC (the access device 120), it also sends response information representing that RouterB is the original master device of the entire network system 100 to the other device, and accordingly, the other device also stores the response information locally. To this end, all devices included in the entire network system 100 acquire response information of the RouterB as the original master device.
In addition, the controller 110 may also send a topology query message to each aggregation device 130 through a network communication protocol to query the network topology of the entire network system 100 and the connection relationship between each aggregation device 130 and other devices in the network system 100. After obtaining the network topology and the connection relationship between each aggregation device 130 and other devices in the network system 100, the user may plan path forwarding information for the original master device in the controller 110 based on the network topology according to the currently determined connection relationship between the original master device and other devices, where the determined forwarding path is, for example: the RouterC-RouterB-center network represents that all service traffic hung on the RouterC needs to be forwarded to the center network. And then the controller sends the path forwarding information to the RouterB so that the RouterB can be stored locally and issued externally.
The access device 120(RouterC) acquires the path forwarding information issued by the original main device (RouterB) and learns the path forwarding information, and when the access device acquires the message, the access device sends the message to the original main device, and the original main device forwards the message according to the path forwarding information.
In addition, after the access device 120 and the aggregation device 130 complete registration with the controller 110, a keep-alive protocol may be run, and keep-alive request messages are sent to the controller 110 through the connection with the controller 110 every preset period. The preset period may be set according to actual conditions, and may be, for example, 3 seconds, 7 seconds, and the like. After passively acquiring the keep-alive request message, the controller 110 replies a keep-alive response message to the transmission path of the keep-alive request message.
For a device sending a keep-alive request message, after sending the keep-alive request message, if the device does not receive a keep-alive response message replied by the controller 110, the device will send the keep-alive request message again, and if the device does not receive the keep-alive response message more than a preset number of times (for example, three times), the device determines that the connection between the device and the controller 110 is disconnected.
For the controller 110, if the controller 110 does not receive the keep-alive request sent by a specific device within a preset time period (e.g., 1 minute), it is determined that the specific device is disconnected from itself.
Due to network instability, communication line failure, etc., the connection between some devices and other devices in the network system 100 may be broken, and at this time, the network system 100 is split into two or more independent subsystems. Whether or not a connection between devices within network system 100 is broken may be determined by sending keep-alive request messages and keep-alive response messages to each other as described above.
When the network system 100 is split (e.g., into the structure shown in fig. 2), the network system 100 needs to determine a new master device again in order to reduce the probability of network failure. The 110 controller is used for sending an indication message for indicating the disconnection of the original master device to the outside; the access device 120 is configured to determine a new master device from the remaining aggregation devices 130 in the online state after acquiring the indication message indicating that the original master device is disconnected; the access device 120 is configured to send a notification message to the original master device, where the notification message includes a role clearing request; the original main device is used for acquiring the role clearing request and sending feedback information to the access device after clearing the corresponding path forwarding information; the access device 120 is configured to send the attribution information of the new master device to the controller 110 and the new master device after acquiring the feedback information; the controller 110 is configured to send the acquired new path forwarding information corresponding to the new master device; and the new master device is used for releasing the new path forwarding information.
For a detailed description of the content executed by each device in the network system 100 after the splitting, reference is made to the following method embodiment.
In addition, referring to fig. 3, an electronic device 200 is further provided, where the electronic device 200 may be the controller 110 and/or the access device 120 and/or the aggregation device 130 described above.
The electronic device 200 may include: a processor 210, a memory 220.
It should be noted that the components and configuration of the electronic device 200 shown in FIG. 3 are exemplary only, and not limiting, and that the electronic device 200 may have other components and configurations as desired.
The processor 210, the memory 220, and other components that may be present in the electronic device 200 are electrically connected to each other, directly or indirectly, to enable the transfer or interaction of data. For example, the processor 210, the memory 220, and other components that may be present may be electrically coupled to each other via one or more communication buses or signal lines.
The memory 220 is used for storing a program, for example, a program corresponding to a host device determination method appearing later or a host device determination apparatus appearing later. Optionally, when the memory 220 stores therein the main device determining means, the main device determining means includes at least one software function module which can be stored in the memory 220 in the form of software or firmware (firmware).
Alternatively, the software function module included in the main device determination apparatus may be solidified in an Operating System (OS) of the electronic device 200.
The processor 210 is adapted to execute an executable module stored in the memory 220, such as a software function module or a computer program comprised by the master device determination apparatus. The computer program may be executed by the processor 210 upon receiving execution instructions.
When the electronic device 200 is the access device 120, for example, the following steps may be performed: after acquiring an indication message of disconnection of the original main equipment, determining a new main equipment from the rest aggregation equipment in the online state; sending a notification message to the original main device, wherein the notification message comprises a role clearing request; after feedback information which is sent by the original main device and is used for representing that the notification message is received is determined to be obtained, attribution information of the new main device is sent to the controller and the new main device, so that the controller sends the obtained new path forwarding information corresponding to the new main device.
When the electronic device 200 is the controller 110, for example, after determining that the original master device is disconnected, sending an indication message indicating that the original master device is disconnected to the outside; acquiring attribution information of the new main equipment determined by the access equipment; and sending the acquired new path forwarding information corresponding to the new main equipment so that the new main equipment can issue the new path forwarding information.
Of course, the method disclosed in any of the embodiments of the present application can be applied to the processor 110, or implemented by the processor 110.
For a detailed description of the content executed by the electronic device 200, reference is made to the following method embodiment.
The following description will be made for a master device determination method provided in the present application.
After the network system 100 shown in fig. 1 is split to form the network system shown in fig. 2 (assuming that the original master device is RouterB, in fig. 2, the connection between the original master device RouterB and the controller 110 is disconnected, and the RouterB is split alone), please refer to fig. 4, an embodiment of the present application provides a master device determining method, which is applied to the network system 100 shown in fig. 1. The method comprises the following steps:
step S110: and after determining that the original main equipment is disconnected, the controller externally sends an indication message for representing the disconnection of the original main equipment.
According to the above description, the controller 110 may determine whether the original master device is disconnected by determining whether the keep-alive request sent by the original master device RouterB is acquired within a preset time period. When the controller 110 does not acquire the keep-alive request sent by the RouterB within a preset time period, it is determined that the original main device RouterB is disconnected. Therefore, the controller 110 determines that the original network system 100 is split and needs to diffuse an indication message indicating disconnection of the original master device RouterB in the whole network, so that the subsequent access device RouterC can acquire the indication message and re-determine a new master device.
In addition, in the original network system 100, the controller 110 plays a control role, and may designate the home of the master device, and after the controller 110 determines that the original network system 100 is split, the controller 110 no longer actively designates a new master device, i.e., no longer assumes the role of decision, and transfers the authority of decision to the access device RouterC.
Step S120: after the access device obtains the indication message of the disconnection of the original main device, a new main device is determined from the rest aggregation devices in the online state.
Of course, it should be noted that in the master device determining method provided in the embodiment of the present application, after the original network system 100 is split, the access device 120 and at least one aggregation device 130 are connected, that is, there is at least one aggregation device 130 in an online state with respect to the access device 120.
After acquiring the indication message of the disconnection of the original master device RouterB, the access device 120 determines a new master device from the aggregation device 130 in the online state again.
Alternatively, access device 120 may determine the new master device according to preset rules.
As an alternative embodiment, the preset rule may be: the access device 120 randomly selects one sink device 130 from the aggregation devices 130 that are in an online state and determines it as a new master device.
As another alternative, the preset rule may be: the access device 120 obtains the device serial numbers of the aggregation devices 130 in the online state, performs hash operation on each device serial number, and determines the aggregation device 130 with the smallest hash value as a new master device.
Of course, the above preset rules are only examples, and it is understood that other embodiments for determining a unique datum from a plurality of data may be applied to the present application.
Since only the aggregation device RouterA is online in the network system 100 after the splitting shown in fig. 2, the RouterA is a new master device for the network system 100 in fig. 2 no matter what way the preset rule takes.
Step S130: and the access equipment sends a notification message to the original main equipment, wherein the notification message comprises a role clearing request.
In order to avoid that the original master device RouterB still issues path forwarding information to the outside and causes a system failure, after the access device 120 determines a new master device RouterA, the access device 120 further needs to send a notification message including a role clearing request to the original master device RouterB.
Of course, as an optional implementation manner, the notification message may further include the attribution information of the new master device, for example, with reference to fig. 2, the attribution information of the new master device represents that the new master device is RouterA.
It is noted that here the access device 120 sends the notification message to the original master device RouterB through the network communication protocol.
Step S140: and the original main equipment acquires the role clearing request and sends feedback information to the access equipment after clearing the corresponding path forwarding information.
After the original main device RouterB obtains the role clearing request, all routing table entries which are locally stored and are related to the original main device when the original main device RouterB is used as the original main device are cleared, and path forwarding information is not continuously issued subsequently.
Optionally, when the notification message may further include the attribution information of the new master device, the original master device RouterB may further store the attribution information of the new master device locally, for example, the original master device RouterB stores the attribution information that the new master device is RouterA locally.
After the original master device RouterB clears all the routing table entries related to the original master device serving as the original master device, the original master device RouterB sends feedback information (i.e., reply message) to the access device 120, and the feedback information represents that the role clearing action is completed, so that the access device 120 continues the subsequent process.
Step S150: and after the access equipment acquires the feedback information, the attribution information of the new main equipment is sent to the controller and the new main equipment.
After obtaining the feedback information representing that the original master device RouterA b completes the role clearing action, the access device 120 directly sends attribution information representing that the RouterA is determined to be the new master device to the new master device RouterA. In addition, access device 120 also needs to communicate to controller 110 home information characterizing the determination that RouterA is the new master. The access device 120 may directly send the attribution information to the controller 110, or after the access device 120 sends the attribution information to the new master device RouterA, the new master device RouterA sends the attribution information to the controller 110.
Step S160: and the controller sends the acquired new path forwarding information corresponding to the new main equipment.
After acquiring the attribution information of the new master device sent by the access device 120, the controller 110 receives the decision of the access device 120, and determines that the new master device is RouterA. At this time, the controller 110 retrieves the network topology of the entire network system 100 and the connection relationship between RouterA and other devices, which are saved in advance, to be displayed to the user for viewing. The user may plan new path forwarding information for the new master device RouterA in the controller 110 again according to the connection relationship between the new master device RouterA and the other devices determined at present, and by combining the split original master device RouterB, for example, the determined forwarding path is: RouterC-RouterA-centric network. The new path forwarding information indicates that all traffic flow dropped on the RouterC needs to be forwarded to the central network through the RouterA. Then, the controller 110 issues the new path forwarding information to RouterA.
Step S170: and the new master equipment issues the new path forwarding information.
The new main device RouterA stores the new main device RouterA itself as the attribution information of the new main device and the new path forwarding information in the local, and then issues the new path forwarding information to the outside.
Of course, when the subsequent access device 120 acquires the new path forwarding information and the message, the message is sent to the new master device RouterA according to the new path forwarding information. And the new main equipment RouterA acquires the message and forwards the message according to the new path forwarding information.
In the method for determining master device provided in the embodiment of the present application, after the network system 100 is split, the controller 110 that originally performs a decision-making function does not make a decision, but transfers the decision-making right to the access device 120. For the access device 120, it is a new master device determined from the aggregation devices 130 in a connection state with itself, and removes role information of the original master device, so that a network failure problem occurring after all the aggregation devices 130 are disconnected from the controller 110 when a decision is continuously made by the controller 110 can be avoided, and a problem that the access device 120 does not know which master device should be selected to forward a packet when a decision is continuously made by the controller 110 can be avoided, so that an occurrence probability of a network failure can be reduced.
In addition, please refer to fig. 5, an embodiment of the present application further provides a master device determining apparatus 400, which is applied to the access device 120 included in the network system 100. The device comprises: a determination module 410 and a sending module 420.
A determining module 410, configured to determine a new primary device from the remaining aggregation devices in the online state after acquiring the indication message indicating that the original primary device is disconnected;
a sending module 420, configured to send a notification message to the original master device, where the notification message includes a role clearing request;
the sending module 420 is further configured to send the attribution information of the new master device to the controller and the new master device after the determining module determines that the feedback information sent by the original master device and indicating that the notification message is received is obtained, so that the controller sends the obtained new path forwarding information corresponding to the new master device.
Optionally, the apparatus may further include an obtaining module, configured to obtain a packet, and correspondingly, the sending module 420 is further configured to send the packet to the new master device for processing.
The main device determining apparatus 400 provided in the embodiment of the present application has the same implementation principle and the same technical effect as those of the foregoing method embodiments, and for the sake of brief description, reference may be made to corresponding contents in the foregoing method embodiments where no mention is made in part of the apparatus embodiments.
In addition, referring to fig. 6, an embodiment of the present application further provides a master determining apparatus 500, which is applied to the controller 110 included in the network system 100. The device comprises: a sending module 510, an obtaining module 520, and a forwarding module 530.
A sending module 510, configured to send, to the outside, an indication message indicating that an original master device is disconnected after the original master device is determined to be disconnected;
an obtaining module 520, configured to obtain the attribution information of the new master device determined by the access device;
a forwarding module 530, configured to send the obtained new path forwarding information corresponding to the new master device, so that the new master device issues the new path forwarding information.
The main device determining apparatus 500 provided in the embodiment of the present application has the same implementation principle and the same technical effect as those of the foregoing method embodiments, and for brief description, reference may be made to the corresponding contents in the foregoing method embodiments for the parts that are not mentioned in the embodiment of the present application.
In addition, the present application also provides a non-volatile computer-readable storage medium (storage medium for short), where the storage medium stores a computer program, and when the computer program is executed by a computer, the computer program executes the steps included in the above-mentioned master device determining method.
In summary, according to the method, the apparatus, the electronic device, the storage medium, and the network system for determining the master device provided in the embodiments of the present invention, when the network system is split, the controller that originally performs a decision making function does not make a decision, but transfers the decision making right to the access device. For the access device, the new master device is determined from the aggregation devices in a connection state with the access device, and the role information of the original master device is removed, so that the problem of network failure after all the aggregation devices are disconnected from the controller when the controller makes a decision continuously can be solved, and the problem that the access device does not know which master device to select to forward the message when the controller makes a decision continuously can be solved, so that the occurrence probability of network failure can be reduced.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions may be stored in a storage medium if they are implemented in the form of software function modules and sold or used as separate products. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a notebook computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application 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 application, and shall be covered by the scope of the present application.
Claims (10)
1. A method for determining a master device is applied to an access device in a network system, wherein the network system further comprises a controller and a plurality of aggregation devices, the access device, the controller and the aggregation devices are communicated with each other through a network communication protocol, the controller determines an original master device from the aggregation devices to process a message sent by the access device, and when the network system is split, the method comprises the following steps:
after the indication message of the disconnection of the original main equipment is obtained, determining a new main equipment from the rest convergence equipment in the online state;
sending a notification message to the original main device, wherein the notification message comprises a role clearing request;
after feedback information which is sent by the original main device and is used for representing that the notification message is received is determined to be obtained, attribution information of the new main device is sent to the controller and the new main device, so that the controller sends the obtained new path forwarding information corresponding to the new main device.
2. The method of claim 1, wherein after sending the home information of the new master device to the controller and the new master device, the method further comprises:
and when the message is acquired, sending the message to the new main equipment for processing.
3. A method for determining a master device is applied to a controller included in a network system, the network system further includes an access device and a plurality of aggregation devices, the access device, the controller and the aggregation devices communicate with each other through a network communication protocol, the controller determines an original master device from the aggregation devices to process a message sent by the access device, and when the network system is split, the method includes:
after the original main equipment is determined to be disconnected, an indication message for representing the disconnection of the original main equipment is sent to the outside;
acquiring attribution information of the new main equipment determined by the access equipment;
and sending the acquired new path forwarding information corresponding to the new main equipment so that the new main equipment can issue the new path forwarding information.
4. The method according to claim 3, wherein before said externally sending an indication message characterizing disconnection of the original master device, the method further comprises:
judging whether a keep-alive request sent by the original main equipment is acquired within a preset time period;
and if not, determining that the original main equipment is disconnected.
5. A method for determining a master device is applied to a network system, the network system comprises a controller, an access device and a plurality of aggregation devices which are communicated with each other through a network communication protocol, the controller determines an original master device from the aggregation devices to process a message sent by the access device, and when the network system is split, the method comprises the following steps:
after determining that the original main equipment is disconnected, the controller sends an indication message for representing the disconnection of the original main equipment to the outside;
after the access device acquires the indication message of the disconnection of the original main device, determining a new main device from the rest convergence devices in the online state;
the access equipment sends a notification message to the original main equipment, wherein the notification message comprises a role clearing request;
the original main device acquires the role clearing request and sends feedback information to the access device after clearing the corresponding path forwarding information;
after the access equipment acquires the feedback information, the attribution information of the new main equipment is sent to the controller and the new main equipment;
the controller sends the acquired new path forwarding information corresponding to the new main equipment;
and the new master equipment issues the new path forwarding information.
6. A master device determining apparatus, applied to an access device included in a network system, where the network system further includes a controller and a plurality of aggregation devices, where the access device, the controller, and the aggregation devices communicate with each other through a network communication protocol, and the controller determines an original master device from the aggregation devices to process a packet sent by the access device, where the apparatus includes:
the determining module is used for determining a new main device from the rest gathering devices in the online state after the indication message of the disconnection of the original main device is obtained;
a sending module, configured to send a notification message to the original master device, where the notification message includes a role clearing request;
the sending module is further configured to send the attribution information of the new master device to the controller and the new master device after the determining module determines that the feedback information sent by the original master device and indicating that the notification message is received is obtained, so that the controller sends the obtained new path forwarding information corresponding to the new master device.
7. A master device determining apparatus, applied to a controller included in a network system, where the network system further includes an access device and a plurality of aggregation devices, where the access device, the controller, and the aggregation devices communicate with each other through a network communication protocol, and the controller determines an original master device from the aggregation devices to process a packet sent by the access device, where the apparatus includes:
the sending module is used for sending an indication message for representing the disconnection of the original main equipment to the outside after the original main equipment is determined to be disconnected;
an obtaining module, configured to obtain attribution information of a new master device determined by the access device;
and the forwarding module is used for sending the acquired new path forwarding information corresponding to the new main equipment so that the new main equipment can issue the new path forwarding information.
8. A network system is characterized in that the network system comprises a controller, an access device and a plurality of convergence devices which are communicated with each other through a network communication protocol, wherein the controller is used for determining an original main device from the plurality of convergence devices to process a message sent by the access device, and when the network system is split,
the controller is used for sending an indication message for representing the disconnection of the original main equipment to the outside after the original main equipment is determined to be disconnected;
the access device is used for determining a new main device from the rest aggregation devices in the online state after acquiring the indication message of the disconnection of the original main device;
the access device is used for sending a notification message to the original master device, wherein the notification message comprises a role clearing request;
the original main device is used for acquiring the role clearing request and sending feedback information to the access device after clearing the corresponding path forwarding information;
the access device is configured to send the affiliation information of the new master device to the controller and the new master device after acquiring the feedback information;
the controller is configured to send the acquired new path forwarding information corresponding to the new master device;
and the new master device is used for issuing the new path forwarding information.
9. An electronic device, comprising: a memory and a processor, the memory and the processor connected;
the memory is used for storing programs;
the processor calls a program stored in the memory to perform the method of any of claims 1-5.
10. A storage medium, having stored thereon a computer program which, when executed by a computer, performs the method of any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910856813.3A CN110572290B (en) | 2019-09-10 | 2019-09-10 | Master device determination method, master device determination device, electronic device, storage medium, and network system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910856813.3A CN110572290B (en) | 2019-09-10 | 2019-09-10 | Master device determination method, master device determination device, electronic device, storage medium, and network system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110572290A CN110572290A (en) | 2019-12-13 |
CN110572290B true CN110572290B (en) | 2022-02-22 |
Family
ID=68778965
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910856813.3A Active CN110572290B (en) | 2019-09-10 | 2019-09-10 | Master device determination method, master device determination device, electronic device, storage medium, and network system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110572290B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113300981A (en) | 2020-02-21 | 2021-08-24 | 华为技术有限公司 | Message transmission method, device and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1897538A (en) * | 2005-07-13 | 2007-01-17 | 武汉烽火网络有限责任公司 | Data network equipment and its management controlling method |
CN102355370A (en) * | 2011-10-10 | 2012-02-15 | 瑞斯康达科技发展股份有限公司 | Method for Ethernet board-level protection, device and system |
CN103581025A (en) * | 2013-10-23 | 2014-02-12 | 华为技术有限公司 | Method and system for processing routing information and equipment |
CN104426691A (en) * | 2013-08-26 | 2015-03-18 | 华为技术有限公司 | Fault processing method, aggregation gatway (AGG) and radio side gateway |
CN105306330A (en) * | 2014-06-24 | 2016-02-03 | 中兴通讯股份有限公司 | Network protection method and device, and primary convergence network element in network |
CN108023800A (en) * | 2016-11-03 | 2018-05-11 | 中国移动通信集团广东有限公司 | A kind of guard method of LTE bearer networks and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8711855B1 (en) * | 2012-12-18 | 2014-04-29 | Juniper Networks, Inc. | Topology discovery, control channel establishment, and datapath provisioning within an aggregation network with centralized control |
-
2019
- 2019-09-10 CN CN201910856813.3A patent/CN110572290B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1897538A (en) * | 2005-07-13 | 2007-01-17 | 武汉烽火网络有限责任公司 | Data network equipment and its management controlling method |
CN102355370A (en) * | 2011-10-10 | 2012-02-15 | 瑞斯康达科技发展股份有限公司 | Method for Ethernet board-level protection, device and system |
CN104426691A (en) * | 2013-08-26 | 2015-03-18 | 华为技术有限公司 | Fault processing method, aggregation gatway (AGG) and radio side gateway |
CN103581025A (en) * | 2013-10-23 | 2014-02-12 | 华为技术有限公司 | Method and system for processing routing information and equipment |
CN105306330A (en) * | 2014-06-24 | 2016-02-03 | 中兴通讯股份有限公司 | Network protection method and device, and primary convergence network element in network |
CN108023800A (en) * | 2016-11-03 | 2018-05-11 | 中国移动通信集团广东有限公司 | A kind of guard method of LTE bearer networks and device |
Non-Patent Citations (2)
Title |
---|
"Cisco CPT Configuration Guide–CTC and Documentation Release 9.5.x and Cisco IOS Release 15.2(01)";佚名;《https://www.cisco.com/c/en/us/td/docs/optical/cpt/r9_5/configuration/guide/cpt95_configuration/cpt93_configuration_chapter_01011.html》;20180131;全文 * |
"基于以太网汇聚型交换机的高可靠性主备倒换研究";李洁;《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》;20140915;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110572290A (en) | 2019-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5863942B2 (en) | Provision of witness service | |
US20160078116A1 (en) | Providing high availability in an active/active appliance cluster | |
US20070041328A1 (en) | Devices and methods of using link status to determine node availability | |
WO2018090386A1 (en) | Method, device and system for processing abnormities of nf modules | |
CN110995873A (en) | Gateway service interface discovery method, system, electronic device and storage medium | |
CN109379291B (en) | Method and device for processing service request in networking | |
CN110932876B (en) | Communication system, method and device | |
US7768905B2 (en) | Program and method for controlling communication | |
WO2017076278A1 (en) | Method and device for flexibly processing link between network elements | |
MX2010010616A (en) | Updating routing and outage information in a communications network. | |
CN110572290B (en) | Master device determination method, master device determination device, electronic device, storage medium, and network system | |
CN114090342A (en) | Storage disaster tolerance link management method, message execution node and storage control cluster | |
US10680930B2 (en) | Method and apparatus for communication in virtual network | |
CN104243473B (en) | A kind of method and device of data transmission | |
CN109412942B (en) | Cloud network transmission routing method and system | |
CN106708881B (en) | Interaction method and device based on network file system | |
CN112422428B (en) | Link state acquisition method and device, electronic equipment and readable storage medium | |
EP4184822A1 (en) | Method and apparatus for keeping user terminal alive | |
US20200341968A1 (en) | Differential Update of Local Cache from Central Database | |
KR101737697B1 (en) | Method and apparatus for distributing controller load in software defined networking environment | |
CN110730127A (en) | BGP session establishing method, device and computer storage medium | |
CN113596109B (en) | Service request operation method, system, device, equipment and storage medium | |
KR101740799B1 (en) | Method of failover for network service in software defined networking environment | |
WO2014040409A1 (en) | Routing management method and node | |
US10122588B2 (en) | Ring network uplink designation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |