CN112311689B - Burst traffic distribution method, computer device and readable storage medium - Google Patents

Burst traffic distribution method, computer device and readable storage medium Download PDF

Info

Publication number
CN112311689B
CN112311689B CN201910703665.1A CN201910703665A CN112311689B CN 112311689 B CN112311689 B CN 112311689B CN 201910703665 A CN201910703665 A CN 201910703665A CN 112311689 B CN112311689 B CN 112311689B
Authority
CN
China
Prior art keywords
service
request
group
frequency
auxiliary
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
Application number
CN201910703665.1A
Other languages
Chinese (zh)
Other versions
CN112311689A (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.)
Shanghai Hode Information Technology Co Ltd
Original Assignee
Shanghai Hode Information Technology Co 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 Shanghai Hode Information Technology Co Ltd filed Critical Shanghai Hode Information Technology Co Ltd
Priority to CN201910703665.1A priority Critical patent/CN112311689B/en
Publication of CN112311689A publication Critical patent/CN112311689A/en
Application granted granted Critical
Publication of CN112311689B publication Critical patent/CN112311689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/22Traffic shaping
    • H04L47/225Determination of shaping rate, e.g. using a moving window
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a burst traffic distribution method, computer equipment and a readable storage medium, and belongs to the technical field of live broadcast application. The invention monitors the request frequency of the acquired service requests from the service type point of view to identify whether the service request of each service type is in a normal range (for example, the request frequency is greater than a frequency threshold value); when the request frequency of the service request is greater than the frequency threshold, the service server (main service group) of the service type corresponding to the service request can be regarded as reaching the capacity upper limit, and the service request is required to be sent to the auxiliary service group to acquire corresponding service data, so that the access pressure of the main service group is relieved, the efficiency of handling the burst flow is further improved, and the live broadcast watching experience effect of a user is ensured.

Description

Burst traffic distribution method, computer device and readable storage medium
Technical Field
The present invention relates to the field of live broadcast applications, and in particular, to a method for splitting bursty traffic, a computer device, and a readable storage medium.
Background
With the rapid development of the live broadcast industry, various types of emergency situations in a live broadcast room are increasing. Because of the unpredictability of the internet, the instantaneous bursty traffic is usually handled in a current limiting, degrading manner. However, the current limiting and degradation easily make part of users unable to access the live broadcast room, and affect the experience effect of watching live broadcast by users.
Disclosure of Invention
Aiming at the problem of the existing instantaneous burst flow, a burst flow splitting method, computer equipment and readable storage medium aiming at splitting the burst flow from the viewpoint of service type so as to ensure the user experience effect are provided.
A method of diverting bursty traffic, the method comprising the steps of:
monitoring the request frequency of the acquired service request;
when the request frequency of the service request is greater than a frequency threshold, performing resource allocation on an auxiliary service group according to the service type of the service request, wherein the auxiliary service group shares and stores service resources in a sharing and storing mode;
and sending the service request to the auxiliary service group to acquire corresponding service data and outputting the service data.
Preferably, when the request frequency of the service request is greater than a frequency threshold, the step of allocating resources to the auxiliary service group according to the service type of the service request includes:
extracting a service identifier in the service request;
judging whether the request frequency of the service identifier is larger than the frequency threshold value;
when the request frequency of the service identifier is larger than the frequency threshold, the service identifier is used as a shunting identifier;
acquiring a registration address list of all service nodes in the auxiliary business service group;
and distributing resources to the service nodes corresponding to the registration addresses in the registration address list according to the service types corresponding to the distribution identifiers.
Preferably, the method further comprises:
when the request frequency of the service identifier is smaller than or equal to the frequency threshold, sending the service request to a main service group to acquire corresponding service data sent by the main service group, and outputting the service data;
the main service group stores service resources in an exclusive mode.
Preferably, the request frequency is a query rate per second.
Preferably, the step of allocating resources to the service node corresponding to the registration address in the registration address list according to the service type corresponding to the splitting identifier further includes:
acquiring the number of service types corresponding to the shunt identifier;
and according to the number of the service types and the corresponding service types, carrying out average resource allocation on the service nodes of the registered addresses in the registered address list.
Preferably, the step of sending the service request to the auxiliary service group to obtain corresponding service data and outputting the service data includes:
and acquiring service nodes corresponding to the distribution identifiers of the service requests from the registration address list, sending the service requests to the service nodes in the auxiliary service group to acquire corresponding service data, and outputting the service data.
Preferably, the service type is selected from at least one of the following: user service type, room service type, prop service type, wallet service type, and activity service type.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, which processor implements the steps of the above method when executing the computer program.
The invention also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above method.
The beneficial effects of the technical scheme are that:
in the technical scheme, from the aspect of service types, the request frequency of the acquired service requests is monitored to identify whether the service requests of each service type are in a normal range (for example, the request frequency is greater than a frequency threshold value); when the request frequency of the service request is greater than the frequency threshold, the service server (main service group) of the service type corresponding to the service request can be regarded as reaching the capacity upper limit, and the service request is required to be sent to the auxiliary service group to acquire corresponding service data, so that the access pressure of the main service group is relieved, the efficiency of handling the burst flow is further improved, and the live broadcast watching experience effect of a user is ensured.
Drawings
FIG. 1 is a schematic diagram of one embodiment of a burst traffic splitting system of the present invention;
FIG. 2 is a flow chart of an embodiment of a method for splitting bursty traffic according to the present invention;
FIG. 3 is an internal schematic diagram of a main service server;
FIG. 4 is a schematic diagram of one embodiment of an access server obtaining a list of registered addresses;
FIG. 5 is an internal schematic diagram of an auxiliary service server;
FIG. 6 is a flow chart of another embodiment of a method for diverting burst traffic according to the present invention;
FIG. 7 is a schematic flow chart of a burst traffic splitting method according to the present invention;
FIG. 8 is a block diagram of one embodiment of a burst traffic splitting system according to the present invention;
FIG. 9 is a block diagram of the interior of the dispensing unit according to the present invention;
FIG. 10 is a hardware architecture diagram of one embodiment of a computer device of the present invention;
fig. 11 is a schematic diagram illustrating an application of an embodiment of the burst traffic diversion system of the present invention.
Detailed Description
Advantages of the invention are further illustrated in the following description, taken in conjunction with the accompanying drawings and detailed description.
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The terminology used in the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first message may also be referred to as a second message, and similarly, a second message may also be referred to as a first message, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
In the description of the present invention, it should be understood that the numerical references before the steps do not identify the order in which the steps are performed, but are merely used to facilitate description of the present invention and to distinguish between each step, and thus should not be construed as limiting the present invention.
The video of the embodiment of the application may be presented in a large-sized video playing device, a game machine, a desktop computer, a smart phone, a tablet computer, an MP3 (moving picture experts group play iii) player, an MP4 (moving picture experts group play v) player, a laptop portable computer, an electronic book reader, and other clients such as display terminals.
The method for shunting the burst traffic and the method for shunting the burst traffic in the embodiment of the application can be applied to live broadcasting scenes, for example, the method can be applied to high-online services such as interactive videos of audiences and anchor/video players, playing of interactive games (for example, black mirrors or invisible daemons in the industry) and the like. The embodiment of the present application takes video application to live video as an example, but is not limited thereto.
In the embodiment of the application, an access server judges whether the request frequency of a service request is greater than a frequency threshold according to the service request sent by a client, if so, the access server allocates resources to an auxiliary service group according to the service type of the service request; and sending the service request to the auxiliary service group to acquire corresponding service data, and feeding back the service data to the client, thereby relieving the access pressure of the main service group and further improving the efficiency of handling the burst traffic. Referring to fig. 1, fig. 1 is a schematic diagram of a system architecture for diverting burst traffic according to an embodiment of the present application. As shown in fig. 1, a user a accesses a live broadcasting room to send prop service requests to an access server W through a wireless network, the access server W judges whether the request frequency of the prop service requests is greater than a frequency threshold, if not, the prop service requests are sent to corresponding service servers M in a main service group so as to obtain corresponding prop service data, and the prop service data are fed back to the user a; if yes, performing resource allocation on the auxiliary service group according to the service type of the prop service request (for example, prop service type); and sending the prop service request to a corresponding service server Q in the auxiliary service group to acquire corresponding prop service data, and feeding back the prop service data to the user A, thereby relieving the access pressure of the main service group, further improving the efficiency of handling the burst flow and ensuring the experience effect of watching live broadcast by the user. Only one access server W and one a user are given here, and the application scenario herein may also include a plurality of access servers W that are independent of each other, and a plurality of a users. The access server W may be a cloud server or a local server. The equipment of the user A is not limited to the mobile equipment in the figure, and all intelligent terminals capable of uploading videos are applicable.
The invention provides a burst flow diversion method for solving the defect of current limiting or degradation caused by instantaneous burst flow. Referring to fig. 2, which is a flow chart of a method for splitting bursty traffic according to a preferred embodiment of the present invention, it can be seen that the method for splitting bursty traffic provided in the present embodiment mainly includes the following steps:
s1, monitoring the request frequency of an acquired service request;
by way of example and not limitation, the service request may be one of a user service request, a room service request, a prop service request, a wallet service request, and an activity service request.
It should be noted that, the method for splitting burst traffic is mainly applied to the access server.
In this embodiment, the access server monitors the request frequency of the service request sent by the client.
S2, when the request frequency of the service request is larger than a frequency threshold, performing resource allocation on the auxiliary service group according to the service type of the service request;
it should be noted that, the auxiliary service group is different from the main service group, the main service group stores service resources in an exclusive manner, and the service and service cannot be affected by resource competition. The main service group may include a plurality of main service servers, each of which may deploy a plurality of physical machines (refer to fig. 3), each of which may virtualize a plurality of main service nodes through a virtual unit (Docker), each of which may register its IP (internet protocol address) address packet into a registry (register), thereby generating a registration address list, and the access server may acquire the registration address list by requesting the IP address of the main service node from the registry (refer to fig. 4).
The auxiliary service group shares and stores service resources in a shared storage mode, resources in the auxiliary service group are not limited, and an adjustable service resource pool exists, so that competition between service services can exist. The supplementary service set may include a plurality of supplementary service servers, each of which may deploy a plurality of physical machines (refer to fig. 5), each of which may virtualize a plurality of supplementary service nodes through a virtual unit (Docker), each of which may register its IP (internet protocol address) address packet into a registration center, thereby generating a registration address list, and the access server may acquire the registration address list by requesting the supplementary service node IP address from the registration center (refer to fig. 4).
By way of example and not limitation, the traffic type is selected from at least one of: user service type, room service type, prop service type, wallet service type, and activity service type.
In this embodiment, the access server determines whether the request frequency of the service request is greater than the frequency threshold (e.g., whether the request frequency is within a normal range), if not, the service server (main service group) of the service type corresponding to the service request reaches the capacity upper limit, and the service request needs to be sent to the auxiliary service group to obtain corresponding service data.
Further, step S2, when the request frequency of the service request is greater than the frequency threshold, performs resource allocation for the auxiliary service group according to the service type of the service request (as shown in fig. 6), including:
s21, extracting a service identifier in the service request;
s22, judging whether the request frequency of the service identifier is larger than the frequency threshold value; if yes, go to step S23; if not, go to step S26;
the request frequency is a Query Per Second (QPS, collectively referred to as Query Per Second).
In practical application, the current QPS of the service identifier may be obtained based on the memory count of the access server.
S23, taking the service identifier as a shunting identifier;
s24, acquiring a registration address list of all service nodes in the auxiliary service group;
in practical application, the access server may obtain, through the registry, a registration address list of service nodes in the main service group and the auxiliary service group.
S25, distributing resources to the service nodes corresponding to the registration addresses in the registration address list according to the service types corresponding to the shunt identifiers.
In the above steps, the access server analyzes the service request sent by the client, obtains the service identifier in the service request, judges whether the service identifier exceeds the frequency threshold according to the QPS of the service identifier, and when the service identifier is greater than the frequency threshold, indicates that the service type corresponding to the service request is currently in the upper limit of capacity in the main service group, and needs to send the service request to the auxiliary service group to relieve the access pressure of the main service group.
Further, step S25 performs resource allocation on the service node corresponding to the registration address in the registration address list according to the service type corresponding to the splitting identifier, and further includes:
acquiring the number of service types corresponding to the shunt identifier;
and according to the number of the service types and the corresponding service types, carrying out average resource allocation on the service nodes of the registered addresses in the registered address list.
In this step, if the service type of the current splitting identifier exceeding the frequency threshold is only one, all the service nodes of the registered addresses in the registered address list in the auxiliary service group can be configured with the resources of the service type according to the service type; if there are multiple service types of the current shunting identifier exceeding the frequency threshold, average resource allocation can be performed on the service nodes of the registered addresses in the registered address list according to the service types.
S26, sending the service request to a main service group to acquire corresponding service data sent by the main service group, and outputting the service data;
the main service group stores service resources in an exclusive mode.
In the above step, when the service identifier is smaller than or equal to the frequency threshold, it indicates that the service type corresponding to the service request is currently in a normal state in the main service group, and the access server may send the service request to a corresponding service server in the main service group, so as to obtain service data corresponding to the service request, and feed back the service data to the client.
S3, sending the service request to an auxiliary service group to acquire corresponding service data, and outputting the service data.
In this embodiment, from the viewpoint of service types, the request frequency of the acquired service requests is monitored to identify whether the service request of each service type is within a normal range (for example, the request frequency is greater than a frequency threshold); when the request frequency of the service request is greater than the frequency threshold, the service server (main service group) of the service type corresponding to the service request can be regarded as reaching the capacity upper limit, and the service request is required to be sent to the auxiliary service group to acquire corresponding service data, so that the access pressure of the main service group is relieved, the efficiency of handling the burst flow is further improved, and the live broadcast watching experience effect of a user is ensured.
Step S3, sending the service request to an auxiliary service group to obtain corresponding service data, and outputting the service data, including:
and acquiring service nodes corresponding to the distribution identifiers of the service requests from the registration address list, sending the service requests to the service nodes in the auxiliary service group to acquire corresponding service data, and outputting the service data.
In this step, the access server sends the service request to the auxiliary service group to obtain the corresponding service data, thereby relieving the access pressure of the main service group, and further improving the efficiency of handling the burst traffic, so as to ensure the experience effect of watching live broadcast by the user.
As shown in fig. 7, the principle flow of the burst flow splitting method is as follows:
A1. acquiring a service request sent by a client;
A2. identifying a service identifier corresponding to the service request;
A3. acquiring a current QPS of a service identifier based on the memory count of an access server;
A4. judging whether the QPS is larger than a frequency threshold value, if not, executing the step A5; if yes, executing the step A6;
A5. the method comprises the steps of obtaining service node information from a main service group, sending a service request to a corresponding service node, obtaining corresponding service data, and executing a step A7;
A6. acquiring service node information from an auxiliary service group, sending a service request to a corresponding service node, and acquiring corresponding service data;
A7. and feeding the acquired service data back to the client.
The adoption of the burst flow diversion method can enable the access server to switch the auxiliary service group based on the instantaneous pressure, achieves the purpose of full-automatic unattended burst flow coping, and can automatically perform service optimization under the condition that a user does not feel.
As shown in fig. 8, the present invention further provides a system 1 for diverting burst traffic, including: a monitoring unit 11, a dispensing unit 12 and a control unit 13; wherein:
a monitoring unit 11, configured to monitor a request frequency of the acquired service request;
by way of example and not limitation, the service request may be one of a user service request, a room service request, a prop service request, a wallet service request, and an activity service request.
It should be noted that, the bursty traffic diversion system 1 is mainly applied to an access server.
In this embodiment, the access server monitors the request frequency of the service request sent by the client.
A distribution unit 12, configured to perform resource distribution on an auxiliary service group according to a service type of the service request when a request frequency of the service request is greater than a frequency threshold;
it should be noted that, the auxiliary service group is different from the main service group, the main service group stores service resources in an exclusive manner, and the service and service cannot be affected by resource competition. The auxiliary service group adopts a shared storage mode to share and store service resources, and competition may exist between service services. The supplementary service set may deploy a plurality of physical machines, each of which may configure a plurality of service nodes, each of which may register its IP (internet protocol address) address packet into a registration center, thereby generating a registration address list.
By way of example and not limitation, the traffic type is selected from at least one of: user service type, room service type, prop service type, wallet service type, and activity service type.
In this embodiment, the access server determines whether the request frequency of the service request is greater than the frequency threshold (e.g., whether the request frequency is within a normal range), if not, the service server (main service group) of the service type corresponding to the service request reaches the capacity upper limit, and the service request needs to be sent to the auxiliary service group to obtain corresponding service data.
As shown in fig. 9, the dispensing unit 12 may include: a right raising module 121, a judging module 122 and a processing module 123, wherein:
a weight raising module 121, configured to extract a service identifier in the service request;
a judging module 122, configured to judge whether the request frequency of the service identifier is greater than the frequency threshold; if yes, go to step S23; if not, go to step S26;
the request frequency is a Query Per Second (QPS, collectively referred to as Query Per Second).
A processing module 123, configured to use the service identifier as a split identifier when the request frequency of the service identifier is greater than the frequency threshold; acquiring a registration address list of all service nodes in the auxiliary business service group; and distributing resources to the service nodes corresponding to the registration addresses in the registration address list according to the service types corresponding to the distribution identifiers.
In practical application, the access server may obtain, through the registry, a registration address list of service nodes in the main service group and the auxiliary service group.
In this embodiment, the access server analyzes the service request sent by the client, obtains the service identifier in the service request, determines whether the frequency threshold is exceeded according to the QPS of the service identifier, and when the service identifier is greater than or equal to the frequency threshold, indicates that the service type corresponding to the service request is currently in the upper capacity limit in the main service group, and needs to send the service request to the auxiliary service group to relieve the access pressure of the main service group.
Further, the processing module 123 performs resource allocation on the service node corresponding to the registration address in the registration address list according to the service type corresponding to the splitting identifier, and further includes:
acquiring the number of service types corresponding to the shunt identifier; and according to the number of the service types and the corresponding service types, carrying out average resource allocation on the service nodes of the registered addresses in the registered address list.
In this embodiment, if only one service type exceeds the frequency threshold currently, all service nodes of the registered addresses in the registered address list in the auxiliary service group may perform resource allocation of the service type according to the service type; if there are multiple service types of the current shunting identifier exceeding the frequency threshold, average resource allocation can be performed on the service nodes of the registered addresses in the registered address list according to the service types.
When the request frequency of the service identifier is less than or equal to the frequency threshold, the processing module 123 is further configured to send the service request to a main service group to obtain corresponding service data, and output the service data;
the main service group stores service resources in an exclusive mode.
In this embodiment, when the service identifier is smaller than or equal to the frequency threshold, it indicates that the service type corresponding to the service request is currently in a normal state in the main service group, and the access server may send the service request to a corresponding service server in the main service group, so as to obtain service data corresponding to the service request, and feed back the service data to the client.
And the control unit 13 is configured to send the service request to an auxiliary service group to obtain corresponding service data, and output the service data.
Further, the control unit 13 is configured to obtain a service node corresponding to the splitting identifier of the service request from the registration address list, send the service request to a service node in the auxiliary service group, so as to obtain corresponding service data, and output the service data.
In this embodiment, from the viewpoint of service types, the request frequency of the acquired service requests is monitored to identify whether the service request of each service type is within a normal range (for example, the request frequency is greater than a frequency threshold); when the request frequency of the service request is greater than the frequency threshold, the service server (main service group) of the service type corresponding to the service request can be regarded as reaching the capacity upper limit, and the service request is required to be sent to the auxiliary service group to acquire corresponding service data, so that the access pressure of the main service group is relieved, the efficiency of handling the burst flow is further improved, and the live broadcast watching experience effect of a user is ensured.
As shown in fig. 10, a computer device 2, the computer device 2 comprising:
a memory 21 for storing executable program code; and
a processor 22 for calling the executable program code in the memory 21, the execution steps comprising the above-mentioned method for shunting the burst traffic.
One processor 22 is illustrated in fig. 10.
The memory 21 is used as a non-volatile computer readable storage medium, and may be used to store a non-volatile software program, a non-volatile computer executable program, and modules, such as program instructions/modules (e.g., the monitoring unit 11, the distribution unit 12, and the control unit 13 shown in fig. 8, and the weighting module 121, the judgment module 122, and the processing module 123 shown in fig. 9) corresponding to the burst traffic splitting method in the embodiment of the present application. The processor 22 executes various functional applications of the computer device 2 and data processing by running non-volatile software programs, instructions and modules stored in the memory 21, i.e. implements the method of splitting bursty traffic of the method embodiments described above.
The memory 21 may include a storage program area and a storage data area, wherein the storage program area may store an application program required for operating the system and the at least one function; the storage data area may store playback information of the user at the computer device 2. In addition, memory 21 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 21 optionally includes memory 21 remotely located with respect to the processor 22, the remote memory 21 being connectable to the bursty traffic diversion system 1 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 21, and when executed by the one or more processors 22, perform the burst traffic splitting method in any of the above-described method embodiments, for example, perform the method steps S1 to S3 in fig. 2 and the method steps S21 to S26 in fig. 6 described above, to implement the functions of the monitoring unit 11, the allocation unit 12, and the control unit 13 shown in fig. 8, and the weight raising module 121, the judgment module 122, and the processing module 123 shown in fig. 9.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment may be found in the methods provided in the embodiments of the present application.
The computer device 2 of the embodiments of the present application exists in a variety of forms including, but not limited to:
(1) A mobile communication device: such devices are characterized by mobile communication capabilities and are primarily aimed at providing voice, data communications. Such terminals include: smart phones (e.g., iPhone), multimedia phones, functional phones, and low-end phones, etc.
(2) Ultra mobile personal computer device: such devices are in the category of personal computers, having computing and processing functions, and generally also having mobile internet access characteristics. Such terminals include: PDA, MID, and UMPC devices, etc., such as iPad.
(3) Portable entertainment device: such devices may display and play multimedia content. The device comprises: audio, video players (e.g., iPod), palm game consoles, electronic books, and smart toys and portable car navigation devices.
(4) And (3) a server: the configuration of the server includes a processor, a hard disk, a memory, a system bus, and the like, and the server is similar to a general computer architecture, but is required to provide highly reliable services, and thus has high requirements in terms of processing capacity, stability, reliability, security, scalability, manageability, and the like.
(5) Other electronic devices with data interaction function.
The embodiments of the present application provide a non-volatile computer readable storage medium storing computer executable instructions that are executed by one or more processors, for example, one processor 22 in fig. 10, so that the one or more processors 22 may perform the method for splitting burst traffic in any of the method embodiments described above, for example, perform the method steps S1 to S3 in fig. 2 and the method steps S21 to S26 in fig. 6 described above, to implement the functions of the monitoring unit 11, the allocation unit 12, and the control unit 13 shown in fig. 8, and the weighting module 121, the judgment module 122, and the processing module 123 shown in fig. 9.
The apparatus embodiments described above are merely illustrative, wherein elements illustrated as separate elements may or may not be physically separate, and elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over at least two network elements. Some or all of the modules may be selected according to actual needs to achieve the purposes of the embodiments of the present application. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus a general purpose hardware platform, or may be implemented by hardware. Those skilled in the art will appreciate that all or part of the processes implementing the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and where the program may include processes implementing the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a random access memory (RandomAccessMemory, RAM), or the like.
Embodiment 1,
Referring to fig. 1, a user a sends a prop service request to an access server W through a wireless network, the access server W monitors the request frequency of the acquired prop service request, and identifies whether the prop service request is greater than a frequency threshold; if the prop service request is greater than the frequency threshold, the service server Q (main service group) of the service type corresponding to the service request may be regarded as reaching the capacity upper limit, the service request needs to be sent to the service server M in the auxiliary service group, the service server M obtains the service data corresponding to the service request, and sends the service data to the access server W, and the access server W feeds back the received service data to the user a. Thereby relieving the access pressure of the main business service group, further improving the efficiency of handling the burst traffic and ensuring the experience effect of watching live broadcast by the user.
Embodiment II,
Referring to fig. 11, a B user sends a wallet service request to an access server W through a wireless network, the access server W monitors the request frequency of the acquired wallet service request, and identifies whether the prop service request is greater than a frequency threshold; if the prop service request is smaller than the frequency threshold, the service server Q (main service group) of the service type corresponding to the service request is in a normal state, and the capacity upper limit is not reached, the service request can be sent to the service server Q in the main service group, the service server Q obtains the service data corresponding to the service request, sends the service data to the access server W, and the access server W feeds back the received service data to the user a.
The foregoing description is only illustrative of the preferred embodiments of the present invention and is not to be construed as limiting the scope of the invention, and it will be appreciated by those skilled in the art that equivalent substitutions and obvious variations may be made using the description and illustrations of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. A method for diverting bursty traffic, the method comprising the steps of:
monitoring the request frequency of the acquired service request;
when the request frequency of the service request is greater than a frequency threshold, performing resource allocation on an auxiliary service group according to the service type of the service request, wherein the auxiliary service group shares and stores service resources in a sharing and storing mode; the resources in the auxiliary service group are not limited, and an adjustable service resource pool exists, so that competition exists between service services;
the service request is sent to the auxiliary service group to acquire corresponding service data and output the service data;
wherein the method further comprises:
when the request frequency of the service request is smaller than or equal to the frequency threshold, the service request is sent to a main service group so as to acquire corresponding service data sent by the main service group and output the service data; the main service group stores service resources in an exclusive mode, and the service and service are not affected by resource competition.
2. The method for offloading bursty traffic as recited in claim 1, wherein the step of allocating resources to the auxiliary service group according to the service type of the service request when the request frequency of the service request is greater than a frequency threshold comprises:
extracting a service identifier in the service request;
judging whether the request frequency of the service identifier is larger than the frequency threshold value;
when the request frequency of the service identifier is larger than the frequency threshold, the service identifier is used as a shunting identifier;
acquiring a registration address list of all service nodes in the auxiliary business service group;
and distributing resources to the service nodes corresponding to the registration addresses in the registration address list according to the service types corresponding to the distribution identifiers.
3. The method of splitting bursty traffic as recited in claim 2, wherein the request frequency is a query rate per second.
4. The method for offloading bursty traffic as recited in claim 2, wherein the step of allocating resources to the service node corresponding to the registered address in the registered address list according to the service type corresponding to the offload identifier further comprises:
acquiring the number of service types corresponding to the shunt identifier;
and according to the number of the service types and the corresponding service types, carrying out average resource allocation on the service nodes of the registered addresses in the registered address list.
5. The burst traffic offloading method of claim 2, wherein the step of sending the service request to the auxiliary service group to obtain corresponding service data and outputting the service data comprises:
and acquiring service nodes corresponding to the distribution identifiers of the service requests from the registration address list, sending the service requests to the service nodes in the auxiliary service group to acquire corresponding service data, and outputting the service data.
6. The method for offloading bursty traffic as recited in claim 1, 2, or 4, wherein the traffic type is selected from at least one of: user service type, room service type, prop service type, wallet service type, and activity service type.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 6 when the computer program is executed.
8. A computer-readable storage medium having stored thereon a computer program, characterized by: which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201910703665.1A 2019-07-31 2019-07-31 Burst traffic distribution method, computer device and readable storage medium Active CN112311689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910703665.1A CN112311689B (en) 2019-07-31 2019-07-31 Burst traffic distribution method, computer device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910703665.1A CN112311689B (en) 2019-07-31 2019-07-31 Burst traffic distribution method, computer device and readable storage medium

Publications (2)

Publication Number Publication Date
CN112311689A CN112311689A (en) 2021-02-02
CN112311689B true CN112311689B (en) 2024-03-05

Family

ID=74486254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910703665.1A Active CN112311689B (en) 2019-07-31 2019-07-31 Burst traffic distribution method, computer device and readable storage medium

Country Status (1)

Country Link
CN (1) CN112311689B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115633197A (en) * 2022-09-15 2023-01-20 海南乾唐视联信息技术有限公司 Service data distribution system, method, device, electronic equipment and medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645928A (en) * 2009-08-26 2010-02-10 成都市华为赛门铁克科技有限公司 Content resource caching method, device and system
WO2012003890A1 (en) * 2010-07-09 2012-01-12 Telefonaktiebolaget L M Ericsson (Publ) Switching node with load balancing of bursts of packets
CN102841931A (en) * 2012-08-03 2012-12-26 中兴通讯股份有限公司 Storage method and storage device of distributive-type file system
CN105516347A (en) * 2015-12-31 2016-04-20 浙江大华系统工程有限公司 Method and device for load balance allocation of streaming media server
WO2016188339A1 (en) * 2015-10-29 2016-12-01 中兴通讯股份有限公司 Load balancing method in wireless local area network, and wireless access point
CN106411984A (en) * 2015-08-03 2017-02-15 天脉聚源(北京)科技有限公司 Network load balancing method based on WeChat platform and system thereof
CN106411971A (en) * 2015-07-29 2017-02-15 腾讯科技(深圳)有限公司 Load regulation method and device
CN106656959A (en) * 2016-09-28 2017-05-10 腾讯科技(深圳)有限公司 Access request regulation and control method and device
CN106713388A (en) * 2015-11-13 2017-05-24 阿里巴巴集团控股有限公司 Emergent business processing method and device
CN109348264A (en) * 2018-11-14 2019-02-15 泰康保险集团股份有限公司 Video resource sharing method, device, storage medium and electronic equipment
CN109815716A (en) * 2019-01-08 2019-05-28 平安科技(深圳)有限公司 Access request processing method, device, storage medium and server
CN110019072A (en) * 2017-11-21 2019-07-16 北京京东尚科信息技术有限公司 AB experimental method and system based on real time data

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7643504B2 (en) * 2006-11-29 2010-01-05 Applied Micro Circuits Corporation Credit based flow control in an asymmetric channel environment
US8077607B2 (en) * 2007-03-14 2011-12-13 Cisco Technology, Inc. Dynamic response to traffic bursts in a computer network
US20140334338A1 (en) * 2013-05-13 2014-11-13 Electronics And Telecommunications Research Institute Method of generating peer service group and accessing link resources in peer service group

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645928A (en) * 2009-08-26 2010-02-10 成都市华为赛门铁克科技有限公司 Content resource caching method, device and system
WO2012003890A1 (en) * 2010-07-09 2012-01-12 Telefonaktiebolaget L M Ericsson (Publ) Switching node with load balancing of bursts of packets
CN102841931A (en) * 2012-08-03 2012-12-26 中兴通讯股份有限公司 Storage method and storage device of distributive-type file system
CN106411971A (en) * 2015-07-29 2017-02-15 腾讯科技(深圳)有限公司 Load regulation method and device
CN106411984A (en) * 2015-08-03 2017-02-15 天脉聚源(北京)科技有限公司 Network load balancing method based on WeChat platform and system thereof
WO2016188339A1 (en) * 2015-10-29 2016-12-01 中兴通讯股份有限公司 Load balancing method in wireless local area network, and wireless access point
CN106713388A (en) * 2015-11-13 2017-05-24 阿里巴巴集团控股有限公司 Emergent business processing method and device
CN105516347A (en) * 2015-12-31 2016-04-20 浙江大华系统工程有限公司 Method and device for load balance allocation of streaming media server
CN106656959A (en) * 2016-09-28 2017-05-10 腾讯科技(深圳)有限公司 Access request regulation and control method and device
CN110019072A (en) * 2017-11-21 2019-07-16 北京京东尚科信息技术有限公司 AB experimental method and system based on real time data
CN109348264A (en) * 2018-11-14 2019-02-15 泰康保险集团股份有限公司 Video resource sharing method, device, storage medium and electronic equipment
CN109815716A (en) * 2019-01-08 2019-05-28 平安科技(深圳)有限公司 Access request processing method, device, storage medium and server

Also Published As

Publication number Publication date
CN112311689A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN111084983B (en) Cloud game service method, device, equipment and storage medium
CN112311684B (en) Burst traffic processing method, computer device and readable storage medium
CN111432158B (en) Load balancing method and device for media nodes, storage medium and electronic device
CN108847976B (en) Distribution network control method, mobile terminal, device and computer readable storage medium
CN108540450B (en) Data transmitting and receiving method and device
US20170163761A1 (en) Method, device and system for obtaining live video
CN112312145B (en) Access server, burst traffic caching method, system, computer device and readable storage medium
CN111541555A (en) Group chat optimization method and related product
WO2023000939A1 (en) Electronic sports data processing method and apparatus, and computer device and storage medium
CN112311689B (en) Burst traffic distribution method, computer device and readable storage medium
CN108259845A (en) A kind of safety monitoring big data processing method and system based on cloud computing
CN103095836B (en) The method of adjustment of internet, applications service quality and device, system
CN107786557B (en) Team game acceleration method and related product
CN110248211B (en) Live broadcast room message current limiting method and device, electronic equipment and storage medium
CN103581197A (en) Method and system for processing team data among servers
CN111249747B (en) Information processing method and device in game
CN102025730B (en) Data transmission device based on HTTP protocol and implementation method thereof
CN110708293A (en) Method and device for distributing multimedia service
US10506021B2 (en) Method and device for providing communication connection for a plurality of candidate applications in a mobile device
CN112291568B (en) Data processing method, device, medium, network access equipment and electronic equipment
CN112333690B (en) Data transmission method, device, storage medium, terminal and network access point equipment
CN107786964B (en) Team game communication method, related product and storage medium
CN112494931A (en) Cloud game control method, system, server and computer-readable storage medium
CN111835770A (en) Data processing method, device, server and storage medium
CN111479137A (en) Method and device for providing line address, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant