CN112769668B - Tunnel bandwidth adjusting method, device, gateway and storage medium - Google Patents
Tunnel bandwidth adjusting method, device, gateway and storage medium Download PDFInfo
- Publication number
- CN112769668B CN112769668B CN201911002401.XA CN201911002401A CN112769668B CN 112769668 B CN112769668 B CN 112769668B CN 201911002401 A CN201911002401 A CN 201911002401A CN 112769668 B CN112769668 B CN 112769668B
- Authority
- CN
- China
- Prior art keywords
- tunnel
- bandwidth
- determining
- congestion
- threshold
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0896—Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/52—Queue scheduling by attributing bandwidth to queues
- H04L47/522—Dynamic queue service slot or variable bandwidth allocation
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a tunnel bandwidth adjusting method, a tunnel bandwidth adjusting device, a gateway and a storage medium. Wherein, the method comprises the following steps: determining the data transmission type of a tunnel established between a packet data gateway and more than two application servers based on the service attribute of the transmitted data, classifying the tunnel based on the data transmission type, and determining the monitoring strategy of the tunnel of the corresponding category according to the category of the tunnel; detecting the corresponding tunnel type based on monitoring strategy monitoring to obtain bandwidth occupation parameters of the corresponding tunnel, wherein the bandwidth occupation parameters represent corresponding bandwidth occupation conditions of the corresponding tunnel; and allocating the bandwidth of the tunnel based on the bandwidth occupation parameter so as to adapt to the bandwidth requirement of the data transmission of the tunnel to be adjusted.
Description
Technical Field
The present invention relates to the field of data transmission, and in particular, to a method, an apparatus, a gateway, and a storage medium for adjusting a tunnel bandwidth.
Background
The narrowband internet of things can adopt a tunnel mode to transmit non-IP (non-IP) data transmitted between a P-GW (PDN GateWay, packet data GateWay) and an AS (Application Server). When the P-GW establishes tunnel connection with the AS of a plurality of services, under the condition that the total bandwidth of the P-GW is limited, how to ensure that the data in each tunnel can be normally transmitted is the problem that needs to be considered when the narrowband Internet of things adopts a tunnel mode to transmit non-IP data.
In the related art, when a tunnel is established between a P-GW and an AS, tunnel bandwidth allocation is generally performed in an estimated manner. As services evolve, the bandwidth allocated statically at first is likely to not meet the requirements of service evolution.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a gateway, and a storage medium for adjusting a tunnel bandwidth, which aim to improve reliability of data transmission in a tunnel mode.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a tunnel bandwidth adjusting method, which comprises the following steps:
determining the data transmission type of a tunnel established between a packet data gateway and more than two application servers based on the service attribute of the transmitted data, classifying the tunnel based on the data transmission type, and determining the monitoring strategy of the tunnel of the corresponding category according to the category of the tunnel;
detecting the corresponding tunnel type based on monitoring strategy monitoring to obtain a bandwidth occupation parameter of the corresponding tunnel, wherein the bandwidth occupation parameter represents a bandwidth occupation condition corresponding to the corresponding tunnel;
and allocating the bandwidth of the tunnel based on the bandwidth occupation parameter so as to adapt to the bandwidth requirement of the data transmission of the tunnel to be adjusted.
In the above solution, the classifying the tunnels based on the data transmission type includes:
determining a tunnel type of the tunnel based on a service parameter corresponding to a data transmission type, wherein the service parameter includes at least one of: reporting frequency, reporting type, message size and static bandwidth allocation value.
In the foregoing solution, the allocating the bandwidth of the tunnel based on the bandwidth occupation parameter includes:
determining that the tunnel with the bandwidth occupation parameter larger than a first threshold is a congestion tunnel, and determining that the tunnel with the bandwidth occupation parameter smaller than a second threshold is an idle tunnel;
selecting a qualified bandwidth providing tunnel from the idle tunnels based on the capacity expansion bandwidth number required by the congestion tunnel, and allocating the bandwidth of the required capacity expansion bandwidth number to the congestion tunnel from the qualified bandwidth providing tunnel;
wherein the first threshold is greater than the second threshold.
In the foregoing solution, the tunnel type includes: a high-assurance tunnel, a medium-assurance tunnel and a common tunnel; selecting a qualified bandwidth providing tunnel from the idle tunnels based on the capacity expansion bandwidth number required by the congestion tunnel, wherein the method comprises the following steps:
determining the capacity expansion bandwidth number required by the congestion tunnel based on the bandwidth occupation parameter corresponding to the congestion tunnel;
and determining a bandwidth providing tunnel capable of providing the required capacity expansion bandwidth number from the idle tunnel according to the priority sequence from the common tunnel type, the middle-guarantee tunnel type to the high-guarantee tunnel type in sequence.
In the above scheme, the method further comprises:
and if the bandwidth occupation parameter of the congestion tunnel is smaller than the second threshold value, returning the allocated bandwidth of the required capacity expansion bandwidth number to the corresponding bandwidth providing tunnel.
In the above scheme, the method further comprises:
if the bandwidth occupation parameter of a certain tunnel is larger than a third threshold value, predicting the bandwidth occupation parameter corresponding to the next time period of the tunnel based on a time sequence algorithm, and allocating the bandwidth of the tunnel based on the predicted bandwidth occupation parameter;
wherein the third threshold is less than the first threshold and greater than the second threshold.
In the foregoing solution, the method further includes at least one of:
counting the allocation information for allocating the bandwidth of the tunnel, obtaining a predicted adjustment demand based on the counted allocation information, and allocating the bandwidth according to the predicted adjustment demand;
and counting the allocation information for allocating the bandwidth of the tunnel, determining the corresponding relation between the congestion tunnel and the bandwidth providing tunnel based on the counted allocation information, and determining the bandwidth providing tunnel corresponding to the congestion tunnel based on the corresponding relation when allocating the bandwidth next time.
The embodiment of the present invention further provides a tunnel bandwidth adjusting apparatus, including:
the monitoring strategy determining module is used for determining the data transmission type of the tunnel established between the packet data gateway and more than two application servers based on the service attribute of the transmitted data, classifying the tunnel based on the data transmission type, and determining the monitoring strategy of the tunnel of the corresponding category according to the category of the tunnel;
the bandwidth monitoring module is used for detecting the corresponding tunnel type based on monitoring of a monitoring strategy to obtain a bandwidth occupation parameter of the corresponding tunnel, wherein the bandwidth occupation parameter represents a bandwidth occupation condition corresponding to the corresponding tunnel;
and the bandwidth adjusting module is used for allocating the bandwidth of the tunnel based on the bandwidth occupation parameter so as to adapt to the bandwidth requirement of the data transmission of the tunnel to be adjusted.
In the foregoing solution, the monitoring policy determining module is specifically configured to:
determining a tunnel type of the tunnel based on a service parameter corresponding to a data transmission type, wherein the service parameter includes at least one of: reporting frequency, reporting type, message size and static bandwidth allocation value.
In the foregoing solution, the bandwidth adjusting module is specifically configured to:
determining that the tunnel with the bandwidth occupation parameter larger than a first threshold value is a congestion tunnel, and determining that the tunnel with the bandwidth occupation parameter smaller than a second threshold value is an idle tunnel;
selecting a qualified bandwidth providing tunnel from the idle tunnels based on the capacity expansion bandwidth number required by the congestion tunnel, and allocating the bandwidth of the required capacity expansion bandwidth number to the congestion tunnel from the qualified bandwidth providing tunnel;
wherein the first threshold is greater than the second threshold.
In the foregoing solution, the tunnel type includes: a high-security tunnel, a medium-security tunnel and a common tunnel; the bandwidth adjustment module is specifically configured to:
determining the expansion bandwidth number required by the congestion tunnel based on the bandwidth occupation parameter corresponding to the congestion tunnel;
and determining a bandwidth providing tunnel capable of providing the required capacity expansion bandwidth number from the idle tunnel according to the priority sequence from the common tunnel type, the middle-guarantee tunnel type to the high-guarantee tunnel type in sequence.
In the foregoing solution, the bandwidth adjusting module is further configured to: and if the bandwidth occupation parameter of the congestion tunnel is smaller than the second threshold value, returning the allocated bandwidth of the required capacity expansion bandwidth number to the corresponding bandwidth providing tunnel.
In the above scheme, the apparatus further comprises:
the prediction adjusting module is used for predicting the bandwidth occupation parameter corresponding to the next period of the tunnel based on a time sequence algorithm and allocating the bandwidth of the tunnel based on the predicted bandwidth occupation parameter if the bandwidth occupation parameter of a certain tunnel is larger than a third threshold;
wherein the third threshold is less than the first threshold and greater than the second threshold.
In the above solution, the apparatus further includes:
a statistics module to at least one of:
counting the allocation information for allocating the bandwidth of the tunnel, obtaining a predicted adjustment demand based on the counted allocation information, and allocating the bandwidth according to the predicted adjustment demand;
and counting the allocation information for allocating the bandwidth of the tunnel, determining the corresponding relation between the congestion tunnel and the bandwidth providing tunnel based on the counted allocation information, and determining the bandwidth providing tunnel corresponding to the congestion tunnel based on the corresponding relation when allocating the bandwidth next time.
The embodiments of the present invention further provide a storage medium, where a computer program is stored, where the computer program is executed by a processor, and is characterized in that the steps of the method according to any embodiment of the present invention are implemented.
According to the technical scheme provided by the embodiment of the invention, the bandwidth of the tunnel is allocated based on the bandwidth occupation parameters by monitoring the bandwidth occupation parameters respectively corresponding to more than two tunnels for transmitting data, so that the bandwidth can be allocated based on the bandwidth occupation condition corresponding to each tunnel, the congestion problem caused by static bandwidth allocation of the tunnel is solved, and the bandwidth of the tunnel is dynamically adjusted, so that the utilization rate of the tunnel bandwidth between the P-GW and the AS is greatly improved, and the bandwidth resource allocation is optimized.
Drawings
Fig. 1 is a schematic diagram of a non-IP data transmission path in the related art;
FIG. 2 is a schematic diagram illustrating a UDP/IP-based tunneling scheme in the related art;
fig. 3 is a schematic diagram of a tunnel transmission based on other mechanisms in the related art;
FIG. 4 is a diagram illustrating a tunnel connection between a P-GW and an AS in the related art;
fig. 5 is a schematic flowchart of a tunnel bandwidth adjustment method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a tunnel bandwidth adjusting apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a gateway according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
A non-IP terminal is used AS a branch of a narrowband internet of things, and there is a brief description about how to implement transmission of non-IP data between a RAN (radio access network) and an AS in 3GPP (third generation partnership project) R13 release, and the non-IP terminal mainly relates to two transmission modes, AS shown in fig. 1, data can be encapsulated and transmitted by an SCEF (Service Capability Exposure Function) module, and data can be encapsulated and transmitted by a P-GW (SGi interface).
For the mode of P-GW transmission, the transmission path of Non-IP data from the terminal (UE) to the AS can be divided into two sections: the first leg is from the UE to the P-GW and the second leg is from the P-GW to the AS.
UE-to-P-GW: the Non-IP data and the IP data are transmitted in the same manner in this segment, and are transmitted through NAS (Non-access stratum) signaling. The only difference between the two is that the PDN (packet data network) bearers are of different types and the network does not allocate an IP address to the UE using the non-IP bearer.
P-GW to AS: currently, R13 specifies two modes:
the method comprises the steps that an SGi PtP tunnel is constructed on the basis of UDP/IP;
in the second mode, the point-to-point tunnel from P-GW to AS is constructed based on other tunnel mechanisms (such AS PMIPv6/GRE, L2TP, GTP-C/U).
As shown in fig. 2, the tunnel construction in the first mode mainly includes:
1) On P-GW, using APN (access network name) AS granularity, pre-configuring IP address of AS;
2) When an attached PDN initiated by UE is established, a P-GW allocates an IP address for the UE (the IP address is not returned to the UE), and establishes a (GTP tunnel ID, UE _ IP) mapping table;
3) For uplink data, when the P-GW receives non-IP data sent by the UE side, the P-GW strips the data from the GTP tunnel, adds an IP header (the source IP is the IP allocated by the P-GW for the UE in the previous step, and the target IP is the IP of the AS), and then sends the data to the AS through the IP network;
4) After receiving the IP message, the AS analyzes the non-IP data content therein to obtain a user ID, and establishes a (user ID, UE _ IP) mapping table to provide a basis for sending subsequent downlink data;
5) And for the downlink data, the AS encapsulates the data by a header with the UE _ IP and sends the encapsulated data to the P-GW. After receiving the data, the P-GW removes the IP header, encapsulates the data according to the GTP packet requirement and then sends the encapsulated data to the S-GW.
As shown in fig. 3, the tunnel construction of the second method mainly includes:
1) In P-GW, APN is used AS granularity, and IP address of AS is configured in advance;
2) When UE initiates establishment of an attached PDN, a P-GW does not allocate an IP address for the UE, but establishes a tunnel to an AS and establishes mapping tables of tunnels on the left side and the right side;
3) For uplink data, after receiving non-IP data sent by a UE side, a P-GW strips the non-IP data from a GTP tunnel (GTP _ 1), puts the non-IP data into a tunnel (GTP _ 2) established between the P-GW and an AS, and then sends the non-IP data to the AS through the tunnel;
4) After receiving the data, the AS analyzes the non-IP data content and the user ID therein, and establishes a (user ID, tunnel ID) mapping table to provide a basis for the subsequent downlink data transmission;
5) And for the downlink data, the AS sends the downlink data to the P-GW through GTP _2, and after receiving the data, the P-GW analyzes the non-IP data therein, encapsulates the data according to the requirement of GTP _1 and then sends the encapsulated data to the S-GW (serving gateway).
In the related art, when a P-GW establishes tunnel connections with ASs of numerous services, AS shown in fig. 4, the terminals of the internet of things include various types of terminals, such AS terminals of intelligent security, meter reading, intelligent street lamps, and child watches, and accordingly, the AS connected to the P-GW includes: intelligent security AS, meter reading AS, intelligent street lamp AS and child watch AS. Under the condition that the total bandwidth for P-GW transmission is limited, how to ensure that the data in each tunnel can be normally transmitted is a problem to be considered when the narrowband Internet of things adopts a tunnel mode to transmit non-IP data. When a tunnel is established between the P-GW and the AS, the tunnel bandwidth is generally allocated in an estimated mode, and with the development of services, the bandwidth which is initially statically allocated probably does not meet the development requirements of the services.
Based on this, in various embodiments of the present invention, by monitoring bandwidth occupation parameters respectively corresponding to multiple tunnels for transmitting data, and performing frequency modulation on bandwidths of the two or more tunnels based on the bandwidth occupation parameters, bandwidth allocation can be performed based on bandwidth occupation conditions corresponding to the tunnels, so AS to solve a congestion problem caused by static bandwidth allocation of the tunnels, and dynamically adjust the bandwidths of the tunnels, thereby greatly improving the utilization rate of the tunnel bandwidths between the P-GW and the AS, and optimizing bandwidth resource allocation.
An embodiment of the present invention provides a method for adjusting a tunnel bandwidth, and as shown in fig. 5, the method includes:
step 501, determining a data transmission type of a tunnel established between a packet data gateway and more than two application servers based on service attributes of transmitted data, classifying the tunnel based on the data transmission type, and determining a monitoring strategy of the tunnel of a corresponding category according to the category of the tunnel;
here, the service attribute may be an attribute corresponding to a service of the data of the internet of things, for example, the service attribute is determined according to an operator of the data of the internet of things, and the service data uploaded by terminal devices of different operators is transmitted to a corresponding Application Server (AS) through a corresponding tunnel. It should be noted that the packet data gateway (P-GW) may connect to two or more ases maintained by different operators, so that each tunnel transfers data of a data transmission type pre-agreed by each operator to the corresponding AS, for example, the data transmission type may include: intelligent security, meter reading, intelligent street lamps, children watches and the like.
Here, the monitoring policy may be a monitoring frequency or a monitoring period corresponding to the tunnel.
Here, the congested tunnel and the idle tunnel may be determined based on bandwidth occupation parameters of the multiple tunnels, and the bandwidth with the set bandwidth number on the idle tunnel may be allocated to the congested tunnel, so as to meet a bandwidth requirement of data transmission.
Because the service characteristics of the internet of things borne by the narrow-band internet of things are different, the data quantity transmitted in each tunnel is different, and the time delay requirement for data transmission is different. Based on this, in an embodiment, the classifying the tunnel based on the data transmission type includes: determining a tunnel type of the tunnel based on a service parameter corresponding to a data transmission type, wherein the service parameter includes at least one of: reporting frequency, reporting type, message size and static bandwidth allocation value.
Therefore, the monitoring strategies corresponding to the tunnels are determined according to the tunnel types corresponding to the tunnels, the monitoring requirements of different tunnels can be met, and the influence on the operation of the tunnels is reduced.
Here, the data transferred over the tunnel is non-IP data.
Since the determination of the tunnel type is the basis for implementing the classification monitoring. In practical application, when a tunnel is created, data such AS reporting frequency (second level, classification, hour level, and the like), reporting type (periodicity or trigger), message size (average size, maximum value, and the like), static bandwidth allocation, and the like of service data of a tunnel connection AS are recorded AS input of subsequent analysis. In an application example, the tunnel is classified into a high-assurance type tunnel, a medium-assurance type tunnel, and a normal tunnel. The following describes each type of tunnel:
high-security tunnel
The high-guarantee type tunnel refers to that data reporting is service triggering, and reporting frequency is concentrated in a certain time period. Once the reporting condition is triggered, the UE reports data in a short time at a frequency of seconds, and the size of the message approaches the maximum value. Such services have strong burstiness, for example, a smart child watch, when a child is in continuous motion after leaving school, a terminal shortens a period of reporting position information, and frequently reports data.
Medium guarantee type tunnel
The medium-guarantee type tunnel means that data reporting is periodic, is concentrated in a fixed time period every day, has a fixed message size, and is maintained near the average size. For example, the intelligent street lamp service is close to the evening, the street lamp is remotely turned on, and the street lamp reports state and other information to the platform at fixed intervals.
Ordinary tunnel
The common tunnel means that data reporting is periodic, frequent data reporting is performed in a fixed time period of fixed days each month, data such as heartbeat and the like are only reported at fixed intervals in most other time periods, and the size of a message is fixed. For example, the data is reported once a month in meter reading service.
In an application example, the tunnel classification is shown in table 1.
Type of service | Trigger condition | Message size | Reporting period | Active period | Bandwidth of tunnel | Type of tunnel |
Children watch | Trigger type | Big fluctuation | Uncertainty | Uncertainty | 100Mbps | High-guarantee tunnel |
Intelligent street lamp | Periodic type | Fixing the device | Fixing | 18-day 00-next | 10Mbps | Well barrier tunnel |
Intelligent water meter | Periodic type | Fixing the device | Fixing | No. 5 of the first month | 5Mbps | Ordinary tunnel |
Intelligent security protection | Trigger type | Fixing the device | Fixing the device | 8:00-18:00 | 120Mbps | Well barrier tunnel |
TABLE 1
As shown in table 1, different service types may be determined according to corresponding trigger conditions, reporting types, packet sizes, reporting periods, active periods, and tunnel bandwidths (i.e., static bandwidth allocation values).
In the embodiment of the invention, the monitoring strategy corresponding to the tunnel can be determined according to the type of the tunnel corresponding to the tunnel. The monitoring of data transmission on the tunnel refers to monitoring data such as data message size, transmission occupied bandwidth and the like in real time according to a certain rule, and providing input for the next tunnel congestion pre-judgment. For convenience of the subsequent description, the following variables are defined:
wa: representing real-time bandwidth
Wm: representing allocated bandwidth for a tunnel
Wr: representing bandwidth occupancy, wr = Wa/Wm
In one application example, the monitoring strategy is determined as follows:
data transmitted in a high-assurance tunnel may be bursty, and the real-time bandwidth occupation of such a tunnel needs to be focused. The system checks the bandwidth occupation condition of the tunnel in all weather at regular time, interval strategy expansion is checked at regular time through ladder type adjustment, and monitoring strategies corresponding to the high-security tunnel are shown in a table 2. Corresponding monitoring frequency can be set according to different bandwidth occupancy rates, the monitoring frequency is increased along with the improvement of the bandwidth occupancy rates, and a ladder type monitoring rule is formed.
Bandwidth occupancy | Bandwidth real-time monitoring interval |
Wr<50% | Check Wa every 5min |
50%<Wr<70% | Check Wa every 2min |
70%<Wr<90% | Check Wa every 30s |
90%>Wr | Check Wa every 5s |
TABLE 2
The data transmitted by the medium-guarantee type tunnel is concentrated in a fixed time period every day, and the monitoring of the tunnel is only concentrated in the fixed time period. The above described ladder type monitoring rules may be employed as well.
The data volume transmitted by the common tunnel is kept stable basically, and unless the service is expanded and the number of the UE is increased sharply, the bandwidth statically allocated when the tunnel is just established does not meet the requirement. Therefore, for the tunnel, the relation between the number of the UE and the Wa is analyzed only by recording the bandwidth occupation condition when the data transmission peak value exists, and a decision basis is provided for subsequent AS service expansion and tunnel bandwidth expansion.
In an embodiment, the allocating the bandwidth of the tunnel based on the bandwidth occupation parameter includes:
determining that the tunnel with the bandwidth occupation parameter larger than a first threshold is a congestion tunnel, and determining that the tunnel with the bandwidth occupation parameter smaller than a second threshold is an idle tunnel;
selecting a qualified bandwidth providing tunnel from the idle tunnels based on the capacity expansion bandwidth number required by the congestion tunnel, and allocating the bandwidth of the required capacity expansion bandwidth number to the congestion tunnel from the qualified bandwidth providing tunnel;
wherein the first threshold is greater than the second threshold.
In an embodiment, the method further comprises:
and if the bandwidth occupation parameter of the congestion tunnel is smaller than the second threshold value, returning the allocated bandwidth of the required capacity expansion bandwidth number to the corresponding bandwidth providing tunnel.
Therefore, after the bandwidth of the congestion tunnel is occupied and returned, the frequency-modulated bandwidth can be returned to the corresponding bandwidth provider in time.
In an embodiment, the selecting a qualified bandwidth providing tunnel from the idle tunnels based on the capacity expansion bandwidth number required by the congested tunnel includes:
determining the expansion bandwidth number required by the congestion tunnel based on the bandwidth occupation parameter corresponding to the congestion tunnel;
and determining a bandwidth providing tunnel capable of providing the required capacity expansion bandwidth number from the idle tunnels according to the priority sequence from the common tunnel type, the middle-guarantee tunnel type to the high-guarantee tunnel type in sequence.
In an application example, once congestion is found in a tunnel based on monitored bandwidth occupancy parameters, the system needs to dynamically allocate bandwidth from other idle tunnels immediately. The specific strategy is to predict the bandwidth number of the current tunnel needing capacity expansion, check a tunnel data transmission tracking table, find the tunnel with the current Wr lower than 50% and release the required bandwidth number. And finding out the tunnel with high guarantee from the common tunnel. And when the congestion tunnel Wr gradually falls back to 50%, returning the temporarily allocated bandwidth to the corresponding tunnel.
In order to effectively improve the quality of data transmission, in an embodiment, the method further includes:
if the bandwidth occupation parameter of a certain tunnel is larger than a third threshold value, predicting the bandwidth occupation parameter corresponding to the next period of the tunnel based on a time sequence algorithm, and allocating the bandwidth of the tunnel based on the predicted bandwidth occupation parameter;
wherein the third threshold is less than the first threshold and greater than the second threshold.
Here, the dynamic adjustment of the tunnel is performed according to the predicted bandwidth occupation parameter, so that the congestion of the tunnel can be predicted in advance and adjusted in advance.
In an application example, when Wr is greater than 90%, the maximum bandwidth of the tunnel is approached, monitoring Wa is shortened, and meanwhile, a tunnel congestion pre-judging mechanism is started. A bandwidth prediction model trained by a time series algorithm ARIMA and historical Wa data is adopted to predict the change trend of the Wa in the next time period so as to judge whether congestion occurs next.
In an embodiment, the method further comprises at least one of:
counting the allocation information for allocating the bandwidth of the tunnel, obtaining a predicted adjustment demand based on the counted allocation information, and allocating the bandwidth according to the predicted adjustment demand;
and counting the allocation information for allocating the bandwidth of the tunnel, determining the corresponding relation between the congestion tunnel and the bandwidth providing tunnel based on the counted allocation information, and determining the bandwidth providing tunnel corresponding to the congestion tunnel based on the corresponding relation when allocating the bandwidth next time.
In an application example, a tunnel bandwidth retriever, a tunnel bandwidth provider and a specific allocation value are recorded each time tunnel bandwidth is dynamically adjusted, and after data is accumulated to a certain degree, big data analysis is performed to optimize as follows:
1) And analyzing the change rule of the tunnel bandwidth, combining the real-time pre-judgment of the tunnel congestion with the offline prediction of the congestion, predicting a fixed congestion time period, allocating the bandwidth in advance and reducing the delay of the real-time pre-judgment.
2) And searching a tunnel which is often used as a bandwidth provider, establishing a corresponding relation between a tunnel bandwidth retriever and the tunnel bandwidth provider, and reducing the bandwidth allocation time.
Therefore, data analysis can be carried out based on historical adjustment data, adjustment requirements can be further predicted, delay caused by real-time prejudgment is reduced, the corresponding relation between a tunnel bandwidth retriever and a tunnel bandwidth provider can be determined through data analysis, bandwidth allocation time is shortened, and allocation efficiency is improved.
In order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides a device for adjusting a tunnel bandwidth, where as shown in fig. 6, the device includes:
a monitoring policy determining module 601, configured to determine a data transmission type of a tunnel established between the packet data gateway and the two or more application servers based on a service attribute of the transmitted data, classify the tunnel based on the data transmission type, and determine a monitoring policy of the tunnel of a corresponding category according to the category of the tunnel;
a bandwidth monitoring module 602, configured to detect a tunnel of a corresponding category based on monitoring of a monitoring policy, to obtain a bandwidth occupation parameter of the corresponding tunnel, where the bandwidth occupation parameter represents a bandwidth occupation situation corresponding to the corresponding tunnel;
a bandwidth adjusting module 603, configured to allocate a bandwidth of the tunnel based on the bandwidth occupation parameter, so as to adapt to a bandwidth requirement of data transmission of the tunnel to be adjusted.
In some embodiments, the monitoring policy determining module 601 is specifically configured to:
determining a tunnel type of the tunnel based on a service parameter corresponding to a data transmission type, wherein the service parameter includes at least one of: reporting frequency, reporting type, message size and static bandwidth allocation value.
In some embodiments, the bandwidth adjustment module 603 is specifically configured to:
determining that the tunnel with the bandwidth occupation parameter larger than a first threshold value is a congestion tunnel, and determining that the tunnel with the bandwidth occupation parameter smaller than a second threshold value is an idle tunnel;
selecting a qualified bandwidth providing tunnel from the idle tunnels based on the capacity expansion bandwidth number required by the congestion tunnel, and allocating the bandwidth of the required capacity expansion bandwidth number to the congestion tunnel from the qualified tunnel;
wherein the first threshold is greater than the second threshold.
In some embodiments, the bandwidth adjustment module 603 is further configured to: and if the bandwidth occupation parameter of the congestion tunnel is smaller than the second threshold value, returning the allocated bandwidth of the required capacity expansion bandwidth number to the corresponding bandwidth providing tunnel.
In one embodiment, the tunnel type includes: a high-assurance tunnel, a medium-assurance tunnel and a common tunnel; the bandwidth adjusting module 603 is specifically configured to:
determining the capacity expansion bandwidth number required by the congestion tunnel based on the bandwidth occupation parameter corresponding to the congestion tunnel;
and determining a bandwidth providing tunnel capable of providing the required capacity expansion bandwidth number from the idle tunnels according to the priority sequence from the common tunnel type, the middle-guarantee tunnel type to the high-guarantee tunnel type in sequence.
In some embodiments, the apparatus further comprises: a prediction adjusting module 604, configured to predict, based on a time series algorithm, a bandwidth occupation parameter corresponding to a next time period of a certain tunnel if the bandwidth occupation parameter of the tunnel is greater than a third threshold, and allocate a bandwidth of the tunnel based on the predicted bandwidth occupation parameter; wherein the third threshold is less than the first threshold and greater than the second threshold.
In some embodiments, the apparatus further comprises: a statistics module 605 for at least one of:
counting the allocation information for allocating the bandwidth of the tunnel, obtaining a predicted adjustment demand based on the counted allocation information, and allocating the bandwidth according to the predicted adjustment demand;
and counting the allocation information for allocating the bandwidth of the tunnel, determining the corresponding relation between the congestion tunnel and the bandwidth providing tunnel based on the counted allocation information, and determining the bandwidth providing tunnel corresponding to the congestion tunnel based on the corresponding relation when allocating the bandwidth next time.
In practical application, the modules can be implemented by a processor in the tunnel bandwidth adjusting device. Of course, the processor needs to run a computer program in memory to implement its functions.
It should be noted that: in the tunnel bandwidth adjusting apparatus provided in the foregoing embodiment, when data transmission is performed, only the division of the program modules is illustrated, and in practical applications, the processing allocation may be completed by different program modules according to needs, that is, the internal structure of the apparatus is divided into different program modules, so as to complete all or part of the processing described above. In addition, the tunnel bandwidth adjusting apparatus and the tunnel bandwidth adjusting method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Based on the hardware implementation of the program module, and in order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides a gateway, where the gateway may be a packet data gateway. Fig. 7 shows only an exemplary structure of the gateway and not the entire structure, and a part of or the entire structure shown in fig. 7 may be implemented as necessary.
As shown in fig. 7, a gateway 700 provided in an embodiment of the present invention includes: at least one processor 701, a memory 702, at least one network interface 703. The various components in the gateway 700 are coupled together by a bus system 704. It will be appreciated that the bus system 704 is used to enable communications among the components. The bus system 704 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are designated as bus system 704 in FIG. 7.
The memory 702 in embodiments of the present invention is used to store various types of data to support the operation of the gateway 700. Examples of such data include: any computer program for operating on the gateway 700.
The method for adjusting the tunnel bandwidth disclosed by the embodiment of the invention can be applied to the processor 701, or can be implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the tunnel bandwidth adjustment method may be implemented by an integrated logic circuit of hardware in the processor 701 or by instructions in the form of software. The Processor 701 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 701 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software module may be located in a storage medium located in the memory 702, and the processor 701 reads information in the memory 702, and completes the steps of the tunnel bandwidth adjusting method provided in the embodiment of the present invention in combination with hardware thereof.
In an exemplary embodiment, the gateway 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, programmable Logic Devices (PLDs), complex Programmable Logic Devices (CPLDs), FPGAs, general purpose processors, controllers, micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
It will be appreciated that the memory 702 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a magnetic random access Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration, and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), synchronous Static Random Access Memory (SSRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), double Data Rate Synchronous Random Access Memory (ESDRAM), enhanced Synchronous Dynamic Random Access Memory (ESDRAM), enhanced Synchronous Random Access Memory (DRAM), synchronous Random Access Memory (DRAM), direct Random Access Memory (DRmb Access Memory). The memory described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In an exemplary embodiment, the embodiment of the present invention further provides a storage medium, that is, a computer storage medium, which may be specifically a computer readable storage medium, for example, including a memory 702 storing a computer program, where the computer program is executable by a processor 701 of a gateway 700 to perform the steps described in the method of the embodiment of the present invention. The computer readable storage medium may be a ROM, PROM, EPROM, EEPROM, flash Memory, magnetic surface Memory, optical disk, or CD-ROM, among others.
It should be noted that: "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In addition, the technical solutions described in the embodiments of the present invention may be arbitrarily combined without conflict.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (14)
1. A method for adjusting tunnel bandwidth is characterized by comprising the following steps:
determining the data transmission type of a tunnel established between a packet data gateway and more than two application servers based on the service attribute of the transmitted data, classifying the tunnel based on the data transmission type, and determining the monitoring strategy of the tunnel of the corresponding category according to the category of the tunnel;
detecting the corresponding tunnel type based on monitoring strategy monitoring to obtain a bandwidth occupation parameter of the corresponding tunnel, wherein the bandwidth occupation parameter represents a bandwidth occupation condition corresponding to the corresponding tunnel;
allocating the bandwidth of the tunnel based on the bandwidth occupation parameter so as to adapt to the bandwidth requirement of the data transmission of the tunnel to be adjusted;
wherein the classifying the tunnels based on the data transmission type includes:
determining a tunnel type of the tunnel based on a service parameter corresponding to a data transmission type, wherein the service parameter includes: presetting a trigger condition, a reporting type, a message size, a reporting period, an active time interval and a static bandwidth allocation value.
2. The method of claim 1, wherein the allocating bandwidth of a tunnel based on the bandwidth occupancy parameter comprises:
determining that the tunnel with the bandwidth occupation parameter larger than a first threshold is a congestion tunnel, and determining that the tunnel with the bandwidth occupation parameter smaller than a second threshold is an idle tunnel;
selecting a qualified bandwidth providing tunnel from the idle tunnels based on the capacity expansion bandwidth number required by the congestion tunnel, and allocating the bandwidth of the required capacity expansion bandwidth number to the congestion tunnel from the qualified bandwidth providing tunnel;
wherein the first threshold is greater than the second threshold.
3. The method of claim 2, wherein the tunnel type comprises: a high-security tunnel, a medium-security tunnel and a common tunnel; the selecting a qualified bandwidth providing tunnel from the idle tunnels based on the expansion bandwidth number required by the congestion tunnel includes:
determining the expansion bandwidth number required by the congestion tunnel based on the bandwidth occupation parameter corresponding to the congestion tunnel;
and determining a bandwidth providing tunnel capable of providing the required capacity expansion bandwidth number from the idle tunnels according to the priority sequence from the common tunnel type, the middle-guarantee tunnel type to the high-guarantee tunnel type in sequence.
4. The method of claim 2, further comprising:
and if the bandwidth occupation parameter of the congestion tunnel is smaller than the second threshold value, returning the allocated bandwidth of the required capacity expansion bandwidth number to the corresponding bandwidth providing tunnel.
5. The method of claim 2, further comprising:
if the bandwidth occupation parameter of a certain tunnel is larger than a third threshold value, predicting the bandwidth occupation parameter corresponding to the next time period of the tunnel based on a time sequence algorithm, and allocating the bandwidth of the tunnel based on the predicted bandwidth occupation parameter;
wherein the third threshold is less than the first threshold and greater than the second threshold.
6. The method of claim 1, further comprising at least one of:
counting the allocation information for allocating the bandwidth of the tunnel, obtaining a predicted adjustment demand based on the counted allocation information, and allocating the bandwidth according to the predicted adjustment demand;
and counting the allocation information for allocating the bandwidth of the tunnel, determining the corresponding relation between the congestion tunnel and the bandwidth providing tunnel based on the counted allocation information, and determining the bandwidth providing tunnel corresponding to the congestion tunnel based on the corresponding relation in the next bandwidth allocation.
7. A tunnel bandwidth adjusting apparatus, comprising:
the monitoring strategy determining module is used for determining the data transmission type of the tunnel established between the packet data gateway and more than two application servers based on the service attribute of the transmitted data, classifying the tunnel based on the data transmission type and determining the monitoring strategy of the tunnel of the corresponding category according to the category of the tunnel;
the bandwidth monitoring module is used for detecting the corresponding tunnel type based on monitoring of a monitoring strategy to obtain a bandwidth occupation parameter of the corresponding tunnel, wherein the bandwidth occupation parameter represents a bandwidth occupation condition corresponding to the corresponding tunnel;
the bandwidth adjusting module is used for allocating the bandwidth of the tunnel based on the bandwidth occupation parameter so as to adapt to the bandwidth requirement of the data transmission of the tunnel to be adjusted;
the monitoring policy determination module is specifically configured to:
determining a tunnel type of the tunnel based on a service parameter corresponding to a data transmission type, wherein the service parameter includes: presetting a trigger condition, a reporting type, a message size, a reporting period, an active time period and a static bandwidth allocation value.
8. The apparatus of claim 7, wherein the bandwidth adjustment module is specifically configured to:
determining that the tunnel with the bandwidth occupation parameter larger than a first threshold is a congestion tunnel, and determining that the tunnel with the bandwidth occupation parameter smaller than a second threshold is an idle tunnel;
selecting a qualified bandwidth providing tunnel from the idle tunnels based on the capacity expansion bandwidth number required by the congestion tunnel, and allocating the bandwidth of the required capacity expansion bandwidth number to the congestion tunnel from the qualified bandwidth providing tunnel;
wherein the first threshold is greater than the second threshold.
9. The apparatus of claim 8, wherein the tunnel type comprises: a high-assurance tunnel, a medium-assurance tunnel and a common tunnel; the bandwidth adjustment module is specifically configured to:
determining the expansion bandwidth number required by the congestion tunnel based on the bandwidth occupation parameter corresponding to the congestion tunnel;
and determining a bandwidth providing tunnel capable of providing the required capacity expansion bandwidth number from the idle tunnels according to the priority sequence from the common tunnel type, the middle-guarantee tunnel type to the high-guarantee tunnel type in sequence.
10. The apparatus of claim 8, wherein the bandwidth adjustment module is further configured to: and if the bandwidth occupation parameter of the congestion tunnel is smaller than the second threshold value, returning the allocated bandwidth of the required capacity expansion bandwidth number to the corresponding bandwidth providing tunnel.
11. The apparatus of claim 8, further comprising:
the prediction adjusting module is used for predicting the bandwidth occupation parameter corresponding to the next period of the tunnel based on a time sequence algorithm and allocating the bandwidth of the tunnel based on the predicted bandwidth occupation parameter if the bandwidth occupation parameter of a certain tunnel is larger than a third threshold;
wherein the third threshold is less than the first threshold and greater than the second threshold.
12. The apparatus of claim 7, further comprising:
a statistics module to at least one of:
counting the allocation information for allocating the bandwidth of the tunnel, obtaining a predicted adjustment demand based on the counted allocation information, and allocating the bandwidth according to the predicted adjustment demand;
and counting the allocation information for allocating the bandwidth of the tunnel, determining the corresponding relation between the congestion tunnel and the bandwidth providing tunnel based on the counted allocation information, and determining the bandwidth providing tunnel corresponding to the congestion tunnel based on the corresponding relation in the next bandwidth allocation.
13. A gateway, comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein,
the processor, when executing the computer program, is adapted to perform the steps of the method of any of claims 1 to 6.
14. A storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911002401.XA CN112769668B (en) | 2019-10-21 | 2019-10-21 | Tunnel bandwidth adjusting method, device, gateway and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911002401.XA CN112769668B (en) | 2019-10-21 | 2019-10-21 | Tunnel bandwidth adjusting method, device, gateway and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112769668A CN112769668A (en) | 2021-05-07 |
CN112769668B true CN112769668B (en) | 2022-12-13 |
Family
ID=75691762
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911002401.XA Active CN112769668B (en) | 2019-10-21 | 2019-10-21 | Tunnel bandwidth adjusting method, device, gateway and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112769668B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105591982A (en) * | 2015-07-24 | 2016-05-18 | 杭州华三通信技术有限公司 | Message transmission method and device |
CN108966275A (en) * | 2017-05-18 | 2018-12-07 | 中兴通讯股份有限公司 | Jamming control method, device, equipment and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7324447B1 (en) * | 2002-09-30 | 2008-01-29 | Packeteer, Inc. | Methods, apparatuses and systems facilitating concurrent classification and control of tunneled and non-tunneled network traffic |
CN101505296A (en) * | 2008-02-05 | 2009-08-12 | 华为技术有限公司 | Control method and apparatus for tunnel service data stream |
CN101282298A (en) * | 2008-05-22 | 2008-10-08 | 中兴通讯股份有限公司 | Method and device for regulating bandwidth |
CN101282297A (en) * | 2008-05-22 | 2008-10-08 | 中兴通讯股份有限公司 | Method and device for regulating bandwidth |
CN110113222B (en) * | 2018-02-01 | 2023-05-02 | 中兴通讯股份有限公司 | Method and device for acquiring link bandwidth utilization rate and terminal |
-
2019
- 2019-10-21 CN CN201911002401.XA patent/CN112769668B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105591982A (en) * | 2015-07-24 | 2016-05-18 | 杭州华三通信技术有限公司 | Message transmission method and device |
CN108966275A (en) * | 2017-05-18 | 2018-12-07 | 中兴通讯股份有限公司 | Jamming control method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112769668A (en) | 2021-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20060140115A1 (en) | Resource allocation management | |
US20150124604A1 (en) | Systems and Methods for Proactive Congestion Detection in Radio Access Networks | |
KR101909557B1 (en) | Method and device for controlling traffic data in sdn mobile network | |
CN109257770B (en) | Overload control method, device, system and equipment | |
CN114143270B (en) | Bandwidth adjustment method and device | |
CN113825244A (en) | Resource scheduling method, device, network equipment and storage medium | |
CN110691375B (en) | Selection method, selection device and computer storage medium | |
WO2017127989A1 (en) | Control method and apparatus, and network controller | |
CN112769668B (en) | Tunnel bandwidth adjusting method, device, gateway and storage medium | |
CN110661722B (en) | Flow control method and device | |
CN103096386A (en) | Data business flow control method based on signaling analyzing | |
CN112202589B (en) | Network service management and control method and system | |
US10694435B2 (en) | Seamlessly handing over channel resources among user equipment | |
Nicolaescu et al. | Edge data repositories-the design of a store-process-send system at the edge | |
US9887857B2 (en) | Method for scheduling management operation on devices in a home network | |
US9706432B2 (en) | Method and a system for controlling traffic congestion in a network | |
CN113453285B (en) | Resource adjusting method, device and storage medium | |
US11689645B2 (en) | Service data transmission method and apparatus | |
WO2018082788A1 (en) | Efficient handling of loss and/or delay sensitive sporadic data traffic | |
CN114968391B (en) | Application acceleration method and device | |
JP2022541730A (en) | Network transmission control method and device | |
JP2007104605A (en) | Parameter setting system and method | |
CN114650556B (en) | Method, device and equipment for detecting service bearing capacity of wireless network | |
CN114339863B (en) | Uplink data transmission method and device, storage medium and electronic device | |
CN112804757B (en) | Switching method and device of frequency domain resource allocation types and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |