[go: up one dir, main page]

CN105553874A - Flow control method and system for NAS gateway of distributed file system - Google Patents

Flow control method and system for NAS gateway of distributed file system Download PDF

Info

Publication number
CN105553874A
CN105553874A CN201510954957.4A CN201510954957A CN105553874A CN 105553874 A CN105553874 A CN 105553874A CN 201510954957 A CN201510954957 A CN 201510954957A CN 105553874 A CN105553874 A CN 105553874A
Authority
CN
China
Prior art keywords
request message
state
current state
receiving flag
flag bit
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.)
Pending
Application number
CN201510954957.4A
Other languages
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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510954957.4A priority Critical patent/CN105553874A/en
Publication of CN105553874A publication Critical patent/CN105553874A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/20Traffic policing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明公开了一种分布式文件系统NAS网关的流量控制方法及系统,该方法包括:当检测到待接收的流量请求消息时,并不是直接接收这个流量请求消息,而是先判断接收标志位的当前状态是否为可接收状态;只有接收标志位的当前状态为可接收状态时,才接收流量请求消息;否则,启动定时器并进行计时;当计时达到预设时间阈值时,返回判断接收标志位的当前状态是否为可接收状态,以此可以留出上述时间阈值的时间来处理那些已经接收但还未处理完的流量请求消息。可见,本发明有效实现了避免处理阻塞,进而使得系统处于平稳、高效的工作状态的目的。

The invention discloses a flow control method and system of a distributed file system NAS gateway. The method includes: when detecting a flow request message to be received, instead of directly receiving the flow request message, first judging the receiving flag bit Whether the current state of the receiving flag is receivable; only when the current state of the receiving flag is receivable, the traffic request message is received; otherwise, the timer is started and counted; when the timing reaches the preset time threshold, the judgment reception flag is returned Whether the current state of the bit is acceptable, so that the above-mentioned time threshold can be set aside to process those traffic request messages that have been received but not yet processed. It can be seen that the present invention effectively achieves the purpose of avoiding processing blockage, and then making the system work in a stable and efficient state.

Description

一种分布式文件系统NAS网关的流量控制方法及系统A flow control method and system for a distributed file system NAS gateway

技术领域technical field

本发明涉及网关流量控制技术领域,特别是涉及一种分布式文件系统NAS网关的流量控制方法及系统。The invention relates to the technical field of gateway flow control, in particular to a flow control method and system for a distributed file system NAS gateway.

背景技术Background technique

当今,不难理解的是,流量控制策略就是为了避免系统出现拥堵状况,就像马路上的车流量一样,如果同一路段车辆过多,出现堵车状况,整个路段的交通就流动不起来,严重时甚至整个交通就瘫痪了。Today, it is not difficult to understand that the traffic control strategy is to avoid system congestion. Just like the traffic flow on the road, if there are too many vehicles on the same road section and there is a traffic jam, the traffic on the entire road section will not flow. In severe cases Even the entire traffic is paralyzed.

然而,现有的分布式文件系统NAS网关并没有做流量控制,所有流量请求消息来多少收多少,压力就会都集中到NAS网关上,当需要处理的流量请求消息压力达到饱和时,NAS网关的处理能力跟不上流量请求消息来的速度,流量请求消息就会越积压越多,有些流量请求消息长时间得不到处理。这样的处理阻塞易使得NAS网关与客户端的连接出现断链,进而导致系统出现异常,无法正常工作。However, the existing distributed file system NAS gateway does not implement flow control. All traffic request messages are received as much as they come, and the pressure will be concentrated on the NAS gateway. When the pressure of traffic request messages to be processed reaches saturation, the NAS gateway If the processing capability of the server cannot keep up with the speed of traffic request messages, the backlog of traffic request messages will increase, and some traffic request messages will not be processed for a long time. Such processing blockage will easily cause the connection between the NAS gateway and the client to be disconnected, which will cause the system to malfunction and fail to work normally.

因此,亟需一种新的分布式文件系统NAS网关的流量控制方法,以避免处理阻塞,进而使得系统处于平稳、高效的工作状态。Therefore, there is an urgent need for a new flow control method for distributed file system NAS gateways, so as to avoid processing blockages and make the system in a stable and efficient working state.

发明内容Contents of the invention

有鉴于此,本发明提供了一种分布式文件系统NAS网关的流量控制方法及系统,以实现避免处理阻塞,进而使得系统处于平稳、高效的工作状态的目的。In view of this, the present invention provides a flow control method and system for a distributed file system NAS gateway, so as to avoid processing blockage and make the system in a stable and efficient working state.

为解决上述技术问题,本发明提供一种分布式文件系统NAS网关的流量控制方法,该方法包括:In order to solve the above-mentioned technical problems, the present invention provides a flow control method of a distributed file system NAS gateway, the method comprising:

当检测到待接收的流量请求消息时,判断接收标志位的当前状态是否为可接收状态;When the traffic request message to be received is detected, it is judged whether the current state of the receiving flag bit is an acceptable state;

当判定所述接收标志位的当前状态为可接收状态时,接收所述流量请求消息;When it is determined that the current state of the receiving flag bit is an acceptable state, receiving the traffic request message;

当判定所述接收标志位的当前状态为不可接收状态时,启动定时器并进行计时;When it is determined that the current state of the receiving flag bit is an unacceptable state, start a timer and perform timing;

当计时达到预设时间阈值时,返回判断所述接收标志位的当前状态是否为可接收状态。When the timing reaches the preset time threshold, return to determine whether the current state of the receiving flag bit is a receivable state.

上述方法中,优选地,在所述判断接收标志位的当前状态是否为可接收状态之前,还包括:In the above method, preferably, before the judging whether the current state of the receiving flag bit is an acceptable state, it also includes:

确定当前的请求消息返回队列的数量;Determine the number of current request message return queues;

当所述请求消息返回队列的数量大于或者等于预设数量上限值时,确定所述接收标志位的当前状态为不可接收状态;When the number of the request message return queue is greater than or equal to the preset number upper limit value, determine that the current state of the receiving flag bit is an unacceptable state;

当所述请求消息返回队列的数据小于所述数量上限值时,确定所述接收标志位的当前状态为可接收状态。When the data in the request message return queue is less than the upper limit value, it is determined that the current state of the receiving flag bit is an acceptable state.

上述方法中,优选地,在所述确定当前的请求消息返回队列的数量之后,还包括:In the above method, preferably, after determining the number of current request message return queues, it further includes:

获取预先设定的所述数量上限值。Obtain the preset upper limit value of the quantity.

上述方法中,优选地,在所述接收所述流量请求消息之后,还包括:In the above method, preferably, after receiving the traffic request message, further comprising:

完成与所述流量请求消息相对应的处理操作。Complete the processing operation corresponding to the traffic request message.

本发明还提供了一种分布式文件系统NAS网关的流量控制系统,该系统包括:The present invention also provides a flow control system of a distributed file system NAS gateway, the system comprising:

状态判断单元,用于当检测到待接收的流量请求消息时,判断接收标志位的当前状态是否为可接收状态;当计时达到预设时间阈值时,判断所述接收标志位的当前状态是否为可接收状态;The state judging unit is used for judging whether the current state of the receiving flag bit is an acceptable state when detecting a traffic request message to be received; when the timing reaches a preset time threshold, judging whether the current state of the receiving flag bit is receivable status;

消息接收单元,用于当判定所述接收标志位的当前状态为可接收状态时,接收所述流量请求消息;A message receiving unit, configured to receive the flow request message when it is determined that the current state of the receiving flag bit is an acceptable state;

定时器启动单元,用于当判定所述接收标志位的当前状态为不可接收状态时,启动定时器并进行计时。The timer starting unit is configured to start the timer and perform timing when it is determined that the current state of the receiving flag bit is unreceivable.

上述系统中,优选地,还包括:In the above system, preferably, it also includes:

状态确定单元,用于在所述判断接收标志位的当前状态是否为可接收状态之前,确定当前的请求消息返回队列的数量;当所述请求消息返回队列的数量大于或者等于预设数量上限值时,确定所述接收标志位的当前状态为不可接收状态;当所述请求消息返回队列的数据小于所述数量上限值时,确定所述接收标志位的当前状态为可接收状态。A state determination unit, configured to determine the current number of request message return queues before the judgment of whether the current state of the receiving flag is an acceptable state; when the number of request message return queues is greater than or equal to the preset upper limit value, it is determined that the current state of the receiving flag bit is an unacceptable state; when the data of the request message return queue is less than the upper limit value, it is determined that the current state of the receiving flag bit is an acceptable state.

上述系统中,优选地,还包括:In the above system, preferably, it also includes:

获取单元,用于在所述确定当前的请求消息返回队列的数量之后,获取预先设定的所述数量上限值。The obtaining unit is configured to obtain the preset upper limit value of the number after the determination of the current number of request message return queues.

上述系统中,优选地,还包括:In the above system, preferably, it also includes:

处理单元,用于在所述接收所述流量请求消息之后,完成与所述流量请求消息相对应的处理操作。A processing unit, configured to complete a processing operation corresponding to the traffic request message after the traffic request message is received.

以上本发明提供的一种分布式文件系统NAS网关的流量控制方法及系统中,当检测到待接收的流量请求消息时,并不是直接接收这个流量请求消息,而是先判断接收标志位的当前状态是否为可接收状态;只有所述接收标志位的当前状态为可接收状态时,才接收所述流量请求消息;否则,启动定时器并进行计时;当计时达到预设时间阈值时,返回判断所述接收标志位的当前状态是否为可接收状态,以此可以留出上述时间阈值的时间来处理那些已经接收但还未处理完的流量请求消息。可见,本发明有效实现了避免处理阻塞,进而使得系统处于平稳、高效的工作状态的目的。In the flow control method and system of a distributed file system NAS gateway provided by the present invention, when a flow request message to be received is detected, the flow request message is not directly received, but the current state of the receiving flag bit is judged first. Whether the state is receivable; only when the current state of the receiving flag bit is receivable, the flow request message is received; otherwise, the timer is started and timed; when the timing reaches the preset time threshold, the judgment is returned Whether the current state of the receiving flag bit is receivable, so that the above-mentioned time threshold can be set aside to process those traffic request messages that have been received but not yet processed. It can be seen that the present invention effectively achieves the purpose of avoiding processing blockage, and then making the system work in a stable and efficient state.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.

图1为本发明实施例提供的一种分布式文件系统NAS网关的流量控制方法的流程图;FIG. 1 is a flow chart of a flow control method of a distributed file system NAS gateway provided by an embodiment of the present invention;

图2为本发明实施例提供的一种分布式文件系统NAS网关的流量控制系统的结构框图示意图。FIG. 2 is a schematic structural block diagram of a flow control system of a distributed file system NAS gateway provided by an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明的核心是提供一种分布式文件系统NAS网关的流量控制方法及系统,以实现避免处理阻塞,进而使得系统处于平稳、高效的工作状态的目的。The core of the present invention is to provide a flow control method and system of a distributed file system NAS gateway, so as to avoid processing blockage and make the system in a stable and efficient working state.

为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

参考图1,图1示出了本发明实施例提供的一种分布式文件系统NAS网关的流量控制方法的流程图,该方法具体可以包括如下步骤:Referring to FIG. 1, FIG. 1 shows a flow chart of a flow control method for a distributed file system NAS gateway provided by an embodiment of the present invention. The method may specifically include the following steps:

步骤S100、当检测到待接收的流量请求消息时,判断接收标志位的当前状态是否为可接收状态;如果是,则进入步骤S101;否则,进入步骤S102。Step S100 , when a flow request message to be received is detected, judge whether the current status of the receiving flag is receivable; if yes, go to step S101 ; otherwise, go to step S102 .

本发明中,根据系统当前处理的流量请求消息的情况来决定是否可以继续接收来自客户端的流量请求消息,具体地,引入接收标志位来表征当前是否能够继续接收流量请求消息,接收标志位具有两种状态,其一是可接收状态,其二为不可接收状态。当检测到待接收的流量请求消息时,并不是直接接收这个流量请求消息,而是先判断接收标志位的当前状态是否为可接收状态;只有接收标志位的当前状态为可接收状态时,才接收流量请求消息。In the present invention, it is determined whether the flow request message from the client can continue to be received according to the flow request message currently processed by the system. Specifically, a receiving flag bit is introduced to represent whether the flow request message can continue to be received currently. The receiving flag bit has two There are two states, one is acceptable state and the other is unacceptable state. When detecting the traffic request message to be received, instead of directly receiving the traffic request message, it is first judged whether the current state of the receiving flag is acceptable; only when the current state of the receiving flag is acceptable, the Receive traffic request messages.

进一步地,在本发明中,依据系统当前的请求消息返回队列的数量来判断系统是否能够继续接收并处理后续的流量请求消息,具体地,技术人员可以根据实际情况,为请求消息返回队列的数量设定一数量上限值。Further, in the present invention, it is judged whether the system can continue to receive and process subsequent traffic request messages according to the number of current request message return queues in the system. Specifically, technicians can return the number of request message queues according to the actual situation. Set a quantity upper limit value.

具体地,可以通过以下内容实现对接收标志位的状态的设定:系统在获取上述预先设定的数量上限值和确定当前的请求消息返回队列的数量之后,比较这两个数据的数值大小,当请求消息返回队列的数量大于或者等于预设数量上限值时,认为此时系统已经没有足够的能力来处理后续的其它流量请求消息,则确定接收标志位的当前状态为不可接收状态;当请求消息返回队列的数据小于数量上限值时,认为此时系统有足够的能力来处理后续的其它流量请求消息,确定接收标志位的当前状态为可接收状态。Specifically, the setting of the state of the receiving flag can be realized through the following content: After the system obtains the above-mentioned preset upper limit value and determines the number of the current request message return queue, compare the numerical value of the two data , when the number of request messages returned to the queue is greater than or equal to the preset number upper limit, it is considered that the system does not have enough capacity to process other subsequent traffic request messages at this time, and then the current state of the receiving flag is determined to be unacceptable; When the data of the request message return queue is less than the upper limit value, it is considered that the system has sufficient capacity to process other subsequent traffic request messages at this time, and the current state of the receiving flag bit is determined to be an acceptable state.

因此,可以理解的是,当判定接收标志位的当前状态为可接收状态时,执行步骤S101直接接收检测到的待接收的流量请求消息,并完成与流量请求消息相对应的处理操作;当判定接收标志位的当前状态为不可接收状态时,进入步骤S102。Therefore, it can be understood that, when it is determined that the current state of the receiving flag is an acceptable state, step S101 is performed to directly receive the detected flow request message to be received, and complete the processing operation corresponding to the flow request message; When the current status of the receiving flag is unacceptable, go to step S102.

步骤S101、接收流量请求消息。Step S101, receiving a traffic request message.

步骤S102、启动定时器并进行计时,进入步骤S103。Step S102, start the timer and count the time, and go to step S103.

步骤S103、判断计时是否达到预设时间阈值,如果是,则返回步骤S100继续判断接收标志位的当前状态是否为可接收状态;否则,仍继续判断计时是否达到上述时间阈值。Step S103, determine whether the timing has reached the preset time threshold, if so, return to step S100 and continue to determine whether the current state of the receiving flag is an acceptable state; otherwise, continue to determine whether the timing has reached the above-mentioned time threshold.

当检测到待接收的流量请求消息且接收标志位的当前状态为不可接收状态时,启动定时器并进行计时;当计时达到预设时间阈值时,返回步骤S100判断接收标志位的当前状态是否为可接收状态,以此循环。在具体实施过程中,时间阈值的具体取值可由本领域技术人员视情况具体设定,本发明不做严格限定。When the traffic request message to be received is detected and the current state of the receiving flag is unacceptable, start the timer and count; when the timing reaches the preset time threshold, return to step S100 to determine whether the current state of the receiving flag is Acceptable status, and cycle like this. In a specific implementation process, the specific value of the time threshold can be specifically set by those skilled in the art as the case may be, and is not strictly limited in the present invention.

可以理解的是,在每次定时器进行计时的过程中,可以留出上述时间阈值的时间来处理那些已经接收但还未处理完的流量请求消息。如果在这段时间内,系统处理了足够多的流量请求消息,那么,当计时达到预设时间阈值而返回步骤S100判断接收标志位的当前状态是否为可接收状态时,接收标志位可能已经变成了可接收状态,此时,就可直接接收当前检测到的待接收的流量请求消息。It can be understood that, during each timer counting process, the above-mentioned time threshold may be set aside to process those traffic request messages that have been received but not yet processed. If within this period of time, the system has processed enough traffic request messages, then when the timing reaches the preset time threshold and returns to step S100 to determine whether the current state of the receiving flag is an acceptable state, the receiving flag may have changed to becomes a receivable state, at this time, the currently detected traffic request message to be received can be directly received.

可见,本发明有效实现了避免处理阻塞,进而使得系统处于平稳、高效的工作状态的目的。It can be seen that the present invention effectively achieves the purpose of avoiding processing blockage, and then making the system work in a stable and efficient state.

基于上述本发明实施例提供的分布式文件系统NAS网关的流量控制方法,本发明实施例还提供了一种分布式文件系统NAS网关的流量控制系统,参考图2,该系统200可以包括如下内容:Based on the flow control method of the distributed file system NAS gateway provided by the above-mentioned embodiment of the present invention, the embodiment of the present invention also provides a flow control system of the distributed file system NAS gateway. Referring to FIG. 2, the system 200 may include the following contents :

状态判断单元201,用于当检测到待接收的流量请求消息时,判断接收标志位的当前状态是否为可接收状态;当计时达到预设时间阈值时,判断接收标志位的当前状态是否为可接收状态;The state judging unit 201 is used for judging whether the current state of the receiving flag bit is an acceptable state when a traffic request message to be received is detected; when the timing reaches a preset time threshold, judging whether the current state of the receiving flag bit is acceptable receiving status;

消息接收单元202,用于当判定接收标志位的当前状态为可接收状态时,接收流量请求消息;A message receiving unit 202, configured to receive a flow request message when it is determined that the current state of the receiving flag is an acceptable state;

定时器启动单元203,用于当判定接收标志位的当前状态为不可接收状态时,启动定时器并进行计时。The timer starting unit 203 is configured to start a timer and perform timing when it is determined that the current state of the receiving flag is unreceivable.

本发明中,上述系统200具体还可以包括状态确定单元,用于在判断接收标志位的当前状态是否为可接收状态之前,确定当前的请求消息返回队列的数量;当请求消息返回队列的数量大于或者等于预设数量上限值时,确定接收标志位的当前状态为不可接收状态;当请求消息返回队列的数据小于数量上限值时,确定接收标志位的当前状态为可接收状态。In the present invention, the above-mentioned system 200 may specifically include a state determination unit, which is used to determine the number of current request message return queues before judging whether the current state of the receiving flag is an acceptable state; when the number of request message return queues is greater than Or when it is equal to the preset upper limit value, determine that the current state of the receiving flag bit is an unacceptable state; when the data in the request message return queue is less than the upper limit value, determine that the current state of the receiving flag bit is an acceptable state.

本发明中,上述系统200具体还可以包括获取单元,用于在确定当前的请求消息返回队列的数量之后,获取预先设定的数量上限值。In the present invention, the above-mentioned system 200 may specifically include an acquiring unit, configured to acquire a preset upper limit value of the number after determining the current number of request messages returned to the queue.

本发明中,上述系统200具体还可以包括处理单元,用于在接收流量请求消息之后,完成与流量请求消息相对应的处理操作。In the present invention, the above-mentioned system 200 may specifically further include a processing unit configured to complete the processing operation corresponding to the traffic request message after receiving the traffic request message.

需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于系统类实施例而言,由于其与方法实施例基本相似,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts in each embodiment, refer to each other, that is, Can. As for the system embodiment, because it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.

以上对本发明所提供的一种分布式文件系统NAS网关的流量控制方法及系统进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The flow control method and system of a distributed file system NAS gateway provided by the present invention have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention, and the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims (8)

1.一种分布式文件系统NAS网关的流量控制方法,其特征在于,该方法包括:1. a flow control method of distributed file system NAS gateway, it is characterized in that, the method comprises: 当检测到待接收的流量请求消息时,判断接收标志位的当前状态是否为可接收状态;When the traffic request message to be received is detected, it is judged whether the current state of the receiving flag bit is an acceptable state; 当判定所述接收标志位的当前状态为可接收状态时,接收所述流量请求消息;When it is determined that the current state of the receiving flag bit is an acceptable state, receiving the traffic request message; 当判定所述接收标志位的当前状态为不可接收状态时,启动定时器并进行计时;When it is determined that the current state of the receiving flag bit is an unreceivable state, start a timer and perform timing; 当计时达到预设时间阈值时,返回判断所述接收标志位的当前状态是否为可接收状态。When the timing reaches the preset time threshold, return to determine whether the current state of the receiving flag bit is a receivable state. 2.如权利要求1所述的方法,其特征在于,在所述判断接收标志位的当前状态是否为可接收状态之前,还包括:2. The method according to claim 1, further comprising: 确定当前的请求消息返回队列的数量;Determine the number of current request message return queues; 当所述请求消息返回队列的数量大于或者等于预设数量上限值时,确定所述接收标志位的当前状态为不可接收状态;When the number of the request message return queue is greater than or equal to the preset number upper limit value, determine that the current state of the receiving flag bit is an unacceptable state; 当所述请求消息返回队列的数据小于所述数量上限值时,确定所述接收标志位的当前状态为可接收状态。When the data in the request message return queue is less than the upper limit value, it is determined that the current state of the receiving flag bit is an acceptable state. 3.如权利要求2所述的方法,其特征在于,在所述确定当前的请求消息返回队列的数量之后,还包括:3. The method according to claim 2, further comprising: 获取预先设定的所述数量上限值。Obtain the preset upper limit value of the quantity. 4.如权利要求1至3任意一项所述的方法,其特征在于,在所述接收所述流量请求消息之后,还包括:4. The method according to any one of claims 1 to 3, further comprising: after receiving the traffic request message, 完成与所述流量请求消息相对应的处理操作。Complete the processing operation corresponding to the traffic request message. 5.一种分布式文件系统NAS网关的流量控制系统,其特征在于,该系统包括:5. a flow control system of a distributed file system NAS gateway, characterized in that the system comprises: 状态判断单元,用于当检测到待接收的流量请求消息时,判断接收标志位的当前状态是否为可接收状态;当计时达到预设时间阈值时,判断所述接收标志位的当前状态是否为可接收状态;The state judging unit is used for judging whether the current state of the receiving flag bit is an acceptable state when detecting a traffic request message to be received; when the timing reaches a preset time threshold, judging whether the current state of the receiving flag bit is receivable status; 消息接收单元,用于当判定所述接收标志位的当前状态为可接收状态时,接收所述流量请求消息;A message receiving unit, configured to receive the flow request message when it is determined that the current state of the receiving flag bit is an acceptable state; 定时器启动单元,用于当判定所述接收标志位的当前状态为不可接收状态时,启动定时器并进行计时。The timer starting unit is configured to start the timer and perform timing when it is determined that the current state of the receiving flag bit is unreceivable. 6.如权利要求5所述的系统,其特征在于,还包括:6. The system of claim 5, further comprising: 状态确定单元,用于在所述判断接收标志位的当前状态是否为可接收状态之前,确定当前的请求消息返回队列的数量;当所述请求消息返回队列的数量大于或者等于预设数量上限值时,确定所述接收标志位的当前状态为不可接收状态;当所述请求消息返回队列的数据小于所述数量上限值时,确定所述接收标志位的当前状态为可接收状态。A state determination unit, configured to determine the current number of request message return queues before the judgment of whether the current state of the receiving flag is an acceptable state; when the number of request message return queues is greater than or equal to the preset upper limit value, it is determined that the current state of the receiving flag bit is an unacceptable state; when the data of the request message return queue is less than the upper limit value, it is determined that the current state of the receiving flag bit is an acceptable state. 7.如权利要求6所述的系统,其特征在于,还包括:7. The system of claim 6, further comprising: 获取单元,用于在所述确定当前的请求消息返回队列的数量之后,获取预先设定的所述数量上限值。The obtaining unit is configured to obtain the preset upper limit value of the number after the determination of the current number of request message return queues. 8.如权利要求5至7任意一项所述的系统,其特征在于,还包括:8. The system according to any one of claims 5 to 7, further comprising: 处理单元,用于在所述接收所述流量请求消息之后,完成与所述流量请求消息相对应的处理操作。A processing unit, configured to complete a processing operation corresponding to the traffic request message after the traffic request message is received.
CN201510954957.4A 2015-12-17 2015-12-17 Flow control method and system for NAS gateway of distributed file system Pending CN105553874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510954957.4A CN105553874A (en) 2015-12-17 2015-12-17 Flow control method and system for NAS gateway of distributed file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510954957.4A CN105553874A (en) 2015-12-17 2015-12-17 Flow control method and system for NAS gateway of distributed file system

Publications (1)

Publication Number Publication Date
CN105553874A true CN105553874A (en) 2016-05-04

Family

ID=55832811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510954957.4A Pending CN105553874A (en) 2015-12-17 2015-12-17 Flow control method and system for NAS gateway of distributed file system

Country Status (1)

Country Link
CN (1) CN105553874A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844373A (en) * 2017-11-02 2018-03-27 郑州云海信息技术有限公司 One kind request sending method, system, medium and equipment
CN108449776A (en) * 2018-02-27 2018-08-24 深圳市海司恩科技有限公司 Network path planing method, node device and computer storage media

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002037224A2 (en) * 2000-11-02 2002-05-10 Pirus Networks Load balanced storage system
CN101465796A (en) * 2007-12-19 2009-06-24 中国移动通信集团公司 Method, device and system for collecting and distributing P2P system metadata
US20090307329A1 (en) * 2008-06-06 2009-12-10 Chris Olston Adaptive file placement in a distributed file system
CN101977359A (en) * 2010-09-26 2011-02-16 北京握奇数据系统有限公司 Method and device for processing mobile data service
JP2011065469A (en) * 2009-09-17 2011-03-31 Kddi Corp Distributed file system and node start-up method in distributed file system
CN102170396A (en) * 2011-05-06 2011-08-31 浙江大学 QoS control method of cloud storage system based on differentiated service
CN102222090A (en) * 2011-06-02 2011-10-19 清华大学 Mass data resource management frame under cloud environment
CN103532873A (en) * 2013-11-08 2014-01-22 北京邮电大学 Flow Control Strategy Applied to Distributed File System
CN104283800A (en) * 2013-07-05 2015-01-14 株式会社日立制作所 Gateway device, communication system and flow control method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002037224A2 (en) * 2000-11-02 2002-05-10 Pirus Networks Load balanced storage system
CN101465796A (en) * 2007-12-19 2009-06-24 中国移动通信集团公司 Method, device and system for collecting and distributing P2P system metadata
US20090307329A1 (en) * 2008-06-06 2009-12-10 Chris Olston Adaptive file placement in a distributed file system
JP2011065469A (en) * 2009-09-17 2011-03-31 Kddi Corp Distributed file system and node start-up method in distributed file system
CN101977359A (en) * 2010-09-26 2011-02-16 北京握奇数据系统有限公司 Method and device for processing mobile data service
CN102170396A (en) * 2011-05-06 2011-08-31 浙江大学 QoS control method of cloud storage system based on differentiated service
CN102222090A (en) * 2011-06-02 2011-10-19 清华大学 Mass data resource management frame under cloud environment
CN104283800A (en) * 2013-07-05 2015-01-14 株式会社日立制作所 Gateway device, communication system and flow control method
CN103532873A (en) * 2013-11-08 2014-01-22 北京邮电大学 Flow Control Strategy Applied to Distributed File System

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844373A (en) * 2017-11-02 2018-03-27 郑州云海信息技术有限公司 One kind request sending method, system, medium and equipment
CN107844373B (en) * 2017-11-02 2021-11-19 郑州云海信息技术有限公司 Request sending method, system, medium and equipment
CN108449776A (en) * 2018-02-27 2018-08-24 深圳市海司恩科技有限公司 Network path planing method, node device and computer storage media
CN108449776B (en) * 2018-02-27 2023-09-05 深圳市亚特联科技有限公司 Network path planning method, node equipment and computer storage medium

Similar Documents

Publication Publication Date Title
CN107995127B (en) Overload protection method and device
US10135740B2 (en) Method and apparatus for limiting rate by means of token bucket, and computer storage medium
CN104301340B (en) The method and system carried out data transmission in mobile network
CN107317763B (en) Flow control method and device between client and metadata server
CN103560898B (en) A kind of port status method to set up, the system of selection of port priority and device
CN104158762B (en) FPGA based process-level message filtering and bandwidth control method
CN102724112B (en) Transmission method, receiving terminal equipment and system based on TCP (transmission control protocol)
CN107872396B (en) Communication method, processing device, terminal device and server with timeout control
CN103220427A (en) Mobile phone background program cleaning method and mobile phone
CN106533805A (en) Micro-service request processing method, micro-service controller and micro-service architecture
CN111292514A (en) Alarm information sending method and device and electronic equipment
WO2015143934A1 (en) Information sending method and information sending apparatus
CN112383585A (en) Message processing system and method and electronic equipment
CN106250207A (en) A kind of virtual machine dilatation processing method and processing device
CN101699795A (en) Message congestion processing method and system
CN107370636B (en) Link state determination method and device
CN103546363A (en) A method, device and system for pushing instant messaging messages
CN105450441B (en) A kind of weak net acceleration method and device based on Transmission Control Protocol
CN105553874A (en) Flow control method and system for NAS gateway of distributed file system
CN105721235A (en) Method and apparatus for detecting connectivity
CN105245463A (en) Flow control method and device
EP3264851B1 (en) Data transmission method and device for data service
CN106953884A (en) Middleware message processing method, device and middleware platform
CN103647729B (en) A kind of delay request processing method based on token bucket and device
CN105224411B (en) It is a kind of to avoid CPU from being depleted the method for causing house dog to be restarted

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160504