Summary of the invention
In view of this, a kind of network equipment need be provided, be used for the detecting voice package, so as to voice data packet provide service quality (Quality Of Service, QoS).
In addition, a kind of method of network equipment detecting voice package need be provided also, be used for the detecting voice package, so that QoS is provided to voice data packet.
A kind of network equipment comprises voice flow predicting list, receiver module, voice flow judge module, service module and sending module.The voice flow predicting list comprises a plurality of voice data packet projects, and each voice data packet project comprises synchronous source identifier.Receiver module is used to receive package.The voice flow judge module is used for judging according to the synchronous source identifier of package whether package matees voice flow predicting list voice data packet project.Service module is used for when package coupling voice flow predicting list voice data packet project, for said package provides service quality.Sending module is used to send package.
A kind of method of network equipment detecting voice package may further comprise the steps: the voice flow predicting list is provided, comprises a plurality of voice data packet projects, each voice data packet project comprises synchronous source identifier; Receive package, said package comprises synchronous source identifier; Judge according to the synchronous source identifier of said package whether said package matees any voice data packet project in the said voice flow predicting list; If said package matees any voice data packet project in the said voice flow predicting list, then service quality is provided for said package; Send said package.
The method of the network equipment provided by the present invention and detecting voice package thereof can conveniently detect voice data packet, effectively provides service quality in voice data packet.
Embodiment
See also Fig. 1, be depicted as the functional block diagram of the network equipment 10 1 execution modes of the present invention.
The network equipment 10 comprises receiver module 100, voice flow judge module 102, voice flow predicting list 104, service module 120 and sending module 130.
Voice flow predicting list 104 comprises a plurality of voice data packet projects; Each voice data packet project comprises source network agreement (Internet Protocol; IP) address, purpose internet protocol address, source port, destination interface and synchronisation source (Synchronization Source, SSRC) identifier.
Receiver module 100 is used to receive package, and said package comprises synchronous source identifier.
Voice flow judge module 102 is used for judging according to the synchronous source identifier of package whether package matees voice flow predicting list 104 voice data packet projects.In this execution mode; Voice flow judge module 102 compares source network protocol address, purpose internet protocol address, source port, destination interface and the synchronous source identifier of voice data packet project in source network protocol address, purpose internet protocol address, source port, destination interface and the synchronous source identifier of package and the voice flow predicting list 104 judges whether package matees the voice data packet project in the voice flow predicting list 104; Thereby utilize said voice flow predicting list 104 that the package of transmission/reception is classified; Set up the project of a package sequence of the same type, collect the identical package of above-mentioned parameter.If the source network protocol address of package, purpose internet protocol address, source port, destination interface and synchronous source identifier are identical with source network protocol address, purpose internet protocol address, source port, destination interface and the synchronous source identifier of voice data packet project in the voice flow predicting list 104, then voice flow judge module 102 is judged relevant voice package project in the package coupling voice flow predicting list 104.Otherwise voice flow judge module 102 is judged the packages voice data packet project in the voice flow predicting list 104 that do not match.
Service module 120 is used for when package coupling voice flow predicting list 104 voice data packet projects, for package provide service quality (Quality of Service, QoS).
Sending module 130 is used to send package.
As the further improvement of embodiment of the present invention, the network equipment 10 also comprises specification judge module 108, coding specification tabulation 110 and counting module 106.
Coding specification tabulation 110 comprises the size of a plurality of voice data packet.
Specification judge module 108 is used for when package does not match voice flow predicting list 104 voice data packet projects; Judge whether said packet size matees the size of voice data packet in the said coding specification tabulation 110; And when voice data packet in the tabulation 110 of the size of said package coupling coding specification big or small, in voice flow predicting list 104, increase corresponding voice data packet project.
Each voice data packet project also comprises counter field in the voice flow predicting list 104, is used to write down the voice data packet number of entry of same type.
Counting module 106 is used for when package coupling voice flow predicting list 104 voice data packet projects; The value of the counter field in the voice data packet project of being mated is increased a fixed value; As add 1, and judge whether the value of the counter field after the increase fixed value surpasses the maximum limit definite value.In this execution mode, the maximum limit definite value is according to the predefined value of demand, as 20.
When the value of the counter field of the voice data packet project that service module 120 also is used for mating when package surpasses the maximum limit definite value, for all packages that belong to the voice data packet project that package matees provide service quality.
Consult Fig. 2, be depicted as the flow chart of method one execution mode of the network equipment 10 detecting voice packages.
At step S200, receiver module 100 receives package.
At step S202, voice flow judge module 102 judges whether the package that is received matees voice data packet project in the voice flow predicting list 104.
If voice flow judge module 102 is judged voice data packet project in the package coupling voice flow predicting list 104 that is received, at step S204, counting module 106 adds one with the value of the counter field in the voice data packet project of being mated.
At step S206, counting module 106 judges whether the value of the counter field in the voice data packet project that package matees surpasses the maximum limit definite value.
If counting module 106 is judged the value of the counter field in the voice data packet project that package mated and is not surpassed the maximum limit definite value that then receiver module 100 continues to receive package.
If counting module 106 judges that the value of the counter field in the voice data packet project that package mated has surpassed the maximum limit definite value, at step S208, service module 120 provides service quality for all packages in the voice data packet project that package mated.
The voice data packet project in the voice flow the predicting list 104 if package that 102 judgements of voice flow judge module are received does not match, then at step S210, specification judge module 108 judges whether the size of package matees the size of voice data packet in the coding specification tabulation 110.
If specification judge module 108 is judged the size of package and matees the size of voice data packet in the coding specification tabulation 110 that at step S212, specification judge module 108 increases relevant voice package project in voice prediction tabulation 104.
At step S208, service module 120 provides service quality for package.
At step S214, sending module 130 sends the package that service quality is provided.
Consult Fig. 3, be the 104 automatic flow charts that upgrade of voice flow predicting list among Fig. 1.
At step S300, obtain the last time of handling of voice data packet project.
At step S302, judge whether the last time of handling of voice data packet project surpasses the package specification processing time.In this execution mode, the package specification processing time was predefined value as required, as 1 second.
Do not surpass the package specification processing time if judge the last time of handling of voice data packet project, then at step S304, the network equipment 10 continues to receive package, and turns back to step S200 shown in Figure 2, execution graph 2 flow processs.
Surpass the package specification processing time if judge the last time of handling of voice data packet project, at step S306, cancellation voice data packet project.
At step S308, all packages that sending module 130 sends in the voice data packet project.
The method of the network equipment that embodiment of the present invention provided and detecting voice package thereof can conveniently detect voice data packet, and the MPTS that meets the voice data packet specification is set up project, thereby effectively provides service quality in voice data packet.Simultaneously; The method of the network equipment that embodiment of the present invention provided and detecting voice package thereof also has following characteristics: between the parameters of detecting package institute foundation good independence is arranged; Can represent phonetic feature effectively; Have good differentiation property, and the parameters convenience of calculation, the required real-time function of speech recognition guaranteed.