Traffic pattern determination method, electronic device, and storage medium
By dynamically selecting the target traffic mode based on historical traffic information and preset traffic values, the problems of poor user experience and traffic waste in network slicing technology are solved, and flexible network traffic services and efficient spectrum utilization are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-10
- Publication Date
- 2026-04-10
AI Technical Summary
Existing network slicing technology cannot be flexibly adjusted, resulting in poor user experience when traffic services change within a community, which may even affect user experience and lead to traffic waste.
By determining the estimated traffic value based on historical traffic information and combining it with the preset traffic value in the traffic pattern set, the most suitable target traffic pattern is dynamically selected to ensure the quality of user experience when traffic service changes and avoid waste.
It enables flexibility in ensuring user experience when traffic services change, avoids traffic waste, and improves spectrum utilization efficiency.
Smart Images

Figure CN114258055B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, and in particular to a traffic mode determination method, an electronic device and a storage medium. BACKGROUND
[0002] The fifth generation mobile communication technology (5G, 5th generation mobile networks) improves the data throughput rate of the network through three channels of more spectrum, higher spectrum efficiency and denser networking, and at the same time, the fifth generation mobile communication technology can provide customized network slicing technology for different user needs, and can meet the differentiated needs of vertical industries, and different network slices correspond to different network traffic modes. However, the existing network slicing technology generally corresponds to one network slice for a class of users, that is, the class of users fixedly uses the network traffic mode corresponding to the network slice, which is not flexible enough and cannot guarantee the traffic service of users in the cell when the traffic service of the cell changes, and sometimes even affects the user experience. SUMMARY
[0003] The present application provides a traffic mode determination method, an electronic device and a storage medium, which can provide more flexible network traffic services.
[0004] In a first aspect, the present application provides a traffic mode determination method, which comprises:
[0005] determining an estimated traffic value corresponding to the current time according to historical traffic information;
[0006] respectively determining a preset traffic value corresponding to each traffic mode included in a traffic mode set, wherein the preset traffic value corresponds to the current time;
[0007] determining a target traffic mode corresponding to the current time from the traffic mode set according to the estimated traffic value and the preset traffic value corresponding to each traffic mode included in the traffic mode set.
[0008] In a second aspect, the present application further provides an electronic device, which comprises a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and realize the traffic mode determination method as described above when executing the computer program.
[0009] In a third aspect, the present application further provides a computer readable storage medium, which stores a computer program, and the computer program makes the processor realize the traffic mode determination method as described above when the processor executes the computer program.
[0010] The application discloses a traffic mode determination method, an electronic device and a storage medium. The method comprises the following steps: determining an estimated traffic value corresponding to a current moment according to historical traffic information; determining a preset traffic value corresponding to each traffic mode included in a traffic mode set, wherein the preset traffic value corresponds to the current moment; and determining a target traffic mode corresponding to the current moment from the traffic mode set according to the estimated traffic value and the preset traffic value corresponding to each traffic mode included in the traffic mode set. According to the application, the estimated traffic value is determined, the first traffic value that the user may need to use at the current moment is determined according to the estimated traffic value, and then the more suitable traffic mode can be selected as the target traffic mode from the traffic mode set according to the estimated traffic value and the preset traffic value actually provided by each traffic mode, so that the traffic service of the cell can be changed, the traffic use experience of the user can be ensured, the waste of the first traffic value can be avoided, and more flexible network traffic service can be provided. BRIEF DESCRIPTION OF DRAWINGS
[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0012] Figure 1 is a schematic flow chart of a traffic mode determination method provided by an embodiment of the present application;
[0013] Figure 2 is a schematic flow chart of another traffic mode determination method provided by an embodiment of the present application;
[0014] Figure 3 is a structural schematic block diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0015] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the present application.
[0016] The flow charts shown in the drawings are only exemplary and do not necessarily include all the contents and operations / steps, and do not necessarily be executed in the described order. For example, some operations / steps can be decomposed, combined or partially combined, so that the actual execution order can be changed according to the actual situation.
[0017] It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used in this specification and the appended claims, the singular forms "a," "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
[0018] It will be further understood that the terms "comprises" and / or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0019] Embodiments of the present application provide a traffic mode determination method, an electronic device and a storage medium. Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments can be combined with each other in the case of no conflict.
[0020] Please refer to Figure 1 , Figure 1 is a schematic flow chart of a traffic mode determination method provided by an embodiment of the present application, as shown in Figure 1 The traffic mode determination method specifically includes steps S101 to S103.
[0021] S101, determining an estimated traffic value corresponding to a current time according to historical traffic information.
[0022] The historical traffic information can include a first traffic value actually used by a user at each time in a past historical time interval. The first traffic value actually used by the user at each time depends on a network behavior of the user at the time. For example, the user is performing a downloading operation at a time, and the downloading speed is 10 megabytes per second (Mbps), so the first traffic value actually used by the user at the current second is 10 Mbps.
[0023] A base station sets a traffic mode for each user, and each traffic mode has a corresponding preset traffic value. The first traffic value actually used by the user at each time is generally not more than the preset traffic value corresponding to the traffic mode set for the user by an operator. For example, the preset traffic value is 10 Mbps, so the first traffic value actually used by the user at each time is at most 10 Mbps. The user can be a user accessing the same network slice, and the number of users can be one or more.
[0024] According to the historical traffic information, a first traffic value actually used by the user at each time point in the past can be determined, and a first traffic value use habit of the user can be determined, for example, the first traffic value use habit of some users is high, and the traffic use habit of some users is low, and then the first traffic value that can be used at the current time point can be predicted according to the historical traffic information as the estimated traffic value.
[0025] S102, respectively determining a preset traffic value corresponding to each traffic mode included in the traffic mode set, wherein the preset traffic value corresponds to the current time point.
[0026] The traffic mode set can be a traffic mode corresponding to a network slice preset by the base station, different network slices correspond to different traffic modes, and the corresponding network slice can be configured according to the online demand of different users, that is, the user can be provided with network services of the corresponding traffic mode.
[0027] The traffic mode set can include a plurality of traffic modes, each traffic mode has a preset corresponding preset traffic value, and the preset traffic value can be the first traffic value that the user can use at each time point. The preset traffic value of the traffic mode can be a fixed value, that is, the same value at any time point, and the preset traffic value can also be a non-fixed value, which can change with time.
[0028] The preset traffic value corresponding to each traffic mode at the current time point is determined respectively, if the preset traffic value corresponding to a traffic mode is a fixed value, the preset traffic value corresponding to the current time point is the fixed value, and if the preset traffic value corresponding to a traffic mode changes with time, the preset traffic value at the current time point can be determined.
[0029] In one embodiment, the traffic mode set includes a proportion guarantee scheduling mode and a rate guarantee scheduling mode, and the operation of respectively determining the preset traffic value corresponding to each traffic mode included in the traffic mode set can be implemented by the following manner:
[0030] The total first traffic value corresponding to the current time point is determined, and the product of the preset proportion and the total first traffic value is determined as the preset traffic value of the proportion guarantee scheduling mode; and the preset rate traffic is determined as the preset traffic value of the rate guarantee scheduling mode.
[0031] The total first traffic value can be a first traffic value allocated to a region, and the region can include a plurality of users. The total first traffic value can be a sum of preset traffic values of all users in the region. The total first traffic value can change over time, and thus the total first traffic value at a current time can be determined. The total first traffic value can be allocated by a base station, and thus the total first traffic value at the current time can be directly obtained.
[0032] For example, the region can be a cell, and the cell can include a plurality of users, each of which has a respective preset traffic value. The total first traffic value of the region can be affected by external factors, and thus the preset traffic values of the users in the region can change. For example, when the channel quality is good, the total first traffic value of the region can be 1000 Mbytes per second, and the users in the region can use the total first traffic value of 1000 Mbytes per second together. When the channel quality is poor, the total first traffic value of the region can be 500 Mbytes per second, and thus the users in the region can only use 500 Mbytes per second together, and the preset traffic values of the users can change.
[0033] The proportional guarantee scheduling mode can be a traffic mode in which a first traffic value corresponding to a preset proportion is determined from the total first traffic value as a preset traffic value. Thus, after the total first traffic value at the current time is determined, a product of the preset proportion and the total first traffic value is determined as the preset traffic value of the proportional guarantee scheduling mode. For example, if the total first traffic value is 1000 Mbytes per second and the preset proportion is 10%, the preset traffic value corresponding to the proportional guarantee scheduling mode is 100 Mbytes per second. If the total first traffic value is 500 Mbytes per second, the preset traffic value corresponding to the proportional guarantee scheduling mode is 50 Mbytes per second.
[0034] The rate guarantee scheduling mode can be a traffic mode in which a fixed preset rate traffic is used as a preset traffic value. The rate guarantee scheduling mode is independent of the total first traffic value, and thus the preset rate traffic can be determined as the preset traffic value of the rate guarantee scheduling mode. For example, if the preset rate traffic of the rate guarantee scheduling mode is 80 Mbytes per second, the preset traffic value of the rate guarantee scheduling mode is 80 Mbytes per second at any time.
[0035] S103, determining a target traffic mode corresponding to the current time from the traffic mode set according to the estimated traffic value and a preset traffic value corresponding to each traffic mode included in the traffic mode set.
[0036] The estimated traffic value represents a first traffic value that the user can need to use at the current time, and the preset traffic value corresponding to each traffic mode in the traffic mode set represents an upper limit of the first traffic value that can be provided to the user by each traffic mode.
[0037] If a lower preset traffic value is provided when the first traffic value actually needed by the user is high, the normal use of the user can be affected. If a higher preset traffic value is provided when the first traffic value actually needed by the user is low, the first traffic value is wasted, and the first traffic value of other users in the same area can also be affected.
[0038] Therefore, a more appropriate traffic mode can be determined from the traffic mode set as a target traffic mode corresponding to the current time according to the estimated traffic value and the preset traffic value corresponding to each traffic mode in the traffic mode set. After the target traffic mode corresponding to the current time is determined, the base station can configure a network slice corresponding to the target traffic mode for the user, and then provide the preset traffic value corresponding to the target traffic mode for the user.
[0039] In an embodiment, the operation of determining the target traffic mode corresponding to the current time from the traffic mode set according to the estimated traffic value and the preset traffic value corresponding to each traffic mode in the traffic mode set can be implemented in the following manner:
[0040] The target traffic mode corresponding to the current time is determined from the traffic mode set according to the ratio of the size of the estimated traffic value to the preset traffic value corresponding to each traffic mode in the traffic mode set.
[0041] According to the ratio of the size of the estimated traffic value to the preset traffic value corresponding to each traffic mode in the traffic mode set, it can be determined which preset traffic values are greater than the estimated traffic value and which preset traffic values are less than the estimated traffic value, and then a traffic mode corresponding to a more appropriate estimated traffic value can be selected as the target traffic mode.
[0042] Embodiments of the present application determine the estimated traffic value, determine the first traffic value that the user can need to use at the current time according to the estimated traffic value, and then select a more appropriate traffic mode as the target traffic mode from the traffic mode set according to the estimated traffic value and the preset traffic value actually provided by each traffic mode. The traffic service of the cell can be changed to ensure the traffic use experience of the user, avoid waste of the first traffic value, and provide more flexible network traffic service.
[0043] In one embodiment, the operation of determining the target traffic mode corresponding to the current time from the traffic mode set according to the ratio of the estimated traffic value and the size of the preset traffic value corresponding to each traffic mode included in the traffic mode set can be implemented in the following way:
[0044] If the estimated traffic value is greater than the preset traffic value corresponding to each traffic mode included in the traffic mode set, the traffic mode corresponding to the largest preset traffic value among the preset traffic values corresponding to each traffic mode is determined as the target traffic mode corresponding to the current time.
[0045] If the estimated traffic value is less than the preset traffic value corresponding to each traffic mode included in the traffic mode set, the traffic mode corresponding to the smallest preset traffic value among the preset traffic values corresponding to each traffic mode is determined as the target traffic mode corresponding to the current time.
[0046] If the estimated traffic value is not greater than the preset traffic value corresponding to all traffic modes included in the traffic mode set, or the estimated traffic value is not less than the preset traffic value corresponding to all traffic modes included in the traffic mode set, the traffic mode corresponding to the preset traffic value greater than the estimated traffic value among the preset traffic values corresponding to each traffic mode is determined as the target traffic mode corresponding to the current time.
[0047] If the estimated traffic value is greater than the preset traffic value corresponding to each traffic mode included in the traffic mode set, i.e., the first estimated traffic value that the user may need to use at the current time is particularly high, and the preset traffic values corresponding to all traffic modes in the traffic mode set are less than the estimated traffic value, the traffic mode corresponding to the largest preset traffic value in the traffic mode set is selected as the target traffic mode, which can minimize the impact on the user's network traffic usage experience.
[0048] If the estimated traffic value is less than the preset traffic value corresponding to each traffic mode included in the traffic mode set, i.e., the first estimated traffic value that the user may need to use at the current time is low, and the preset traffic values corresponding to all traffic modes in the traffic mode set are greater than the estimated traffic value, any traffic mode can meet the user's usage demand, therefore, the traffic mode corresponding to the smallest preset traffic value in the traffic mode set is selected as the target traffic mode, which can avoid wasting traffic by using a higher preset traffic value, and the saved first traffic value can be used by other users in the region, which can more reasonably allocate the total first traffic value in the region and improve the spectrum utilization efficiency.
[0049] If the estimated traffic value is not greater than the preset traffic value corresponding to all traffic modes included in the traffic mode set, or if the estimated traffic value is not less than the preset traffic value corresponding to all traffic modes included in the traffic mode set, that is, among the preset traffic values corresponding to the plurality of traffic modes included in the traffic mode set, there are preset traffic values greater than the estimated traffic value and preset traffic values less than the estimated traffic value. If the preset traffic value less than the estimated traffic value is selected, the normal use of the user may be affected. Therefore, the traffic mode corresponding to the preset traffic value greater than the estimated traffic value is selected as the target traffic mode, which can ensure the normal use of the user.
[0050] If the traffic mode set includes three or more traffic modes, and the traffic modes with preset traffic values greater than the estimated traffic value include two or more traffic modes, the traffic mode with the smallest preset traffic value among the traffic modes corresponding to the preset traffic values greater than the estimated traffic value can be selected as the target traffic mode. If the traffic mode set includes only two traffic modes, the traffic mode corresponding to the preset traffic value greater than the estimated traffic value can be directly selected as the target traffic mode.
[0051] Exemplarily, it is assumed that the traffic mode set includes a proportional guarantee scheduling mode and a rate guarantee scheduling mode, the preset traffic value of the proportional guarantee scheduling mode is y proportion , the preset traffic value of the rate guarantee scheduling mode is y rate , and the estimated traffic value is y filter .
[0052] When y filter is greater than y proportion , and y filter is greater than y rate , if y proportion is greater than y rate , the proportional guarantee scheduling mode is determined as the target traffic mode corresponding to the current time, and if y proportion is less than y rate , the rate guarantee scheduling mode is determined as the target traffic mode corresponding to the current time.
[0053] When y filter is greater than y proportion , and y filter is less than y rate , the rate guarantee scheduling mode is determined as the target traffic mode corresponding to the current time.
[0054] When y filter is less than y proportion , and y filter is greater than y rateIf y
[0055] In y filter If y proportfon , and y filter If y rate , if y proportfon If y rate , the rate guarantee scheduling mode is determined as the target traffic mode corresponding to the current time, and if y proportion If y rate , the proportional guarantee scheduling mode is determined as the target traffic mode corresponding to the current time.
[0056] In one embodiment, as shown in Figure 2 , the operation of determining the estimated traffic value corresponding to the current time according to the historical traffic information can be implemented in the following way:
[0057] S201, determining a time traffic relationship according to historical traffic information, wherein the time traffic relationship is a relationship between each time and a first traffic value corresponding to each time.
[0058] The historical traffic information can include the actual first traffic value used by the user at each historical time in the past historical time interval, i.e., the historical traffic information includes a plurality of historical times and a plurality of first traffic values corresponding to the historical times respectively. Each user has his own specific network habit, so there is a certain relationship between the historical times and the first traffic values corresponding to the historical times, and therefore the relationship between each time and the first traffic value corresponding to each time can be determined according to the historical traffic information as the time traffic relationship. Illustratively, the historical first traffic values can be analyzed according to a linear regression method to determine the time traffic relationship.
[0059] S202, determining a first traffic value corresponding to the current time according to the time traffic relationship, and determining an estimated traffic value corresponding to the current time according to the first traffic value corresponding to the current time.
[0060] The time traffic relationship represents the relationship between each time and the first traffic value corresponding to each time, so the first traffic value corresponding to the current time can be determined according to the time traffic relationship, which can be used to determine the estimated traffic value. For example, the first traffic value corresponding to the current time determined according to the time traffic relationship can be used as the estimated traffic value.
[0061] In one embodiment, the operation of determining the time traffic relationship according to the historical traffic information can be implemented in the following way:
[0062] determine a historical moment included in the historical flow information and a first flow value corresponding to each historical moment; determine a coordinate position corresponding to the historical moment and the first flow value corresponding to each historical moment in a preset coordinate system; perform fitting according to the coordinate position to obtain a fitting equation, and determine the fitting equation as a time-flow relationship.
[0063] In the preset coordinate system, the time can be taken as the horizontal coordinate, and the first flow value can be taken as the vertical coordinate. According to each historical moment and the first flow value corresponding to each historical moment, a coordinate position can be determined in the coordinate system. According to multiple historical moments and the first flow values corresponding to the multiple historical moments, multiple coordinate positions can be determined in the preset coordinate system.
[0064] The fitting is to determine a smooth line according to multiple points, and the line can connect the multiple points. According to the fitting mode, a fitting equation about the multiple coordinate positions can be determined. According to the multiple coordinate positions, a smooth line can be determined, and the line can connect the multiple coordinate positions. In one case, the multiple coordinate positions are all located on the line. In another case, part of the multiple coordinate positions are located on the line, and the other observation points are relatively close to the line. For example, the line can be a curve or a straight line.
[0065] The fitting equation obtained by the fitting can reflect the functional relationship between the time and the first flow value, and can be used to predict the first flow value corresponding to the current time.
[0066] In one embodiment, the operation of performing fitting according to the coordinate position to obtain a fitting equation, and determining the fitting equation as a time-flow relationship can be implemented in the following manner:
[0067] performing linear fitting according to the coordinate position to obtain a linear fitting equation, and determining the linear fitting equation as a time-flow relationship.
[0068] In the base station, the estimated flow value is calculated at each time. In order to ensure the calculation efficiency, the linear fitting equation obtained by linear fitting can be selected as the time-flow relationship.
[0069] For example, the linear fitting can be performed by the least square method to obtain a linear regression equation, that is, a linear fitting equation. The fitting equation with the smallest sum of squares of differences between the estimated first flow value of the historical moment determined according to the fitting equation and the actual first flow value of the historical moment can be determined as the linear fitting equation.
[0070] For example, the linear fitting equation is In the linear fitting equation, x i is the time, is the first flow value corresponding to the time t, i.e., the predicted x i is the first flow value corresponding to the time t, i.e., the predicted x
[0071]
[0072] is the first flow value corresponding to the time t, i.e., the predicted x i is the first flow value corresponding to the time t, i.e., the predicted x i is the first flow value corresponding to the time t, i.e., the predicted x i is the first flow value corresponding to the time t, i.e., the predicted x
[0073]
[0074]
[0075] is the first flow value corresponding to the time t, i.e., the predicted x is the first flow value corresponding to the time t, i.e., the predicted x
[0076] In an embodiment, the operation of determining the first flow value corresponding to the current time according to the time flow relationship and determining the estimated flow value corresponding to the current time according to the first flow value corresponding to the current time can be implemented in the following manner:
[0077] determining the first flow value corresponding to the current time according to the time flow relationship; determining the first flow value corresponding to the previous time, and determining the estimated flow value corresponding to the current time according to the first flow value corresponding to the current time and the first flow value corresponding to the previous time.
[0078] In this case, the first flow value corresponding to the current time obtained by estimation according to the time flow relationship may be distorted, i.e., the first flow value corresponding to the current time and the first flow value corresponding to the previous time may differ too much. The first flow value corresponding to the previous time can be obtained, and the estimated first flow value corresponding to the current time can be smoothed according to the first flow value corresponding to the previous time to obtain the estimated flow value corresponding to the current time.
[0079] The first flow value corresponding to the previous time can be determined according to the time flow relationship, i.e., the estimated first flow value corresponding to the previous time, or the first flow value corresponding to the previous time can be determined according to the historical flow information, i.e., the actual first flow value corresponding to the previous time.
[0080] In one embodiment, the operation of determining the estimated traffic value corresponding to the current time according to the first traffic value corresponding to the current time and the first traffic value corresponding to the previous time can be implemented in the following way:
[0081] The first traffic value corresponding to the current time is multiplied by a first weight to obtain first data, and the first traffic value corresponding to the previous time is multiplied by a second weight to obtain second data; the first data and the second data are added to obtain the estimated traffic value of the current time.
[0082] The first traffic value corresponding to the previous time and the estimated first traffic value corresponding to the current time can be multiplied by corresponding weights and then added, so that the estimated traffic value does not distort the first traffic value corresponding to the previous time, but maintains a certain smoothness with the first traffic value corresponding to the previous time. The first weight and the second weight can be preset values, and the sum of the first weight and the second weight can be 1. For example, the weight of the first traffic value corresponding to the previous time is 0.5, and the weight of the first traffic value corresponding to the current time is 0.5.
[0083] Please refer to Figure 3 , Figure 3 is a structural schematic block diagram of an electronic device provided by an embodiment of the present application, and the electronic device can be a base station. Please refer to Figure 3 The electronic device 100 includes a processor 110 and a memory 120 connected by a system bus, wherein the memory 120 can include a non-volatile storage medium and an internal memory.
[0084] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions which, when executed, can cause the processor to execute any one of the traffic mode determination methods.
[0085] The processor is used to provide computing and control capabilities to support the operation of the entire electronic device.
[0086] The internal memory provides an environment for the execution of the computer program in the non-volatile storage medium, and the computer program, when executed by the processor, can cause the processor to execute any one of the traffic mode determination methods.
[0087] Those skilled in the art can understand that Figure 3 the structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0088] It should be appreciated that the processor can be a central processing unit (CPU), the processor can also be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0089] In one embodiment, the processor is configured to run a computer program stored in the memory to implement the following steps:
[0090] determine a predicted traffic value corresponding to the current time according to historical traffic information;
[0091] determine a preset traffic value corresponding to each traffic mode included in the traffic mode set, wherein the preset traffic value corresponds to the current time;
[0092] determine a target traffic mode corresponding to the current time from the traffic mode set according to the predicted traffic value and the preset traffic value corresponding to each traffic mode included in the traffic mode set.
[0093] In one embodiment, when implementing the step of determining a predicted traffic value corresponding to the current time according to historical traffic information, the processor is configured to implement:
[0094] determine a time traffic relationship according to historical traffic information, wherein the time traffic relationship is a relationship between each time and a first traffic value corresponding to each time;
[0095] determine a first traffic value corresponding to the current time according to the time traffic relationship, and determine a predicted traffic value corresponding to the current time according to the first traffic value corresponding to the current time.
[0096] In one embodiment, when implementing the step of determining a time traffic relationship according to historical traffic information, the processor is configured to implement:
[0097] determine historical times included in the historical traffic information and a first traffic value corresponding to each historical time;
[0098] determine a coordinate position corresponding to the historical times and the first traffic value corresponding to each historical time in a preset coordinate system;
[0099] fitting according to the coordinate positions to obtain a fitting equation, and determining the fitting equation as a time-flow relationship.
[0100] In one embodiment, when implementing the determining of a first flow value corresponding to a current time according to the time-flow relationship, and the determining of an estimated flow value corresponding to the current time according to the first flow value corresponding to the current time, the processor is configured to implement:
[0101] determining a first flow value corresponding to a current time according to the time-flow relationship;
[0102] determining a first flow value corresponding to a previous time, and determining an estimated flow value corresponding to the current time according to the first flow value corresponding to the current time and the first flow value corresponding to the previous time.
[0103] In one embodiment, when implementing the determining of an estimated flow value corresponding to a current time according to a first flow value corresponding to the current time and a first flow value corresponding to a previous time, the processor is configured to implement:
[0104] multiplying the first flow value corresponding to the current time by a first weight to obtain first data, and multiplying the first flow value corresponding to the previous time by a second weight to obtain second data;
[0105] adding the first data and the second data to obtain an estimated flow value corresponding to the current time.
[0106] In one embodiment, the flow mode set includes a proportional guarantee scheduling mode and a rate guarantee scheduling mode, and when implementing the determining of a preset flow value corresponding to each flow mode included in the flow mode set, the processor is configured to implement:
[0107] determining a total first flow value corresponding to a current time, and determining a product of a preset proportion and the total first flow value as a preset flow value of the proportional guarantee scheduling mode;
[0108] determining a preset rate flow as the preset flow value of the rate guarantee scheduling mode.
[0109] In one embodiment, when implementing the determining of a target flow mode corresponding to a current time according to an estimated flow value and a preset flow value corresponding to each flow mode included in the flow mode set, the processor is configured to implement:
[0110] According to the ratio of the estimated traffic value to the preset traffic value corresponding to each traffic mode included in the traffic mode set, a target traffic mode corresponding to the current time is determined from the traffic mode set.
[0111] In one embodiment, when implementing the determining of the target traffic mode corresponding to the current time from the traffic mode set according to the ratio of the estimated traffic value to the preset traffic value corresponding to each traffic mode included in the traffic mode set, the processor is configured to implement:
[0112] If the estimated traffic value is greater than the preset traffic value corresponding to each traffic mode included in the traffic mode set, the traffic mode corresponding to the maximum preset traffic value among the preset traffic values corresponding to each traffic mode is determined as the target traffic mode corresponding to the current time.
[0113] If the estimated traffic value is less than the preset traffic value corresponding to each traffic mode included in the traffic mode set, the traffic mode corresponding to the minimum preset traffic value among the preset traffic values corresponding to each traffic mode is determined as the target traffic mode corresponding to the current time.
[0114] If the estimated traffic value is not greater than the preset traffic value corresponding to all traffic modes included in the traffic mode set, or the estimated traffic value is not less than the preset traffic value corresponding to all traffic modes included in the traffic mode set, the traffic mode corresponding to the preset traffic value greater than the estimated traffic value among the preset traffic values corresponding to each traffic mode is determined as the target traffic mode corresponding to the current time.
[0115] In an embodiment of the present application, a computer readable storage medium is also provided, which stores a computer program including program instructions. The processor executes the program instructions to implement any of the traffic mode determination methods provided in the embodiments of the present application.
[0116] The computer readable storage medium can be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. The computer readable storage medium can also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc.
[0117] The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A flow pattern determination method characterized by, The method comprises: determining a predicted traffic value corresponding to a current time according to historical traffic information; determining a preset traffic value corresponding to each traffic mode included in a traffic mode set, which comprises: determining a total first traffic value corresponding to the current time, determining a product of a preset proportion and the total first traffic value as the preset traffic value of a proportion guarantee scheduling mode in the traffic mode set, and determining a preset rate traffic as the preset traffic value of a rate guarantee scheduling mode in the traffic mode set; wherein the preset traffic value corresponds to the current time; determining a target traffic mode corresponding to the current time from the traffic mode set according to a ratio of the predicted traffic value and the preset traffic value corresponding to each traffic mode included in the traffic mode set.
2. The flow pattern determination method according to claim 1, characterized by, The method comprises: determining a time traffic relationship according to historical traffic information, wherein the time traffic relationship is a relationship between each time and a first traffic value corresponding to each time; determining a first traffic value corresponding to the current time according to the time traffic relationship, and determining a predicted traffic value corresponding to the current time according to the first traffic value corresponding to the current time.
3. The flow pattern determination method according to claim 2, characterized by, The method comprises: determining historical times included in the historical traffic information and a first traffic value corresponding to each historical time; determining a coordinate position corresponding to the historical times and the first traffic value corresponding to each historical time in a preset coordinate system; performing fitting according to the coordinate position to obtain a fitting equation, and determining the fitting equation as the time traffic relationship.
4. The flow pattern determination method according to claim 3, characterized by, The method comprises: performing linear fitting according to the coordinate position to obtain a linear fitting equation, and determining the linear fitting equation as the time traffic relationship.
5. The flow pattern determination method according to claim 2, characterized by, The method comprises: determining a first traffic value corresponding to the current time according to the time traffic relationship; determining a first traffic value corresponding to a previous time, and determining a predicted traffic value corresponding to the current time according to the first traffic value corresponding to the current time and the first traffic value corresponding to the previous time.
6. The flow pattern determination method according to claim 5, characterized by, The method comprises: multiplying the first traffic value corresponding to the current time by a first weight to obtain first data, and multiplying the first traffic value corresponding to the previous time by a second weight to obtain second data; adding the first data and the second data to obtain the predicted traffic value of the current time.
7. The flow pattern determination method according to claim 1, characterized by, The target traffic mode corresponding to the current time is determined from the traffic mode set according to a ratio of the estimated traffic value to a size of a preset traffic value corresponding to each traffic mode included in the traffic mode set, including: If the estimated traffic value is greater than the preset traffic value corresponding to each traffic mode included in the traffic mode set, a traffic mode corresponding to a largest preset traffic value among the preset traffic values corresponding to each traffic mode is determined as the target traffic mode corresponding to the current time; If the estimated traffic value is less than the preset traffic value corresponding to each traffic mode included in the traffic mode set, a traffic mode corresponding to a smallest preset traffic value among the preset traffic values corresponding to each traffic mode is determined as the target traffic mode corresponding to the current time; If the estimated traffic value is not greater than the preset traffic values corresponding to all traffic modes included in the traffic mode set, or the estimated traffic value is not less than the preset traffic values corresponding to all traffic modes included in the traffic mode set, a traffic mode corresponding to a preset traffic value greater than the estimated traffic value among the preset traffic values corresponding to each traffic mode is determined as the target traffic mode corresponding to the current time.
8. An electronic device, comprising: The electronic device includes a memory and a processor; The memory is configured to store a computer program; The processor is configured to execute the computer program and implement the traffic mode determination method according to any one of claims 1 to 7 when executing the computer program.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to make the processor implement the traffic mode determination method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Control method and system for network bandwidth
CN101466124A
Flow detection method, device and equipment and storage medium
CN111614634A