[go: up one dir, main page]

WO2018076861A1 - Data transmission control method, apparatus, storage medium, server and system - Google Patents

Data transmission control method, apparatus, storage medium, server and system Download PDF

Info

Publication number
WO2018076861A1
WO2018076861A1 PCT/CN2017/095529 CN2017095529W WO2018076861A1 WO 2018076861 A1 WO2018076861 A1 WO 2018076861A1 CN 2017095529 W CN2017095529 W CN 2017095529W WO 2018076861 A1 WO2018076861 A1 WO 2018076861A1
Authority
WO
WIPO (PCT)
Prior art keywords
data transmission
preset
server
terminal
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.)
Ceased
Application number
PCT/CN2017/095529
Other languages
French (fr)
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of WO2018076861A1 publication Critical patent/WO2018076861A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing

Definitions

  • the present invention belongs to the field of communications technologies, and in particular, to a data transmission control method, apparatus, storage medium, server, and system.
  • the terminal can upload the data generated during the use to the server in the cloud, and download the data stored in the cloud server to the terminal device when necessary.
  • Embodiments of the present invention provide a data transmission control method, apparatus, storage medium, server, and system, which can reduce the load of a server.
  • An embodiment of the present invention provides a data transmission control method, including:
  • the first information is broadcast to the corresponding terminal, where the first information is used to indicate that the corresponding terminal detects that the data is sent to the server.
  • the operation of transmitting the data transmission request is suspended.
  • the embodiment of the invention further provides a data transmission control device, including:
  • a receiving unit configured to receive a data transmission request from the terminal
  • a determining unit configured to determine, according to the data transmission request, a quantity of data transmission requests that are not currently processed by the server;
  • An acquiring unit configured to acquire a preset first quantity threshold
  • a broadcast unit configured to: if the number of the unprocessed data transmission requests is greater than a preset first number threshold, broadcast the first information to the corresponding terminal, where the first information is used to indicate that the corresponding terminal is detecting The operation of transmitting the data transmission request is suspended when a data transmission request is sent to the server.
  • the embodiment of the present invention provides a storage medium on which a computer program is stored.
  • the computer program is executed on a computer, the computer is caused to perform a data transmission control method according to an embodiment of the present invention.
  • An embodiment of the present invention provides a server, including a memory, and a processor, by using a computer program stored in the memory, to perform the following steps:
  • the first information is broadcast to the corresponding terminal, where the first information is used to indicate that the corresponding terminal detects that the data is sent to the server.
  • the operation of transmitting the data transmission request is suspended.
  • the embodiment of the invention further provides a control system for data transmission, the system comprising a server and a terminal, the server comprising the above-mentioned data transmission control device.
  • Embodiments of the present invention provide a data transmission control method, apparatus, storage medium, server, and system, which can reduce the load of a server.
  • FIG. 1 is a schematic flowchart diagram of a method for controlling data transmission according to an embodiment of the present invention.
  • FIG. 2 is another schematic flowchart of a method for controlling data transmission according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a data transmission control apparatus according to an embodiment of the present invention.
  • FIG. 4 is another schematic structural diagram of a data transmission control apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a scenario of a data transmission control system according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 7 is another schematic structural diagram of a server according to an embodiment of the present invention.
  • the pressure on the server from the terminal is increasing. For example, when the terminal detects that the data changes, it will initiate a synchronization request to the server, requesting that the changed data be synchronously uploaded to the server. Therefore, when the number of terminals reaches a certain scale, the server receives many data uploading or downloading requests from the terminal, which causes the server to be overloaded and even exceeds the load capacity of the server.
  • An embodiment of the present invention provides a data transmission control method, including:
  • the first information is broadcast to the corresponding terminal, where the first information is used to indicate that the corresponding terminal detects that the data is sent to the server.
  • the operation of transmitting the data transmission request is suspended.
  • the method may further include: if detecting that the number of unprocessed data transmission requests is less than or equal to a preset second number threshold, then to the corresponding terminal Sending a second information, where the second information is used to indicate that the corresponding terminal restarts the suspended data transmission request, and the preset second quantity threshold is less than a preset first quantity threshold.
  • the method may further include: if receiving an instruction for instructing to modify the preset first quantity threshold and the preset second quantity threshold, The instruction modifies the preset first quantity threshold and the preset second quantity threshold.
  • the method further includes: acquiring a data transmission frequency of the corresponding terminal; and transmitting the third information to the first terminal whose data transmission frequency is greater than the preset transmission frequency.
  • the third information carries a first waiting duration, and is used to instruct the first terminal to restart the suspended data transmission request after the first waiting duration ends.
  • the method further includes: sending, to the second terminal with a data transmission frequency less than or equal to the preset transmission frequency, fourth information, where the fourth information carries And a second waiting duration, and is used to instruct the second terminal to restart the suspended data transmission request after the second waiting time ends.
  • the step of determining, according to the data transmission request, the number of data transmission requests that are not currently processed by the server may include: the number of data transmission requests received from the terminal within the preset duration exceeds a pre- When the number is set, the number of data transfer requests that the server is currently unprocessed is determined.
  • the data transmission control method may further include the following steps: if it is detected that the number of unprocessed data transmission requests is less than a preset first quantity threshold and greater than a preset second quantity threshold, the response is not processed. Data transfer request.
  • FIG. 1 is a schematic flowchart of a method for controlling data transmission according to an embodiment of the present invention.
  • the process may include:
  • step S101 a data transmission request is received from the terminal.
  • step S102 based on the data transmission request, the number of data transmission requests that are not currently processed by the server is determined.
  • execution subject of the embodiment of the present invention may be a server or the like.
  • the server when the server receives the data transmission request sent by the terminal, the server may be triggered to acquire the number of current unprocessed data transmission requests.
  • step S103 a preset first number threshold is acquired.
  • the server may obtain a preset first threshold thereof, that is, preset a first number threshold. The server then determines if the number of data transmission requests it has not processed exceeds a preset first number threshold.
  • the server determines that the number of data transmission requests that have not been processed does not exceed the preset first number threshold, it can be considered that the number of data transmission requests that the server has not processed is small, that is, the load of the server is small at this time. In this case, the server can continue to perform its corresponding operations.
  • step S104 if it is determined that the number of unprocessed data transmission requests is greater than a preset first number threshold, the first information is broadcast to the corresponding terminal, where the first information is used to indicate that the corresponding terminal detects that the terminal is transmitting to the server.
  • the operation of transmitting the data transfer request is suspended.
  • the server may consider that the number of data transmission requests that have not been processed by the server is large, that is, the load of the server is large at this time.
  • the server may be triggered to send a message to its corresponding terminal, that is, the first information, which may be used to notify the terminal that the current server has a large load, and instruct the terminals to detect sending to the server.
  • the first information may be used to indicate that the terminal corresponding to the server does not send a data transmission request to the server before further receiving the information sent by the server that allows the terminals to send a data transmission request to the server.
  • the server when the server determines that the number of data transmission requests from the terminal that are not currently processed by the server is large, the server broadcasts information to the corresponding terminal to instruct the terminals to delay sending data to the server. The request is transmitted, so that the server can be prevented from overloading due to excessive backlog of data transfer requests. That is, the embodiment of the present invention can effectively reduce the load of the server.
  • FIG. 2 is another schematic flowchart of a method for controlling data transmission according to an embodiment of the present invention, where the process may include:
  • step S201 the server receives a data transmission request from the terminal.
  • step S202 based on the data transmission request, the server determines the number of data transmission requests that are currently unprocessed.
  • steps S201 and S202 may include:
  • the server may determine the number of data transmission requests from the terminal that it has not currently processed according to the data transmission request it receives.
  • the server when the server receives one or more data transmission requests sent by the terminal, the server may determine, according to the data transmission request received by the server, the data transmission request from the terminal that is not currently processed.
  • the quantity may include: when the server receives a predetermined number of data transmission requests within a preset time period, such as half a minute, the server may determine, according to the data transmission request received by the server, that the terminal is not currently processed. The number of data transfer requests.
  • the server determines, according to the data transmission request, the number of currently unprocessed data transmission requests according to the data transmission request, which may include:
  • the server determines the number of currently unprocessed data transmission requests.
  • step S203 the server acquires a preset first number threshold.
  • step S204 the server determines whether the number of unprocessed data transmission requests is greater than a preset first number threshold.
  • steps S203 and S204 may include:
  • the server may be triggered to obtain a preset first quantity threshold, and determine whether the number of data transmission requests that have not been processed by the server is greater than the preset first quantity. Threshold.
  • the preset first quantity threshold is a value used to determine whether the load of the server is too large. That is to say, when the number of data transmission requests that have not been processed by the server is greater than the preset first number threshold, the load of the server can be considered to be large. When the number of data transmission requests that have not been processed by the server is less than or equal to the preset first number threshold, the load of the server may be considered to be small.
  • the server generally responds to the data transmission request sent by the terminal according to the order of receiving time. For example, the server first receives the data transmission request sent by the terminal A, and then receives the data transmission request sent by the terminal B, then the server first responds to the data transmission request of the terminal A. For data transmission requests that are received later and have not yet been processed, the server will add them to the waiting queue. Due to the limited processing capacity of the server, the above waiting queue has a maximum capacity. If the maximum capacity is exceeded, the server is likely to be paralyzed due to excessive load and cannot respond to data transmission requests. For example, the number of unprocessed data transfer requests (maximum backlog) allowed by the server is 10,000. If the server has more than 10,000 unprocessed data transfer requests over a period of time, the server is likely to The load is too large and it is paralyzed.
  • the preset first number threshold may be a value slightly smaller than the maximum backlog of the server. For example, if the maximum backlog of the server is 10000, the preset first number threshold may be set to 9,500 or the like.
  • step S204 determines in step S204 that the number of data transmission requests that have not been processed is not greater than the preset first number threshold, it may be considered that the load of the server is small at this time. In this case, the server can continue to perform its current related operation, step S207.
  • step S205 if it is determined that the number of unprocessed data transmission requests is greater than a preset first number threshold, the server broadcasts first information to the corresponding terminal, where the first information is used to indicate that the corresponding terminal detects that the terminal is transmitting to the server.
  • the operation of transmitting the data transfer request is suspended.
  • the server may be considered that the load of the server is large at this time.
  • the server may be triggered to broadcast a message to the corresponding terminal, that is, the first information, where the first information may be used to notify the corresponding terminal that the current server has a large load, and indicate that the terminals are detecting the direction.
  • the server sends a data transfer request, it suspends its operation of sending a data transfer request.
  • the terminal A can detect in real time whether it is performing an operation of transmitting a data transmission request to the server. If the terminal A detects that it is performing an operation of transmitting a data transmission request to the server, the terminal A suspends the operation of transmitting the data transmission request to the server.
  • step S206 if it is detected that the number of unprocessed data transmission requests is less than or equal to a preset second number threshold, the server sends second information to the corresponding terminal, where the second information is used to indicate that the corresponding terminal is restarted. The operation of transmitting the data transmission request is suspended, and the preset second quantity threshold is less than the preset first quantity threshold.
  • the server may continue to respond to its unprocessed data transmission request.
  • the server can detect whether the number of data transmission requests that it has not processed is less than or equal to a preset second number threshold.
  • the preset second quantity threshold is smaller than the preset first quantity threshold.
  • the server may continue to respond to its unprocessed data transmission request.
  • the embodiment may further include the following steps:
  • the server If it is detected that the number of unprocessed data transmission requests is less than a preset first number threshold and greater than a preset second number threshold, the server responds to the unprocessed data transmission request.
  • the server may be triggered to re-broadcast a message, that is, the second information, to the corresponding terminal.
  • the operation of transmitting the data transmission request that was suspended before being notified can be restarted.
  • the server when the server determines that the number of unprocessed data transmission requests is greater than a preset first number threshold, that is, when the server load is large, the server broadcasts information to the corresponding terminal, and instructs the terminals to delay. A request to transmit data is sent to the server. In this way, it is possible to prevent the server from being overloaded due to excessive backlog of data transmission requests. Therefore, the embodiment of the present invention can effectively reduce the load of the server.
  • the server may broadcast information to the corresponding terminal to notify the terminals that the data transmission request may be sent to the server.
  • the embodiment of the present invention two quantity thresholds are set, that is, the first quantity threshold is preset and the second quantity threshold is preset.
  • the preset second quantity threshold is smaller than the preset first quantity threshold, so the embodiment of the present invention can make the server
  • the load is at a lower level (ie, the number of unprocessed data transmission requests is less than or equal to the preset second number threshold)
  • information for notifying the terminal that the data transmission request can be transmitted is broadcast to the corresponding terminal. Therefore, in the embodiment of the present invention, the embodiment broadcasts the information for notifying the terminal that the data transmission request can be sent to the corresponding terminal, when the number of unprocessed data transmission requests is less than or equal to the preset first number threshold.
  • the method adopted can prevent the server from re-entering the data transmission request sent by the terminal when its load is just reduced, and the load of the server becomes larger again.
  • the server may further perform the following steps:
  • the preset first quantity threshold and the preset second quantity threshold are modified according to the instruction.
  • the administrator has expanded or upgraded the server to improve the processing power of the server.
  • the administrator can adjust the preset first quantity threshold and the preset second quantity threshold correspondingly according to the actual expansion or upgrade situation.
  • the server can be more flexibly controlled to transmit data between the terminal and the corresponding terminal.
  • step S205 after performing step S205, the embodiment of the present invention may not perform step S206, but perform the following steps:
  • the data transmission frequency is greater than the preset transmission frequency
  • the third information carries the first waiting duration, and is used to indicate that the first terminal restarts the suspended transmission data transmission request after the first waiting duration ends. Operation.
  • the server may also acquire the corresponding terminal first.
  • the data transmission frequency as well as the preset transmission frequency.
  • the server may determine, as the first terminal, the terminal whose data transmission frequency in the corresponding terminal is greater than the preset transmission frequency.
  • the server sends a message, that is, the third information, to the first terminal.
  • the third information carries a first waiting time. The third information is used to indicate that the first terminal may restart the previously suspended operation of sending a data transmission request to the server after the first waiting time period ends.
  • the server may determine the number of data transmissions of each terminal in the preset time range, such as the past one hour, with the data transmission frequency of each terminal. For example, if the server counts that the terminal has performed data transmission with the server three times in the past hour, the data transmission frequency of the terminal A can be determined to be three times/hour.
  • the terminal A is determined by the server as the first terminal. It can be understood that the first terminal determined by the server may be multiple terminals. Then, the server sends a third message to the terminal A, where the third message carries a first waiting time, such as 1 hour.
  • the third information can be used to indicate that the A terminal can suspend the operation of sending a data transmission request to the server before the restart can be performed after 1 hour.
  • the method may further include the following steps:
  • the server may determine, as the second terminal, the terminal whose data transmission frequency in the corresponding terminal is less than or equal to the preset transmission frequency. Then, the server sends a message, that is, the fourth information, to the second terminal.
  • the fourth information carries a second waiting time. The fourth information is used to indicate that the second terminal may restart the previously suspended operation of sending a data transmission request to the server after the second waiting duration ends.
  • the server determines the B terminal as the second terminal and sends the fourth information to the B terminal.
  • the fourth information carries a second waiting time, such as 2 hours.
  • the fourth information is used to instruct the B terminal to restart the previously sent data transmission request to the server after 2 hours.
  • the second waiting duration may be greater than the first waiting time. That is to say, for a terminal with relatively frequent data transmission, it is possible to restart the suspended operation of transmitting a data transmission request to the server after waiting for a short time. For a terminal whose data transmission is infrequent, it can be restarted after waiting for a long time to restart the transmission of a data transmission request to the server.
  • the second waiting duration is greater than the first waiting duration, but in other embodiments, the second waiting duration may be less than the first waiting duration, or the second waiting duration is less than the first waiting duration.
  • the size relationship is limited, and so on, and is not specifically limited herein.
  • the server can continue to respond to the data transmission request that has not been processed, thereby reducing the number of data transmission requests that the server does not process. That is, the load on the server can be reduced.
  • data transmission between the server and the terminal can be controlled more flexibly.
  • the server may further subdivide the terminal into multiple according to its processing capability and the frequency of data transmission by the corresponding terminal. Categories and set different wait times for each category. For example, two different transmission frequencies, that is, a first transmission frequency and a second transmission frequency, are set in advance, and the first transmission frequency is greater than the second transmission frequency. Then, the terminal corresponding to the server can be divided into three types: the data transmission frequency is greater than or equal to the first transmission frequency, the data transmission frequency is less than the first transmission frequency and greater than the second transmission frequency, and the data transmission frequency is less than or equal to the second transmission frequency. terminal.
  • An embodiment of the present invention provides a data transmission control apparatus, including:
  • a receiving unit configured to receive a data transmission request from the terminal
  • a determining unit configured to determine, according to the data transmission request, a quantity of data transmission requests that are not currently processed by the server;
  • An acquiring unit configured to acquire a preset first quantity threshold
  • a broadcast unit configured to: if the number of the unprocessed data transmission requests is greater than a preset first number threshold, broadcast the first information to the corresponding terminal, where the first information is used to indicate that the corresponding terminal is detecting The operation of transmitting the data transmission request is suspended when a data transmission request is sent to the server.
  • control device for data transmission may further include: a sending unit, configured to send, to the corresponding terminal, if the number of unprocessed data transmission requests is less than or equal to a preset second number threshold The second information is used to indicate that the corresponding terminal restarts the suspended data transmission request, and the preset second quantity threshold is smaller than the preset first quantity threshold.
  • control device for data transmission may further include: a first restarting unit, configured to: acquire a data transmission frequency of the corresponding terminal; and send a third to the first terminal whose data transmission frequency is greater than the preset transmission frequency. And the third information carries the first waiting duration, and is used to instruct the first terminal to restart the suspended data transmission request after the first waiting duration ends.
  • a first restarting unit configured to: acquire a data transmission frequency of the corresponding terminal; and send a third to the first terminal whose data transmission frequency is greater than the preset transmission frequency.
  • the third information carries the first waiting duration, and is used to instruct the first terminal to restart the suspended data transmission request after the first waiting duration ends.
  • control device for data transmission may further include: a second restarting unit, configured to send fourth information to the second terminal whose data transmission frequency is less than or equal to the preset transmission frequency, where the fourth information carries And a second waiting duration, and is used to instruct the second terminal to restart the suspended data transmission request after the second waiting time ends.
  • a second restarting unit configured to send fourth information to the second terminal whose data transmission frequency is less than or equal to the preset transmission frequency, where the fourth information carries And a second waiting duration, and is used to instruct the second terminal to restart the suspended data transmission request after the second waiting time ends.
  • control device for data transmission may further include: a modifying unit, configured to: if receiving an instruction for instructing to modify the preset first quantity threshold and the preset second quantity threshold, The instruction modifies the preset first quantity threshold and the preset second quantity threshold.
  • the determining unit may be configured to: when the number of data transmission requests received by the receiving unit from the terminal exceeds a preset number within a preset duration, the determining unit determines that the server currently does not process the data transmission The number of requests.
  • the sending unit may be configured to respond to an unprocessed data transmission request if the number of unprocessed data transmission requests is less than a preset first number threshold and greater than a preset second number threshold.
  • FIG. 3 is a schematic structural diagram of a data transmission control apparatus according to an embodiment of the present invention.
  • the control device 300 for data transmission may include a receiving unit 301, a determining unit 302, an obtaining unit 303, and a broadcasting unit 304.
  • the receiving unit 301 is configured to receive a data transmission request from the terminal.
  • the determining unit 302 is configured to determine, according to the data transmission request, the number of data transmission requests that are not currently processed by the server.
  • the determining unit 302 of the triggering server may determine, according to the received data transmission request, the data transmission from the terminal that the server has not currently processed. The number of requests.
  • the obtaining unit 303 is configured to acquire a preset first quantity threshold.
  • the acquiring unit 303 may be triggered to acquire a preset first quantity threshold.
  • the preset first quantity threshold is a value used to determine whether the load of the server is too large. That is to say, when the number of data transmission requests that have not been processed by the server is greater than the preset first number threshold, the load of the server can be considered to be large. When the number of data transmission requests that have not been processed by the server is less than or equal to the preset first number threshold, the load of the server may be considered to be small.
  • the server may determine whether the current unprocessed data transmission request quantity is greater than a preset first quantity threshold.
  • the server may be considered to have a small load, and the server may continue to perform related operations.
  • the broadcast unit 304 is configured to: if it is determined that the number of the unprocessed data transmission requests is greater than a preset first number threshold, broadcast the first information to the corresponding terminal, where the first information is used to indicate that the corresponding terminal is When it is detected that a data transmission request is sent to the server, the operation of transmitting the data transmission request is suspended.
  • the broadcast unit 304 that can trigger the server broadcasts a piece of information, that is, the first information, to the corresponding terminal.
  • the first information may be used to notify the corresponding terminals that the current server has a large load, and instruct the terminals to suspend the operation of transmitting the data transmission request when detecting the sending of the data transmission request to the server.
  • the terminal A can detect in real time whether it is performing an operation of transmitting a data transmission request to the server. If the terminal A detects that it is performing an operation of transmitting a data transmission request to the server, the terminal A may suspend the operation of transmitting the data transmission request to the server.
  • the broadcast unit of the server broadcasts information to the corresponding terminal. And instruct these terminals to delay sending requests for data transmission to the server. In this way, it is possible to prevent the server from being overloaded due to excessive backlog of data transmission requests. Therefore, the embodiment of the present invention can effectively reduce the load of the server.
  • FIG. 4 is another schematic structural diagram of a data transmission control apparatus according to an embodiment of the present invention.
  • the data transmission control device 300 may further include: a transmitting unit 305, a first restarting unit 306, a second restarting unit 307, and a modifying unit 308.
  • the sending unit 305 is configured to: if it is detected that the number of the unprocessed data transmission requests is less than or equal to the preset second quantity threshold, send the second information to the corresponding terminal, where the second information is used to indicate the corresponding terminal Restarting the suspended transmission data transmission request, the preset second quantity threshold is less than the preset first quantity threshold.
  • the server may continue to respond to its unprocessed data transfer request.
  • the server can also monitor the number of data transmission requests that have not been processed, and detect whether the number of data transmission requests that have not been processed is less than or equal to a preset second number threshold.
  • the preset second quantity threshold is smaller than the preset first quantity threshold.
  • the server may continue to respond to its unprocessed data transmission request.
  • the sending unit 305 of the server may be triggered to re-broadcast a message, ie, the second information, to the corresponding terminal.
  • the second information is used to notify the corresponding terminal that the operation of transmitting the data transmission request that was suspended before is restarted.
  • the first restarting unit 306 is configured to acquire a data transmission frequency of the corresponding terminal, and send a third information to the first terminal whose data transmission frequency is greater than the preset transmission frequency, where the third information carries the first waiting duration, and is used to indicate the location
  • the first terminal restarts the operation of transmitting the suspended data transmission request after the first waiting duration ends.
  • the first restart unit 306 may first acquire the data transmission frequency of the terminal corresponding to the server, and preset the transmission frequency. Afterwards, the server may determine, as the first terminal, the terminal whose data transmission frequency in the corresponding terminal is greater than the preset transmission frequency. Then, the server sends a message, that is, the third information, to the first terminal.
  • the third information carries a first waiting time. The third information is used to indicate that the first terminal may restart the previously suspended operation of sending a data transmission request to the server after the first waiting time period ends.
  • the server may determine the number of times that each corresponding terminal is in the preset time range, such as the data transmission time of the service in the past one hour, as the data transmission frequency of each terminal. For example, if the server counts that the terminal has performed data transmission with the server three times in the past hour, the data transmission frequency of the terminal A can be determined to be three times/hour.
  • the preset transmission frequency can be set by the server administrator, for example, it can be set to 2 times/hour.
  • the second restarting unit 307 is configured to send fourth information to the second terminal whose data transmission frequency is less than or equal to the preset transmission frequency, where the fourth information carries the second waiting duration, and is used to indicate that the second terminal is in the second After the waiting time is over, the operation of transmitting the data transmission request that is suspended is restarted.
  • the server may determine, as the second terminal, the terminal whose data transmission frequency in the corresponding terminal is less than or equal to the preset transmission frequency. Then, the second restart unit 307 of the server transmits a piece of information, that is, the fourth information, to the second terminal.
  • the fourth information carries a second waiting time. The fourth information is used to indicate that the second terminal may restart the previously suspended operation of sending a data transmission request to the server after the second waiting duration ends.
  • the server can continue to respond to the data transmission request that has not been processed, thereby reducing the number of data transmission requests that the server does not process. That is, the load on the server can be reduced.
  • data transmission between the server and the terminal can be controlled more flexibly.
  • the modifying unit 308 is configured to: if the instruction for modifying the preset first quantity threshold and the preset second quantity threshold is received, preset the first quantity threshold and the preset second quantity threshold according to the instruction to modify.
  • the server may trigger the modification unit 308 to preset the first quantity threshold and the preset according to the instruction.
  • the value of the two number threshold is modified.
  • the server can be more flexibly controlled to transmit data between the terminal and the corresponding terminal.
  • FIG. 5 is a schematic diagram of a scenario of a data transmission control system according to an embodiment of the present invention.
  • the above control system for data transmission may include one or more servers, and one or more terminals.
  • the server can integrate the control device for data transmission as described in the above embodiments.
  • the above terminal may include an input device, an output device, a processor, a memory, and the like.
  • the above input device can be a physical button.
  • the above output device can be a display screen.
  • the above processor can be a central processing unit (CPU, Central Processing Unit).
  • the above memory may be a high speed RAM memory or a non-volatile memory (non-volatile) Memory), such as disk storage.
  • the above input device, output device, processor, and memory are connected by a bus.
  • the above control system for data transmission includes a server and a plurality of terminals.
  • One of the terminals sends a request to the server for data transmission with the server to the server.
  • the server determines, according to the data transmission request, the number of data transmission requests that the server has not currently processed. Then, the server acquires a preset first quantity threshold, and determines whether the number of data transmission requests that it has not yet processed is greater than a preset first quantity threshold.
  • the server may directly respond to the data transmission request sent by the terminal according to the current resource allocation situation, or The time responds to the request for data transfer.
  • the server determines that the number of data transmission requests that it has not yet processed is greater than the preset first number threshold, it indicates that the current load of the server is large. In this case, the server can broadcast a message, that is, the first information, to all its corresponding terminals.
  • the first information may be used to indicate that all terminals corresponding to the server suspend the operation of transmitting the data transmission request when detecting the request to send the data transmission to the server.
  • all terminals corresponding to the server can detect in real time whether they are performing an operation of transmitting a data transmission request to the server. If the terminal detects that it is performing an operation of transmitting a data output request to the server, the terminal suspends the transmitting operation. That is, after the first information is broadcast, if the server does not send an instruction or information indicating that the terminal can send a data transmission request to the server to the corresponding terminal, the terminal does not send a data transmission request to the server.
  • the server determines that the number of unprocessed data transmission requests is greater than a preset first number threshold, that is, when the server load is large, the server broadcasts information to the corresponding terminal, and instructs the terminals to delay sending to the server. Request for data transfer.
  • the server can be prevented from overloading when the number of unprocessed data transmission requests is large and the number of data transmission requests is received. Therefore, the control system for data transmission in the embodiment of the present invention can effectively reduce the load of the server.
  • the embodiment of the present invention provides a storage medium on which a computer program is stored.
  • the computer program is executed on a computer, the computer is caused to perform a data transmission control method according to an embodiment of the present invention.
  • the embodiment of the invention further provides a server, wherein the control device of any data transmission provided by the above embodiments can be integrated.
  • FIG. 6 is a schematic structural diagram of a server 400 according to an embodiment of the present invention.
  • the server 400 can include a processor 401 of one or more processing cores, a memory 402 of one or more computer readable storage media, and a communication unit 403.
  • the processor 401 is the control center of the server, connecting various portions of the entire server using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 402, and recalling data stored in the memory 402, Execute the server's various functions and process data to monitor the server as a whole.
  • Processor 401 can include one or more processing cores.
  • the processor 401 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 401.
  • the memory 402 can be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by running software programs and modules stored in the memory 402.
  • the communication unit 403 can be used for receiving and transmitting signals during the process of transmitting and receiving information.
  • communication unit 403 receives signals transmitted by the terminals and hands them over to one or more processors 401 for processing.
  • the communication unit 403 transmits the feedback signal sent by the processor 401 to the terminal.
  • the processor 401 in the server loads the executable file corresponding to the process of one or more applications into the memory 402 according to the following instructions, and is stored in the memory 402 by the processor 401. For the application, perform the following steps:
  • the communication unit 403 receives a data transmission request from the terminal; the processor 401 determines, according to the data transmission request, the number of data transmission requests that are not currently processed by the server; the processor 401 acquires a preset first quantity threshold; if it is determined that the unprocessed The processor 401 broadcasts the first information to the corresponding terminal, where the first information is used to indicate that the corresponding terminal sends a data transmission request to the server, when the data transmission request is greater than the preset first number threshold. The operation of transmitting the data transmission request is suspended.
  • the server 400 may further include components such as a power source 404, an input unit 405, and a display unit 406.
  • components such as a power source 404, an input unit 405, and a display unit 406.
  • the server also includes a power source 404 (such as a battery) that powers the various components.
  • the power supply can be logically coupled to the processor 401 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the power supply 404 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the server can also include an input unit 405 that can be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • an input unit 405 can be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • the server can also include a display unit 406 that can be used to display information entered by the user or information provided to the user, as well as various graphical user interfaces of the server, which can be composed of graphics, text, icons, video, and It is composed of any combination.
  • the display unit 406 can include a display panel.
  • a liquid crystal display can be employed (LCD, Liquid Crystal Display), Organic Light Emitting Diode (OLED, Organic Light-Emitting) Diode) and other forms to configure the display panel.
  • the processor 401 may further perform the following steps: if detecting that the number of unprocessed data transmission requests is less than or equal to a preset second number threshold Sending the second information to the corresponding terminal, where the second information is used to indicate that the corresponding terminal restarts the suspended data transmission request, and the preset second quantity threshold is less than the preset first quantity threshold.
  • the processor 401 may further perform the following steps: if receiving, indicating that the preset first quantity threshold and the preset second quantity threshold are performed.
  • the modified instruction in accordance with the instruction, modifies the preset first quantity threshold and the preset second quantity threshold.
  • the processor 401 may further perform the step of: acquiring a data transmission frequency of the corresponding terminal. Transmitting the third information to the first terminal with the data transmission frequency greater than the preset transmission frequency, where the third information carries the first waiting duration, and is used to indicate that the first terminal restarts the suspended transmission after the first waiting duration ends. The operation of the data transfer request.
  • the processor 401 may further perform the following steps: sending the fourth information to the second terminal whose data transmission frequency is less than or equal to the preset transmission frequency, where the fourth information carries the fourth information.
  • the waiting time is long, and is used to instruct the second terminal to restart the suspended data transmission request after the second waiting time ends.
  • the processor 401 may perform: a data transmission request received from the terminal within a preset duration Determines the number of data transfer requests that the server is currently unprocessed when the number exceeds the preset number.
  • the processor 401 may further perform the following steps: if it is detected that the number of unprocessed data transmission requests is less than a preset first number threshold and greater than a preset second number threshold, responding to the unprocessed data transmission request.
  • the control device for data transmission provided by the embodiment of the present invention belongs to the same concept as the control method for data transmission in the above embodiment, and the control method for the data transmission can be operated in the control method of the data transmission.
  • the implementation of the data transmission control method is not described here.
  • the control method of the data transmission according to the embodiment of the present invention, those skilled in the art can understand all or part of the process of implementing the data transmission control method according to the embodiment of the present invention, which can be obtained by a computer program.
  • the computer program can be stored in a computer readable storage medium, such as in a memory, and executed by at least one processor, and can include control of the data transfer during execution The flow of an embodiment of the method.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read) Only Memory), random access memory (RAM, Random Access Memory), etc.
  • each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated module if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A data transmission control method, comprising: receiving a data transmission request from a terminal; determining the current quantity of unprocessed data transmission requests of a server; and broadcasting first information to corresponding terminals if it is determined that the quantity of unprocessed data transmission requests is greater than a preset first quantity threshold, the first information being used to instruct the corresponding terminals to stop the sending of data transmission requests. The present embodiments may reduce the load of a server.

Description

数据传输的控制方法、装置、存储介质、服务器及系统 Data transmission control method, device, storage medium, server and system

本申请要求于2016年10月25日提交中国专利局、申请号为201610941989.5、发明名称为“数据传输的控制方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application, filed on October 25, 2016, the Chinese Patent Application No. 201610941989. In the application.

技术领域Technical field

本发明属于通信技术领域,尤其涉及一种数据传输的控制方法、装置、存储介质、服务器及系统。The present invention belongs to the field of communications technologies, and in particular, to a data transmission control method, apparatus, storage medium, server, and system.

背景技术Background technique

由于智能终端的普及,一个用户可能同时拥有多台终端,而用户在不同的终端上存储的数据也有所不同。为了使用户能够方便地使用存储在不同终端上的数据,终端可以将使用过程中产生的数据上传到云端的服务器中,并在有需要的时候将存储在云端服务器的数据下载到终端设备。Due to the popularity of smart terminals, one user may have multiple terminals at the same time, and the data stored by users on different terminals is also different. In order to enable the user to conveniently use the data stored on different terminals, the terminal can upload the data generated during the use to the server in the cloud, and download the data stored in the cloud server to the terminal device when necessary.

技术问题technical problem

本发明实施例提供一种数据传输的控制方法、装置、存储介质、服务器及系统,能降低服务器的负载。Embodiments of the present invention provide a data transmission control method, apparatus, storage medium, server, and system, which can reduce the load of a server.

技术解决方案Technical solution

本发明实施例提供一种数据传输的控制方法,包括:An embodiment of the present invention provides a data transmission control method, including:

从终端处接收数据传输请求;Receiving a data transmission request from the terminal;

根据所述数据传输请求,确定服务器当前未处理的数据传输请求数量;Determining, according to the data transmission request, a quantity of data transmission requests that are not currently processed by the server;

获取预设第一数量阈值;Obtaining a preset first quantity threshold;

若判断出所述未处理的数据传输请求数量大于预设第一数量阈值,则向对应的终端广播第一信息,所述第一信息用于指示所述对应的终端在检测到向服务器发送数据传输请求时,暂停所述发送数据传输请求的操作。If it is determined that the number of unprocessed data transmission requests is greater than a preset first number threshold, the first information is broadcast to the corresponding terminal, where the first information is used to indicate that the corresponding terminal detects that the data is sent to the server. When the request is transmitted, the operation of transmitting the data transmission request is suspended.

本发明实施例还提供一种数据传输的控制装置,包括:The embodiment of the invention further provides a data transmission control device, including:

接收单元,用于从终端处接收数据传输请求;a receiving unit, configured to receive a data transmission request from the terminal;

确定单元,用于根据所述数据传输请求,确定服务器当前未处理的数据传输请求数量;a determining unit, configured to determine, according to the data transmission request, a quantity of data transmission requests that are not currently processed by the server;

获取单元,用于获取预设第一数量阈值;An acquiring unit, configured to acquire a preset first quantity threshold;

广播单元,用于若判断出所述未处理的数据传输请求数量大于预设第一数量阈值,则向对应的终端广播第一信息,所述第一信息用于指示所述对应的终端在检测到向服务器发送数据传输请求时,暂停所述发送数据传输请求的操作。a broadcast unit, configured to: if the number of the unprocessed data transmission requests is greater than a preset first number threshold, broadcast the first information to the corresponding terminal, where the first information is used to indicate that the corresponding terminal is detecting The operation of transmitting the data transmission request is suspended when a data transmission request is sent to the server.

本发明实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行如本发明实施例提供的数据传输的控制方法。The embodiment of the present invention provides a storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer is caused to perform a data transmission control method according to an embodiment of the present invention.

本发明实施例提供一种服务器,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行如下步骤:An embodiment of the present invention provides a server, including a memory, and a processor, by using a computer program stored in the memory, to perform the following steps:

从终端处接收数据传输请求;Receiving a data transmission request from the terminal;

根据所述数据传输请求,确定服务器当前未处理的数据传输请求数量;Determining, according to the data transmission request, a quantity of data transmission requests that are not currently processed by the server;

获取预设第一数量阈值;Obtaining a preset first quantity threshold;

若判断出所述未处理的数据传输请求数量大于预设第一数量阈值,则向对应的终端广播第一信息,所述第一信息用于指示所述对应的终端在检测到向服务器发送数据传输请求时,暂停所述发送数据传输请求的操作。If it is determined that the number of unprocessed data transmission requests is greater than a preset first number threshold, the first information is broadcast to the corresponding terminal, where the first information is used to indicate that the corresponding terminal detects that the data is sent to the server. When the request is transmitted, the operation of transmitting the data transmission request is suspended.

本发明实施例还提供一种数据传输的控制系统,所述系统包括服务器和终端,所述服务器包括上述数据传输的控制装置。The embodiment of the invention further provides a control system for data transmission, the system comprising a server and a terminal, the server comprising the above-mentioned data transmission control device.

有益效果 Beneficial effect

本发明实施例提供一种数据传输的控制方法、装置、存储介质、服务器及系统,能降低服务器的负载。Embodiments of the present invention provide a data transmission control method, apparatus, storage medium, server, and system, which can reduce the load of a server.

附图说明DRAWINGS

下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其有益效果显而易见。The technical solutions of the present invention and the beneficial effects thereof will be apparent from the following detailed description of the embodiments of the invention.

图1是本发明实施例提供的数据传输的控制方法的流程示意图。FIG. 1 is a schematic flowchart diagram of a method for controlling data transmission according to an embodiment of the present invention.

图2是本发明实施例提供的数据传输的控制方法的另一流程示意图。FIG. 2 is another schematic flowchart of a method for controlling data transmission according to an embodiment of the present invention.

图3为本发明实施例提供的数据传输的控制装置的结构示意图。FIG. 3 is a schematic structural diagram of a data transmission control apparatus according to an embodiment of the present invention.

图4为本发明实施例提供的数据传输的控制装置的另一结构示意图。FIG. 4 is another schematic structural diagram of a data transmission control apparatus according to an embodiment of the present invention.

图5为本发明实施例提供的数据传输的控制系统的场景示意图。FIG. 5 is a schematic diagram of a scenario of a data transmission control system according to an embodiment of the present invention.

图6为本发明实施例提供的服务器的结构示意图。FIG. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.

图7为本发明实施例提供的服务器的另一结构示意图。FIG. 7 is another schematic structural diagram of a server according to an embodiment of the present invention.

本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION

请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。Referring to the drawings, wherein like reference numerals refer to the same components, the principles of the invention are illustrated in the context of a suitable computing environment. The following description is based on the specific embodiments of the invention, which are not to be construed as limiting the invention.

随着用户终端数量的持续增长,服务器所面临的来自终端的访问压力越来越大。比如,终端在检测到数据发生变化时,就会向服务器发起同步请求,请求将发生变化的数据同步上传到服务器中。因此,在终端的数量达到一定规模时,服务器会接收到很多来自终端的数据上传或下载请求,从而导致服务器的负载过大,甚至超过服务器的负载能力。As the number of user terminals continues to grow, the pressure on the server from the terminal is increasing. For example, when the terminal detects that the data changes, it will initiate a synchronization request to the server, requesting that the changed data be synchronously uploaded to the server. Therefore, when the number of terminals reaches a certain scale, the server receives many data uploading or downloading requests from the terminal, which causes the server to be overloaded and even exceeds the load capacity of the server.

本发明实施例提供一种数据传输的控制方法,包括:An embodiment of the present invention provides a data transmission control method, including:

从终端处接收数据传输请求;Receiving a data transmission request from the terminal;

根据所述数据传输请求,确定服务器当前未处理的数据传输请求数量;Determining, according to the data transmission request, a quantity of data transmission requests that are not currently processed by the server;

获取预设第一数量阈值;Obtaining a preset first quantity threshold;

若判断出所述未处理的数据传输请求数量大于预设第一数量阈值,则向对应的终端广播第一信息,所述第一信息用于指示所述对应的终端在检测到向服务器发送数据传输请求时,暂停所述发送数据传输请求的操作。If it is determined that the number of unprocessed data transmission requests is greater than a preset first number threshold, the first information is broadcast to the corresponding terminal, where the first information is used to indicate that the corresponding terminal detects that the data is sent to the server. When the request is transmitted, the operation of transmitting the data transmission request is suspended.

在一种实施方式中,在向对应的终端广播第一信息的步骤之后,还可以包括:若检测到未处理的数据传输请求的数量小于或等于预设第二数量阈值,则向对应的终端发送第二信息,所述第二信息用于指示所述对应的终端重启被暂停的发送数据传输请求的操作,预设第二数量阈值小于预设第一数量阈值。In an embodiment, after the step of broadcasting the first information to the corresponding terminal, the method may further include: if detecting that the number of unprocessed data transmission requests is less than or equal to a preset second number threshold, then to the corresponding terminal Sending a second information, where the second information is used to indicate that the corresponding terminal restarts the suspended data transmission request, and the preset second quantity threshold is less than a preset first quantity threshold.

在一种实施方式中,在从终端处接收数据传输请求的步骤之前,还可以包括:若接收到用于指示对预设第一数量阈值及预设第二数量阈值进行修改的指令,则按照所述指令对预设第一数量阈值及预设第二数量阈值进行修改。In an embodiment, before the step of receiving the data transmission request from the terminal, the method may further include: if receiving an instruction for instructing to modify the preset first quantity threshold and the preset second quantity threshold, The instruction modifies the preset first quantity threshold and the preset second quantity threshold.

在一种实施方式中,在向对应的终端广播第一信息的步骤之后,还可以包括:获取对应的终端的数据传输频率;向数据传输频率大于预设传输频率的第一终端发送第三信息,所述第三信息携带第一等待时长,并用于指示所述第一终端在第一等待时长结束后,重启被暂停的发送数据传输请求的操作。In an embodiment, after the step of broadcasting the first information to the corresponding terminal, the method further includes: acquiring a data transmission frequency of the corresponding terminal; and transmitting the third information to the first terminal whose data transmission frequency is greater than the preset transmission frequency. The third information carries a first waiting duration, and is used to instruct the first terminal to restart the suspended data transmission request after the first waiting duration ends.

在一种实施方式中,在获取对应的终端的数据传输频率的步骤之后,还可以包括:向数据传输频率小于或等于预设传输频率的第二终端发送第四信息,所述第四信息携带第二等待时长,并用于指示所述第二终端在第二等待时长结束后,重启被暂停的发送数据传输请求的操作。In an embodiment, after the step of acquiring the data transmission frequency of the corresponding terminal, the method further includes: sending, to the second terminal with a data transmission frequency less than or equal to the preset transmission frequency, fourth information, where the fourth information carries And a second waiting duration, and is used to instruct the second terminal to restart the suspended data transmission request after the second waiting time ends.

在一种实施方式中,所述根据所述数据传输请求,确定服务器当前未处理的数据传输请求数量的步骤,可以包括:当预设时长内从终端处接收到的数据传输请求的数量超过预设数量时,确定服务器当前未处理的数据传输请求数量。In an embodiment, the step of determining, according to the data transmission request, the number of data transmission requests that are not currently processed by the server may include: the number of data transmission requests received from the terminal within the preset duration exceeds a pre- When the number is set, the number of data transfer requests that the server is currently unprocessed is determined.

在一种实施方式中,该数据传输的控制方法还可以包括如下步骤:若检测到未处理的数据传输请求的数量小于预设第一数量阈值且大于预设第二数量阈值,则响应未处理的数据传输请求。In an embodiment, the data transmission control method may further include the following steps: if it is detected that the number of unprocessed data transmission requests is less than a preset first quantity threshold and greater than a preset second quantity threshold, the response is not processed. Data transfer request.

请参阅图1,图1是本发明实施例提供的数据传输的控制方法的流程示意图,流程可以包括:Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a method for controlling data transmission according to an embodiment of the present invention. The process may include:

在步骤S101中,从终端处接收数据传输请求。In step S101, a data transmission request is received from the terminal.

在步骤S102中,根据该数据传输请求,确定服务器当前未处理的数据传输请求数量。In step S102, based on the data transmission request, the number of data transmission requests that are not currently processed by the server is determined.

可以理解的是,本发明实施例的执行主体可以是服务器等。It can be understood that the execution subject of the embodiment of the present invention may be a server or the like.

在本发明实施例的步骤S101和S102中,当服务器接收到由终端发送过来的数据传输请求时,可以触发服务器获取其当前的未处理的数据传输请求的数量。In steps S101 and S102 of the embodiment of the present invention, when the server receives the data transmission request sent by the terminal, the server may be triggered to acquire the number of current unprocessed data transmission requests.

在步骤S103中,获取预设第一数量阈值。In step S103, a preset first number threshold is acquired.

比如,在服务器确定出尚未处理的数据传输请求的数量后,可以由服务器获取其预先设置的第一数量阈值,即预设第一数量阈值。然后,服务器判断其尚未处理的数据传输请求数量是否超过预设第一数量阈值。For example, after the server determines the number of data transmission requests that have not been processed, the server may obtain a preset first threshold thereof, that is, preset a first number threshold. The server then determines if the number of data transmission requests it has not processed exceeds a preset first number threshold.

如果服务器判断出其尚未处理的数据传输请求数量没有超过预设第一数量阈值,则可以认为服务器尚未处理的数据传输请求的数量较少,即此时服务器的负载较小。这种情况下,服务器可以继续执行其相应的操作。If the server determines that the number of data transmission requests that have not been processed does not exceed the preset first number threshold, it can be considered that the number of data transmission requests that the server has not processed is small, that is, the load of the server is small at this time. In this case, the server can continue to perform its corresponding operations.

在步骤S104中,若判断出该未处理的数据传输请求数量大于预设第一数量阈值,则向对应的终端广播第一信息,该第一信息用于指示对应的终端在检测到向服务器发送数据传输请求时,暂停该发送数据传输请求的操作。In step S104, if it is determined that the number of unprocessed data transmission requests is greater than a preset first number threshold, the first information is broadcast to the corresponding terminal, where the first information is used to indicate that the corresponding terminal detects that the terminal is transmitting to the server. When the data transfer request is made, the operation of transmitting the data transfer request is suspended.

比如,服务器判断出其尚未处理的数据传输请求数量超过了预设第一数量阈值,则可以认为服务器尚未处理的数据传输请求的数量较多,即此时服务器的负载较大。这种情况下,可以触发服务器向其对应的终端广播发送一条信息,即第一信息,该第一信息可以用于通知这些终端当前服务器的负载较大,并指示这些终端在检测到向服务器发送数据传输请求时,暂停终端中发送数据传输请求的操作。也就是说,该第一信息可以用于指示服务器对应的终端,在未进一步接收到服务器发送的允许这些终端向服务器发送数据传输请求的信息之前,不向服务器发送数据传输请求。For example, if the server determines that the number of data transmission requests that have not been processed exceeds the preset first number threshold, the server may consider that the number of data transmission requests that have not been processed by the server is large, that is, the load of the server is large at this time. In this case, the server may be triggered to send a message to its corresponding terminal, that is, the first information, which may be used to notify the terminal that the current server has a large load, and instruct the terminals to detect sending to the server. When the data transmission request is made, the operation of transmitting the data transmission request in the terminal is suspended. That is, the first information may be used to indicate that the terminal corresponding to the server does not send a data transmission request to the server before further receiving the information sent by the server that allows the terminals to send a data transmission request to the server.

可以理解的是,本发明实施例在服务器判断出自身当前尚未处理的来自终端的数据传输请求数量较多的情况下,由服务器向对应的终端广播信息,以指示这些终端延缓向服务器发送进行数据传输的请求,从而可以避免服务器因积压过多的数据传输请求,而导致服务器负载过大。也即,本发明实施例可以有效降低服务器的负载。It can be understood that, in the embodiment of the present invention, when the server determines that the number of data transmission requests from the terminal that are not currently processed by the server is large, the server broadcasts information to the corresponding terminal to instruct the terminals to delay sending data to the server. The request is transmitted, so that the server can be prevented from overloading due to excessive backlog of data transfer requests. That is, the embodiment of the present invention can effectively reduce the load of the server.

请参阅图2,图2为本发明实施例提供的数据传输的控制方法的另一流程示意图,流程可以包括:Referring to FIG. 2, FIG. 2 is another schematic flowchart of a method for controlling data transmission according to an embodiment of the present invention, where the process may include:

在步骤S201中,服务器从终端处接收数据传输请求。In step S201, the server receives a data transmission request from the terminal.

在步骤S202中,根据该数据传输请求,服务器确定当前未处理的数据传输请求数量。In step S202, based on the data transmission request, the server determines the number of data transmission requests that are currently unprocessed.

比如,步骤S201和S202可以包括:For example, steps S201 and S202 may include:

当服务器接收到一个或多个由终端发送的数据传输请求时,服务器可以根据其接收到的数据传输请求,确定出其当前尚未处理的来自终端的数据传输请求的数量。When the server receives one or more data transmission requests sent by the terminal, the server may determine the number of data transmission requests from the terminal that it has not currently processed according to the data transmission request it receives.

在一种实施方式中,上述当服务器接收到一个或多个由终端发送的数据传输请求时,服务器可以根据其接收到的数据传输请求,确定出其当前尚未处理的来自终端的数据传输请求的数量,可以包括:当服务器在预设时长,如半分钟内,接收到超过预设数量的数据传输请求时,服务器可以根据其接收到的数据传输请求,确定出其当前尚未处理的来自终端的数据传输请求的数量。In an embodiment, when the server receives one or more data transmission requests sent by the terminal, the server may determine, according to the data transmission request received by the server, the data transmission request from the terminal that is not currently processed. The quantity may include: when the server receives a predetermined number of data transmission requests within a preset time period, such as half a minute, the server may determine, according to the data transmission request received by the server, that the terminal is not currently processed. The number of data transfer requests.

也即,在一种实施方式中,步骤S202中服务器根据该数据传输请求,确定当前未处理的数据传输请求数量,可以包括:That is, in an embodiment, the server determines, according to the data transmission request, the number of currently unprocessed data transmission requests according to the data transmission request, which may include:

当预设时长内从终端处接收到的数据传输请求的数量超过预设数量时,服务器确定当前未处理的数据传输请求数量。When the number of data transmission requests received from the terminal within the preset duration exceeds a preset amount, the server determines the number of currently unprocessed data transmission requests.

在步骤S203中,服务器获取预设第一数量阈值。In step S203, the server acquires a preset first number threshold.

在步骤S204中,服务器判断未处理的数据传输请求数量是否大于预设第一数量阈值。In step S204, the server determines whether the number of unprocessed data transmission requests is greater than a preset first number threshold.

比如,步骤S203和S204可以包括:For example, steps S203 and S204 may include:

在服务器获取到其尚未处理的来自终端的要求进行数据传输的请求的数量后,可以触发服务器获取预设第一数量阈值,并判断服务器尚未处理的数据传输请求数量是否大于该预设第一数量阈值。After the server obtains the number of requests for data transmission from the terminal that has not been processed by the server, the server may be triggered to obtain a preset first quantity threshold, and determine whether the number of data transmission requests that have not been processed by the server is greater than the preset first quantity. Threshold.

需要说明的是,上述预设第一数量阈值为用于判断服务器的负载是否过大的一个数值。也就是说,当服务器尚未处理的数据传输请求数量大于该预设第一数量阈值时,可以认为服务器的负载较大。而当服务器尚未处理的数据传输请求数量小于或等于该预设第一数量阈值时,可以认为服务器的负载较小。It should be noted that the preset first quantity threshold is a value used to determine whether the load of the server is too large. That is to say, when the number of data transmission requests that have not been processed by the server is greater than the preset first number threshold, the load of the server can be considered to be large. When the number of data transmission requests that have not been processed by the server is less than or equal to the preset first number threshold, the load of the server may be considered to be small.

比如,服务器一般是根据接收时间的先后顺序来对终端发送的数据传输请求进行响应。例如,服务器先接收到甲终端发送的数据传输请求,之后才接收到乙终端发送的数据传输请求,那么服务器会先对甲终端的数据传输请求进行响应。对于较晚接收到的、尚未来得及处理的数据传输请求,服务器会将其加入到等待队列。由于服务器的处理能力有限,上述等待队列都有一个最大容量,超过这个最大容量的话,就容易导致服务器因负载过大而陷入瘫痪并无法响应数据传输请求。例如,服务器允许积压的未处理的数据传输请求的数量(最大积压量)为10000条,如果服务器在一个时间段内积压的未处理的数据传输请求数量超过了10000条,那么服务器就很可能因负载过大而陷入瘫痪。For example, the server generally responds to the data transmission request sent by the terminal according to the order of receiving time. For example, the server first receives the data transmission request sent by the terminal A, and then receives the data transmission request sent by the terminal B, then the server first responds to the data transmission request of the terminal A. For data transmission requests that are received later and have not yet been processed, the server will add them to the waiting queue. Due to the limited processing capacity of the server, the above waiting queue has a maximum capacity. If the maximum capacity is exceeded, the server is likely to be paralyzed due to excessive load and cannot respond to data transmission requests. For example, the number of unprocessed data transfer requests (maximum backlog) allowed by the server is 10,000. If the server has more than 10,000 unprocessed data transfer requests over a period of time, the server is likely to The load is too large and it is paralyzed.

上述预设第一数量阈值可以是略小于服务器最大积压量的一个数值。例如服务器的最大积压量为10000条,那么预设第一数量阈值可以设置为9500条等。The preset first number threshold may be a value slightly smaller than the maximum backlog of the server. For example, if the maximum backlog of the server is 10000, the preset first number threshold may be set to 9,500 or the like.

若在步骤S204中服务器判断出其尚未处理的数据传输请求数量不大于预设第一数量阈值,则可以认为此时服务器的负载较小。在这种情况下,服务器可以继续执行其当前的相关操作,即步骤S207。If the server determines in step S204 that the number of data transmission requests that have not been processed is not greater than the preset first number threshold, it may be considered that the load of the server is small at this time. In this case, the server can continue to perform its current related operation, step S207.

在步骤S205中,若判断出未处理的数据传输请求数量大于预设第一数量阈值,则服务器向对应的终端广播第一信息,该第一信息用于指示对应的终端在检测到向服务器发送数据传输请求时,暂停该发送数据传输请求的操作。In step S205, if it is determined that the number of unprocessed data transmission requests is greater than a preset first number threshold, the server broadcasts first information to the corresponding terminal, where the first information is used to indicate that the corresponding terminal detects that the terminal is transmitting to the server. When the data transfer request is made, the operation of transmitting the data transfer request is suspended.

比如,在步骤S204中服务器判断出其尚未处理的数据传输请求数量大于预设第一数量阈值,则可以认为此时服务器的负载较大。在这种情况下,可以触发服务器向对应的终端广播发送一条信息,即第一信息,该第一信息可以用于通知这些对应的终端当前服务器的负载较大,并指示这些终端在检测到向服务器发送数据传输请求时,暂停其发送数据传输请求的操作。For example, if the server determines in step S204 that the number of data transmission requests that have not been processed is greater than the preset first number threshold, it may be considered that the load of the server is large at this time. In this case, the server may be triggered to broadcast a message to the corresponding terminal, that is, the first information, where the first information may be used to notify the corresponding terminal that the current server has a large load, and indicate that the terminals are detecting the direction. When the server sends a data transfer request, it suspends its operation of sending a data transfer request.

例如,在接收到服务器广播的第一信息之后,甲终端可以实时检测其是否在执行向服务器发送数据传输请求的操作。若甲终端检测到其在执行向服务器发送数据传输请求的操作,则甲终端将该向服务器发送数据传输请求的操作暂停。For example, after receiving the first information broadcast by the server, the terminal A can detect in real time whether it is performing an operation of transmitting a data transmission request to the server. If the terminal A detects that it is performing an operation of transmitting a data transmission request to the server, the terminal A suspends the operation of transmitting the data transmission request to the server.

在步骤S206中,若检测到未处理的数据传输请求的数量小于或等于预设第二数量阈值,则服务器向对应的终端发送第二信息,所述第二信息用于指示对应的终端重启被暂停的发送数据传输请求的操作,预设第二数量阈值小于预设第一数量阈值。In step S206, if it is detected that the number of unprocessed data transmission requests is less than or equal to a preset second number threshold, the server sends second information to the corresponding terminal, where the second information is used to indicate that the corresponding terminal is restarted. The operation of transmitting the data transmission request is suspended, and the preset second quantity threshold is less than the preset first quantity threshold.

比如,在向对应的终端广播第一信息之后,服务器可以继续响应其尚未处理的数据传输请求。同时,服务器可以检测其尚未处理的数据传输请求的数量是否小于或等于预设第二数量阈值。该预设第二数量阈值小于上述预设第一数量阈值。For example, after broadcasting the first information to the corresponding terminal, the server may continue to respond to its unprocessed data transmission request. At the same time, the server can detect whether the number of data transmission requests that it has not processed is less than or equal to a preset second number threshold. The preset second quantity threshold is smaller than the preset first quantity threshold.

如果服务器检测到其尚未处理的数据传输请求的数量小于预设第一数量阈值且大于预设第二数量阈值,那么服务器可以继续响应其尚未处理的数据传输请求。If the server detects that the number of data transmission requests that it has not processed is less than a preset first number threshold and greater than a preset second number threshold, the server may continue to respond to its unprocessed data transmission request.

在一种实施方式中,本实施例还可以包括如下步骤:In an embodiment, the embodiment may further include the following steps:

若检测到未处理的数据传输请求的数量小于预设第一数量阈值且大于预设第二数量阈值,则服务器响应未处理的数据传输请求。If it is detected that the number of unprocessed data transmission requests is less than a preset first number threshold and greater than a preset second number threshold, the server responds to the unprocessed data transmission request.

如果服务器检测到其尚未处理的数据传输请求的数量已经小于或等于预设第二数量阈值,那么此时可以触发服务器向对应的终端再广播一则信息,即第二信息,该第二信息用于通知对应的终端可以重启之前被暂停的发送数据传输请求的操作。If the server detects that the number of data transmission requests that have not been processed is less than or equal to the preset second quantity threshold, the server may be triggered to re-broadcast a message, that is, the second information, to the corresponding terminal. The operation of transmitting the data transmission request that was suspended before being notified can be restarted.

可以理解的是,本发明实施例中,服务器在判断出其未处理的数据传输请求数量大于预设第一数量阈值,即服务器负载较大时,向对应的终端广播信息,并指示这些终端延缓向服务器发送进行数据传输的请求。通过这种方式可以避免服务器因积压过多的数据传输请求而导致负载过大,因此本发明实施例可以有效降低服务器的负载。It can be understood that, in the embodiment of the present invention, when the server determines that the number of unprocessed data transmission requests is greater than a preset first number threshold, that is, when the server load is large, the server broadcasts information to the corresponding terminal, and instructs the terminals to delay. A request to transmit data is sent to the server. In this way, it is possible to prevent the server from being overloaded due to excessive backlog of data transmission requests. Therefore, the embodiment of the present invention can effectively reduce the load of the server.

另外,服务器在检测到其未处理的数据传输请求数量小于或等于预设第二数量阈值,即服务器负载较小时,可以向对应的终端广播信息,通知这些终端可以向服务器发送数据传输请求。In addition, when the server detects that the number of unprocessed data transmission requests is less than or equal to a preset second number threshold, that is, when the server load is small, the server may broadcast information to the corresponding terminal to notify the terminals that the data transmission request may be sent to the server.

本发明实施例中设置了两个数量阈值,即预设第一数量阈值和预设第二数量阈值,由于预设第二数量阈值小于预设第一数量阈值,所以本发明实施例可以使服务器在负载处于较低水平(即未处理的数据传输请求数量小于或等于预设第二数量阈值)时,才向对应的终端广播用于通知终端可以发送数据传输请求的信息。因此,相比于服务器在未处理的数据传输请求数量小于或等于预设第一数量阈值时,向对应的终端广播用于通知终端可以发送数据传输请求的信息的实施方式,本发明实施例中采用的方式可以避免服务器在其负载刚刚降低时,又因接收到较多的由终端发送的数据传输请求,而使服务器的负载重新变得较大。In the embodiment of the present invention, two quantity thresholds are set, that is, the first quantity threshold is preset and the second quantity threshold is preset. The preset second quantity threshold is smaller than the preset first quantity threshold, so the embodiment of the present invention can make the server When the load is at a lower level (ie, the number of unprocessed data transmission requests is less than or equal to the preset second number threshold), information for notifying the terminal that the data transmission request can be transmitted is broadcast to the corresponding terminal. Therefore, in the embodiment of the present invention, the embodiment broadcasts the information for notifying the terminal that the data transmission request can be sent to the corresponding terminal, when the number of unprocessed data transmission requests is less than or equal to the preset first number threshold. The method adopted can prevent the server from re-entering the data transmission request sent by the terminal when its load is just reduced, and the load of the server becomes larger again.

在一种实施方式中,在步骤S201之前,服务器还可以执行如下步骤:In an embodiment, before step S201, the server may further perform the following steps:

若接收到用于指示对预设第一数量阈值及预设第二数量阈值进行修改的指令,则按照该指令对预设第一数量阈值及预设第二数量阈值进行修改。And if the instruction for instructing to modify the preset first quantity threshold and the preset second quantity threshold is received, the preset first quantity threshold and the preset second quantity threshold are modified according to the instruction.

比如,管理员对服务器进行了扩容或升级,使得服务器的处理能力得以提升。在这种情况下,管理员可以根据实际扩容或升级情况,将预设第一数量阈值和预设第二数量阈值的数值对应地调大一些。For example, the administrator has expanded or upgraded the server to improve the processing power of the server. In this case, the administrator can adjust the preset first quantity threshold and the preset second quantity threshold correspondingly according to the actual expansion or upgrade situation.

可以理解的是,通过对预设第一数量阈值和预设第二数量阈值这两个数值的调整,可以使服务器更加灵活地控制其与对应的终端之间的数据传输。It can be understood that by adjusting the two values of the preset first quantity threshold and the preset second quantity threshold, the server can be more flexibly controlled to transmit data between the terminal and the corresponding terminal.

在另一种实施方式,本发明实施例在执行完步骤S205之后,还可以不执行步骤S206,而是执行如下步骤:In another embodiment, after performing step S205, the embodiment of the present invention may not perform step S206, but perform the following steps:

获取对应的终端的数据传输频率;Obtaining the data transmission frequency of the corresponding terminal;

向数据传输频率大于预设传输频率的第一终端发送第三信息,该第三信息携带第一等待时长,并用于指示第一终端在第一等待时长结束后,重启被暂停的发送数据传输请求的操作。Sending, to the first terminal, the data transmission frequency is greater than the preset transmission frequency, the third information carries the first waiting duration, and is used to indicate that the first terminal restarts the suspended transmission data transmission request after the first waiting duration ends. Operation.

比如,在服务器向对应的终端广播用于指示该对应的终端在检测到向服务器发送数据传输请求时,暂停该发送数据传输请求操作的第一信息之后,服务器还可以先获取到对应的终端的数据传输频率,以及预设传输频率。之后,服务器可以将对应的终端中数据传输频率大于预设传输频率的终端确定为第一终端。然后,服务器向该第一终端发送一则信息,即第三信息。该第三信息中携带有第一等待时长。该第三信息用于指示该第一终端在第一等待时长结束后,可以重新启动之前被暂停的向服务器发送数据传输请求的操作。For example, after the server broadcasts to the corresponding terminal to indicate that the corresponding terminal detects the sending of the data transmission request to the server, after suspending the first information of the sending data transmission request operation, the server may also acquire the corresponding terminal first. The data transmission frequency, as well as the preset transmission frequency. Afterwards, the server may determine, as the first terminal, the terminal whose data transmission frequency in the corresponding terminal is greater than the preset transmission frequency. Then, the server sends a message, that is, the third information, to the first terminal. The third information carries a first waiting time. The third information is used to indicate that the first terminal may restart the previously suspended operation of sending a data transmission request to the server after the first waiting time period ends.

需要说明的是,服务器可以将其对应的各个终端在预设时间范围,如过去一小时内,与服务器进行数据传输的次数,确定为各终端的数据传输频率。例如,服务器统计到甲终端在过去一小时内与服务器进行了3次数据传输,那么可以将甲终端的数据传输频率确定为3次/时。It should be noted that the server may determine the number of data transmissions of each terminal in the preset time range, such as the past one hour, with the data transmission frequency of each terminal. For example, if the server counts that the terminal has performed data transmission with the server three times in the past hour, the data transmission frequency of the terminal A can be determined to be three times/hour.

例如,预设传输频率为2次/时,那么由于甲终端的数据传输频率大于预设传输频率,所以甲终端会被服务器确定为第一终端。可以理解的是,服务器确定出来的第一终端可以是多个终端。然后,服务器会向甲终端发送第三信息,该第三信息中携带有第一等待时长,如1小时。该第三信息可以用于指示甲终端在1小时后可以重新启动之前被暂停的向服务器发送数据传输请求的操作。For example, if the preset transmission frequency is 2 times/hour, then since the data transmission frequency of the terminal A is greater than the preset transmission frequency, the terminal A is determined by the server as the first terminal. It can be understood that the first terminal determined by the server may be multiple terminals. Then, the server sends a third message to the terminal A, where the third message carries a first waiting time, such as 1 hour. The third information can be used to indicate that the A terminal can suspend the operation of sending a data transmission request to the server before the restart can be performed after 1 hour.

在一种实施方式中,在上述获取对应的终端的数据传输频率的步骤之后,还可以包括如下步骤:In an implementation manner, after the step of acquiring the data transmission frequency of the corresponding terminal, the method may further include the following steps:

向数据传输频率小于或等于预设传输频率的第二终端发送第四信息,所述第四信息携带第二等待时长,并用于指示所述第二终端在第二等待时长结束后,重启被暂停的发送数据传输请求的操作。Sending fourth information to the second terminal whose data transmission frequency is less than or equal to the preset transmission frequency, where the fourth information carries the second waiting duration, and is used to indicate that the second terminal is suspended after the second waiting duration ends. The operation of sending a data transfer request.

比如,服务器在获取到对应的终端的数据传输频率,以及预设传输频率之后,可以将对应的终端中数据传输频率小于或等于预设传输频率的终端确定为第二终端。然后,服务器向该第二终端发送一则信息,即第四信息。该第四信息中携带有第二等待时长。该第四信息用于指示该第二终端在第二等待时长结束后,可以重新启动之前被暂停的向服务器发送数据传输请求的操作。For example, after obtaining the data transmission frequency of the corresponding terminal and the preset transmission frequency, the server may determine, as the second terminal, the terminal whose data transmission frequency in the corresponding terminal is less than or equal to the preset transmission frequency. Then, the server sends a message, that is, the fourth information, to the second terminal. The fourth information carries a second waiting time. The fourth information is used to indicate that the second terminal may restart the previously suspended operation of sending a data transmission request to the server after the second waiting duration ends.

例如,乙终端的数据传输频率为1次/时,那么服务器会将乙终端确定为第二终端,并向乙终端发送第四信息。该第四信息中携带有第二等待时长,如2小时。该第四信息用于指示乙终端在2小时后,可以重新启动之前被暂停的向服务器发送数据传输请求的操作。For example, if the data transmission frequency of the B terminal is 1 time/hour, the server determines the B terminal as the second terminal and sends the fourth information to the B terminal. The fourth information carries a second waiting time, such as 2 hours. The fourth information is used to instruct the B terminal to restart the previously sent data transmission request to the server after 2 hours.

在一些实施方式中,上述第二等待时长可以大于第一等待时长。也就是说,对于数据传输比较频繁的终端,可以使之在等待较短时间后重启被暂停的向服务器发送数据传输请求的操作。而对于数据传输比较不频繁的终端,可以使之在等待较长时间后重启被暂停的向服务器发送数据传输请求的操作。In some embodiments, the second waiting duration may be greater than the first waiting time. That is to say, for a terminal with relatively frequent data transmission, it is possible to restart the suspended operation of transmitting a data transmission request to the server after waiting for a short time. For a terminal whose data transmission is infrequent, it can be restarted after waiting for a long time to restart the transmission of a data transmission request to the server.

当然,使第二等待时长大于第一等待时长只是一种实施方式,而在其它实施方式中,也可以使第二等待时长小于第一等待时长,或者不对第二等待时长与第一等待时长的大小关系进行限定,等等,此处不作具体限定。Certainly, the second waiting duration is greater than the first waiting duration, but in other embodiments, the second waiting duration may be less than the first waiting duration, or the second waiting duration is less than the first waiting duration. The size relationship is limited, and so on, and is not specifically limited herein.

可以理解的是,在第一终端和第二终端处于等待时间时,服务器可以继续响应尚未处理的数据传输请求,从而减少服务器未处理的数据传输请求的数量。也即,可以降低服务器的负载。另外,通过向不同的终端下发不同的等待时长,也可以更加灵活地对服务器与终端之间的数据传输进行控制。It can be understood that when the first terminal and the second terminal are in the waiting time, the server can continue to respond to the data transmission request that has not been processed, thereby reducing the number of data transmission requests that the server does not process. That is, the load on the server can be reduced. In addition, by transmitting different waiting times to different terminals, data transmission between the server and the terminal can be controlled more flexibly.

当然,除了将服务器对应的终端划分为第一终端和第二终端这两类终端之外,服务器也可以根据自身的处理能力,以及对应的终端进行数据传输的频率,将终端进一步细分为多个类别,并为每个类别设置不同的等待时长。例如,预先设置两个不同的传输频率,即第一传输频率和第二传输频率,第一传输频率大于第二传输频率。那么,服务器对应的终端就可以划分为数据传输频率大于或等于第一传输频率、数据传输频率小于第一传输频率且大于第二传输频率、以及数据传输频率小于或等于第二传输频率的三类终端。Of course, in addition to dividing the terminal corresponding to the server into two types of terminals: the first terminal and the second terminal, the server may further subdivide the terminal into multiple according to its processing capability and the frequency of data transmission by the corresponding terminal. Categories and set different wait times for each category. For example, two different transmission frequencies, that is, a first transmission frequency and a second transmission frequency, are set in advance, and the first transmission frequency is greater than the second transmission frequency. Then, the terminal corresponding to the server can be divided into three types: the data transmission frequency is greater than or equal to the first transmission frequency, the data transmission frequency is less than the first transmission frequency and greater than the second transmission frequency, and the data transmission frequency is less than or equal to the second transmission frequency. terminal.

本发明实施例提供一种数据传输的控制装置,包括:An embodiment of the present invention provides a data transmission control apparatus, including:

接收单元,用于从终端处接收数据传输请求;a receiving unit, configured to receive a data transmission request from the terminal;

确定单元,用于根据所述数据传输请求,确定服务器当前未处理的数据传输请求数量;a determining unit, configured to determine, according to the data transmission request, a quantity of data transmission requests that are not currently processed by the server;

获取单元,用于获取预设第一数量阈值;An acquiring unit, configured to acquire a preset first quantity threshold;

广播单元,用于若判断出所述未处理的数据传输请求数量大于预设第一数量阈值,则向对应的终端广播第一信息,所述第一信息用于指示所述对应的终端在检测到向服务器发送数据传输请求时,暂停所述发送数据传输请求的操作。a broadcast unit, configured to: if the number of the unprocessed data transmission requests is greater than a preset first number threshold, broadcast the first information to the corresponding terminal, where the first information is used to indicate that the corresponding terminal is detecting The operation of transmitting the data transmission request is suspended when a data transmission request is sent to the server.

在一种实施方式中,该数据传输的控制装置还可以包括:发送单元,用于若检测到未处理的数据传输请求的数量小于或等于预设第二数量阈值,则向对应的终端发送第二信息,所述第二信息用于指示所述对应的终端重启被暂停的发送数据传输请求的操作,预设第二数量阈值小于预设第一数量阈值。In an embodiment, the control device for data transmission may further include: a sending unit, configured to send, to the corresponding terminal, if the number of unprocessed data transmission requests is less than or equal to a preset second number threshold The second information is used to indicate that the corresponding terminal restarts the suspended data transmission request, and the preset second quantity threshold is smaller than the preset first quantity threshold.

在一种实施方式中,该数据传输的控制装置还可以包括:第一重启单元,用于:获取对应的终端的数据传输频率;向数据传输频率大于预设传输频率的第一终端发送第三信息,所述第三信息携带第一等待时长,并用于指示所述第一终端在第一等待时长结束后,重启被暂停的发送数据传输请求的操作。In an embodiment, the control device for data transmission may further include: a first restarting unit, configured to: acquire a data transmission frequency of the corresponding terminal; and send a third to the first terminal whose data transmission frequency is greater than the preset transmission frequency. And the third information carries the first waiting duration, and is used to instruct the first terminal to restart the suspended data transmission request after the first waiting duration ends.

在一种实施方式中,该数据传输的控制装置还可以包括:第二重启单元,用于向数据传输频率小于或等于预设传输频率的第二终端发送第四信息,所述第四信息携带第二等待时长,并用于指示所述第二终端在第二等待时长结束后,重启被暂停的发送数据传输请求的操作。In an embodiment, the control device for data transmission may further include: a second restarting unit, configured to send fourth information to the second terminal whose data transmission frequency is less than or equal to the preset transmission frequency, where the fourth information carries And a second waiting duration, and is used to instruct the second terminal to restart the suspended data transmission request after the second waiting time ends.

在一种实施方式中,该数据传输的控制装置还可以包括:修改单元,用于:若接收到用于指示对预设第一数量阈值及预设第二数量阈值进行修改的指令,则按照所述指令对预设第一数量阈值及预设第二数量阈值进行修改。In an embodiment, the control device for data transmission may further include: a modifying unit, configured to: if receiving an instruction for instructing to modify the preset first quantity threshold and the preset second quantity threshold, The instruction modifies the preset first quantity threshold and the preset second quantity threshold.

在一种实施方式中,所述确定单元可以用于:当接收单元在预设时长内从终端处接收到的数据传输请求的数量超过预设数量时,确定单元确定服务器当前未处理的数据传输请求数量。In an implementation manner, the determining unit may be configured to: when the number of data transmission requests received by the receiving unit from the terminal exceeds a preset number within a preset duration, the determining unit determines that the server currently does not process the data transmission The number of requests.

在一种实施方式中,所述发送单元可以用于:若检测到未处理的数据传输请求的数量小于预设第一数量阈值且大于预设第二数量阈值,则响应未处理的数据传输请求。In an embodiment, the sending unit may be configured to respond to an unprocessed data transmission request if the number of unprocessed data transmission requests is less than a preset first number threshold and greater than a preset second number threshold. .

请参阅图3,图3为本发明实施例提供的数据传输的控制装置的结构示意图。数据传输的控制装置300可以包括:接收单元301,确定单元302,获取单元303,以及广播单元304。Please refer to FIG. 3. FIG. 3 is a schematic structural diagram of a data transmission control apparatus according to an embodiment of the present invention. The control device 300 for data transmission may include a receiving unit 301, a determining unit 302, an obtaining unit 303, and a broadcasting unit 304.

接收单元301,用于从终端处接收数据传输请求。The receiving unit 301 is configured to receive a data transmission request from the terminal.

确定单元302,用于根据所述数据传输请求,确定服务器当前未处理的数据传输请求数量。The determining unit 302 is configured to determine, according to the data transmission request, the number of data transmission requests that are not currently processed by the server.

比如,当服务器的接收单元301接收到一个或多个由终端发送的数据传输请求时,可以触发服务器的确定单元302根据接收到的数据传输请求,确定出服务器当前尚未处理的来自终端的数据传输请求的数量。For example, when the receiving unit 301 of the server receives one or more data transmission requests sent by the terminal, the determining unit 302 of the triggering server may determine, according to the received data transmission request, the data transmission from the terminal that the server has not currently processed. The number of requests.

获取单元303,用于获取预设第一数量阈值。The obtaining unit 303 is configured to acquire a preset first quantity threshold.

比如,在确定单元302确定出服务器当前未处理的数据传输请求后,可以触发获取单元303获取预设第一数量阈值。For example, after the determining unit 302 determines that the server does not currently process the data transmission request, the acquiring unit 303 may be triggered to acquire a preset first quantity threshold.

需要说明的是,上述预设第一数量阈值为用于判断服务器的负载是否过大的一个数值。也就是说,当服务器尚未处理的数据传输请求数量大于该预设第一数量阈值时,可以认为服务器的负载较大。而当服务器尚未处理的数据传输请求数量小于或等于该预设第一数量阈值时,可以认为服务器的负载较小。It should be noted that the preset first quantity threshold is a value used to determine whether the load of the server is too large. That is to say, when the number of data transmission requests that have not been processed by the server is greater than the preset first number threshold, the load of the server can be considered to be large. When the number of data transmission requests that have not been processed by the server is less than or equal to the preset first number threshold, the load of the server may be considered to be small.

在获取到服务器当前未处理的数据传输请求数量以及预设第一数量阈值后,服务器可以判断该当前未处理的数据传输请求数量是否大于预设第一数量阈值。After obtaining the number of data transmission requests that are not currently processed by the server and the preset first quantity threshold, the server may determine whether the current unprocessed data transmission request quantity is greater than a preset first quantity threshold.

若服务器判断出其当前未处理的数据传输请求数量不大于预设第一数量阈值,则可以认为服务器的负载较小,此时服务器可以继续执行其相关操作。If the server determines that the number of currently unprocessed data transmission requests is not greater than a preset first number threshold, the server may be considered to have a small load, and the server may continue to perform related operations.

广播单元304,用于若判断出所述未处理的数据传输请求数量大于预设第一数量阈值,则向对应的终端广播第一信息,所述第一信息用于指示所述对应的终端在检测到向服务器发送数据传输请求时,暂停所述发送数据传输请求的操作。The broadcast unit 304 is configured to: if it is determined that the number of the unprocessed data transmission requests is greater than a preset first number threshold, broadcast the first information to the corresponding terminal, where the first information is used to indicate that the corresponding terminal is When it is detected that a data transmission request is sent to the server, the operation of transmitting the data transmission request is suspended.

比如,若服务器判断出其当前未处理的数据传输请求数量大于预设第一数量阈值,则可以认为此时服务器的负载较大。在这种情况下,可以触发服务器的广播单元304向对应的终端广播发送一条信息,即第一信息。该第一信息可以用于通知这些对应的终端当前服务器的负载较大,并指示这些终端在检测到向服务器发送数据传输请求时,暂停其发送数据传输请求的操作。For example, if the server determines that the number of data transmission requests that are currently unprocessed is greater than a preset first number threshold, it can be considered that the load of the server is large at this time. In this case, the broadcast unit 304 that can trigger the server broadcasts a piece of information, that is, the first information, to the corresponding terminal. The first information may be used to notify the corresponding terminals that the current server has a large load, and instruct the terminals to suspend the operation of transmitting the data transmission request when detecting the sending of the data transmission request to the server.

例如,在接收到服务器广播的第一信息之后,甲终端可以实时检测其是否在执行向服务器发送数据传输请求的操作。若甲终端检测到其在执行向服务器发送数据传输请求的操作,则甲终端可以将该向服务器发送数据传输请求的操作暂停。For example, after receiving the first information broadcast by the server, the terminal A can detect in real time whether it is performing an operation of transmitting a data transmission request to the server. If the terminal A detects that it is performing an operation of transmitting a data transmission request to the server, the terminal A may suspend the operation of transmitting the data transmission request to the server.

可以理解的是,本发明实施例中,服务器在判断出其未处理的数据传输请求数量大于预设第一数量阈值,即服务器负载较大时,由服务器的广播单元向对应的终端广播信息,并指示这些终端延缓向服务器发送进行数据传输的请求。通过这种方式可以避免服务器因积压过多的数据传输请求而导致负载过大,因此本发明实施例可以有效降低服务器的负载。It can be understood that, in the embodiment of the present invention, when the server determines that the number of unprocessed data transmission requests is greater than a preset first number threshold, that is, when the server load is large, the broadcast unit of the server broadcasts information to the corresponding terminal. And instruct these terminals to delay sending requests for data transmission to the server. In this way, it is possible to prevent the server from being overloaded due to excessive backlog of data transmission requests. Therefore, the embodiment of the present invention can effectively reduce the load of the server.

请一并参阅图4,图4为本发明实施例提供的数据传输的控制装置的另一结构示意图。数据传输的控制装置300还可以包括:发送单元305,第一重启单元306,第二重启单元307,以及修改单元308。Referring to FIG. 4, FIG. 4 is another schematic structural diagram of a data transmission control apparatus according to an embodiment of the present invention. The data transmission control device 300 may further include: a transmitting unit 305, a first restarting unit 306, a second restarting unit 307, and a modifying unit 308.

发送单元305,用于若检测到未处理的数据传输请求的数量小于或等于预设第二数量阈值,则向对应的终端发送第二信息,所述第二信息用于指示所述对应的终端重启被暂停的发送数据传输请求的操作,预设第二数量阈值小于预设第一数量阈值。The sending unit 305 is configured to: if it is detected that the number of the unprocessed data transmission requests is less than or equal to the preset second quantity threshold, send the second information to the corresponding terminal, where the second information is used to indicate the corresponding terminal Restarting the suspended transmission data transmission request, the preset second quantity threshold is less than the preset first quantity threshold.

比如,在广播单元304向对应的终端广播第一信息之后,服务器可以继续响应其尚未处理的数据传输请求。同时,服务器还可以对其尚未处理的数据传输请求的数量进行监控,并检测其尚未处理的数据传输请求的数量是否小于或等于预设第二数量阈值。该预设第二数量阈值小于上述预设第一数量阈值。For example, after the broadcast unit 304 broadcasts the first information to the corresponding terminal, the server may continue to respond to its unprocessed data transfer request. At the same time, the server can also monitor the number of data transmission requests that have not been processed, and detect whether the number of data transmission requests that have not been processed is less than or equal to a preset second number threshold. The preset second quantity threshold is smaller than the preset first quantity threshold.

如果服务器检测到其尚未处理的数据传输请求的数量小于预设第一数量阈值且大于预设第二数量阈值,那么服务器可以继续响应其尚未处理的数据传输请求。If the server detects that the number of data transmission requests that it has not processed is less than a preset first number threshold and greater than a preset second number threshold, the server may continue to respond to its unprocessed data transmission request.

如果服务器检测到其尚未处理的数据传输请求的数量已经小于或等于预设第二数量阈值,那么此时可以触发服务器的发送单元305向对应的终端再广播一则信息,即第二信息,该第二信息用于通知对应的终端可以重启之前被暂停的发送数据传输请求的操作。If the server detects that the number of data transmission requests that have not been processed is less than or equal to the preset second number threshold, then the sending unit 305 of the server may be triggered to re-broadcast a message, ie, the second information, to the corresponding terminal. The second information is used to notify the corresponding terminal that the operation of transmitting the data transmission request that was suspended before is restarted.

第一重启单元306,用于获取对应的终端的数据传输频率;向数据传输频率大于预设传输频率的第一终端发送第三信息,所述第三信息携带第一等待时长,并用于指示所述第一终端在第一等待时长结束后,重启被暂停的发送数据传输请求的操作。The first restarting unit 306 is configured to acquire a data transmission frequency of the corresponding terminal, and send a third information to the first terminal whose data transmission frequency is greater than the preset transmission frequency, where the third information carries the first waiting duration, and is used to indicate the location The first terminal restarts the operation of transmitting the suspended data transmission request after the first waiting duration ends.

在另一种实施方式中,在广播单元304向服务器对应的终端广播第一信息之后,还可以由第一重启单元306先获取到服务器对应的终端的数据传输频率,以及预设传输频率。之后,服务器可以将对应的终端中数据传输频率大于预设传输频率的终端确定为第一终端。然后,服务器向该第一终端发送一则信息,即第三信息。该第三信息中携带有第一等待时长。该第三信息用于指示该第一终端在第一等待时长结束后,可以重新启动之前被暂停的向服务器发送数据传输请求的操作。In another embodiment, after the broadcast unit 304 broadcasts the first information to the terminal corresponding to the server, the first restart unit 306 may first acquire the data transmission frequency of the terminal corresponding to the server, and preset the transmission frequency. Afterwards, the server may determine, as the first terminal, the terminal whose data transmission frequency in the corresponding terminal is greater than the preset transmission frequency. Then, the server sends a message, that is, the third information, to the first terminal. The third information carries a first waiting time. The third information is used to indicate that the first terminal may restart the previously suspended operation of sending a data transmission request to the server after the first waiting time period ends.

需要说明的是,服务器可以将其对应的各个终端在预设时间范围,如过去一小时内,与服务进行数据传输的次数,确定为各终端的数据传输频率。例如,服务器统计到甲终端在过去一小时内与服务器进行了3次数据传输,那么可以将甲终端的数据传输频率确定为3次/时。而预设传输频率则可以由服务器的管理人员自行设定,例如可以设置为2次/时。It should be noted that the server may determine the number of times that each corresponding terminal is in the preset time range, such as the data transmission time of the service in the past one hour, as the data transmission frequency of each terminal. For example, if the server counts that the terminal has performed data transmission with the server three times in the past hour, the data transmission frequency of the terminal A can be determined to be three times/hour. The preset transmission frequency can be set by the server administrator, for example, it can be set to 2 times/hour.

第二重启单元307,用于向数据传输频率小于或等于预设传输频率的第二终端发送第四信息,所述第四信息携带第二等待时长,并用于指示所述第二终端在第二等待时长结束后,重启被暂停的发送数据传输请求的操作。The second restarting unit 307 is configured to send fourth information to the second terminal whose data transmission frequency is less than or equal to the preset transmission frequency, where the fourth information carries the second waiting duration, and is used to indicate that the second terminal is in the second After the waiting time is over, the operation of transmitting the data transmission request that is suspended is restarted.

比如,服务器在获取到对应的终端的数据传输频率,以及预设传输频率之后,可以将对应的终端中数据传输频率小于或等于预设传输频率的终端确定为第二终端。然后,由服务器的第二重启单元307向该第二终端发送一则信息,即第四信息。该第四信息中携带有第二等待时长。该第四信息用于指示该第二终端在第二等待时长结束后,可以重新启动之前被暂停的向服务器发送数据传输请求的操作。For example, after obtaining the data transmission frequency of the corresponding terminal and the preset transmission frequency, the server may determine, as the second terminal, the terminal whose data transmission frequency in the corresponding terminal is less than or equal to the preset transmission frequency. Then, the second restart unit 307 of the server transmits a piece of information, that is, the fourth information, to the second terminal. The fourth information carries a second waiting time. The fourth information is used to indicate that the second terminal may restart the previously suspended operation of sending a data transmission request to the server after the second waiting duration ends.

可以理解的是,在第一终端和第二终端处于等待时间时,服务器可以继续响应尚未处理的数据传输请求,从而减少服务器未处理的数据传输请求的数量。也即,可以降低服务器的负载。另外,通过向不同的终端下发不同的等待时长,也可以更加灵活地对服务器与终端之间的数据传输进行控制。It can be understood that when the first terminal and the second terminal are in the waiting time, the server can continue to respond to the data transmission request that has not been processed, thereby reducing the number of data transmission requests that the server does not process. That is, the load on the server can be reduced. In addition, by transmitting different waiting times to different terminals, data transmission between the server and the terminal can be controlled more flexibly.

修改单元308,用于若接收到用于指示对预设第一数量阈值及预设第二数量阈值进行修改的指令,则按照所述指令对预设第一数量阈值及预设第二数量阈值进行修改。The modifying unit 308 is configured to: if the instruction for modifying the preset first quantity threshold and the preset second quantity threshold is received, preset the first quantity threshold and the preset second quantity threshold according to the instruction to modify.

比如,服务器在进行了扩容或升级之后,其处理能力得到提升。在这种情况下,服务器的管理人员可以根据实际扩容或升级情况,将预设第一数量阈值和预设第二数量阈值的数值对应地调大一些。基于此,服务器在接收到用于指示对预设第一数量阈值及预设第二数量阈值进行修改的指令后,可以触发修改单元308按照该指令,对预设第一数量阈值及预设第二数量阈值的数值进行修改。For example, after the server is expanded or upgraded, its processing power is improved. In this case, the administrator of the server can adjust the value of the preset first quantity threshold and the preset second quantity threshold correspondingly according to the actual expansion or upgrade situation. Based on this, after receiving the instruction for instructing to modify the preset first quantity threshold and the preset second quantity threshold, the server may trigger the modification unit 308 to preset the first quantity threshold and the preset according to the instruction. The value of the two number threshold is modified.

可以理解的是,通过对预设第一数量阈值和预设第二数量阈值这两个数值的调整,可以使服务器更加灵活地控制其与对应的终端之间的数据传输。It can be understood that by adjusting the two values of the preset first quantity threshold and the preset second quantity threshold, the server can be more flexibly controlled to transmit data between the terminal and the corresponding terminal.

请参阅图5,图5为本发明实施例提供的数据传输的控制系统的场景示意图。Referring to FIG. 5, FIG. 5 is a schematic diagram of a scenario of a data transmission control system according to an embodiment of the present invention.

上述数据传输的控制系统可以包括一个或多个服务器,以及一个或多个终端。其中,该服务器可以集成如上述实施例所述的数据传输的控制装置。The above control system for data transmission may include one or more servers, and one or more terminals. Wherein, the server can integrate the control device for data transmission as described in the above embodiments.

上述终端可以包括输入设备、输出设备、处理器以及存储器等。上述输入设备可为物理按键。上述输出设备可为显示屏。上述处理器可以为中央处理器(CPU,Central Processing Unit)。上述存储器可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。上述输入设备、输出设备、处理器以及存储器通过总线连接。The above terminal may include an input device, an output device, a processor, a memory, and the like. The above input device can be a physical button. The above output device can be a display screen. The above processor can be a central processing unit (CPU, Central Processing Unit). The above memory may be a high speed RAM memory or a non-volatile memory (non-volatile) Memory), such as disk storage. The above input device, output device, processor, and memory are connected by a bus.

比如,上述数据传输的控制系统包括一个服务器和多个终端。其中某个终端向服务器发送了要求与服务器进行数据传输的请求至服务器。服务器在接收到该某个终端发送过来的数据传输请求后,根据该数据传输请求,确定服务器当前尚未处理的数据传输请求数量。然后,服务器获取预设第一数量阈值,并判断其当前尚未处理的数据传输请求数量是否大于预设第一数量阈值。For example, the above control system for data transmission includes a server and a plurality of terminals. One of the terminals sends a request to the server for data transmission with the server to the server. After receiving the data transmission request sent by the terminal, the server determines, according to the data transmission request, the number of data transmission requests that the server has not currently processed. Then, the server acquires a preset first quantity threshold, and determines whether the number of data transmission requests that it has not yet processed is greater than a preset first quantity threshold.

若服务器判断出其当前尚未处理的数据传输请求数量不大于预设第一数量阈值,则服务器可以根据当前的资源分配情况,直接对该某个终端发送的数据传输请求进行响应,或者在随后的时间对该数据传输的请求进行响应。If the server determines that the number of data transmission requests that have not been processed yet is not greater than the preset first number threshold, the server may directly respond to the data transmission request sent by the terminal according to the current resource allocation situation, or The time responds to the request for data transfer.

若服务器判断出其当前尚未处理的数据传输请求数量大于预设第一数量阈值,则表明服务器当前的负载较大。这种情况下,服务器可以向其对应的所有终端广播一则信息,即第一信息。该第一信息可以用于指示服务器对应的所有终端在检测到向服务器发送进行数据传输的请求时,暂停其发送数据传输请求的操作。If the server determines that the number of data transmission requests that it has not yet processed is greater than the preset first number threshold, it indicates that the current load of the server is large. In this case, the server can broadcast a message, that is, the first information, to all its corresponding terminals. The first information may be used to indicate that all terminals corresponding to the server suspend the operation of transmitting the data transmission request when detecting the request to send the data transmission to the server.

服务器对应的所有终端在接收到该第一信息之后,可以实时检测其是否在执行向服务器发送数据传输请求的操作。若终端检测到其在执行向服务器发送数据输出请求的操作,则终端暂停该发送操作。也就是说,在广播第一信息之后,若服务器没有向对应的终端发送用于指示这些终端可以向服务器发送数据传输请求的指令或信息,则终端不会向服务器发送数据传输请求。After receiving the first information, all terminals corresponding to the server can detect in real time whether they are performing an operation of transmitting a data transmission request to the server. If the terminal detects that it is performing an operation of transmitting a data output request to the server, the terminal suspends the transmitting operation. That is, after the first information is broadcast, if the server does not send an instruction or information indicating that the terminal can send a data transmission request to the server to the corresponding terminal, the terminal does not send a data transmission request to the server.

可以理解的是,服务器在判断出其未处理的数据传输请求数量大于预设第一数量阈值,即服务器负载较大时,由服务器向对应的终端广播信息,并指示这些终端延缓向服务器发送进行数据传输的请求。通过这种方式可以避免服务器在未处理的数据传输请求数量较多时,又因接收到较多的数据传输请求而导致负载过大。因此,本发明实施例中的数据传输的控制系统可以有效降低服务器的负载。It can be understood that, when the server determines that the number of unprocessed data transmission requests is greater than a preset first number threshold, that is, when the server load is large, the server broadcasts information to the corresponding terminal, and instructs the terminals to delay sending to the server. Request for data transfer. In this way, the server can be prevented from overloading when the number of unprocessed data transmission requests is large and the number of data transmission requests is received. Therefore, the control system for data transmission in the embodiment of the present invention can effectively reduce the load of the server.

本发明实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行如本发明实施例提供的数据传输的控制方法。The embodiment of the present invention provides a storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer is caused to perform a data transmission control method according to an embodiment of the present invention.

本发明实施例还提供了一种服务器,其中可以集成如上实施例所提供的任一数据传输的控制装置。The embodiment of the invention further provides a server, wherein the control device of any data transmission provided by the above embodiments can be integrated.

请参考图6,其示出了本发明实施例所涉及的服务器400的结构示意图。Please refer to FIG. 6, which is a schematic structural diagram of a server 400 according to an embodiment of the present invention.

该服务器400可以包括一个或者一个以上处理核心的处理器401、一个或一个以上计算机可读存储介质的存储器402、通信单元403。The server 400 can include a processor 401 of one or more processing cores, a memory 402 of one or more computer readable storage media, and a communication unit 403.

处理器401是该服务器的控制中心,利用各种接口和线路连接整个服务器的各个部分,通过运行或执行存储在存储器402内的软件程序和/或模块,以及调用存储在存储器402内的数据,执行服务器的各种功能和处理数据,从而对服务器进行整体监控。处理器401可包括一个或多个处理核心。处理器401可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等。调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器401中。The processor 401 is the control center of the server, connecting various portions of the entire server using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 402, and recalling data stored in the memory 402, Execute the server's various functions and process data to monitor the server as a whole. Processor 401 can include one or more processing cores. The processor 401 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 401.

存储器402可用于存储软件程序以及模块,处理器401通过运行存储在存储器402的软件程序以及模块,从而执行各种功能应用以及数据处理。The memory 402 can be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by running software programs and modules stored in the memory 402.

通信单元403可用于收发信息过程中,信号的接收和发送。特别地,通信单元403接收终端发送的信号,并将信号交由一个或者一个以上处理器401处理。同时,通信单元403将处理器401发出的反馈信号发送给终端。The communication unit 403 can be used for receiving and transmitting signals during the process of transmitting and receiving information. In particular, communication unit 403 receives signals transmitted by the terminals and hands them over to one or more processors 401 for processing. At the same time, the communication unit 403 transmits the feedback signal sent by the processor 401 to the terminal.

本实施例中,服务器中的处理器401会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器402中,并由处理器401来运行存储在存储器402中的应用程序,执行如下步骤:In this embodiment, the processor 401 in the server loads the executable file corresponding to the process of one or more applications into the memory 402 according to the following instructions, and is stored in the memory 402 by the processor 401. For the application, perform the following steps:

通信单元403从终端处接收数据传输请求;处理器401根据所述数据传输请求,确定服务器当前未处理的数据传输请求数量;处理器401获取预设第一数量阈值;若判断出所述未处理的数据传输请求数量大于预设第一数量阈值,则处理器401向对应的终端广播第一信息,所述第一信息用于指示所述对应的终端在检测到向服务器发送数据传输请求时,暂停所述发送数据传输请求的操作。The communication unit 403 receives a data transmission request from the terminal; the processor 401 determines, according to the data transmission request, the number of data transmission requests that are not currently processed by the server; the processor 401 acquires a preset first quantity threshold; if it is determined that the unprocessed The processor 401 broadcasts the first information to the corresponding terminal, where the first information is used to indicate that the corresponding terminal sends a data transmission request to the server, when the data transmission request is greater than the preset first number threshold. The operation of transmitting the data transmission request is suspended.

在另一种实施方式中,服务器400还可以包括电源404、输入单元405、以及显示单元406等部件。本领域技术人员可以理解,图7中示出的服务器结构并不构成对服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。In another embodiment, the server 400 may further include components such as a power source 404, an input unit 405, and a display unit 406. Those skilled in the art will appreciate that the server structure illustrated in FIG. 7 does not constitute a limitation to the server, and may include more or fewer components than those illustrated, or some components may be combined, or different component arrangements.

服务器还包括给各个部件供电的电源404(比如电池)。电源可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源404还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The server also includes a power source 404 (such as a battery) that powers the various components. The power supply can be logically coupled to the processor 401 through the power management system to manage functions such as charging, discharging, and power management through the power management system. The power supply 404 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.

该服务器还可包括输入单元405,该输入单元405可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。 The server can also include an input unit 405 that can be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

该服务器还可包括显示单元406,该显示单元406可用于显示由用户输入的信息或提供给用户的信息以及服务器的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元406可包括显示面板。在一些实施方式中,可以采用液晶显示器 (LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。The server can also include a display unit 406 that can be used to display information entered by the user or information provided to the user, as well as various graphical user interfaces of the server, which can be composed of graphics, text, icons, video, and It is composed of any combination. The display unit 406 can include a display panel. In some embodiments, a liquid crystal display can be employed (LCD, Liquid Crystal Display), Organic Light Emitting Diode (OLED, Organic Light-Emitting) Diode) and other forms to configure the display panel.

在一种实施方式中,处理器401在执行向对应的终端广播第一信息的步骤之后,还可以执行如下步骤:若检测到未处理的数据传输请求的数量小于或等于预设第二数量阈值,则向对应的终端发送第二信息,所述第二信息用于指示所述对应的终端重启被暂停的发送数据传输请求的操作,预设第二数量阈值小于预设第一数量阈值。In an embodiment, after performing the step of broadcasting the first information to the corresponding terminal, the processor 401 may further perform the following steps: if detecting that the number of unprocessed data transmission requests is less than or equal to a preset second number threshold Sending the second information to the corresponding terminal, where the second information is used to indicate that the corresponding terminal restarts the suspended data transmission request, and the preset second quantity threshold is less than the preset first quantity threshold.

在一种实施方式中,处理器401在执行从终端处接收数据传输请求的步骤之前,还可以执行如下步骤:若接收到用于指示对预设第一数量阈值及预设第二数量阈值进行修改的指令,则按照所述指令对预设第一数量阈值及预设第二数量阈值进行修改。In an embodiment, before the step of receiving the data transmission request from the terminal, the processor 401 may further perform the following steps: if receiving, indicating that the preset first quantity threshold and the preset second quantity threshold are performed The modified instruction, in accordance with the instruction, modifies the preset first quantity threshold and the preset second quantity threshold.

在另一种实施方式中,处理器401在执行向对应的终端广播第一信息的步骤之后,还可以执行如下步骤:获取对应的终端的数据传输频率。向数据传输频率大于预设传输频率的第一终端发送第三信息,所述第三信息携带第一等待时长,并用于指示所述第一终端在第一等待时长结束后,重启被暂停的发送数据传输请求的操作。In another implementation manner, after performing the step of broadcasting the first information to the corresponding terminal, the processor 401 may further perform the step of: acquiring a data transmission frequency of the corresponding terminal. Transmitting the third information to the first terminal with the data transmission frequency greater than the preset transmission frequency, where the third information carries the first waiting duration, and is used to indicate that the first terminal restarts the suspended transmission after the first waiting duration ends. The operation of the data transfer request.

处理器401在执行获取对应的终端的数据传输频率的步骤之后,还可以执行如下步骤:向数据传输频率小于或等于预设传输频率的第二终端发送第四信息,所述第四信息携带第二等待时长,并用于指示所述第二终端在第二等待时长结束后,重启被暂停的发送数据传输请求的操作。After performing the step of acquiring the data transmission frequency of the corresponding terminal, the processor 401 may further perform the following steps: sending the fourth information to the second terminal whose data transmission frequency is less than or equal to the preset transmission frequency, where the fourth information carries the fourth information. The waiting time is long, and is used to instruct the second terminal to restart the suspended data transmission request after the second waiting time ends.

在一种实施方式中,处理器401在执行根据所述数据传输请求,确定服务器当前未处理的数据传输请求数量的步骤时,可以执行:当预设时长内从终端处接收到的数据传输请求的数量超过预设数量时,确定服务器当前未处理的数据传输请求数量。In an implementation manner, when performing the step of determining, according to the data transmission request, the number of data transmission requests that are not currently processed by the server, the processor 401 may perform: a data transmission request received from the terminal within a preset duration Determines the number of data transfer requests that the server is currently unprocessed when the number exceeds the preset number.

在一种实施方式中,处理器401还可以执行如下步骤:若检测到未处理的数据传输请求的数量小于预设第一数量阈值且大于预设第二数量阈值,则响应未处理的数据传输请求。In an embodiment, the processor 401 may further perform the following steps: if it is detected that the number of unprocessed data transmission requests is less than a preset first number threshold and greater than a preset second number threshold, responding to the unprocessed data transmission request.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对数据备份的方法的详细描述,此处不再赘述。In the above-mentioned embodiments, the descriptions of the various embodiments are different. For details that are not detailed in an embodiment, refer to the foregoing detailed description of the method for data backup, and details are not described herein again.

本发明实施例提供的所述数据传输的控制装置与上文实施例中的数据传输的控制方法属于同一构思,在所述数据传输的控制装置上可以运行所述数据传输的控制方法实施例中提供的任一方法,其实现过程详见所述数据传输的控制方法实施例,此处不再赘述。The control device for data transmission provided by the embodiment of the present invention belongs to the same concept as the control method for data transmission in the above embodiment, and the control method for the data transmission can be operated in the control method of the data transmission. For the implementation of any of the methods, the implementation of the data transmission control method is not described here.

需要说明的是,对本发明实施例所述数据传输的控制方法而言,本领域普通技术人员可以理解实现本发明实施例所述数据传输的控制方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在存储器中,并被至少一个处理器执行,在执行过程中可包括如所述数据传输的控制方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that, in the control method of the data transmission according to the embodiment of the present invention, those skilled in the art can understand all or part of the process of implementing the data transmission control method according to the embodiment of the present invention, which can be obtained by a computer program. Controlling the associated hardware to complete, the computer program can be stored in a computer readable storage medium, such as in a memory, and executed by at least one processor, and can include control of the data transfer during execution The flow of an embodiment of the method. Wherein, the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read) Only Memory), random access memory (RAM, Random Access Memory), etc.

对本发明实施例的所述数据传输的控制装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the control device for data transmission according to the embodiment of the present invention, each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module. . The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated module, if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .

以上对本发明实施例所提供的一种数据传输的控制方法、装置、存储介质、服务器以及系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The foregoing describes a method, an apparatus, a storage medium, a server, and a system for controlling data transmission according to an embodiment of the present invention. The principles and implementation manners of the present invention are described in the following. The descriptions are only used to help understand the method of the present invention and its core ideas; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in specific embodiments and application scopes. The contents of this specification are not to be construed as limiting the invention.

Claims (20)

一种数据传输的控制方法,其中,所述方法包括:A method of controlling data transmission, wherein the method comprises: 从终端处接收数据传输请求;Receiving a data transmission request from the terminal; 根据所述数据传输请求,确定服务器当前未处理的数据传输请求数量;Determining, according to the data transmission request, a quantity of data transmission requests that are not currently processed by the server; 获取预设第一数量阈值;Obtaining a preset first quantity threshold; 若判断出所述未处理的数据传输请求数量大于预设第一数量阈值,则向对应的终端广播第一信息,所述第一信息用于指示所述对应的终端在检测到向服务器发送数据传输请求时,暂停所述发送数据传输请求的操作。If it is determined that the number of unprocessed data transmission requests is greater than a preset first number threshold, the first information is broadcast to the corresponding terminal, where the first information is used to indicate that the corresponding terminal detects that the data is sent to the server. When the request is transmitted, the operation of transmitting the data transmission request is suspended. 根据权利要求1所述的数据传输的控制方法,其中,在向对应的终端广播第一信息的步骤之后,还包括:The method of controlling data transmission according to claim 1, wherein after the step of broadcasting the first information to the corresponding terminal, the method further comprises: 若检测到未处理的数据传输请求的数量小于或等于预设第二数量阈值,则向对应的终端发送第二信息,所述第二信息用于指示所述对应的终端重启被暂停的发送数据传输请求的操作,预设第二数量阈值小于预设第一数量阈值。And if the number of the unprocessed data transmission requests is less than or equal to the preset second quantity threshold, sending the second information to the corresponding terminal, where the second information is used to indicate that the corresponding terminal restarts the suspended transmission data. The operation of transmitting the request, the preset second quantity threshold is less than the preset first quantity threshold. 根据权利要求2所述的数据传输的控制方法,其中,在从终端处接收数据传输请求的步骤之前,还包括:The data transmission control method according to claim 2, wherein before the step of receiving the data transmission request from the terminal, the method further comprises: 若接收到用于指示对预设第一数量阈值及预设第二数量阈值进行修改的指令,则按照所述指令对预设第一数量阈值及预设第二数量阈值进行修改。And if the instruction for instructing to modify the preset first quantity threshold and the preset second quantity threshold is received, modifying the preset first quantity threshold and the preset second quantity threshold according to the instruction. 根据权利要求1所述的数据传输的控制方法,其中,在向对应的终端广播第一信息的步骤之后,还包括:The method of controlling data transmission according to claim 1, wherein after the step of broadcasting the first information to the corresponding terminal, the method further comprises: 获取对应的终端的数据传输频率;Obtaining the data transmission frequency of the corresponding terminal; 向数据传输频率大于预设传输频率的第一终端发送第三信息,所述第三信息携带第一等待时长,并用于指示所述第一终端在第一等待时长结束后,重启被暂停的发送数据传输请求的操作。Transmitting the third information to the first terminal with the data transmission frequency greater than the preset transmission frequency, where the third information carries the first waiting duration, and is used to indicate that the first terminal restarts the suspended transmission after the first waiting duration ends. The operation of the data transfer request. 根据权利要求4所述的数据传输的控制方法,其中,在获取对应的终端的数据传输频率的步骤之后,还包括:The method of controlling the data transmission according to claim 4, wherein after the step of acquiring the data transmission frequency of the corresponding terminal, the method further comprises: 向数据传输频率小于或等于预设传输频率的第二终端发送第四信息,所述第四信息携带第二等待时长,并用于指示所述第二终端在第二等待时长结束后,重启被暂停的发送数据传输请求的操作。Sending fourth information to the second terminal whose data transmission frequency is less than or equal to the preset transmission frequency, where the fourth information carries the second waiting duration, and is used to indicate that the second terminal is suspended after the second waiting duration ends. The operation of sending a data transfer request. 根据权利要求1所述的数据传输的控制方法,其中,所述根据所述数据传输请求,确定服务器当前未处理的数据传输请求数量,包括:The method for controlling data transmission according to claim 1, wherein the determining, according to the data transmission request, the number of data transmission requests that are not currently processed by the server, includes: 当预设时长内从终端处接收到的数据传输请求的数量超过预设数量时,确定服务器当前未处理的数据传输请求数量。When the number of data transmission requests received from the terminal within the preset duration exceeds a preset number, the number of data transmission requests that the server does not currently process is determined. 根据权利要求2所述的数据传输的控制方法,其中,所述方法还包括:The method of controlling data transmission according to claim 2, wherein the method further comprises: 若检测到未处理的数据传输请求的数量小于预设第一数量阈值且大于预设第二数量阈值,则响应未处理的数据传输请求。If it is detected that the number of unprocessed data transmission requests is less than a preset first number threshold and greater than a preset second number threshold, then an unprocessed data transmission request is responded to. 一种数据传输的控制装置,其中,所述装置包括:A control device for data transmission, wherein the device comprises: 接收单元,用于从终端处接收数据传输请求;a receiving unit, configured to receive a data transmission request from the terminal; 确定单元,用于根据所述数据传输请求,确定服务器当前未处理的数据传输请求数量;a determining unit, configured to determine, according to the data transmission request, a quantity of data transmission requests that are not currently processed by the server; 获取单元,用于获取预设第一数量阈值;An acquiring unit, configured to acquire a preset first quantity threshold; 广播单元,用于若判断出所述未处理的数据传输请求数量大于预设第一数量阈值,则向对应的终端广播第一信息,所述第一信息用于指示所述对应的终端在检测到向服务器发送数据传输请求时,暂停所述发送数据传输请求的操作。a broadcast unit, configured to: if the number of the unprocessed data transmission requests is greater than a preset first number threshold, broadcast the first information to the corresponding terminal, where the first information is used to indicate that the corresponding terminal is detecting The operation of transmitting the data transmission request is suspended when a data transmission request is sent to the server. 根据权利要求8所述的数据传输的控制装置,其中,所述装置还包括:The control device for data transmission according to claim 8, wherein the device further comprises: 发送单元,用于若检测到未处理的数据传输请求的数量小于或等于预设第二数量阈值,则向对应的终端发送第二信息,所述第二信息用于指示所述对应的终端重启被暂停的发送数据传输请求的操作,预设第二数量阈值小于预设第一数量阈值。a sending unit, configured to send, to the corresponding terminal, second information, if the number of the unprocessed data transmission request is less than or equal to the preset second quantity threshold, where the second information is used to indicate that the corresponding terminal is restarted The operation of transmitting the data transmission request is suspended, and the preset second quantity threshold is less than the preset first quantity threshold. 根据权利要求8所述的数据传输的控制装置,其中,所述装置还包括:第一重启单元,用于The control device for data transmission according to claim 8, wherein the device further comprises: a first restart unit, configured to: 获取对应的终端的数据传输频率;Obtaining the data transmission frequency of the corresponding terminal; 向数据传输频率大于预设传输频率的第一终端发送第三信息,所述第三信息携带第一等待时长,并用于指示所述第一终端在第一等待时长结束后,重启被暂停的发送数据传输请求的操作。Transmitting the third information to the first terminal with the data transmission frequency greater than the preset transmission frequency, where the third information carries the first waiting duration, and is used to indicate that the first terminal restarts the suspended transmission after the first waiting duration ends. The operation of the data transfer request. 根据权利要求10所述的数据传输的控制装置,其中,所述装置还包括:The control device for data transmission according to claim 10, wherein the device further comprises: 第二重启单元,用于向数据传输频率小于或等于预设传输频率的第二终端发送第四信息,所述第四信息携带第二等待时长,并用于指示所述第二终端在第二等待时长结束后,重启被暂停的发送数据传输请求的操作。a second restarting unit, configured to send fourth information to the second terminal whose data transmission frequency is less than or equal to the preset transmission frequency, where the fourth information carries the second waiting duration, and is used to indicate that the second terminal is waiting in the second After the duration is over, the operation of transmitting the data transmission request that is suspended is restarted. 根据权利要求9所述的数据传输的控制装置,其中,所述装置还包括修改单元,用于:The control device for data transmission according to claim 9, wherein the device further comprises a modifying unit for: 若接收到用于指示对预设第一数量阈值及预设第二数量阈值进行修改的指令,则按照所述指令对预设第一数量阈值及预设第二数量阈值进行修改。And if the instruction for instructing to modify the preset first quantity threshold and the preset second quantity threshold is received, modifying the preset first quantity threshold and the preset second quantity threshold according to the instruction. 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上执行时,使得所述计算机执行如权利要求1至7中任一项所述的数据传输的控制方法。A storage medium having stored thereon a computer program, wherein when the computer program is executed on a computer, the computer is caused to perform the control method of data transmission according to any one of claims 1 to 7. 一种服务器,包括存储器,处理器,其中,所述处理器通过调用所述存储器中存储的计算机程序,用于执行如下步骤:A server includes a memory, a processor, wherein the processor executes the following steps by calling a computer program stored in the memory: 从终端处接收数据传输请求;Receiving a data transmission request from the terminal; 根据所述数据传输请求,确定服务器当前未处理的数据传输请求数量;Determining, according to the data transmission request, a quantity of data transmission requests that are not currently processed by the server; 获取预设第一数量阈值;Obtaining a preset first quantity threshold; 若判断出所述未处理的数据传输请求数量大于预设第一数量阈值,则向对应的终端广播第一信息,所述第一信息用于指示所述对应的终端在检测到向服务器发送数据传输请求时,暂停所述发送数据传输请求的操作。If it is determined that the number of unprocessed data transmission requests is greater than a preset first number threshold, the first information is broadcast to the corresponding terminal, where the first information is used to indicate that the corresponding terminal detects that the data is sent to the server. When the request is transmitted, the operation of transmitting the data transmission request is suspended. 根据权利要求14所述的服务器,其中,所述处理器执行如下步骤:The server of claim 14, wherein the processor performs the following steps: 若检测到未处理的数据传输请求的数量小于或等于预设第二数量阈值,则向对应的终端发送第二信息,所述第二信息用于指示所述对应的终端重启被暂停的发送数据传输请求的操作,预设第二数量阈值小于预设第一数量阈值。And if the number of the unprocessed data transmission requests is less than or equal to the preset second quantity threshold, sending the second information to the corresponding terminal, where the second information is used to indicate that the corresponding terminal restarts the suspended transmission data. The operation of transmitting the request, the preset second quantity threshold is less than the preset first quantity threshold. 根据权利要求15所述的服务器,其中,所述处理器执行如下步骤:The server of claim 15 wherein said processor performs the following steps: 若接收到用于指示对预设第一数量阈值及预设第二数量阈值进行修改的指令,则按照所述指令对预设第一数量阈值及预设第二数量阈值进行修改。And if the instruction for instructing to modify the preset first quantity threshold and the preset second quantity threshold is received, modifying the preset first quantity threshold and the preset second quantity threshold according to the instruction. 根据权利要求14所述的服务器,其中,所述处理器执行如下步骤:The server of claim 14, wherein the processor performs the following steps: 获取对应的终端的数据传输频率;Obtaining the data transmission frequency of the corresponding terminal; 向数据传输频率大于预设传输频率的第一终端发送第三信息,所述第三信息携带第一等待时长,并用于指示所述第一终端在第一等待时长结束后,重启被暂停的发送数据传输请求的操作。Transmitting the third information to the first terminal with the data transmission frequency greater than the preset transmission frequency, where the third information carries the first waiting duration, and is used to indicate that the first terminal restarts the suspended transmission after the first waiting duration ends. The operation of the data transfer request. 根据权利要求17所述的服务器,其中,所述处理器执行如下步骤:The server of claim 17 wherein said processor performs the following steps: 向数据传输频率小于或等于预设传输频率的第二终端发送第四信息,所述第四信息携带第二等待时长,并用于指示所述第二终端在第二等待时长结束后,重启被暂停的发送数据传输请求的操作。Sending fourth information to the second terminal whose data transmission frequency is less than or equal to the preset transmission frequency, where the fourth information carries the second waiting duration, and is used to indicate that the second terminal is suspended after the second waiting duration ends. The operation of sending a data transfer request. 根据权利要求14所述的服务器,其中,所述处理器执行如下步骤:The server of claim 14, wherein the processor performs the following steps: 当预设时长内从终端处接收到的数据传输请求的数量超过预设数量时,确定服务器当前未处理的数据传输请求数量。When the number of data transmission requests received from the terminal within the preset duration exceeds a preset number, the number of data transmission requests that the server does not currently process is determined. 一种数据传输的控制系统,包括服务器及终端,其中,所述服务器包括如权利要求8至12中任一项所述的数据传输的控制装置。A control system for data transmission, comprising a server and a terminal, wherein the server comprises the control device for data transmission according to any one of claims 8 to 12.
PCT/CN2017/095529 2016-10-25 2017-08-01 Data transmission control method, apparatus, storage medium, server and system Ceased WO2018076861A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610941989.5 2016-10-25
CN201610941989.5A CN106412091A (en) 2016-10-25 2016-10-25 Data transmission control method, device and system

Publications (1)

Publication Number Publication Date
WO2018076861A1 true WO2018076861A1 (en) 2018-05-03

Family

ID=58013058

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/095529 Ceased WO2018076861A1 (en) 2016-10-25 2017-08-01 Data transmission control method, apparatus, storage medium, server and system

Country Status (2)

Country Link
CN (1) CN106412091A (en)
WO (1) WO2018076861A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804290A (en) * 2018-06-13 2018-11-13 姜锋 A method and system for information transmission security of mobile storage devices
CN110427294A (en) * 2019-06-17 2019-11-08 平安普惠企业管理有限公司 Integrated environment monitoring method, device, readable storage medium storing program for executing and program product
CN110471749A (en) * 2019-07-12 2019-11-19 平安普惠企业管理有限公司 Task processing method, device, computer readable storage medium and computer equipment
CN111557652A (en) * 2020-03-23 2020-08-21 广东艾诗凯奇智能科技有限公司 Human health data transmission method and related equipment and storage device thereof
CN113098667A (en) * 2021-03-30 2021-07-09 联芸科技(杭州)有限公司 Data transmission method, system, computer device and medium
CN113780755A (en) * 2021-08-20 2021-12-10 阳光电源股份有限公司 Measuring point scheduling method and device and power management system

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412091A (en) * 2016-10-25 2017-02-15 广东欧珀移动通信有限公司 Data transmission control method, device and system
CN106878957B (en) * 2017-03-10 2019-05-14 Oppo广东移动通信有限公司 Broadcast queue's generation method, device and terminal device
CN106936828B (en) * 2017-03-10 2020-01-14 Oppo广东移动通信有限公司 Method, device and terminal for adjusting broadcast receiver queue
CN106899943B (en) * 2017-03-10 2019-12-06 Oppo广东移动通信有限公司 Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN107422986A (en) * 2017-05-10 2017-12-01 郑州云海信息技术有限公司 A kind of control device and method of cloud storage system concurrent reading and writing request
CN107204875B (en) * 2017-05-11 2022-08-23 腾讯科技(深圳)有限公司 Data reporting link monitoring method and device, electronic equipment and storage medium
CN108600116A (en) * 2018-05-24 2018-09-28 苏州乐麟无线信息科技有限公司 A kind for the treatment of method and apparatus of resource request
CN110620798B (en) * 2018-06-19 2023-08-04 北京京东尚科信息技术有限公司 Control method, system, equipment and storage medium for FTP connection
CN112105058B (en) * 2019-02-12 2023-07-04 Oppo广东移动通信有限公司 Link connection method and related device
CN111935497B (en) * 2020-09-18 2021-01-12 武汉中科通达高新技术股份有限公司 Video stream management method and data server for traffic police system
CN112896240B (en) * 2021-03-17 2022-04-22 北京交通大学 Multi-sensor train positioning method based on edge calculation
CN114004586A (en) * 2021-10-25 2022-02-01 安庆师范大学 An information collection and publishing system based on cloud storage
CN114218145B (en) * 2021-12-17 2025-02-11 山东云海国创云计算装备产业创新中心有限公司 A CHI protocol anti-blocking interconnection method, system, device and storage medium
CN115604360A (en) * 2022-09-29 2023-01-13 江苏锐创软件技术有限公司(Cn) Video data penetration communication method and device, electronic equipment and storage medium
CN120052021A (en) * 2022-11-10 2025-05-27 Oppo广东移动通信有限公司 Communication method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003045047A2 (en) * 2001-11-22 2003-05-30 Sk Telecom Co., Ltd. Method for providing a video data streaming service
CN103634224A (en) * 2012-08-22 2014-03-12 深圳市腾讯计算机系统有限公司 Method and system for transmitting data in network
CN105577772A (en) * 2015-12-17 2016-05-11 腾讯科技(北京)有限公司 Material receiving method, material uploading method and device
CN105933283A (en) * 2016-03-31 2016-09-07 乐视控股(北京)有限公司 Method and device for providing multimedia content executed on server side
CN106412091A (en) * 2016-10-25 2017-02-15 广东欧珀移动通信有限公司 Data transmission control method, device and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3413788B2 (en) * 1997-09-25 2003-06-09 日本電信電話株式会社 Communication method having communication protocol for performing flow control between layers and data communication terminal
KR100401191B1 (en) * 1999-02-13 2003-10-10 삼성전자주식회사 Apparatus and method for controlling transmission of reverse link in cdma comminication system
CN101557335B (en) * 2008-04-11 2012-11-21 华为技术有限公司 Method for controlling node to join peer-to-peer network and device thereof
CN102548012B (en) * 2010-12-22 2019-03-15 中兴通讯股份有限公司 A kind of accidental access method and terminal
CN102694678A (en) * 2012-05-04 2012-09-26 青岛海信传媒网络技术有限公司 Method, system, network management server and network element device for alarm message transmission
CN104243343B (en) * 2014-09-29 2018-02-09 华为技术有限公司 A kind of method and the network equipment for determining message impact

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003045047A2 (en) * 2001-11-22 2003-05-30 Sk Telecom Co., Ltd. Method for providing a video data streaming service
CN103634224A (en) * 2012-08-22 2014-03-12 深圳市腾讯计算机系统有限公司 Method and system for transmitting data in network
CN105577772A (en) * 2015-12-17 2016-05-11 腾讯科技(北京)有限公司 Material receiving method, material uploading method and device
CN105933283A (en) * 2016-03-31 2016-09-07 乐视控股(北京)有限公司 Method and device for providing multimedia content executed on server side
CN106412091A (en) * 2016-10-25 2017-02-15 广东欧珀移动通信有限公司 Data transmission control method, device and system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804290A (en) * 2018-06-13 2018-11-13 姜锋 A method and system for information transmission security of mobile storage devices
CN108804290B (en) * 2018-06-13 2022-03-18 姜锋 Method and system for information transmission safety of mobile storage equipment
CN110427294A (en) * 2019-06-17 2019-11-08 平安普惠企业管理有限公司 Integrated environment monitoring method, device, readable storage medium storing program for executing and program product
CN110427294B (en) * 2019-06-17 2022-07-29 平安普惠企业管理有限公司 System integration environment monitoring method, apparatus, readable storage medium and program product
CN110471749A (en) * 2019-07-12 2019-11-19 平安普惠企业管理有限公司 Task processing method, device, computer readable storage medium and computer equipment
CN111557652A (en) * 2020-03-23 2020-08-21 广东艾诗凯奇智能科技有限公司 Human health data transmission method and related equipment and storage device thereof
CN113098667A (en) * 2021-03-30 2021-07-09 联芸科技(杭州)有限公司 Data transmission method, system, computer device and medium
CN113098667B (en) * 2021-03-30 2023-06-23 联芸科技(杭州)股份有限公司 Data transmission method, system, computer device and medium
CN113780755A (en) * 2021-08-20 2021-12-10 阳光电源股份有限公司 Measuring point scheduling method and device and power management system
CN113780755B (en) * 2021-08-20 2024-05-14 阳光电源股份有限公司 Measuring point scheduling method, device and power management system

Also Published As

Publication number Publication date
CN106412091A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
WO2018076861A1 (en) Data transmission control method, apparatus, storage medium, server and system
WO2018076889A1 (en) Data backup method, device, system, storage medium and server
WO2018076841A1 (en) Data sharing method, apparatus, storage medium and server
WO2018076867A1 (en) Data backup deleting method, device and system, storage medium and server
WO2018076812A1 (en) Data request response method and device, storage medium, server and system
WO2018076866A1 (en) Data processing method, device, storage medium, electronic device and server
WO2018076868A1 (en) Data synchronization method, device and system, storage medium and server
WO2018076819A1 (en) Data upload method, apparatus, storage medium, electronic device and system
WO2018161585A1 (en) Method and apparatus for controlling frame rate of electronic device, storage medium, and electronic device
WO2018076829A1 (en) Terminal data processing method, apparatus, system, storage medium and server
WO2016126100A1 (en) Method for controlling touch screen and electronic device supporting thereof
WO2016065619A1 (en) Data traffic management method and device
WO2017206878A1 (en) Wakeup lock-based processing method and apparatus, storage medium, and electronic device
WO2018076869A1 (en) Data backup method, apparatus, storage medium and electronic device
WO2017206875A1 (en) Data packet-based processing method and apparatus, storage medium, and electronic device
WO2017206883A1 (en) Application processing method and apparatus, storage medium, and electronic device
WO2018076864A1 (en) Data synchronization method, apparatus, storage medium and electronic device
WO2018161593A1 (en) Broadcast processing method, device, storage medium and terminal device
WO2018161601A1 (en) Screen backlight adjusting method, device, storage medium and electronic device
WO2020060021A1 (en) Packet data unit (pdu) session control method and apparatus
WO2018076863A1 (en) Data storage method, apparatus, storage medium, server and system
WO2020052247A1 (en) Network-resource batch loading method, smart tv, storage medium, and device
WO2020032636A1 (en) Electronic device for providing notification message and method thereof
WO2018076840A1 (en) Data sharing method, device, storage medium and server
WO2018161588A1 (en) Broadcast receiver queue adjustment method, apparatus, storage medium, and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17865834

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17865834

Country of ref document: EP

Kind code of ref document: A1