Flow control method and device

By detecting the service traffic of the operator-level network address conversion board, using the AAA system to determine the number and sorting of accounts, and gradually switching its network address attributes, it realizes efficient and intelligent adjustment of the traffic of the operator-level network address conversion board, and solves the problem of current There are problems with poor traffic regulation efficiency and effectiveness in the technology, which reduces the service traffic load and maintains network quality.

CN114938351BActive Publication Date: 2024-11-05CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210662637.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-13
Publication Date
2024-11-05
Estimated Expiration
2042-06-13

AI Technical Summary

Technical Problem

The prior art cannot effectively adjust the traffic of operator-level network address conversion boards, which poses a hidden danger to the safe operation of the equipment when the service traffic increases suddenly, and the parameters can be adjusted for a long time and the effect is not immediately.

Method used

By detecting the service traffic, if the threshold exceeds the threshold and lasts for a certain period of time, determine the number of accounts, switch the private network dual stack address to the public network dual stack, and vice versa, gradually adjust the network address attributes to adjust the traffic, and use the AAA system to realize account sorting and cumulative, gradually switch account collections to avoid traffic bursts.

Benefits of technology

It realizes intelligent adjustment of operator-level network address conversion board traffic, reduces the service traffic load, and does not affect the network quality perception of online private network users, solving the efficiency and effect of traffic adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114938351B_ABST
    Figure CN114938351B_ABST
Patent Text Reader

Abstract

The present application discloses a traffic control method and device. The method includes: detecting a first service flow through a carrier-level network address translation board; when the first service flow is greater than a first flow threshold and lasts for a first preset time, determining a first number of second accounts from a first account using the carrier-level network address translation board; switching the network address attributes of the first number of second accounts from a private network dual stack to a public network dual stack. The present application solves the technical problem that the related technology cannot efficiently and intelligently adjust the traffic of the carrier-level network address translation board.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a flow control method and device. Background Art

[0002] When the traffic volume flowing through the CGN (Carrier-grade Network Address Translation) card increases suddenly, it will pose a huge risk to the safe operation of the CGN card. Currently, the relevant treatment method is to adjust the CGN-related performance parameters of the BRAS (Broadband Remote Access Server) device to reduce the operating load pressure of the CGN. However, this treatment method directly switches the performance parameters of the device, which will affect the network quality perception of all online users, and the adjustment of the parameters takes a long time to observe, and does not have an immediate effect.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide a traffic control method and device to at least solve the technical problem that the related technology cannot efficiently and intelligently regulate the traffic of the operator-level network address translation board.

[0005] According to one aspect of an embodiment of the present application, a traffic regulation method is provided, including: detecting a first service traffic flowing through a carrier-grade network address translation board; when the first service traffic is greater than a first traffic threshold and lasts for a first preset time, determining a first number of second accounts from a first account using the carrier-grade network address translation board; switching the network address attributes of the first number of second accounts from a private network dual stack to a public network dual stack.

[0006] Optionally, after switching the network address attributes of the first number of second accounts from a private network dual stack to a public network dual stack, it also includes: detecting a second business flow flowing through the operator-level network address translation board; when the difference between the second business flow and the first flow threshold is greater than the second flow threshold and lasts for a second preset time, switching the network address attributes of the second number of second accounts from a public network dual stack to a private network dual stack, wherein the second number is not greater than the first number.

[0007] Optionally, determining a first number of second accounts from a first account using a carrier-grade network address translation board includes: determining a first regulated traffic value, the first regulated traffic value being a first average value or a first peak value of a difference between a first service traffic and a first traffic threshold within a first preset time; sorting the service traffic used by all first accounts from high to low, and accumulating and calculating a first accumulated traffic value one by one starting from the highest service traffic; when the first accumulated traffic value is not less than the first regulated traffic value, stopping the accumulation and determining that the first account corresponding to the accumulated first number of service traffic is the second account.

[0008] Optionally, the network address attributes of the second number of second accounts are switched from a public network dual stack to a private network dual stack, including: dividing the first number of second accounts into a third number of account sets; performing network address attribute switching processing on a fourth number of account sets in turn, wherein the fourth number is not greater than the third number, and the fourth number of account sets include the second number of second accounts, and the network address attribute switching processing includes: switching the network address attributes of the second accounts in an account set from a public network dual stack to a private network dual stack.

[0009] Optionally, a fourth number of account sets are processed in sequence, including: after the network address attribute of the second account in an account set is switched from the public network dual stack to the private network dual stack, detecting the third service traffic flowing through the operator-level network address translation board; when the third service traffic is less than the first traffic threshold, continuing to perform network address attribute switching processing on the next account set; when the third service traffic is not less than the first traffic threshold, stopping network address attribute switching processing on the next account set.

[0010] Optionally, the network address attributes of the second number of second accounts are switched from a public network dual stack to a private network dual stack, including: determining a second regulated traffic value, and determining a third regulated traffic value that is less than the second regulated traffic value, wherein the second regulated traffic value is a second average value or a second peak value of the difference between the second business traffic and the first traffic threshold within a second preset time; sorting the business traffic used by the first number of second accounts from low to high, and accumulating and calculating the second accumulated traffic value one by one starting from the lowest business traffic; when the second accumulated traffic value is not less than the third regulated traffic value, stopping the accumulation, and switching the network address attributes of the second account corresponding to the accumulated second number of business traffic from a public network dual stack to a private network dual stack.

[0011] Optionally, after switching the network address attributes of the second number of second accounts from public network dual stack to private network dual stack, it also includes: when the second number is less than the first number, switching the network address attributes of the second accounts whose network address attributes are still public network dual stack from public network dual stack to private network dual stack.

[0012] According to another aspect of an embodiment of the present application, a traffic regulation device is also provided, including: a first detection module, used to detect a first business traffic flowing through a carrier-level network address translation board; a first determination module, used to determine a first number of second accounts from a first account using the carrier-level network address translation board when the first business traffic is greater than a first traffic threshold and lasts for a first preset time; and a first switching module, used to switch the network address attributes of the first number of second accounts from a private network dual stack to a public network dual stack.

[0013] Optionally, a second detection module is used to detect a second business flow flowing through a carrier-level network address translation board; a second switching module is used to switch the network address attributes of a second number of second accounts from a public network dual stack to a private network dual stack when the difference between the second business flow and the first flow threshold is greater than the second flow threshold and lasts for a second preset time, wherein the second number is not greater than the first number.

[0014] According to another aspect of an embodiment of the present application, an electronic device is further provided, which includes: a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the above-mentioned traffic control method through the computer program.

[0015] In the embodiment of the present application, by detecting the first service flow through the operator-level network address translation board card; when the first service flow is greater than the first flow threshold and lasts for a first preset time, a first number of second accounts are determined from the first account using the operator-level network address translation board card; the network address attribute of the first number of second accounts is switched from the private network dual stack to the public network dual stack. Among them, by switching the network address attribute of some accounts from the private network dual stack to the public network dual stack attribute, the service flow through the CGN board card is effectively reduced, and at the same time, the network quality perception of all online private network dual stack users is not affected, thereby achieving the purpose of intelligently adjusting the CGN board card flow within seconds, thereby solving the technical problem that the related technology cannot efficiently and intelligently adjust the operator-level network address translation board card flow. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0017] Figure 1 is a flow chart of a flow control method according to an embodiment of the present application;

[0018] Figure 2 It is a schematic diagram of traffic change trends of each engine of a CGN board of a BRAS device according to an embodiment of the present application;

[0019] Figure 3 It is a schematic diagram of traffic change trends of each engine of a CGN board of another BRAS device according to an embodiment of the present application;

[0020] Figure 4 It is a structural schematic diagram of a flow control device according to an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0023] In order to better understand the embodiments of the present application, some nouns or terms that appear in the description of the embodiments of the present application are translated and explained as follows:

[0024] CGN (Carrier-grade Network Address Translation): also known as carrier-grade NAT, is mainly deployed in carrier networks to complete network address conversion.

[0025] BRAS (Broadband Remote Access Serve): A new type of access switch for broadband networks. Located at the edge layer of the backbone network, it can provide data access to the user's broadband IP / ATM network, enabling broadband Internet access for commercial buildings and residents in residential areas.

[0026] Network address attributes: divided into public network dual stack and private network dual stack, where public network dual stack refers to the globally allocated public network IPv4 address and globally allocated IPv6 address; private network dual stack refers to the internally allocated private IPv4 address and globally allocated IPv6 address. In the current context of exponential explosion of interactive information, IPv4 addresses are constantly exhausted, so a new network layer protocol IPv6 needs to be enabled. Relevant technicians have proposed a dual stack mechanism, that is, deploying both IPv4 and IPv6 protocols on network devices.

[0027] Example 1

[0028] According to an embodiment of the present application, a traffic control method 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.

[0029] Figure 1 is a flow chart of an optional flow control method according to an embodiment of the present application, such as Figure 1 As shown, the method at least includes steps S102-S108, wherein:

[0030] Step S102: Detect the first service flow flowing through the operator-level network address translation board.

[0031] For example, the service flow of the CGN of the BRAS device running on the network can be detected based on the IP management system.

[0032] Step S104, when the first service flow is greater than the first flow threshold and lasts for a first preset time, determine a first number of second accounts from the first accounts using the operator-level network address translation board.

[0033] For example, the first traffic threshold is set to 30G, and the first preset time is set to 60 minutes. If it is detected that the current service traffic of the CGN board is 1G greater than the first traffic threshold and lasts for 60 minutes, the service traffic of the CGN board can be adjusted by adjusting the network address attributes of some accounts using CGN.

[0034] Specifically, a first number of second accounts may be determined from the first accounts using the CGN board, such as by using an AAA (Authentication Authorization Accounting) system to analyze the number of accounts that need to be quantitatively operated.

[0035] Generally, the network address attributes of an account can be divided into two types: public network dual stack and private network dual stack. The CGN board carries the service traffic of private network dual stack users, and the service traffic of public network dual stack users does not flow through the CGN board. The real-time service traffic of private network dual stack users varies. In order to adjust the real-time service traffic of private network dual stack users, the AAA system can be used to determine the first number of second accounts that need to be adjusted from the first account using the CGN board. Specifically, it can be implemented in the following way: first determine the first regulated traffic value, which is the first average value or the first peak value of the difference between the first service traffic and the first traffic threshold within the first preset time, and then sort the service traffic used by all first accounts from high to low, and start from the highest service traffic and accumulate one by one and calculate the first accumulated traffic value. When the first accumulated traffic value is not less than the first regulated traffic value, stop accumulating and determine that the first account corresponding to the accumulated first amount of service traffic is the second account.

[0036] For example, the first traffic threshold is set to 30G, and the first preset time is set to 60 minutes. If the first business traffic is currently detected to be 31G, the first regulated traffic value can be determined to be 1G by the difference between the first business traffic and the first traffic threshold. The AAA system sorts the business traffic used by all first accounts from high to low, and starts to accumulate the business traffic of the first account one by one from high to low to obtain the first accumulated traffic value. When the first accumulated traffic value is greater than 1G, the accumulation is stopped and the first account corresponding to the accumulated first amount of business traffic is locked and recorded as the second account. The second account is the account that needs to be adjusted.

[0037] Step S106: Switch the network address attributes of the first number of second accounts from private network dual stack to public network dual stack.

[0038] Usually, when the AAA system switches the address attribute of the second account from the private network dual stack to the public network dual stack, there will be a slight interruption in the service traffic of the second account user, but there will be a significant traffic reduction effect on the CGN board.

[0039] Taking the equipment of a certain operator as an example, the process of switching from the private network dual stack to the public network dual stack is explained. The specific steps are as follows:

[0040] Step S1, according to the CGN card model of the BRAS device, its load performance value running on the network, and the characteristics of the service traffic size packet, determine the peak value threshold value. Here, the CGN card of VSU-160 is used as an example to illustrate that the peak value threshold value of the service traffic load of its single engine is set to 20G;

[0041] Step S2, start the IP network supervision monitoring CGN card engine traffic load program, set the busy time collection time interval and the idle time collection time interval, which can be set to 60 minutes during busy time and 180 minutes during idle time;

[0042] Step S3, collecting the CGN card engine traffic of the BRAS device during a certain Spring Festival. Figure 2 A schematic diagram of traffic trends of each engine of a CGN board of an optional BRAS device is shown, reflecting the traffic characteristics of the service traffic of the CGN board changing over time, wherein the peak period is 10 am and lasts until 11 pm. Specifically, the value of traffic collection of the BRAS device on a certain day can be extracted, and the traffic unit is bps (bit per second), as shown in Table 1.

[0043] Step S4: If the service flow of the CGN board load is detected to be 1G greater than the preset flow threshold and lasts for 60 minutes, the AAA system can calculate the service flow in real time and change the network address attributes of some accounts using CGN, that is, switch from private network dual stack to public network dual stack to adjust the service flow of the CGN board;

[0044] Step S5: To observe the effect more comprehensively, collect the CGN card engine traffic again the next day. Figure 3 A schematic diagram showing the change trend of each engine of a CGN board card of an optional BRAS device is shown. Figure 3 It can be clearly seen that the peak traffic of each engine during the day has dropped significantly. For example, the business traffic of 16-slot engine 0 at 10 a.m. decreased by nearly 8G bandwidth year-on-year, and the evening peak also dropped significantly, achieving a good regulation effect.

[0045] Table 1

[0046] time 15 slot engine 0 15 slot engine 1 16 slot engine 0 16 slot engine 1 6:00 AM 3684393632 2194203236 5187373584 5064293926 8:00 AM 8354363725 2585793132 12187693246 9594363573 10 a.m. 13364373332 5984933632 18148393378 11057093569 12 noon 15184263358 8504763259 22184353137 13684503119 14:00 PM 15236083267 8784393632 22685073132 13249743356 16:00 PM 13856093235 7786683564 21468393469 11784393532 18:00 14184483358 7984473638 22108303548 12884395679 8 p.m. 18154943374 9974593656 26284193752 15184263696 20:30 PM 17384573469 9654383672 25684393478 13736593692 21:00 18147263589 9584193238 25084273378 14754273546 21:30 PM 18284133386 9084393692 23453503985 12884473458 22:00 15184253268 8084393259 21184393156 11884393257 22:30 14284393589 7584393386 20157393336 10146393258

[0047] Since public network address resources are very scarce and precious, if there are surplus public network addresses, you can just switch the network address attributes from private network dual stack to public network dual stack. However, when public network addresses are in short supply, you need to adjust the network address attributes of the second account again.

[0048] Step S108, after switching the network address attributes of the first number of second accounts from the private network dual stack to the public network dual stack, detect the second business traffic flowing through the operator-level network address translation board, and when the difference between the second business traffic and the first traffic threshold is greater than the second traffic threshold and lasts for a second preset time, switch the network address attributes of the second number of second accounts from the public network dual stack to the private network dual stack, wherein the second number is not greater than the first number.

[0049] For example, the second traffic threshold is set to 5G, and the second preset time is set to 60 minutes. If the adjusted operating peak traffic of the CGN board is lower than 5G and lasts for 60 minutes, the AAA system will roll back the network address attribute of the previous second account from the public network dual stack to the private network dual stack to increase the service traffic of the CGN board and release some public network addresses.

[0050] However, it should be noted that when rolling back the network address attributes, if the network address attributes of the second number of second accounts are switched at one time, the business traffic of the CGN board may exceed the preset second traffic threshold; if the number of second accounts to be switched is increased a little each time, the business traffic of the CGN board may not increase significantly, and the frequency of repeated calls to the interface of the AAA system is high, resulting in complicated operations.

[0051] Based on this, the following scheme is proposed in an embodiment of the present application: a first number of second accounts are divided into a third number of account sets; a fourth number of account sets are sequentially subjected to network address attribute switching processing, wherein the fourth number is not greater than the third number, and the fourth number of account sets include a second number of second accounts, and the network address attribute switching processing includes: switching the network address attribute of the second account in an account set from a public network dual stack to a private network dual stack.

[0052] Specifically, after each time the network address attribute of the second account in an account set is switched from the public network dual stack to the private network dual stack, the third service traffic flowing through the operator-level network address translation board is detected; when the third service traffic is less than the first traffic threshold, the network address attribute switching process is continued for the next account set; when the third service traffic is not less than the first traffic threshold, the network address attribute switching process is stopped for the next account set.

[0053] For example, in order to avoid the situation of rolling back too quickly, the first number of second accounts can be divided into a third number of account sets, and the fourth number of account sets that need to be adjusted are determined, and the network address attributes are switched in sequence. Taking one of the account sets in the fourth number of account sets as an example, if the second number of second accounts that need to switch the network address attributes in a certain account set currently accounts for 20% of the first number of second accounts, according to the traffic monitoring observation results, when the business traffic of the CGN board card rises less than 1G, switch 20% of the first number of second accounts so that the CGN board card traffic can reach 2G, and perform the above operations in this way to ensure that the business traffic of the CGN board card does not exceed the preset threshold, and record the corresponding values. This solution can quickly switch the network address attributes, and at the same time, it can make the traffic of CGN increase rapidly and steadily, without the need to frequently call the interface of the AAA system.

[0054] Since the business traffic of the CGN board has been significantly reduced when the network address attributes are rolled back, even if the network address attributes of all second accounts are rolled back to the private network dual stack, the business traffic of the CGN board will not exceed the first traffic threshold. Therefore, the third number is generally equal to the fourth number.

[0055] However, considering that public network address resources are very scarce and precious, in order to release more public network addresses, the following adjustment scheme is also proposed in the embodiment of the present application: determine a second regulated flow value, and determine a third regulated flow value that is smaller than the second regulated flow value, wherein the second regulated flow value is the second average value or the second peak value of the difference between the second business flow and the first flow threshold within the second preset time; sort the business flow used by the first number of second accounts from low to high, and accumulate and calculate the second accumulated flow value one by one starting from the lowest business flow; when the second accumulated flow value is not less than the third regulated flow value, stop accumulating, and switch the network address attribute of the second account corresponding to the accumulated second number of business flows from the public network dual stack to the private network dual stack.

[0056] For example, the second preset time is set to 60 minutes, the first traffic threshold is set to 30G, and the second traffic threshold is set to 5G. When it is detected that the difference between the second service traffic of the CGN board and the first traffic threshold is greater than 5G, the service traffic of the CGN board needs to be adjusted. At this time, the difference can be used as the second control traffic value. At the same time, in order to prevent the problem of traffic burst caused by too fast rollback, the service traffic can be adjusted in batches, and the third control traffic value is set to 3G. Based on the AAA system, the service traffic used by the first number of second accounts of the public network dual stack is sorted from low to high, and the service traffic used by each second account is accumulated from low to high to obtain the second accumulated traffic value. When the second accumulated traffic value is greater than or equal to 3G, the accumulation is stopped, the second account corresponding to the accumulated second number of service traffic is locked, and its network address attribute is switched from the public network dual stack to the private network dual stack.

[0057] Among them, after the network address attributes of the second number of second accounts are switched from the public network dual stack to the private network dual stack, if the second number is less than the first number, the above steps are adopted to switch the network address attributes of the second accounts whose network address attributes are still the public network dual stack from the public network dual stack to the private network dual stack.

[0058] It should be noted that all parameter settings in the embodiments of the present application are for reference only and can be set by oneself in actual application.

[0059] In an embodiment of the present application, by detecting the first service flow through the operator-level network address translation board; when the first service flow is greater than the first flow threshold and lasts for a first preset time, a first number of second accounts are determined from the first account using the operator-level network address translation board; the network address attribute of the first number of second accounts is switched from a private network dual stack to a public network dual stack. Among them, the quantitative broadband account address attribute is changed from a private network dual stack to a public network dual stack attribute and then to a private network dual stack through a closed loop, which effectively reduces the service flow through the CGN board, and at the same time does not affect the network quality perception of all online private network dual stack users, thereby achieving the purpose of intelligently adjusting the CGN board traffic within seconds, and thus solving the technical problem that the related technology cannot efficiently and intelligently adjust the operator-level network address translation board traffic.

[0060] Example 2

[0061] According to an embodiment of the present application, a flow control device for implementing the above-mentioned flow control method is also provided. Figure 4 As shown, the device at least includes a first detection module 41, a first determination module 42 and a first switching module 43, wherein:

[0062] The first detection module 41 is used to detect the first service flow flowing through the operator-level network address translation board.

[0063] For example, the first detection module may detect the service flow of the CGN of the BRAS device running on the network based on the IP management system.

[0064] The first determining module 42 is configured to determine a first number of second accounts from the first accounts using the operator-level network address translation board when the first service flow is greater than a first flow threshold and lasts for a first preset time.

[0065] For example, the first traffic threshold is set to 30G, and the first preset time is set to 60 minutes. If it is detected that the current service traffic of the CGN board is 1G greater than the first traffic threshold and lasts for 60 minutes, the service traffic of the CGN board can be adjusted by adjusting the network address attributes of some accounts using CGN.

[0066] Specifically, a first number of second accounts may be determined from the first accounts using the CGN board, such as by using an AAA system to analyze the number of accounts that require quantitative operations.

[0067] Since the CGN board carries the service traffic of dual-stack users in the private network, the service traffic of dual-stack users in the public network does not flow through the CGN board. The real-time service traffic of dual-stack users in the private network varies. In order to adjust the real-time service traffic of dual-stack users in the private network, the AAA system can be used to determine the first number of second accounts that need to be adjusted from the first account using the CGN board. Specifically, it can be implemented in the following way: first determine the first regulated traffic value, which is the first average or first peak value of the difference between the first service traffic and the first traffic threshold within the first preset time, and then sort the service traffic used by all first accounts from high to low, and start from the highest service traffic and accumulate and calculate the first accumulated traffic value one by one. When the first accumulated traffic value is not less than the first regulated traffic value, stop accumulating and determine that the first account corresponding to the accumulated first amount of service traffic is the second account.

[0068] The first switching module 43 is used to switch the network address attributes of the first number of second accounts from the private network dual stack to the public network dual stack.

[0069] Usually, when the AAA system switches the address attribute of the second account from the private network dual stack to the public network dual stack, there will be a slight interruption in the service traffic of the second account user, but there will be a significant traffic reduction effect on the CGN board.

[0070] Since public network address resources are very scarce and precious, if there are surplus public network addresses, you can just switch the network address attributes from private network dual stack to public network dual stack. However, when public network addresses are in short supply, you need to adjust the network address attributes of the second account again.

[0071] According to an optional implementation scheme of the present application, the flow control device further includes: a second detection module and a second switching module, wherein:

[0072] A second detection module, used for detecting a second service flow flowing through the operator-level network address translation board;

[0073] The second switching module is used to switch the network address attributes of the second number of second accounts from the public network dual stack to the private network dual stack when the difference between the second business traffic and the first traffic threshold is greater than the second traffic threshold and lasts for a second preset time, wherein the second number is not greater than the first number.

[0074] For example, the second traffic threshold is set to 5G, and the second preset time is set to 60 minutes. If the adjusted operating peak traffic of the CGN board is lower than 5G and lasts for 60 minutes, the AAA system will roll back the network address attribute of the previous second account from the public network dual stack to the private network dual stack to increase the service traffic of the CGN board and release some public network addresses.

[0075] However, it should be noted that when rolling back the network address attributes, if the network address attributes of the second number of second accounts are switched at one time, the business traffic of the CGN board may exceed the preset second traffic threshold; if the number of second accounts to be switched is increased a little each time, the business traffic of the CGN board may not increase significantly, and the frequency of repeated calls to the interface of the AAA system is high, resulting in complicated operations.

[0076] Based on this, the following scheme is proposed in an embodiment of the present application: a first number of second accounts are divided into a third number of account sets; a fourth number of account sets are sequentially subjected to network address attribute switching processing, wherein the fourth number is not greater than the third number, and the fourth number of account sets include a second number of second accounts, and the network address attribute switching processing includes: switching the network address attribute of the second account in an account set from a public network dual stack to a private network dual stack.

[0077] Specifically, after each time the network address attribute of the second account in an account set is switched from the public network dual stack to the private network dual stack, the third service traffic flowing through the operator-level network address translation board is detected; when the third service traffic is less than the first traffic threshold, the network address attribute switching process is continued for the next account set; when the third service traffic is not less than the first traffic threshold, the network address attribute switching process is stopped for the next account set.

[0078] For example, in order to avoid the situation of rolling back too quickly, the first number of second accounts can be divided into a third number of account sets, and the fourth number of account sets that need to be adjusted are determined, and the network address attributes are switched in sequence. Taking one of the account sets in the fourth number of account sets as an example, if the second number of second accounts that need to switch the network address attributes in a certain account set currently accounts for 20% of the first number of second accounts, according to the traffic monitoring observation results, when the business traffic of the CGN board card rises less than 1G, switch 20% of the first number of second accounts so that the CGN board card traffic can reach 2G, and perform the above operations in this way to ensure that the business traffic of the CGN board card does not exceed the preset threshold, and record the corresponding values. This solution can quickly switch the network address attributes, and at the same time, it can make the traffic of CGN increase rapidly and steadily, without the need to frequently call the interface of the AAA system.

[0079] Since the business traffic of the CGN board has been significantly reduced when the network address attributes are rolled back, even if the network address attributes of all second accounts are rolled back to the private network dual stack, the business traffic of the CGN board will not exceed the first traffic threshold. Therefore, the third number is generally equal to the fourth number.

[0080] However, considering that public network address resources are very scarce and precious, in order to release more public network addresses, the following adjustment scheme is also proposed in the embodiment of the present application: determine a second regulated flow value, and determine a third regulated flow value that is smaller than the second regulated flow value, wherein the second regulated flow value is the second average value or the second peak value of the difference between the second business flow and the first flow threshold within the second preset time; sort the business flow used by the first number of second accounts from low to high, and accumulate and calculate the second accumulated flow value one by one starting from the lowest business flow; when the second accumulated flow value is not less than the third regulated flow value, stop accumulating, and switch the network address attribute of the second account corresponding to the accumulated second number of business flows from the public network dual stack to the private network dual stack.

[0081] Among them, after the network address attributes of the second number of second accounts are switched from public network dual stack to private network dual stack, if the second number is less than the first number, the network address attributes of the second accounts whose network address attributes are still public network dual stack are switched from public network dual stack to private network dual stack.

[0082] It should be noted that all parameter settings in the embodiments of the present application are for reference only and can be set by oneself in actual application.

[0083] It should be noted that each module in the flow control device in the embodiment of the present application corresponds one by one to each implementation step of the flow control method in Example 1. Since a detailed description has been given in Example 1, some details not reflected in this embodiment can be referred to Example 1 and will not be elaborated here.

[0084] Example 3

[0085] According to an embodiment of the present application, a processor is also provided, which is used to run a program, wherein the flow control method in Example 1 is executed when the program is running.

[0086] According to an embodiment of the present application, an electronic device is also provided, which includes: a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the flow control method in Example 1 through the computer program.

[0087] Optionally, when the program is running, the following steps are executed: detecting a first business flow passing through a carrier-grade network address translation board; when the first business flow is greater than a first flow threshold and lasts for a first preset time, determining a first number of second accounts from a first account using the carrier-grade network address translation board; switching the network address attributes of the first number of second accounts from a private network dual stack to a public network dual stack.

[0088] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0089] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0090] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0091] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0092] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0093] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.

[0094] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A flow control method, characterized in that: include: Detecting a first service flow that flows through a carrier-class network address translation board card; When the first service flow is greater than the first flow threshold and lasts for a first preset time, determining a first number of second accounts from the first accounts using the operator-level network address translation board; Wherein, determining a first number of second accounts from a first account using a carrier-grade network address translation board includes: determining a first regulated flow value, where the first regulated flow value is a first average value or a first peak value of a difference between a first service flow and a first flow threshold within a first preset time; sorting the service flows used by all first accounts from high to low, and accumulating one by one from the highest service flow and calculating a first accumulated flow value; when the first accumulated flow value is not less than the first regulated flow value, stopping accumulation and determining that the first account corresponding to the accumulated first number of service flows is the second account; The network address attribute of the first number of second accounts is switched from the private network dual stack to the public network dual stack.

2. The method according to claim 1, characterized in that After switching the network address attributes of the first number of second accounts from the private network dual stack to the public network dual stack, the method further includes: Detecting the second service flow through the carrier-class network address translation board; When the difference between the second business traffic and the first traffic threshold is greater than the second traffic threshold and lasts for a second preset time, the network address attribute of the second number of second accounts is switched from public network dual stack to private network dual stack, wherein the second number is not greater than the first number.

3. The method according to claim 2, characterized in that Switching the network address attributes of the second number of second accounts from the public network dual stack to the private network dual stack includes: dividing the first number of second accounts into a third number of account sets; The network address attribute switching process is performed on a fourth number of account sets in sequence, wherein the fourth number is not greater than the third number, the fourth number of account sets includes a second number of second accounts, and the network address attribute switching process includes: switching the network address attribute of the second account in an account set from a public network dual stack to a private network dual stack.

4. The method according to claim 3, characterized in that The fourth number of account sets are processed in sequence, including: After each network address attribute of a second account in an account set is switched from a public network dual stack to a private network dual stack, a third service flow flowing through the carrier-grade network address translation board is detected; When the third service flow is less than the first flow threshold, continue to perform network address attribute switching processing on the next account set; When the third service flow is not less than the first flow threshold, the network address attribute switching process for the next account set is stopped.

5. The method according to claim 2, characterized in that Switching the network address attributes of the second number of second accounts from the public network dual stack to the private network dual stack includes: Determine a second regulated flow value, and determine a third regulated flow value that is less than the second regulated flow value, wherein the second regulated flow value is a second average value or a second peak value of a difference between the second service flow and the first flow threshold within a second preset time; sorting the service traffic used by the first number of second accounts from low to high, and accumulating them one by one starting from the lowest service traffic and calculating a second accumulated traffic value; When the second accumulated traffic value is not less than the third regulated traffic value, the accumulation is stopped, and the network address attribute of the second account corresponding to the accumulated second amount of business traffic is switched from the public network dual stack to the private network dual stack.

6. The method according to claim 5, characterized in that After switching the network address attributes of the second number of second accounts from the public network dual stack to the private network dual stack, the method further includes: When the second number is less than the first number, the network address attribute of the second account whose network address attribute is still the public network dual stack is switched from the public network dual stack to the private network dual stack.

7. A flow control device, characterized in that: include: A first detection module, used for detecting a first service flow flowing through a carrier-level network address translation board; The first determination module is used to determine a first number of second accounts from a first account using a carrier-level network address translation board when the first service flow is greater than a first flow threshold and lasts for a first preset time, including: determining a first regulated flow value, the first regulated flow value being a first average value or a first peak value of a difference between the first service flow and the first flow threshold within a first preset time; sorting the service flows used by all first accounts from high to low, and accumulating one by one from the highest service flow and calculating a first accumulated flow value; when the first accumulated flow value is not less than the first regulated flow value, stopping accumulation and determining that the first account corresponding to the accumulated first number of service flows is the second account; The first switching module is used to switch the network address attributes of the first number of second accounts from the private network dual stack to the public network dual stack.

8. The device according to claim 7, characterized in that The device also includes: A second detection module, used for detecting a second service flow flowing through the operator-level network address translation board; The second switching module is used to switch the network address attributes of the second number of second accounts from the public network dual stack to the private network dual stack when the difference between the second business traffic and the first traffic threshold is greater than the second traffic threshold and lasts for a second preset time, wherein the second number is not greater than the first number.

9. An electronic device, characterized in that: include: A memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the flow control method of any one of claims 1 to 6 through the computer program.