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, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not paying the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the schematic network structure that one embodiment of the invention is supported UPnP QoS.UPnP QoS network as shown in Figure 1 mainly comprises: control point (Control Point, CP), QPH, QM and QD.
CP controls supporting the service quality of the network of UPnP QoS to carry out integral body;
QM can ask to distribute corresponding qos policy for communication stream to QPH according to the request of CP, and according to qos policy, completes the QoS configuration of QD relevant to this communication stream in network.
QPH supports at least two kinds of qos policy patterns, and pre-storedly has a qos policy corresponding with each qos policy pattern.
QD can upgrade the qos policy pattern of self record under QPH controls, and under QM controls, carries out the QoS configuration of self.The concrete device type of QD is unrestricted, as QD can be UPnP AV equipment, media server, media demo device, UPnP printer apparatus or UPnP gateway device etc.
Below in conjunction with the scene of Fig. 1, the embodiment of the method for quality of service configuration of the present invention is described in detail.
The method flow diagram of the quality of service configuration that Fig. 2 provides for another embodiment of the present invention.The present embodiment is the angle as executive agent from QPH, and the technical scheme of the method for quality of service configuration is described.As shown in Figure 2, the method for the present embodiment quality of service configuration comprises:
Step 21:QPH, when the qos policy pattern that receives CP transmission arranges order, arranges order according to this qos policy pattern and activates corresponding qos policy pattern.
QPH preserves the qos policy pattern that self supports, and the qos policy corresponding with qos policy pattern.The qos policy pattern that CP sends to QPH arranges the qos policy pattern that order comprises that current needs activate.QPH, when receiving this order, can activate with this and order corresponding qos policy pattern.
Step 23: when receiving the qos policy querying command of QM transmission, according to the corresponding qos policy of qos policy mode decision of described qos policy querying command and activation, and send definite qos policy to QM, for QM, according to described definite qos policy, configure QD.
In network, be deployed with one or more QD, on each QD, preserve the qos policy pattern information that QPH activates.QM, in the time need to carrying out qos policy configuration to the QD in network, can send qos policy querying command to QPH, for obtaining for configuring the qos policy of QD.QPH, when receiving the qos policy querying command that QM sends, according to this order, determines the corresponding qos policy of qos policy pattern with the current activation of QPH, and definite qos policy is sent to QM.QM receives the qos policy that QPH sends, and according to the QD in the qos policy configuration network receiving.
Fig. 6 is the flow chart of another embodiment of the method for quality of service configuration of the present invention.As shown in Figure 6, on the basis of technique scheme, optional, the method for the present embodiment quality of service configuration also can comprise step 22 after step 21.
Step 22:QPH, according to the qos policy pattern activating, upgrades the qos policy pattern information that in network, QD preserves.This step is optional step.
When the qos policy pattern of the current activation of QPH changes, can be by the QD in UPnP protocol discovery network, and the qos policy pattern information that QD in network has been preserved, be updated to the qos policy pattern of the current activation of QPH.This step can be carried out (in Fig. 6, only illustrated this situation) between step 21 and 23, also can after step 23, carry out.
In the method for the above embodiment of the present invention quality of service configuration, QPH can be under the control of the qos policy pattern device order of CP, activate corresponding qos policy pattern, upgrade the qos policy pattern of the QD in network, and provide the corresponding qos policy of qos policy pattern with current activation to QM, so that QM adopts the QD in this qos policy configuration network, thereby under the control of CP, for qos policy pattern and the current communication stream Dynamic Matching of realizing QPH and providing provides technical support, thus the flexibility that has improved quality of service configuration in the network of supporting UPnP QoS.
The method flow diagram of the quality of service configuration that Fig. 3 provides for another embodiment of the present invention.The present embodiment, from supporting the mutual angle of network element the network of UPnP QoS, illustrates the technical scheme of the method for quality of service configuration.As shown in Figure 3, the method for the present embodiment quality of service configuration comprises:
Step 31:CP obtains the qos policy pattern information that QPH supports.
The qos policy pattern of the current activation of QPH, is the first qos policy pattern described in the embodiment of the present invention.The present embodiment is expanded traditional QPH ability, and QPH can support two or more qos policy pattern, and every kind of qos policy pattern all exists one or more qos policys.QPH preserves the qos policy pattern that self supports, and the qos policy corresponding with qos policy pattern.
In actual applications, the communication stream that every kind of qos policy pattern can corresponding a type, for example: corresponding " TV " communication stream of TV qos policy pattern, corresponding " online " communication stream of network QoS strategy pattern etc.
Every kind of corresponding one or more qos policys of qos policy pattern, the qos policy of different QoS strategy pattern is different.For example " TV " and " online " is two kinds of different business, the two requirement to service quality is different, as different in requirement to the network bandwidth, i.e. one group of qos policy corresponding to " TV " strategy pattern, it is different that another corresponding from " online " strategy pattern organized qos policy respectively.
In this step, CP obtains the first qos policy pattern of the current activation of QPH and the concrete mode of at least two kinds of qos policy patterns that QPH supports is unrestricted.
Optionally, CP can be based on UPnP protocol discovery QPH, and QPH provides the interface of " obtaining the qos policy pattern that QPH supports " order.CP can, by " obtaining the qos policy pattern that QPH supports " command interface, send " obtaining the qos policy pattern that QPH supports " order to QPH; The qos policy pattern information that QPH supports to CP feedback QPH by this interface.QPH also can feed back the strategy pattern self having activated to CP, hereinafter referred to as the first qos policy pattern.
Step 32:CP sends qos policy pattern to QPH order is set, and qos policy pattern arranges the qos policy pattern that order comprises that current needs activate, and as the second qos policy pattern, is used to indicate CP and activates the second qos policy pattern.
CP can send qos policy pattern to QPH order is set under user controls.
If the first qos policy pattern that QPH has activated to CP feedback QPH, CP also can compare the first qos policy pattern qos policy pattern corresponding with current communication stream.If the first qos policy pattern is not mated with current communication stream, the first qos policy pattern is not the qos policy pattern corresponding to type of current communication stream, CP can support in other qos policy patterns except the first qos policy pattern at QPH, determine the second qos policy pattern of mating with current communication stream, and by qos policy pattern, order is set and indicates QPH to activate the second qos policy pattern.For example the type of current communication stream is " TV " communication stream, and the first qos policy pattern that QPH has activated is " online " qos policy pattern, and " online " qos policy pattern is not mated with " TV " communication stream.Under this situation, CP determines " TV " qos policy pattern of mating with " TV " communication stream, and by qos policy pattern, order indication QPH activation " TV " qos policy pattern is set.
Step 33:QPH arranges order according to qos policy pattern and activates the second qos policy pattern, and the QD in network sends more newer command, for the current strategy pattern of QPH that QD is preserved, is updated to the second qos policy pattern.
Step 34:QD is according to more newer command, and the current strategy pattern of the QPH that self is preserved is updated to the second qos policy pattern.
Step 35: the QD that carries out strategy pattern renewal sends a notification message to QM, upgrades for the qos policy pattern information of notifying QD self to preserve.
This step is optional step.
Step 36:QM obtains qos policy pattern information and the qos policy that in current network, all QD have configured; The qos policy pattern having configured at QD is that qos policy that the second qos policy pattern of the current activation of QPH and QD preserve is not while belonging to the second qos policy pattern, QM sends qos policy querying command to QPH, for obtaining the qos policy corresponding with the second qos policy pattern of the current activation of QPH.
In this step, it is unrestricted that QM obtains the specific implementation of qos policy pattern information and qos policy, for example: QM can, when receiving the notification message of QD, obtain qos policy pattern information and qos policy that in current network, all QD have configured; Or QM also can obtain to QPH the second qos policy pattern of the current activation of QPH, and initiatively reads qos policy pattern information and the qos policy of having preserved on QD.
In the present embodiment, the first qos policy belongs to the first qos policy pattern, and the second qos policy belongs to the second qos policy pattern.If the qos policy pattern of the upper configuration of QD has been updated to the second qos policy pattern, but the qos policy of the upper configuration of this QD, as the first qos policy does not but belong to the second qos policy pattern, illustrate that the service quality of QD configuration cannot meet the business need of communication stream, QD configuration error.It is this communication stream distribution qos policy according to the descriptor of communication stream that QM need to ask QPH, and reconfigures QD according to the qos policy of this distribution.The advantage of so processing is: be conducive to guarantee that QD relevant to communication stream in network can not omit Reconfigurations.
The descriptor of communication stream can comprise the combination in any of the information such as the source address, source port, destination address, destination interface, type of communication stream, the QD relevant to communication stream, priority.
Step 37:QPH is according to the corresponding qos policy of the second qos policy mode decision of qos policy querying command and current activation, and sends definite qos policy to QM.
Step 38:QM is according to the qos policy configuration QD obtaining.
In the method for the present embodiment quality of service configuration, by the ability to QPH, expand, in a QPH, set up in advance one or more qos policy patterns.If the qos policy pattern of mating with current communication stream, when different from the qos policy of the current activation of QPH, can activate in time the qos policy pattern of mating with current communication stream, qos policy pattern and current communication stream Dynamic Matching that QPH is provided, thereby the flexibility that has improved quality of service configuration in the network of supporting UPnP QoS.
The method flow diagram of the quality of service configuration that Fig. 4 provides for another embodiment of the present invention.The present embodiment, from supporting the mutual angle of network element the network of UPnP QoS, illustrates the technical scheme of the method for quality of service configuration.As shown in Figure 4, the method for the present embodiment quality of service configuration comprises:
On step 41:QPH, set up in advance the mapping relations of virtual QPH and qos policy pattern.
QPH can be based on UPnP agreement constructing virtual QPH, the corresponding a kind of qos policy pattern of each QPH, and every kind of qos policy pattern comprises one group of qos policy.QPH externally provides unified interface, but for each equipment in home network, and each virtual QPH can regard a QPH independently as.CP can pass through UPnP protocol discovery QPH.
Step 42:CP determines the second qos policy pattern that current communication stream is corresponding, the second virtual QPH corresponding to the second qos policy pattern sends preferably indication, this is preferably indicated and is used to indicate the second virtual QPH and activates the second qos policy pattern, and the qos policy schema update that the QD in network is preserved is the second qos policy pattern.
CP can send preferably indication to the second virtual QPH under user controls.Or, CP also can be based in UPnP protocol discovery network QD, read the qos policy pattern information of having preserved on QD, current preferred DPH information of preserving as upper in QD and the qos policy information having configured, if CP determines the current preferred QPH information that QD has preserved, as the first virtual QPH sign second virtual QPH corresponding from current communication stream identifies when different, the interface that CP externally provides by QPH, to QPH, send preferably indication, this is preferably indicated and comprises the second virtual QPH sign.
After step 43:QPH receives this and preferably indicates, the second virtual QPH is set to preferred QPH, and to the more newer command of QD in network, for the QPH sign of current use that QD has been preserved, by described the first virtual QPH identification renewal, be that described the second virtual QPH identifies.
Step 44:QD is according to more newer command, and the QPH of the current use that self is preserved sign, is that the second virtual QPH identifies by the first virtual QPH identification renewal.
Step 45: the QD that carries out QPH identification renewal sends a notification message to QM, for notifying the QPH sign of the current use of this QD self preservation to upgrade.
This step is optional step.
Step 46:QM obtains QPH sign and the qos policy of the current use that in current network, all QD have preserved; When the current QPH having preserved of QD is designated qos policy that preferred the 2nd QPH sign and QD preserve and does not belong to the 2nd QPH and identify corresponding qos policy pattern, QM sends qos policy querying command to the second virtual QPH, for the qos policy to obtaining the qos policy pattern corresponding with the second virtual QPH.
In this step, QM obtains the QPH sign of the current use that QD preserved and the specific implementation of qos policy is unrestricted, for example: QM can be when receiving the notification message of QD, and the QPH that obtains the current use that in current network, all QD have preserved represents and qos policy; Or QM also can obtain preferred QPH sign to QPH, and initiatively read QPH sign and the qos policy of the current use of having preserved on QD.
Step 47:QPH determines and the corresponding qos policy of the second virtual QPH according to qos policy querying command and preferred QPH, and sends definite qos policy to QM.
Step 48:QM is according to the qos policy configuration QD obtaining.
In the method for the present embodiment quality of service configuration, by set up in advance the mapping relations of virtual QPH and qos policy pattern on QPH, a plurality of virtual QPH that QPH can be disguised oneself as, the corresponding a kind of qos policy pattern of each virtual QPH.Can on QD, configure corresponding qos policy pattern and qos policy information according to current communication stream correspondence, to meet the quality requirement of dissimilar communication stream, thus the flexibility that has improved quality of service configuration in the network of supporting UPnP QoS.
The structural representation of the QPH that Fig. 5 provides for another embodiment of the present invention.As shown in Figure 5, the present embodiment QPH comprises: mode activation module 51 and strategy provide module 53.
When mode activation module 51 arranges order for the qos policy pattern receiving CP transmission, according to described qos policy pattern, order is set and activates corresponding qos policy pattern.
Strategy provides module 53 for when receiving the qos policy querying command of QM transmission, according to the corresponding qos policy of qos policy mode decision of described qos policy querying command and activation, and send definite qos policy to described QM, for described QM, according to described definite qos policy, configure QD.
On the basis of technique scheme, QPH also can comprise: schema update module 52.Schema update module 52, for according to the qos policy pattern activating, is upgraded the qos policy pattern information that in network, QD preserves.
On the basis of technique scheme, QPH also can comprise: memory module 54.The qos policy pattern that memory module 54 is supported for preserving described communication equipment self, and the qos policy corresponding with qos policy pattern.
On the basis of technique scheme, QPH also can comprise: pattern information sending module 55.The qos policy pattern information that pattern information sending module 55 is supported for send described QPH to described CP, the qos policy pattern information generating QoS policy pattern of supporting according to described QPH for described CP arranges order, and described qos policy pattern arranges order and is used to indicate the current qos policy pattern that needs activation.
The present embodiment QPH can be under the control of the qos policy pattern device order of CP, activate corresponding qos policy pattern, upgrade the qos policy pattern of the QD in network, and provide the corresponding qos policy of qos policy pattern with current activation to QM, so that QM adopts the QD in this qos policy configuration network, thereby under the control of CP, for qos policy pattern and the current communication stream Dynamic Matching of realizing QPH and providing provides technical support, thus the flexibility that has improved quality of service configuration in the network of supporting UPnP QoS.The working mechanism of the present embodiment QPH, can, referring to the record of Fig. 2-Fig. 4 and the corresponding embodiment of Fig. 6, not repeat them here.
The system of the QoS configuration that another embodiment of the present invention also provides, the structure of this system is as shown in Figure 1, concrete, and the system of QoS configuration comprises: control point, qos policy are held equipment, QoS equipment and QoS management equipment.
Control point arranges order for hold equipment transmission qos policy pattern to described qos policy.
Qos policy is held equipment for when the described qos policy pattern of reception arranges order, according to described qos policy pattern, order is set and activates corresponding qos policy pattern; According to the qos policy pattern activating, upgrade the qos policy pattern information that in network, QoS equipment is preserved; When receiving the qos policy querying command of QoS management equipment transmission, according to the corresponding qos policy of qos policy mode decision of described qos policy querying command and activation, and send definite qos policy to described QoS management equipment.
QoS management equipment sends qos policy querying command for hold equipment to described qos policy, and when receiving the qos policy of described QoS management equipment transmission, according to described qos policy, configures described QoS equipment.
On the basis of technique scheme, qos policy is held equipment and also be can be used for preserving the qos policy pattern of self supporting, and the qos policy corresponding with qos policy pattern.
On the basis of technique scheme, qos policy is held equipment and is also used in and receives before qos policy pattern that described control point sends arranges order, sends described qos policy hold the qos policy pattern information that equipment is supported to described control point.Accordingly, the qos policy pattern information generating QoS policy pattern that control point also can be used for holding according to described qos policy equipment support arranges order, and described qos policy pattern arranges order and is used to indicate the current qos policy pattern that activates of needing.
On the basis of technique scheme, QoS equipment is used in after described qos policy holds the qos policy pattern information that QoS equipment self is preserved described in renewal of the equipment, to described QoS management equipment, send a notification message, for notifying the qos policy pattern information on described QoS equipment to upgrade.Under this situation, QoS management equipment is also used in while receiving described notification message, obtains qos policy pattern information and qos policy that in current network, QoS equipment has configured; The qos policy pattern having configured at described QoS equipment is that described qos policy is when holding the qos policy pattern of device activation and qos policy that described QoS equipment has configured and not belonging to described qos policy and hold the qos policy pattern of device activation, described QoS management equipment is held equipment to described qos policy and is sent qos policy querying command, and upgrades according to Query Result the qos policy that described QoS equipment has configured.
In the system of the present embodiment QoS configuration, qos policy is held equipment can be under the control of the qos policy pattern device order at control point, activate corresponding qos policy pattern, upgrade the qos policy pattern of the QoS equipment in network, and provide the corresponding qos policy of qos policy pattern with current activation to QoS management equipment, so that the QD adopting in this qos policy configuration network is established in QoS management, thereby under the control of CP, for qos policy pattern and the current communication stream Dynamic Matching of realizing QPH and providing provides technical support, thereby improved the flexibility of quality of service configuration in the network of supporting UPnP QoS.In the system of the present embodiment QoS configuration, qos policy is held the refined structure of equipment, can be referring to the record of the corresponding embodiment of Fig. 5, and the mutual mechanism in system between each node can, referring to the record of the corresponding embodiment of Fig. 2-Fig. 4, not repeat them here.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
One of ordinary skill in the art will appreciate that: the module in the device in embodiment can be described and be distributed in the device of embodiment according to embodiment, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of program command, aforesaid program can be stored in a computer read/write memory medium, this program, when carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record previous embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of embodiment of the present invention technical scheme.