Method and system for queue scheduling optimization
Technical Field The invention relates to the supervision of the operator of the user flow technical field, in particular to a method and system for optimizing deployment queue. Background Art In the field of data communication, because of the traffic flow through the apparatus a wide variety of large flow rate and, therefore, in data communication equipment will be the queue scheduling, in order to ensure that a particular data stream has relatively high priority, can be priority call, the priority is low after the message of the call or is not invoked; also can be through the queue scheduling the various operational flow in accordance with the weight to be scheduled forwarding. In order to be able to monitor the business data flow in the network, the operator often in the data communication device is equipped with a mirror function, the data communication apparatus in the queue of the selected scheduling message may retransmit the mirror Image of the particular port, through the analysis of these forwarding message to understand the actual current and bandwidth of the use of the key elements of the data stream in the network. However, it is at present no effective method to confirm the data communication devices at present whether the queue scheduling mode is the most optimal. In this way, in the queue is not rational scheduling mode, there would be a certain time delay and jitter sensitive business message is hard to selectively drop. Content of the invention The invention solves the technical problem of providing a queue scheduling optimization method, also correspondingly provides a queue scheduling optimization system, in a timely and effective to judge whether the current queue scheduling mode is adjusted according to the need and queue scheduling mode, the queue to realize the optimum scheduling mode. In order to solve the above technical problem, the invention adopts the following solutions: A queue scheduling optimization method, comprising: The data communication apparatus perform real-time monitoring the flow of traffic, the monitoring of the congestion occurs, extracting the data communication equipment carries out queue scheduling discarding when the and its mirror Image of the message to the destination port, according to the message of the mirror Image of the traffic flow analysis of the current and outputs the analysis result, the analysis for the network administrator to adjust to the corresponding data communication apparatus to the queue scheduling mode. The above-mentioned method also includes: pre-set sampling criteria of the message to be extracted; In the extraction data communication equipment carries out queue scheduling discarding when the and its mirror Image of the message to the destination port, the discarded only in the message of the message in accordance with the sampling of the Image to the destination port. In the above-mentioned method, the monitoring of the congestion when the timing extraction means to extract the message. In the above-mentioned method, on the data communication apparatus perform real-time monitoring of the traffic flow, adopting a weighted random early detection algorithm to detect whether the congestion occurs. A queue scheduling optimization system, including data communication equipment and is located on the data communication apparatus a mirror Image of the module, also includes the message analysis apparatus; The mirror module, used for real-time monitoring the data traffic flow for a communication device, and the monitoring of the congestion occurs, extracting the data communication equipment carries out queue scheduling discarding when the and the message of the mirror Image of the message analysis apparatus; The message analysis apparatus, used for the basis of the received message analysis data communication equipment on the composition of the current traffic flow, and outputs the results of analysis for the network administrator, analysis in order to correspondingly adjust the data communications equipment to the queue scheduling mode. The system further includes a sampling criterion setting module, which is used for setting the sampling criteria of the message to be extracted; The mirror module in the extraction data communication equipment carries out queue scheduling discarding when the and the message of the mirror Image of the message analysis equipment, the discarded only in the message of the message in accordance with the sampling standards mirror Image of the message analysis apparatus. In the above-mentioned system, the mirror module includes the mirror Image timer, used for timing; The mirror module in monitoring the congestion when the mirror a timer to start timing extraction of the message. The invention has the following beneficial effects: The present invention in data communication equipment by the scheduling in the queue the message discarding when the mirror Image, through the analysis of the message to determine which of the traffic flow, the network administrator, based on the analysis result to the corresponding queue scheduling algorithm to adjust. In this way, the data communication apparatus can be a queue scheduling algorithm is optimal, the queue scheduling algorithm is not reasonable to latency and jitter caused by the more sensitive a service message is discarded. Description of drawings Figure 1 is the queue scheduling optimization system chart of the invention; Figure 2 is-queue scheduling optimization method flowchart of the invention; Figure 3 is the network chart of the embodiment of the invention. Mode of execution The embodiment of Figures and combined to the present invention for further detailed descriptions of: Please refer to fig. 1, shown in the diagram for the queue scheduling of the present invention optimize the system, which comprises: sampling standard setting module, data communication equipment, the data communication device is located in the mirror module, the message analysis apparatus; wherein the timer module also includes a mirror Image of the mirror Image; The sampling standard setting module, which is used for setting the sampling criteria of the message to be extracted; Mirror module, used for real-time monitoring data traffic flow for a communication device, and the monitoring of the congestion occurs, the timing extraction of data communication equipment carries out queue scheduling discarding when the of the message and the message in accordance with the above-mentioned sampling standards mirror Image of the message analysis apparatus; Message analysis apparatus, used for the basis of the received message analysis data communication equipment on the composition of the current traffic flow, and outputs the results of analysis for the network administrator, analysis in order to correspondingly adjust the data communications equipment to the queue scheduling mode. Please refer to fig. 2, shown in the diagram for the queue scheduling optimization method of the invention, specifically comprises the following steps: 201, through the sampling standard setting module to be extracted is set up in advance the characteristic of the sampling criteria of the message. 202, mirror module to the data communication apparatus perform real-time monitoring the flow of traffic, a congestion occurs in the detection of the execution of the step 203 ; the congestion or WRED (weighted random early detection algorithm) or to determine other existing algorithm. 203, mirror module in accordance with the sampling standard timing from data communication equipment carries out queue scheduling discarding when the extracted features in the message of the message. Timing extraction method of the message, and compared with the method of obtaining the message in real time, data communication equipment, and with reduced pressure of of the network. 204, the mirror module is the purpose of the message is sent to the mirrored port. 205, and the mirror Image of the message destination port is connected to the analyzing device receives the message, the composition of the analyzing the traffic flow, and outputs the results of analysis, by the network administrator so as to judge whether to need to adjust the data communication equipment to the queue scheduling mode. Embodiment: Please refer to fig. 3, shown in the diagram for the embodiment of the network chart, wherein User1 (user 1) and User2 (user 2) through the access device to access the Network Access-Server, Server-to-Capture apparatus is used to obtain the characteristic of the message the storage and analysis. The system realizes queue scheduling optimization method comprises the following steps: Step one, the the Access-Server 3 configuration queue scheduling algorithm hole, designated user for protocol type of the message belongs to the http 3, queue; Stated, is disposed on the mirror-Image function Access-Server, the source port of the mirror Image 3, I, to the destination port 4, port; when the need for mirror Image the 3 port by the queue scheduling algorithm, which is discarded to copy a copy of the message 4, port, from 4 sends out its port, to send to the Server-to-Capture apparatus; Step three, the setting timer 30 minutes, the mirror switch, to begin congestion detection, User1 the only at the beginning of the Internet, network is not congested areas, 1 User2 hours after have also begun to the Internet, network congestion, the congestion detected trigger mirror module to begin working, every 30 minutes for gripping in addition to 3 of the other message queue, each grabbing 5 minutes (can also be other duration, can be adjusted according to the requirements); Step four, the extracted message Access-Server from 4 Server-to-Capture equipment sent to the hole, the device will be to store these message, and analysis of its structure, outputs the results of analysis, in order to display whether it is necessary to optimize the network queue scheduling configuration. The above-mentioned embodiment in order to illustrate the technical scheme of the invention and non-limiting, with reference to only the preferred embodiments of a detailed explanation of the invention. The ordinary technical personnel in this field should be understood, the technical scheme of this invention for equivalent modification or replacement, and can not be separated from the technical scheme of the invention the spirit and scope of, the present invention should be covered by the right among range of requirements. The invention discloses a method and a system for the optimization of queue dispatching. The system comprises a data communication device, and a mirror module and message analyzing equipment which are positioned on the data communication device. The corresponding method comprises the following steps: the mirror module performs real-time monitoring on the business flow of the data communication device; when detecting congestion occurs, the mirror module extracts messages that are abandoned by the data communication device during the queue dispatching and mirrors the abandoned messages to a destination port. The message analyzing equipment analyzes the composition of the current business flow according to the mirrored messages and outputs analysis results for the network administrator to analyze so as to adjust the queue dispatching mode currently adopted by the data communication device accordingly. The adoption of the invention can optimize the queue dispatching algorithm adopted by the data communication device, and avoid the business messages that are sensitive to time delay and jitter from being forcibly abandoned due to the inappropriate queue dispatching algorithm. 1, a queue scheduling optimization method, characterized in that the method comprises: The data communication apparatus perform real-time monitoring the flow of traffic, the monitoring of the congestion occurs, extracting the data communication equipment carries out queue scheduling discarding when the and its mirror Image of the message to the destination port, according to the message of the mirror Image of the traffic flow analysis of the current and outputs the analysis result, the analysis for the network administrator to adjust to the corresponding data communication apparatus to the queue scheduling mode. 2, queue scheduling optimization method according to Claim 1, characterized in that the method further comprises: pre-set sampling criteria of the message to be extracted; In the extraction data communication equipment carries out queue scheduling discarding when the and its mirror Image of the message to the destination port, the discarded only in the message of the message in accordance with the sampling of the Image to the destination port. 3, queue scheduling optimization method according to Claim 1 or 2, characterized in that the stated method, the monitoring of the congestion when the timing extraction means to extract the message. 4, queue scheduling optimization method according to Claim 1 or 2, characterized in that the stated method, in the data communication apparatus perform real-time monitoring of the traffic flow, adopting a weighted random early detection algorithm to detect whether the congestion occurs. 5, a queue scheduling optimization system, including data communication equipment and is located on the data communication apparatus of the mirror module, characterized in that also comprises a message analysis apparatus; The mirror module, used for real-time monitoring the data traffic flow for a communication device, and the monitoring of the congestion occurs, extracting the data communication equipment carries out queue scheduling discarding when the and the message of the mirror Image of the message analysis apparatus; The message analysis apparatus, used for the basis of the received message analysis data communication equipment on the composition of the current traffic flow, and outputs the results of analysis for the network administrator, analysis in order to correspondingly adjust the data communications equipment to the queue scheduling mode. 6, queue scheduling optimization system according to Claim 5, characterized in that the system further comprises a sampling standards setting module, which is used for setting the sampling criteria of the message to be extracted; The mirror module in the extraction data communication equipment carries out queue scheduling discarding when the and the message of the mirror Image of the message analysis equipment, the discarded only in the message of the message in accordance with the sampling standards mirror Image of the message analysis apparatus. 7, queue scheduling optimization system according to Claim 5 or 6, characterized in that the mirror module includes the mirror Image timer, used for timing; The mirror module in monitoring the congestion when the mirror a timer to start timing extraction of the message.