CN102281202A - Dispatching method, server and system - Google Patents

Dispatching method, server and system Download PDF

Info

Publication number
CN102281202A
CN102281202A CN2011102580652A CN201110258065A CN102281202A CN 102281202 A CN102281202 A CN 102281202A CN 2011102580652 A CN2011102580652 A CN 2011102580652A CN 201110258065 A CN201110258065 A CN 201110258065A CN 102281202 A CN102281202 A CN 102281202A
Authority
CN
China
Prior art keywords
queue
level
server
processing
requester
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
CN2011102580652A
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.)
Suzhou Codyy Network Technology Co Ltd
Original Assignee
Suzhou Codyy Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Codyy Network Technology Co Ltd filed Critical Suzhou Codyy Network Technology Co Ltd
Priority to CN2011102580652A priority Critical patent/CN102281202A/en
Publication of CN102281202A publication Critical patent/CN102281202A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供一种调度方法、服务器及系统,上述方法包括以下步骤。服务器为不同等级的请求端分别建立队列,服务器接收所述请求端的接入请求后,将请求端分别放入对应队列。服务器接收到处理端同意处理的响应后,推送待处理的所述请求端至所述处理端处理。若服务器队列中某一等级或者多个不同等级请求端处理完毕后,服务器根据预设控制策略将队列中等级小于处理完毕的请求端放入已处理完毕的请求端对应的队列中,进行处理,其中,等级越低,优先级越高。

Figure 201110258065

The present invention provides a scheduling method, server and system, and the above method includes the following steps. The server establishes queues for requesting ends of different levels, and after receiving the access requests of the requesting ends, the server puts the requesting ends into corresponding queues respectively. After receiving the response that the processing end agrees to process, the server pushes the request to be processed to the processing end for processing. If a certain grade or multiple requests of different grades in the server queue are processed, the server puts the requesters whose grades are lower than the processed ones in the queue into the queue corresponding to the processed requesters according to the preset control strategy for processing. Among them, the lower the level, the higher the priority.

Figure 201110258065

Description

一种调度方法、服务器及系统A scheduling method, server and system

技术领域 technical field

本发明属于网络通信领域,尤其涉及一种调度方法、服务器及系统。The invention belongs to the field of network communication, and in particular relates to a scheduling method, server and system.

背景技术 Background technique

随着互联网通信技术在社会中的广泛应用,多用户网络服务的方式也越来越多元化。于现有技术中,申请号为200880107492.7的发明“通信网络中的优先调度和准入控制”描述了一种通信网络中的优先调度和准入控制的技术。上述发明包括以下内容:在一个方面,可以区分数据流的优先次序,并且可以将具有逐渐更高的优先级的数据流的分组放置在逐渐接近队列头部的点处,并且然后可以体验到逐渐更短的排队延迟。在另一个方面,可以由于切换而将终端的分组从源小区转移到目标小区,并且可以为其记上该分组在源小区的队列中已经等待的时间量。在再一个方面,如果小区负载是轻度的则可以准许所有的优先数据流和非优先数据流,如果小区负载是重度的则只可以准许优先数据流,如果小区负载是中度的则可以准许所有的优先数据流和某些非优先数据流。With the wide application of Internet communication technology in society, the ways of multi-user network services are becoming more and more diversified. In the prior art, the invention "Priority Scheduling and Admission Control in Communication Network" with application number 200880107492.7 describes a technology of priority scheduling and admission control in communication network. The above invention includes the following: In one aspect, data streams can be prioritized, and packets of data streams with progressively higher priorities can be placed at points progressively closer to the head of the queue, and then progressively higher priority can be experienced Shorter queuing delays. In another aspect, a terminal's packet may be transferred from the source cell to the target cell as a result of a handover, and it may be credited with the amount of time the packet has been waiting in the source cell's queue. In yet another aspect, all priority and non-priority traffic may be admitted if the cell load is light, only priority traffic may be permitted if the cell load is heavy, and may be permitted if the cell load is moderate All prioritized traffic and some non-preferred traffic.

上述发明通过给用户分配特定的优先级,将具有更高优先级的数据流分组放置在队列头部,可以体验到逐渐更短的排队延迟;并根据小区负载的轻重度决定处理不同优先级的数据流。然而,于上述发明专利申请中,当有大量不同优先级的数据涌入时,造成较低优先级的数据得不到及时处理,用户的体验大大降低。The above invention assigns specific priorities to users, and places higher priority data flow packets at the head of the queue, so that you can experience gradually shorter queuing delays; data flow. However, in the above invention patent application, when a large amount of data with different priorities floods in, lower priority data cannot be processed in time, and user experience is greatly reduced.

发明内容 Contents of the invention

本发明提供一种调度方法、服务器及系统,以解决上述问题。The present invention provides a scheduling method, server and system to solve the above problems.

本发明提供一种调度方法,包括以下步骤。服务器为不同等级的请求端分别建立队列,服务器接收所述请求端的接入请求后,将请求端分别放入对应队列。服务器接收到处理端同意处理的响应后,推送待处理的所述请求端至所述处理端处理。若服务器队列中某一等级或者多个不同等级请求端处理完毕后,服务器根据预设控制策略将队列中等级小于处理完毕的请求端放入已处理完毕的请求端对应的队列中,进行处理,其中,等级越低,优先级越高。The present invention provides a scheduling method, including the following steps. The server establishes queues for requesting ends of different levels, and after receiving the access requests of the requesting ends, the server puts the requesting ends into corresponding queues respectively. After receiving the response that the processing end agrees to process, the server pushes the request end to be processed to the processing end for processing. If a certain grade or multiple requesters of different grades in the server queue are processed, the server puts the requesters whose grades are lower than the processed ones in the queue into the queue corresponding to the processed requesters for processing according to the preset control strategy. Among them, the lower the level, the higher the priority.

本发明还提供一种调度方法,包括以下步骤。服务器为不同等级的请求端分别建立队列,服务器接收所述请求端的接入请求后,将请求端分别放入对应队列,其中,较低等级请求端在比其高一等级请求端的队列中同时排队。服务器接收到处理端同意处理的响应后,推送待处理的所述请求端至所述处理端处理。若服务器队列中某一等级或者多个不同等级请求端处理完毕后,服务器根据预设控制策略将队列中等级小于处理完毕的请求端放入已处理完毕的请求端对应的队列中,进行处理,其中,等级越低,优先级越高。The present invention also provides a scheduling method, including the following steps. The server establishes queues for requesters of different levels. After receiving the access requests of the requesters, the server puts the requesters into the corresponding queues respectively. Among them, the requesters of lower levels are queued in the queues of requesters of one level higher than them at the same time. . After receiving the response that the processing end agrees to process, the server pushes the request end to be processed to the processing end for processing. If a certain grade or multiple requesters of different grades in the server queue are processed, the server puts the requesters whose grades are lower than the processed ones in the queue into the queue corresponding to the processed requesters for processing according to the preset control strategy. Among them, the lower the level, the higher the priority.

本发明还提供一种服务器,包括建立模块、请求处理模块及控制模块。建立模块连接请求处理模块,请求处理模块连接控制模块。其中,建立模块,用于为不同等级的请求端分别建立队列。请求处理模块,用于接收所述请求端的接入请求后,将请求端分别放入对应队列,接收到处理端同意处理的响应后,推送待处理的所述请求端至所述处理端处理。控制模块,用于若队列中某一等级或者多个不同等级请求端处理完毕后,根据预设控制策略将队列中等级小于处理完毕的请求端放入已处理完毕的请求端对应的队列中,进行处理,其中,等级越低,优先级越高。The present invention also provides a server, including an establishment module, a request processing module and a control module. The establishment module is connected to the request processing module, and the request processing module is connected to the control module. Wherein, the establishment module is used to respectively establish queues for request ends of different levels. The request processing module is configured to, after receiving the access request of the requesting end, put the requesting end into the corresponding queue respectively, and push the requesting end to be processed to the processing end after receiving the response that the processing end agrees to process. The control module is used to put the requesters whose grades in the queue are lower than the processed ones into the queue corresponding to the processed requesters according to the preset control strategy after the requesters of a certain level or multiple different levels in the queue are processed, Processing is performed, wherein the lower the rank, the higher the priority.

本发明还提供一种调度系统,包括请求端、服务器及处理端。请求端连接服务器,服务器连接处理端。其中,服务器为不同等级的请求端分别建立队列,服务器接收所述请求端的接入请求后,将请求端分别放入对应队列,服务器接收到处理端同意处理的响应后,推送待处理的所述请求端至所述处理端处理,若服务器队列中某一等级或者多个不同等级请求端处理完毕后,服务器根据预设控制策略将队列中等级小于处理完毕的请求端放入已完毕的请求端对应的队列中,进行处理,其中,等级越低,优先级越高。The present invention also provides a scheduling system, including a requesting end, a server and a processing end. The requesting end connects to the server, and the server connects to the processing end. Wherein, the server establishes queues for different levels of requesting ends, and after receiving the access requests of the requesting ends, the server puts the requesting ends into the corresponding queues respectively, and after receiving the response that the processing end agrees to process, the server pushes the pending requests. Processing from the requesting end to the processing end, if a certain level or multiple different levels of requesting ends in the server queue are processed, the server will put the requesting end in the queue whose level is lower than the completed requesting end into the completed requesting end according to the preset control strategy In the corresponding queue, processing is performed, wherein the lower the level, the higher the priority.

相较于先前技术,根据本发明提供的的调度方法、服务器及系统,针对不同优先等级的数据,可以在数据发起请求时按照不同等级排队,对海量数据进行疏导,更好地提供分层服务。同时,根据数据处理端空闲情况,服务器按照特定策略灵活调整数据处理顺序,以上都减少了排队等待时间,提高了数据处理效率。Compared with the prior art, according to the scheduling method, server and system provided by the present invention, data with different priority levels can be queued according to different levels when the data initiates a request, and massive data can be channeled to better provide hierarchical services . At the same time, according to the idle situation of the data processing end, the server flexibly adjusts the data processing sequence according to a specific strategy, which reduces the waiting time in queuing and improves the data processing efficiency.

附图说明 Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1所示为根据本发明第一较佳实施例提供的调度方法的流程图;Fig. 1 shows the flowchart of the scheduling method provided according to the first preferred embodiment of the present invention;

图2所示为根据本发明第一较佳实施例提供的队列的示意图;Fig. 2 is a schematic diagram of a queue provided according to a first preferred embodiment of the present invention;

图3所示为根据本发明第二较佳实施例提供的调度方法的流程图;FIG. 3 is a flowchart of a scheduling method provided according to a second preferred embodiment of the present invention;

图4所示为根据本发明较佳实施例提供的服务器的示意图;FIG. 4 is a schematic diagram of a server provided according to a preferred embodiment of the present invention;

图5所示为根据本发明较佳实施例提供的调度系统的示意图。Fig. 5 is a schematic diagram of a scheduling system provided according to a preferred embodiment of the present invention.

具体实施方式 Detailed ways

下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

图1所示为根据本发明第一较佳实施例提供的调度方法的流程图。如图1所示,本发明较佳实施例提供的调度方法包括步骤101~104。Fig. 1 is a flowchart of a scheduling method provided according to a first preferred embodiment of the present invention. As shown in FIG. 1 , the scheduling method provided by the preferred embodiment of the present invention includes steps 101-104.

步骤101:服务器为不同等级的请求端分别建立队列。其中,请求端按数据处理优先级分为不同的等级,服务器按请求端不同等级分别建立队列。Step 101: The server establishes queues for requesters of different levels. Among them, the requesting end is divided into different levels according to the data processing priority, and the server establishes queues according to different levels of the requesting end.

步骤102:服务器接收请求端的接入请求后,将请求端分别放入对应队列。首先,请求端连接服务器,向服务器发出接入请求。服务器接收到请求端的接入请求后,将请求端分别放入对应的等级队列开始排队。Step 102: After receiving the access request from the requesting end, the server puts the requesting end into corresponding queues. First, the requester connects to the server and sends an access request to the server. After receiving the access request from the requesting end, the server puts the requesting end into the corresponding level queue and starts queuing.

步骤103:服务器接收到处理端同意处理的响应后,推送待处理的请求端至处理端处理。其中,请求端连接服务器,服务器连接处理端。具体而言,处理端向服务器发送同意处理的消息后,服务器发送命令通知队列中第一个请求端进入处理,请求端同意进入,服务器推送待处理的请求端至处理端处理,数据处理结束,处理端主动发送消息给服务器,服务器根据消息将请求端从队列中移除,并推送下一个待处理的请求端至处理端处理。Step 103: After receiving the response that the processing end agrees to process, the server pushes the pending request end to the processing end for processing. Wherein, the requesting end is connected to the server, and the server is connected to the processing end. Specifically, after the processing end sends a message agreeing to processing to the server, the server sends a command to notify the first requesting end in the queue to enter processing, the requesting end agrees to enter, the server pushes the pending request end to the processing end for processing, and the data processing ends. The processing end actively sends a message to the server, and the server removes the request end from the queue according to the message, and pushes the next pending request end to the processing end for processing.

步骤104:服务器队列中某一等级或者多个不同等级请求端处理完毕后,服务器根据预设控制策略将队列中等级小于处理完毕的请求端放入已处理完毕的请求端对应的队列中,进行处理,其中,等级越低,优先级越高。Step 104: After a certain grade or multiple requests of different grades in the server queue are processed, the server puts the requesters whose grades are lower than the processed ones in the queue into the queue corresponding to the processed requesters according to the preset control strategy, and performs processing, wherein the lower the rank, the higher the priority.

举例而言,若请求端等级为三级,第一等级请求端对应的队列为第一队列,第二等级请求端对应的队列为第二队列,第三等级请求端对应的队列为第三队列。For example, if the requester level is three, the queue corresponding to the first level requester is the first queue, the queue corresponding to the second level requester is the second queue, and the queue corresponding to the third level requester is the third queue .

若第三级请求端先处理完毕,服务器根据预设的调度策略将第一队列中的第一等级请求端、第二队列中的第二等级请求端放入第三队列中,将第一队列中后5个第一等级请求端、第二队列中后3个第二等级请求端按优先级放入第三队列中。If the third-level request end is processed first, the server puts the first-level request end in the first queue and the second-level request end in the second queue into the third queue according to the preset scheduling policy, and puts the first-level request end in the second queue into the third queue. The last 5 first-level requesters in the second queue and the last 3 second-level requesters in the second queue are put into the third queue according to priority.

图2所示为根据本发明第一较佳实施例提供的队列的示意图。如图2所示,若第二、三等级请求端先处理完毕,服务器根据预设的调度策略将第一队列中的第一等级请求端放入第二、第三队列中,将第一队列中后5个a、b、c、d、e第一等级请求端,a、b、c放入第二队列,位于以后接收的第二等级请求端的前面,d、e放入第三队列中,位于以后接收的第三等级请求端的前面。Fig. 2 is a schematic diagram of the queue provided according to the first preferred embodiment of the present invention. As shown in Figure 2, if the second and third-level request ends are processed first, the server will put the first-level request in the first queue into the second and third queues according to the preset scheduling strategy, and put the first-level request Among the last 5 first-level requesters a, b, c, d, e, a, b, and c are put into the second queue, which are located in front of the second-level requesters received later, and d, e are put into the third queue , located in front of third-level requesters received later.

图3所示为根据本发明第二较佳实施例提供的调度方法的流程图。如图3所示,本发明较佳实施例提供的调度方法包括步骤301~304。Fig. 3 is a flowchart of a scheduling method provided according to a second preferred embodiment of the present invention. As shown in FIG. 3 , the scheduling method provided by the preferred embodiment of the present invention includes steps 301-304.

步骤301:服务器为不同等级的请求端分别建立队列。其中,请求端按数据处理优先级分为不同的等级,服务器按请求端不同等级分别建立队列。Step 301: The server establishes queues for requesters of different levels. Among them, the requesting end is divided into different levels according to the data processing priority, and the server establishes queues according to different levels of the requesting end.

步骤302:服务器接收请求端的接入请求后,将请求端分别放入对应队列,其中,较低等级请求端在比其高一等级请求端的队列中同时排队。首先请求端连接服务器,向服务器发出接入请求。服务器接收到请求端的接入请求后,将请求端分别放入对应的等级队列开始排队。Step 302: After receiving the access request from the requesting end, the server puts the requesting ends into corresponding queues respectively, wherein the requesting end of a lower level queues in the queue of the requesting end of a higher level at the same time. First, the requester connects to the server and sends an access request to the server. After receiving the access request from the requesting end, the server puts the requesting end into the corresponding level queue and starts queuing.

举例而言,若请求端等级为三级,第一等级请求端对应的队列为第一队列,第二等级请求端对应的队列为第二队列,第三等级请求端对应的队列为第三队列,其中,等级越低,优先级越高。第一等级请求端在第二队列中同时排队,位于第二队列中第二等级请求端请求端的后面;第二等级请求端在第三队列中同时排队,位于第三队列中第三等级请求端的后面。For example, if the requester level is three, the queue corresponding to the first level requester is the first queue, the queue corresponding to the second level requester is the second queue, and the queue corresponding to the third level requester is the third queue , where the lower the level, the higher the priority. The first-level requester queues in the second queue at the same time, located behind the second-level requester in the second queue; the second-level requester queues in the third queue at the same time, located behind the third-level requester in the third queue later.

步骤303:服务器接收到处理端同意处理的响应后,推送待处理的请求端至处理端处理。其中,请求端连接服务器,服务器连接处理端。Step 303: After receiving the response that the processing end agrees to process, the server pushes the pending request end to the processing end for processing. Wherein, the requesting end is connected to the server, and the server is connected to the processing end.

具体而言,处理端向服务器发送同意处理的响应后,服务器发送命令通知队列中第一个请求端进入处理,请求端不同意进入,服务器将请求端从当前队列移除,但所述请求端不离开另一个排队队列。Specifically, after the processing end sends a response to the server agreeing to process, the server sends a command to notify the first requester in the queue to enter processing. If the requester does not agree to enter, the server removes the requester from the current queue, but the requester Do not leave another enqueuing queue.

处理端向服务器发送同意处理的响应后,服务器发送命令通知队列中第一个请求端进入处理,请求端同意进入,服务器推送待处理的请求端至处理端处理,数据处理结束,处理端主动发送消息给服务器,服务器根据消息将请求端从队列中移除,并推送下一个待处理的请求端至处理端处理。After the processing end sends a response to the server agreeing to process, the server sends a command to notify the first requester in the queue to enter processing, the requester agrees to enter, the server pushes the request to be processed to the processing end for processing, the data processing is completed, and the processing end actively sends The message is sent to the server, and the server removes the request end from the queue according to the message, and pushes the next pending request end to the processing end for processing.

步骤304:服务器队列中某一等级或者多个不同等级请求端处理完毕后,服务器根据预设控制策略将队列中等级小于处理完毕的请求端放入已处理完毕的请求端对应的队列中,进行处理,其中,等级越低,优先级越高。Step 304: After a certain grade or multiple requesters of different grades in the server queue are processed, the server puts the requesters whose grades are lower than the processed ones in the queue into the queue corresponding to the processed requesters according to the preset control strategy, and performs processing, wherein the lower the rank, the higher the priority.

举例而言,若请求端等级为3级,第一等级请求端对应的队列为第一队列,第二等级请求端对应的队列为第二队列,第三等级请求端对应的队列为第三队列。For example, if the level of the requester is level 3, the queue corresponding to the first level requester is the first queue, the queue corresponding to the second level requester is the second queue, and the queue corresponding to the third level requester is the third queue .

若第三级请求端先处理完毕,服务器根据预设的调度策略将第一队列中的第一等级请求端、第二队列中的第二等级请求端放入第三队列中,将第一队列中后5个第一等级请求端、第二队列中后3个第二等级请求端放入第三队列中。If the third-level request end is processed first, the server puts the first-level request end in the first queue and the second-level request end in the second queue into the third queue according to the preset scheduling policy, and puts the first-level request end in the second queue into the third queue. The last 5 first-level requesters and the last 3 second-level requesters in the second queue are put into the third queue.

图4所示为根据本发明较佳实施例提供的服务器的示意图。如图4所示,服务器20包括建立模块201、请求处理模块202及控制模块203。建立模块201连接请求处理模块202,请求处理模块202连接控制模块203。其中,建立模块201用于为不同等级的请求端分别建立队列,请求处理模块202用于接收请求端的接入请求后,将请求端分别放入对应队列,接收到处理端同意处理的消息后,推送待处理的请求端至处理端处理。控制模块203用于若队列中某一等级或者多个不同等级请求端处理完毕后,根据预设控制策略将队列中等级小于处理完毕的请求端放入已处理完毕的请求端对应的队列中,等待处理。关于服务器的具体操作过程同前述方法所述,故于此不再赘述。Fig. 4 is a schematic diagram of a server provided according to a preferred embodiment of the present invention. As shown in FIG. 4 , the server 20 includes an establishment module 201 , a request processing module 202 and a control module 203 . The establishment module 201 is connected to the request processing module 202 , and the request processing module 202 is connected to the control module 203 . Among them, the establishment module 201 is used to set up queues for requesters of different levels, and the request processing module 202 is used to receive the access request of the requester, put the requester into the corresponding queue respectively, and receive the message that the processing terminal agrees to process, Push the pending request end to the processing end for processing. The control module 203 is used to put the requester whose grade in the queue is lower than the processed requester into the queue corresponding to the processed requester according to the preset control strategy if a certain level or multiple requesters of different levels in the queue are processed, pending processing. The specific operation process of the server is the same as that of the aforementioned method, so it will not be repeated here.

图5所示为根据本发明较佳实施例提供的调度系统的示意图。如图5所示,调度系统1包括多个请求端、服务器20及多个处理端。以三个请求端、三个处理端为例,请求端11、请求端12、请求端13、服务器20及处理端31、处理端32、处理端33。请求端11、请求端12、请求端13连接服务器20,服务器20连接处理端31、处理端32、处理端33。其中,服务器20为不同等级请求端11、请求端12、请求端13分别建立队列,服务器20接收请求端11、请求端12、请求端13的接入请求后,将请求端11、请求端12、请求端13分别放入对应队列。服务器20接收到处理端31同意处理的响应后,推送待处理的请求端11至处理端31处理。若服务器20队列中某一等级请求端12或者多个不同等级请求端12、请求端13处理完毕后,服务器20根据预设控制策略将队列中等级小于处理完毕的请求端11放入已完毕的请求端12或者多个不同等级请求端12、请求端13对应的队列中,进行处理。关于调度系统的具体操作过程同前述方法所述,故于此不再赘述。Fig. 5 is a schematic diagram of a scheduling system provided according to a preferred embodiment of the present invention. As shown in FIG. 5 , the scheduling system 1 includes multiple request ends, a server 20 and multiple processing ends. Taking three requesting ends and three processing ends as an example, the requesting end 11 , the requesting end 12 , the requesting end 13 , the server 20 and the processing end 31 , the processing end 32 , and the processing end 33 . The requesting end 11 , the requesting end 12 , and the requesting end 13 are connected to the server 20 , and the server 20 is connected to the processing end 31 , the processing end 32 , and the processing end 33 . Wherein, the server 20 establishes queues respectively for requesters 11, 12 and 13 of different levels. After receiving the access requests of the requester 11, 12 and 13, the server 20 sends the , and the requesting end 13 are put into corresponding queues respectively. After receiving the response that the processing end 31 agrees to process, the server 20 pushes the request end 11 to be processed to the processing end 31 for processing. If a certain level of requester 12 in the queue of the server 20 or a plurality of requesters 12 and 13 of different levels are processed, the server 20 puts the requester 11 whose grade in the queue is smaller than the completed requester 11 into the completed requester according to the preset control strategy. The requester 12 or the queues corresponding to multiple requesters 12 and 13 of different levels are processed. The specific operation process of the dispatching system is the same as that of the aforementioned method, so it will not be repeated here.

综上所述,根据本发明较佳实施例提供的调度方法、服务器及系统,针对不同优先等级的数据,可以在数据发起请求时按照不同等级排队,对海量数据进行疏导,更好地提供分层服务。同时,根据数据处理端空闲情况,服务器按照特定策略灵活调整数据处理顺序,以上都减少了排队等待时间,提高了数据处理效率。To sum up, according to the scheduling method, server and system provided by the preferred embodiments of the present invention, data of different priority levels can be queued according to different levels when the data initiates a request, and the massive data can be channeled to better provide distribution. layer service. At the same time, according to the idle situation of the data processing end, the server flexibly adjusts the data processing sequence according to a specific strategy, which reduces the waiting time in queuing and improves the data processing efficiency.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1.一种调度方法,其特征在于:1. A scheduling method, characterized in that: 服务器为不同等级请求端分别建立队列;The server establishes queues for different levels of requesters; 服务器接收所述请求端的接入请求后,将请求端分别放入对应队列;After receiving the access request from the requesting end, the server puts the requesting end into corresponding queues; 服务器接收到处理端同意处理的响应后,推送待处理的所述请求端至所述处理端处理;After receiving the response that the processing end agrees to process, the server pushes the request end to be processed to the processing end for processing; 服务器队列中某一等级或者多个不同等级请求端处理完毕后,服务器根据预设控制策略将队列中等级小于处理完毕的请求端放入已处理完毕的请求端对应的队列中,进行处理,其中,等级越低,优先级越高。After a certain grade or multiple requests of different grades in the server queue are processed, the server puts the requesters whose grades are lower than the processed ones in the queue into the queue corresponding to the processed requesters according to the preset control strategy, and processes them. , the lower the level, the higher the priority. 2.根据权利要求1所述的方法,其特征在于:所述控制策略包括:2. The method according to claim 1, wherein the control strategy comprises: 若请求端等级为3级,第一等级请求端对应的队列为第一队列,第二等级请求端对应的队列为第二队列,第三等级请求端对应的队列为第三队列;若第三等级请求端先处理完毕,服务器根据预设的调度策略将第一队列中的第一等级请求端、第二队列中的第二等级请求端放入第三队列中。If the level of the requester is level 3, the queue corresponding to the first level requester is the first queue, the queue corresponding to the second level requester is the second queue, and the queue corresponding to the third level requester is the third queue; if the third level The level requester is processed first, and the server puts the first level requester in the first queue and the second level requester in the second queue into the third queue according to the preset scheduling strategy. 3.根据权利要求2所述的方法,其特征在于:所述调度策略包括:3. The method according to claim 2, characterized in that: the scheduling policy comprises: 将第一队列中后5个第一等级请求端、第二队列中后3个第二等级请求端按优先级放入第三队列中。Put the last 5 first-level requesters in the first queue and the last 3 second-level requesters in the second queue into the third queue according to priority. 4.根据权利要求1所述的方法,其特征在于:所述控制策略包括:4. The method according to claim 1, wherein the control strategy comprises: 若请求端等级为3级,第一等级请求端对应的队列为第一队列,第二等级请求端对应的队列为第二队列,第三等级请求端对应的队列为第三队列;若第二、三等级请求端先处理完毕,服务器根据预设的调度策略将第一队列中的第一等级请求端放入第二、第三队列中。If the level of the requester is level 3, the queue corresponding to the first level requester is the first queue, the queue corresponding to the second level requester is the second queue, and the queue corresponding to the third level requester is the third queue; 1. The three-level request ends are processed first, and the server puts the first-level request ends in the first queue into the second and third queues according to the preset scheduling policy. 5.根据权利要求4所述的方法,其特征在于:所述调度策略包括:5. The method according to claim 4, characterized in that: the scheduling policy comprises: 将第一队列中后5个第一等级请求端,其中前3个放入第二队列,另外2个放入第三队列中。Put the last 5 first-level requesters in the first queue, among them, the first 3 are put into the second queue, and the other 2 are put into the third queue. 6.一种调度方法,其特征在于:6. A scheduling method, characterized in that: 服务器为不同等级请求端分别建立队列;The server establishes queues for different levels of requesters; 服务器接收所述请求端的接入请求后,将请求端分别放入对应队列,其中,较低等级请求端在比其高一等级请求端的队列中同时排队;After receiving the access request of the requesting end, the server puts the requesting end into the corresponding queue respectively, wherein, the requesting end of the lower level is queued in the queue of the higher level requesting end at the same time; 服务器接收到处理端同意处理的响应后,推送待处理的所述请求端至所述处理端处理;After receiving the response that the processing end agrees to process, the server pushes the request end to be processed to the processing end for processing; 服务器队列中某一等级或者多个不同等级请求端处理完毕后,服务器根据预设控制策略将队列中等级小于处理完毕的请求端放入已处理完毕的请求端对应的队列中,进行处理,其中,等级越低,优先级越高。After a certain grade or multiple requests of different grades in the server queue are processed, the server puts the requesters whose grades are lower than the processed ones in the queue into the queue corresponding to the processed requesters according to the preset control strategy, and processes them. , the lower the level, the higher the priority. 7.根据权利要求6所述的方法,其特征在于:若请求端等级为3级,则第一等级请求端在第二等级请求端对应的队列中同时排队;第二等级请求端在第三等级请求端对应的队列中同时排队。7. The method according to claim 6, characterized in that: if the requester level is 3, then the first level requester queues up in the queue corresponding to the second level requester; the second level requester queues up at the third level Queue in the queue corresponding to the level request end at the same time. 8.根据权利要求7所述的方法,其特征在于:8. The method of claim 7, wherein: 较低等级请求端在比其高一等级请求端的队列中同时排队时,位于比其高一等级请求端的队列中请求端的后面。When a lower-level requester is simultaneously queued in the queue of a higher-level requester, it is located behind the requester in the queue of a higher-level requester. 9.一种服务器,其特征在于,包括:建立模块、请求处理模块及控制模块,建立模块连接请求处理模块,请求处理模块连接控制模块,其中:9. A kind of server, it is characterized in that, comprising: build module, request processing module and control module, build module connection request processing module, request processing module connect control module, wherein: 建立模块,用于为不同等级请求端分别建立队列;Establishing modules for establishing queues for different levels of requesting ends; 请求处理模块,用于接收所述请求端的接入请求后,将请求端分别放入对应队列,接收到处理端同意处理的响应后,推送待处理的所述请求端至所述处理端处理;The request processing module is configured to, after receiving the access request from the requesting end, put the requesting end into the corresponding queue respectively, and after receiving the response that the processing end agrees to process, push the pending request end to the processing end for processing; 控制模块,用于若队列中某一等级或者多个不同等级请求端处理完毕后,根据预设控制策略将队列中等级小于处理完毕的请求端放入已处理完毕的请求端对应的队列中,进行处理,其中,等级越低,优先级越高。The control module is used to put the requesters whose grades in the queue are lower than the processed ones into the queue corresponding to the processed requesters according to the preset control strategy after the requesters of a certain level or multiple different levels in the queue are processed, Processing is performed, wherein the lower the rank, the higher the priority. 10.一种调度系统,其特征在于,包括:请求端、服务器及处理端,请求端连接服务器,服务器连接处理端,其中:10. A scheduling system, characterized in that it comprises: a requester, a server and a processing end, the requesting end is connected to the server, and the server is connected to the processing end, wherein: 服务器为不同等级请求端分别建立队列;The server establishes queues for different levels of requesters; 服务器接收所述请求端的接入请求后,将请求端分别放入对应队列;After receiving the access request from the requesting end, the server puts the requesting end into corresponding queues; 服务器接收到处理端同意处理的响应后,推送待处理的所述请求端至所述处理端处理;After receiving the response that the processing end agrees to process, the server pushes the request end to be processed to the processing end for processing; 若服务器队列中某一等级或者多个不同等级请求端处理完毕后,服务器根据预设控制策略将队列中等级小于处理完毕的请求端放入已完毕的请求端对应的队列中,进行处理,其中,等级越低,优先级越高。If a certain grade or multiple requests of different grades in the server queue are processed, the server puts the requesters whose grades are lower than the processed ones in the queue into the queue corresponding to the completed requesters for processing according to the preset control strategy, among which , the lower the level, the higher the priority.
CN2011102580652A 2011-09-02 2011-09-02 Dispatching method, server and system Pending CN102281202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102580652A CN102281202A (en) 2011-09-02 2011-09-02 Dispatching method, server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102580652A CN102281202A (en) 2011-09-02 2011-09-02 Dispatching method, server and system

Publications (1)

Publication Number Publication Date
CN102281202A true CN102281202A (en) 2011-12-14

Family

ID=45106394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102580652A Pending CN102281202A (en) 2011-09-02 2011-09-02 Dispatching method, server and system

Country Status (1)

Country Link
CN (1) CN102281202A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897613A (en) * 2015-12-08 2016-08-24 乐视云计算有限公司 Level-limit-free QoS realizing method and level-limit-free QoS system
CN108093272A (en) * 2017-12-29 2018-05-29 北京奇艺世纪科技有限公司 A kind of video CD N method for optimizing scheduling and device
CN108694018A (en) * 2017-04-11 2018-10-23 爱思开海力士有限公司 Data storage device and its operating method
CN108768886A (en) * 2018-05-30 2018-11-06 无锡知更鸟网络科技有限公司 A kind of SaaS data access increased quality method
CN112543489A (en) * 2020-11-24 2021-03-23 上海擎昆信息科技有限公司 Method and device for controlling user equipment admission

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1182553A2 (en) * 2000-08-24 2002-02-27 Cognos Incorporated Efficient assignment of processing resources in a fair queuing system
CN1422475A (en) * 2000-02-08 2003-06-04 天然网络技术有限公司 Multilevel Scheduling Method for Multiplexing Packets in Communication Networks
CN101360052A (en) * 2008-09-28 2009-02-04 成都市华为赛门铁克科技有限公司 Method and device for flow scheduling
CN101552726A (en) * 2009-05-14 2009-10-07 北京交通大学 A grading services edge router

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1422475A (en) * 2000-02-08 2003-06-04 天然网络技术有限公司 Multilevel Scheduling Method for Multiplexing Packets in Communication Networks
EP1182553A2 (en) * 2000-08-24 2002-02-27 Cognos Incorporated Efficient assignment of processing resources in a fair queuing system
CN101360052A (en) * 2008-09-28 2009-02-04 成都市华为赛门铁克科技有限公司 Method and device for flow scheduling
CN101552726A (en) * 2009-05-14 2009-10-07 北京交通大学 A grading services edge router

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897613A (en) * 2015-12-08 2016-08-24 乐视云计算有限公司 Level-limit-free QoS realizing method and level-limit-free QoS system
CN108694018A (en) * 2017-04-11 2018-10-23 爱思开海力士有限公司 Data storage device and its operating method
CN108694018B (en) * 2017-04-11 2021-05-25 爱思开海力士有限公司 Data storage device and operation method thereof
CN108093272A (en) * 2017-12-29 2018-05-29 北京奇艺世纪科技有限公司 A kind of video CD N method for optimizing scheduling and device
CN108093272B (en) * 2017-12-29 2020-11-24 北京奇艺世纪科技有限公司 A kind of video CDN scheduling optimization method and device
CN108768886A (en) * 2018-05-30 2018-11-06 无锡知更鸟网络科技有限公司 A kind of SaaS data access increased quality method
CN112543489A (en) * 2020-11-24 2021-03-23 上海擎昆信息科技有限公司 Method and device for controlling user equipment admission

Similar Documents

Publication Publication Date Title
CN104079501B (en) Queue scheduling method based on multiple priorities
Aujla et al. EDCSuS: Sustainable edge data centers as a service in SDN-enabled vehicular environment
CN111130858B (en) A Dynamic Multi-Object Virtual Network Mapping Method in SD-WAN Scenario
CN107666448B (en) 5G virtual access network mapping method under time delay perception
CN108874525A (en) A kind of service request distribution method towards edge calculations environment
CN101557348A (en) Message forwarding method and device based on token bucket
Xu et al. Near-optimal and collaborative service caching in mobile edge clouds
CN102281202A (en) Dispatching method, server and system
CN102571583A (en) Quality of service (QoS) aware self-adaptive bandwidth distribution system for wireless-optical broadband access networks (WOBAN) and self-adaptive bandwidth distribution method
Zhang et al. An efficient caching and offloading resource allocation strategy in vehicular social networks
CN115914890A (en) Elastic optical network maximum tolerant delay redistribution method and system based on edge cloud computing
CN101155118A (en) BGP route processing method and device
Rukmani et al. Scheduling algorithm for real time applications in mobile ad hoc network with opnet modeler
CN106060145A (en) Profit based request access control method in distributed multi-cloud data center
CN108200202A (en) A kind of service function chain security deployment method that network is calculated applied to cloud and mist
CN101594307A (en) Scheduling method and system based on multi-level queue
Najm et al. Cost-and-delay aware dynamic resource allocation in federated vehicular clouds
CN117812708A (en) Multi-service QoS-oriented low-orbit satellite network multi-target resource allocation method
Meneguette et al. An efficient green-aware architecture for virtual machine migration in sustainable vehicular clouds
Paganini et al. Network stability under alpha fair bandwidth allocation with general file size distribution
CN103179009A (en) A Dynamic Adaptive Calling Method of Distributed Management System
CN110708678B (en) A communication method and device
CN103297542A (en) Operating system bus and balancing method supporting online expansion and retraction of components
CN102769566A (en) Method and device for configuring multilevel scheduling system, and method and device for changing configuration of multilevel scheduling system
CN101997720B (en) The method of trans-regional monitoring flow program request and video management server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111214