CN114900477A - Message processing method, server, electronic device and storage medium - Google Patents

Message processing method, server, electronic device and storage medium Download PDF

Info

Publication number
CN114900477A
CN114900477A CN202210388374.XA CN202210388374A CN114900477A CN 114900477 A CN114900477 A CN 114900477A CN 202210388374 A CN202210388374 A CN 202210388374A CN 114900477 A CN114900477 A CN 114900477A
Authority
CN
China
Prior art keywords
target
online
target user
user
information
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.)
Granted
Application number
CN202210388374.XA
Other languages
Chinese (zh)
Other versions
CN114900477B (en
Inventor
杨顺兴
王素彬
王雪荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202210388374.XA priority Critical patent/CN114900477B/en
Publication of CN114900477A publication Critical patent/CN114900477A/en
Application granted granted Critical
Publication of CN114900477B publication Critical patent/CN114900477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue 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, an electronic device and a storage medium, wherein the method comprises the following steps: acquiring historical online information of each target user, wherein the target user is a user who has sent a message 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 activity of each target user to obtain sequencing information; and sequentially processing the user online messages of each target user in sequence based on the sequencing information. The method and the device can overcome the problem that the data communication experience of the user is reduced due to the loss of the message in the related technology to a certain extent.

Description

Message processing method, server, electronic device and storage medium
Technical Field
The present application 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 field of communication, the user can be on line by receiving and processing the user message. Under the scenes that the server fails and needs to be restarted, and the like, massive messages can be received. The related technology directly processes the messages of all users without distinction, however, at this time, the protocol messages of a large number of users are interacted again, which causes a sudden increase of message processing pressure, so that the protocol messages of a part of users are lost, and the data communication experience of the users is further reduced due to the lost messages.
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 to some extent overcome the problem of the related art that the data communication experience of a user is degraded due to the loss of a message.
According to an aspect of the embodiments of the present application, a method for processing a packet is provided, where the method includes:
acquiring historical online information of each target user, wherein the target user is a user who has sent a message 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 activity of each target user to obtain sequencing information;
and sequentially processing the user online messages of each target user in sequence based on the sequencing information.
According to an aspect of an embodiment of the present application, there is provided a virtual broadband remote access server, including:
the acquisition module is used for acquiring historical online information of each target user, wherein the target user is a user who has sent a message 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 sequencing module is used for sequencing the online activity of each target user to obtain sequencing information;
and the processing module is used for sequentially processing the user online messages of each target user in sequence based on the sequencing 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 flow and outgoing guarantee 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 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 an index of the target index function is the target ratio;
for each target user, determining the product of the target exponential function, the online frequency and the data traffic of the target user in each target time period;
determining a first target value corresponding to each target user according to the sum of all the 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 outbound 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 a preset time period is larger than the preset number, triggering a control plane 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 on-line messages of the target users of each target user in sequence based on the sequencing 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 regular time, wherein the preset period is a preset time length from the 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 sorting information, utilizing a control surface of a vBRAS to sequentially process the user online messages of the target users with the online liveness sorted in front; the higher the activity of the online is, the more forward the sequence in the sorting information is.
According to an aspect of an embodiment of the present application, an electronic device is disclosed, including: 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 methods provided in the various alternative implementations described above.
According to an aspect of embodiments of the present application, a computer program medium is disclosed, on which computer readable instructions are stored, which, when executed by a processor of a computer, cause the computer to perform the method provided in the above various alternative implementations.
According to an aspect of embodiments herein, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method 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 sequenced, and the online messages of the users of each target user are sequentially processed according to the sequencing information, so that the messages can be processed by orderly combining the liveness, the congestion phenomenon caused by sudden arrival of the messages under the condition of processing without difference is avoided, the problem of packet loss is avoided to a certain extent, the message processing speed of the users of the corresponding part is improved by combining the liveness, the message interaction duration of the corresponding part 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 by 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 is a flow chart illustrating steps of a message processing method according to one embodiment of the present application;
FIG. 2 is a flow diagram illustrating steps of a message processing method according to one embodiment of the present application;
FIG. 3 is a flow diagram illustrating steps of a message processing method according to one embodiment of the present application;
figure 4 shows an architectural diagram 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 application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different 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 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 their repetitive description 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 subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, steps, and so forth. 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 the form of 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 field of communication, the user can be on line by receiving and processing the user message. A virtual Broadband Remote Access Server (vbrs) decouples a control plane and a forwarding plane of a conventional software and hardware integrated BRAS device to achieve more flexible function expansion. The centralized deployment of hardware forwarding equipment is realized by adopting a vBRAS pooling technology, the utilization rate of the equipment can be effectively improved, and the flexible expansion and contraction capacity is good. The vbars pooling technology can greatly improve the utilization rate of the equipment, but at the same time, centralized deployment of the equipment also increases risks. Although the risk of excessive concentration of a large number of home-wide users caused by pooling can be reduced to a certain extent by the vbars pool user backup scheme. However, when large-scale users of the vbars are on-line concurrently, for example, the whole vbars system (including the control plane and the forwarding plane) fails (for example, the system is restarted due to power failure), a large number of home-wide users are on-line concurrently again in a very short time, which may cause impact on the vbars system, a large number of protocol messages may be sent to the vbars control plane in a short time, congestion occurs in the control plane, the message interaction time becomes long, and the user experience is rapidly reduced.
In order to solve the above technical problem, the following describes the technical solution of the present application through a plurality of embodiments.
Fig. 1 schematically shows a flowchart of steps of a message processing method according to 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 user is a user who has sent a message in a historical time period;
the historical online information is online information generated in the user historical online process.
As an optional implementation, the historical online information includes various types of information of the user, such as: 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 time period may be days, weeks, or months prior to the current time point.
Step S120: determining the online activity of each target user based on the historical online information of each target user;
the online activity is used for indicating the activity degree of online of the user.
As an optional implementation manner, based on the historical online information of each target user, the number of times that each target user is online within a period of time is determined, the online frequency of each target user is obtained, and a corresponding value is set for the online activity of each target user from high to low according to the online frequency from high to low.
As an optional implementation manner, based on the historical online information of each target user, the data traffic of each target user in each unit time is determined, and the online activity of each target user is set from high to low according to the average value of the data traffic in each unit time from high to low.
S130, sequencing the online activity of each target user to obtain sequencing information;
the sorting information is information for indicating the sequence of the line activity.
As an optional implementation manner, based on the high-low relationship of the online activity, the ranking with high online activity is sequentially performed in the front, and the ranking with low online activity is performed in the back, so as to obtain the ranking information.
As an optional implementation manner, a section where the upper thread activity is located is determined, and based on a lower boundary of the section, the upper thread activities corresponding to the sections with high lower boundaries are sequentially ranked at the front, and the upper thread activities corresponding to the sections with low lower boundaries are ranked at the back.
Step S140: and sequentially processing the user online messages of each target user in sequence based on the sequencing information.
As an optional implementation manner, based on the sorting information, sequentially processing the user online messages of each target user in order includes: based on the sorting information, the user online messages of the target users with the online liveness sorted in front are sequentially processed by using a control surface of a vBRAS; the higher the activity of the online is, the more forward the sequence in the sorting information is.
As an optional implementation manner, the method in this embodiment may be applied to a vbars, where the vbars includes: the system comprises a vBRAS control plane and a vBRAS forwarding plane, wherein the vBRAS control plane comprises a user session table entry and a vBRAS user activity screening module. And the vBRAS user activity degree screening module is used for calculating the online activity degree. In order to solve the problems, the online activity is used as a reference value for controlling the processing of the surface message when the vBRAS user is online on a large scale, the online message of each target user is processed based on the sequencing information of the activity, and the problem of degradation of user experience when the large-scale user is online can be effectively solved.
In this embodiment, the online liveness of each target user is sequenced, and the online messages of the users of each target user are sequentially processed according to the sequencing information, so that the messages can be processed in an orderly manner by combining the liveness, congestion caused by sudden arrival of the messages is avoided under the condition of indiscriminate processing, the problem of packet loss is avoided to a certain extent, the message processing speed of the users of the corresponding part is improved by combining the liveness, the message interaction duration of the corresponding part is reduced, and the experience of data communication is improved.
Fig. 2 is a flow chart schematically illustrating steps of a message processing method according to 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 user is a user who has sent a message 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 flow and outgoing guarantee 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 up-line frequency is the frequency of up-line in a unit time. The data traffic includes upstream traffic and/or downstream traffic. The outbound guaranteed bandwidth is a minimum guaranteed bandwidth allocated for a 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 an online time, an online frequency, a data traffic and an outbound guaranteed bandwidth, where the greater the cumulative online time determined according to the online time, the higher the online frequency, the greater the data traffic, or the greater the outbound guaranteed bandwidth, the higher the online activity.
As an optional implementation manner, the activity indicator includes two of the line time, the line frequency, the data traffic and the guaranteed bandwidth, or the activity indicator includes three of the line time, the line frequency, the data traffic and the guaranteed bandwidth. And determining an online duration and an uplink/downlink flow value in unit time based on the activity index, wherein the online activity is positively correlated with an online frequency, the online 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 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 an index of the target index function is the target ratio; for each target user, determining the product of the target exponential function, the online frequency and the data traffic of the target user in each target time period; determining a first target value corresponding to each target user according to the sum of all the 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 and has a reference value, and the activity degree of the user can be more accurately evaluated.
The target time period is a fixed length time interval or period. For example, it may be 6 hours, 12 hours, 24 hours, or it may be several days or weeks; of course, two time points may be used to form a time period. The embodiment of the application does not specifically limit the selection of the time period. In order to reduce the amount of calculation and improve the accuracy of the online activity, 24 hours can be selected as the target time period. The accumulated online time length is accumulated online time length in a target time period. For example, a user may add up to 1 hour in 24 hours. Each target time period is separated from the current time by a time interval, for example, several target time periods are separated from the current time point by 24 hours, 48 hours, 72 hours, and the like. Each time interval has a corresponding target time period. The ratio of the accumulated line-up 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 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. Refer to the following calculation:
Figure BDA0003594629470000091
wherein S represents the uplink/downlink flow value of the user in the current day in unit time, F represents the online frequency of the user in the current day, ta-tb represents the online accumulated time of the user every 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 outbound 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 a product of the first target value and the outgoing guaranteed bandwidth.
The calculation mode of the online activity is specifically described by combining a specific implementation mode as follows:
Figure BDA0003594629470000092
wherein, P represents the guaranteed bandwidth, S represents the uplink/downlink flow value in unit time of the user on the current day, F represents the online frequency of the user on the current 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, information such as an online frequency, an online duration, a user uplink/downlink traffic statistic value, and the like of a user is further processed through a vbars user activity degree screening module. And sequencing and marking each user according to the user activity calculated by the vBRAS user activity screening module. The longer the network is used in the near period, 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 activity of each target user to obtain sequencing information;
step S250: and sequentially processing the user online messages of each target user in sequence based on the sequencing information.
In this embodiment, an activity index of each target user is determined 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 an 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 can be obtained by combining historical online information, and the online activity can be accurately calculated and the activity degree of a user can be accurately reflected through the accumulated online time length, the online frequency and the data flow of the target time period. By combining effective historical data and use habits of each user, the online sequence of the users is effectively sorted, more effective response can be carried out on active users, and the user experience is improved.
Fig. 3 is a flow chart schematically illustrating steps of a message processing method according to 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 user is a user who has sent a message 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 activity of each target user to obtain sequencing information;
step S340: if the number of the received messages in a preset time period is larger than the preset number, triggering a control plane 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 on-line messages of the target users of each target user in sequence based on the sequencing information;
as an optional implementation manner, the embodiment of the present application may also be used to perform message processing only in a scenario where a large number of users are online in a short time, and in a scenario where a large number of users are not online in a short time, the message of each user may be processed indiscriminately.
When a large number of users are on line suddenly in a short time, the current vBRAS carries out undifferentiated processing on all the users indiscriminately, and the method lacks classification management on the users and cannot optimize the overall user experience in the scene of resource shortage. Therefore, in order to avoid the problems of message loss and slow message interaction caused by undifferentiated processing, the embodiment of the present application further detects whether the number of the received messages in the preset time period is greater than the preset number, and if the number of the received messages in the preset time period is greater than the preset number, the message processing function is started through the control plane of the vbars, and the message processing function includes sequentially processing the on-line messages of the target users of each target user in sequence based on the sorting information; and if the number of the received messages in the preset time period is detected to be less than or equal to the preset number, indiscriminate processing is carried out on the messages of each target user.
In an embodiment, the step of acquiring historical online information of each target user includes: and acquiring the historical online information of each target user in a preset period at regular time, wherein the preset period is a preset time length from the current time point. Therefore, the online activity can be updated regularly, the online activity is kept in the latest state, the activity degree of a user in the latest period of time can be accurately evaluated, and the message processing is further carried out based on the online activity.
Step S350: and sequentially processing the target user online messages of each target user in sequence based on the sequencing information.
In a specific scenario, the technical solution of the embodiment of the present application includes: and initializing the system, wherein the vBRAS control plane establishes a user session table item according to the user online information and sends the user online information to a user activity screening module database through a fixed interaction period. And the user activity screening module calculates the user activity value according to the database information and a fixed period, and sorts and marks the users according to the value to generate a user online processing sequence. When the quantity of the concurrent users exceeding the threshold value is online, the vBRAS control surface cannot process all user online interactive messages in a short time, and the control surface processes the user online messages according to the sequencing marks generated by the user activity value, so that the user experience can be effectively improved. Therefore, the control surface can process the protocol messages of the online users according to a certain rule in a scene that a large number of users are online, 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 it is detected that the number of the received messages in the preset time period is greater than the preset number, the control plane of the virtual broadband remote access server vbars is triggered to start a message processing function, where the message processing function includes sequentially processing the target user online messages of each target user in sequence based on the sorting information. Therefore, the messages of each user can be processed in sequence by combining the activity degree in time when massive users get on line in a short time, so that the communication experience is improved, and the message loss is reduced.
Fig. 4 illustrates 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 an online activity of each target user based on historical online information of each target user;
a sorting module 430, configured to sort the online activity of each target user to obtain sorting information;
and the processing module 440 is configured to sequentially process the user online messages of each target user in order based on the sorting 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 flow and outgoing guarantee 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 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 an index of the target index function is the target ratio;
for each target user, determining the product of the target exponential function, the online frequency and the data traffic of the target user in each target time period;
determining a first target value corresponding to each target user according to the sum of all the 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 outbound 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 a preset time period is larger than the preset number, triggering a control plane 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 on-line messages of the target users of each target user in sequence based on the sequencing 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 regular time, wherein the preset period is a preset time length from the current time point.
In an exemplary embodiment of the present application, the virtual broadband remote access server is configured to:
based on the sorting information, utilizing a control surface of a vBRAS to sequentially process the user online messages of the target users with the online liveness sorted in front; the higher the activity of the online is, the more forward the sequence in the sorting information is.
An electronic apparatus 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 only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 5, electronic device 50 is embodied in the form of a general purpose computing device. The components of the 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 that couples 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 to cause the processing unit 510 to perform steps according to various exemplary embodiments of the present invention as described in the description part of the above exemplary methods of the present specification. For example, the processing unit 510 may perform the various steps as shown in fig. 1.
The memory unit 520 may include a readable medium in the form of a volatile memory unit, such as a random access memory unit (RAM)5201 and/or a cache memory unit 5202, and may further include a read only memory unit (ROM) 5203.
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 of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 530 may be one or more of any 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.), with one or more devices that enable a user to interact with the electronic device 30, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 50 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 550. An input/output (I/O) interface 550 is connected to the display unit 540. Also, the electronic device 50 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 560. As shown, the network adapter 560 communicates with the other modules of the electronic device 50 over the bus 530. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 50, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, and may also be implemented by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to make a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) execute 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 above method embodiment section.
According to an embodiment of the present application, there is also provided a program product for implementing the method in the above method embodiment, which may employ a portable compact disc read only memory (CD-ROM) and include 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 in this regard and, in the present 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. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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 for aspects 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, as well as 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 and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, 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., through the internet using an internet service provider).
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods herein are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute 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 invention 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 invention 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 (10)

1. A message processing method is characterized by comprising the following steps:
acquiring historical online information of each target user, wherein the target user is a user who has sent a message 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 activity of each target user to obtain sequencing information;
and sequentially processing the user online messages of each target user in sequence based on the sequencing information.
2. The method of claim 1, wherein determining a liveliness of each of the target users based on historical linelineup information for each of the target users comprises:
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 flow and outgoing guarantee bandwidth;
and determining the online activity of each target user based on the activity index of each target user.
3. The method of claim 2, wherein determining the online liveness of each of the target users based on the liveness indicator of each of the target users comprises:
determining the accumulated online time of each target user in each target time period based on the online time of each target user;
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 an index of the target index function is the target ratio;
for each target user, determining the product of the target exponential function, the online frequency and the data traffic of the target user in each target time period;
determining a first target value corresponding to each target user according to the sum of all the 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.
4. The method of claim 3, wherein determining the online activity of 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 outbound 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.
5. The method of claim 1, wherein before sequentially processing the target user online messages of each of the target users in sequence based on the ranking information, the method further comprises:
and if the number of the received messages in a preset time period is 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 on-line messages of the target users of each target user in sequence based on the sequencing information.
6. The method of claim 5, wherein the step of obtaining historical online information for each target user comprises:
and acquiring the historical online information of each target user in a preset period at regular time, wherein the preset period is a preset time length from the current time point.
7. The method of claim 1, wherein sequentially processing the user online messages of each of the target users in order based on the ranking information comprises:
based on the sorting information, the user online messages of the target users with the online liveness sorted in front are sequentially processed by using a control surface of a vBRAS; the higher the activity of the online is, the more forward the sequence in the sorting information is.
8. A virtual broadband remote access server, characterized in that the virtual broadband remote access server comprises:
the acquisition module is used for acquiring historical online information of each target user, wherein the target user is a user who has sent a message 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 sequencing module is used for sequencing the online activity of each target user to obtain sequencing information;
and the processing module is used for sequentially processing the user online messages of each target user in sequence based on the sequencing information.
9. 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 carry out the method of any one of claims 1 to 7.
10. 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 one of claims 1 to 7.
CN202210388374.XA 2022-04-13 2022-04-13 Message processing method, server, electronic equipment and storage medium Active CN114900477B (en)

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 true CN114900477A (en) 2022-08-12
CN114900477B 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)

Citations (8)

* Cited by examiner, † Cited by third party
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
US20200410371A1 (en) * 2019-06-28 2020-12-31 Baidu Online Network Technology (Beijing) Co., Ltd. Data analysis 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

Patent Citations (8)

* Cited by examiner, † Cited by third party
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
US20200410371A1 (en) * 2019-06-28 2020-12-31 Baidu Online Network Technology (Beijing) Co., Ltd. Data analysis 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
CN114900477B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
CN108776934B (en) Distributed data calculation method and device, computer equipment and readable storage medium
CN109104336B (en) Service request processing method and device, computer equipment and storage medium
Tang et al. Dynamic request redirection and elastic service scaling in cloud-centric media networks
CN110753131A (en) Microservice distributed current limiting method and device, storage medium and electronic equipment
CN108090079B (en) Chat record processing method and device of instant chat tool
CN111966289B (en) Partition optimization method and system based on Kafka cluster
CN109766172B (en) Asynchronous task scheduling method and device
US10621018B2 (en) Link optimization for callout request messages
US11750711B1 (en) Systems and methods for adaptively rate limiting client service requests at a blockchain service provider platform
CN114780244A (en) Container cloud resource elastic allocation method and device, computer equipment and medium
CN112073327B (en) Anti-congestion software distribution method, device and storage medium
CN107426012B (en) Fault recovery method and device based on super-fusion architecture
CN114900477B (en) Message processing method, server, electronic equipment and storage medium
JP7307766B2 (en) Traffic adjustment method, apparatus, electronic equipment, computer readable recording medium and computer program
CN115952054A (en) Simulation task resource management method, device, equipment and medium
CN116528177A (en) Short message sending method and device, electronic equipment and storage medium
CN112054926B (en) Cluster management method and device, electronic equipment and storage medium
CN115086194A (en) Data transmission method for cloud application, computing equipment and computer storage medium
WO2019061999A1 (en) Breakpoint call method, electronic device and computer-readable storage medium
CN113835905A (en) Message queue load balancing method and device, electronic equipment and medium
CN113821336A (en) Resource allocation method and device, storage medium and electronic equipment
CN110677463B (en) Parallel data transmission method, device, medium and electronic equipment
CN115442432B (en) Control method, device, equipment and storage medium
CN116996481B (en) Live broadcast data acquisition method and device, electronic equipment and storage medium
CN114064362B (en) Data recovery method, system and computer readable storage medium for distributed storage

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