Summary of the invention
Embodiment of the 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 invention provides a kind of frequency channel allocation method, comprising:
Receive the request for allocation that the frequency explorer sends;
According to described request for allocation, from buffer memory, select the frequency channel information;
The frequency channel information of selecting is returned to described frequency explorer.
Wherein, described request for allocation is used to the receiving terminal for digital television request to distribute the frequency passage, and described request for allocation comprises: the area identification ID of described receiving terminal for digital television region;
The 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 zone at receiving terminal for digital television place that service is provided;
Described frequency channel information comprises: the state information of frequency points corresponding passage; The state information of described frequency passage is used to indicate the current state of described frequency passage, comprising: idle condition or just in user mode.
Wherein, described according to described request for allocation, from buffer memory, select the frequency channel information, comprising:
According to the area I D in the described request for allocation, from buffer memory, be retrieved as the frequency passage frequency points corresponding channel information that zone that described area I D identifies provides the IPQAM equipment of service;
According to the described frequency channel information that obtains, select at least one to be in the frequency passage frequency points corresponding channel information of idle condition.
Wherein, described according to described request for allocation, from buffer memory, select also to comprise after the frequency channel information:
Revise the state information of the frequency points corresponding passage that comprises in the selected frequency channel information in the described buffer memory, make the state information of described frequency passage indicate the current state of described frequency passage to be: just in user mode.
Correspondingly, the embodiment of the invention also provides a kind of frequency channel allocation device, comprising:
Receiver module is used to receive the request for allocation that the frequency explorer sends;
Distribution module is used for the request for allocation according to the receiver module reception, selects the frequency channel information from buffer memory;
Sending module is used for the frequency channel information of described selection is returned to described frequency explorer.
Wherein, described request for allocation is used to the receiving terminal for digital television request to distribute the frequency passage, comprises in the described request for allocation: the area I D of described receiving terminal for digital television region;
The 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 zone at receiving terminal for digital television place that service is provided;
Described frequency channel information comprises: the state information of frequency points corresponding passage; The state information of described frequency passage is used to indicate the current state of described frequency passage, comprising: idle condition or just in user mode.
Wherein, described distribution module comprises:
Acquiring unit is used for the area I D according to described request for allocation, is retrieved as the frequency passage frequency points corresponding channel information that zone that described area I D identifies provides the IPQAM equipment of service from buffer memory;
Selected cell is used for the frequency channel information that obtains according to acquiring unit, selects at least one to be in the frequency passage frequency points corresponding channel information of idle condition.
Wherein, described distribution module, also be used for after buffer memory is selected the frequency channel information, revise the state information of the frequency points corresponding passage that comprises in the selected frequency channel information in the described buffer memory, make the state information of described frequency passage indicate the current state of described frequency passage to be: just in user mode.
Correspondingly, the embodiment of the 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 is used to store the frequency channel information, and the frequency channel information is corresponding one by one with the frequency passage of IPQAM equipment;
Described caching server is used for the frequency channel information of described database is carried out buffer memory;
Described frequency explorer is used for the request for allocation that will receive, and is transmitted to corresponding frequency channel allocation device, and described request for allocation is used to the receiving terminal for digital television request to distribute the frequency passage;
Described frequency channel allocation device is used for according to request for allocation, selects the frequency channel information from caching server, and the frequency channel information of selecting is returned to corresponding frequency explorer.
Wherein, described request for allocation comprises: the area I D of described receiving terminal for digital television region, and frequency channel allocation device of described area I D sign, a frequency channel allocation device is identified by one or more area I D;
Described frequency explorer is used for the area I D according to the request for allocation that receives, and described request for allocation is transmitted to the frequency channel allocation device that described area I D identifies;
Described frequency channel allocation device, be used for area I D according to the request for allocation that receives, being retrieved as zone that described area I D identifies from caching server provides the frequency passage frequency points corresponding channel information of the IPQAM equipment of service, and, select at least one to be in the channel channel information of the frequency passage correspondence of idle condition according to the described frequency channel information that obtains.
Implement the embodiment of the invention, have following beneficial effect:
The request for allocation that the frequency point allocation device of the embodiment of the invention sends according to the frequency explorer that receives is selected the frequency channel information from buffer memory, and the frequency channel information of selecting is returned to the frequency explorer.Because when carrying out the frequency channel allocation, the frequency point allocation device is directly selected the frequency passage from buffer memory, makes the distribution of frequency passage no longer be subject to the quantity and the type of database, has improved the dispensing rate of frequency passage; Further, adopt the frequency point allocation device to substitute the frequency explorer and carry out the 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 invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
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 request for allocation that the frequency explorer sends.
Wherein, the request for allocation that receives is used to the receiving terminal for digital television request to distribute the frequency passage, this request for allocation can comprise: the area identification ID of described receiving terminal for digital television region, this area I D can be the region code of receiving terminal for digital television region.
Step S12 according to request for allocation, selects the 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 passage frequency points corresponding channel information of IPQAM equipment can be cached in the caching server, and the 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 frequency points corresponding 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 just in user mode.Among the step S12, can be according to the area I D in the request for allocation, from buffer memory, be chosen as the frequency passage frequency points corresponding channel information that zone that this area I D identified provides the IPQAM equipment of service.
Step S13 returns to the frequency explorer with the frequency channel information of selecting.
In this step the frequency channel information of selecting is returned to the frequency explorer, make that the frequency explorer can be according to this frequency channel information, communicate with corresponding IPQAM equipment, the corresponding IPQAM equipment of control is opened the frequency passage of selecting, and transmits service for receiving terminal for digital television provides audio/video flow.
Present embodiment is directly selected the frequency passage because when carrying out the frequency channel allocation from buffer memory, make the distribution of frequency passage no longer be subject to the 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 among Fig. 1, and described step S12 comprises:
Step S21 according to the area I D in the request for allocation, is retrieved as the frequency passage frequency points corresponding channel information that zone that this area I D identified provides the IPQAM equipment of service from buffer memory.
This step further comprises: request for allocation is resolved, extract the area I D in the request for allocation; Looking for this area I D institute identified areas from buffer memory provides the frequency passage frequency points corresponding channel information of the IPQAM equipment of service, and obtains.Be understandable that, when searching, according to what comprise in the frequency channel information: the state information of frequency points corresponding passage, search the frequency passage frequency points corresponding channel information that those are in idle condition, and obtain.
Step S22 according to the frequency channel information that obtains, selects at least one to be in the frequency passage frequency points corresponding channel information of idle condition.
Further, comprise in this step basis frequency channel information that obtains: the state information of frequency points corresponding passage, adopt random algorithm to select at least one to be in idle frequency passage frequency points corresponding channel information, perhaps, according to what comprise in the frequency channel information that obtains: the state information of frequency points corresponding passage, select a frequency passage frequency points corresponding channel information that is in idle condition.
Step S23 upgrades the frequency channel information in the buffer memory.
Further, this step comprises: comprise in the selected frequency channel information in the modification buffer memory: the state information of frequency points corresponding passage makes the state information of described frequency passage indicate the current state of described frequency passage to be: just in user mode.This step is upgraded the frequency channel information in the buffer memory, make caching server can be in real time or the time-delay ground frequency channel information that will be updated send to corresponding database, the consistency of maintenance caching server and database intermediate-frequeney point channel information.
Present embodiment, according to area I D, can be from numerous frequency channel informations of buffer memory, the zone that is retrieved as described area I D rapidly and is identified provides the frequency passage frequency points corresponding channel information of the IPQAM equipment of service, thereby finish the frequency channel allocation apace, 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 is used to receive the request for allocation that the frequency explorer sends.
Wherein, the request for allocation that receiver module 31 receives is used to the receiving terminal for digital television request to distribute the frequency passage, this request for allocation can comprise: the area I D of described receiving terminal for digital television region, this area I D can be the region code of receiving terminal for digital television region.
Distribution module 32 is used for the request for allocation according to receiver module 31, selects the 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 passage frequency points corresponding channel information of IPQAM equipment can be cached in the caching server, and the 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 frequency points corresponding 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 just in user mode.Distribution module 32 can be according to the area I D in the request for allocation, is chosen as the frequency passage frequency points corresponding channel information that zone that this area I D identified provides the IPQAM equipment of service from buffer memory.
Further, allocation model 32 also is used for upgrading the frequency channel information in the buffer memory after buffer memory is selected frequency point information, prevents that the frequency channel information of selecting is selected once more.
Sending module 33 is used for the frequency channel information that distribution module 32 is selected is returned to the frequency explorer.
Wherein, sending module 33 returns to the frequency explorer with the frequency channel information of selecting, make that the frequency explorer can be according to this frequency channel information, communicate with corresponding IPQAM equipment, the corresponding IPQAM equipment of control is opened the frequency passage of selecting, and transmits service for receiving terminal for digital television provides audio/video flow.
Present embodiment is directly selected the frequency passage because when carrying out the frequency channel allocation from buffer memory, make the distribution of frequency passage no longer be subject to the 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 among Fig. 3, and described distribution module comprises:
Acquiring unit 41 according to the area I D in the request for allocation, is retrieved as the frequency passage frequency points corresponding channel information that zone that described area I D identifies provides the IPQAM equipment of service from buffer memory.
Further, 41 pairs of request for allocation of acquiring unit are resolved, and extract the area I D in the request for allocation; Looking for this area I D institute identified areas from buffer memory provides the frequency passage frequency points corresponding channel information of the IPQAM equipment of service, and obtains.Be understandable that acquiring unit 41 is when searching, according to what comprise in the frequency channel information: the state information of frequency points corresponding passage, search the frequency passage frequency points corresponding channel information that those are in idle condition, and obtain.
Selected cell 42 according to the frequency channel information that acquiring unit 41 obtains, selects at least one to be in the frequency passage frequency points corresponding channel information of idle condition.
Further, comprise in the selected cell 42 basis frequency channel informations that obtain: the state information of frequency points corresponding passage, adopt random algorithm to select at least one to be in idle frequency passage frequency points corresponding channel information, perhaps, comprise in the selected cell 42 basis frequency channel informations that obtain: the state information of frequency points corresponding passage, select a frequency passage frequency points corresponding channel information that is in idle condition.
Updating block 42 is used for upgrading the frequency channel information of buffer memory.
Further, comprise in the selected frequency channel information that updating block 42 is revised in the buffer memory: the state information of frequency points corresponding passage makes the state information of described frequency passage indicate the current state of described frequency passage to be: just in user mode.The frequency channel information that this step updating block 42 upgrades in the buffer memory, make caching server can be in real time or the time-delay ground frequency channel information that will be updated send to corresponding database, keep the consistency of caching server and database intermediate-frequeney point channel information.
Present embodiment, according to area I D from numerous frequency channel informations of buffer memory, be retrieved as the zone that this area I D identified rapidly the frequency passage frequency points corresponding channel information of the IPQAM equipment of service is provided, thereby finish the frequency channel allocation apace, improve frequency channel allocation speed.
Please refer to Fig. 5, it is the structural representation of the embodiment of frequency channel allocation of the present invention system, described frequency channel allocation system 5 comprises: 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, the information that is used to store the frequency passage.The frequency channel information is corresponding one by one with the frequency passage of IPQAM equipment, the frequency channel information can comprise: the state information of frequency points corresponding 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 just in user mode.In the practical application, can adopt the information of one or more database 52 storage frequency passages; If adopt a plurality of databases, provide the frequency passage frequency points corresponding channel information of the IPQAM equipment of service to be stored in the same database with being fixed as a zone, a database can be stored the frequency channel information in one or more zones.
Wherein, caching server 51 is used for the frequency channel information of database 52 storages is carried out buffer memory.Further, after 51 pairs of frequency channel informations of caching server carry out buffer memory, frequency channel information in caching server comprises: the state information of frequency points corresponding passage, after changing, also will change state the frequency channel information send to database, keep the consistency of the frequency channel information in caching server 51 and the database 52.
Wherein, frequency explorer 53 is used for the request for allocation that will receive, and is transmitted to corresponding frequency channel allocation device 3.Request for allocation is used to the receiving terminal for digital television request to distribute the frequency passage, comprise in the request for allocation: the area I D of receiving terminal for digital television region, this area I D can be the region code of receiving terminal for digital television region, and this area I D also identifies a frequency channel allocation device uniquely, and a frequency channel allocation device is identified by one or more area I D.The request for allocation that frequency explorer 53 receives can be after video on-demand system receives the order request of receiving terminal for digital television, according to the area I D of receiving terminal for digital television region, to the request for allocation of frequency explorer 53 transmissions.The frequency channel allocation device 3 that 53 selections of frequency explorer are transmitted is the frequency channel allocation devices 3 that area I D identified in the request for allocation that receives.
Wherein, frequency channel allocation device 3 is used for according to the request for allocation that receives, and selects the frequency channel information from caching server, and the information of the frequency passage selected is returned to corresponding frequency explorer.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 given unnecessary details.
Present embodiment by caching server 51 buffer memory frequency channel informations, is selected the frequency channel information by frequency channel allocation device 3, and is returned to the frequency explorer from caching server, thereby realizes the distribution to IPQAM equipment intermediate-frequeney point passage; Owing to when selecting the frequency channel information, directly from caching server, select, and therefore the speed of access cache server, can improve the dispensing rate of frequency passage to greatest extent far faster than the speed of accessing database.In addition, the frequency channel allocation system of the embodiment of the invention comprises: at least one frequency channel allocation device 3, a frequency channel allocation device 3 is identified by one or several area I D, a frequency channel allocation of area I D unique identification device 3 simultaneously, the frequency channel information that makes each frequency channel allocation device 3 be responsible for does not repeat mutually, thereby make in the identical time, a plurality of frequency channel allocation devices 3 can co-operation, carry out the distribution of frequency passage, but also can not cause 3 pairs of identical frequency channel informations of each frequency channel allocation device to carry out duplicate allocation.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosed only is preferred embodiment of the present invention, certainly can not limit the present invention's interest field with this, one of ordinary skill in the art will appreciate that all or part of flow process that realizes the foregoing description, and, still belong to the scope that invention is contained according to the equivalent variations that claim of the present invention is done.