Background technology
Along with the develop rapidly of wireless communication technology, wireless local area network technology has become the wireless technology that has influence power.Current, wireless local area network technology can provide 54Mbps even surpass the speed of 100Mbps, can carry out various data communication services by the WLAN (wireless local area network) people, comprises data, voice and video or the like.And, along with WLAN devices is more and more cheap, attracting increasing user to use wireless local area network technology, enjoy the convenience that wireless local area network technology brought.
VoIP is a kind of real-time voice business, and it is to use the IP technology to come transmission of speech signals.VoWLAN (based on the voice communication technology of WLAN) is the combination of VoIP and wireless local area network technology, it utilizes existing WLAN (wireless local area network) to realize wireless VoIP delivery value, can on IP network, realize mobile voice service, can be widely used in the mobile office occasions such as hospital, factory, airport and retail market.
VoIP has strict requirement to service quality (QoS), such as packet loss, delay and delay jitter etc. as a kind of real time business.Yet, WLAN (wireless local area network) adopts CSMA/CA (carrier wave detects multiple access/collision and avoids) technology, wireless local all wireless terminals off the net are competed transmission medium and shared network bandwidth in the mode of carrier sense, have only the wireless terminal of competing transmission medium just can carry out transfer of data.Because traditional wireless local area network technology does not provide any service quality control, this makes and has following problem when WLAN (wireless local area network) provides speech business:
(1) in any terminal, because any business classification is not provided, the coffret of wireless terminal is shared in speech business and data service, and miscellaneous service is competed coffret in the mode of statistical multiplexing.Owing to do not provide the prioritised transmission chance to speech business, when lot of data was professional, packets of voice can experience more queueing delay in wireless terminal, thereby has increased the end-to-end delay of voice packet transfer, influences voice quality.
(2) in the competition of transmission medium, each terminal is with identical physical transfer parameter competition transmission medium.In the environment of speech business and data service coexistence, can produce the influence of two aspects to the transmission of speech business, be when the data business volume in some wireless terminal is bigger on the one hand, these data services need more physical transfer chance, this has increased the degree of contention of transmission medium, thereby cause periodic packets of voice after the serious competition of experience, could obtain the chance of transmission, this serious competition normally packets of voice will be experienced just transmission success of repeatedly re-transmission, or unsuccessful transmission and being dropped, thereby increased the probability of packet loss and delay end to end, thereby influenced voice quality; Even the traffic carrying capacity that is data terminal on the other hand is not a lot, yet the quantity of the wireless terminal of shared transmission medium is many especially, and so many wireless terminals all have packet to transmit, this has also increased the competition of each terminal to wireless transmission medium, thereby also can increase the weight of the competitive pressure of packets of voice, increase the probability of packet loss and delay end to end, thereby influence voice quality.
At the service quality problem of VoWLAN, IEEE approval 802.11e standard is used to improve online audio frequency of wireless local and video transmission quality.802.11e standard definition four kinds of classs of service: voice, video, do one's best and the backstage business, every kind of business all has the formation of oneself, and different queue has different transmission priorities, priority orders is the highest with voice, video secondly, the backstage is minimum; Simultaneously, different physical transfer contention parameter is all given in every kind of formation, and priority is high more has more little contention parameter, and this makes that business of high priority has more competitive advantage in the physical transfer competition more.By with upper type, 802.11e can be optimized ordering to business, has solved the bandwidth contention problem in the wireless terminal; And have different physics contention parameter by different business, competing for the physical transmission medium of speech business provides more opportunity.Should, in the environment of being made up of the wireless terminal of 802.11e purely, the 802.11e standard can solve the prioritised transmission problem of speech business substantially.Yet existing environment more is to support the wireless terminal of 802.11e and do not support 802.11e wireless terminal mixed environment, and has a large amount of data terminals of not supporting 802.11e.In this hybird environment, the physical transfer parameter of the limit priority speech business of the wireless terminal of support 802.11e is identical with the physical transfer parameter of the wireless terminal of not supporting 802.11e, that is to say, do not support the wireless terminal of 802.11e to have and the identical physical transfer parameter of wireless terminal highest priority traffic of supporting 802.11e, this makes problem (2) also unresolved, just, in voice terminal and data terminal competition process, when particularly the data terminal data volume is bigger, voice terminal will experience serious competition and without any the prioritised transmission chance.On the other hand, existing voice terminal is the Wifi telephone terminal of only support voice business mostly, and this terminal is only supported the VoWLAN business.More than 2 explanations, in this hybird environment, 802.11e can't use, voice terminal will experience serious competition makes terminal live through many re-transmissions, this increases packet loss and delay.Because the decline of the service quality that wireless competition causes will have a strong impact on the real-time voice performance of services.
Because 802.11e can not solve the race problem of wireless air fully, therefore, in the environment for voice and data coexistence, be necessary to design new voice-optimizing mechanism and think that voice client provides more transmission opportunity, thus the service quality of raising voice.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, specific embodiments of the invention are elaborated below in conjunction with accompanying drawing.At this, illustrative examples of the present invention and explanation thereof are used to explain the present invention, but not as a limitation of the invention.
The embodiment of the invention has proposed a kind of voice-optimizing mechanism at problems of the prior art, and this optimization mechanism is mainly considered following two aspects:
(1) in the environment of voice and data coexistence, provide more transmission opportunity, therefore require WAP (wireless access point) can discern voice terminal automatically for voice terminal, so that distinguish wireless speech terminal and data terminal, thus can provide service for voice terminal;
(2) will provide a kind of competition avoidance mechanism for the wireless speech terminal in the physical transfer aspect, this mechanism can provide the chance of prioritised transmission to the voice terminal of being discerned, so that energy prioritised transmission packets of voice is optimized voice quality.
Based on above-mentioned consideration to optimization mechanism, the present invention proposes the voice-optimizing method and corresponding optimization means (as access point) can be discerned voice terminal automatically, and the prioritised transmission service can be provided the voice terminal of being discerned.
Embodiment 1
The embodiment of the invention provides the optimization method of the ascending voice transmission in a kind of WLAN (wireless local area network).
Fig. 1 has provided a kind of network environment example.In Fig. 1, WAP (wireless access point) 106 provides wireless coverage, and zone 107 is overlay areas of WAP (wireless access point) 106.In zone 107, existing wireless data terminal as wireless terminal 103,104 and 105, has wireless voice terminal again, and as Wi-fi mobile phone 101 and 102, these terminals all are connected on the WAP (wireless access point) 106.Can carry out voice communication mutually between the wireless speech terminal, the wireless speech terminal also can be carried out voice communication with the outside simultaneously.And, connecting external network if desired, WAP (wireless access point) connects the Internet by cable.
The basic principle of ascending voice transmission optimization method of the present invention is, in radio local network environment shown in Figure 1, this method operates on the WAP (wireless access point) 106, can discern the wireless speech terminal in the coverage 107 that this WAP (wireless access point) 106 provided automatically, and safeguard the voice conversation information of this wireless speech terminal.The grouping of this voice conversation that this method can be automatically arrives according to each voice conversation information monitoring of being safeguarded, and obtain the grouping information relevant with this voice conversation, comprise the load speech coding type, sequence number of protocol type, the voice conversation of MAC Address, udp port number, the voice conversation of the voice terminal under the voice conversation, source representation symbol (SSRC) and timestamp etc. synchronously.This method can be according to the expectation transmission time of the next packets of voice of this voice conversation of information calculations that is obtained.This method can also be according to the initiatively transmission of CTS frame of expectation transmission time scheduling of the next packets of voice of the voice conversation in its each wireless speech terminal of safeguarding, for the optimised wireless speech terminal of needs provides more prioritised transmission chance, to optimize up access voice transfer.
In the present embodiment, as shown in Figure 2, described ascending voice optimization method comprises the steps:
Step 210 receives and identifies the voice conversation grouping, obtains the voice conversation information of this voice conversation grouping.
Whether the grouping that can discern reception according to following condition is the voice conversation grouping, if promptly satisfy following condition can think receive be grouped into the voice conversation grouping:
What receive is grouped into Real-time Transport Protocol data in the User Datagram Protoco (UDP) UDP type, and is predefined speech coding type in the protocol code type of RTP head.
Identify the voice conversation grouping, it is the voice conversation terminal that the terminal of the source MAC correspondence of this voice conversation grouping just is identified as.
The described voice conversation information of obtaining in this step can comprise MAC Address, udp port number and other voice conversation parameters of the voice terminal under the voice conversation, and for example the current time of current sequence number, SSRC and the voice conversation of the protocol type of voice conversation, speech coding type, voice conversation stabs etc.
Step 220, whether the voice conversation grouping of inquiry identification has existed corresponding conversation recording, if exist, has promptly set up corresponding conversation recording, then enters step 240; If there is no corresponding conversation recording then enters step 230.
Step 230 is set up corresponding voice conversation record according to described voice conversation information.
This voice conversation writes down all packetized digital informations of this voice conversation that is used for recorder and the state of voice conversation.When the voice conversation record was set up, the initial condition of voice conversation was set to active state.
Step 240 is upgraded the voice conversation information in the voice conversation record.
Step 250 is calculated expectation transmission time of next voice conversation grouping according to the time intervals of time that receives the current speech conversation in the voice conversation record and adjacent two groupings.
Can be with the time of current system time as the current group that receives this voice conversation, and just can obtain time interval of adjacent two voice conversations grouping according to the difference of the adjacent voice conversation grouped time stamps that has received, that is:
Time+the time interval of the expectation transmission time=current group of next grouping.
Step 260, structure is the CTS frame initiatively, and is sent to corresponding voice conversation terminal in the expectation transmission time of described next voice conversation grouping.
This active of structure CTS frame in WAP (wireless access point), each CTS frame comprises the information of two aspects: the address and the duration of optimised wireless speech terminal, wherein the address of wireless speech terminal is the MAC Address of the wave point of voice terminal, and the duration is used to specify the transmission time of being reserved for this wireless speech terminal.The active CTS frame of being constructed was broadcasted away in coverage 107 by WAP (wireless access point) 106 in the expectation transmission time of the next packets of voice of expectation of the voice conversation of each wireless speech terminal.After certain wireless terminal in the coverage 107 receives the CTS frame from its wave point, according to 802.11 consensus standards, its protocol processing unit can judge automatically whether the destination address of CTS frame is consistent with the address of this terminal, if it is consistent, in specified time duration by this CTS frame subsequently, this wireless terminal can send data; If inconsistent,, its virtual carrier time be changed to the duration of this active CTS frame appointment, thereby in this duration, keep silent according to the virtual carrier sense mechanism in 802.11 standards.Like this, in the duration of this CTS frame, have only the wireless terminal of this CTS appointment can send data, played the effect of avoiding and provide the prioritised transmission chance of competing.
As can be known above-mentioned, in overlay area 107, optimization method of the present invention provides more voice-transport precedence or chance for the wireless speech terminal.
The embodiment of the invention can compatible any 802.11 standards, and in network environment of the present invention, can use the terminal of any third-party support 802.11 standards.Current, the 802.11e standard can provide the service quality control of MAC layer for wireless terminal.Yet optimization method of the present invention does not limit wireless terminal and supports the 802.11e standard, that is to say that optimization method of the present invention goes for supporting the wireless terminal of 802.11e standard, goes for not supporting the wireless terminal of 802.11e standard yet.
Optimization method of the present invention further, can play the protective effect to Radio Network System except optimizing the voice transfer.Concretely; when having malicious user or assailant in the system; can make non-malicious user or non-assailant is optimised terminal use; using the data that method of the present invention can limit malicious user or assailant effectively sends; thereby limit malicious user or assailant visit, thereby reach the purpose of protection Radio Network System wireless network.
The functional block diagram of the device of predicate sound optimization method (WAP (wireless access point)) as shown in Figure 3 in realization.As can be seen from Figure 3, this device comprises: voice conversation monitoring module 302, voice conversation information management module 303, expectation transmission time computing module 304 and active CTS scheduler module 305.Wherein:
Described voice conversation monitoring module 302 is used for automatically monitoring and discerning each voice conversation grouping, obtains the voice conversation information of this voice conversation grouping.This voice conversation information can comprise the address information and the voice conversation parameter of the wireless speech terminal that voice conversation therewith is relevant, and these voice conversation parameters comprise that again current time of current sequence number, SSRC and voice conversation of protocol type, speech coding type, the voice conversation of MAC Address, udp port number, the voice conversation of the voice terminal under this voice conversation stabs.
The voice conversation monitoring module is according to the grouping of following condition identification voice conversation: reception be grouped into Real-time Transport Protocol (RTP) data in the User Datagram Protoco (UDP) UDP type, and be predefined speech coding type in the protocol code type of RTP head.That is judge that the grouped data that receives is the voice conversation grouping when, the grouped data that judge to receive of voice conversation monitoring module satisfies as above condition.
After the voice conversation monitoring module identifies voice conversation information, according to the voice conversation information in the grouping (as source MAC and udp port number), whether there is corresponding voice conversation record to described voice conversation administration module inquiry, if there is no corresponding voice conversation record then sends the voice conversation record to voice conversation administration module 303 and sets up request; If there is corresponding voice conversation record, then send voice conversation record update request to voice conversation administration module 303.
303 main foundation and the maintenance works of being responsible for the voice conversation record of voice conversation administration module.Concretely, can receive newly-built voice conversation request from voice conversation monitoring module 302 to set up new voice conversation record; Can receive from the state update request of voice conversation monitoring module 302 to upgrade the state of voice conversation, and after state upgrades, send expectation transmission time computation requests to expectation transmission time computing module 304, and use the expectation transmission time of upgrading the voice conversation record from the expectation transmission time that expectation transmission time computing module 304 is returned, then expect that with this transmission time is to put scheduling time to active CTS module 305 to send the request of newly-increased expectation transmission time scheduling.
Described voice conversation administration module 303 also comprises regular enquiry module, is used for the state of the described voice conversation record of inquiry regularly, and the initial condition of this voice conversation record is an active state; If in setting-up time, have renewal, then keep described active state to the voice conversation record of active state; If there is not the renewal to the voice conversation record of active state in setting-up time, then revising described active state is inactive state; If there is the renewal to the voice conversation record of inactive state in setting-up time, then revising described inactive state is active state; If in setting-up time, do not have renewal, then delete described voice conversation record to the voice conversation record of inactive state.
The time of the current speech conversation that provided according to voice conversation administration module 303 is provided expectation transmission time computing module 304 and the time intervals of adjacent two groupings are calculated the expectation transmitting time of the next one grouping of this voice conversation, and the expectation transmission time of being calculated is fed back to voice conversation administration module 303.
Initiatively CTS scheduler module 305 is mainly used in initiatively CTS frame of scheduling, and the next one of this voice conversation of being safeguarded in the described voice conversation administration module 305 grouping expectation transmission time is sent to corresponding voice conversation terminal.Concretely, can receive newly-increased expectation transmission time scheduling request, increase scheduling project based on the described expectation transmission time from the voice conversation administration module; And, put in each scheduling time, can construct and send initiatively CTS frame, in this CTS frame, need the information aspect two: the MAC Address of optimised voice terminal and duration.MAC Address can obtain from the voice conversation record of voice conversation administration module 305, and the duration can be according to obtaining in the predefined mapping table, described predefined mapping table for example can be the quantity of default wireless speech terminal and the mapping table of duration, the wireless terminal quantity that WAP (wireless access point) inserts is many more, it is bigger more that this duration can be provided with, to realize the prioritised transmission of voice conversation data better.After structure was finished, this CTS frame was sent in the wave point 301 of WAP (wireless access point) 106, to be used to optimize optimised wireless speech client.
Fig. 4 is the flow chart of the voice conversation monitoring module described in Fig. 3 of the present invention, and the voice conversation that each newly advances can automatically be monitored and discern to this module, and can monitor the grouping of all voice conversations of being safeguarded in the voice conversation administration module 303.The concrete steps that this module realizes are:
Step 410: receive certain grouping from wave point 301.
Step 420 judges whether this grouping is the voice conversation grouping, if not, flow process finishes, if enter step 430.
In this step 420, can judge in the following way whether the grouping of reception is the voice conversation grouping:
Judge at first whether this grouping is the udp protocol type, if not, then judge it is not the voice conversation grouping; If the udp protocol type checks further then whether this grouping satisfies following condition 1,, then judge it is not the voice conversation grouping if do not satisfy; If satisfying then judging is the voice conversation grouping:
Condition 1: two of this grouping UDP load was 10 (representing that this is grouped into the RTP categorical data), and was predefined speech coding type in the media coding type of RTP head, as G.711ULaw, G.711ALaw, G.729, G.723 or the like.
Step 430: from this grouping, obtain source MAC and udp port number to be used to identify this voice conversation; And further from this grouping, obtain the information relevant with voice conversation, these information comprise that the current time of current sequence number, SSRC and the voice conversation of speech coding type, voice conversation stabs;
Step 440; The source MAC that obtained in the step 430 and udp port number are sent to voice conversation administration module 303 to judge whether this voice conversation is present in the voice conversation record of voice conversation administration module 303 as index information, if exist, then enter step 450; Otherwise, jump to step 460;
Step 450 judges that whether the voice conversation information that is obtained satisfies following condition 2 (the voice conversation grouping that expression receives belongs to the voice conversation record that inquires), if satisfy, then enters step 460 in step 430.Otherwise, process ends.
Condition 2: in the RTP head of the current speech conversation of reception, the sequence number of current speech conversation increases progressively with respect to the sequence number of the voice conversation grouping of record in the voice conversation record, timestamp increases progressively, and the SSRC field of each grouping has identical value.
Step 460, notice voice conversation administration module 303 upgrades the information of this voice conversation.
Step 470: the voice conversation information that will obtain from step 430 is constructed newly-built voice conversation record request for the basis, and submits to voice conversation administration module 303 and think that this voice conversation sets up corresponding record.
For finishing above-mentioned flow process, the voice conversation supervision module 302 in the embodiment of the invention can comprise:
Receiving element is used for receiving block data;
First recognition unit, whether the grouping that is used to discern reception is the voice conversation grouping;
Acquiring unit is used for obtaining voice conversation information from the grouping of identification;
The conversation recording query unit, be used for voice conversation information according to the voice conversation grouping of identification, whether there is corresponding voice conversation record to described voice conversation administration module inquiry, if there is no corresponding voice conversation record then sends the voice conversation record to the voice conversation administration module and sets up request; If there is corresponding voice conversation record, and grouping belongs to this conversation recording then to voice conversation administration module transmission voice conversation record update request.
Fig. 5 is the flow chart of voice conversation administration module 303 correspondences among Fig. 3 of the present invention.303 main foundation and the maintenance works of being responsible for the voice conversation record of voice conversation administration module.Concretely, can receive newly-built voice conversation request from voice conversation monitoring module 302 to set up new voice conversation record; Can receive from the state update request of voice conversation monitoring module 302 to upgrade the state of voice conversation, and after state upgrades, send expectation transmission time computation requests to expectation transmission time computing module 304, and use the expectation transmission time of upgrading the voice conversation record from the expectation transmission time that expectation transmission time computing module 304 is returned, then expect that with this transmission time is to put scheduling time to active CTS module 305 to send the request of newly-increased expectation transmission time scheduling.The concrete operations of this module can comprise:
Step 510-520: if receive newly-built voice conversation record request from voice conversation monitoring module 302, extract the information in the request message so, be the newly-built record of this voice conversation, and configuration state is active state, and the voice conversation record of foundation can be stored with the form of voice conversation admin table.Store session record back flow process finishes.
Step 530-540: upgrade the voice conversation request if receive, then according to the information in the request message, upgrade this voice conversation information, and this voice conversation state is changed to activity from voice conversation monitoring module 302.
Step 550: expect the transmission time computation requests with the address of this voice conversation, the information structuring of timestamp, and expectation transmission time computing module 304 is submitted in this request, to calculate the expectation transmission time of next grouping.
Step 560: with the expectation transmission time of this session of being obtained and the newly-increased initiatively CTS dispatch request of information structurings such as address of this voice conversation, and this request sent to initiatively CTS scheduler module 305, to increase new scheduling project based on the expectation transmission time.Initiatively carry the address and the duration information of optimised wireless speech terminal in the CTS dispatch request, wherein the address of wireless speech terminal is the MAC Address of the wave point of voice terminal, and the duration is used to specify the transmission time of being reserved for this wireless speech terminal.Flow process finishes after the structure dispatch request.
Step 570-580: voice conversation administration module self is the state of the described voice conversation record of (periodically) inquiry regularly, with the unnecessary voice conversation record of timely deletion.
This moment, the voice conversation administration module periodically carried out the voice conversation maintenance, traveled through every record being safeguarded in this module, if there is the renewal to active state in the time interval of one-period, then kept described active state; If there is not the renewal to active state in the time interval of one-period, then revising described active state is inactive state; And if existence is to the renewal of the voice conversation record of inactive state in the time interval of one-period, then revising described inactive state is active state; If in the time interval of one-period, do not have renewal, then delete described voice conversation record to the voice conversation record of inactive state.
Fig. 6 is the flow chart of expectation transmission time computing module 304 correspondences described in Fig. 2 of the present invention.The voice conversation temporal information that expectation transmission time computing module 304 is provided according to voice conversation administration module 303 is calculated the expectation transmitting time of the next one grouping of this voice conversation, and the expectation transmission time of being calculated is fed back to voice conversation administration module 303.The concrete steps of this module can comprise:
Step 610: receive expectation transmission time computation requests from voice conversation administration module 303; Comprise required information of calculation expectation transmission time in this request, these information comprise the MAC Address of the described terminal of the voice conversation of being managed, the time interval between the adjacent packets etc.;
Step 620: obtain current system time, this time, then the expectation transmission time of the next one of this voice conversation grouping calculated according to following formula (1) as the time that receives the current group of this voice conversation:
Time+the time interval (1) of the expectation transmission time=current group of next grouping
Step 630: the expectation transmission time of being calculated is returned to voice conversation administration module 305.
Fig. 7 is the flow chart of the active CTS scheduler module correspondence described in Fig. 2 of the present invention.Initiatively CTS scheduler module 305 is mainly used in the next one grouping expectation transmission time scheduling active CTS frame according to all voice conversations of being safeguarded in the voice conversation administration module 305.The concrete steps of this module can comprise:
Step 710-720: if receive newly-increased expectation transmission time scheduling project request from voice conversation administration module 303, then increase the scheduling project based on the described expectation transmission time in system, the time that this scheduling project is performed is expected the transmission time exactly;
Step 730-740: if certain scheduling project that active CTS scheduler module 305 is managed then is scheduled, illustrating needs to send active CTS frame to the pairing voice terminal of this voice conversation, so obtain the address of the associated voice terminal of this scheduling project and the duration that needs, and with the active CTS frame of these information structurings.
Step 750: after active CTS frame structure was finished, this CTS frame was sent on the wave point 301 of WAP (wireless access point) 106.
After certain wireless terminal in the coverage 107 receives the CTS frame from its wave point, if judge that the destination address of CTS frame is consistent with the address of this terminal, in specified time duration by this CTS frame subsequently, this wireless terminal can send data.Like this, in the duration of this CTS frame, have only the wireless terminal of this CTS appointment can send data, played the effect of avoiding and provide the prioritised transmission chance of competing.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the aforementioned flow process of present embodiment can instruct relevant hardware to finish by program.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.