CN103488696B - CPE service inquiry method, apparatus and system, ACS and CPE - Google Patents

CPE service inquiry method, apparatus and system, ACS and CPE Download PDF

Info

Publication number
CN103488696B
CN103488696B CN201310394495.6A CN201310394495A CN103488696B CN 103488696 B CN103488696 B CN 103488696B CN 201310394495 A CN201310394495 A CN 201310394495A CN 103488696 B CN103488696 B CN 103488696B
Authority
CN
China
Prior art keywords
request
cpe
data model
model value
encapsulated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310394495.6A
Other languages
Chinese (zh)
Other versions
CN103488696A (en
Inventor
余峥嵘
龙黎江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ruijie Networks Co Ltd
Original Assignee
Fujian Star Net Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN201310394495.6A priority Critical patent/CN103488696B/en
Publication of CN103488696A publication Critical patent/CN103488696A/en
Application granted granted Critical
Publication of CN103488696B publication Critical patent/CN103488696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/83Querying
    • G06F16/835Query processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of CPE service inquiry method, apparatus and system, ACS and CPE, in technology to solve existing inquiry CPE business, existing query process complexity is cumbersome, interacts a large amount of hashes, take substantial amounts of process resource and the network bandwidth, causes the problem of ACS and CPE treatment effeciency are low.In the present invention, the querying condition that user specifies is encapsulated in the request for obtaining data model value and is sent to the CPE that user specifies by ACS;The request of the received acquisition data model value of CPE parsings, obtains the querying condition encapsulated in the request for obtaining data model value, is inquired about according to the querying condition, obtain meeting the Query Result of the querying condition;The Query Result is encapsulated in the response for the request of the acquisition data model value and is sent to ACS;ACS analyzes the response to obtain the Query Result encapsulated in the response.

Description

CPE service inquiry method, apparatus and system, ACS and CPE
Technical field
The present invention relates to network communicating system, more particularly to a kind of user equipment(CPE, Customer Premises Equipment)Service inquiry method, apparatus and system, Automatic Configuration Server(ACS, Auto-Configuration Server)And CPE.
Background technology
Terminal wide area network management agreement(CWMP, CPE WAN Management Protocol)The composition of framework is mainly wrapped Containing two-part content:Function on ACS and the function on CPE, as shown in figure 1, management of the ACS as CWMP agreements End, by the multiple users of CWMP consultative managements CPE, the CPE second line of a couplet, ACS sides at least include ACS, name server(DNS, Domain Name Server)And DHCP(DHCP, Dynamic Host Configuration Protocol)Service Device, ACS and CPE is that the ACS of one-to-many relation, i.e., one can manage thousands of CPE, is managed concentratedly by ACS scattered CPE in various regions, realizes and CPE remote centralized is managed.
CWMP agreements are as wide area network management agreement, using easy extension, easy care, intelligible Simple Object Access Protocol (SOAP, Simple Object Access Protocol)Protocol encapsulation interaction message, realizes extensible markup language(XML, Extensible Markup Language)Encapsulation and parsing, CPE branch is managed by the data model for operating CPE to support The business function held, realizes the safe and reliable management to CPE business.
Data model for representing CPE business, a series of remote process agreement of protocol definition(RPC, Remote Procedure Call Protocol)Method manages these data models, including:Obtain data model name GetParameterNames methods, set the SetParameterValues methods of data model value, obtain data model value GetParameterValues methods, set the SetParameterAttributes methods of data model attribute, obtain data The GetParameterAttributes methods of model attributes, add many instance data model objects AddObject methods and Delete the DeleteObject methods for realizing data model objects more.
ACS obtains the data model value that cpe device is supported by GetParameterValues RPC methods, and then obtains Its business function situation supported, the message envelope format of the RPC methods is as shown in Figure 2:
Message encapsulation is broadly divided into two parts, and a part is message header, is<SOAP-ENV:Header>, a part is to disappear Body is ceased, is<SOAP-ENV:Body>, what message header was carried is unique identification information of this interaction message etc., and message body is It is the real content of message encapsulation.
ACS manages the magnanimity cpe device for being scattered in user side concentratedly, is obtained by GetParameterValues RPC methods Take in the function situation of CPE business, existing CWMP technologies and also provide the method for obtaining specific business.This method passes through instance number Specific business information is obtained, such as when inquiring about the wireless user specifically associated, passes through data model " Device.WiFi.AccessPoint. { i } .AssociatedDevice. { i } " goes to obtain, when inquiring about specific user, " { i } " must be substituted for specific instance number, such as inquiry access point instance number is 2, the instance number of association wireless user is 20 User, that is, the data model inquired about be " Device.WiFi.AccessPoint.2.AssociatedDevice.20. ".Or Person, the wireless user associated according to the data model by other path queries.
Before specific business is inquired about, it is necessary to understand the corresponding relation of instance number and specific business, it is understood that such pass System, it is necessary to all business are got first from CPE and just be can know that after ACS, because instance number is to follow the change of CPE business Change and change, i.e., the corresponding relation of instance number and business can only real-time query, by above-mentioned analysis, if looked into which Specific business information is ask, first has to obtain all business information, draws the corresponding relation of instance number and business information, then lead to Specific instance number is crossed to go to inquire about specific business.
For example, user expects which cpe device inquiry MAC Address is associated in for 0011.2233.4455 wireless user On, then user can only issue the operation requests of GetParameterValues methods by ACS to all cpe devices, and Data model name is encapsulated as the relative path of " Device.WiFi.AccessPoint. ", and CPE feeds back whole MAC on CPE to ACS The situation of user associated by address, ACS goes to screen MAC Address from the message of all CPE feedbacks is 0011.2233.4455 wireless user, finds the cpe device of its association.
It can be seen that, inquiry CPE data model values are obtained by current GetParameterValues RPC methods, exist as Some lower problems:
1st, be unable to one-pass operation, operating process is complicated, cumbersome and there are a large amount of useless data, take ACS and The substantial amounts of process resources of CPE and the network bandwidth;
2nd, because complicated processing procedure and huge data cause ACS and CPE treatment effeciency low.
That is, in the technology of existing inquiry CPE business, there are cumbersome query process complexity, a large amount of hashes of interaction, accounting for With substantial amounts of process resource and the network bandwidth, cause the problem of ACS and CPE treatment effeciency are low.
The content of the invention
In view of this, the embodiments of the invention provide a kind of CPE service inquiry method, apparatus and system, ACS and CPE, In technology to solve existing inquiry CPE business, existing query process complexity is cumbersome, interacts a large amount of hashes, account for With substantial amounts of process resource and the network bandwidth, cause the problem of ACS and CPE treatment effeciency are low.
Technical scheme provided in an embodiment of the present invention is as follows:
A kind of service inquiry method of CPE, including:The querying condition that user specifies is encapsulated in acquisition data model by ACS In the request of value, the request of the acquisition data model value after encapsulation is sent to the CPE that user specifies;The ACS receives described The response that CPE is returned, analyzes the response to obtain the Query Result encapsulated in the response, wherein, the Query Result is institute State what CPE was obtained for the querying condition inquiry in the request of the acquisition data model value.
Preferably, methods described also includes:Legitimacy detection is carried out to the querying condition, it is logical in legitimacy detection In the case of crossing, the querying condition that user specifies is encapsulated in the request for obtaining data model value by ACS.
Wherein, the querying condition that user specifies is encapsulated in the request for obtaining data model value by ACS, is specifically included:Institute ACS is stated to be encapsulated in the querying condition in the request of the acquisition data model with predetermined message format in the form of an xml.
Wherein, analyze the response to obtain the Query Result encapsulated in the response, specifically include:To in the response with The message part of XML form encapsulation, parsed with the predetermined message format, the inquiry knot in the acquisition response Really.
A kind of service inquiry method of CPE, including:CPE receives the request of the acquisition data model value from ACS;It is described The CPE parsings request for obtaining data model value, obtains the querying condition encapsulated in the request for obtaining data model value; Inquired about according to the querying condition, obtain meeting the Query Result of the querying condition;The Query Result is encapsulated in For in the response of the request of the acquisition data model value;The response is sent to the ACS.
Preferably, methods described also includes:The request for identifying the acquisition data model value in the CPE includes looking into In the case of inquiry condition, the CPE parsings request for obtaining data model value.
Wherein, the CPE parsings request for obtaining data model value, is specifically included:To the acquisition data model The message part that is encapsulated in the form of an xml in the request of value, parsed with predetermined message format.
Wherein, the Query Result is encapsulated in the response for the request of the acquisition data model value, specific bag Include:The Query Result is encapsulated in asking for the acquisition data model value with predetermined message format in the form of an xml In the response asked.
A kind of service inquiry device of CPE, including:Package module, the querying condition for user to be specified, which is encapsulated in, to be obtained Take in the request of data model value;Sending module, for by the package module encapsulate after acquisition data model value request It is sent to the CPE that user specifies;Receiving module, for receiving the response that the CPE is returned;Parsing module, it is described for parsing The response that receiving module is received obtains the Query Result encapsulated in the response, wherein, the Query Result is the CPE pins Querying condition inquiry in the request of the acquisition data model value is obtained.
Preferably, described device also includes:Detection module, for carrying out legitimacy detection to the querying condition;Then, institute Package module is stated, in the case of passing through in the legitimacy detection that the detection module is performed, the inquiry bar that user is specified Part is encapsulated in the request for obtaining data model value.
Wherein, the package module, specifically for:In the form of an xml with predetermined message format by the querying condition In the request for being encapsulated in the acquisition data model.
Wherein, the parsing module, specifically for:Sealed in the form of an xml in the response received to the receiving module The message part of dress, parsed with the predetermined message format, obtain the Query Result in the response.
A kind of Automatic Configuration Server, includes CPE as described above service inquiry device.
A kind of service inquiry device of CPE, including:Receiving module, for receiving obtaining from Automatic Configuration Server ACS Take the request of data model value;Parsing module, the request for parsing the acquisition data model value that the receiving module is received, Obtain the querying condition encapsulated in the request for obtaining data model value;Enquiry module, for according to the parsing module solution Analyse obtained querying condition to be inquired about, obtain meeting the Query Result of the querying condition;Package module, for being looked into described The Query Result that inquiry module polls are obtained is encapsulated in the response for the request of the acquisition data model value;Sending module, The ACS is sent to for the package module to be encapsulated into obtained response.
Preferably, described device also includes:Identification module, for recognize it is described acquisition data model value request in whether Including querying condition;Then, the parsing module, specifically for:The acquisition data model value is identified in the identification module Request include querying condition in the case of, the CPE parsing request for obtaining data model value.
Wherein, the parsing module, specifically for:To it is described acquisition data model value request in extensible markup language Say the message part of XML form encapsulation, parsed with predetermined message format.
Wherein, the package module, specifically for:In the form of an xml with predetermined message format by the Query Result It is encapsulated in the response for the request of the acquisition data model value.
A kind of CPE, includes CPE as described above service inquiry device.
The querying condition that user specifies is encapsulated in the request for obtaining data model value by the embodiment of the present invention by ACS, The request of acquisition data model value after encapsulation is sent to the CPE that user specifies;The received acquisition data mould of CPE parsings The request of offset, obtains the querying condition encapsulated in the request for obtaining data model value, is carried out according to the querying condition Inquiry, obtains meeting the Query Result of the querying condition;The Query Result is encapsulated in for the acquisition data model In the response of the request of value, the response is sent to ACS;ACS analyzes the response to obtain the inquiry encapsulated in the response As a result;Wherein, ACS sends the querying condition specified to specified CPE, and CPE performs inquiry according to the querying condition specified, and will Query Result feeds back to ACS, it is to avoid the information of whole wireless users is all fed back to ACS by CPE in the prior art, and ACS obtains Query Result be all target information, it is to avoid ACS carries out from the garbage of magnanimity the parsing and screening of target information, So as to simplify the program of query process, it is to avoid a large amount of hashes of interaction between ACS and CPE, it can save a large amount of Process resource and the network bandwidth, ACS and CPE treatment effeciency can be significantly increased;And then can solve the problem that existing inquiry CPE In the technology of business, existing query process complexity is cumbersome, interacts a large amount of hashes, take substantial amounts of process resource and net Network bandwidth, causes the problem of ACS and CPE treatment effeciency are low.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write Specifically noted structure is realized and obtained in book, claims and accompanying drawing.
Brief description of the drawings
Fig. 1 is the structured flowchart of the management system of the CPE based on CWMP frameworks;
Fig. 2 is the message structure schematic diagram of the request of the acquisition data model value based on PC;
Fig. 3 is the structured flowchart of CPE provided in an embodiment of the present invention service query system;
Fig. 4 is the workflow diagram of CPE provided in an embodiment of the present invention service inquiry method;
Fig. 5 is the structured flowchart of CPE provided in an embodiment of the present invention service inquiry device;
Fig. 6 is another structured flowchart of CPE provided in an embodiment of the present invention service inquiry device;
Fig. 7 is another workflow diagram of CPE provided in an embodiment of the present invention service inquiry method;
Fig. 8 is another structured flowchart of CPE provided in an embodiment of the present invention service inquiry device;
Fig. 9 is another structured flowchart of CPE provided in an embodiment of the present invention service inquiry device;
Figure 10 is the workflow diagram in CPE provided in an embodiment of the present invention service inquiry method concrete application;
Figure 11 is the message structure of the request of the acquisition data model value of encapsulation querying condition provided in an embodiment of the present invention Schematic diagram.
Embodiment
Embodiments of the invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that embodiment described herein is only used In the description and interpretation present invention, it is not intended to limit the present invention.
In technology for solving existing inquiry CPE business, existing query process complexity is cumbersome, interaction is a large amount of useless Data, the substantial amounts of process resource of occupancy and the network bandwidth, cause the problem of ACS and CPE treatment effeciency are low, and the present invention is implemented Example provides the service inquiry scheme of CPE a kind of, to solve the problem.
Fig. 3 shows the structured flowchart of CPE provided in an embodiment of the present invention service query system, and the system includes: ACS31 and CPE32;
ACS31, the querying condition for user to be specified is encapsulated in the request for obtaining data model value, after encapsulation The request for obtaining data model value is sent to the CPE32 that user specifies;The response that the CPE32 is returned is received, the sound is parsed The Query Result encapsulated in the response should be obtained;
CPE32, the request for receiving the acquisition data model value from ACS31;Parse the acquisition data model value Request, obtain the querying condition that encapsulates in the request for obtaining data model value;Inquired about according to the querying condition, Obtain meeting the Query Result of the querying condition;The Query Result is encapsulated in asking for the acquisition data model value In the response asked;The response is sent to the ACS32.
Specifically, the operation principle separately below to ACS31 and CPE32 is illustrated.
Fig. 4 shows the workflow diagram of CPE provided in an embodiment of the present invention service inquiry method, namely in Fig. 3 ACS31 operation principle, this method includes:
The querying condition that user specifies is encapsulated in the request for obtaining data model value by step 401, ACS, after encapsulation The request of acquisition data model value be sent to the CPE that user specifies;
Preferably, ACS also carries out legitimacy detection to the querying condition, and situation about passing through is detected in the legitimacy Under, the querying condition that user specifies is encapsulated in the request for obtaining data model value by ACS;The conjunction that ACS is carried out to querying condition Method is detected, can be to the MAC address entries on user to be checked, CPE to be checked, address resolution protocol(ARP, Address Resolution Protocol)The information such as list item or port carries out legitimacy detection;
Specifically, the querying condition that user specifies is encapsulated in the operation in the request for obtaining data model value by ACS, specifically Including:The querying condition is encapsulated in the request of the acquisition data model by ACS with predetermined message format in the form of an xml In;
Wherein, the querying condition that user specifies can be positive querying condition, Query condition or positive inquiry bar The combination of part and Query condition;Positive querying condition requires that inquiry meets or the content including specified requirements, reversely looks into Inquiry condition requires that inquiry does not meet or do not include the content of specified requirements, the combination of positive querying condition and Query condition Can be:Determine not include or do not meet in the either content including first condition is met the content of second condition or Determine to include or meet the content of second condition in the content for not including first condition either is not met or meeting or Determine to include either to meet the content of second condition in the content of person including first condition or do not meeting or do not including the Determine not include or do not meet the content of second condition in the content of one condition;
Predetermined message format can be the one section of message lattice extended in xml form in the message for obtaining data model value Formula, because CWMP agreements support encapsulation messages content in xml form, the embodiment of the present invention is by obtaining disappearing for data model value Querying condition is encapsulated in breath in xml form, compatibility can be carried out to the message of existing acquisition data model value, implemented Improvement cost is small, be easily achieved;
In different application scenarios, depending on the situation that the CPE that user specifies is constituted according to user's aware networks, for example when When user knows that business to be checked belongs to part CPE, it is possible to specify sent to part CPE and be packaged with obtaining for querying condition The request of data model value is taken, when user, which is unaware of business to be checked, belongs to those CPE, it is possible to specify to whole CPE sends the request for the acquisition data model value for being packaged with querying condition;
Step 402, the ACS receive the response that the CPE is returned, and analyze the response to obtain what is encapsulated in the response Query Result, wherein, the Query Result is that the CPE is looked into for the querying condition in the request of the acquisition data model value Ask what is obtained.
Wherein, analyze the response to obtain the operation of the Query Result in the response encapsulation, specifically include:To the sound Should in encapsulate in the form of an xml message part, parsed with the predetermined message format, looking into the acquisition response Ask result.
By above-mentioned processing procedure, ACS sends the querying condition specified to specified CPE, the CPE feedbacks that ACS is obtained Query Result to be CPE perform inquiry according to querying condition obtains, the Query Result is target information, it is to avoid existing skill The information of whole wireless users is all fed back to ACS by CPE in art, it also avoid ACS and mesh is carried out from the garbage of magnanimity The parsing and screening of information are marked, so as to simplify the interactive program of query process, it is to avoid interaction is big between ACS and CPE Hash is measured, substantial amounts of process resource and the network bandwidth can be saved, ACS and CPE treatment effeciency can be significantly increased; And then can solve the problem that in the technology of existing inquiry CPE business, existing query process complexity is cumbersome, a large amount of useless numbers of interaction According to, take substantial amounts of process resource and the network bandwidth, cause the problem of ACS and CPE treatment effeciency are low.
Based on identical inventive concept, the embodiment of the present invention additionally provides the service inquiry device of CPE a kind of, device position In ACS.
Fig. 5 shows the structure of CPE provided in an embodiment of the present invention service inquiry device, and the device includes:
Package module 51, the querying condition for user to be specified is encapsulated in the request for obtaining data model value;
Sending module 52, is connected to package module 51, for the package module 51 to be encapsulated after acquisition data model The request of value is sent to the CPE that user specifies;
Receiving module 53, for receiving the response that the CPE is returned;
Parsing module 54, is connected to receiving module 53, and institute is obtained for parsing the response that the receiving module 53 is received The Query Result encapsulated in response is stated, wherein, the Query Result is requests of the CPE for the acquisition data model value In querying condition inquiry obtain.
Preferably, as shown in fig. 6, CPE provided in an embodiment of the present invention service inquiry device also includes:
Detection module 55, for carrying out legitimacy detection to the querying condition;Then,
Package module 51, is additionally coupled to detection module 55, and the legitimacy detection for being performed in the detection module 55 is logical In the case of crossing, the querying condition that user specifies is encapsulated in the request for obtaining data model value.
Specifically, package module 51 is in the form of expandable mark language XML and predetermined message format is by the inquiry Condition is encapsulated in the request of the acquisition data model;
Specifically, the message portion encapsulated in the form of an xml in the response that 54 pairs of receiving modules of parsing module are received Divide, parsed with the predetermined message format, obtain the Query Result encapsulated in the response.
By the device shown in Fig. 5 or Fig. 6, it can also simplify the interactive program of query process, it is to avoid between ACS and CPE Interactive a large amount of hashes, can save substantial amounts of process resource and the network bandwidth, can significantly increase ACS's and CPE Treatment effeciency;And then can solve the problem that in the technology of existing inquiry CPE business, existing query process complexity is cumbersome, interaction is big Measure hash, take substantial amounts of process resource and the network bandwidth, cause the problem of ACS and CPE treatment effeciency are low.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of ACS, and the ACS is included shown in Fig. 5 or Fig. 6 CPE service inquiry device.
Fig. 7 shows the workflow diagram of CPE provided in an embodiment of the present invention service inquiry method, namely in Fig. 3 CPE32 operation principle, this method includes:
Step 701, CPE receive the request of the acquisition data model value from ACS;
Step 702, the CPE parsings request for obtaining data model value, obtain the acquisition data model value The querying condition encapsulated in request;
Preferably, in the case where the CPE identifies that the request of the acquisition data model value includes querying condition, The CPE parsings request for obtaining data model value;The request for stating acquisition data model value by identification includes inquiry Condition, can compatible existing service inquiry processing logical sum handling process, in the request for obtaining data model value is identified Not include querying condition in the case of, can according to existing service inquiry logical process;CPE identifications obtain data model value Request in whether include the operation of querying condition, can be specifically identified according to predetermined message format;This is predetermined to disappear Cease form consistent with message format predetermined in step 401;
Wherein, the operation of the CPE parsings request for obtaining data model value, is specifically included:To the acquisition number Parsed according to the message part encapsulated in the form of an xml in the request of model value, with predetermined message format;This is predetermined to disappear Cease form consistent with message format predetermined in step 401;
Step 703, inquired about according to the querying condition, obtain meeting the Query Result of the querying condition;
Specifically, the processing that CPE is inquired about according to querying condition, can enter according to specific storage form in CPE In row inquiry, such as CPE when to carry out storage information in the form of record, then CPE performs inquiry by the method for record queries, again For example in CPE when to carry out storage information in the form of database, then CPE performs inquiry by the method for data base querying;
Step 704, by the Query Result be encapsulated in for it is described acquisition data model value request response in;
Specifically, the Query Result is encapsulated in is obtained for described in the form of an xml by CPE with predetermined message format In the response of the request of data model value;The predetermined message format is consistent with message format predetermined in step 401;
Step 705, by it is described response be sent to the ACS.
Processing procedure according to Fig. 7, the inquiry bar encapsulated in the request for the acquisition data model value that CPE is received Part, has explicitly indicated the condition met needed for target information, and CPE performs inquiry operation according to querying condition, and what is obtained is The target information is sent to ACS by target information, CPE, can avoid CPE in the prior art by the information of whole wireless users ACS is all fed back to, so that the Query Result that ACS is obtained all is target information, ACS can be avoided to enter from the garbage of magnanimity The parsing and screening of row target information, so as to simplify the interactive program of query process, it is to avoid interaction between ACS and CPE A large amount of hashes, can save substantial amounts of process resource and the network bandwidth, can significantly increase ACS and CPE processing effect Rate;And then can solve the problem that in the technology of existing inquiry CPE business, existing query process complexity is cumbersome, interaction is a large amount of useless Data, the substantial amounts of process resource of occupancy and the network bandwidth, cause the problem of ACS and CPE treatment effeciency are low.
Based on identical inventive concept, the embodiment of the present invention additionally provides the service inquiry device of CPE a kind of, device position In CPE.
Fig. 8 shows the structured flowchart of CPE provided in an embodiment of the present invention service inquiry device, and the device includes:
Receiving module 81, the request for receiving the acquisition data model value from Automatic Configuration Server ACS;
Parsing module 82, is connected to receiving module 81, for parsing the reception mould, the 81 acquisition data models received The request of value, obtains the querying condition encapsulated in the request for obtaining data model value;
Enquiry module 83, is connected to parsing module 82, for parsing obtained querying condition according to the parsing module 82 Inquired about, obtain meeting the Query Result of the querying condition;
Package module 84, is connected to enquiry module 83, is sealed for the enquiry module 83 to be inquired about to obtained Query Result In the response of the request for the acquisition data model value;
Sending module 85, is connected to package module 84, is sent to for the package module 84 to be encapsulated into obtained response The ACS.
Preferably, as shown in figure 9, CPE provided in an embodiment of the present invention service inquiry device also includes:
Whether identification module 86, is connected to receiving module 81, wrapped in the request for recognizing the acquisition data model value Include querying condition;Then,
Parsing module 82, is additionally coupled to identification module 86, is additionally operable to:The acquisition number is identified in the identification module 86 In the case of including querying condition according to the request of model value, the CPE parsings request for obtaining data model value is obtained The querying condition encapsulated in the request for obtaining data model value;
Specifically, with the shape of expandable mark language XML in the request for obtaining data model value of 82 pairs of parsing module The message part of formula encapsulation, parsed with predetermined message format.
Package module 84, specifically for:The Query Result is encapsulated in pin with predetermined message format in the form of an xml To in the response of the request of the acquisition data model value.
By the device shown in Fig. 8 or Fig. 9, it can also simplify the interactive program of query process, it is to avoid between ACS and CPE Interactive a large amount of hashes, can save substantial amounts of process resource and the network bandwidth, can significantly increase ACS's and CPE Treatment effeciency;And then can solve the problem that in the technology of existing inquiry CPE business, existing query process complexity is cumbersome, interaction is big Measure hash, take substantial amounts of process resource and the network bandwidth, cause the problem of ACS and CPE treatment effeciency are low.
The situation to concrete application of the embodiment of the present invention is illustrated below.
Figure 10 shows the workflow diagram in CPE provided in an embodiment of the present invention service inquiry method concrete application, This method includes:
Step 1001, ACS judge whether to obtain the querying condition that user specifies, in the case where being judged as YES, processing Proceed to step 1003, otherwise, processing proceeds to step 1002;
Step 1002, ACS construct the request for obtaining data model value according to existing protocol, by the acquisition data model of construction The request of value is sent to the CPE being connected with ACS;
Step 1003, ACS judges whether querying condition is legal querying condition, in the case where being judged as YES, processing Proceed to step 1004, otherwise, prompt alarm information, processing terminates;
Step 1004, the querying condition is encapsulated in acquisition data mould by ACS with predetermined message format in the form of an xml In the request of type;
Predetermined message format is shown in Figure 11, the message format is in the request of existing acquisition data model value Increase following XML tag in the message body of GetParameterValues message newly:
ConditionSearchList, encapsulates total label of querying condition, occurs in the form of array, packaged looks into Inquiry condition is probably one group, it is also possible to multigroup;
ConditionSerachStruct, querying condition construction packages represent the encapsulation of a group polling condition, Ke Nengcun In multiple such Tag Packagings;
Name, represents the business data model to be inquired about, encapsulation is to put the data model that minute character string forms are represented, such as Fruit inquiry is multi-instance object, and it is indefinite searched under which instance objects, then represented with " i " from all instance objects It is middle to search;
ConditionList, encapsulates querying condition list, occurs in the form of array, and a group polling condition may be wrapped only Include a condition, it is also possible to be the combination of multiple conditions;
ConditionStruct, filter condition construction packages represent the encapsulation of a condition, may be simultaneously present multiple Such Tag Packaging;
ConditionName, the model name encapsulation of filtering, i.e., the value for the model is filtered;
ConditionValue, the corresponding condition value of model name of filtering represents to go filtering to inquire about by this condition value There is a type attribute in value, the label, represent the rule of filtering, filtering rule there are two kinds, " Match ", represent to choose and mistake The business information of filter value matching, " Not Macth ", represent selection and the inconsistent business information of filter value, opposite with the former;
The completely compatible original service inquiry mode of querying condition of above-mentioned encapsulation, so as to obtain asking for data model value Ask in i.e. GetParameterValues message, can individually encapsulate the message part of existing service inquiry, can also be independent The message part for the querying condition that the encapsulation present invention is provided, can also not only encapsulate message part but also the envelope of existing service inquiry The message part for the querying condition that the dress present invention is provided;Message format shown in Figure 11 does not have any compatibility side to original agreement The influence in face;
The request that step 1005, ACS will encapsulate the acquisition data model value of querying condition is sent to what user specified CPE;
In the request for the acquisition data model value that step 1006, CPE are received according to predetermined message format identification whether Including querying condition, specifically, it is possible to determine that obtain whether include in the request of data model value it is as shown in figure 11 ConditionSearchList labels, in the case where being judged as YES, processing proceeds to step 1008, and otherwise, processing proceeds to Step 1007;
Step 1007, CPE are inquired about according to the mode of existing service inquiry and constructed for obtaining data model value Request response, the response of construction is sent to ACS;
Step 1008, CPE enter according to message format as shown in figure 11, the request of the acquisition data model value to receiving Row parsing, obtains querying condition;
Step 1009, CPE according to querying condition inquire about obtaining Query Result;
Query Result is encapsulated into the response of the request for obtaining data model value by step 1010, CPE, by construction Response is sent to ACS.
The service inquiry method that can be seen that CPE provided in an embodiment of the present invention by above-mentioned processing can be compatible existing CPE service inquiry mode and service inquiry mode provided in an embodiment of the present invention, can individually perform existing CPE's Service inquiry, or the mode inquired about according to querying condition that the present invention is provided individually is performed, data can also obtained Both modes are defined in the request of model value simultaneously;Both modes are defined in the request for obtaining data model value simultaneously In the case of, CPE performs this two-part inquiry respectively according to the analysis result of the request to obtaining data model value;So as to this hair The service inquiry method for the CPE that bright embodiment is provided only needs to increase in ACS and CPE " to be carried out according to querying condition accordingly The funtion part of inquiry ", it is to avoid largely transform existing network and equipment, convenient to carry out, improvement cost is low.
In summary, the querying condition that user specifies is encapsulated in acquisition data model value by the embodiment of the present invention by ACS Request in, the request of the acquisition data model value after encapsulation is sent to the CPE that user specifies;Received by CPE parsings The request of data model value is obtained, the querying condition encapsulated in the request for obtaining data model value is obtained, is looked into according to described Inquiry condition is inquired about, and obtains meeting the Query Result of the querying condition;The Query Result is encapsulated in and obtained for described Take in the response of request of data model value, the response is sent to ACS;ACS analyzes the response to obtain in the response The Query Result of encapsulation;Wherein, ACS sends the querying condition specified to specified CPE, and CPE is held according to the querying condition specified Row inquiry, and feed back to ACS by Query Result, it is to avoid CPE feeds back the information of whole wireless users in the prior art To ACS, the Query Result that ACS is obtained all is target information, it is to avoid ACS carries out target information from the garbage of magnanimity Parsing and screen, so as to simplify the program of query process, it is to avoid a large amount of hashes of interaction, energy between ACS and CPE Substantial amounts of process resource and the network bandwidth are enough saved, ACS and CPE treatment effeciency can be significantly increased;And then can solve the problem that In the technology of existing inquiry CPE business, existing query process complexity is cumbersome, a large amount of hashes of interaction, take it is substantial amounts of Process resource and the network bandwidth, cause the problem of ACS and CPE treatment effeciency are low.
One of ordinary skill in the art will appreciate that all or part of step for realizing above-described embodiment method carrying is can To instruct the hardware of correlation to complete by program, described program can be stored in a kind of computer-readable recording medium, The program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The integrated module is such as Fruit is realized using in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code Usable storage medium(Including but not limited to magnetic disk storage and optical memory etc.)The shape of the computer program product of upper implementation Formula.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow of computer program product Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (11)

1. a kind of user equipment CPE service inquiry method, it is characterised in that including:
The querying condition that user specifies is encapsulated in the request for obtaining data model value by Automatic Configuration Server ACS, will be encapsulated The request of acquisition data model value afterwards is sent to the CPE that user specifies;
The ACS receives the response that the CPE is returned, and analyzes the response to obtain the Query Result encapsulated in the response, its In, the Query Result is that the CPE is obtained for the querying condition inquiry in the request of the acquisition data model value;
Methods described also includes:
Legitimacy detection is carried out to the querying condition, in the case where legitimacy detection passes through, ACS specifies user Querying condition is encapsulated in the request for obtaining data model value.
2. according to the method described in claim 1, it is characterised in that the querying condition that user specifies is encapsulated in acquisition number by ACS According in the request of model value, specifically include:
The ACS in the form of expandable mark language XML and predetermined message format the querying condition is encapsulated in it is described In the request for obtaining data model;
Analyze the response to obtain the Query Result encapsulated in the response, specifically include:
To encapsulated in the form of an xml in the response message part, parsed with the predetermined message format, obtain institute State the Query Result in response.
3. a kind of user equipment CPE service inquiry method, it is characterised in that including:
CPE receives the request of the acquisition data model value from Automatic Configuration Server ACS;
The CPE parsings request for obtaining data model value, obtains what is encapsulated in the request for obtaining data model value Querying condition;
Inquired about according to the querying condition, obtain meeting the Query Result of the querying condition;
The Query Result is encapsulated in the response for the request of the acquisition data model value;
The response is sent to the ACS;
Methods described also includes:
In the case where the CPE identifies that the request of the acquisition data model value includes querying condition, the CPE parsings The request for obtaining data model value.
4. method according to claim 3, it is characterised in that the CPE parsings request for obtaining data model value, Specifically include:
To it is described acquisition data model value request in the form of expandable mark language XML encapsulate message part, with pre- Fixed message format is parsed;
The Query Result is encapsulated in the response for the request of the acquisition data model value, specifically included:
The Query Result is encapsulated in asking for the acquisition data model value with predetermined message format in the form of an xml In the response asked.
5. a kind of user equipment CPE service inquiry device, it is characterised in that including:
Package module, the querying condition for user to be specified is encapsulated in the request for obtaining data model value;
Sending module, for the request of the acquisition data model value after package module encapsulation to be sent into what user specified CPE;
Receiving module, for receiving the response that the CPE is returned;
Parsing module, the Query Result encapsulated in the response is obtained for parsing the response that the receiving module is received, its In, the Query Result is that the CPE is obtained for the querying condition inquiry in the request of the acquisition data model value;
Described device also includes:
Detection module, for carrying out legitimacy detection to the querying condition;Then,
The package module, in the case of passing through in the legitimacy detection that the detection module is performed, user is specified Querying condition is encapsulated in the request for obtaining data model value.
6. device according to claim 5, it is characterised in that the package module, specifically for:
In the form of expandable mark language XML and the querying condition is encapsulated in the acquisition data by predetermined message format In the request of model;
The parsing module, specifically for:The message portion encapsulated in the form of an xml in the response received to the receiving module Divide, parsed with the predetermined message format, obtain the Query Result in the response.
7. a kind of Automatic Configuration Server, it is characterised in that the service inquiry dress including the CPE as described in claim 5~6 Put.
8. a kind of user equipment CPE service inquiry device, it is characterised in that including:
Receiving module, the request for receiving the acquisition data model value from Automatic Configuration Server ACS;
Parsing module, the request for parsing the acquisition data model value that the receiving module is received obtains the acquisition number According to the querying condition encapsulated in the request of model value;
Enquiry module, is inquired about for parsing obtained querying condition according to the parsing module, obtains meeting the inquiry The Query Result of condition;
Package module, is encapsulated in for the acquisition data model value for the enquiry module to be inquired about into obtained Query Result Request response in;
Sending module, the ACS is sent to for the package module to be encapsulated into obtained response;
Described device also includes:
Whether identification module, include querying condition in the request for recognizing the acquisition data model value;Then,
The parsing module, specifically for:The request for identifying the acquisition data model value in the identification module includes In the case of querying condition, the CPE parsings request for obtaining data model value.
9. device according to claim 8, it is characterised in that the parsing module, specifically for:
To it is described acquisition data model value request in the form of expandable mark language XML encapsulate message part, with pre- Fixed message format is parsed;
The package module, specifically for:The Query Result is encapsulated in predetermined message format in the form of an xml and is directed to In the response of the request for obtaining data model value.
10. a kind of user equipment CPE, it is characterised in that the business including the CPE as any one of claim 8~9 is looked into Ask device.
11. a kind of user equipment CPE service query system, it is characterised in that including:Automatic Configuration Server ACS and CPE;
ACS, the querying condition for user to be specified is encapsulated in the request for obtaining data model value, by the acquisition number after encapsulation The CPE that user specifies is sent to according to the request of model value;The response that the CPE is returned is received, analyzes the response to obtain described The Query Result encapsulated in response;Also include:Legitimacy detection is carried out to the querying condition, passed through in legitimacy detection In the case of, the querying condition that user specifies is encapsulated in the request for obtaining data model value by ACS;
CPE, the request for receiving the acquisition data model value from ACS;The parsing request for obtaining data model value, is obtained Obtain the querying condition encapsulated in the request for obtaining data model value;Inquired about, met according to the querying condition The Query Result of the querying condition;The Query Result is encapsulated in the response of the request for the acquisition data model value In;The response is sent to the ACS;Also include:Wrapped in the request that the CPE identifies the acquisition data model value In the case of including querying condition, the CPE parsings request for obtaining data model value.
CN201310394495.6A 2013-09-03 2013-09-03 CPE service inquiry method, apparatus and system, ACS and CPE Active CN103488696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310394495.6A CN103488696B (en) 2013-09-03 2013-09-03 CPE service inquiry method, apparatus and system, ACS and CPE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310394495.6A CN103488696B (en) 2013-09-03 2013-09-03 CPE service inquiry method, apparatus and system, ACS and CPE

Publications (2)

Publication Number Publication Date
CN103488696A CN103488696A (en) 2014-01-01
CN103488696B true CN103488696B (en) 2017-11-03

Family

ID=49828922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310394495.6A Active CN103488696B (en) 2013-09-03 2013-09-03 CPE service inquiry method, apparatus and system, ACS and CPE

Country Status (1)

Country Link
CN (1) CN103488696B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302818A (en) * 2014-06-25 2016-02-03 国家电网公司 Query processing method and apparatus
CN106682105B (en) * 2016-12-05 2021-09-03 京信网络系统股份有限公司 Conversion of TR (transmitter-receiver) parameters and structure body parameters and communication method and system of ACS (auto-configuration server) and CPE (customer premises equipment)
CN110213340A (en) * 2019-05-10 2019-09-06 北京星网锐捷网络技术有限公司 Cloud management method, interchanger, server and the platform of box interchanger
CA3161694A1 (en) * 2020-02-15 2021-08-19 Arris Enterprises Llc High efficiency remote procedure call for cpe devices
CN111726367B (en) * 2020-06-30 2022-11-11 锐捷网络股份有限公司 Method, device, system and equipment for binding access of Customer Premises Equipment (CPE)
CN112367330B (en) * 2020-11-17 2021-08-24 四川天邑康和通信股份有限公司 Method for being compatible with multiple data models on CPE (customer premises equipment)
CN114244756A (en) * 2021-12-16 2022-03-25 浪潮通信信息系统有限公司 Method and system for automatically identifying home broadband CPE (customer premises equipment) model for remote monitoring

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193125A (en) * 2006-11-20 2008-06-04 华为技术有限公司 A method and device for local device configuration management of user
CN101286882A (en) * 2008-06-11 2008-10-15 深圳华为通信技术有限公司 Method, system and apparatus for managing customer premise device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067422A (en) * 2011-10-19 2013-04-24 华为终端有限公司 Business distribution method, business distribution equipment and business distribution system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193125A (en) * 2006-11-20 2008-06-04 华为技术有限公司 A method and device for local device configuration management of user
CN101286882A (en) * 2008-06-11 2008-10-15 深圳华为通信技术有限公司 Method, system and apparatus for managing customer premise device

Also Published As

Publication number Publication date
CN103488696A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
CN103488696B (en) CPE service inquiry method, apparatus and system, ACS and CPE
US11368522B2 (en) Lightweight IoT information model
KR102224379B1 (en) Service layer resource management for general interoperability and scalability
CN110022289A (en) Data transmission method, apparatus and system
CN107211232A (en) The interworking of lightweight Machine To Machine agreement and device management agreement
CN111026982A (en) Intelligent contract processing method, computer equipment and storage medium
CN103220167B (en) A kind of distributed monitoring system and date storage method thereof
WO2023109524A1 (en) Information leakage monitoring method and system, and electronic device
CN110399578A (en) Page access method and device
CN109729095A (en) Data processing method, device and calculating equipment and medium
CN114189274A (en) Satellite ground station monitoring system based on microservice
CN104243198B (en) A kind of network management and system based on network configuration protocol
CN113658591A (en) Voice interaction adaptation system for smart home
CN105190613A (en) Method and apparatus for providing contextual context to a user device
US20220231929A1 (en) Data Processing Method And Apparatus
CN106682105B (en) Conversion of TR (transmitter-receiver) parameters and structure body parameters and communication method and system of ACS (auto-configuration server) and CPE (customer premises equipment)
WO2018045901A1 (en) Interface generation system, drilling service layer device, data transmission method
CN110502560A (en) A kind of method and server of Database Connection Parameters encapsulation
CN112231320B (en) Web data acquisition method, system and storage medium based on MapReduce algorithm
CN109788251A (en) Method for processing video frequency, device and storage medium
CN106452815B (en) A kind of informatization management method, apparatus and system
CN102917022A (en) REST style service based geographic information interaction implementation method
CN109831335A (en) A kind of data monitoring method, monitor terminal, storage medium and data monitoring system
CN105139053B (en) Radio-frequency identification reader/writer interface protocol debugging apparatus and method
CN109510728B (en) Method for automatically converting MIB file of network management information base into XML file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor

Patentee after: RUIJIE NETWORKS Co.,Ltd.

Address before: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor

Patentee before: Beijing Star-Net Ruijie Networks Co.,Ltd.

CP01 Change in the name or title of a patent holder