The content of the invention
The present invention provides the method for cable network side speech damage and base station in a kind of testing wireless communication, to wireless
The speech damage of base station wire transmission network side carries out independent test and appraisal in communication.
The method of cable network side speech damage in a kind of testing wireless communication provided in an embodiment of the present invention, including:
Talking link is established in base station to access the first terminal of the base station and accessing the second terminal of the base station, and supervises
Listen the talking link;
The first terminal is extracted from the talking link according to setting rule and be sent to the upper of core net in the base station
Row voice, and extract the core net from the talking link according to the setting rule and return under the second terminal
Row voice;Wherein, the ascending voice is used to be used as reference voice, and the downlink voice is used for wired as the progress of disturbed voice
Network side speech damage detects.
Alternatively, the base station extracts the first terminal from the talking link according to setting rule and is sent to core
The ascending voice of net, and the core net is extracted from the talking link according to the setting rule and returns to described second eventually
The downlink voice at end, including:
The base station is extracted in the first terminal and the communication process of the second terminal, and the air time, which is more than or equal to, to be set
Fixed voice extraction initiation value and the ascending voice in the period for the voice extraction close value for being less than or equal to setting and institute
State downlink voice.
Alternatively, methods described also includes:
The base station carries out the ascending voice as reference voice and the downlink voice as disturbed voice wired
Network side speech damage detects.
Alternatively, the base station is entered the ascending voice as reference voice and the downlink voice as disturbed voice
The speech damage detection of row cable network side, including:
The ascending voice extracted and the downlink voice are converted into the voice document of lasting output by the base station
And be input in canonical algorithm, calculate the speech quality values of cable network side.
Alternatively, methods described also includes:
The base station carries out the ascending voice, the downlink voice on GTP (GPRS Tunnel Protocol) layer of protocol stack
Extraction, and/or the calculating of the speech quality values.
Based on same inventive concept, a kind of base station provided by the invention, the base station includes:
Control module, for establishing call to access the first terminal of the base station and accessing the second terminal of the base station
Link, and monitor the talking link;
Extraction module, core net is sent to for extracting the first terminal from the talking link according to setting rule
Ascending voice, and extract the core net according to the setting rule from the talking link and return to the second terminal
Downlink voice;Wherein, the ascending voice is used to be used as reference voice, and the downlink voice is used to carry out as disturbed voice
The speech damage detection of cable network side.
Alternatively, the extraction module is specifically used for:
Extract the first terminal and in the communication process of the second terminal, the air time is more than or equal to the voice of setting
Extract initiation value and less than or equal to the ascending voice in the period of the voice extraction close value of setting and the descending language
Sound.
Alternatively, the base station also includes detection module, and the detection module is used for:
Using the ascending voice as reference voice and the downlink voice cable network side language is carried out as disturbed voice
Sound damage check.
Alternatively, the detection module is specifically used for:
The ascending voice extracted and the downlink voice are converted into the voice document of lasting output and are input to
In canonical algorithm, the speech quality values of cable network side are calculated.
Alternatively, the extraction module is additionally operable to:
The base station carries out the ascending voice, the downlink voice on GTP (GPRS Tunnel Protocol) layer of protocol stack
Extraction, and/or the calculating of the speech quality values.
Another embodiment of the present invention provides a kind of base station, and it includes memory and processor, wherein, the memory is used
Instructed in storage program, the processor is used to call the programmed instruction stored in the memory, is held according to the program of acquisition
Any of the above-described kind of method of row.
Another embodiment of the present invention provides a kind of computer-readable storage medium, and the computer-readable recording medium storage has
Computer executable instructions, the computer executable instructions are used to make the computer perform any of the above-described kind of method.
In the embodiment of the present invention, after talking link is established in base station for the first terminal and second terminal of access base station, it can supervise
The talking link is listened, and extraction first terminal is sent to the ascending voice of core net from the talking link according to setting rule,
And core net returns to the downlink voice of second terminal.Because first terminal and second terminal have accessed same base station, in language
During sound is conversed, after base station receives the ascending voice of first terminal transmission, the ascending voice can be sent to core net,
Base station is sent to by core net again, just obtains the downlink voice of second terminal.In this way, the mistake of downlink voice is obtained by ascending voice
Journey merely through the wired network portion between base station and core net transmission, therefore, the first terminal extracted using base station
Ascending voice and the downlink voice of second terminal the speech damage of cable network side can effectively be detected, so as to realize
The effect of independent test and appraisal is carried out to the speech damage of base station in wireless communications wire transmission network side.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, the present invention is made below in conjunction with accompanying drawing into
One step it is described in detail, it is clear that described embodiment, only part of the embodiment of the present invention, rather than whole implementation
Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made
All other embodiment, belongs to the scope of protection of the invention.
The embodiment of the present invention is described in further detail with reference to Figure of description.
In the embodiment of the present invention, the base station can be the base in the communication system of the multiple types such as 2G, 3G, 4G, LTE
Stand, the present invention is not particularly limited to this.As a kind of example, only invention will illustrate by taking the base station in LTE system as an example
The network rack that the method for cable network side speech damage is applicable in a kind of testing wireless communication provided in the embodiment of the present invention
Structure.
The network architecture diagram that Fig. 1 is applicable by the method provided in the embodiment of the present invention, as shown in figure 1, being wrapped in the system
Include LTE base station and first terminal, the second terminal of the LTE base station are accessed by radio communication.In addition, also include in the system
LTE access networks, LTE core network, IMS core net and internet (i.e. public network) with the base station wired connection.
In this way, when first terminal and second terminal carry out voice call, base station will be that first terminal and second terminal are built
Vertical talking link, the talking link are specifically used for the speech data between transmission first terminal and second terminal.Specifically, this is logical
Words link includes caller voice transfer link and called voice transfer link, and wherein caller voice transfer link is used to transmit caller
Terminal is sent to the speech data of terminal called, and called voice transfer link is sent to calling terminal for transmitting terminal called
Speech data.
In the embodiment of the present invention, the calling and called relation of first terminal and second terminal can be that first terminal is that caller is whole
End, second terminal is terminal called;Or can also be that first terminal is terminal called, second terminal is calling terminal.
Using first terminal as calling terminal, second terminal be terminal called exemplified by, between first terminal and second terminal
Caller voice transfer link can be as shown in the arrow of dotted line in Fig. 1, and first terminal is by being sequentially connected LTE base station, LTE is accessed
Net, LTE core network, IMS core net, then LTE core network, LTE access networks, LTE base station are returned to by IMS core net successively, and then
Reach second terminal.Wherein, LTE base station, and second terminal connection are connected by first terminal in the caller voice transfer link
The part of LTE base station is wireless network, and LTE base station is with the part that LTE access networks, LTE core network, IMS core net are connected
Cable network.
Based on the above-mentioned network architecture, Fig. 2 shows cable network in the testing wireless communication provided in the embodiment of the present invention
Schematic flow sheet corresponding to the method for side speech damage, as shown in Fig. 2 methods described includes:
Step S201:Call is established in base station to access the first terminal of the base station and accessing the second terminal of the base station
Link, and monitor the talking link.
Step S202:The first terminal is extracted from the talking link according to setting rule and be sent to core in the base station
The ascending voice of heart net, and extract the core net from the talking link according to the setting rule and return to described second
The downlink voice of terminal;Wherein, the ascending voice is used to be used as reference voice, and the downlink voice is used to be used as disturbed voice
Carry out the speech damage detection of cable network side.
In the embodiment of the present invention, after talking link is established in base station for the first terminal and second terminal of access base station, it can supervise
The talking link is listened, and extraction first terminal is sent to the ascending voice of core net from the talking link according to setting rule,
And core net returns to the downlink voice of second terminal.Because first terminal and second terminal have accessed same base station, in language
During sound is conversed, after base station receives the ascending voice of first terminal transmission, the ascending voice can be sent to core net,
Base station is sent to by core net again, just obtains the downlink voice of second terminal.In this way, the mistake of downlink voice is obtained by ascending voice
Journey merely through the wired network portion between base station and core net transmission, therefore, the first terminal extracted using base station
Ascending voice and the downlink voice of second terminal the speech damage of cable network side can effectively be detected, so as to realize
The effect of independent test and appraisal is carried out to the speech damage of base station in wireless communications wire transmission network side.
In the embodiment of the present invention, each terminal is respectively provided with a unique mark, and the mark is specially the IMSI codes of terminal
(International mobile subscriber identification number, international mobile subscriber identity).Base
Stand by the IMSI codes of terminal can unique identification each terminal, and according to the calling/called voice between IMSI code distinguishing terminals
Transmission link.It should be noted that the IMSI codes of terminal can be what terminal was pre-configured with by base station in the embodiment of the present invention.
Due to first terminal and second terminal can caller each other and called, but exist between first terminal and second terminal
Two voice transfer links, are respectively used to transmit the speech data that first terminal is sent to second terminal, and second terminal
It is sent to the speech data of first terminal.Therefore, no matter the calling and called relation of first terminal and second terminal why, any terminal
Speech data can be sent to another terminal, and the voice data transmission of both direction is not interfere with each other.Based on this, above-mentioned steps
S201 to step S202 only so that first terminal sends the process of speech data to second terminal as an example, illustrates in the embodiment of the present invention
The method of cable network side speech damage in the testing wireless communication of offer.
In step s 201, if first terminal and the equal access base station of second terminal, and first terminal or second terminal are to base
Station sends beep-page message, and request carries out voice call with other side's (i.e. second terminal or first terminal), then base station will be first
Terminal and second terminal establish talking link, and the talking link specifically includes two:Second is sent to for transmitting first terminal
First voice transfer link of the speech data of terminal, be sent to the speech data of first terminal for transmitting second terminal
Two voice transfer links.
As shown in figure 1, the first voice transfer link can be divided into two parts again, wherein by first terminal successively to LTE base station,
The part of LTE access networks, LTE core network and IMS core net can be described as the ascending voice transmission link of first terminal, by IMS cores
Heart net arrive successively LTE core network, LTE access networks, LTE base station arrive the part of second terminal and can be described as the descending language of second terminal again
Sound transmission link.
After base station is first terminal and second terminal establishes talking link, base station can monitor the talking link, and obtain
Take the speech data transmitted in the talking link.
Then, in step S202, base station can be sent to the up language of core net according to setting Rule Extraction first terminal
Sound, and the downlink voice that core net returns to second terminal is extracted from talking link according to the setting rule.
In first terminal and the communication process of second terminal, first terminal is first by wireless network by its ascending voice
Base station is sent to, the ascending voice is extracted, and transmit in the ascending voice of first terminal in base station after the ascending voice is received
The ascending voice is sent to core net (i.e. IMS core net shown in Fig. 1) on link.And then core net is again in second terminal
Downlink voice transmission link on, the ascending voice received is returned into base station, hereafter the ascending voice can be described as second eventually
The downlink voice is extracted in the downlink voice at end, base station after the downlink voice is received.
From the transmitting procedure of above-mentioned speech data, in the ideal case, the ascending voice that base station is extracted with it is descending
The data content of voice is identical, but due to the influence of cable network side, the downlink voice that base station is an actually-received with it is upper
There is some difference (such as packet loss, out of order) between row voice, speech damage can be described as.
And then base station can be arrived the ascending voice extracted as reference voice, downlink voice as disturbed phonetic entry
In canonical algorithm, so as to calculate the speech quality values of the speech damage for weighing cable network side.
Because base station is the above-mentioned up language of extract real-time during first terminal and second terminal carry out voice call
Sound and downlink voice, therefore, the speech data extracted can be also converted into and hold while speech data is extracted by base station
The voice document of continuous output, and be input in canonical algorithm.In this way, when first terminal and the end of conversation of second terminal, lead to
Speech quality values can be calculated according to complete ascending voice file and downlink voice file by crossing canonical algorithm.
In the embodiment of the present invention, the speech quality values can be MOS (mean oponion score, average opinion value)
Value, the canonical algorithm can be PESQ (perceptual evaluation of speech quality, Subjective speech matter
Amount is assessed) algorithm.It should be noted that those skilled in the art can select suitable canonical algorithm, the mark according to being actually needed
Quasi- algorithm includes being not limited to above-mentioned PESQ algorithms.
In the embodiment of the present invention, the setting rule can be base station extraction first terminal and the communication process of second terminal
In, the air time is more than or equal to the period of the voice extraction initiation value of setting and the voice extraction close value less than or equal to setting
Interior ascending voice and downlink voice.That is, because link-quality when talking link initially sets up and will removed can
Can be poor, and weigh in the communication process between first terminal and second terminal speech damage caused by cable network side not
The speech data of whole durations in its communication process is needed, but only that part of speech data when link is stable.
Specifically, when base station starts to receive the ascending voice of first terminal, the duration of call of the ascending voice can be carried out
Timing, when the voice that the duration of call reaches setting extracts initiation value, start to extract ascending voice, and in the duration of call reach and set
When fixed voice extracts close value, stop extraction ascending voice.Similarly, next second is sent back when base station starts reception core net
During the downlink voice of terminal, can also it start timing to the duration of call of the downlink voice, when the duration of call reaches the voice of setting
When extracting initiation value, start to extract downlink voice, and when the voice that the duration of call reaches setting extracts close value, stop extraction
Downlink voice.
In the embodiment of the present invention, the voice extraction initiation value and voice extraction close value can be by art technologies
Personnel are specifically set according to being actually needed, and the present invention is not particularly limited to this.
For example, if above-mentioned voice extraction initiation value is arranged to 2 minutes, voice extraction close value is arranged to 7 minutes, then
Base station is started by monitoring voice transfer link in real time when the duration of call between first terminal and second terminal is 2 minutes
Voice is extracted, stops extraction voice when the duration of call is 7 minutes, and it is logical between first terminal and second terminal by extracting
Duration is talked about to be more than 2 minutes, and the ascending voice and downlink voice that are less than in the period of 7 minutes are converted into and constantly exported, it is defeated
Enter into canonical algorithm, to carry out the calculating of MOS values.
Fig. 3 be provide a kind of base station internal structure schematic diagram, as shown in figure 3, the protocol stack of inside of base station include from
Include GTP (GPRSTunnellingProtocol, GPRS Tunnel Protocol), PDCP (Packet Data under up to successively
Convergence Protocol, PDCP), RLC (Radio Link Control, radio link layer control
Agreement), MAC (layer such as Media Access Control, media access control layer, PHY (Physical Layer, physical layer),
First terminal carries out data interaction with second terminal by air interface and the physical layer of the base station, and the GTP layers of base station are responsible for
Access network, core net with cable network side carry out data interaction.Specifically, the base station in the embodiment of the present invention is in the agreement
Carry out the extraction of above-mentioned ascending voice, downlink voice on the GTP layers of stack, and/or the calculating of the speech quality values.
Method by being provided in the embodiment of the present invention, base station are used using the uplink and downlink voice document extracted
Canonical algorithm calculates speech quality scores, can targetedly assess degree of injury of the base station cable network side to voice quality,
Not only realize and assess unaware, can also save assessed cost, reduce and assess difficulty, improve testing efficiency.
Based on same inventive concept, the embodiment of the present invention also provides a kind of base station, and Fig. 4 is to be provided in the embodiment of the present invention
A kind of base station structural representation, as shown in figure 4, the computing device 400 includes:
Control module 401, for being established to access the first terminal of the base station and accessing the second terminal of the base station
Talking link, and monitor the talking link;
Extraction module 402, core is sent to for extracting the first terminal from the talking link according to setting rule
The ascending voice of heart net, and extract the core net from the talking link according to the setting rule and return to described second
The downlink voice of terminal;Wherein, the ascending voice is used to be used as reference voice, and the downlink voice is used to be used as disturbed voice
Carry out the speech damage detection of cable network side.
Alternatively, the extraction module 402 is specifically used for:
Extract the first terminal and in the communication process of the second terminal, the air time is more than or equal to the voice of setting
Extract initiation value and less than or equal to the ascending voice in the period of the voice extraction close value of setting and the descending language
Sound.
Alternatively, the base station also includes detection module 403, and the detection module 403 is used for:
Using the ascending voice as reference voice and the downlink voice cable network side language is carried out as disturbed voice
Sound damage check.
Alternatively, the detection module 403 is specifically used for:
The ascending voice extracted and the downlink voice are converted into the voice document of lasting output and are input to
In canonical algorithm, the speech quality values of cable network side are calculated.
Alternatively, the extraction module 402 is additionally operable to:
The base station carries out the ascending voice, the downlink voice on GTP (GPRS Tunnel Protocol) layer of protocol stack
Extraction, and/or the calculating of the speech quality values.
Based on same inventive concept, the embodiment of the present invention also provides another base station, and the base station can include centre
Manage device (Center Processing Unit, CPU), memory, input-output apparatus etc., input equipment can include keyboard,
Mouse, touch-screen etc., output equipment can include display device, as liquid crystal display (Liquid Crystal Display,
LCD), cathode-ray tube (Cathode Ray Tube, CRT) etc..
Memory can include read-only storage (ROM) and random access memory (RAM), and provide storage to processor
The programmed instruction and data stored in device.In embodiments of the present invention, memory can be used for storing and have in testing wireless communication
The program of the method for line network side speech damage.
By calling the programmed instruction of memory storage, processor is used to perform according to the programmed instruction of acquisition processor
The method for stating cable network side speech damage in testing wireless communication.
Based on same inventive concept, the embodiments of the invention provide a kind of computer-readable storage medium, for saving as
The computer program instructions used in computing device are stated, it, which is included, is used to perform cable network side voice in above-mentioned testing wireless communication
The program of the method for damage.
The computer-readable storage medium can be any usable medium or data storage device that computer can access, bag
Include but be not limited to magnetic storage (such as floppy disk, hard disk, tape, magneto-optic disk (MO) etc.), optical memory (such as CD, DVD,
BD, HVD etc.) and semiconductor memory (such as it is ROM, EPROM, EEPROM, nonvolatile memory (NAND FLASH), solid
State hard disk (SSD)) etc..
By the above it can be seen that:
In the embodiment of the present invention, after talking link is established in base station for the first terminal and second terminal of access base station, it can supervise
The talking link is listened, and extraction first terminal is sent to the ascending voice of core net from the talking link according to setting rule,
And core net returns to the downlink voice of second terminal.Because first terminal and second terminal have accessed same base station, in language
During sound is conversed, after base station receives the ascending voice of first terminal transmission, the ascending voice can be sent to core net,
Base station is sent to by core net again, just obtains the downlink voice of second terminal.In this way, the mistake of downlink voice is obtained by ascending voice
Journey merely through the wired network portion between base station and core net transmission, therefore, the first terminal extracted using base station
Ascending voice and the downlink voice of second terminal the speech damage of cable network side can effectively be detected, so as to realize
The effect of independent test and appraisal is carried out to the speech damage of base station in wireless communications wire transmission network side.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can use wherein includes the meter of computer usable program code at one or more
The computer journey that calculation machine usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of sequence product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The function of being specified in present one flow of flow chart or one square frame of two or more flow and/or block diagram or two or more square frame
Device.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
The manufacture of device is made, the command device is realized in one flow of flow chart or two or more flow and/or one side of block diagram
The function of being specified in frame or two or more square frame.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or two or more flow and/or square frame
The step of function of being specified in one square frame of figure or two or more square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.