CN114900477B - Message processing method, server, electronic equipment and storage medium - Google Patents
Message processing method, server, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114900477B CN114900477B CN202210388374.XA CN202210388374A CN114900477B CN 114900477 B CN114900477 B CN 114900477B CN 202210388374 A CN202210388374 A CN 202210388374A CN 114900477 B CN114900477 B CN 114900477B
- Authority
- CN
- China
- Prior art keywords
- target
- online
- target user
- user
- time
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 230000000694 effects Effects 0.000 claims abstract description 81
- 238000012545 processing Methods 0.000 claims abstract description 50
- 238000000034 method Methods 0.000 claims abstract description 34
- 238000012163 sequencing technique Methods 0.000 claims abstract description 15
- 238000004891 communication Methods 0.000 abstract description 10
- 238000005516 engineering process Methods 0.000 abstract description 5
- 230000000875 corresponding effect Effects 0.000 description 38
- 230000006870 function Effects 0.000 description 22
- 230000008569 process Effects 0.000 description 8
- 230000003993 interaction Effects 0.000 description 7
- 238000012216 screening Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000011176 pooling Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000008602 contraction Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Classifications
-
- 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/62—Queue scheduling characterised by scheduling criteria
- H04L47/625—Queue scheduling characterised by scheduling criteria for service slots or service orders
-
- 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/62—Queue scheduling characterised by scheduling criteria
- H04L47/625—Queue scheduling characterised by scheduling criteria for service slots or service orders
- H04L47/6275—Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application provides a message processing method, a server, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring historical online information of each target user, wherein the target users are users who send messages in a historical time period; determining the online activity of each target user based on the historical online information of each target user; sequencing the online liveness of each target user to obtain sequencing information; and processing the user online messages of each target user in sequence based on the ordering information. The method and the device can solve the problem that the message loss in the related technology reduces the data communication experience of the user to a certain extent.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a message processing method, a server, an electronic device, and a storage medium.
Background
In the communication field, user messages are received and processed to realize online of users. And receiving a large number of messages under the scenes of the server that the server fails and needs to be restarted and the like. Related technology processes messages of all users directly without difference, however, protocol messages of massive users are interacted again at the moment, so that message processing pressure is increased, protocol messages of part of users are lost, and data communication experience of the users is further reduced due to the fact that the messages are lost.
Disclosure of Invention
An object of the present application is to provide a message processing method, a virtual broadband remote access server, an electronic device, and a computer readable storage medium, which at least overcome the problem that the message loss reduces the data communication experience of the user in the related art to a certain extent.
According to an aspect of an embodiment of the present application, there is provided a method for processing a message, including:
acquiring historical online information of each target user, wherein the target users are users who send messages in a historical time period;
determining the online activity of each target user based on the historical online information of each target user;
sequencing the online liveness of each target user to obtain sequencing information;
and processing the user online messages of each target user in sequence based on the ordering information.
According to an aspect of the embodiments of the present application, there is provided a virtual broadband remote access server, the virtual broadband remote access server including:
the acquisition module is used for acquiring the historical online information of each target user, wherein the target users are users who send messages in a historical time period;
The determining module is used for determining the online activity of each target user based on the historical online information of each target user;
the ordering module is used for ordering the online liveness of each target user to obtain ordering information;
and the processing module is used for sequentially processing the user online messages of each target user according to the ordering information.
In some embodiments of the present application, based on the above technical solutions, the virtual broadband remote access server is configured to:
determining an activity index of each target user based on historical online information of each target user, wherein the activity index comprises at least one of online time, online frequency, data traffic and outbound guaranteed bandwidth;
and determining the online activity of each target user based on the activity index of each target user.
In some embodiments of the present application, based on the above technical solutions, the virtual broadband remote access server is configured to:
determining the accumulated online time of each target user in each target time period based on the online time of each target user;
Determining a time interval between each target time period and the current time;
determining the ratio of the accumulated online time of each target user in each target time period to the time interval corresponding to each target time period to obtain the target ratio of each target user in each target time period;
determining a target index function of each target user in each target time period based on a target ratio of each target user in each target time period, wherein the index of the target index function is the target ratio;
determining, for each target user, a product of the target exponential function, the online frequency, and the data traffic for each of the target time periods for the target user;
determining a first target value corresponding to each target user according to the sum of all products corresponding to each target user;
and determining the online activity of each target user based on the first target value corresponding to each target user.
In some embodiments of the present application, based on the above technical solutions, the virtual broadband remote access server is configured to:
And determining the product of the first target value corresponding to each target user and the outgoing guaranteed bandwidth corresponding to each target user to obtain a second target value corresponding to each target user, and taking the second target value corresponding to each target user as the online activity of each target user.
In some embodiments of the present application, based on the above technical solutions, the virtual broadband remote access server is configured to:
and if the number of the received messages in the preset time period is detected to be larger than the preset number, triggering a control surface of the virtual broadband remote access server vBRAS to start a message processing function, wherein the message processing function comprises the step of sequentially processing the target user online messages of each target user according to the ordering information.
In some embodiments of the present application, based on the above technical solutions, the virtual broadband remote access server is configured to:
and acquiring the historical online information of each target user in a preset period at fixed time, wherein the preset period is a preset duration from a current time point.
In some embodiments of the present application, based on the above technical solutions, the virtual broadband remote access server is configured to:
Based on the ordering information, the user online messages of the target users with the previous online liveness ordering are sequentially processed by utilizing a control surface of a vBRAS; the higher the online activity, the earlier the order in the ordering information.
According to an aspect of an embodiment of the present application, an electronic device is disclosed, including: one or more processors; and storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the methods provided in the various alternative implementations described above.
According to an aspect of embodiments of the present application, a computer program medium having computer readable instructions stored thereon, which when executed by a processor of a computer, cause the computer to perform the methods provided in the various alternative implementations described above is disclosed.
According to an aspect of embodiments of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from the computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the methods provided in the various alternative implementations described above.
In the technical scheme provided by the embodiment of the application, the online liveness of each target user is ordered, and the user online messages of each target user are sequentially processed according to the ordering information, so that the messages can be orderly processed by combining the liveness, the congestion phenomenon caused by sudden arrival of the messages under the condition of indiscriminate processing is avoided, the problem of packet loss is avoided to a certain extent, the message processing speed of the users of the corresponding parts is improved by combining the liveness, the message interaction time length of the corresponding parts is reduced, and the experience of data communication is improved.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned in part by the practice of the application.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
FIG. 1 shows a flow chart of steps of a message processing method according to one embodiment of the present application;
FIG. 2 shows a flow chart of steps of a message processing method according to one embodiment of the present application;
FIG. 3 shows a flow chart of steps of a message processing method according to one embodiment of the present application;
fig. 4 shows a schematic architecture of a virtual broadband remote access server according to one embodiment of the present application;
fig. 5 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The drawings are merely schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more example embodiments. In the following description, numerous specific details are provided to give a thorough understanding of example embodiments of the present application. One skilled in the relevant art will recognize, however, that the aspects of the application may be practiced without one or more of the specific details, or with other methods, components, steps, etc. In other instances, well-known structures, methods, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
In the communication field, user messages are received and processed to realize online of users. The virtual broadband remote access server (virtual Broadband Remote Access Server, vbas) implements more flexible function expansion by decoupling the control plane and forwarding plane of the conventional software and hardware integrated BRAS device. The centralized deployment of the hardware forwarding equipment is realized by adopting the vBRAS pooling technology, the equipment utilization rate can be effectively improved, and the device has good elastic capacity expansion and contraction. The vBRAS pooling technology can greatly improve the utilization rate of equipment, but the centralized deployment of the equipment also increases risks. Although the vbas pool user backup scheme can reduce the risk of excessive concentration of massive home-wide users brought by pooling to a certain extent. However, when the vbas is on-line in large scale, if the whole vbas system (including the control plane and the forwarding plane) fails (such as the system is powered off and restarted), massive home-wide users are on-line again in a very short time, so that impact is caused to the vbas system, a large number of protocol messages are sent to the vbas control plane in a short time, congestion occurs on the control plane, message interaction time becomes long, and user experience sense is rapidly reduced.
In order to solve the above technical problems, the technical solutions of the present application are described below through a plurality of embodiments.
Fig. 1 schematically shows a flow chart of the steps of a message processing method in an embodiment of the present application. As shown in fig. 1, the message processing method mainly includes the following steps:
step S110: acquiring historical online information of each target user, wherein the target users are users who send messages in a historical time period;
the historical online information is online information generated in the historical online process of the user.
As an alternative embodiment, the historical online information includes various types of information of the user, such as: the user's usage status, user name, domain name, user MAC address, user IP address, network information, line information, authentication information, authorization information, time information, rate information, priority information, etc.
As an alternative embodiment, the historical period of time may be days, weeks or months before the current point in time.
Step S120: determining the online activity of each target user based on the historical online information of each target user;
the online activity level is used for indicating the online activity level of the user.
As an optional implementation manner, based on historical online information of each target user, determining the online times of each target user in a period of time, obtaining online frequency of each target user, and setting the online activity of each target user to a corresponding value from high to low according to the online frequency.
As an optional implementation manner, based on historical online information of each target user, determining data traffic of each target user in each unit time, and setting a corresponding value of online activity of each target user from high to low according to the average value of the data traffic in each unit time.
Step S130, ordering the online liveness of each target user to obtain ordering information;
the ranking information is information for indicating the order of the online liveness.
As an optional implementation manner, based on the high-low relation of the online liveness, the ranking with high online liveness is sequentially preceded and the ranking with low online liveness is sequentially followed, so that ranking information is obtained.
As an optional implementation manner, a section where the upper line activity level is located is determined, the upper line activity level corresponding to the section with the high lower bound is ordered before and the upper line activity level corresponding to the section with the low lower bound is ordered after sequentially based on the lower bound of the section.
Step S140: and processing the user online messages of each target user in sequence based on the ordering information.
As an optional implementation manner, based on the ordering information, processing the user online message of each target user in sequence sequentially includes: based on the ordering information, the user online messages of the target users with the previous online liveness ordering are sequentially processed by utilizing a control surface of a vBRAS; the higher the online activity, the earlier the order in the ordering information.
As an optional implementation manner, the method in the embodiment of the present application may be applied to a vbas, where the vbas includes: the system comprises a vBRAS control surface and a vBRAS forwarding surface, wherein the vBRAS control surface comprises a user session table entry and a vBRAS user activity screening module. The vBRAS user activity level screening module is used for calculating online activity level. After a large-scale user of the vBRAS pool encounters a control surface and forwarding surface system fault, the system is restarted to cause the repeated interaction of a large number of protocol messages, so that the problem that protocol messages are lost to part of users due to sudden pressure increase of vBRAS control surface equipment is solved.
In this embodiment, the online liveness of each target user is ordered, and user online messages of each target user are sequentially processed according to the ordering information, so that the messages can be processed in order in combination with the liveness, congestion caused by sudden arrival of the messages under the condition of indiscriminate processing is avoided, the problem of packet loss is avoided to a certain extent, the message processing speed of users of corresponding parts is improved in combination with the liveness, the message interaction duration of the corresponding parts is reduced, and the experience of data communication is improved.
Fig. 2 schematically illustrates a flow chart of steps of a message processing method in an embodiment of the present application. As shown in fig. 2, the message processing method mainly includes the following steps:
step S210: acquiring historical online information of each target user, wherein the target users are users who send messages in a historical time period;
step S220: determining an activity index of each target user based on historical online information of each target user, wherein the activity index comprises at least one of online time, online frequency, data traffic and outbound guaranteed bandwidth;
The online time may be the time recorded in the online message of the user, or may also be the time recorded by the server when the message is received, or the time when the online is successful. The frequency of line up is the frequency of line up per unit time. The data traffic includes upstream traffic and/or downstream traffic. The outgoing guaranteed bandwidth is the minimum guaranteed bandwidth allocated for the user to transmit data.
Step S230: determining the online activity of each target user based on the activity index of each target user;
as an optional implementation manner, the activity index includes one of a wire-up time, a wire-up frequency, a data traffic and a outgoing guaranteed bandwidth, wherein the larger the accumulated wire-up duration determined according to the wire-up time, the higher the wire-up frequency, the larger the data traffic, or the larger the outgoing guaranteed bandwidth, the higher the wire-up activity.
As an alternative embodiment, the activity index includes two of an on-line time, an on-line frequency, a data traffic, and an outgoing guaranteed bandwidth, or the activity index includes three of an on-line time, an on-line frequency, a data traffic, and an outgoing guaranteed bandwidth. Based on the activity index, the uplink duration and the uplink/downlink flow value in unit time can be determined, and further, the uplink activity is positively correlated with the uplink frequency, the uplink duration and the uplink/downlink flow value in unit time.
As an optional implementation manner, determining the online activity of each target user based on the activity index of each target user includes: determining the accumulated online time of each target user in each target time period based on the online time of each target user; determining a time interval between each target time period and the current time; determining the ratio of the accumulated online time of each target user in each target time period to the time interval corresponding to each target time period to obtain the target ratio of each target user in each target time period; determining a target index function of each target user in each target time period based on a target ratio of each target user in each target time period, wherein the index of the target index function is the target ratio; determining, for each target user, a product of the target exponential function, the online frequency, and the data traffic for each of the target time periods for the target user; determining a first target value corresponding to each target user according to the sum of all products corresponding to each target user; and determining the online activity of each target user based on the first target value corresponding to each target user. Therefore, the determined online activity degree is more accurate, the reference value is higher, and the activity degree of the user can be evaluated more accurately.
The target time period is a time interval or period of a fixed duration. For example, the time may be 6 hours, 12 hours, or 24 hours, or may be several days or several weeks; of course, it is also possible to construct a time period from two points in time. The selection of the time period is not particularly limited in the embodiments of the present application. To reduce the amount of computation and improve the accuracy of the online activity, 24 hours may be selected as the target period. The accumulated online time length is the time length of accumulated online in the target time period. For example, a user may accumulate online time for 1 hour within 24 hours. Each target time period is separated from the current time by a time interval, for example, a plurality of target time periods are respectively 24 hours, 48 hours, 72 hours and the like from the current time point. Each time interval has a corresponding target time period. The ratio of the cumulative online time length of each target time period to the time interval thereof is a target ratio. Each target ratio has a corresponding target time period. The first target value refers to the sum of the products.
As an optional implementation manner, determining the online activity of each target user based on the first target value corresponding to each target user includes: the first target value corresponding to each target user can be used as the online activity of each corresponding target user. Reference is made to the following calculation:
Wherein S represents the uplink/downlink flow value in the unit time of the user on the same day, F represents the online frequency of the user on the same day, ta-tb represents the online accumulated time of the user on each day, tn represents the number of days from the current time point, and A represents the online activity.
As an optional implementation manner, determining the online activity of each target user based on the first target value corresponding to each target user includes: and determining the product of the first target value corresponding to each target user and the outgoing guaranteed bandwidth corresponding to each target user to obtain a second target value corresponding to each target user, and taking the second target value corresponding to each target user as the online activity of each target user. The second target value refers to the product of the first target value and the outgoing guaranteed bandwidth.
The following describes the calculation mode of the online liveness in detail in combination with a specific implementation mode:
wherein P represents the forward guaranteed bandwidth, S represents the uplink/downlink flow value in the unit time of the user on the same day, F represents the uplink frequency of the user on the same day, ta-tb represents the accumulated time of the user on the same day, tn represents the number of days from the current time point, and A represents the uplink activity.
As an optional implementation manner, the information such as the online frequency, the online duration, the uplink/downlink traffic statistics value of the user and the like of the user is further processed through a vbas user activity level screening module. And sequencing and marking each user according to the user liveness calculated by the vBRAS user liveness screening module. The longer the network time is used in the near term, the higher the guarantee can be obtained for the user with more traffic, and the response can be obtained more quickly after the vBRAS user is disconnected.
Step S240: sequencing the online liveness of each target user to obtain sequencing information;
step S250: and processing the user online messages of each target user in sequence based on the ordering information.
In this embodiment, determining an activity index of each target user based on historical online information of each target user, where the activity index includes at least one of online time, online frequency, data traffic, and outbound guaranteed bandwidth; and determining the online activity of each target user based on the activity index of each target user. Therefore, the online activity degree can be obtained by combining the historical online information, and the online activity degree can be accurately calculated and the activity degree of the user can be accurately reflected through the accumulated online time length, online frequency and data flow of the target time period. By combining the historical data and the using habits of each user effectively, the online sequences of the users are effectively ordered, so that more effective response can be carried out on active users, and the user experience is improved.
Fig. 3 schematically illustrates a flow chart of steps of a message processing method in an embodiment of the present application. As shown in fig. 3, the message processing method mainly includes the following steps:
step S310: acquiring historical online information of each target user, wherein the target users are users who send messages in a historical time period;
step S320: determining the online activity of each target user based on the historical online information of each target user;
step S330: sequencing the online liveness of each target user to obtain sequencing information;
step S340: if the number of the received messages in the preset time period is detected to be larger than the preset number, triggering a control surface of a virtual broadband remote access server vBRAS to start a message processing function, wherein the message processing function comprises the step of sequentially processing the target user online messages of each target user according to the ordering information;
as an optional implementation manner, the embodiment of the application is adopted to process the message only in a scene that a large number of users are online in a short time, and the message of each user can be processed indiscriminately in a scene that a large number of users are online in a period of time.
When a large number of users are suddenly online in a short time, the current vBRAS performs indiscriminate processing on all users, and the method lacks classification management on the users and cannot optimize the overall user experience in a resource shortage scene. Therefore, in order to avoid the problems of message loss and slow message interaction caused by indifferent processing, the embodiment of the application also detects whether the number of messages received in a preset time period is larger than the preset number, if the number of messages received in the preset time period is detected to be larger than the preset number, a message processing function is started through a control surface of the vBRAS, and the message processing function comprises the step of sequentially processing target user online messages of each target user according to the sequence based on the sequencing information; if the number of the received messages in the preset time period is detected to be smaller than or equal to the preset number, indifferent processing is carried out on the messages of each target user.
In one embodiment, the step of obtaining historical online information for each target user includes: and acquiring the historical online information of each target user in a preset period at fixed time, wherein the preset period is a preset duration from a current time point. Therefore, the online activity level can be updated regularly, and kept in the latest state, so that the activity level of the user in the last period of time can be accurately evaluated, and message processing is further performed based on the online activity level.
Step S350: and processing the target user online messages of each target user in sequence based on the ordering information.
In a specific scenario, the technical solution of the embodiment of the present application includes: the system is initialized, the vBRAS control surface establishes a user session table entry according to the user online information, and the user online information is uploaded to a user activity screening module database through a fixed interaction period. And the user activity screening module calculates a user activity value according to the database information and a fixed period, and marks the users in order according to the value to generate a user online processing sequence. When the concurrent user quantity exceeding the threshold value is online, the vBRAS control surface cannot process all user online interaction messages in a short time, and the control surface processes the user online messages in sequence according to the sequencing marks generated by the user liveness values, so that the user experience can be effectively improved. Therefore, the scene control surface on the online of a large number of users can process the protocol messages on the online of the users according to a certain rule, the priority online guarantee is provided for the users with high activity, and the experience of the whole user group is improved.
In this embodiment, if the number of the received messages in the preset time period is detected to be greater than the preset number, the control plane of the vbas is triggered to start a message processing function, where the message processing function includes processing, in order, the target user online messages of each target user based on the ordering information. Therefore, the method and the system can timely combine the liveness when a large number of users are online in a short time, and process the messages of each user in order, so that the communication experience is improved, and the message loss is reduced.
Fig. 4 shows a virtual broadband remote access server according to an embodiment of the present application, the virtual broadband remote access server comprising:
an obtaining module 410, configured to obtain historical online information of each target user, where the target user is a user who has sent a message in a historical time period;
a determining module 420, configured to determine online activity of each target user based on historical online information of each target user;
a ranking module 430, configured to rank the online liveness of each target user to obtain ranking information;
and a processing module 440, configured to sequentially process the user online messages of each target user according to the ordering information.
In an exemplary embodiment of the present application, the virtual broadband remote access server is configured to:
determining an activity index of each target user based on historical online information of each target user, wherein the activity index comprises at least one of online time, online frequency, data traffic and outbound guaranteed bandwidth;
and determining the online activity of each target user based on the activity index of each target user.
In an exemplary embodiment of the present application, the virtual broadband remote access server is configured to:
determining the accumulated online time of each target user in each target time period based on the online time of each target user;
determining a time interval between each target time period and the current time;
determining the ratio of the accumulated online time of each target user in each target time period to the time interval corresponding to each target time period to obtain the target ratio of each target user in each target time period;
determining a target index function of each target user in each target time period based on a target ratio of each target user in each target time period, wherein the index of the target index function is the target ratio;
Determining, for each target user, a product of the target exponential function, the online frequency, and the data traffic for each of the target time periods for the target user;
determining a first target value corresponding to each target user according to the sum of all products corresponding to each target user;
and determining the online activity of each target user based on the first target value corresponding to each target user.
In an exemplary embodiment of the present application, the virtual broadband remote access server is configured to:
and determining the product of the first target value corresponding to each target user and the outgoing guaranteed bandwidth corresponding to each target user to obtain a second target value corresponding to each target user, and taking the second target value corresponding to each target user as the online activity of each target user.
In an exemplary embodiment of the present application, the virtual broadband remote access server is configured to:
and if the number of the received messages in the preset time period is detected to be larger than the preset number, triggering a control surface of the virtual broadband remote access server vBRAS to start a message processing function, wherein the message processing function comprises the step of sequentially processing the target user online messages of each target user according to the ordering information.
In an exemplary embodiment of the present application, the virtual broadband remote access server is configured to:
and acquiring the historical online information of each target user in a preset period at fixed time, wherein the preset period is a preset duration from a current time point.
In an exemplary embodiment of the present application, the virtual broadband remote access server is configured to:
based on the ordering information, the user online messages of the target users with the previous online liveness ordering are sequentially processed by utilizing a control surface of a vBRAS; the higher the online activity, the earlier the order in the ordering information.
An electronic device 5 according to an embodiment of the present application is described below with reference to fig. 5. The electronic device 50 shown in fig. 5 is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments herein.
As shown in fig. 5, the electronic device 50 is embodied in the form of a general purpose computing device. Components of electronic device 50 may include, but are not limited to: the at least one processing unit 510, the at least one memory unit 520, and a bus 530 connecting the various system components, including the memory unit 520 and the processing unit 510.
Wherein the storage unit stores program code that is executable by the processing unit 510 such that the processing unit 510 performs the steps according to various exemplary embodiments of the present invention described in the description of the exemplary methods described above in this specification. For example, the processing unit 510 may perform the various steps as shown in fig. 1.
The storage unit 520 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 5201 and/or cache memory unit 5202, and may further include Read Only Memory (ROM) 5203.
The storage unit 520 may also include a program/utility 5204 having a set (at least one) of program modules 5205, such program modules 5205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 530 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 50 may also communicate with one or more external devices 600 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 30, and/or any device (e.g., router, modem, etc.) that enables the electronic device 50 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 550. An input/output (I/O) interface 550 is connected to the display unit 540. Also, electronic device 50 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 560. As shown, network adapter 560 communicates with other modules of electronic device 50 over bus 530. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 50, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a usb disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present application.
In an exemplary embodiment of the present application, there is also provided a computer-readable storage medium having stored thereon computer-readable instructions, which, when executed by a processor of a computer, cause the computer to perform the method described in the method embodiment section above.
According to an embodiment of the present application, there is also provided a program product for implementing the method in the above method embodiments, which may employ a portable compact disc read only memory (CD-ROM) and comprise program code and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, in accordance with embodiments of the present application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the various steps of the methods herein are depicted in the accompanying drawings in a particular order, this is not required to either suggest that the steps must be performed in that particular order, or that all of the illustrated steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
Claims (7)
1. The message processing method is characterized in that the method is applied to a virtual broadband remote access server (vBRAS), and the method comprises the following steps:
if the number of the received messages in the preset time period is detected to be larger than the preset number, starting a message processing function through a control surface of the vBRAS;
acquiring historical online information of each target user, wherein the target users are users who send messages in a historical time period;
determining an activity index of each target user based on historical online information of each target user, wherein the activity index comprises online time, online frequency and data traffic; determining the accumulated online time length of each target user in each target time period based on the online time of each target user, and determining the time interval of each target time period from the current time; determining the ratio of the accumulated online time of each target user in each target time period to the time interval corresponding to each target time period to obtain the target ratio of each target user in each target time period; determining a target index function of each target user in each target time period based on a target ratio of each target user in each target time period, wherein the index of the target index function is the target ratio; determining, for each target user, a product of the target exponential function, the online frequency, and the data traffic for each of the target time periods for the target user; determining a first target value corresponding to each target user according to the sum of all products corresponding to each target user; determining the online activity of each target user based on the first target value corresponding to each target user;
Taking the first target value as the online activity of each target user, and calculating the online activity according to the following formula:
wherein A is the online activity of each target user, S represents the uplink/downlink flow value of the current user in unit time, F represents the online frequency of the current user, ta-tb represents the online accumulated time of the current user, and tn represents the number of days from the current time point;
sequencing the online liveness of each target user to obtain sequencing information;
based on the ordering information, the user online messages of the target users with the previous online liveness ordering are sequentially processed by utilizing a control surface of a vBRAS; the higher the online activity, the earlier the order in the ordering information.
2. The method of claim 1, wherein determining the online activity for each target user based on the first target value for each target user comprises:
and determining the product of the first target value corresponding to each target user and the outgoing guaranteed bandwidth corresponding to each target user to obtain a second target value corresponding to each target user, and taking the second target value corresponding to each target user as the online activity of each target user.
3. The method of claim 1, wherein prior to sequentially processing the target user online message for each of the target users in sequence based on the ranking information, further comprising:
and if the number of the received messages in the preset time period is detected to be larger than the preset number, triggering a control surface of the virtual broadband remote access server vBRAS to start a message processing function, wherein the message processing function comprises the step of sequentially processing the target user online messages of each target user according to the ordering information.
4. The method of claim 3, wherein the step of obtaining historical presence information for each target user comprises:
and acquiring the historical online information of each target user in a preset period at fixed time, wherein the preset period is a preset duration from a current time point.
5. A virtual broadband remote access server, the virtual broadband remote access server comprising:
the acquisition module is used for starting a message processing function through a control surface of the vBRAS if the number of the received messages in the preset time period is detected to be larger than the preset number; acquiring historical online information of each target user, wherein the target users are users who send messages in a historical time period;
The determining module is used for determining the activity index of each target user based on the historical online information of each target user, wherein the activity index comprises online time, online frequency and data traffic; determining the accumulated online time length of each target user in each target time period based on the online time of each target user, and determining the time interval of each target time period from the current time; determining the ratio of the accumulated online time of each target user in each target time period to the time interval corresponding to each target time period to obtain the target ratio of each target user in each target time period; determining a target index function of each target user in each target time period based on a target ratio of each target user in each target time period, wherein the index of the target index function is the target ratio; determining, for each target user, a product of the target exponential function, the online frequency, and the data traffic for each of the target time periods for the target user; determining a first target value corresponding to each target user according to the sum of all products corresponding to each target user; determining online liveness of each target user based on the first target value corresponding to each target user, taking the first target value as the online liveness of each target user, and calculating the online liveness according to the following formula:
Wherein A is the online activity of each target user, S represents the uplink/downlink flow value of the current user in unit time, F represents the online frequency of the current user, ta-tb represents the online accumulated time of the current user, and tn represents the number of days from the current time point;
the ordering module is used for ordering the online liveness of each target user to obtain ordering information;
the processing module is used for processing the user online messages of the target users with the previous online liveness sequencing in sequence by utilizing a control surface of the vBRAS based on the sequencing information; the higher the online activity, the earlier the order in the ordering information.
6. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the electronic device to implement the method of any of claims 1-4.
7. A computer readable storage medium having stored thereon computer readable instructions which, when executed by a processor of a computer, cause the computer to perform the method of any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210388374.XA CN114900477B (en) | 2022-04-13 | 2022-04-13 | Message processing method, server, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210388374.XA CN114900477B (en) | 2022-04-13 | 2022-04-13 | Message processing method, server, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114900477A CN114900477A (en) | 2022-08-12 |
CN114900477B true CN114900477B (en) | 2024-01-30 |
Family
ID=82718403
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210388374.XA Active CN114900477B (en) | 2022-04-13 | 2022-04-13 | Message processing method, server, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114900477B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116016243A (en) * | 2023-01-09 | 2023-04-25 | 珠海金山数字网络科技有限公司 | Method and device for determining user liveness |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003242110A (en) * | 2002-02-21 | 2003-08-29 | Ntt Data Corp | Access control device, and computer program |
CN105391654A (en) * | 2015-11-26 | 2016-03-09 | 中国建设银行股份有限公司 | Account activeness-based system resource allocation method and device |
CN112559865A (en) * | 2020-12-15 | 2021-03-26 | 泰康保险集团股份有限公司 | Information processing system, computer-readable storage medium, and electronic device |
CN113098841A (en) * | 2021-03-01 | 2021-07-09 | 星瀛科技(北京)有限公司 | Queuing method for logging in cloud computer, computer equipment and readable storage medium |
CN113554350A (en) * | 2021-08-16 | 2021-10-26 | 智慧足迹数据科技有限公司 | Activity evaluation method and apparatus, electronic device and computer readable storage medium |
CN113783924A (en) * | 2021-04-15 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Method and device for processing access request |
CN114124314A (en) * | 2020-08-27 | 2022-03-01 | 华为技术有限公司 | Method for controlling client to be online, network equipment and client |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110276017A (en) * | 2019-06-28 | 2019-09-24 | 百度在线网络技术(北京)有限公司 | A kind of data analysing method and device |
-
2022
- 2022-04-13 CN CN202210388374.XA patent/CN114900477B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003242110A (en) * | 2002-02-21 | 2003-08-29 | Ntt Data Corp | Access control device, and computer program |
CN105391654A (en) * | 2015-11-26 | 2016-03-09 | 中国建设银行股份有限公司 | Account activeness-based system resource allocation method and device |
CN114124314A (en) * | 2020-08-27 | 2022-03-01 | 华为技术有限公司 | Method for controlling client to be online, network equipment and client |
CN112559865A (en) * | 2020-12-15 | 2021-03-26 | 泰康保险集团股份有限公司 | Information processing system, computer-readable storage medium, and electronic device |
CN113098841A (en) * | 2021-03-01 | 2021-07-09 | 星瀛科技(北京)有限公司 | Queuing method for logging in cloud computer, computer equipment and readable storage medium |
CN113783924A (en) * | 2021-04-15 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Method and device for processing access request |
CN113554350A (en) * | 2021-08-16 | 2021-10-26 | 智慧足迹数据科技有限公司 | Activity evaluation method and apparatus, electronic device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114900477A (en) | 2022-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12075106B2 (en) | Message sending method and device, readable medium and electronic device | |
CN109684358B (en) | Data query method and device | |
US20180198857A1 (en) | Connection control device, connection control system, and non-transitory computer readable medium | |
CN110753131A (en) | Microservice distributed current limiting method and device, storage medium and electronic equipment | |
CN111787069A (en) | Method, device and equipment for processing service access request and computer storage medium | |
CN111966289B (en) | Partition optimization method and system based on Kafka cluster | |
CN109981225B (en) | Code rate estimation method, device, equipment and storage medium | |
CN114900477B (en) | Message processing method, server, electronic equipment and storage medium | |
CN110620681A (en) | Network connection timeout time setting method, device, equipment and medium | |
CN117376212A (en) | Network rate adjustment method and device, storage medium and electronic equipment | |
CN116436713A (en) | Traffic scheduling method and device, medium and electronic equipment | |
CN114553778B (en) | Heartbeat control method and device, storage medium and electronic equipment | |
CN110677463B (en) | Parallel data transmission method, device, medium and electronic equipment | |
CN112988417B (en) | Message processing method, device, electronic equipment and computer readable medium | |
CN109951316B (en) | Application program management method and device, computer readable medium and electronic equipment | |
CN115277549B (en) | Detection message generation method and device, storage medium and electronic equipment | |
WO2024198411A1 (en) | Method for managing service channel, management apparatus, and system | |
CN109255003A (en) | A kind of driving path methods of exhibiting, device, system, equipment and storage medium | |
CN111338882A (en) | Data monitoring method, device, medium and electronic equipment | |
KR100333475B1 (en) | Rate proportional self-clocked fair queueing apparatus and method for high-speed packet-switched networks | |
CN117118876B (en) | Heartbeat connection detection method and device, electronic equipment and storage medium | |
CN115086300B (en) | Video file scheduling method and device | |
CN116016521A (en) | Network master node election method, device, equipment and storage medium | |
JP6850618B2 (en) | Relay device and relay method | |
CN117793185A (en) | Information stream processing method and device |
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 |