Edge switch control method, device, server and edge switch cluster

By obtaining the configuration information of the virtual gateway and querying the switch marshalling information, determining the scheduling path and issuing configuration information, the problem of inefficient control of edge switches is solved, and precise control and stability management of edge switches is realized.

CN119232677BActive Publication Date: 2025-03-11BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411730307.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-03-11
Estimated Expiration
2044-11-28

AI Technical Summary

Technical Problem

The prior art is difficult to effectively control the traffic access of multi-tenant and the conversion of virtual local area network (VLAN) traffic to virtual extended local area network (VXLAN) on the cloud, resulting in inefficient control of edge switches.

Method used

By obtaining the configuration information of the virtual gateway, query the switch group information based on the identification of the target edge switch, determine the scheduling path, and issue configuration information according to the scheduling path to configure the target edge switch. This method divides the switch controller and edge switches according to geographical location, realizing the precise scheduling and configuration of the target edge switches in the cluster.

Benefits of technology

It realizes precise control of edge switches, improves control efficiency, ensures the stability of the control system, and can effectively manage multi-tenant traffic access and VLAN to VXLAN traffic conversion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119232677B_ABST
    Figure CN119232677B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of computer network technology, and discloses a control method, device, server and edge switch cluster of edge switches, including: obtaining configuration information of a virtual gateway, querying switch grouping information based on the identifier of a target edge switch in the configuration information, thereby determining a scheduling path, issuing configuration information according to the scheduling path, and configuring the target edge switch according to the configuration content. Among them, the switch grouping information is divided based on a first switch controller and a first geographical location of a first edge switch, and the first switch controller is connected to the corresponding first edge switch. The method divides the switch controller and the edge switch according to the geographical location, and through a specific controller component and forwarding device arrangement and organization method, it realizes the scheduling and configuration of the target edge switch in the cluster according to the grouping information, ensures the precise control of the edge switch, and ensures the stability of the control system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer network technology, and in particular to a control method, device, server and edge switch cluster of an edge switch. Background Art

[0002] Edge access is a distributed computing model that moves computing and data processing functions from centralized cloud computing centers to edge devices or edge nodes that are closer to the data source for processing. Generally, an edge access switch (ASW) is deployed at an edge access point (AccessPOP, AP). The edge access switch needs to carry traffic access for multiple tenants and complete the conversion of user-side virtual LAN (VLAN) traffic to virtual eXtensible Local Area Network (VXLAN) traffic on the cloud. Usually, multiple edge access switches are deployed at edge access points. Based on this, the control of edge switches is an urgent problem to be solved. Summary of the invention

[0003] In view of this, the present disclosure provides a control method, device, server and edge switch cluster of an edge switch to solve the control problem of the edge switch.

[0004] In a first aspect, the present disclosure provides a method for controlling an edge switch, the method comprising:

[0005] Acquire configuration information of the virtual gateway, the configuration information including an identifier of a target edge switch corresponding to the virtual gateway and configuration content of the virtual gateway;

[0006] Based on the identifier of the target edge switch, query the switch grouping information to determine the scheduling path, wherein the switch grouping information is determined based on the first switch controller and the first geographical location division of the first edge switch, and the local is connected to the corresponding first edge switch through the first switch controller;

[0007] The configuration information is issued based on the scheduling path to configure the target edge switch.

[0008] In a second aspect, the present disclosure provides a control device for an edge switch, the device comprising:

[0009] An acquisition module, used to acquire configuration information of a virtual gateway, wherein the configuration information includes an identifier of a target edge switch corresponding to the virtual gateway and configuration content of the virtual gateway;

[0010] a determination module, configured to query switch grouping information based on the identifier of the target edge switch to determine a scheduling path, wherein the switch grouping information is determined based on a first switch controller and a first geographical location division of the first edge switch, and the local is connected to the corresponding first edge switch through the first switch controller;

[0011] The configuration sending module is used to send the configuration information based on the scheduling path to configure the target edge switch.

[0012] In a third aspect, the present disclosure provides a server, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0013] In a fourth aspect, the present disclosure provides an edge switch cluster, including:

[0014] A core controller, used to execute the method of the first aspect or any corresponding implementation manner thereof; a switch controller, the switch controller is communicatively connected to the core controller; an edge switch, the edge switch is communicatively connected to the switch controller.

[0015] In a fifth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding embodiment thereof.

[0016] In a sixth aspect, the present disclosure provides a computer program product, including computer instructions, where the computer instructions are used to enable a computer to execute the method of the first aspect or any corresponding embodiment thereof.

[0017] The control method of the edge switch provided in this embodiment obtains the configuration information of the virtual gateway, queries the switch grouping information based on the identifier of the target edge switch in the configuration information, thereby determining the scheduling path, and sends the configuration information according to the scheduling path, thereby configuring the target edge switch according to the configuration content. Among them, the switch grouping information is divided based on the first switch controller and the first geographical location of the first edge switch, and the first switch controller is connected to the corresponding first edge switch. This method divides the switch controller and the edge switch according to the geographical location, and through a specific controller component and forwarding device arrangement and organization method, it realizes the scheduling and configuration of the target edge switch in the cluster according to the grouping information, ensuring the precise control of the edge switch and the stability of the control system. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 is a flow chart of a control method of an edge switch according to an embodiment of the present disclosure;

[0020] Figure 2 is a schematic diagram of an edge switch cluster according to an embodiment of the present disclosure;

[0021] Figure 3 is a schematic diagram of a scheduling path in an edge switch cluster according to an embodiment of the present disclosure;

[0022] Figure 4 is a flow chart of another method for controlling an edge switch according to an embodiment of the present disclosure;

[0023] Figure 5 is a flow chart of another edge switch control method according to an embodiment of the present disclosure;

[0024] Figure 6 is a schematic diagram of a switching path in an edge switch cluster according to an embodiment of the present disclosure;

[0025] Figure 7 is a structural block diagram of a control device of an edge switch according to an embodiment of the present disclosure;

[0026] Figure 8 It is a schematic diagram of the hardware structure of the server according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0028] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0029] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0030] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0031] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0032] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0033] As a distributed computing model, edge access can move computing and data processing functions from centralized cloud computing centers to edge devices or edge nodes that are closer to the data source for processing. In the edge access model, edge switch clusters are an important component, and edge switch clusters are composed of multiple nodes, such as edge devices and edge nodes. Edge devices (such as smartphones, sensors, cameras, etc.) or edge nodes (such as edge servers, gateways, etc.) have certain computing and storage capabilities and can perform data processing, analysis, and decision-making locally. This can avoid transmitting all data to the cloud for processing, reducing data transmission delays and the risk of network congestion. Edge access points are deployed with edge switches and controlled by switch controllers. The corresponding switch control components need to be deployed, and the deployment resources of the switch control components are usually the physical machines of the edge nodes (for example, servers). Edge access points usually deploy multiple edge switches, so it is necessary to accurately control the edge switches and maximize the control efficiency.

[0034] Based on the above problems, the embodiment of the present disclosure provides a control method for an edge switch, which is applied to a core controller, which is deployed in a center and can be connected to a user console to receive user configuration instructions and configure the edge switch of the edge node. Exemplarily, the core controller can be a server.

[0035] According to an embodiment of the present disclosure, an embodiment of a control method for an edge switch is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0036] In this embodiment, a control method for an edge switch is provided, which is applied to a core controller. Figure 1 is a flow chart of a control method of an edge switch according to an embodiment of the present disclosure, such as Figure 1 As shown, the process includes the following steps:

[0037] Step S101, obtaining configuration information of the virtual gateway.

[0038] The configuration information includes the identifier of the target edge switch corresponding to the virtual gateway and the configuration content of the virtual gateway.

[0039] The target edge switch is the edge switch that needs to be configured. The core controller connects to the user console and receives the configuration information of the virtual gateway (VGW). The identifier of the target edge switch is used to identify the specific edge switch associated with the virtual gateway. It can be a MAC address (Media Access Control Address, media access control address or physical address), IP address (Internet Protocol Address, Internet Protocol address), serial number or any other code that uniquely identifies the edge switch. The configuration content of the virtual gateway includes the configuration parameters of the virtual gateway, which can specifically include the network address, subnet mask, routing rules, security policy, etc.

[0040] Step S102: query the switch grouping information based on the identifier of the target edge switch to determine the scheduling path.

[0041] The switch grouping information is determined based on the first geographical location division of the first switch controller and the first edge switch, and the local area is connected to the corresponding first edge switch through the first switch controller.

[0042] After obtaining the identifier of the target edge switch, the core controller queries the switch grouping information through the identifier. The switch grouping information is determined based on the geographical location and is stored in the core controller. When querying the switch grouping information, a specific interface can be called or a database can be accessed to retrieve the switch grouping information corresponding to the identifier.

[0043] The switch grouping information stores the correspondence between the switch controller and the edge switch. The core controller can control multiple switch controllers. The switch controller (SwitchController) instance is a multi-active instance. It establishes a configuration channel connection with the core controller through a public network link and establishes a control connection with the edge switch.

[0044] The dimension of the first geographical location can be set according to the actual application scenario. For example, if the dimension of the first geographical location is a province, the region is divided according to the province dimension, and the same province is determined as a large area (first geographical location). The switch grouping information includes the corresponding connection relationship between the first switch controller and the first edge switch. It is assumed that there are at least two switch controllers in a large area. The switch controller in a large area is the first switch controller, and the first switch controller can be used to control one or more first edge switches. The first geographical location can be further divided. For example, if the first geographical location is a province dimension, it is divided according to the city dimension. A city is equivalent to an access point. A large area includes multiple access points, and each access point can deploy one or more first edge switches. Through the first switch controller connected to the first edge switch, each first edge switch has a corresponding main first switch controller, and the main first switch controller controls the first edge switch.

[0045] The scheduling path is determined according to the switch grouping information, and the scheduling information includes the correspondence between the geographical location, the access point and the edge switch. The core controller, the first switch controller and the first edge switch constitute a scheduling path.

[0046] Step S103: Send configuration information based on the scheduling path to configure the target edge switch.

[0047] After determining the scheduling path based on the switch grouping information, the switch controller used to control the target edge switch can be determined, and the configuration information can be sent to the switch controller, which then sends the configuration information to the target edge switch, thereby configuring the target edge switch.

[0048] For example, see Figure 2 The schematic diagram of the edge switch cluster shown in FIG. 1 is a schematic diagram of an edge switch cluster, in which all switch controllers (SwitchController) and edge switches (ASW) are in the same area A, SwitchController-1 and SwitchController-2 are switch controllers belonging to different access points (APs), corresponding to access point 1 (AP1) and access point 2 (AP2), and multiple edge switches (ASW) are set in each access point.

[0049] The control method of the edge switch provided in this embodiment obtains the configuration information of the virtual gateway, queries the switch grouping information based on the identifier of the target edge switch in the configuration information, thereby determining the scheduling path, and sends the configuration information according to the scheduling path, thereby configuring the target edge switch according to the configuration content. Among them, the switch grouping information is divided based on the first switch controller and the first geographical location of the first edge switch, and the first switch controller is connected to the corresponding first edge switch. This method divides the switch controller and the edge switch according to the geographical location, and through a specific controller component and forwarding device arrangement and organization method, it realizes the scheduling and configuration of the target edge switch in the cluster according to the grouping information, ensuring the precise control of the edge switch and the stability of the control system.

[0050] In some optional embodiments, the first area corresponding to the first geographical location includes at least one first switch controller, the first area includes at least one first access point, and the first access point includes at least one first edge switch; the first switch controller is used to perform main control of the first edge switch in the corresponding first access point, and perform backup control of the first edge switches in the remaining first access points in the first area.

[0051] The first geographical location is set as region A, which is equivalent to the first area. The first area includes at least one switch controller, the first area includes at least one first access point, and one or more first edge switches are deployed in the first access point. The first switch controller can control the first edge switch in the first access point, and can perform backup control on the first edge switches in other first access points in the same region A. Backup control means that if the switch controller corresponding to the edge switch in other access points fails, it can be controlled by the backup control switch controller. The switch controller stores the access point it controls and the corresponding edge switch in the access point.

[0052] by Figure 2Taking the schematic diagram of the edge switch cluster shown as an example, area A is divided. Area A is equivalent to the first area, and the first area includes two first access points (AP1, AP2). A switch controller is set for each access point. AP1 corresponds to SwitchController-1, and AP2 corresponds to SwitchController-2. AP1 and AP2 are different access points, and SwitchController-1 and SwitchController-2 are different switch controllers. Taking SwitchController-1 as an example, it takes control of the first edge switches (ASW-1, ASW-2) within the access point AP1 (the solid line part in the figure) and performs backup control on the first edge switches (ASW-3, ASW-4) within the access point AP2.

[0053] Taking Figure 3 as an example, assume that the configuration information of virtual gateway A and virtual gateway B is respectively sent to ASW-1 and ASW-3, and the scheduling paths include <VGW-A, Area A / AP1 / ASW1> and <VGW-B, Area A / AP2 / ASW3>.

[0054] It should be noted that the figure is only an example. There can be one or more switch controllers in the same first area. The edge switches within the access points without deployed switch controllers can be controlled by the switch controllers within other access points.

[0055] In this embodiment, a control method for an edge switch is provided, which is applied to a core controller. Figure 4 is a flowchart of the control method for the edge switch according to the embodiments of the present disclosure. As Figure 4 shown, the process includes the following steps:

[0056] Step S201, receiving a first registration request from a second edge switch.

[0057] Among them, the first registration request includes the second access point corresponding to the second edge switch and the second geographical location.

[0058] The edge switch that needs to be newly added is the second edge switch. The access point where the second edge switch is located is the second access point, and the geographical location where the second edge switch is located is the second geographical location. When the second edge switch needs to be added, it sends a first registration request, and the core controller receives the first registration request. The second access point and the second geographical location where the second edge switch is located are carried in the first registration request.

[0059] Step S202, based on the second access point and the second geographical location, determine the second switch controller corresponding to the second edge switch in the switch grouping information.

[0060] The switch grouping information stores the correspondence between the access point, the geographical location, and the switch controller. The second access point belongs to the second geographical location. One or more second switch controllers may be deployed in the second geographical location. The second access point may correspond to one or more second switch controllers in the second geographical location. According to the second geographical location to which the second edge switch belongs, all second switch controllers in the second geographical location are first determined. Then, according to the second access point to which the second edge switch belongs, the second switch controller corresponding to the second access point is determined from all second switch controllers in the second geographical location, thereby determining the second switch controller corresponding to the second edge switch, which may be one or more.

[0061] Step S203: establish a master control relationship between the second switch controller and the second edge switch, and a backup control relationship between other switch controllers in the second area corresponding to the second geographical location and the second edge switch, so as to update the switch grouping information.

[0062] After determining the second switch controller corresponding to the second edge switch, the second switch controller is determined as the master switch controller of the second edge switch. The second geographical location corresponds to the second region, and other switch controllers in the second region are set as backup switch controllers of the second edge switch, thereby determining the backup control relationship of the other switch controllers in the second region corresponding to the second geographical location to the second edge switch. After determining the master second switch controller of the second edge switch and the other backup switch controllers, the above correspondence is stored in the switch grouping information, thereby updating the switch grouping information.

[0063] After the second edge switch goes online and registers, the core controller synchronizes the information of the second edge switch to the grouping information of the area to which the core controller belongs.

[0064] In some optional implementations, the above step S202 includes the following steps:

[0065] Step S2021: determine a corresponding second area based on the second geographical location.

[0066] The geographical location corresponds to the region, and the second region corresponding to the second geographical location can be determined according to the second geographical location.

[0067] Step S2022: Based on the second area and the second access point, determine a corresponding second switch controller in the switch grouping information.

[0068] The switch grouping information stores the corresponding relationship between the access point, the area corresponding to the geographical location, and the switch controller. When the second area is determined, the second access point in the second area can be determined, and the second access point can correspond to one or more second switch controllers in the second area. After the second area is determined, all the second switch controllers in the second area are first determined, and then according to the second access point to which the second edge switch belongs, the second switch controller corresponding to the second access point is determined from all the second switch controllers in the second area, thereby determining the second switch controller corresponding to the second edge switch, which can be one or more.

[0069] The control method of the edge switch provided in this embodiment determines the corresponding master second switch controller from the switch grouping information according to the second access point and the second geographical location of the second edge switch to be newly added, and sets the backup control relationship between the other switch controllers in the second area corresponding to the second geographical location and the second edge switch, and updates the corresponding relationship to the switch grouping information. The method can divide the area according to the geographical location, build the corresponding relationship between the switch controller and the edge switch, so that the edge switch can be controlled by the corresponding switch controller, and a backup switch controller is provided to ensure the stability of the control of the edge switch.

[0070] In this embodiment, a control method for an edge switch is provided, which is applied to a core controller. Figure 5 is a flow chart of a control method of an edge switch according to an embodiment of the present disclosure, such as Figure 5 As shown, the process includes the following steps:

[0071] Step S301: receiving a second registration request from a third switch controller.

[0072] The second registration request includes a third access point and a third geographical location corresponding to the third switch controller.

[0073] The switch controller that needs to be newly added is the third switch controller, the access point corresponding to the third switch controller is the third access point, and the area where the third switch controller is located is the third geographical location. When the third switch controller needs to join, a second registration request is issued. The core controller receives the second registration request. The second registration request carries the third access point where the third switch controller is located and the third geographical location.

[0074] Step S302: determining a third access point in a corresponding third area based on the third access point and the third geographical location.

[0075] The third geographical location corresponds to the third area, and then the corresponding relationship between the third access point and the third area is determined. The third area may correspond to multiple access points, and the third access point corresponds to only one third area.

[0076] Step S303: establish a master control relationship between the third switch controller and the third edge switch in the third access point of the third area, and a backup control relationship between the third edge switches in the remaining access points of the third area, so as to update the switch grouping information.

[0077] One or more third edge switches are deployed in the third access point. After determining the third area and the corresponding third access point corresponding to the third switch controller, it can be determined that the third switch controller can be used to control the third edge switch in the third access point. The third switch controller mainly controls the third edge switch of the third access point and backup controls the third edge switches of other access points in the third area. The third area to which the third switch controller belongs, the main control relationship between the third switch controller and the third edge switches of the third access point in the third area, and the backup control relationship between the third switch controller and the third edge switches of other access points in the third area are stored in the switch grouping information, thereby updating the switch grouping information.

[0078] After the third switch controller goes online and registers, the core controller synchronizes information of all third edge switches in the third area to which the third switch controller belongs to the third switch controller to the third switch controller.

[0079] The edge switch control method provided in this embodiment stores, for a third switch controller that needs to go online and register, a master control relationship between the third edge switch in a third access point in a third area to which the third switch controller belongs and a backup control relationship between the third edge switches in other access points in the third area in the switch grouping information, so that when the third edge switch of the third access point needs to be controlled, the third switch controller performs control.

[0080] In some optional implementations, step S102 in the above implementations includes:

[0081] Step S401, obtaining device status information reported by the first switch controller;

[0082] The first switch controller will actively report its own device status information, which may include the connection status between the switch controller and the edge switch, the device keep-alive status of the switch controller itself, the configuration of the edge switch, etc. The core controller receives the device status information reported by the first switch controller, and when the first switch reports the device status information, it may report it regularly according to a preset time interval.

[0083] In some optional implementations, the device status information includes an expected configuration version number and a configured version number, and the method further includes: if the configured version number is inconsistent with the expected configuration version number, determining that the device status information of the first switch controller is abnormal.

[0084] The expected configuration version number is the version number of the configuration information for the target edge switch issued by the core controller. When the first switch controller receives the configuration information and issues it to the target edge switch for configuration, the configured version number is set to the expected configuration version number, indicating that the configuration information has been successfully issued and the target edge switch has been configured.

[0085] If the configured version number is inconsistent with the expected configuration version number, it means that the configuration information has not been successfully sent, and the first switch controller is abnormal. The core controller will regularly receive the configured version number and the expected configuration version number, and compare the two. If there is a situation where the configured version number is inconsistent with the expected configuration version number, it is determined that the device status information of the corresponding first switch controller is abnormal.

[0086] In some optional implementations, the device status information further includes at least one of a connection channel status between the first switch controller and the corresponding first edge switch, and a keep-alive status of the first switch controller.

[0087] The connection channel state between the first switch controller and the corresponding first edge switch is used to characterize the connection status between the first switch controller and the first edge switch. If there is an abnormality, it may indicate that there is an abnormality in the first switch controller or the first edge switch.

[0088] The keep-alive state of the first switch controller can be used to characterize the network connection state and device operation state of the first switch controller, which can ensure that the first switch controller remains active and can work normally even without actual data transmission, and helps prevent the connection from being mistakenly closed or disconnected due to long-term inactivity. The core controller stores the keep-alive state of the first switch controller and continuously updates it. If it detects that the first switch controller is disconnected or lost, the core controller will update the keep-alive state of the first switch controller.

[0089] A time interval (for example, 1 minute) may be set to detect abnormalities in the first switch, and the specific time interval may be set according to actual applications.

[0090] Step S402: determine the first switch controller with abnormal device status information as an abnormal switch controller.

[0091] The core controller receives the device status information, and can determine the corresponding first switch controller according to the device status information. When the status device information is abnormal, the first switch controller corresponding to the status device information is an abnormal switch controller.

[0092] Step S403: Based on the abnormal switch controller, the switch grouping information is updated.

[0093] When there is an abnormal switch controller, it indicates that the abnormal switch controller may not work properly, so it is necessary to modify the information in the switch grouping information. Modify the switch controller corresponding to the edge switch originally controlled by the abnormal switch controller, that is, other switch controllers control the edge switch.

[0094] In some optional implementations, step S403 includes: when an abnormality occurs in the area where the abnormal switch controller is located, adding switch controllers that operate normally in other areas to the area where the abnormal switch controller is located to update the switch grouping information.

[0095] The entire area where the first switch controller is located is abnormal, indicating that all first switch controllers in the area are abnormal. In this case, the normally operating switch controllers in other areas can be removed from the original large area and added to the current abnormal area. A corresponding relationship between the normally operating switch controllers and the access points and edge switches in the abnormal area is established to update the switch grouping information.

[0096] Step S404: query the updated switch grouping information based on the identifier of the target edge switch to determine the scheduling path.

[0097] The updated switch grouping information stores the correspondence between the target edge switch and the corresponding switch controller. By querying the identifier of the target edge switch, the switch controller corresponding to the target edge switch can be queried, and then a new scheduling path can be determined when controlling the target edge switch.

[0098] In some optional implementations, step S404 includes:

[0099] Step S4041: When there is a fourth switch controller in the same area and at the same access point as the abnormal switch controller, a scheduling path is determined based on the fourth switch controller.

[0100] After the core controller determines that there is an abnormal switch controller, it will re-determine the scheduling path. The fourth switch controller in the same area and at the same access point as the abnormal switch controller is preferentially selected, and the target edge switch is controlled by the fourth switch controller, and the scheduling path includes the fourth switch controller.

[0101] Step S4042: When there is no fourth switch controller, determine the scheduling path based on the fifth switch controllers of other access points in the same area as the abnormal switch controller.

[0102] If there is no fourth switch controller in the same area as the abnormal switch controller, or the fourth switch controller is also abnormal, then select the fifth switch controllers of other access points in the same area as the abnormal switch controller, control the target edge switch through the fifth switch controller, and the scheduling path includes the fifth switch controller.

[0103] Exemplarily, please refer to Figure 6 the schematic diagram of the switching path in the edge switch cluster shown in the figure. Suppose the configuration information of virtual gateway A and virtual gateway B is sent to ASW-1 and ASW-3 respectively. The scheduling path includes <VGWA, Region A / AP1 / ASW1>, <VGWB, Region A / AP2 / ASW3>. If there is an abnormality in the scheduling path where the switch controller 1 (SwitchController-1) of the first access point (AP1) is located, then switch to the switch controller 2 (SwitchController-2) of the second access point (AP2), and SwitchController-2 sends the configuration information (VGW-A) to ASW-1.

[0104] In this embodiment, in scenarios such as when the switch controller fails, the deployed physical machine fails, or the network fails, the core controller can automatically perform configuration scheduling, thereby ensuring the stability of the system operation, reducing manual intervention, and improving the stability of the system.

[0105] In this embodiment, a control device for an edge switch is also provided. This device is used to implement the above embodiments and implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0106] This embodiment provides a control device for an edge switch, as Figure 7 shown in the figure, including:

[0107] An acquisition module 501, configured to acquire the configuration information of the virtual gateway, where the configuration information includes the identifier of the target edge switch corresponding to the virtual gateway and the configuration content of the virtual gateway;

[0108] A determination module 502 is configured to query switch grouping information based on the identifier of the target edge switch to determine a scheduling path, wherein the switch grouping information is determined based on a first switch controller and a first geographical location division of the first edge switch, and the local is connected to the corresponding first edge switch through the first switch controller;

[0109] The configuration sending module 503 is used to send the configuration information based on the scheduling path to configure the target edge switch.

[0110] In some optional embodiments, the first area corresponding to the first geographical location includes at least one first switch controller, the first area includes at least one first access point, and the first access point includes at least one first edge switch; the first switch controller is used to perform main control of the first edge switch in the corresponding first access point, and perform backup control of the first edge switches in the remaining first access points in the first area.

[0111] In some optional embodiments, the device further comprises:

[0112] A first registration module, configured to receive a first registration request from a second edge switch, wherein the first registration request includes a second access point and a second geographical location corresponding to the second edge switch;

[0113] A second determination module, configured to determine, based on the second access point and the second geographical location, a second switch controller corresponding to the second edge switch in the switch grouping information;

[0114] The first updating module is used to establish a master control relationship between the second switch controller and the second edge switch, and a backup control relationship between other switch controllers in the second area corresponding to the second geographical location and the second edge switch, so as to update the switch grouping information.

[0115] In some optional implementations, the second determining module includes:

[0116] A second region determining unit, configured to determine a corresponding second region based on the second geographical location;

[0117] The second switch controller determining unit is configured to determine the corresponding second switch controller in the switch grouping information based on the second area and the second access point.

[0118] In some optional embodiments, the device further comprises:

[0119] A second registration module, configured to receive a second registration request from a third switch controller, wherein the second registration request includes a third access point and a third geographical location corresponding to the third switch controller;

[0120] A third determining module, configured to determine the third access point of a corresponding third area based on the third access point and the third geographical location;

[0121] The second updating module is used to establish a master control relationship between the third switch controller and the third edge switch in the third access point of the third area, and a backup control relationship between the third switch controller and the third edge switch in the remaining access points of the third area, so as to update the switch grouping information.

[0122] In some optional embodiments, the device further comprises:

[0123] A status information acquisition module, used to acquire device status information reported by the first switch controller;

[0124] An abnormal switch determining module, configured to determine the first switch controller having abnormal device status information as an abnormal switch controller;

[0125] An information updating module, used for updating the switch grouping information based on the abnormal switch controller;

[0126] The path determination module is used to query the updated switch grouping information based on the identifier of the target edge switch to determine the scheduling path.

[0127] In some optional implementations, the device status information includes an expected configuration version number and a configured version number, and the apparatus further includes:

[0128] The first abnormality determination unit is configured to determine that the device state information of the first switch controller is abnormal if the configured version number is inconsistent with the expected configuration version number.

[0129] In some optional implementations, the device status information further includes at least one of a connection channel status between the first switch controller and the corresponding first edge switch, and a keep-alive status of the first switch controller.

[0130] In some optional implementations, the path determination module includes:

[0131] a first scheduling path determining unit, configured to determine the scheduling path based on a fourth switch controller in the same area and at the same access point as the abnormal switch controller when there is the fourth switch controller;

[0132] The second scheduling path determining unit is configured to determine the scheduling path based on a fifth switch controller of another access point in the same area as the abnormal switch controller when the fourth switch controller does not exist.

[0133] In some optional implementations, the information updating module includes:

[0134] The grouping information changing unit is used to add the switch controllers operating normally in other areas to the area where the abnormal switch controller is located when an abnormality occurs in the area where the abnormal switch controller is located, so as to update the switch grouping information.

[0135] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0136] The control device of the edge switch in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0137] The embodiment of the present disclosure also provides an edge switch cluster, including a core controller, a switch controller and an edge switch, wherein the core controller is used to implement the above embodiments and implementation methods, which have been described and will not be repeated; the switch controller is connected to the core controller in communication, and the edge switch is connected to the switch controller in communication, which can be seen in Figure 2 .

[0138] The embodiment of the present disclosure also provides a server having the control device of the edge switch shown above.

[0139] See also Figure 8 , Figure 8 is a schematic diagram of the structure of a server provided by an optional embodiment of the present disclosure, such as Figure 8As shown, the server includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the server, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple servers can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 10 is taken as an example.

[0140] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0141] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0142] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the server, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the server via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0143] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0144] The server further comprises a communication interface 30 for the server to communicate with other devices or a communication network.

[0145] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0146] A part of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0147] Although the embodiments of the present disclosure are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the present invention.

Claims

1. A control method for an edge switch, characterized in that: The method comprises: Acquire configuration information of the virtual gateway, the configuration information including an identifier of a target edge switch corresponding to the virtual gateway and configuration content of the virtual gateway; Based on the identifier of the target edge switch, query the switch grouping information to determine the scheduling path, wherein the switch grouping information is determined based on the first switch controller and the first geographical location division of the first edge switch, and the local is connected to the corresponding first edge switch through the first switch controller; Sending the configuration information based on the scheduling path to configure the target edge switch; The method further includes: receiving a first registration request of a second edge switch, the first registration request including a second access point and a second geographical location corresponding to the second edge switch; determining a second switch controller corresponding to the second edge switch in the switch grouping information based on the second access point and the second geographical location; establishing a master control relationship between the second switch controller and the second edge switch, and a backup control relationship between other switch controllers in a second area corresponding to the second geographical location and the second edge switch, so as to update the switch grouping information; A second registration request from a third switch controller is received, wherein the second registration request includes a third access point and a third geographical location corresponding to the third switch controller; based on the third access point and the third geographical location, the third access point of the corresponding third area is determined; a master control relationship of the third switch controller to a third edge switch in the third access point of the third area and a backup control relationship of the third edge switch in the remaining access points of the third area are established to update the switch grouping information.

2. The method according to claim 1, characterized in that The first area corresponding to the first geographical location includes at least one first switch controller, the first area includes at least one first access point, and the first access point includes at least one first edge switch; The first switch controller is used to perform primary control on the first edge switch in the corresponding first access point, and to perform backup control on the first edge switches in the remaining first access points in the first area.

3. The method according to claim 1, characterized in that The determining, based on the second access point and the second geographical location, a second switch controller corresponding to the second edge switch in the switch grouping information includes: Determine a corresponding second area based on the second geographical location; Based on the second area and the second access point, the corresponding second switch controller is determined in the switch grouping information.

4. The method according to claim 1, characterized in that: The querying of switch grouping information based on the identifier of the target edge switch to determine the scheduling path includes: Obtaining device status information reported by the first switch controller; Determine the first switch controller with abnormal device status information as an abnormal switch controller; Based on the abnormal switch controller, updating the switch grouping information; The updated switch grouping information is queried based on the identifier of the target edge switch to determine the scheduling path.

5. The method according to claim 4, characterized in that The device status information includes an expected configuration version number and a configured version number, and the method further includes: If the configured version number is inconsistent with the expected configuration version number, it is determined that the device state information of the first switch controller is abnormal.

6. The method according to claim 4, characterized in that The device status information also includes at least one of a connection channel status between the first switch controller and the corresponding first edge switch, and a keep-alive status of the first switch controller.

7. The method according to claim 4, characterized in that The querying of updated switch grouping information based on the identifier of the target edge switch to determine the scheduling path includes: When there is a fourth switch controller in the same area and at the same access point as the abnormal switch controller, determining the scheduling path based on the fourth switch controller; When the fourth switch controller does not exist, the scheduling path is determined based on a fifth switch controller of other access points in the same area as the abnormal switch controller.

8. The method according to claim 4, characterized in that The updating of the switch grouping information based on the abnormal switch controller includes: When an abnormality occurs in the area where the abnormal switch controller is located, switch controllers that operate normally in other areas are added to the area where the abnormal switch controller is located to update the switch grouping information.

9. A control device for an edge switch, characterized in that: The device comprises: An acquisition module, used to acquire configuration information of a virtual gateway, wherein the configuration information includes an identifier of a target edge switch corresponding to the virtual gateway and configuration content of the virtual gateway; a determination module, configured to query switch grouping information based on the identifier of the target edge switch to determine a scheduling path, wherein the switch grouping information is determined based on a first switch controller and a first geographical location division of the first edge switch, and the local is connected to the corresponding first edge switch through the first switch controller; A configuration sending module, used to send the configuration information based on the scheduling path to configure the target edge switch; A first registration module, configured to receive a first registration request from a second edge switch, wherein the first registration request includes a second access point and a second geographical location corresponding to the second edge switch; A second determination module, configured to determine, based on the second access point and the second geographical location, a second switch controller corresponding to the second edge switch in the switch grouping information; A first updating module is used to establish a master control relationship between the second switch controller and the second edge switch, and a backup control relationship between other switch controllers in the second area corresponding to the second geographical location and the second edge switch, so as to update the switch grouping information; A second registration module, configured to receive a second registration request from a third switch controller, wherein the second registration request includes a third access point and a third geographical location corresponding to the third switch controller; A third determining module, configured to determine the third access point of a corresponding third area based on the third access point and the third geographical location; The second updating module is used to establish a master control relationship between the third switch controller and the third edge switch in the third access point of the third area, and a backup control relationship between the third switch controller and the third edge switch in the remaining access points of the third area, so as to update the switch grouping information.

10. A server, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the control method of the edge switch according to any one of claims 1 to 8 by executing the computer instructions.

11. An edge switch cluster, characterized in that: include: A core controller, configured to execute the control method of the edge switch according to any one of claims 1 to 8; A switch controller, the switch controller is communicatively connected with the core controller; An edge switch is communicatively connected to the switch controller.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the edge switch control method according to any one of claims 1 to 8.

13. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to cause a computer to execute the control method of the edge switch according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Software defined data center and method for deploying service cluster therein

    CN108293001A

  • Virtual switch configuration method and device, computer equipment and storage medium

    CN117376116A