Patent ID: 8706830

Claim:
A device for enabling hierarchical quality of service services, the device comprising at least one processor and a memory, the memory comprises: an information receiving module, an information distribution module, a service management module and a resource management module, wherein, the information receiving module is configured to receive a service type and service processing information of hierarchical quality of service (HQOS) services, wherein the service processing information of HQOS services depends on the service type, specifically: when the received service type is a binding service, the received service processing information includes an application port, an application direction, pointers of the port layer nodes of the HQOS service tree, QOS master parameters and QOS slave parameters; when the received service type is a de-binding service, the received service processing information includes an application port and an application direction; when the received service type is a sub-tree adding service, the received service processing information includes an application port, an application direction, QOS slave parameters and relative offsets between the layer where the nodes are located and the nodes; when the received service type is a sub-tree deleting service, the received service processing information includes an application port, an application direction, QOS slave parameters and relative offsets between the layer where the nodes are located and the nodes; when the received service type is a master parameter updating service, the received service processing information includes an application port, an application direction, QOS mater parameters and relative offsets between the layer where the nodes are located and the nodes; when the received service type is a slave parameter updating service, the received service processing information includes an application port, an application direction, QOS slave parameters and relative offsets between the layer where the nodes are located and the nodes; the information distribution module is configured to determine an object service tree according to the received service type and the service processing information, and store the received service type on nodes to be processed of the object service tree; the service management module is configured to traverse the object service tree and invoke the resource management module when there is a service type stored on the nodes of a currently traversed branch; and is further configured to continue to traverse the object service tree from a next traversed position after the resource management module performing operations associated with the stored service type on the nodes with the service type stored thereon; the resource management module is configured to perform operations associated with the stored service type on the nodes with the service type stored thereon according to the received service processing information when being invoked by the service management module.