Based on Dynamic Spectrum Management semi-physical simulation experiment system and the experimental technique of USRP
One technical field
The present invention relates to Dynamic Spectrum Management experimental system, particularly relate to a kind of Dynamic Spectrum Management semi-physical simulation experiment system based on USRP and experimental technique.Belong to electromagnetic spectrum management field.
Two background technologies
Along with the deep propelling of information industry revolution, wireless network has become the important infrastructure of modern society, network traffics and number of users rapid growth, and new radio network technique and business constantly occur, and radio communication relies on most important resource is frequency spectrum.Current spectrum management adopts fixing allocation model: using most of frequency range as mandate frequency range, issue licence plate (licence plate comprises the work parameter etc. of frequency range, geographical position and permission) to authorized user in these frequency ranges, and authorize these users long-term absolute exclusive right to use to this frequency range in given area; Meanwhile, retaining some unauthorized frequency ranges allows unauthorized competition to use.In such a mode, assignable mandate frequency range faces exhaustion, and wherein the utilance of most of frequency spectrum is very low; In unauthorized frequency range, wireless Mesh netword, Wi-Fi hotspot, wireless sensor network and mobile Ad Hoc network quantity increase fast, and frequency range is more and more crowded.Therefore, frequency spectrum contradiction that is rare and that distributed availability of frequency spectrum deficiency shows especially.
In this case, the rapid studied personnel of concept of Dynamic Spectrum Management accepted, and carry out dynamic management, change the mode of fixed allocation frequency spectrum in the past and the frequency spectrum right to use of exclusive formula, improve the availability of frequency spectrum frequency spectrum resource.The key technologies such as the dynamic frequency spectrum deployment algorithm in cognitive radio networks, frequency spectrum perception algorithm and dynamic spectrum access algorithm have become study hotspot in recent years.But so far only software emulation tool is confined to the checking of these algorithms, ivory-towered spectrum environment and by frequently demand, therefore lacks simulated effect and stronger convincingness intuitively.
Three summary of the invention
Main purpose of the present invention is the above-mentioned shortcoming overcome existing for software emulation tool, a kind of Dynamic Spectrum Management semi-physical simulation experiment system based on USRP and experimental technique are provided, are used for truly, reliably, evaluate the effect of Dynamic Spectrum Management mode intuitively; Meanwhile, the quality of Different Dynamic spectrum allocation may, frequency spectrum perception and dynamic spectrum access scheduling algorithm can also be contrasted.
The object of the invention is to be realized by following technical scheme:
A kind of Dynamic Spectrum Management semi-physical simulation experiment system based on USRP, it is characterized in that: comprise Spectrum Management Center, dynamic spectrum access network and cognitive user, Spectrum Management Center and cognitive user access local dynamic spectrum access network by radio communication.
Described cognitive user is made up of computer, USRP and antenna, computer obtains base-band data stream after modulating the business datum that will send or control command, USRP is sent to by USB 2.0, USRP obtains radiofrequency signal after processing base-band data stream, sends finally by transmitting antenna.
USRP by reception antenna received RF signal, obtains base-band data stream after radio frequency signal processes, and then base band data is flowed through USB 2.0 and be sent in computer, and computer obtains business datum or control command after carrying out demodulation; USRP automatically can revise oneself running parameter according to the control command received.
Based on a Dynamic Spectrum Management hardware-in-the-loop simulation experimental technique of USRP, it is characterized in that: adopt following concrete steps:
The first step, according to artificial tasks, utilizes Python to write Spectrum Management Center software and comprises main interface, frequency spectrum perception submodule, frequency spectrum policy management submodule, spectrum allocation may submodule and spectrum monitoring submodule etc.
Second step, Spectrum Management Center utilizes frequency spectrum perception submodule periodically to carry out perception to local spectrum environment;
3rd step, Spectrum Management Center is according to the available spectrum resources of the information in frequency spectrum policy management submodule and sensing results determination Home Network;
4th step, cognitive user in dynamic spectrum access network sends with request frequently to Spectrum Management Center, mode that if frequency spectrum resource adopts " fixing static allocation ", then Spectrum Management Center utilizes spectrum allocation may submodule to be fixed static allocation, allocation result is sent to each cognitive user by USRP, cognitive user configures the running parameter of local USRP automatically after receiving this result, and adopts this parameter to communicate always;
5th step, if frequency spectrum resource adopts " dynamic assignment " mode, then Spectrum Management Center utilizes spectrum allocation may submodule to carry out dynamic assignment, allocation result is sent to each cognitive user by USRP, cognitive user receives the running parameter of the local USRP of rear automatic configuration, repeats above-mentioned steps when Home Network available spectrum resources or with when demand changes frequently;
6th step, spectrum monitoring submodule can utilize USRP analog spectrum instrument to monitor frequency spectrum resource, and the indexs such as the throughput of analysis network and QoS, assess this emulation.
Beneficial effect of the present invention: the present invention can simulate Dynamic Spectrum Management mode under simulated environment, tests the crucial submodule (algorithm) realized involved by Dynamic Spectrum Management, assesses the performance of network.All test environments all obtain from real environment, and experimental result is more directly perceived and have convincingness, reducing the time needed for exploitation and cost, having good facilitation to realizing Dynamic Spectrum Management.
Four accompanying drawing explanations
Fig. 1 is principle of compositionality schematic diagram of the present invention.
Fig. 2 is USRP pictorial diagram.
Fig. 3 is cognitive user structured flowchart.
Fig. 4 is Spectrum Management Center software.
Fig. 5 is the sub-interface of cognitive user.
Five embodiments
Principle of compositionality schematic diagram of the present invention as shown in Figure 1.Be arranged on USRP motherboard by transmitting antenna, reception antenna and RFX2400 daughter board, material object as shown in Figure 2.Computer can simulate cognitive user after being connected by USB 2.0 with USRP and antenna, realizes dynamic spectrum access ability, as shown in Figure 3.
Spectrum Management Center software as shown in Figure 4, comprises main interface, frequency spectrum perception submodule, frequency spectrum policy management submodule, spectrum allocation may submodule and spectrum monitoring submodule etc.
Computer obtains base-band data stream after modulating the business datum that will send or control command, sends USRP to by USB2.0, and USRP obtains radiofrequency signal after processing base-band data stream, sends finally by transmitting antenna.
USRP by reception antenna received RF signal, obtains base-band data stream after radio frequency signal processes, and then base band data is flowed through USB 2.0 and be sent in computer, and computer obtains business datum or control command after carrying out demodulation.
Utilize front two bit differentiated service data and the control command of packet, " OR " is control command; " NM " is business datum title, and " FC " is business datum content, and " ND " terminates for business datum.
After spectrum allocation may, Spectrum Management Center, in the receive frequency Broadcasting Control instruction of each cognitive user, sends the configuration file comprising the whole network user job parameter simultaneously.The transmission parameter that this configuration file arranges oneself as shown in Figure 5, when cognitive user sends business datum to other users, is read in the sub-interface of cognitive user.
Based on a Dynamic Spectrum Management hardware-in-the-loop simulation experimental technique of USRP, adopt following concrete steps:
The first step, according to artificial tasks, utilizes Python to write Spectrum Management Center software and comprises main interface, frequency spectrum perception submodule, frequency spectrum policy management submodule, spectrum allocation may submodule and spectrum monitoring submodule etc.
Second step, Spectrum Management Center utilizes frequency spectrum perception submodule periodically to carry out perception to local spectrum environment;
3rd step, Spectrum Management Center is according to the available spectrum resources of the information in frequency spectrum policy management submodule and sensing results determination Home Network;
4th step, cognitive user in dynamic spectrum access network sends with request frequently to Spectrum Management Center, mode that if frequency spectrum resource adopts " fixing static allocation ", then Spectrum Management Center utilizes spectrum allocation may submodule to be fixed static allocation, allocation result is sent to each cognitive user by USRP, cognitive user configures the running parameter of local USRP automatically after receiving this result, and adopts this parameter to communicate always;
5th step, if frequency spectrum resource adopts " dynamic assignment " mode, then Spectrum Management Center utilizes spectrum allocation may submodule to carry out dynamic assignment, allocation result is sent to each cognitive user by USRP, cognitive user receives the running parameter of the local USRP of rear automatic configuration, repeats above-mentioned steps when Home Network available spectrum resources or with when demand changes frequently;
6th step, spectrum monitoring submodule can utilize USRP analog spectrum instrument to monitor frequency spectrum resource, and the indexs such as the throughput of analysis network and QoS, assess this emulation.