WO2016169328A1 - Method for implementing flow control, and client - Google Patents

Method for implementing flow control, and client Download PDF

Info

Publication number
WO2016169328A1
WO2016169328A1 PCT/CN2016/074151 CN2016074151W WO2016169328A1 WO 2016169328 A1 WO2016169328 A1 WO 2016169328A1 CN 2016074151 W CN2016074151 W CN 2016074151W WO 2016169328 A1 WO2016169328 A1 WO 2016169328A1
Authority
WO
WIPO (PCT)
Prior art keywords
flow control
client
control information
server
configuration information
Prior art date
Application number
PCT/CN2016/074151
Other languages
French (fr)
Chinese (zh)
Inventor
张华天
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016169328A1 publication Critical patent/WO2016169328A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • the present application relates to, but is not limited to, a communication device data processing technology, and more particularly to a method and a client for implementing flow control.
  • flow control technology is widely used in communication networks.
  • the main function of the traffic control technology used in the existing device is to control the data rate of the uplink data on the terminal side to be smaller than the uplink communication rate, and control the data rate of the downlink data to be smaller than the downlink communication rate. It is well known to those skilled in the art that flow control can be implemented using existing token bucket technology.
  • the function of the client is usually implemented by the hardware and software of the client.
  • the functional software can be divided into operating systems, drivers and applications.
  • an operating system is a basic platform for implementing drivers and applications, and an operating system implements cooperation with hardware through a driver.
  • the boot process of the operating system is roughly divided into: the boot phase and the system load phase. In the system loading phase, load system programs and drivers, set the system operating environment, and so on. After the system loading phase, the operating system finishes booting, usually loading pre-configured applications.
  • the flow control of the client For existing clients running the operating system, the flow control of the client, such as the flow control unit in the LINUX operating system, needs to be configured and activated by the application (such as an agent) loaded after the operating system is started, and then flow control. That is to say, flow control cannot be performed during the startup of the operating system.
  • the application such as an agent
  • the client needs to perform a large amount of data interaction with the server to obtain the data required for the operating system startup from the server. If a large number of clients are started at the same time, the server will be enabled. It is necessary to transmit corresponding data for each client that is started at the same time, which will cause network congestion between the client and the server, and also cause the server load to be multiplied or even down, thereby reducing the stability of the server and the network. Sex.
  • the embodiment of the invention provides a method and a client for implementing flow control, which can perform flow control during the startup process of the operating system, and improve the stability of the server and the network.
  • the embodiment of the invention discloses a method for implementing flow control, which comprises:
  • the flow control information is acquired; wherein the flow control information includes an uplink communication rate and a downlink communication rate;
  • the client performs flow control according to the obtained flow control information.
  • the method further includes: the client receiving remote configuration information from the server, and updating the flow control information to the received remote Configure the information and perform flow control according to the updated flow control information.
  • the acquiring the flow control information includes: the client setting the preset local configuration information as the flow control information.
  • the obtaining the flow control information includes: the client requesting remote configuration information from the server, and setting the requested remote configuration information to the flow control information.
  • the detecting, by the client, the interaction data with the preset server includes: the client detecting that there is data waiting to be sent to the server or receiving data from the server.
  • the embodiment of the invention further discloses a client for implementing flow control, comprising a detecting unit, an acquiring unit and a flow control unit, wherein
  • the detecting unit is configured to: when the operating system startup of the client is started, when the client detects that the client interacts with the preset server, the sending instruction is sent;
  • An acquiring unit configured to: receive an acquisition indication, and obtain flow control information; where the flow control information includes an uplink communication rate and a downlink communication rate;
  • the flow control unit is configured to: perform flow control according to flow control information from the acquisition unit.
  • the obtaining unit is further configured to: receive remote configuration information from the server, and update the flow control information to the received remote configuration information.
  • the obtaining unit is configured to: receive an acquisition indication, and set preset local configuration information to the flow control information.
  • the obtaining unit is configured to: receive an acquisition indication, request remote configuration information from the server, and set the requested remote configuration information to the flow control information.
  • the detecting unit is configured to: detect that there is data waiting to be sent to the server or receive data from the server.
  • an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, the method for implementing flow control being implemented when the computer executable instructions are executed.
  • the technical solution provided by the embodiment of the present invention includes: when the client detects that it interacts with a preset server, acquires flow control information;
  • the information includes an uplink communication rate and a downlink communication rate; the client performs flow control according to the obtained flow control information.
  • each client performs flow control in time during the startup process of the operating system, thereby avoiding the process of starting the operating system.
  • Network congestion between the client and the server reduces the load on the server and improves the stability of the server and the network.
  • FIG. 1 is a flowchart of a method for implementing flow control according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a client that implements flow control according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for implementing flow control according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:
  • Step 101 In the operating system startup of the client, when the client detects that it interacts with the preset server, the flow control information is obtained.
  • the flow control information includes an uplink communication rate and a downlink communication rate.
  • step 101 the client detects that it interacts with the pre-set server, including: the client detects that there is data waiting to be sent to the server or receives data from the server.
  • step 101 after the driver of the client is loaded in the operating system startup of the client, the driver detects whether there is data waiting to be sent to the server or whether data is received from the server.
  • the specific implementation of the present invention is not limited to the scope of protection of the present application, and details are not described herein again.
  • step 101 acquiring flow control information includes: the client sets the preset local configuration information as flow control information.
  • step 101 in step 101, acquiring flow control information includes: the client requests remote configuration information from the server, and sets the requested remote configuration information as flow control information.
  • acquiring flow control information includes: the client requests remote configuration information from the server, and sets the requested remote configuration information as flow control information.
  • Step 102 The client performs flow control according to the obtained flow control information.
  • the current flow control technology such as the token bucket technology, can perform flow control according to the obtained flow control information, so that the data rate of controlling the uplink data is smaller than the uplink communication rate, and the data rate of the downlink data is controlled to be smaller than the downlink communication rate.
  • the method further includes: the client receiving the remote configuration information from the server, updating the flow control information to the received remote configuration information, and performing flow control according to the updated flow control information.
  • the server remotely configures the flow control information of each client under its jurisdiction, dynamically manages how each client performs flow control, and improves the flexibility of the method provided by the embodiment.
  • the flow control information further includes switch information for instructing to start or disable the flow control.
  • performing flow control according to the flow control information may include: if the switch information is the start flow control, according to the flow control information In the uplink communication rate and the downlink communication rate, flow control is performed; if the switch information is off flow control, the flow control is stopped.
  • the technical solution provided by the embodiment of the present invention is applied to a diskless system.
  • the client provided in this embodiment includes a detecting unit, an acquiring unit, and a flow control unit that can be disposed in a driver of the client, where
  • the detecting unit is configured to: when the operating system startup of the client is started, when the client detects that the client interacts with the preset server, the sending instruction is sent;
  • An acquiring unit configured to: receive an acquisition indication, and obtain flow control information; where the flow control information includes an uplink communication rate and a downlink communication rate;
  • the flow control unit is configured to: perform flow control according to flow control information from the acquisition unit.
  • the obtaining unit is configured to: receive the acquisition indication, and set the preset local configuration information as the flow control information.
  • the obtaining unit is configured to: receive the acquisition indication, request the remote configuration information from the server, and set the requested remote configuration information as the flow control information.
  • the detecting unit is configured to: detect that there is data waiting to be sent to the server or receive data from the server.
  • the obtaining unit is further configured to: receive remote configuration information from the server, and update the flow control information to the received remote configuration information.
  • an embodiment of the present invention further provides a client, including: a communication unit and a processor, where the communication unit is configured to: interact with a preset server; the processor is configured to: In the startup of the operating system of the client, when detecting that the communication unit interacts with the preset server, the flow control information is acquired, and the flow control is performed according to the obtained flow control information.
  • an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, and the method for implementing flow control is implemented when the computer executable instructions are executed.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • This application is not limited to any specific combination of hardware and software.
  • the embodiment of the invention provides a method and a client for implementing flow control, which realizes that when a large number of clients are simultaneously started, and both need to obtain a large amount of data from the server, each client performs timely in the startup process of the operating system.
  • Traffic control avoids network congestion between the client and the server during the startup process of the operating system, reduces the load on the server, and improves the stability of the server and the network.

Abstract

A method for implementing flow control comprises: during starting of an operating system of a client, when the client detects that the operating system and a preset server interact data, the client acquires flow control information, wherein the flow control information comprises an uplink communication rate and a downlink communication rate; and the client executes flow control according to the obtained flow control information. The method implements flow control in the starting process of an operating system and improves the stability of a network and a server.

Description

一种实现流量控制的方法和客户端Method and client for realizing flow control 技术领域Technical field
本申请涉及但不限于通信设备数据处理技术,尤指一种实现流量控制的方法和客户端。The present application relates to, but is not limited to, a communication device data processing technology, and more particularly to a method and a client for implementing flow control.
背景技术Background technique
为了保证有限的网络带宽资源得以充分的利用,在通信网络中广泛采用了流量控制技术。现有设备(如客户端或服务端)中采用的流量控制技术的主要作用是,在终端侧控制上行方向数据的数据率小于上行通信速率,同时控制下行方向数据的数据率小于下行通信速率。本领域技术人员公知的是,可以采用现有令牌桶技术实现流量控制。In order to ensure that the limited network bandwidth resources are fully utilized, flow control technology is widely used in communication networks. The main function of the traffic control technology used in the existing device (such as the client or the server) is to control the data rate of the uplink data on the terminal side to be smaller than the uplink communication rate, and control the data rate of the downlink data to be smaller than the downlink communication rate. It is well known to those skilled in the art that flow control can be implemented using existing token bucket technology.
以现有运行操作系统的客户端为例来看,客户端的功能通常由客户端的硬件和软件共同配合实现。按照功能软件可以分为操作系统、驱动程序和应用程序等。本领域技术人员公知的是,操作系统是实现驱动程序和应用程序运行的基础平台,操作系统通过驱动程序实现与硬件的配合。客户端上电后,启动操作系统。操作系统的启动过程大致分成:引导阶段和系统加载阶段。在系统加载阶段中,加载系统程序和驱动程序,设置系统运行环境等。系统加载阶段后,操作系统完成启动,通常加载预先设置的应用程序。Taking the client running the operating system as an example, the function of the client is usually implemented by the hardware and software of the client. According to the functional software can be divided into operating systems, drivers and applications. It is well known to those skilled in the art that an operating system is a basic platform for implementing drivers and applications, and an operating system implements cooperation with hardware through a driver. After the client is powered on, start the operating system. The boot process of the operating system is roughly divided into: the boot phase and the system load phase. In the system loading phase, load system programs and drivers, set the system operating environment, and so on. After the system loading phase, the operating system finishes booting, usually loading pre-configured applications.
对于现有运行操作系统的客户端,客户端的流量控制如LINUX操作系统中的流量控制单元,需要由操作系统启动后加载的应用程序(如代理程序)配置并激活、再进行流量控制。也就是说,在操作系统启动过程中,无法进行流量控制。以网络无盘系统为例来看,客户端在操作系统启动过程中,需要与服务端进行大量数据交互以从服务端获取操作系统启动所需数据,如果大量客户端同时启动,将使得服务端需要为同时启动的每个客户端传送对应的数据,这样会造成客户端与服务端之间的网络拥塞,也会造成服务端负荷成倍增加甚至宕机,从而降低了服务端和网络的稳定性。 For existing clients running the operating system, the flow control of the client, such as the flow control unit in the LINUX operating system, needs to be configured and activated by the application (such as an agent) loaded after the operating system is started, and then flow control. That is to say, flow control cannot be performed during the startup of the operating system. Take the network diskless system as an example. During the startup process of the operating system, the client needs to perform a large amount of data interaction with the server to obtain the data required for the operating system startup from the server. If a large number of clients are started at the same time, the server will be enabled. It is necessary to transmit corresponding data for each client that is started at the same time, which will cause network congestion between the client and the server, and also cause the server load to be multiplied or even down, thereby reducing the stability of the server and the network. Sex.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供了一种实现流量控制的方法和客户端,能够在操作系统启动过程中进行流量控制,提高服务端和网络的稳定性。The embodiment of the invention provides a method and a client for implementing flow control, which can perform flow control during the startup process of the operating system, and improve the stability of the server and the network.
本发明实施例公开了一种实现流量控制的方法,包括:The embodiment of the invention discloses a method for implementing flow control, which comprises:
在客户端的操作系统启动中,当客户端检测出其与预先设置的服务端交互数据时,获取流控信息;其中,流控信息包括上行通信速率和下行通信速率;In the operating system startup of the client, when the client detects that it interacts with the preset server, the flow control information is acquired; wherein the flow control information includes an uplink communication rate and a downlink communication rate;
客户端按照获得的流控信息进行流量控制。The client performs flow control according to the obtained flow control information.
可选地,所述客户端按照获得的流控信息进行流量控制之后,上述方法还包括:所述客户端接收来自所述服务端的远程配置信息,将所述流控信息更新为接收到的远程配置信息,并按照更新后的流控信息进行流量控制。Optionally, after the client performs flow control according to the obtained flow control information, the method further includes: the client receiving remote configuration information from the server, and updating the flow control information to the received remote Configure the information and perform flow control according to the updated flow control information.
可选地,所述获取流控信息包括:所述客户端将预先设置的本地配置信息设置为所述流控信息。Optionally, the acquiring the flow control information includes: the client setting the preset local configuration information as the flow control information.
可选地,所述获取流控信息包括:所述客户端向所述服务端请求远程配置信息,并将请求到的远程配置信息设置为所述流控信息。Optionally, the obtaining the flow control information includes: the client requesting remote configuration information from the server, and setting the requested remote configuration information to the flow control information.
可选地,所述客户端检测出其与预先设置的服务端交互数据包括:所述客户端检测出存在等待向所述服务端发送的数据或者接收到来自所述服务端的数据。Optionally, the detecting, by the client, the interaction data with the preset server includes: the client detecting that there is data waiting to be sent to the server or receiving data from the server.
本发明实施例还公开了一种实现流量控制的客户端,包括检测单元、获取单元和流控单元,其中,The embodiment of the invention further discloses a client for implementing flow control, comprising a detecting unit, an acquiring unit and a flow control unit, wherein
检测单元,设置为:在客户端的操作系统启动中,当检测出客户端与预先设置的服务端交互数据时,发送获取指示;The detecting unit is configured to: when the operating system startup of the client is started, when the client detects that the client interacts with the preset server, the sending instruction is sent;
获取单元,设置为:接收获取指示,获取流控信息;其中,流控信息包括上行通信速率和下行通信速率;An acquiring unit, configured to: receive an acquisition indication, and obtain flow control information; where the flow control information includes an uplink communication rate and a downlink communication rate;
流控单元,设置为:按照来自获取单元的流控信息进行流量控制。 The flow control unit is configured to: perform flow control according to flow control information from the acquisition unit.
可选地,所述获取单元还设置为:接收来自所述服务端的远程配置信息,将所述流控信息更新为接收到的远程配置信息。Optionally, the obtaining unit is further configured to: receive remote configuration information from the server, and update the flow control information to the received remote configuration information.
可选地,所述获取单元是设置为:接收获取指示,将预先设置的本地配置信息设置为所述流控信息。Optionally, the obtaining unit is configured to: receive an acquisition indication, and set preset local configuration information to the flow control information.
可选地,所述获取单元是设置为:接收获取指示,向所述服务端请求远程配置信息,并将请求到的远程配置信息设置为所述流控信息。Optionally, the obtaining unit is configured to: receive an acquisition indication, request remote configuration information from the server, and set the requested remote configuration information to the flow control information.
可选地,所述检测单元是设置为:检测出存在等待向所述服务端发送的数据或者接收到来自所述服务端的数据。Optionally, the detecting unit is configured to: detect that there is data waiting to be sent to the server or receive data from the server.
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现所述实现流量控制的方法。In addition, an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, the method for implementing flow control being implemented when the computer executable instructions are executed.
与现有技术相比,本发明实施例提供的技术方案包括:在客户端的操作系统启动中,当客户端检测出其与预先设置的服务端交互数据时,获取流控信息;其中,流控信息包括上行通信速率和下行通信速率;客户端按照获得的流控信息进行流量控制。通过本发明实施例,实现了在大量客户端同时启动,且均需要从服务端获取大量数据时,每个客户端在其操作系统启动过程中分别及时进行流量控制,避免了在操作系统启动过程中客户端与服务端之间的网络拥塞,降低了服务端的负荷,提高了服务端和网络的稳定性。Compared with the prior art, the technical solution provided by the embodiment of the present invention includes: when the client detects that it interacts with a preset server, acquires flow control information; The information includes an uplink communication rate and a downlink communication rate; the client performs flow control according to the obtained flow control information. Through the embodiment of the present invention, when a large number of clients are simultaneously started, and both need to obtain a large amount of data from the server, each client performs flow control in time during the startup process of the operating system, thereby avoiding the process of starting the operating system. Network congestion between the client and the server reduces the load on the server and improves the stability of the server and the network.
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present application will be set forth in the description which follows. The objectives and other advantages of the present invention can be realized and obtained by the structure of the invention.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。The drawings are used to provide a further understanding of the technical solutions of the present application, and constitute a part of the specification, which is used together with the embodiments of the present application to explain the technical solutions of the present application, and does not constitute a limitation of the technical solutions of the present application.
图1为本发明实施例提供的实现流量控制的方法的流程图;FIG. 1 is a flowchart of a method for implementing flow control according to an embodiment of the present invention;
图2为本发明实施例提供的实现流量控制的客户端的组成结构示意图。 2 is a schematic structural diagram of a client that implements flow control according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
图1为本发明实施例提供的实现流量控制的方法的流程图,如图1所示,所述方法包括以下步骤:FIG. 1 is a flowchart of a method for implementing flow control according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:
步骤101:在客户端的操作系统启动中,当客户端检测出其与预先设置的服务端交互数据时,获取流控信息。Step 101: In the operating system startup of the client, when the client detects that it interacts with the preset server, the flow control information is obtained.
其中,流控信息包括上行通信速率和下行通信速率。The flow control information includes an uplink communication rate and a downlink communication rate.
在步骤101中,客户端检测出其与预先设置的服务端交互数据,包括:客户端检测出存在等待向服务端发送的数据或者接收到来自服务端的数据。In step 101, the client detects that it interacts with the pre-set server, including: the client detects that there is data waiting to be sent to the server or receives data from the server.
步骤101中,在客户端的操作系统启动中,加载客户端的驱动程序后,驱动程序检测是否存在等待向服务端发送的数据或者是否接收到来自服务端的数据。其具体实现,属于本领域技术人员的惯用技术手段,并不用于限定本申请的保护范围,此处不再赘述。In step 101, after the driver of the client is loaded in the operating system startup of the client, the driver detects whether there is data waiting to be sent to the server or whether data is received from the server. The specific implementation of the present invention is not limited to the scope of protection of the present application, and details are not described herein again.
在本发明的一个实施例中,步骤101中,获取流控信息,包括:客户端将预先设置的本地配置信息设置为流控信息。In an embodiment of the present invention, in step 101, acquiring flow control information includes: the client sets the preset local configuration information as flow control information.
在本发明的另一个实施例中,步骤101中,获取流控信息,包括:客户端向服务端请求远程配置信息,并将请求到的远程配置信息设置为流控信息。其具体实现,属于本领域技术人员的惯用技术手段,并不用于限定本申请的保护范围,此处不再赘述。In another embodiment of the present invention, in step 101, acquiring flow control information includes: the client requests remote configuration information from the server, and sets the requested remote configuration information as flow control information. The specific implementation of the present invention is not limited to the scope of protection of the present application, and details are not described herein again.
步骤102:客户端按照获得的流控信息进行流量控制。Step 102: The client performs flow control according to the obtained flow control information.
可以通过现有流量控制技术如令牌桶技术,按照获得的流控信息进行流量控制,以实现控制上行方向数据的数据率小于上行通信速率,同时控制下行方向数据的数据率小于下行通信速率。 The current flow control technology, such as the token bucket technology, can perform flow control according to the obtained flow control information, so that the data rate of controlling the uplink data is smaller than the uplink communication rate, and the data rate of the downlink data is controlled to be smaller than the downlink communication rate.
可选地,步骤102之后,上述方法还包括:客户端接收来自服务端的远程配置信息,将流控信息更新为接收到的远程配置信息,并按照更新后的流控信息进行流量控制。Optionally, after the step 102, the method further includes: the client receiving the remote configuration information from the server, updating the flow control information to the received remote configuration information, and performing flow control according to the updated flow control information.
这样,实现了服务端远程配置其管辖下的每个客户端的流控信息,动态管理每个客户端分别如何进行流量控制,提高了本实施例提供方法的灵活性。In this way, the server remotely configures the flow control information of each client under its jurisdiction, dynamically manages how each client performs flow control, and improves the flexibility of the method provided by the embodiment.
在本发明的实施例中,流控信息还包括用于指示启动或者关闭流量控制的开关信息,此时,按照流控信息进行流量控制可以包括:如果开关信息为启动流量控制,按照流控信息中的上行通信速率和下行通信速率进行流量控制;如果开关信息为关闭流量控制,停止进行流量控制。In the embodiment of the present invention, the flow control information further includes switch information for instructing to start or disable the flow control. At this time, performing flow control according to the flow control information may include: if the switch information is the start flow control, according to the flow control information In the uplink communication rate and the downlink communication rate, flow control is performed; if the switch information is off flow control, the flow control is stopped.
可选地,本发明实施例提供的技术方案应用于无盘系统。Optionally, the technical solution provided by the embodiment of the present invention is applied to a diskless system.
图2为本发明实施例提供的实现流量控制的客户端的组成结构示意图。如图2所示,本实施例提供的客户端包括可以设置在客户端的驱动程序中的检测单元、获取单元和流控单元,其中,2 is a schematic structural diagram of a client that implements flow control according to an embodiment of the present invention. As shown in FIG. 2, the client provided in this embodiment includes a detecting unit, an acquiring unit, and a flow control unit that can be disposed in a driver of the client, where
检测单元,设置为:在客户端的操作系统启动中,在检测出客户端与预先设置的服务端交互数据时,发送获取指示;The detecting unit is configured to: when the operating system startup of the client is started, when the client detects that the client interacts with the preset server, the sending instruction is sent;
获取单元,设置为:接收获取指示,获取流控信息;其中,流控信息包括上行通信速率和下行通信速率;An acquiring unit, configured to: receive an acquisition indication, and obtain flow control information; where the flow control information includes an uplink communication rate and a downlink communication rate;
流控单元,设置为:按照来自获取单元的流控信息进行流量控制。The flow control unit is configured to: perform flow control according to flow control information from the acquisition unit.
在本发明的一个实施例中,获取单元是设置为:接收获取指示,将预先设置的本地配置信息设置为流控信息。In an embodiment of the present invention, the obtaining unit is configured to: receive the acquisition indication, and set the preset local configuration information as the flow control information.
在本发明的另一个实施例中,获取单元是设置为:接收获取指示,向服务端请求远程配置信息,并将请求到的远程配置信息设置为流控信息。In another embodiment of the present invention, the obtaining unit is configured to: receive the acquisition indication, request the remote configuration information from the server, and set the requested remote configuration information as the flow control information.
其中,检测单元是设置为:检测出存在等待向服务端发送的数据或者接收到来自服务端的数据。The detecting unit is configured to: detect that there is data waiting to be sent to the server or receive data from the server.
可选地,获取单元还设置为:接收来自服务端的远程配置信息,将流控信息更新为接收到的远程配置信息。Optionally, the obtaining unit is further configured to: receive remote configuration information from the server, and update the flow control information to the received remote configuration information.
此外,本发明实施例还提供一种客户端,包括:通信单元以及处理器,所述通信单元设置为:与预先设置的服务端交互数据;所述处理器设置为: 在客户端的操作系统启动中,在检测出通信单元与预先设置的服务端交互数据时,获取流控信息,并按照获得的流控信息进行流量控制。In addition, an embodiment of the present invention further provides a client, including: a communication unit and a processor, where the communication unit is configured to: interact with a preset server; the processor is configured to: In the startup of the operating system of the client, when detecting that the communication unit interacts with the preset server, the flow control information is acquired, and the flow control is performed according to the obtained flow control information.
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述实现流量控制的方法。In addition, an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, and the method for implementing flow control is implemented when the computer executable instructions are executed.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function. This application is not limited to any specific combination of hardware and software.
虽然本申请所揭露的实施方式如上所述,但所述的内容仅为便于理解本申请而采用的实施方式,并非用以限定本申请。任何本申请所属领域内的技术人员,在不脱离本申请所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。The embodiments disclosed in the present application are as described above, but the description is only for the purpose of understanding the present application, and is not intended to limit the present application. Any modifications and changes in the form and details of the embodiments may be made by those skilled in the art without departing from the spirit and scope of the disclosure. The scope defined by the appended claims shall prevail.
工业实用性Industrial applicability
本发明实施例提供一种实现流量控制的方法和客户端,实现了在大量客户端同时启动,且均需要从服务端获取大量数据时,每个客户端在其操作系统启动过程中分别及时进行流量控制,避免了在操作系统启动过程中客户端与服务端之间的网络拥塞,降低了服务端的负荷,提高了服务端和网络的稳定性。 The embodiment of the invention provides a method and a client for implementing flow control, which realizes that when a large number of clients are simultaneously started, and both need to obtain a large amount of data from the server, each client performs timely in the startup process of the operating system. Traffic control avoids network congestion between the client and the server during the startup process of the operating system, reduces the load on the server, and improves the stability of the server and the network.

Claims (11)

  1. 一种实现流量控制的方法,包括:A method of implementing flow control, comprising:
    在客户端的操作系统启动中,当客户端检测出其与预先设置的服务端交互数据时,获取流控信息;其中,流控信息包括上行通信速率和下行通信速率;In the operating system startup of the client, when the client detects that it interacts with the preset server, the flow control information is acquired; wherein the flow control information includes an uplink communication rate and a downlink communication rate;
    客户端按照获得的流控信息进行流量控制。The client performs flow control according to the obtained flow control information.
  2. 根据权利要求1所述的方法,所述客户端按照获得的流控信息进行流量控制之后,所述方法还包括:所述客户端接收来自所述服务端的远程配置信息,将所述流控信息更新为接收到的远程配置信息,并按照更新后的流控信息进行流量控制。The method according to claim 1, after the client performs flow control according to the obtained flow control information, the method further includes: the client receiving remote configuration information from the server, and the flow control information Update to the received remote configuration information and perform flow control according to the updated flow control information.
  3. 根据权利要求1或2所述的方法,其中,所述获取流控信息包括:所述客户端将预先设置的本地配置信息设置为所述流控信息。The method according to claim 1 or 2, wherein the obtaining the flow control information comprises: the client setting the preset local configuration information as the flow control information.
  4. 根据权利要求1或2所述的方法,其中,所述获取流控信息包括:所述客户端向所述服务端请求远程配置信息,并将请求到的远程配置信息设置为所述流控信息。The method according to claim 1 or 2, wherein the obtaining the flow control information comprises: the client requesting remote configuration information from the server, and setting the requested remote configuration information to the flow control information .
  5. 根据权利要求1或2所述的方法,其中,所述客户端检测出其与预先设置的服务端交互数据,包括:所述客户端检测出存在等待向所述服务端发送的数据或者接收到来自所述服务端的数据。The method according to claim 1 or 2, wherein the client detects that it interacts with a pre-set server, including: the client detects that there is data waiting to be sent to the server or receives Data from the server.
  6. 一种实现流量控制的客户端,包括检测单元、获取单元和流控单元,其中,A client for implementing flow control, comprising a detecting unit, an acquiring unit and a flow control unit, wherein
    检测单元,设置为:在客户端的操作系统启动中,当检测出客户端与预先设置的服务端交互数据时,发送获取指示;The detecting unit is configured to: when the operating system startup of the client is started, when the client detects that the client interacts with the preset server, the sending instruction is sent;
    获取单元,设置为:接收获取指示,获取流控信息;其中,流控信息包括上行通信速率和下行通信速率;An acquiring unit, configured to: receive an acquisition indication, and obtain flow control information; where the flow control information includes an uplink communication rate and a downlink communication rate;
    流控单元,设置为:按照来自获取单元的流控信息进行流量控制。The flow control unit is configured to: perform flow control according to flow control information from the acquisition unit.
  7. 根据权利要求6所述的客户端,其中,所述获取单元还设置为:接收来自所述服务端的远程配置信息,将所述流控信息更新为接收到的远程配置 信息。The client according to claim 6, wherein the obtaining unit is further configured to: receive remote configuration information from the server, and update the flow control information to the received remote configuration information.
  8. 根据权利要求6或7所述的客户端,其中,所述获取单元是设置为:接收获取指示,将预先设置的本地配置信息设置为所述流控信息。The client according to claim 6 or 7, wherein the obtaining unit is configured to: receive an acquisition indication, and set preset local configuration information as the flow control information.
  9. 根据权利要求6或7所述的客户端,其中,所述获取单元是设置为:接收获取指示,向所述服务端请求远程配置信息,并将请求到的远程配置信息设置为所述流控信息。The client according to claim 6 or 7, wherein the obtaining unit is configured to: receive an acquisition indication, request remote configuration information from the server, and set the requested remote configuration information to the flow control information.
  10. 根据权利要求6或7所述的客户端,其中,所述检测单元是设置为:检测出存在等待向所述服务端发送的数据或者接收到来自所述服务端的数据。The client according to claim 6 or 7, wherein the detecting unit is configured to detect that there is data waiting to be sent to the server or to receive data from the server.
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现权利要求1至5任一项所述的实现流量控制的方法。 A computer readable storage medium storing computer executable instructions that, when executed, implement the method of implementing flow control of any one of claims 1 to 5.
PCT/CN2016/074151 2015-04-24 2016-02-19 Method for implementing flow control, and client WO2016169328A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510201472.8A CN106161266A (en) 2015-04-24 2015-04-24 A kind of method realizing flow-control and client
CN201510201472.8 2015-04-24

Publications (1)

Publication Number Publication Date
WO2016169328A1 true WO2016169328A1 (en) 2016-10-27

Family

ID=57142883

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/074151 WO2016169328A1 (en) 2015-04-24 2016-02-19 Method for implementing flow control, and client

Country Status (2)

Country Link
CN (1) CN106161266A (en)
WO (1) WO2016169328A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108601048A (en) * 2018-04-17 2018-09-28 维沃移动通信有限公司 A kind of flow control methods and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1986003313A1 (en) * 1984-11-19 1986-06-05 American Telephone & Telegraph Company Flow control between a data terminal and a host computer system
CN101702121A (en) * 2009-10-29 2010-05-05 珠海金山软件股份有限公司 Device for controlling network flow of program in Windows system
CN103840989A (en) * 2014-03-26 2014-06-04 北京极科极客科技有限公司 Method and device for testing network speed through router
CN103973591A (en) * 2014-06-04 2014-08-06 浪潮电子信息产业股份有限公司 Solution method for intelligent network traffic congestion

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1986003313A1 (en) * 1984-11-19 1986-06-05 American Telephone & Telegraph Company Flow control between a data terminal and a host computer system
CN101702121A (en) * 2009-10-29 2010-05-05 珠海金山软件股份有限公司 Device for controlling network flow of program in Windows system
CN103840989A (en) * 2014-03-26 2014-06-04 北京极科极客科技有限公司 Method and device for testing network speed through router
CN103973591A (en) * 2014-06-04 2014-08-06 浪潮电子信息产业股份有限公司 Solution method for intelligent network traffic congestion

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108601048A (en) * 2018-04-17 2018-09-28 维沃移动通信有限公司 A kind of flow control methods and mobile terminal
CN108601048B (en) * 2018-04-17 2021-09-28 维沃移动通信有限公司 Flow control method and mobile terminal

Also Published As

Publication number Publication date
CN106161266A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
RU2662402C2 (en) Method of processing data for several operating systems and terminal equipment
WO2016112825A1 (en) Remote control method, terminal device, management server, and remote control system
EP2988191B1 (en) Method and electronic device for reducing current consumption by the electronic device
US10917291B2 (en) RAID configuration
US9134993B2 (en) Information processing apparatus, server apparatus, information processing method, and program
US9754110B2 (en) Configuring configuration settings using a user context
US20160241535A1 (en) Terminal authentication and registration system, method for authenticating and registering terminal, and storage medium
US11671379B1 (en) System and method for subscription management using dynamically composed management entities
RU2020129947A (en) CLEANING A NON-OPERATING SYSTEM RESOURCE TO A TRUSTED STATE, SUITABLE FOR USE IN CLOUD COMPUTING
US20120233628A1 (en) Out-of-band host management via a management controller
US10657245B2 (en) Dynamically controlling access to devices
WO2023035758A1 (en) Input method setting method and apparatus, input method, and electronic device
US20230221784A1 (en) System and method for power state enforced subscription management
US10740496B2 (en) Method and apparatus for operating multi-processor system in electronic device
JP6195465B2 (en) Remote card content management using synchronous server-side scripting
WO2018036255A1 (en) Method and device for resetting network device to factory settings, and network device
CN104702534A (en) Method and device for processing data of multi-process sharing port
CN108595195B (en) Application program updating method, device, terminal and storage medium
KR102176298B1 (en) Method and device for use to access the container
WO2016169328A1 (en) Method for implementing flow control, and client
US20160378536A1 (en) Control method and information processing device
CN103442041A (en) Method, device and system for upgrading firmware of embedded device
CN111107106A (en) Authentication method, authentication system, firewall device and storage medium
WO2016165477A1 (en) Login method, terminal, session establishment method, and server
US11630591B1 (en) System and method to manage storage system for startup

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: 16782476

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: 16782476

Country of ref document: EP

Kind code of ref document: A1