Summary of the invention
Embodiment of the present invention technical problem to be solved is, a kind of frequency channel allocation method, Apparatus and system are provided, and can improve the dispensing rate of frequency passage.
In order to solve the problems of the technologies described above, the embodiment of the present invention provides a kind of frequency channel allocation method, comprising:
Receive the distribution request that frequency explorer sends; Described distribution request is used to receiving terminal for digital television request to distribute frequency passage, and described allocation request packet is drawn together: the area identification ID of described receiving terminal for digital television region;
According to described distribution request, from buffer memory, select frequency channel information;
The frequency channel information of selection is returned to described frequency explorer;
Frequency channel information is corresponding one by one with the frequency passage of IP quadrature amplitude modulation IPQAM equipment; The frequency passage of described IPQAM equipment is used to the region at receiving terminal for digital television place that service is provided;
Described frequency channel information comprises: the state information of corresponding frequency passage; The state information of described frequency passage is used to indicate the current state of described frequency passage, comprising: idle condition or using state.
Wherein, describedly from buffer memory, select frequency channel information according to described distribution request, comprising:
According to the region ID in described distribution request, from buffer memory, being retrieved as region that described region ID identifies provides the frequency channel information corresponding to frequency passage of the IPQAM equipment of service;
According to the described frequency channel information obtaining, select the frequency channel information that at least one frequency passage in idle condition is corresponding.
Wherein, described according to described distribution request, select frequency channel information from buffer memory after, also comprise:
Revise the state information of the corresponding frequency passage comprising in the selected frequency channel information in described buffer memory, make the state information of described frequency passage indicate the current state of described frequency passage to be: using state.
Correspondingly, the embodiment of the present invention also provides a kind of frequency channel allocation device, comprising:
Receiver module, the distribution request sending for receiving frequency explorer; Described distribution request is used to receiving terminal for digital television request to distribute frequency passage, and described distribution request comprises: the region ID of described receiving terminal for digital television region;
Distribution module for the distribution request receiving according to receiver module, is selected frequency channel information from buffer memory;
Sending module, for returning to described frequency explorer by the frequency channel information of described selection;
Frequency channel information is corresponding one by one with the frequency passage of IPQAM equipment; The frequency passage of described IPQAM equipment is used to the region at receiving terminal for digital television place that service is provided;
Described frequency channel information comprises: the state information of corresponding frequency passage; The state information of described frequency passage is used to indicate the current state of described frequency passage, comprising: idle condition or using state.
Wherein, described distribution module comprises:
Acquiring unit, for according to the region ID of described distribution request, from buffer memory, being retrieved as region that described region ID identifies provides the frequency channel information corresponding to frequency passage of the IPQAM equipment of service;
Selected cell, for the frequency channel information obtaining according to acquiring unit, selects the frequency channel information that at least one frequency passage in idle condition is corresponding.
Wherein, described distribution module, also for after selecting frequency channel information from buffer memory, revise the state information of the corresponding frequency passage comprising in the selected frequency channel information in described buffer memory, make the state information of described frequency passage indicate the current state of described frequency passage to be: using state.
Correspondingly, the embodiment of the present invention also provides a kind of frequency channel allocation system, comprising: caching server, at least one database, at least one frequency explorer and at least one frequency channel allocation device;
Described database, for storing frequency channel information, frequency channel information is corresponding one by one with the frequency passage of IPQAM equipment;
Described caching server, carries out buffer memory for the frequency channel information to described database;
Described frequency explorer, for by the distribution request receiving, is transmitted to corresponding frequency channel allocation device, and described distribution request is used to receiving terminal for digital television request to distribute frequency passage; Comprise: the region ID of described receiving terminal for digital television region, a frequency channel allocation device of described region ID mark, a frequency channel allocation device is identified by one or more region ID;
Described frequency channel allocation device for according to distributing request, is selected frequency channel information, and the frequency channel information of selection is returned to corresponding frequency explorer from caching server;
Described frequency explorer, for according to the region ID of the distribution request receiving, is transmitted to by described distribution request the frequency channel allocation device that described region ID identifies;
Described frequency channel allocation device, be used for according to the region ID of the distribution request receiving, from caching server, being retrieved as region that described region ID identifies provides the frequency channel information corresponding to frequency passage of the IPQAM equipment of service, and according to the described frequency channel information obtaining, select the channel channel information that at least one frequency passage in idle condition is corresponding.
Implement the embodiment of the present invention, there is following beneficial effect:
The distribution request that the frequency point allocation device of the embodiment of the present invention sends according to the frequency explorer receiving is selected frequency channel information, and the frequency channel information of selection is returned to frequency explorer from buffer memory.Due in the time carrying out frequency channel allocation, frequency point allocation device is directly selected frequency passage from buffer memory, makes the distribution of frequency passage no longer be limited to quantity and the type of database, has improved the dispensing rate of frequency passage; Further, adopt frequency point allocation device to substitute frequency explorer and carry out frequency channel allocation, can reduce the load of frequency explorer, improve systematic function.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Please refer to Fig. 1, is the schematic flow sheet of the embodiment of frequency channel allocation method of the present invention, and described frequency channel allocation method comprises:
Step S11, receives the distribution request that frequency explorer sends.
Wherein, the distribution request receiving is used to receiving terminal for digital television request to distribute frequency passage, this distribution request can comprise: the area identification ID of described receiving terminal for digital television region, this region ID can be the region code of receiving terminal for digital television region.
Step S12 according to distributing request, selects frequency channel information from buffer memory.
Wherein, IPQAM equipment is the frequency passage that receiving terminal for digital television is provided for transmitting audio/video flow, the frequency channel information corresponding to frequency passage of IPQAM equipment can be cached in caching server, and frequency channel information is corresponding one by one with the frequency passage of IPQAM equipment.Wherein, described frequency channel information can comprise: the state information of corresponding frequency passage; The state information of described frequency passage is used to indicate the current state of described frequency passage, and this state can comprise: idle condition or using state.In step S12, can be according to the region ID distributing in request, from buffer memory, being chosen as region that this region ID identifies provides the frequency channel information corresponding to frequency passage of the IPQAM equipment of service.
Step S13, returns to frequency explorer by the frequency channel information of selection.
In this step, the frequency channel information of selection is returned to frequency explorer, make the frequency explorer can be according to this frequency channel information, communicate with corresponding IPQAM equipment, control corresponding IPQAM equipment the frequency passage of selecting is opened, transmit service for receiving terminal for digital television provides audio/video flow.
The present embodiment, due in the time carrying out frequency channel allocation, is directly selected frequency passage from buffer memory, makes the distribution of frequency passage no longer be limited to quantity and the type of database, has improved the dispensing rate of frequency passage.
Please refer to Fig. 2, is the schematic flow sheet of the embodiment of step S12 in Fig. 1, and described step S12 comprises:
Step S21, according to the region ID distributing in request, from buffer memory, being retrieved as region that this region ID identifies provides the frequency channel information corresponding to frequency passage of the IPQAM equipment of service.
This step further comprises: to distributing request to resolve, extract the region ID distributing in request; From buffer memory, looking for this region ID institute identified areas provides the frequency channel information corresponding to frequency passage of the IPQAM equipment of service, and obtains.Be understandable that, in the time searching, comprise according to frequency channel information: the state information of corresponding frequency passage, search the frequency channel information that those frequency passages in idle condition are corresponding, and obtain.
Step S22, according to the frequency channel information obtaining, selects the frequency channel information that at least one frequency passage in idle condition is corresponding.
Further, this step comprises according to the frequency channel information obtaining: the state information of corresponding frequency passage, adopt random algorithm to select at least one in frequency channel information corresponding to idle frequency passage, or, comprise according to the frequency channel information obtaining: the state information of corresponding frequency passage, select a frequency channel information that the frequency passage in idle condition is corresponding.
Step S23, upgrades the frequency channel information in buffer memory.
Further, this step comprises: in the selected frequency channel information in amendment buffer memory, comprise: the state information of corresponding frequency passage, makes the state information of described frequency passage indicate the current state of described frequency passage to be: using state.This step is upgraded the frequency channel information in buffer memory, make caching server can be in real time or time delay the frequency channel information being updated is sent to corresponding database, the consistency of maintenance caching server and database intermediate-frequeney point channel information.
The present embodiment, according to region ID, can be from numerous frequency channel informations of buffer memory, being retrieved as rapidly region that described region ID identifies provides the frequency channel information corresponding to frequency passage of the IPQAM equipment of service, thereby complete rapidly frequency channel allocation, improve frequency channel allocation speed.
Please refer to Fig. 3, is the structural representation of the embodiment of frequency channel allocation device of the present invention, and described frequency channel allocation device 3 comprises:
Receiver module 31, the distribution request sending for receiving frequency explorer.
Wherein, the distribution request that receiver module 31 receives is used to receiving terminal for digital television request to distribute frequency passage, this distribution request can comprise: the region ID of described receiving terminal for digital television region, this region ID can be the region code of receiving terminal for digital television region.
Distribution module 32 for according to the distribution request of receiver module 31, is selected frequency channel information from buffer memory.
Wherein, IPQAM equipment is the frequency passage that receiving terminal for digital television is provided for transmitting audio/video flow, the frequency channel information corresponding to frequency passage of IPQAM equipment can be cached in caching server, and frequency channel information is corresponding one by one with the frequency passage of IPQAM equipment.Wherein, described frequency channel information can comprise: the state information of corresponding frequency passage; The state information of described frequency passage is used to indicate the current state of described frequency passage, and this state can comprise: idle condition or using state.Distribution module 32 can be according to the region ID distributing in request, and from buffer memory, being chosen as region that this region ID identifies provides the frequency channel information corresponding to frequency passage of the IPQAM equipment of service.
Further, allocation model 32, also for after buffer memory is selected frequency point information, upgrades the frequency channel information in buffer memory, prevents that the frequency channel information of selecting is again selected.
Sending module 33, returns to frequency explorer for the frequency channel information that distribution module 32 is selected.
Wherein, the frequency channel information of selection is returned to frequency explorer by sending module 33, make the frequency explorer can be according to this frequency channel information, communicate with corresponding IPQAM equipment, control corresponding IPQAM equipment the frequency passage of selecting is opened, transmit service for receiving terminal for digital television provides audio/video flow.
The present embodiment, due in the time carrying out frequency channel allocation, is directly selected frequency passage from buffer memory, makes the distribution of frequency passage no longer be limited to quantity and the type of database, has improved the dispensing rate of frequency passage.
Please refer to Fig. 4, is the structural representation of the embodiment of distribution module in Fig. 3, and described distribution module comprises:
Acquiring unit 41, according to the region ID distributing in request, from buffer memory, being retrieved as region that described region ID identifies provides the frequency channel information corresponding to frequency passage of the IPQAM equipment of service.
Further, acquiring unit 41, to distributing request to resolve, extracts the region ID distributing in request; From buffer memory, looking for this region ID institute identified areas provides the frequency channel information corresponding to frequency passage of the IPQAM equipment of service, and obtains.Be understandable that, acquiring unit 41, in the time searching, comprises according to frequency channel information: the state information of corresponding frequency passage, and search the frequency channel information that those frequency passages in idle condition are corresponding, and obtain.
Selected cell 42, the frequency channel information obtaining according to acquiring unit 41, selects the frequency channel information that at least one frequency passage in idle condition is corresponding.
Further, selected cell 42 comprises according to the frequency channel information obtaining: the state information of corresponding frequency passage, adopt random algorithm to select at least one in frequency channel information corresponding to idle frequency passage, or, selected cell 42 comprises according to the frequency channel information obtaining: the state information of corresponding frequency passage, select a frequency channel information that the frequency passage in idle condition is corresponding.
Updating block 42, for upgrading the frequency channel information of buffer memory.
Further, updating block 42 is revised and is comprised in the selected frequency channel information in buffer memory: the state information of corresponding frequency passage, makes the state information of described frequency passage indicate the current state of described frequency passage to be: using state.This step updating block 42 upgrades the frequency channel information in buffer memory, make caching server can be in real time or time delay the frequency channel information being updated is sent to corresponding database, keep the consistency of caching server and database intermediate-frequeney point channel information.
The present embodiment, according to region ID from numerous frequency channel informations of buffer memory, be retrieved as rapidly the region that this region ID identifies the frequency channel information corresponding to frequency passage of the IPQAM equipment of service is provided, thereby complete rapidly frequency channel allocation, improve frequency channel allocation speed.
Please refer to Fig. 5, it is the structural representation of the embodiment of frequency channel allocation system of the present invention, described frequency channel allocation system 5, comprising: at least one caching server 51, at least one database 52, at least one frequency explorer 53 and at least one frequency channel allocation device 3;
Wherein, database 52, for storing the information of frequency passage.Frequency channel information is corresponding one by one with the frequency passage of IPQAM equipment, frequency channel information can comprise: the state information of corresponding frequency passage, the state information of frequency passage is used to indicate the current state of frequency passage, and this state can comprise: idle condition or using state.In practical application, can adopt one or more databases 52 to store the information of frequency passage; If adopt multiple databases, provide the frequency channel information corresponding to frequency passage of the IPQAM equipment of service to be stored in same database by being fixed as a region, a database can be stored the frequency channel information in one or more regions.
Wherein, caching server 51, for carrying out buffer memory to the frequency channel information of database 52 storages.Further, caching server 51 carries out after buffer memory frequency channel information, when frequency channel information in caching server comprises: the state information of corresponding frequency passage, after changing, also by change state frequency channel information send to database, keep the consistency of the frequency channel information in caching server 51 and database 52.
Wherein, frequency explorer 53, for by the distribution request receiving, is transmitted to corresponding frequency channel allocation device 3.Distribute request to be used to receiving terminal for digital television request to distribute frequency passage, distribute request to comprise: the region ID of receiving terminal for digital television region, this region ID can be the region code of receiving terminal for digital television region, and this region ID also identifies a frequency channel allocation device uniquely, a frequency channel allocation device is identified by one or more region ID.The distribution request that frequency explorer 53 receives can be that video on-demand system receives after the order request of receiving terminal for digital television, according to the region ID of receiving terminal for digital television region, and the distribution request sending to frequency explorer 53.It is frequency channel allocation devices 3 that the region ID in the distribution request receiving identifies that frequency explorer 53 is selected the frequency channel allocation device 3 forwarding.
Wherein, frequency channel allocation device 3 for according to the distribution request receiving, is selected frequency channel information, and the information of the frequency passage of selection is returned to corresponding frequency explorer from caching server.Be understandable that, frequency channel allocation device 3 can be identical with the frequency channel allocation device 3 shown in Fig. 2, therefore, no longer frequency channel allocation device 3 repeated.
The present embodiment by caching server 51 buffer memory frequency channel informations, is selected frequency channel information by frequency channel allocation device 3, and is returned to frequency explorer from caching server, thereby realizes the distribution to IPQAM equipment intermediate-frequeney point passage; Due in the time selecting frequency channel information, directly from caching server, select, and the speed of access cache server is far faster than the speed of accessing database, therefore, can improve to greatest extent the dispensing rate of frequency passage.In addition, the frequency channel allocation system of the embodiment of the present invention comprises: at least one frequency channel allocation device 3, a frequency channel allocation device 3 is identified by one or several region ID, frequency channel allocation device 3 of a region ID unique identification simultaneously, the responsible frequency channel information of each frequency channel allocation device 3 is not repeated mutually, thereby make in same time, multiple frequency channel allocation devices 3 can co-operation, carry out the distribution of frequency passage, but also can not cause each frequency channel allocation device 3 to carry out duplicate allocation to identical frequency channel information.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, one of ordinary skill in the art will appreciate that all or part of flow process that realizes above-described embodiment, and the equivalent variations of doing according to the claims in the present invention, still belong to the scope that invention is contained.