Background
The network transmission rate includes an uplink rate and a downlink rate, the uplink rate refers to a transmission rate of data sent by the terminal to the server, the downlink rate refers to a transmission rate of data sent by the server to the terminal, and the uplink rate belongs to a transmission rate of the server when the server receives the data sent by the terminal.
The existing network transmission rate regulation and control method focuses on the universality of different application scenes, and comprises the following regulation and control methods: (1) Scanning a network transmission rate channel in a network, obtaining a scanning result according to a preset signal intensity threshold, and regulating and controlling the network transmission rate according to the scanning result so as to reduce the power consumption of equipment; (2) When the network speed control function is in an on state, the maximum network speed of the target network is adjusted based on the maximum network transmission speed set by a user on the network speed setting interface, and when the network speed control function is in an off state, the maximum network speed of the target application is adjusted based on the signal transmission scene of the target application so as to solve the problem that the unnecessary consumption of the flow is increased and the flow is wasted because the network speed cannot be controlled under the high-speed data network; (3) And controlling the data transmission rate of the network connection in each network group according to the congestion window value of each network connection in the network group so as to control network congestion and improve the utilization rate of the broadband.
However, the existing network transmission rate regulation method is difficult to regulate the uplink rate towards government affairs public opinion, and the uplink rate is easy to separate from government affairs public opinion evolving along with time.
Inventive capacitor
Aiming at the problem that the existing network transmission rate regulation method is difficult to regulate the uplink rate for government affairs public opinion, the uplink rate is easy to separate from government affairs public opinion evolving along with time, the invention provides the government affair public opinion-oriented uplink rate regulation method, the government affair public opinion-oriented uplink rate regulation device, a government affair server and intelligent network equipment.
The first aspect of the invention provides an uplink rate regulation method for government affairs public opinion, which comprises the following steps:
in the current period, receiving a plurality of government affair public opinion data packets sent by a user terminal group according to the current uplink rate, wherein each government affair public opinion data packet carries user identification data and government affair comment data;
measuring and calculating the expected trend rate of user access according to the current time period and all user identification data carried in the government affair public opinion data packets;
according to the current time period and all government comment data carried in the plurality of government opinion data packets, calculating the expected trend rate of government public opinion;
and regulating the current uplink rate to the expected uplink rate according to the government affair public opinion expected trend rate and the user access expected trend rate.
The second aspect of the present invention provides an uplink rate adjustment device for government affairs public opinion, including:
the data packet receiving module is used for receiving a plurality of government affair public opinion data packets sent by the user terminal group according to the current uplink rate in the current period, wherein each government affair public opinion data packet carries user identification data and government affair comment data;
the access rate measuring and calculating module is used for measuring and calculating the expected trend rate of user access according to the current time period and all user identification data carried in the government affair public opinion data packets;
the public opinion rate measuring and calculating module is used for measuring and calculating the expected trend rate of government affairs public opinion according to the current period and all government affair comment data carried in the plurality of government affair public opinion data packets;
and the uplink rate regulating and controlling module is used for regulating and controlling the current uplink rate to the expected uplink rate according to the government affair public opinion expected trend rate and the user access expected trend rate.
A third aspect of the present invention provides a government affair server comprising: a memory and a processor coupled to the memory, the memory being configurable to store at least one instruction or at least one program or set of codes or instructions that are loaded and executed by the processor to implement the operational steps performed by the government public opinion oriented uplink rate regulation method of the first aspect.
A fourth aspect of the present invention provides an intelligent network device configured with a network uplink speed control program, where the intelligent network device implements the operation steps executed by the government public opinion oriented uplink speed regulation method according to the first aspect when the network uplink speed control program is loaded and run.
The uplink rate regulation method and device for government affair public opinion, the government affair server and the intelligent network device have the beneficial effects that: the user access expected trend rate is calculated through the combination of the current time period and all user identification data in the current time period, accuracy of the user access expected trend rate is guaranteed, the government public opinion expected trend rate is calculated through the combination of the current time period and all government comment data in the current time period, utilization rate of the current time period is improved, accuracy of the government public opinion expected trend rate is guaranteed, the current uplink rate is regulated to the expected uplink rate through the combination of the government public opinion expected trend rate and the user access expected trend rate, regulation accuracy of the uplink rate is guaranteed, excessive regulation of the uplink rate is prevented, and the uplink rate is matched with government public opinion evolving along with time.
Detailed Description
The principles and features of the present invention are described below with reference to the drawings, the examples are illustrated for the purpose of explanation only and are not intended to limit the scope of the present invention.
Example 1
An uplink rate regulation method facing government affairs public opinion includes the following steps executed by a program:
step 10, in the current period, receiving a plurality of government affair public opinion data packets sent by a user terminal group according to the current uplink rate, wherein each government affair public opinion data packet carries user identification data and government affair comment data;
step 20, measuring and calculating the expected access trend rate of the user according to the current time period and all user identification data carried in a plurality of government affair public opinion data packets;
step 30, calculating the expected trend rate of the government affairs public opinion according to the current time period and all government affair comment data carried in the plurality of government affair public opinion data packets;
and step 40, regulating the current uplink rate to the expected uplink rate according to the government affair public opinion expected trend rate and the user access expected trend rate.
The uplink rate regulation method facing to government public opinion as shown in fig. 1-3 can be applied to intelligent network devices such as a network server or a gateway, the current uplink rate belongs to a static rate set in the intelligent network device, the static rate can be kept unchanged in different periods, a user terminal group can be formed by a plurality of user terminals accessing to a networking network, and each user terminal can establish communication connection with the same network server accessing to the networking network.
Illustratively, each user identification data may be pre-stored in a corresponding user terminal, for example: the user A inputs an identity card number in the user terminal B or account information of a network media release platform in advance, wherein the network media release platform is a microblog application program, a WeChat application program, a news application program or the like; the government comment data belongs to government public opinion data generated by a user aiming at the government content operation during the presentation of the government content, for example: and the user terminal B is input by the user B in a praise instruction or a forwarding instruction or comment text in a display area associated with the government affair content, and all government affair comment data carried in the government affair public opinion data packets comprise a plurality of forwarding operation data, a plurality of praise operation data and a plurality of text comment data respectively associated with the government affair content.
As shown in fig. 1, the first thread and the second thread are operated in parallel in the web server, the first thread executes the step of measuring the expected trend rate of user access in step 20, and the second thread executes the step of measuring the expected trend rate of government public opinion in step 30, so that step 20 and step 30 are operated in parallel, and compared with the serial mode, the measuring time of user access to the expected trend rate and the expected trend rate of government public opinion is shortened, and the measuring efficiency of the two expected trend rates is ensured.
As shown in fig. 2 and 3, in the network server, the step of measuring the expected trend rate of user access in the step 20 is performed in a time-sharing manner by one thread, and the step of measuring the expected trend rate of government public opinion in the step 30 is performed by a second thread, so that the step 20 and the step 30 are performed in a serial manner, which is helpful for reducing the control difficulty of the step 20 and the step 30 compared with a parallel manner.
The step 20 specifically includes:
step 21, carrying out accumulated count on each user identification data to obtain the total number of user identifications;
step 22, inputting the duration and the total number of user identifications of the current period into a first preset expected rate measurement model, solving the duration and the total number of user identifications of the current period by the first preset expected rate measurement model to obtain the user access expected trend rate, and outputting the user access expected trend rate.
The total number of the user terminals in the user terminal group may be 1500, where the user identification data of 1000 user terminals in the current period are different, and the total number of the user identifications is 1000 after the network server accumulates and counts each user identification data one by one.
The first preset expected rate measurement model is specifically expressed as:
wherein S is euv Representing the expected trend rate of user access, lambda 1 Representing a first preset acceleration factor lambda 1 Greater than 0 and less than 1, N uid The total number of the user identifications is represented, and T represents the duration of the current time period.
Exemplary first preset acceleration factor lambda 1 Can be equal to 0.06, and the total number N of user identifications uid Can be equal to 30000, the duration T of the current period is 12 seconds, and the user accesses the expected trend rate S euv The method supports accurate and rapid measurement of the user access expected trend rate for 2650/second, and ensures the measurement efficiency and measurement precision of the user access expected trend rate.
The step 30 specifically includes:
step 31, performing accumulated count on each forwarding operation data to obtain total forwarding times, performing accumulated count on each praise operation data to obtain total praise times, and performing accumulated count on each comment text data to obtain total comment times;
step 32, inputting the duration, the total forwarding times, the total praise times and the total comment times of the current time period into a second preset expected rate measurement model, and solving the duration, the total forwarding times, the total praise times and the total comment times of the current time period by the second preset expected rate measurement model to obtain the government affair public opinion expected trend rate and outputting the government affair public opinion expected trend rate.
In the network server, a third thread, a fourth thread and a fifth thread are operated in a parallel mode, the third thread executes an operation step of carrying out accumulated counting on each forwarding operation data, the fourth thread executes an operation step of carrying out accumulated counting on each praise operation data, and the fifth thread executes an operation step of carrying out accumulated counting on each comment text data, so that all forwarding operation data, all praise operation data and all comment text data are respectively accumulated counted in a parallel mode, and compared with a serial mode, the accumulated counting duration is shortened, and the efficiency of measuring and calculating the government affair public opinion expected trend rate is improved.
The second preset expected rate measurement model is specifically expressed as:
wherein S is egpo Represents the expected trend rate of government affairs and public opinion, lambda 2 Representing a second preset acceleration factor lambda 2 Greater than 0 and less than 1, k f Representing and forwarding a total number of times N f Corresponding weight coefficient, k g Representing the total number of praise times N g Corresponding weight coefficient, k c Representing the total number of comments N c And the corresponding weight coefficient T represents the duration of the current period.
For example, the second preset acceleration factor may be equal to the first preset acceleration factor, and the second preset acceleration factor may be set to be greater than 0 and less than 0.1, for example: the second preset acceleration factor may be equal to 0.06, weight factor k f 、k g And k c Either empirically set or trained from a machine learning training model, for example: k (k) f 、k g And k c May be 0.3, 0.2 and 0.5, respectively, the total number of forwarding times N f Can be 5000, and the total number of praise times N g 10000 comments total times N c The expected trend rate of the government affairs public opinion can be 20000 and 1192.5/s, so that the expected trend rate of the government affairs public opinion can be accurately and rapidly measured and calculated, the efficiency of measuring and calculating the expected trend rate of the government affairs public opinion is ensured, and the accuracy of measuring and calculating the expected trend rate of the government affairs public opinion is improved.
Step 40 specifically includes:
step 41, inputting a government public opinion expected trend rate, a user access expected trend rate and a current uplink rate into a third preset expected rate measurement model, and solving the government public opinion expected trend rate, the user access expected trend rate and the current uplink rate by the third preset expected rate measurement model to obtain an uplink amplitude modulation rate and output the uplink amplitude modulation rate;
and step 42, regulating and controlling the current uplink rate to the expected uplink rate according to the uplink amplitude modulation rate.
The third preset expected rate measurement model is specifically expressed as:
wherein S is uam Indicating the upstream amplitude modulation rate, lg (S egpo ) Represents a 10-based government affairs public opinion expected trend rate S egpo Log, lg (S euv ) Representing a 10-based user access expected trend rate S euv Logarithm of S last Indicating the current uplink rate.
Exemplary, lg (S egpo ) Can be 3.07, lg (S euv ) May be 3.42, the current uplink rate S last Can be 1536kbps, uplink amplitude modulation rate S uam The method can be 1378.8kbps, supports accurate and rapid calculation of the uplink amplitude modulation rate, ensures the calculation efficiency and calculation precision of the uplink amplitude modulation rate, and improves the utilization rate of the current uplink rate.
Step 42 specifically includes: when the uplink amplitude modulation rate is greater than or equal to a preset upper limit rate, configuring the sum of the preset upper limit rate and the current uplink rate as an expected uplink rate; when the uplink amplitude modulation rate is between the preset upper limit rate and the preset lower limit rate, configuring the sum of the uplink amplitude modulation rate and the current uplink rate as an expected uplink rate; when the uplink amplitude modulation rate is smaller than or equal to the preset lower limit rate, the sum of the preset lower limit rate and the current uplink rate is configured to be the expected uplink rate.
Illustratively, the preset upper and lower rates may be two different empirical values pre-configured in the network server, such as: the preset upper limit rate is 2000kbps, the preset lower limit rate is 1000kbps, the sum value serving as the speed increasing value is finely calculated according to the magnitude relation between the uplink amplitude modulation rate and the preset upper limit rate and the preset lower limit rate, the current uplink rate is accurately and rapidly increased to the expected uplink rate by using the sum value, and the expected uplink rate is effectively ensured to be in a reasonable range so as to prevent the excessive increase of the expected uplink rate.
Example two
As shown in fig. 4, an uplink rate regulation device for government affairs public opinion includes: the data packet receiving module is used for receiving a plurality of government affair public opinion data packets sent by the user terminal group according to the current uplink speed in the current period; the access rate measuring and calculating module is used for measuring and calculating the user access expected trend rate according to the current time period and all user identification data carried in the government affair public opinion data packets; the public opinion rate measuring and calculating module is used for measuring and calculating the expected trend rate of the government affairs and public opinion according to the current period and all government affair comment data carried in the government affair and public opinion data packets; and the uplink rate regulation and control module is used for regulating the current uplink rate to the expected uplink rate according to the government affair public opinion expected trend rate and the user access expected trend rate.
The access rate measuring and calculating module is specifically used for: accumulating and counting each user identification data to obtain the total number of the user identifications; inputting the time length and the total number of the user identifications of the current time period into a first preset expected rate measurement model, solving the time length and the total number of the user identifications of the current time period by the first preset expected rate measurement model, and outputting the expected access trend rate of the user.
The first preset expected rate measurement model is specifically expressed as:
wherein S is euv Representing the expected trend rate of user access, lambda 1 Representing a first preset acceleration factor lambda 1 Greater than 0 and less than 1, N uid The total number of the user identifications is represented, and T represents the duration of the current time period.
The public opinion rate measuring and calculating module is specifically used for: performing accumulated count on each forwarding operation data to obtain the total forwarding times; performing accumulated counting on each praise operation data to obtain praise total times; accumulating and counting the comment text data to obtain the total comment times; inputting the time length, the total forwarding times, the total praise times and the total comment times of the current time period into a second preset expected rate measurement model, and solving the time length, the total forwarding times, the total praise times and the total comment times of the current time period by the second preset expected rate measurement model to output the government affair public opinion expected trend rate.
The second preset expected rate measurement model is specifically expressed as:
wherein S is egpo Represents the expected trend rate of government affairs and public opinion, lambda 2 Representing a second preset acceleration factor lambda 2 Greater than 0 and less than 1, k f Representing and forwarding a total number of times N f Corresponding weight coefficient, k g Representing the total number of praise times N g Corresponding weight coefficient, k c Representing the total number of comments N c And the corresponding weight coefficient T represents the duration of the current period.
The uplink rate regulation module specifically includes: the first sub-module is used for inputting the government public opinion expected trend rate, the user access expected trend rate and the current uplink rate into a third preset expected rate measurement model, and outputting the uplink amplitude modulation rate after solving the government public opinion expected trend rate, the user access expected trend rate and the current uplink rate by the third preset expected rate measurement model; and the second sub-module is used for regulating and controlling the current uplink rate to the expected uplink rate according to the uplink amplitude modulation rate.
The third preset expected rate measurement model is specifically expressed as:
wherein S is uam Indicating the upstream amplitude modulation rate, lg (S egpo ) Represents a 10-based government affairs public opinion expected trend rate S egpo Log, lg (S euv ) Representing a 10-based user access expected trend rate S euv Logarithm of S last Indicating the current uplink rate.
The second sub-module is specifically configured to: when the uplink amplitude modulation rate is greater than or equal to a preset upper limit rate, configuring the sum of the preset upper limit rate and the current uplink rate as an expected uplink rate; when the uplink amplitude modulation rate is between the preset upper limit rate and the preset lower limit rate, configuring the sum of the uplink amplitude modulation rate and the current uplink rate as an expected uplink rate; when the uplink amplitude modulation rate is smaller than or equal to the preset lower limit rate, the sum of the preset lower limit rate and the current uplink rate is configured to be the expected uplink rate.
Example III
A government server comprising: a memory and a processor coupled to the memory, the memory being configurable to store at least one instruction or at least one program or set of codes or instructions that are loaded and executed by the processor to perform any of the operational steps performed by the government public opinion oriented uplink rate regulation method of embodiment one.
As shown in fig. 5, the processor is in communication connection with the memory and the communication interface through the communication bus, where the communication interface may be a converged communication interface, and the processor may control the communication interface to perform the operation steps of receiving, according to the current uplink rate, a plurality of government public opinion data packets sent by the user terminal group in the current period, and the processor may perform the operation steps related to measuring and calculating the user access expected trend rate, measuring and calculating the government public opinion expected trend rate, regulating and controlling the current uplink rate, which is specifically referred to in the first embodiment and is not described herein.
Example IV
An intelligent network device is configured with a network uplink speed control program, and when the network uplink speed control program is loaded and run, the intelligent network device implements any operation step performed by the uplink speed regulation method facing government public opinion in the first embodiment.
The reader should understand that in the description of this specification, the descriptions of the terms "aspect," "embodiment," "implementation," "manner," and the like, refer to particular features, steps, or characteristics described in connection with the embodiment or example, as being included in at least one embodiment or example of the present invention, the terms "first" and "second," etc., are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated, whereby features defining "first" and "second," etc., may explicitly or implicitly include at least one such feature.
In this specification, the schematic representations of the terms described above are not necessarily for the same embodiment or example, and the specific features, steps or characteristics described may be combined in an appropriate manner in one or more specific examples or examples, and those skilled in the art may combine or/and combine features of different embodiments or examples described in this specification without contradiction.