Summary of the invention
For defective and the deficiency that overcomes prior art, the object of the present invention is to provide a kind of method that improves important information network transmission quality, can be under the certain situation of the network bandwidth, the Network Transmission quality of important service or important terminal message on the raising network.
In order to achieve the above object, the important message Network Transmission of a kind of raising of the present invention method for quality may further comprise the steps:
(1) captures the message of gateway forwards or transmission when monitoring module, obtain and need in the message to guarantee the important message of transmission quality and be transferred to sort module by carrying out analysis and judgement;
(2) sort module marks this important message of gateway forwards or transmission, and all messages are sent to queue management module;
(3) the queue management module important message that will mark is put into corresponding high-priority data transmission channel and is sent.
As a further improvement on the present invention, described step (1) is preceding also comprises:
(A) user is provided with the important type of message that needs to guarantee transmission quality, and is transferred to monitoring module and queue management module respectively:
(B) monitoring module carries out real-time monitoring messages in the control point and catches according to the important type of message of user's setting;
(C) queue management module is created general data transmission channel and the pairing high-priority data transmission channel of important message according to the important type of message of user's setting.
As a further improvement on the present invention, described step (1) is specially:
(11A) capture the message of gateway forwards or transmission when monitoring module, monitoring module is by analyzing source, purpose IP, port or the agreement of message, and judging to obtain needs in the message to guarantee the important message of transmission quality and be transferred to sort module.
As a further improvement on the present invention, described step (1) is specially:
(11B) capture the message of gateway forwards or transmission when monitoring module, and pass through source, the target MAC (Media Access Control) address of the control point analysis message in the protocol stack, judging to obtain needs in the message to guarantee the important message of transmission quality and be transferred to sort module.
As a further improvement on the present invention, described step (1) is specially:
(11C) catch the negotiation packet of the host-host protocol Network Based of gateway forwards or transmission when monitoring module, resolve the transmit port and the IP address of the important message that needs to guarantee transmission quality in this message, and give sort module this transmit port and IP address transfer.
As a further improvement on the present invention, described step (2) is specially:
(21) after network transmission protocol signaling consulted to finish, terminal sent the message of host-host protocol Network Based to sort module;
(22) sort module marks important message according to transmit port and the IP address that monitoring module sends, and sends to queue management module.
As a further improvement on the present invention, described step (3) is specially:
(31) the queue management module important message that will mark is put into corresponding high-priority data transmission channel, will remain message and put into the general data transmission channel;
(32) when mechanical floor sends message, judge whether do not send message in the high-priority data transmission channel, if judged result then enters step (33) for being, if judged result is for denying then step end;
(33) after the important message in the taking-up high-priority data transmission channel sends, the message in the general data transmission channel is sent.
As a further improvement on the present invention, the described network transmission protocol is: safety shell protocol, Telnet, Secure Hypertext Transfer Protocol/HTML (Hypertext Markup Language), conversation initialized protocol, H.323 agreement, file transfer protocol (FTP).
After adopting above-mentioned method, owing to adopted discriminatory analysis to obtain important message to message, and important message marked the data channel that is put into high priority, queue management module is according to the priority of transmission data channel, data channel to high priority preferentially sends, and can guarantee the Network Transmission quality of the Network that some are important.
Embodiment
The present invention installs monitoring module in the gateway protocol stack, this module is used to analyze type of message, sort module is installed, be used on message, stamping type mark, simultaneously, relate to the queue management module in the gateway protocol stack, this module provides the data sendaisle of different priorities in the data link layer of protocol stack, and message is put into different passages according to mark.
(1) monitoring module and sort module
No matter be the message of gateway forwards, or the message that gateway sends, all can be handled by the protocol stack of gateway, message (route as 3 layers of forwarding, the situation of NAT), or the message of 2 layers of forwarding (bridge mode), perhaps directly transmitting from application layer, monitoring module is by a plurality of position configuration points of observation at protocol stack, all can capture, when monitoring module captures these messages, analyze immediately, judge its classification, and according to different results, the calling classification module is stamped corresponding mark on message, with the difference type of message, concrete sorting technique is as follows:
1) by source, purpose IP, port, agreement message is classified
Monitoring module by analyze in these 5 elements of message any one or a plurality of, whether be the type of being paid close attention to judge this message, if just utilize sort module on qualified message, to mark, and offer queue management module and handle.
2) by source, target MAC (Media Access Control) address message is classified
Monitoring module is analyzed source, the target MAC (Media Access Control) address of message by the control point in the protocol stack, judges whether message is the type of being paid close attention to, if just utilize sort module to mark on qualified message, and offer the queue management module processing.
3) by agreement message is classified
The present network transmission protocol, can simply be divided into two kinds, one class is single connection protocol, as SSH (safety shell protocol), and Telnet (Telnet), https/http (Secure Hypertext Transfer Protocol/HTML (Hypertext Markup Language)), this class is professional only to be connected and composed by a TCP/UDP, protocol characteristic clearly, if any fixed port or specific message content, so when monitoring module finds that the message of being monitored meets these features, just directly utilize sort module to stamp specific markers.Another kind of is multi-link business, as SIP (conversation initialized protocol), H323 agreement, FTP (file transfer protocol (FTP)) etc., the process of its work comprises control connection, and data connect, and the message port that data connect is determined in the process that control connection is consulted.This class is connected, need control connection earlier control connection to be intercepted, in case the control message (as the SIP/SDP message of SIP) that discovery is held consultation, monitoring module is just discerned and parsing work this message, grasp IP address and port numbers that this audio frequency, video connect (RTP/RTCP message), when data message (RTP/RTCP) when entering gateway device, monitored module is controlled immediately, and utilize sort module mark on message, thereby finish the classification of complex protocol message.
(2) queue management module
This module is according to the situation of message classification, create corresponding passage (as Fig. 1, create data channel, voice-grade channel, video channel etc.), when the message of institute's mark enters, queue management module is put into respective channel according to the not isolabeling of message, and according to the passage priority that sets in advance, send message, thus the transmission quality of the special packet that guarantees.
Below in conjunction with accompanying drawing the specific embodiment of the present invention is described in further detail.
As shown in Figure 1, be network environment schematic diagram of the present invention, application layer, transport layer, network layer, data link layer and physical layer are wherein arranged in the multimedia terminal, and gateway device one end has multimedia application layer, transport layer, network layer, data link layer and physical layer; The present invention can improve two layers of forwarding (gateway is in bridge mode), the message transmissions quality of three layers of forwarding (gateway is in route pattern).When message was done two layers of forwarding at the gateway place, gateway device served as bridge device, and at this moment two layers monitoring module plays a role, and mainly checks the MAC Address (also can check the IP address and the port of message) of message, and message is classified; When message is done three layers of forwarding at the gateway place, monitoring module is mainly done NAT gateway or router, at this moment three layers monitoring module plays a role, main IP address and the port of checking message, or agreement (also can check the MAC Address of message), message classified find out the type of important message, when classification finishes, when message enters two layers of sendaisle of gateway protocol stack, automatically put into different sendaisles by queue management module, thereby send message to Ieternet according to different priority.
As shown in Figure 2, queue management module is according to audio stream, data flow 1 to data flow n configuration and maintenance packet sendaisle, whole sendaisle is configured to data channel, voice-grade channel, video channel, and respectively different channel arrangement is sent priority (as audio frequency, video is the highest, data channel is minimum), when message arrives, queue management module is at first carried out channel selecting the classification of message is put into audio frequency, video, the data sendaisle, and dispatch according to the priority of passage, the message amount that each passage can send in the decision unit interval, thus realize guaranteeing audio frequency, the purpose of video network transmission quality.
As shown in Figure 3, be the flow process of the present invention's raising, may further comprise the steps based on the Network Transmission quality of the network multimedia terminal of Session Initiation Protocol:
(101) configuration effort, the user requires to guarantee based on the audio frequency of Session Initiation Protocol, the Network Transmission quality of video message by configuration:
(102) after monitoring module obtains this configuration, the control point with regard to the control connection port of SIP (dport be 5060 and near port) intercept, behind the intercepting and capturing message, just it is carried out the analytical work of Session Initiation Protocol
(103) queue management module is created SIP voice-grade channel, video channel, data channel, and disposes audio frequency, video channel high priority;
(104) user brings into use the SIP multimedia terminal, begins to call or carry out video conference, and terminal is sent and consulted the SIP/SDP message, and this negotiation packet is transmitted in the network layer of gateway protocol stack;
(105) monitoring module is caught SIP/SDP message (destination interface is 5060), monitoring module begins to resolve the SDP message, from analytic message, take out the data transmission port and the IP of SIP audio frequency, video, the i.e. port and the IP address of RTP/RTCP transmission in the future, and the configuration module that is transferred to ALG is with ready.
(106) the SIP signaling consults to finish, and sip terminal begins RTP/RTCP audio frequency, video message transmission, and the audio frequency on gateway device, video message enter the IP layer, and the configuration module that is employed layer gateway is immediately controlled, and this module marks on this heading.And send.
(107) RTP/RTCP audio frequency, the video message access arrangement layer that is marked, because this message has the sign of audio frequency, video, in the process that sends, queue management module is put into audio frequency, video channel with this message, all the other messages are put into data channel.When mechanical floor sends message, at first see whether do not send message in audio frequency, the video channel,, take out transmission,, just in data channel, get message, thereby guarantee audio frequency, video transmission quality if do not have if having.
(108) subscriber phone or video conference finish, and the SIP signaling is sent the SIP signaling of negotiation packet for finishing;
(109) after the monitoring module of ALG obtained this negotiation packet, the signaling of resolving negotiation packet was for finishing conversation, and the notice sort module quits work.
The present invention utilizes the ALG technology on network layer message to be classified, as data service class, voice class, video class, or even certain concrete application, use as Telnet, SSH uses, SIP voice class etc., perhaps press the source of message and divide (source IP address, source MAC), high priority terminal class, low preferential joint terminal class.And then utilize the queue management technology, create and safeguard a plurality of passages, as the data passage, voice-grade channel, video channel, high priority terminal passageway etc., when message access arrangement layer, queue management module is put into voice channel respectively, video channel just according to its mark, data channel or high priority terminal passageway, because the message in the priority difference of passage, high-priority channel preferentially guarantees to send, thereby guarantee the Network Transmission quality of the Network that these are important.