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 paying the every other embodiment that is obtained under the creative work prerequisite.
Fig. 1 supports the schematic network structure of UPnP QoS for one embodiment of the invention.UPnP QoS network as shown in Figure 1 mainly comprises: and the control point (Control Point, CP), QPH, QM and QD.
CP carries out integral body control to the service quality of the network of support UPnP QoS;
QM can distribute corresponding qos policy to the QPH request for communication stream according to the request of CP, and according to qos policy, finishes the QoS configuration of QD relevant with this communication stream in the network.
QPH supports at least two kinds of qos policy patterns, and stores the qos policy corresponding with each qos policy pattern in advance.
QD can upgrade the qos policy pattern of self record under QPH control, and carries out the QoS configuration of self under QM control.The concrete device type of QD is unrestricted, can be UPnP AV equipment, media server, media demo device, UPnP printer apparatus or UPnP gateway device etc. as QD.
Below in conjunction with the scene of Fig. 1, the method embodiment of 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.Present embodiment illustrates the technical scheme of the method for quality of service configuration from the angle of QPH as executive agent.As shown in Figure 2, the method for present embodiment quality of service configuration comprises:
When step 21:QPH is provided with order in the qos policy pattern that receives the CP transmission, according to this qos policy pattern order is set and activates corresponding qos policy pattern.
QPH preserves the qos policy pattern that self supports, and the qos policy corresponding with the qos policy pattern.The qos policy pattern that CP sends to QPH is provided with the qos policy pattern that order comprises that current needs activate.QPH can activate with this and order corresponding qos policy pattern when receiving this order.
Step 23: when receiving the qos policy querying command of QM transmission, qos policy pattern according to described qos policy querying command and activation is determined corresponding qos policy, and, dispose QD according to described definite qos policy for QM to the qos policy that the QM transmission is determined.
Be deployed with one or more QD in the network, preserve the qos policy pattern information that QPH activates on each QD.QM can send the qos policy querying command to QPH in the time need carrying out the qos policy configuration to the QD in the network, be used to obtain the qos policy that is used to dispose QD.QPH according to this order, determines the corresponding qos policy of qos policy pattern with the current activation of QPH, and the qos policy of determining is sent to QM when receiving the qos policy querying command that QM sends.QM receives the qos policy that QPH sends, and according to the QD in the qos policy configuration network that receives.
Fig. 6 is the flow chart of the 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, optionally, the method for present embodiment quality of service configuration also can comprise step 22 after step 21.
Step 22:QPH upgrades the qos policy pattern information that QD preserves in the network according to the qos policy pattern that activates.This step is an optional step.
When the qos policy pattern of the current activation of QPH changes, can pass through the QD in the UPnP protocol discovery network, and, be updated to the qos policy pattern of the current activation of QPH the qos policy pattern information that QD in the network has preserved.This step can be carried out (only illustrated among Fig. 6 this situation) between step 21 and 23, also can carry out after step 23.
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 the 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, the qos policy pattern and the current communication stream Dynamic matching that provide for realization QPH provide technical support, thereby have improved the flexibility of 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 network element mutual angle of present embodiment from the network of supporting UPnP QoS illustrates the technical scheme of the method for quality of service configuration.As shown in Figure 3, the method for 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 described first qos policy pattern of the embodiment of the invention.Present embodiment is expanded traditional QPH ability, and promptly QPH can support two or more qos policy pattern, and all there are one or more qos policys in every kind of qos policy pattern.QPH preserves the qos policy pattern that self supports, and the qos policy corresponding with the qos policy pattern.
In actual applications, the communication stream that every kind of qos policy pattern can corresponding a type, for example: TV qos policy pattern correspondence " TV " communication stream, network QoS strategy pattern correspondence " online " communication stream etc.
Every kind of corresponding one or more qos policys of qos policy pattern, the qos policy difference of different QoS strategy pattern.For example " TV " is two kinds of different business with " online ", the two is to the requirement difference of service quality, as requirement difference to the network bandwidth, i.e. one group of qos policy of " TV " strategy pattern correspondence, different with corresponding another group qos policy of " online " strategy pattern respectively.
In this step, it is unrestricted that CP obtains the concrete mode of at least two kinds of qos policy patterns that the first qos policy pattern of the current activation of QPH and QPH support.
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 send " obtaining the qos policy pattern that QPH supports " order to QPH by " obtaining the qos policy pattern that QPH supports " command interface; The qos policy pattern information that QPH then supports to CP feedback QPH by this interface.QPH also can feed back the strategy pattern that self has activated to CP, hereinafter referred to as the first qos policy pattern.
Step 32:CP sends the qos policy pattern to QPH order is set, and the qos policy pattern is provided with the qos policy pattern that order comprises that current needs activate, and as the second qos policy pattern, is used to indicate CP to activate the second qos policy pattern.
CP can send the qos policy pattern to QPH order is set under user's control.
If the first qos policy pattern that QPH has activated to CP feedback QPH, the qos policy pattern that CP also can be corresponding with current communication stream with the first qos policy pattern compares.If the first qos policy pattern and current communication stream do not match, promptly the first qos policy pattern is not the qos policy pattern of the type correspondence of current communication stream, then CP can be in QPH support other qos policy patterns except the first qos policy pattern, determine the second qos policy pattern with the coupling of current communication stream, and by the qos policy pattern order indication QPH is set and activates 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 then " online " qos policy pattern does not match with " TV " communication stream.Under this situation, CP determines " TV " qos policy pattern with " TV " communication stream coupling, and by the qos policy pattern order indication QPH activation " TV " qos policy pattern is set.
Step 33:QPH is provided with order according to the qos policy pattern and activates the second qos policy pattern, and the QD in network sends update command, and the current strategy pattern that is used for QPH that QD is preserved is updated to the second qos policy pattern.
Step 34:QD is according to update command, and the current strategy pattern of the QPH that self preserves is updated to the second qos policy pattern.
Step 35: the QD that carries out the strategy pattern renewal sends a notification message to QM, and the qos policy pattern information that is used to notify QD self to preserve is upgraded.
This step is an optional step.
Step 36:QM obtains qos policy pattern information and the qos policy that all QD have disposed in the current network; The qos policy pattern that has disposed at QD is that second qos policy pattern of the current activation of QPH and qos policy that QD preserves be not when belonging to the second qos policy pattern, QM sends the qos policy querying command to QPH, is used to obtain the corresponding qos policy of the second qos policy pattern with 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, and for example: QM can obtain all QD have disposed in the current network qos policy pattern information and qos policy when receiving the notification message of QD; Perhaps, QM also can obtain the second qos policy pattern of the current activation of QPH to QPH, and initiatively reads qos policy pattern information and the qos policy of having preserved on the QD.
In the present embodiment, first qos policy belongs to the first qos policy pattern, and second qos policy belongs to the second qos policy pattern.If the qos policy pattern of the last configuration of QD has been updated to the second qos policy pattern, but this QD goes up the qos policy of configuration, but do not belong to the second qos policy pattern as first qos policy, illustrate that then the service quality of QD configuration can't satisfy the business need of communication stream, QD configuration error.QM need ask QPH to distribute qos policy according to the descriptor of communication stream for this communication stream, and reconfigures QD according to the qos policy of this distribution.So the advantage of handling is: help guaranteeing that QD relevant with communication stream in the network can not omit the renewal configuration.
The descriptor of communication stream can comprise the combination in any of information such as the source address, source port, destination address, destination interface, type of communication stream, the QD relevant with communication stream, priority.
Step 37:QPH determines corresponding qos policy according to the second qos policy pattern of qos policy querying command and current activation, and sends the qos policy of determining to QM.
Step 38:QM is according to the qos policy configuration QD that obtains.
In the method for present embodiment quality of service configuration, expand, in a QPH, set up one or more qos policy patterns in advance by ability to QPH.If qos policy pattern with current communication stream coupling, with the qos policy of the current activation of QPH not simultaneously, can in time activate qos policy pattern with current communication stream coupling, make qos policy pattern and the current communication stream Dynamic matching that QPH provides, thereby improved the flexibility of 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 network element mutual angle of present embodiment from the network of supporting UPnP QoS illustrates the technical scheme of the method for quality of service configuration.As shown in Figure 4, the method for present embodiment quality of service configuration comprises:
Set up the mapping relations of virtual QPH and qos policy pattern on the step 41:QPH in advance.
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 the 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 of current communication stream correspondence, the second virtual QPH to the second qos policy pattern correspondence sends preferred indication, should preferred indication be used to indicate the second virtual QPH to activate the second qos policy pattern, and the qos policy schema update that the QD in the network is preserved be the second qos policy pattern.
CP can send preferred indication to the second virtual QPH under user's control.Perhaps, CP also can be based on the QD in the UPnP protocol discovery network, read the qos policy pattern information of having preserved on the QD, go up current preferred DPH information of preserving and the qos policy information that has disposed as QD, if CP determines the current preferred QPH information that QD has preserved, the second virtual QPH corresponding with current communication stream identifies not simultaneously the interface that CP then externally provides by QPH as the first virtual QPH sign, send preferred indication to QPH, this is preferably indicated and comprises the second virtual QPH sign.
Step 43:QPH receives after this preferably indicates, the second virtual QPH is set to preferred QPH, and the QD update command in network, be used for the QPH sign of current use that QD has been preserved, be the described second virtual QPH sign by the described first virtual QPH identification renewal.
Step 44:QD is according to update command, with the QPH sign of the current use of self preserving, is the second virtual QPH sign by the first virtual QPH identification renewal.
Step 45: the QD that carries out the QPH identification renewal sends a notification message to QM, is used to notify the QPH sign of the current use that this QD self preserves to upgrade.
This step is an optional step.
Step 46:QM obtains the QPH sign and the qos policy of the current use that all QD have preserved in the current network; When the current QPH that has preserved of QD is designated qos policy that preferred the 2nd QPH sign and QD preserve and does not belong to the corresponding qos policy pattern of the 2nd QPH sign, QM sends the qos policy querying command to the second virtual QPH, is used for to the qos policy that obtains the qos policy pattern corresponding with the second virtual QPH.
In this step, it is unrestricted that QM obtains the specific implementation of the QPH sign of the current use that QD preserved and qos policy, for example: QM can be when receiving the notification message of QD, and the QPH that obtains the current use that all QD have preserved in the current network represents and qos policy; Perhaps, QM also can obtain preferred QPH sign to QPH, and initiatively reads the QPH sign and the qos policy of the current use of having preserved on the 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 the qos policy of determining to QM.
Step 48:QM is according to the qos policy configuration QD that obtains.
In the method for present embodiment quality of service configuration, by on QPH, setting up the mapping relations of virtual QPH and qos policy pattern in advance, 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, dispose corresponding qos policy pattern and qos policy information according to current communication stream correspondence, satisfying 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, present embodiment QPH comprises: mode activation module 51 and strategy provide module 53.
Mode activation module 51 is used for according to described qos policy pattern order being set and activating corresponding qos policy pattern when the qos policy pattern that receives the CP transmission is provided with order.
Strategy provides module 53 to be used for when receiving the qos policy querying command of QM transmission, qos policy pattern according to described qos policy querying command and activation is determined corresponding qos policy, and, dispose QD according to described definite qos policy for described QM to the qos policy that described QM transmission is determined.
On the basis of technique scheme, QPH also can comprise: schema update module 52.Schema update module 52 is used for upgrading the qos policy pattern information that QD preserves in the network according to the qos policy pattern that activates.
On the basis of technique scheme, QPH also can comprise: memory module 54.Memory module 54 is used to preserve the qos policy pattern that described communication equipment self is supported, and the qos policy corresponding with the qos policy pattern.
On the basis of technique scheme, QPH also can comprise: pattern information sending module 55.Pattern information sending module 55 is used for sending the qos policy pattern information that described QPH supports to described CP, according to the qos policy pattern information generation qos policy pattern that described QPH supports order is set for described CP, described qos policy pattern is provided with the qos policy pattern that order is used to indicate current needs activation.
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 the 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, the qos policy pattern and the current communication stream Dynamic matching that provide for realization QPH provide technical support, thereby have improved the flexibility of quality of service configuration in the network of supporting UPnP QoS.The working mechanism of present embodiment QPH can not repeat them here referring to the record of Fig. 2-Fig. 4 and the corresponding embodiment of Fig. 6.
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, and is concrete, and the system of QoS configuration comprises: control point, qos policy are held equipment, QoS equipment and QoS management equipment.
The control point is used for holding equipment transmission qos policy pattern to described qos policy order is set.
Qos policy is held equipment and is used for according to described qos policy pattern order being set and activating corresponding qos policy pattern when the described qos policy pattern of reception is provided with order; According to the qos policy pattern that activates, upgrade the qos policy pattern information that QoS equipment is preserved in the network; When receiving the qos policy querying command of QoS management equipment transmission, determine corresponding qos policy according to the qos policy pattern of described qos policy querying command and activation, and send the qos policy of determining to described QoS management equipment.
The QoS management equipment is used for holding equipment to described qos policy and sends the qos policy querying command, and when receiving the qos policy of described QoS management equipment transmission, disposes described QoS equipment according to described qos policy.
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 the qos policy pattern.
On the basis of technique scheme, qos policy is held equipment and also is used in and receives the qos policy pattern that described control point sends and be provided with before the order, sends described qos policy to described control point and holds the qos policy pattern information that equipment is supported.Accordingly, the control point also can be used for generating the qos policy pattern according to the qos policy pattern information that described qos policy is held the equipment support order is set, and described qos policy pattern is provided with the qos policy pattern that order is used to indicate current needs activation.
On the basis of technique scheme, QoS equipment is used in described qos policy and holds after the qos policy pattern information of the described QoS equipment self preservation of renewal of the equipment, send a notification message to described QoS management equipment, be used to notify the qos policy pattern information on the described QoS equipment to upgrade.Under this situation, the QoS management equipment also is used in when receiving described notification message, obtains QoS equipment has disposed in the current network qos policy pattern information and qos policy; The qos policy pattern that has disposed 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 disposed 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 the qos policy querying command, and upgrades the qos policy that described QoS equipment has disposed according to Query Result.
In the system of 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 the network, and provide the corresponding qos policy of qos policy pattern with current activation to the QoS management equipment, so that the QD that adopts in this qos policy configuration network is established in the QoS management, thereby under the control of CP, the qos policy pattern and the current communication stream Dynamic matching that provide for realization QPH provide technical support, thereby have improved the flexibility of quality of service configuration in the network of supporting UPnP QoS.In the system of 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 the system between each node can not repeat them here referring to the record of the corresponding embodiment of Fig. 2-Fig. 4.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, and module in the 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 among the embodiment can be described according to embodiment and be distributed in the device of embodiment, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that previous embodiment is put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of embodiment of the invention technical scheme.