A method, an access controller (AC), and a storage medium for managing packet forwarding

By monitoring the CPU forwarding core resource occupancy rate of AC's CPU and adjusting the forwarding frequency of control packets, the problem of insufficient CPU performance in large ACs in centralized forwarding mode is solved, and the user experience is improved.

CN114423039BActive Publication Date: 2025-07-04NEW H3C BIG DATA TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111585411.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-22
Publication Date
2025-07-04
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

Under the AC+Fit AP architecture, when large ACs in centralized forwarding mode handle thousands of APs and tens of thousands of users, CPU forwarding performance is insufficient, resulting in poor user experience.

Method used

By monitoring the resource occupancy rate of the forwarding core of the CPU in the AC, when the busy state is reached, the forwarding frequency of the forwarding core used to forward the control packets of each AP is reduced. The specific method includes obtaining AP information and determining the AP corresponding to the control packets based on the hash result of the five-tuple information, and adjusting the forwarding frequency of the control packets.

Benefits of technology

Effectively reduce the number of control packets of forwarding core in a busy state, reduce resource usage, ensure normal forwarding of data packets, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114423039B_ABST
    Figure CN114423039B_ABST
Patent Text Reader

Abstract

This specification provides a method, an access controller (AC), and a storage medium for managing message forwarding. The method includes: monitoring the resource occupancy rate of the forwarding core of the CPU in the AC, and when the resource occupancy rate of the forwarding core reaches a busy state, reducing the forwarding frequency of the forwarding core for forwarding control messages of each access point (AP). Through this method, the management messages for forwarding can be managed according to the busy situation of the CPU forwarding core, thereby avoiding the occurrence of the situation where the CPU is overloaded and affects the service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technologies, and in particular, to a method for managing packet forwarding, an access controller (AC), and a storage medium. Background Art

[0002] Compared with the Fat AP architecture, the AC+Fit AP architecture adds a wireless controller (AC) as a central centralized control and management device. Complex functions such as user authentication, roaming handover, and dynamic keys, which were originally carried on the Fat AP itself, are transferred to the wireless controller. The AP and the AC communicate through a tunneling method and can be connected across L2, L3 networks, or even wide area networks, greatly improving the working efficiency of the entire network.

[0003] The AC+Fit AP architecture supports two forwarding modes: centralized forwarding and local forwarding.

[0004] There are two types of packets in the AC+Fit AP architecture. One type is the packet for the AC to manage and control the AP, which is called a management packet or a control packet. The other type is the data packet of the terminal, which is called a service packet or a data packet.

[0005] For data packets, there are two forwarding modes.

[0006] Centralized forwarding: The data traffic of the client is transmitted by the AP to the AC through the CAPWAP tunnel, and the AC forwards the data packet.

[0007] Local forwarding: The data traffic of the client is directly forwarded by the AP. Configuring the forwarding location on the AP alleviates the data forwarding pressure on the AC.

[0008] When centralized forwarding is selected, all data packets have to go through the AC for processing. Although it is convenient for centralized management, it has very high requirements for the forwarding performance of the AC. Especially for a large AC that supports thousands of APs and tens of thousands of users, the processing performance of the AC often cannot keep up, resulting in a poor user experience. Summary of the Invention

[0009] The present disclosure provides a method for managing packet forwarding, an AC, and a storage medium. Through this method, the management packets to be forwarded can be managed according to the busy situation of the CPU forwarding cores, thereby avoiding the situation where the CPU is overloaded and affects the service.

[0010] An embodiment of the present disclosure provides a method for managing packet forwarding. The method is applied to a wireless controller AC, and the method includes:

[0011] Monitoring the resource occupancy rate of the forwarding cores of the CPU in the AC;

[0012] When the resource occupancy rate of the forwarding core reaches a busy state, reduce the forwarding frequency of the forwarding core for forwarding the control messages of each AP.

[0013] Among them, the method for determining that the resource occupancy rate of the forwarding core reaches a busy state includes:

[0014] Monitor the resource occupancy rate of the forwarding core. When the resource occupancy rate of the forwarding core reaches a preset value within a preset time period, it is determined that the resource occupancy rate of the forwarding core reaches a busy state.

[0015] Among them, before reducing the forwarding frequency of the forwarding core for forwarding the control messages of each AP, the method further includes:

[0016] Obtain the AP information corresponding to the control messages forwarded by the forwarding core, and reduce the forwarding frequency of the control messages of each AP according to the AP information.

[0017] Among them, the obtaining of the AP information corresponding to the control messages forwarded by the forwarding core includes:

[0018] Determine the AP information corresponding to the control messages forwarded by the forwarding core according to the hash result of the five-tuple information of the control messages.

[0019] Among them, after reducing the forwarding frequency of the forwarding core for forwarding the control messages of each AP, the method further includes:

[0020] When monitoring that the resource occupancy rate of the forwarding core is in a non-busy state, restore the reduced forwarding frequency of the forwarding core.

[0021] It can be seen from the above method that the AC can control the forwarding core to reduce the forwarding frequency of the control messages of each AP when it is busy, thereby reducing the forwarding resources occupied by the forwarding core, avoiding affecting the forwarding of service messages, and improving the user's network access experience.

[0022] The embodiment of the present disclosure also provides an AC. The AC is provided with a CPU, and the CPU is provided with a forwarding core. The AC includes:

[0023] A monitoring module, configured to monitor the resource occupancy rate of the forwarding core in the CPU of the AC;

[0024] A processing module, configured to reduce the forwarding frequency of the forwarding core for forwarding the control messages of each AP when the resource occupancy rate of the forwarding core reaches a busy state.

[0025] Among them, the monitoring module is specifically configured to monitor the resource occupancy rate of the forwarding core. When the resource occupancy rate of the forwarding core reaches a preset value within a preset time period, it is determined that the resource occupancy rate of the forwarding core reaches a busy state.

[0026] Among them, the AC further includes: an obtaining module,

[0027] The obtaining module is configured to obtain the AP information corresponding to the control packet forwarded by the forwarding core according to the hash result of the five-tuple information of the control packet.

[0028] An embodiment of the present disclosure further provides an AC, where the AC includes: a memory, a processor, and a program stored on the memory and executable on the processor. When the program is executed by the processor, the steps in any of the above embodiments are implemented.

[0029] An embodiment of the present disclosure further provides a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, the steps in any of the above embodiments are implemented. Description of the Drawings

[0030] The drawings here are incorporated into the specification and form a part of the specification, showing embodiments consistent with the specification, and are used together with the specification to explain the principles of the specification.

[0031] Figure 1 It is a schematic diagram of data shunting provided by an embodiment of the present disclosure.

[0032] Figure 2 It is a schematic flowchart of a method for forwarding management packets provided by an embodiment of the present disclosure. Detailed Embodiments

[0033] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this specification. On the contrary, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.

[0034] The terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit this specification. The singular forms "a", "the", and "said" used in this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0035] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to a determination".

[0036] As Figure 1 shown, the current AC uses a multi-core processor, which is generally divided into a control core and a data core to process control services and forwarding services respectively. This solution takes a 32-core CPU (16 forwarding cores and 16 control cores) as an example.

[0037] The packet is shunted by software or hardware and sent to the forwarding core for processing. The forwarding core determines the packet type. If it is a data packet, it performs forwarding processing. If it is a control packet, it is sent to the control core for processing.

[0038] It can be seen from this that in addition to processing data packets, the forwarding core also needs to process a considerable number of control packets (identifying control packets and forwarding them to the control core). As the number of control packets received by the forwarding core increases, a large amount of resources of the forwarding core are occupied.

[0039] To solve the above technical problems, the embodiments of the present disclosure provide a method for managing packet forwarding. As Figure 2 shown, the method is applied to a wireless controller AC, and the method includes:

[0040] S201 Monitor the resource occupancy rate of the forwarding cores of the CPU in the AC;

[0041] S202 When the resource occupancy rate of the forwarding core reaches a busy state, reduce the forwarding frequency of the forwarding core for forwarding control packets of each AP.

[0042] In this embodiment, a monitoring module can be set in the AC to monitor the resource occupancy rate of the forwarding cores of the CPU. This monitoring module can be set in the control core of the CPU or other processing units independent of the CPU.

[0043] In step S202, when it is monitored that the resource occupancy rate of a certain forwarding core reaches a preset value within a preset time period, it can be determined that the forwarding core reaches a busy state.

[0044] In this embodiment, the AC can first obtain which APs' control packet forwarding tasks are carried by each forwarding core. In this embodiment, the forwarding core will distinguish whether the packet is a control packet or a service packet according to the five-tuple information of the received packet.

[0045] For example, for the AP's capwap control message, the quintuple is as follows:

[0046] Sip: AP IP

[0047] Dip:AC IP

[0048] Sport: Fixed, determined when connection is established

[0049] Dport: 5246

[0050] Pro:udp,17

[0051] When Dport: 5246 is identified, the message is determined to be a control message. At this time, a hash operation is performed on the five-tuple, and the control message is assigned to the corresponding forwarding core according to the hash result. At this time, the forwarding core (or other units with recording function) can record the information of each assigned AP and maintain it as an AP information table, as shown in Table 1.

[0052] CPU16 ap1, ap3, ap10 CPU17 ap2, ap11 …… …… CPU31 ap101, ap200

[0053] Table 1

[0054] In Table 1, it is exemplarily recorded that the forwarding core CPU16 carries the control messages of AP1, AP3, and AP10, CPU17 carries the control messages of AP2 and AP11, and CPU31 carries the control messages of AP101 and AP200.

[0055] If it is determined in step S202 that the CPU 16 is busy, the forwarding frequency of the control messages of each AP corresponding to the CPU 16 can be reduced. In other words, the frequency of sending and receiving control messages between the AP1, AP3, AP10 on the CPU 16 and the AC is reduced.

[0056] In one implementation, the keep-alive message intervals of the control channel and the data channel between AP1, AP3, AP10 and the AC may be increased, thereby reducing the frequency of sending and receiving keep-alive messages.

[0057] Alternatively, the interval for AP1, AP3, and AP10 to report AP statistics information to the AC is increased, thereby reducing the frequency of sending and receiving statistics messages.

[0058] Alternatively, the time interval for AP1, AP3, and AP10 to report the statistical information of the terminals on each AP to the AC is increased, thereby reducing the frequency of sending and receiving statistical messages.

[0059] Alternatively, increase the time interval for AP1, AP3, and AP10 to report neighbor information to the AC.

[0060] Or increase the reporting time interval of other information that does not affect the use of WLAN.

[0061] Through the above method, the number of control packets received by the forwarding core (CPU16) when it is busy can be effectively reduced, the forwarding frequency of the control packets of each AP forwarded by the forwarding core (CPU16) can be reduced, so that the forwarding core (CPU16) can quickly return to the non-busy state. At the same time, as much as possible, it is ensured that when the forwarding core (CPU16) is in the busy state, data packet processing is prioritized to ensure the user's Internet experience.

[0062] In this embodiment, the AC (monitoring module of the AC) can continuously monitor the forwarding core (CPU16) in the busy state. When it is detected that the state of the forwarding core (CPU16) has changed from the busy state to the non-busy state, the forwarding frequency of the control packets of each AP can be restored (that is, the transceiver frequency of the control packets between each AP and the AC is no longer restricted).

[0063] It can be seen from the above embodiments that the AC can control the forwarding core to reduce the forwarding frequency of the control packets of each AP when it is busy, thereby reducing the forwarding resources occupied by the forwarding core, avoiding affecting the forwarding of service packets, and improving the user's Internet access experience.

[0064] Based on the same inventive concept, an embodiment of the present disclosure further provides an AC. The AC is provided with a CPU, and the CPU is provided with a forwarding core. The AC includes:

[0065] A monitoring module for monitoring the resource occupancy rate of the forwarding core of the CPU in the AC;

[0066] A processing module for reducing the forwarding frequency of the control packets of each AP forwarded by the forwarding core when the resource occupancy rate of the forwarding core reaches the busy state.

[0067] Wherein, the CPU may include multiple control cores and multiple forwarding cores. The control cores are used to execute control management functions, and the forwarding cores are used to forward packets (including forwarding service packets and forwarding control packets to the control cores).

[0068] In this embodiment, a certain control core or multiple control cores can be specified to enable the monitoring module to monitor the resource occupancy rate of each forwarding core. When it is monitored that the resource occupancy rate of a certain forwarding core reaches a preset value within a preset time period, it is determined that the resource occupancy rate of the certain forwarding core reaches the busy state.

[0069] At this time, the processing module reduces the forwarding frequency of the control packets of each AP forwarded by the forwarding core.

[0070] Specific examples have been described in the above method embodiments and will not be repeated here.

[0071] As can be seen from the above embodiments, the AC in this embodiment can effectively reduce the number of control messages received by the forwarding core when it is in a busy state, reduce the forwarding frequency of the forwarding core for forwarding the control messages of each AP, enable the forwarding core to quickly return to a non-busy state, and at the same time ensure that when the forwarding core is in a busy state, data message processing takes priority as much as possible to ensure the user's network usage experience.

[0072] An embodiment of the present disclosure also provides an AC, where the AC includes: a memory, a processor, and a program stored on the memory and executable on the processor. When the program is executed by the processor, the steps in the above embodiments are implemented.

[0073] An embodiment of the present disclosure also provides a computer-readable storage medium, where a program is stored on the computer-readable storage medium. When the program is executed by a processor, the steps in the above embodiments are implemented.

[0074] The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the specific order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0075] Those skilled in the art will readily conceive of other implementations of this specification after considering the specification and practicing the invention herein. This specification is intended to cover any variations, uses, or adaptations of this specification, which follow the general principles of this specification and include common general knowledge or conventional technical means in the technical field not claimed in this application. The specification and embodiments are only to be considered exemplary, and the true scope and spirit of this specification are pointed out by the following claims.

[0076] It should be understood that this specification is not limited to the exact structures described above and shown in the figures, and various modifications and changes can be made without departing from its scope. The scope of this specification is only limited by the appended claims.

[0077] The above are only the preferred embodiments of this specification and are not intended to limit this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this specification shall be included within the scope of protection of this specification.

Claims

1. A method for managing packet forwarding, characterized in that, The method is applied to an access controller (AC), and the method includes: Monitoring the resource occupancy rate of the forwarding core of the CPU in the AC; When the resource occupancy rate of the forwarding core reaches a busy state, reducing the forwarding frequency of the forwarding core for forwarding control messages of each access point (AP); Wherein, before reducing the forwarding frequency of the forwarding core for forwarding control messages of each AP, it further includes: Obtaining the AP information corresponding to the control messages forwarded by the forwarding core, and reducing the forwarding frequency of the control messages of each AP according to the AP information; The obtaining the AP information corresponding to the control messages forwarded by the forwarding core includes: Determining the AP information corresponding to the control messages forwarded by the forwarding core according to the hash result of the five-tuple information of the control messages.

2. The method according to claim 1, wherein The method for determining that the resource occupancy rate of the forwarding core reaches a busy state includes: Monitoring the resource occupancy rate of the forwarding core, and when the resource occupancy rate of the forwarding core reaches a preset value within a preset time period, it is determined that the resource occupancy rate of the forwarding core reaches a busy state.

3. The method according to claim 1, wherein After reducing the forwarding frequency of the forwarding core for forwarding control messages of each AP, the method further includes: When monitoring that the resource occupancy rate of the forwarding core is in a non-busy state, restoring the reduced forwarding frequency of the forwarding core.

4. An AC, characterized in that, The AC is provided with a CPU, and the CPU is provided with a forwarding core. The AC includes: A monitoring module, configured to monitor the resource occupancy rate of the forwarding core of the CPU in the AC; A processing module, configured to reduce the forwarding frequency of the forwarding core for forwarding control messages of each AP when the resource occupancy rate of the forwarding core reaches a busy state; The processing module is further configured to obtain the AP information corresponding to the control messages forwarded by the forwarding core, and reduce the forwarding frequency of the control messages of each AP according to the AP information; An obtaining module, configured to obtain the AP information corresponding to the control messages forwarded by the forwarding core according to the hash result of the five-tuple information of the control messages.

5. The AC according to claim 4, wherein The monitoring module is specifically configured to monitor the resource occupancy rate of the forwarding core, and when the resource occupancy rate of the forwarding core reaches a preset value within a preset time period, it is determined that the resource occupancy rate of the forwarding core reaches a busy state.

6. An AC, characterized in that, The AC includes: a memory, a processor, and a program stored on the memory and executable on the processor. When the program is executed by the processor, the method steps described in any one of claims 1 to 3 are implemented.

7. A computer-readable storage medium, characterized in that, A program is stored on the computer-readable storage medium. When the program is executed by the processor, the method steps described in any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Information frame sending method and communication terminal

    CN103260253A

  • Method and system for keeping alive links between AP and AC and between AC and AP

    CN107612991A

  • Message shunting method and device for network equipment

    CN111988211A

  • Method, system and apparatus for sending link aggregation control protocol message

    CN112655178A