Method, system and device for managing customer premises equipment

In a method for managing a Customer Premises Equipment (CPE), an Auto-Configuration Server (ACS) designates a first designated instance number for a first instance object. A message is then sent to the CPE. The message carries the first designated instance number for the first instance object and is adapted to notify the CPE to take the first designated instance number as an instance number for the first instance object.

TECHNICAL FIELD

The present invention relates to the field of network communication technologies, and in particular to a method, a system and a device for managing customer premises equipment (CPE).

BACKGROUND

TR-069 is a CPE management protocol issued by DSL Forum, which provides a general framework and protocol for managing and configuring home network devices in the next-generation network, then remote and centralized management of the devices, such as gateways, routers and set-top boxes in the home network is performed at network side. In the framework defined by TR-069, two types of logical devices, Auto-Configuration Server (ACS) and CPE, are included. An interactive flow, communication protocol and basic information, etc., between CPE and ACS are also defined in the framework for the purpose of the same protocol based interaction among different vendors.

In the TR-069 protocol, a Remote Procedure Call (RPC) mechanism is used for mutual communication between CPE and ACS. ACS may invoke a RPC method supported by CPE to create, modify and delete an instance object on CPE. In the RPC mechanism, the procedure of creating the instance object includes the following: ACS sends to CPE an instance creation message AddObject which includes a pathname parameter ObjectName carrying pathname information of the created instance object and an additional parameter Parameterkey; and upon receiving the AddObject message, CPE creates the object instance and allocates an instance number to the created object instance randomly, then returns an AddObject response message carrying the parameter InstanceNumber to ACS. In conventional techniques, once allocated by CPE, the instance number cannot be changed until ACS deletes the instance object by an object deletion message DeleteObject. Table 1 and Table 2 respectively show the parameters in the AddObject message and the AddObject response message.

TABLE 1ParametersTypesDescriptionsObjectNamestringThe pathname of the collection of objects for(256)which an instance to be created. The path nameshould end with a “.” (dot) after the last nodein the hierarchical name of the object.ParameterKeystringThe value of the parameter is determined by the(32)server. The value can also be null.

TABLE 2ParametersTypesDescriptionsInstanceNumberUnsignedIntThe instance number of the created[1:]object instance.Statusint [0: 1]A successful response of the methodreturns an integral enumerated type:0 = the instance object has been created1 = the created instance object hasalready been validated and submitted,but not applied yet.

In the conventional techniques, when obtaining the instance number allocated randomly by CPE from the AddObject response message returned by CPE, ACS can invoke the parameters and sub-objects in the instance object by using the instance number in the pathname carried in the ObjectName. However, an ACS generally manages a large number of CPEs. When ACS creates the same instance object for each CPE managed by the ACS itself, the instance numbers of the same instance object corresponding to the respective CPEs are different since each CPE itself may generate randomly an instance number for the same instance object. In this way, when managing the same instance object for different CPEs, ACS needs to query the instance number of the same instance object corresponding to each CPE, which leads to a workload for the management of CPE by ACS.

SUMMARY OF THE INVENTION

Embodiments of the present invention provide a method, a system and a device for managing a CPE, so as to lighten the workload for the management of CPE by ACS.

A method for managing a CPE includes the following: An ACS designates a first designated instance number for a first instance object, and sends to the CPE a message carrying the first designated instance number for the first instance object. The message is used to notify the CPE to take the first designated instance number as an instance number for the first instance object.

A system for managing a CPE includes an Auto-Configuration Server (ACS) configured to designate a first designated instance number for a first instance object, and send to the CPE a message carrying the first designated instance number for the first instance object. The system also includes a Customer Premises Equipment (CPE) configured to receive the message sent from the ACS, and take the first designated instance number as an instance number for the first instance object.

An Auto-Configuration Server (ACS) includes a message generating unit configured to designate a first designated instance number for a first instance object, and generate a message carrying the first designated instance number for the first instance object. The ACS also includes a message sending unit configured to send the message generated by the message generating unit.

A Customer Premises Equipment (CPE) includes a message receiving unit configured to receive a message carrying a first designated instance number for a first instance object sent by an Auto-Configuration Server (ACS). The CPE also includes a first instance number configuring unit, configured to take the first designated instance number as an instance number for the first instance object.

It can be seen from the above technical solutions that, in the method, system and device provided by the embodiments of the present invention, the ACS designates the first designated instance number for the first instance object, and sends to the CPE the message carrying the first designated instance number for the first instance object to notify the CPE to take the first designated instance number as the instance number for the first instance object. With this method, when the ACS creates the same instance object for a plurality of CPEs, the same instance number can be designated to the same instance object for the respective CPEs. In this way, the same instance object can be invoked by using the same instance number without querying and judging each of the CPEs, thus lightening the workload of the management of CPE by ACS.

DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS

In order to make the objects, technical solutions and advantageous more apparently, hereinafter, the present invention will be illustrated in detail with reference to the drawings and embodiments.

An embodiment of the present invention provides a method including the following: an ACS designates a first designated instance number for a first instance object, and sends to the CPE a message carrying the first designated instance number for the first instance object to notify the CPE to take the first designated instance number as an instance number for the first instance object.

When creating the same instance object for different CPEs, the ACS may designate the same instance number for the same instance object, and notify the designated same instance number to the CPE, and the CPE takes the designated same instance number as an instance number for the same instance object.

Hereinafter, the method will be described in detail with some embodiments.

FIG. 1is a flow chart of a method according to a first embodiment of the present invention. In this embodiment, the ACS may designate an instance number for the created same instance object in the process of creating the object instance, so as to perform a unified management for the instance object. Assuming the created instance object is a first instance object, as shown inFIG. 1, the method may include the following steps:

Step101: A first designated instance number designated for the first instance object is carried in a message AddObject sent from the ACS to the CPE.

In this step, the ACS may provide in the AddObject message a parameter InstanceNumber where an instance number designated for the instance object created by the message AddObject is carried. Table 3 shows the parameters in the message AddObject according to the first embodiment of the present invention.

TABLE 3ParametersTypesDescriptionsObjectNamestring (256)The pathname of the collection of objects forwhich a new instance to be created. The pathname should end with a “.” (dot) after the lastnode in the hierarchical name of the object.ParameterKeystring (32)The value of the parameter is determined by theserver. The value can also be null.InstanceNumberUnsignedIntThe instance number designated for the created[1:]instance object. Once created, the instancenumber can be used in the pathname to refer tothe parameters and sub-objects in the instanceobject. The instance number is designated by theACS.

Step102: When receiving the message AddObject, the CPE retrieves the designated first designated instance number, and checks if the first designated instance number has already been used; if it has been used, the process proceeds to Step103; otherwise, the process proceeds to Step105.

Step103: The CPE allocates an unused instance number to a second instance object which uses the first designated instance number, and takes the first designated instance number designated by the ACS as an instance number for the first instance object.

Step104: The CPE returns to the ACS an AddObject response message containing information of the unused instance number allocated to the second instance object.

For example, if the first designated instance number designated for the first instance object by the ACS is 5, and the CPE checks that the instance number 5 has already been used by an other instance object, the CPE will allocate an unused instance number to other instance object which uses the instance number 5; for example, if the instance number 8 has not been used yet, the CPE may allocate the instance number 8 to the instance object which uses the instance number 5, and takes the instance number 5 as the instance number for the first instance object.

Step105: The CPE takes the first designated instance number designated by the ACS as the instance number for the first instance object, and returns to the ACS a response message containing information indicating that the first designated instance number is not used.

TABLE 4ParametersTypesDescriptionsChangeNumberUnsignedIntAn instance number re-allocated to the instance[1:]object which uses the first designated instancenumber. The instance number is allocated by theCPE. If the first designated instance number isnot used, the returned value is 0.StatusIntA successful response of the method returns an[0: 1]integral enumerated type:0 = the instance object has been created.1 = the created instance object has already beenvalidated and submitted, but not applied yet.

Additionally, in the step, if execution of the step that the CPE takes the first designated instance number as the instance number for the first instance object fails, an AddObject response message containing information indicating execution failure can be returned to the ACS.

FIG. 2is a flow chart of a method according to a second embodiment of the present invention. In this embodiment, the ACS also designates an instance number for the created same instance object in the process of creating the object instance, so as to perform a unified management for the instance object. In addition, the ACS also designates another instance number for the instance object which uses the designated instance number. As shown inFIG. 2, the method may include the following steps:

Step201: A first designated instance number designated for a first instance object and a second designated instance number designated for the instance object using the first designated instance number are carried in a message AddObject sent from the ACS to the CPE.

In this step, besides that the ACS may provide in the AddObject message a parameter InstanceNumber where an instance number designated for the instance object created by the message AddObject is carried, a parameter ChangeNumber carrying a second designated instance number designated for the instance object using the first designated instance number may also be provided in the AddObject message. Table 5 shows the parameters in the AddObject message according to the second embodiment of the present invention.

TABLE 5ParametersTypesDescriptionsObjectNamestring (256)The pathname of an object set of a new createdinstance, which is to be ended with a symbol “.”following the last node of an object level name.ParameterKeystring (32)The value of the parameter is determined by theserver. The value can also be null.InstanceNumberUnsignedIntThe instance number designated for the created[1:]instance object. Once created, the instancenumber can be used in the pathname to refer tothe parameters and sub-objects in the instanceobject. The instance number is designated by theACS.ChangeNumberUnsignedIntAn instance number re-allocated to the instance[1:]object which uses the first designated instancenumber. The instance number is allocated by theACS.

Step202: When receiving the message AddObject, the CPE retrieves the designated first designated instance number, and checks if the first designated instance number has already been used; if it has been used, the process proceeds to Step203; otherwise, the process proceeds to Step204.

Step203: The second designated instance number is taken as the instance number for the instance object using the first designated instance number.

Step204: The CPE takes the first designated instance number designated by the ACS as the instance number for the first instance object.

For example, if the ACS designates the first designated instance number 5 for the first instance object, and designates another instance number, i.e., the second designated instance number 8 for the instance object using the first designated instance number, and the CPE checks that the instance number 5 has already been used by other instance object, the CPE will modify the instance number for other instance object using the instance number 5 to be the instance number 8, and take the instance number 5 as the instance number for the first instance object.

Step205: The CPE returns to the ACS an AddObject response message indicating execution success.

In this step, after the CPE succeeds in executing creation of the instance object, and taking the first designated instance number designated by the ACS as the instance number of the instance object, the CPE returns to the ACS an AddObject response message. Table 6 shows the parameters in the AddObject response message according to the second embodiment of the present invention.

TABLE 6ParametersTypesDescriptionsStatusIntA successful response of the method returns an[0: 1]integral enumerated type:0 = the instance object has been created1 = the created instance object has already beenvalidated and submitted, but not applied yet.

FIG. 3is a flow chart of a method according to a third embodiment of the present invention. In this embodiment, after receiving an AddObject response message returned by the CPE which contains a randomly allocated instance number, the ACS may designate the instance number of the same instance object to be the same designated instance number and send an instance number modification message ChangeInstanceNumber containing the designated instance number to the CPE. Assume that the instance object to be modified is a first instance object, as shown inFIG. 3, the method may include the following steps:

Step301: The ACS receives an AddObject response message containing information of the instance number allocated randomly to the first instance object returned by the CPE.

Step302: The ACS sends to the CPE a message ChangeInstanceNumber in which the instance number allocated randomly by the CPE and a first designated instance number re-designated for the first instance object are carried.

In this step, the message ChangeInstanceNumber may be a message configured additionally for modifying the instance number. In this message, a primary instance number parameter PrimalNumber carrying the instance number allocated by the CPE primarily and randomly for the first instance object may be provided. A parameter InstanceNumber carrying the instance number, i.e., the first designated instance number, re-designated for the first instance object by the ACS may also be provided in the message. Table 7 shows the parameters in the ChangeInstanceNumber message according to the third embodiment of the present invention.

TABLE 7ParametersTypesDescriptionsPrimalNumberUnsignedIntan instance number allocated randomly[1:]by CPE when the instance object iscreatedInstanceNumberUnsignedIntan instance number designated by ACS[1:]

Step303: When receiving the message ChangeInstanceNumber, the CPE retrieves the designated first designated instance number, and checks if the first designated instance number has already been used; if it has been used, the process proceeds to Step304; otherwise, the process proceeds to Step306.

Step304: The CPE allocates an unused instance number for a second instance object using the first designated instance number, and takes the first designated instance number designated by the ACS as the instance number for the first instance object.

In this step, the CPE replaces the instance number allocated randomly to the first instance object with the first designated instance number depending on the contents carried in the message ChangeInstanceNumber sent by the ACS.

Step305: The CPE returns to the ACS a ChangeInstanceNumber response message containing information of the unused instance number allocated for the second instance object.

Step306: The CPE takes the first designated instance number designated by the ACS as the instance number of the first instance object, and returns to the ACS a response message containing information indicating the first designated instance number is unused.

In this step, a parameter ChangeNumber may be provided for carrying information of the unused instance number allocated to the second instance object in the ChangeInstanceNumber response message. A parameter Status may further be provided in the ChangeInstanceNumber response message for carrying information indicating whether the modification of the instance number for the first instance object succeeds. Table 8 shows components of the parameters in the ChangeInstanceNumber response message in the third embodiment of the present invention. As to the returned ChangeInstanceNumber response message, if the first designated instance number designated by the ACS is unused, a ChangeInstanceNumber response message containing information indicating that the first designated instance number is unused may be returned. For example, a ChangeInstanceNumber response message in which the value of the ChangeNumber parameter is zero may be returned.

TABLE 8ParametersTypesDescriptionsChangeNumberUnsignedIntAn instance number re-allocated to the[1:]instance object which uses the firstdesignated instance number. The instancenumber is allocated by the CPE. If the firstdesignated instance number is not used, avalue of zero is returned.StatusIntA successful response of the method[0: 1]returns an integral enumerated type:0 = modification of the instance numberfails1 = modification of the instance numbersucceeds

FIG. 4is a flow chart of a method according to a fourth embodiment of the present invention. In this embodiment, after receiving an AddObject response message returned by the CPE which contains a randomly allocated instance number, the ACS may designate the instance number of the same instance object to be the same designated instance number, for example a first designated instance number. Further, the ACS may designate another instance number, for example, a second designated instance number for the instance object using the first designated instance number, and send to the CPE a ChangeInstanceNumber message containing the first designated instance number and the second designated instance number. Assuming that the instance object to be modified is a first instance object, and the instance object using the first designated instance number is a second instance object. As shown inFIG. 4, the method may include the following steps:

Step401: The ACS receives an AddObject response message containing information of the instance number allocated randomly to the first instance object returned by the CPE.

Step402: The ACS sends to the CPE a message ChangeInstanceNumber in which the instance number allocated randomly for the first instance object by the CPE, the first designated instance number designated for the first instance object by the ACS, and the second designated instance number designated for the second instance object using the first designated instance number are carried.

In this step, the message ChangeInstanceNumber may be a message further configured to modify the instance number. In this message, the following parameters may be provided: a parameter PrimalNumber configured to carry the instance number allocated primarily and randomly for the first instance object by the CPE, a parameter InstanceNumber configured to carry the instance number re-designated for the first instance object, i.e., the first designated instance number, by the ACS, and a parameter ChangeNumber configured to carry the second designated instance number designated for the second instance object. Table 9 shows components of the parameters in the message ChangeInstanceNumber in the third embodiment of the present invention.

TABLE 9ParametersTypesDescriptionsPrimalNumberUnsignedIntan instance number allocated randomly[1:]by CPE when the instance object iscreatedInstanceNumberUnsignedIntan instance number designated by ACS[1:]ChangeNumberUnsignedIntAn instance number re-designated to the[1:]instance object which uses the firstdesignated instance number. Theinstance number is designated by theACS.

Step403: When receiving the message ChangeInstanceNumber, the CPE retrieves the designated first designated instance number, and checks if the first designated instance number has already been used; if it is used, the process proceeds to Step404; otherwise, the process proceeds to Step405.

Step404: The second designated instance number is taken as the instance number for the second instance object using the first designated instance number.

Step405: The CPE takes the first designated instance number designated by the ACS as the instance number for the first instance object.

Step406: The CPE returns to the ACS a ChangeInstanceNumber response message indicating execution success.

In this step, after modifying the instance number for the first instance object, the CPE returns to the ACS a ChangeInstanceNumber response message. Table 10 shows the parameters in the ChangeInstanceNumber response message according to the fourth embodiment of the present invention.

TABLE 10ParametersTypesDescriptionsStatusIntA successful response of the method returns[0: 1]an integral enumerated type:0 = modification of the instance number fails1 = modification of the instance number succeeds

The software corresponding to the embodiment of the present invention may be stored in a computer readable storage medium.

FIG. 5is a structural diagram of a system according to an embodiment of the present invention. As shown inFIG. 5, the system includes: ACS500and CPE510.

ACS500is configured to designate a first designated instance number for a first instance object, and send to a CPE a message carrying the first designated instance number for the first instance object.

CPE510is configured to receive the message sent by the ACS500, and take the first designated instance number as an instance number for the first instance object.

When creating the same instance object for different CPEs, the ACS500may designate the same instance number, i.e., the first designated instance number, for the same instance object, and notify the first designated instance number to the CPE. The CPE takes the designated instance number as the instance number for the instance object.

The first designated instance number may be carried in the AddObject message or in the further ChangeInstanceNumber message by the ACS. Alternatively, the first designated instance number may be carried in other messages to send to the CPE.

CPE510may further be used to check if the first designated instance number has already been used, allocate an unused instance number to a second instance object using the first designated instance number if the first designated instance number has been used, and return to the ACS a response message containing information of the instance number allocated to the second instance object.

ACS500may further be used to carry a second designated instance number designated by the ACS itself for the second instance object using the first designated instance number in the message to notify the CPE to replace the instance number of the second instance object with the second designated instance number.

FIG. 6is the structural diagram of the ACS according to an embodiment of the present invention. As shown inFIG. 6, the ACS may include: a message generating unit601and a message sending unit602.

The message generating unit601is configured to designate a first designated instance number for a first instance object, and generate a message carrying the first designated instance number for the first instance object.

The message sending unit602is configured to send the message generated by the message generating unit601.

The message generating unit601may include: a first instance number designating unit603and a message generating sub-unit604.

The first instance number designating unit603is configured to designate the first designated instance number for the first instance object.

The message sending unit602is particularly configured to send the message AddObject or the message ChangeInstanceNumber.

The message generating unit601may further include a second instance number designating unit605configured to designate a second designated instance number for a second instance object using the first designated instance number.

The message generating sub-unit604is further configured to carry the second designated instance number in the generated message AddObject or the message ChangeInstanceNumber.

The ACS further includes a message receiving unit606configured to receive an AddObject response message sent by the CPE which contains the instance number allocated randomly to the first instance object.

The message generating sub-unit604is further configured to retrieve the instance number in the AddObject response message which is allocated to the first instance object by the CPE, and carry the instance number allocated randomly to the first instance object by the CPE in the generated message ChangeInstanceNumber to notify the CPE to replace the instance number allocated randomly to the first instance object with the first designated instance number.

FIG. 7is a structural diagram of the CPE according to an embodiment of the present invention. As shown inFIG. 7, the CPE may include: a message receiving unit701and a first instance number configuring unit702.

The message receiving unit701is configured to receive a message carrying a first designated instance number for a first instance object sent by the ACS500.

The first instance number configuring unit702is configured to take the first designated instance number as the instance number for the first instance object.

Further, in an embodiment of the present invention, the CPE510may further include a check unit704and a second instance number configuring unit703.

The check unit704is configured to check if the first designated instance number has been used.

The second instance number configuring unit703is configured to take the second designated instance number carried in the message received by the message receiving unit701as the instance number for the second instance object using the first designated instance number, if the checking result of the check unit704indicates that the first designated instance number has already been used.

In a further embodiment of the present invention, the CPE510may further include a check unit704and a third instance number configuring unit705.

The check unit704is configured to check if a first designated instance number has been used or not.

The third instance number configuring unit705is configured to allocate an unused instance number to the second instance object using the first designated instance number, if the checking result of the check unit704indicates that the first designated instance number has already been used.

The CPE510may further include a response message sending unit706configured to return a response message to the ACS500depending on the execution result of the first instance number configuring unit702.

Additionally, the execution result of the second instance number configuring unit703or the third instance number configuring unit705may be further contained in the returned response message.

It can be seen from the above description that, in the method, system and device of the embodiments of the present invention, the ACS designates a first designated instance number for a first instance object, and sends to the CPE a message carrying the first designated instance number for the first instance object to notify the CPE to take the first designated instance number as the instance number for the first instance object. By this way, in the event that the ACS creates the same instance object for a plurality of CPEs, the same instance number can be designated to the same instance object for the respective CPEs. Therefore, the same instance number may be used to invoke the same instance object without querying and judging each of the CPEs, thus lightening the workload of the management of CPE by ACS.

The foregoing are only the preferable embodiments of the present invention, which are not used to limit the present invention. Various modifications, equivalent substitutes and improvements shall be encompassed in the scope of the present invention without departing from the spirit and principle of the present invention.