CN102891763A - Method and device for acquiring CIM (Common Information Model) resource - Google Patents

Method and device for acquiring CIM (Common Information Model) resource Download PDF

Info

Publication number
CN102891763A
CN102891763A CN2011102050571A CN201110205057A CN102891763A CN 102891763 A CN102891763 A CN 102891763A CN 2011102050571 A CN2011102050571 A CN 2011102050571A CN 201110205057 A CN201110205057 A CN 201110205057A CN 102891763 A CN102891763 A CN 102891763A
Authority
CN
China
Prior art keywords
node
cimom
value
request message
key
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.)
Granted
Application number
CN2011102050571A
Other languages
Chinese (zh)
Other versions
CN102891763B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201110205057.1A priority Critical patent/CN102891763B/en
Priority to PCT/CN2012/073543 priority patent/WO2012167660A1/en
Publication of CN102891763A publication Critical patent/CN102891763A/en
Application granted granted Critical
Publication of CN102891763B publication Critical patent/CN102891763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method for acquiring CIM (Common Information Model) resource. According to the method, Hash algorithm is carried out on the information of in-network CIMOM (CIM Object Manager) through any node of distributed network to generate DHT (Distributed Hash Table) network of CIMOM, and simultaneously a process for acquiring the CIM resource on the in-network CIMOM through DHT algorithm is further provided. The invention further provides a corresponding device for acquiring CIM resource. According to the implementation of the method and the device disclosed by the invention, a CIM client can acquire the CIM resource information on the in-network CIMOM at any node so that the acquisition of the CIM resource under large-scale and distributed multi-host environment is realized.

Description

A kind of method and apparatus that obtains the CIM resource
Technical field
The present invention relates to communication network, relate in particular to a kind of method and apparatus of the CIM of obtaining resource.
Background technology
(the Distributed Management Task Force of distributed management working group, DMTF) having defined a cover standard and framework comes standardized management to use and various network element (the Managed Element that are managed, ME) interface between, existing Common Information Model (Common Information Model, CIM) comprise the CIM client in the system, Common Information Model Object Manager (CIM Object Manager, CIMOM), CIM provider plug-in unit (CIM Provider) and be managed network element, wherein the CIM client is the access end of CIMOM.The CIM client is obtained model and instance data, subscription and the reception event of each ME from CIMOM by standard interface.CIMOM is the core of whole CIM system architecture, is used for management model and instance data, reception subscription and the forwarding event etc. relevant with each ME, and wherein CIMOM manages respectively is managed the network element model and instance data is kept among the thesaurus Repository.CIM provider plug-in unit is the adaptation module between CIMOM and the ME, is integrated among the CIMOM in the plug-in unit mode, by obtaining alternately instance data and the event of ME with ME, and reports to CIMOM.Be managed the information model of network element by MOF (the Managed Object Format) format description of definition in the CIM Infrastructure standard (DMTF specification document DSP0004, CIM Infrastructure Specification).
Interface specification between CIM client and the CIMOM comprises CIM-XML (Common Information Model-Extensible Markup Language, in DMTF specification document DSP0200, describe), WS-Management (Web Services for Management, in DMTF specification document DSP0226, describe), SM CLP (Server Management Command Line Protocol Specification describes in DMTF specification document DSP0214).DLL (dynamic link library) between the two mainly is based on the JSR48 (Java Specification Request 48, The Java TM API for Web Based Enterprise Management) of CIM-XML.
Existing method be used to managing the common information model under the multiple hosted environment is managed the access of a plurality of CIMOM by the CIM collector, the CIM collector is registered to long-range CIMOM in the local knowledge base of CIM collector, after receiving the operation requests to the CIM resource of CIM client transmission, the inquiry local knowledge base is to process by the CIMOM processing of local node or by long-range CIMOM with judgement, if need long-range CIMOM to process, then will ask routing forwarding to long-range CIMOM, and return to the request promoter from described long-range CIMOM reception result data.Yet there are 2 deficiencies in this scheme: at first, adopt the CIM collector as the access point of CIMOM, when the CIM collector breaks down, can cause system unavailable; Secondly, in large-scale distributed system, the CIM collector is difficult in time obtain the multidate information of CIMOM in the whole network owing to operations such as registrations.
Summary of the invention
Technical problem to be solved by this invention is, a kind of method and apparatus of the CIM of obtaining resource is provided.
According to a first aspect of the invention, the invention provides a kind of method of obtaining Common Information Model CIM resource, described method comprises:
First node receives the request message of the inquiry CIM resource of CIM client transmission;
Described first node extracts the keyword content in the described request message, judges that according to described keyword content described request message is the resource of the single Common Information Model Object Manager CIMOM of inquiry or the resource of inquiring about the CIMOM of all nodes,
If inquire about the resource of single CIMOM, execution in step a then, if inquire about the resource of the CIMOM of all nodes, execution in step b then,
A, described first node is forwarded to purpose CIMOM according to the positional information that finds with described request message according to the positional information of described keyword content search purpose CIMOM, receives the response message that described purpose CIMOM returns, and described response message is forwarded to described CIM client
B, described first node is searched the positional information of all nodes, described request message is forwarded to the CIMOM of all nodes according to the positional information that finds, receives the response message that the CIMOM of described all nodes returns, and described response message is forwarded to described CIM client.
Further, before the request message of the inquiry CIM resource that first node reception CIM client sends, described method also comprises: described first node carries out Hash operation to described first node IP address and generates the Value value; According to all CIMOM on the described first node of positioning service protocol discovery; Obtain universal resource identifier URI or the uniform resource position mark URL of CIMOM all on the described first node, described URI or URL are carried out Hash operation obtain the Key value to generate the Key-Value information table of CIMOM; The Key-Value information table that generates is published to the distributed hashtable network.
Further, described step a comprises: described first node carries out Hash operation to the URI in the keyword content in the described request message or URL and obtains the Key value; Described first node is searched corresponding Value value according to the Key-Value information table in described Key value and the described distributed hashtable network; Described first node is forwarded to purpose CIMOM corresponding to described Value value with described request message; Described first node receives the response message that described purpose CIMOM returns, and the response message that receives is forwarded to described CIM client.
Further, described step b comprises: described first node with the Value value among first of the Key-Value information table of first node described in the distributed hashtable network as the place information inquiry result; The described request message of transmitting described first node arrives the as a result CIMOM of corresponding node of described place information inquiry; Described first node with described place information inquiry as a result the Value value among first of Key-Value information table of corresponding node self maintained as the place information inquiry result, then repeat above-mentioned request message and transmit step, until first node receive described place information inquiry as a result the node of the Value value correspondence among first of Key-Value information table of corresponding node self maintained be described first node; The response message that the CIMOM of described all nodes of described first node reception returns is forwarded to described CIM client with received response message.
Further, described step b comprises: described first node with the Value value among first of the Key-Value information table of the described first node in the distributed hashtable network as the place information inquiry result; Described first node is transmitted the request message that receives to the CIMOM of node corresponding to described place information inquiry result, and adds described first node address information in described request message; So that node corresponding to the Value value in described first is to the described request message that has added described first node address information of CIMOM forwarding of node corresponding to the Value value among first of the Key-Value information table of himself safeguarding, and so that each node that receives the described request message that has added described first node address information to the described request message that has added described first node address information of CIMOM forwarding of node corresponding to the Value value among first of the Key-Value information table of himself safeguarding, until the Value value corresponding node that receives among in the Key-Value information table of node self maintained of the above-mentioned request message that has added the first node address information first is first node; The response message that the CIMOM of described all nodes of described first node reception returns according to described additional described first node address information is forwarded to described CIM client with received response message.
Further, described step b also comprises: address and port information according to the message identifier of described request message, described CIM client generate the client that new information identifies initial request messages.
Further, the positional information that finds of described basis specifically comprises the CIMOM that described request message is forwarded to all nodes: whether the new information label table of inquiring about described first node according to the message identifier in the described request message comprises new information sign corresponding to this message identifier; If do not comprise, then to the CIMOM Forward-reques message of described first node, and the new information that described message identifier is corresponding sign is stored in the new information label table of described first node; Otherwise, not to the CIMOM Forward-reques message of described first node.
According to second aspect present invention, the invention provides a kind of device that obtains Common Information Model CIM resource, described device comprises:
The CIMOM agency, be used for receiving the request message that the CIM client is sent to the inquiry CIM resource of first node, extract the keyword content in the described request message, judge that according to described keyword content described request message is the resource of the single Common Information Model Object Manager CIMOM of inquiry or the resource of inquiring about the CIMOM of all nodes;
The DHT agency is used for when the CIMMOM agency judges that described request message is the resource of the single CIMOM of inquiry, according to the positional information of described keyword content search purpose CIMOM; Or be used for when the CIMMOM agency judges that described request message is the resource of all node CIMOM of inquiry the positional information of searching all nodes;
The CIMOM agency, also be used for according to the positional information that the DHT agency searches described request message being forwarded to CIMOM corresponding to described positional information, receive the response message that CIMOM corresponding to described positional information returns, and the response message that receives is forwarded to described CIM client.
Further, described DHT agency is used for that also Hash operation is carried out in described first node IP address and generates the Value value, according to all CIMOM on the described first node of positioning service protocol discovery, obtain universal resource identifier URI or the uniform resource position mark URL of CIMOM all on the described first node, described URI or URL are carried out Hash operation obtain the Key value to generate the Key-Value information table of CIMOM, the Key-Value information table that generates is published to described distributed hashtable network.
Further, described CIMOM agency also is used for realizing the issue of this node service ability, the issue of described service ability comprises: definition positioning service protocol service type service type:DHT-CIMOM, the service ability of the form publisher node of foundation described positioning service agreement request/response; Or, in the template of distributed management working group definition, increase the service-type=DHT-CIMOM field to indicate the service ability of node.
Further, described DHT agency specifically comprises according to the positional information of described keyword content search purpose CIMOM: the URI/URL in the described keyword content is carried out Hash operation obtain the Key value; Search corresponding Value value according to the Key-Value information table in described Key value and the described distributed hashtable network.
Further, described CIMOM agency also is used for generating the client that new information identifies initial request messages according to address and the port information of the message identifier of described request message, described CIM client.
Further, described CIMOM agency specifically comprises the CIMOM that described request message is forwarded to all nodes according to the positional information that the DHT agency finds: whether the new information label table of inquiring about described first node according to the message identifier in the described request message comprises new information sign corresponding to this message identifier; If do not comprise, then be stored in the new information label table of described first node to the CIMOM Forward-reques message of described first node and the new information sign that described message identifier is corresponding; Otherwise, not to the CIMOM Forward-reques message of described first node.
Further, when CIMOM agency judges that described request message is the resource of CIMOM of all nodes of inquiry, described DHT agency specifically is used for: first Value value of the Key-Value information table of first node described in the distributed hashtable network is arrived the as a result CIMOM of corresponding node of described place information inquiry as the place information inquiry result so that the CIMOM agency transmits described request message, again with described place information inquiry as a result the Value value among first of Key-Value information table of corresponding node self maintained transmit step as the place information inquiry result so that described CIMOM agency repeats above-mentioned request message, until described DHT agency receive described place information inquiry as a result the node of the Value value correspondence among first of Key-Value information table of corresponding node self maintained be described first node; Or
When the CIMOM agent determines the request message is a query for all nodes CIMOM resource, specifically for the DHT agents : a distributed hash table of the first node in the network Key-Value information table in the first the Value of the query results as location information , to CIMOM agent to query the location information of the node corresponding to the result CIMOM forwards the received request message , and the request message is added to said first node address information ; facilitate the value of the first entry in the node corresponding to the value of its own maintenance information table key-Value the first corresponds to the value in the Value CIMOM node forwarding the additional address information of said first node request message , and in order to receive the additional address information of said first node a request message , each node maintains its own information key-Value in the first table entry corresponding to the value of the value node forwarding the attached CIMOM said first node address information request message until it receives the first point of the additional address information request message node itself maintained key-Value information table, the first entry in the value node is the first node corresponds .
Implement method and apparatus of the present invention, have following beneficial effect: the CIMOM agency by the node deploy and DHT agency so that the CIM client arbitrary node can obtain net in the CIM resource information of CIMOM of single CIMOM or all nodes, realized obtaining of under extensive, distributed multi-master machine environment CIM resource.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 illustrates the schematic diagram that concerns according to the device that obtains the CIM resource of embodiment of the present invention and CIM client and CIM Object Manager.
Fig. 2 illustrates according to the discovery of CIMOM on the node of embodiment of the present invention and information table issue schematic flow sheet.
Fig. 3 illustrates the method flow schematic diagram that obtains the CIM resource according to embodiment of the present invention.
Fig. 4 illustrates the structural representation according to the device that obtains the CIM resource of embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Referring to Fig. 1, illustrate the schematic diagram that concerns according to the device that obtains the CIM resource of embodiment of the present invention and CIM client and CIM Object Manager.The CIM client can be obtained by the device that obtains the CIM resource resource of CIM Object Manager CIMOM.Wherein, CIMOM runs in the device that obtains the CIM resource, and a device that obtains the CIM resource can move a CIMOM, also can move a plurality of CIMOM.In addition, the device that obtains the CIM resource can be at any one node that moves CIMOM, and wherein node can be a main frame or a virtual machine.And the CIMOM agency who carries out the function of obtaining the CIM resource of this node, DHT agency and CIMOM agency can be undertaken by the processor of main frame.Can be virtual machine even obtain the device of CIM resource, but this virtual machine still is the virtual machine that runs on computer processor, so the CIMOM agency, DHT agency and CIMOM agency still run in the processor of computer.
The method of obtaining the CIM resource that provides in the embodiment of the present invention is by implementing on the arbitrary node in the distributed network.Concrete, the method can realize with the form that hardware combines by the software form on the node or software.For convenience, the node that receives the request message of the inquiry CIM resource that the CIM client sends is called first node, in order to distinguish with other nodes of the request message that receives the first node forwarding, wherein first node can be any one node in the distributed network, can not be understood as restricted explanation.
In the embodiment of the present invention, obtain on the first node after the device startup of CIM resource, before the request message of the inquiry CIM resource that reception CIM client sends, can also comprise by the device that obtains the CIM resource on the first node and find the CIMOM on the first node and Key-Value information table corresponding to CIMOM of finding.Referring to Fig. 2, illustrate discovery and information table issue schematic flow sheet according to CIMOM on the node of embodiment of the present invention, specifically can comprise:
S200 carries out Hash operation to described first node IP address and generates the Value value;
In the embodiment of the present invention, the Value value that Hash operation generates the Key-Value information table of the CIMOM on this node is carried out in the IP address of first node.
S202 is according to all CIMOM on the described first node of positioning service protocol discovery;
In the embodiment of the present invention, may move one or more CIMOM on the node, wherein not have interrelated on the same node between each CIMOM.Node namely obtains the device of CIM resource can find all CIMOM that same node moves according to positioning service agreement (Service Location Protocol, SLP).Can adopt the method for multicast to implement, particularly, the first node address need to be added multicast address, namely safeguard a multicast group of only having the first node address, then first node namely obtains the device of CIM resource, and the CIMOM in multicast address sends SLP multicast request; The CIMOM that receives SLP multicast request returns to himself CIM resource information the device that obtains the CIM resource of first node with the clean culture form.
In other some execution modes of the present invention, can adopt the mode that increases directory agent (Directory Agent) module at first node to implement.Particularly, all CIMOM register the CIM resource information of self to the directory agent module on the node on the first node.
S204 obtains URI or the URL of CIMOM all on the described first node, described URI or URL is carried out Hash operation obtain the Key value to generate the Key-Value information table of CIMOM;
In the embodiment of the present invention, if adopt SLP to find CIMOM all on the first node, first node obtains URI or the URL in the CIM resource information that each CIMOM returns by the clean culture form, the URI that obtains or URL is carried out Hash operation obtain the Key value to generate the Key-Value information table of each CIMOM.Implement the discovery of CIMOM if adopt the directory agent module, then obtain URI or the URL of each CIMOM the directory agent module of first node from node, URI or the URL that obtains carried out the Key-Value information table that Hash operation generates the Key value and then generates each CIMOM.
S206 is published to the distributed hashtable network with the Key-Value information table that generates.
In the embodiment of the present invention, the Key-Value information table of each CIMOM that first node will generate is published in DHT network corresponding to CIMOM according to DHT algorithm well known by persons skilled in the art, the existing distributed network of DHT network that wherein said CIMOM is corresponding.The issue of described Key-Value information table refers to the Key-Value information table is stored on a plurality of nodes dispersedly according to the DHT algorithm, and each node is responsible for storage area Key-Value information table, thereby realizes addressing and the storage of whole DHT network.Each node periodically move each self-corresponding detection algorithm of described DHT algorithm detect the CIMOM on the newly added node or withdraw from or failure node on CIMOM, thereby upgrade the Key-Value information table of described each node self, wherein said DHT algorithm comprises, but be not limited to Chord, CAN, Tapestry and Pastry algorithm.
Referring to Fig. 6, illustrate the method flow schematic diagram that obtains the CIM resource according to embodiment of the present invention, described method comprises step:
S400, first node receive the request message of the inquiry CIM resource of CIM client transmission;
It is pointed out that first node can be any one node in the distributed network, and the device that obtains the CIM resource can be any one node in the distributed network.Any one node in the embodiment of the present invention can obtain the CIM resource.After first node started, first node just can execution in step 400 and the follow-up step of obtaining the CIM resource.The request message of the inquiry CIM resource that the CIM client sends, it is the request message of the CIM resource on the CIMOM of CIM resource on the single CIMOM of inquiry that initiates of CIM client or all nodes, to inquire about the request message of CIM resource herein referred to as request message, its form can adopt WMI (Windows Management Instrumentation, the Windows management regulation) reference format, also can adopt WBEM (Web-Based Enterprise Management is based on the business administration of Web) reference format etc.
Request message comprises message header and message body, wherein comprises the keyword content of identification request resource in the message body, is used for identifying URI or the URL information of single CIMOM, perhaps identifies the identifier of the CIMOM of all nodes.In an embodiment of the present invention, can adopt host address is the CIMOM that AllHostPath identifies all nodes; Can also adopt in addition host address is the CIMOM that empty (Null) identifies all nodes.If inquire about the CIM resource on the single CIMOM, what then described keyword content comprised is URI or the URL information of the single CIMOM of sign; If inquire about the CIM resource on the CIMOM of all nodes, that then described keyword content comprises is the identifier of the CIMOM of all nodes of sign, i.e. AllHostPath or Null.
S402, first node extracts the keyword content in the described request message, judge that according to described keyword content described request message is the resource of the single CIMOM of inquiry or the resource of inquiring about the CIMOM of all nodes, if inquire about the resource of single CIMOM, execution in step S404 then, if inquire about the resource of all node CIMOM, execution in step S406 then;
In the embodiment of the present invention, the device that obtains the CIM resource of first node extracts the keyword content of message body in the request message, and judge that according to described keyword content request message is the resource of the single CIMOM of inquiry or the resource of inquiring about the CIMOM of all nodes, if what described keyword content comprised is URI or the URL information of the single CIMOM of sign, then be judged as the resource of the single CIMOM of inquiry, execution in step S404; If what described keyword content comprised is the identifier of the CIMOM of all nodes of sign, then be judged as the resource of the CIMOM of all nodes of inquiry, execution in step S406.
S404, first node is according to the positional information of described keyword content search purpose CIMOM, according to the positional information that finds described request message is forwarded to purpose CIMOM, receives the response message that described purpose CIMOM returns, and described response message is forwarded to described CIM client;
In the embodiment of the present invention, the step S404 that first node is carried out specifically can comprise:
URI in the described keyword content or URL are carried out Hash operation obtain the Key value;
Search corresponding Value value according to the Key-Value information table in described Key value and the described DHT network;
Described request message is forwarded to purpose CIMOM corresponding to described Value value;
Receive the response message of described purpose CIMOM, the response message that receives is forwarded to described CIM client;
Searching in the process of Value value according to the Key-Value information table in Key value and the DHT network, can adopt distributed hashtable well known to those skilled in the art to search algorithm and improve search efficiency, the DHT that is not limited to mention in the embodiment of the present invention searches algorithm.In the embodiment of the present invention, what the Value value that finds was corresponding is the positional information of the purpose CIMOM place node of requesting query in the request message, and the generative process by the Value value as can be known, can determine the IP address of place node by the Value value.After request message being forwarded to purpose CIMOM corresponding to Value value, receive the response message to request message that this purpose CIMOM returns, then the response message that receives is forwarded to described CIM client, be the CIM client of initial request messages, wherein said response message comprises the CIM resource information of requesting query in the request message.
S406, first node is searched the positional information of all nodes, described request message is forwarded to the CIMOM of all nodes according to the positional information that finds, receives the response message that the CIMOM of described all nodes returns, and described response message is forwarded to described CIM client.
In embodiments of the present invention, if the keyword content of request message comprises is identifier AllHostPath or the Null of CIMOM of all nodes of sign, then the request message requests inquiry is CIM resource on the CIMOM of all nodes.
Request message is forwarded in the CIMOM execution mode of all nodes in the positional information of searching all nodes and according to the positional information that finds, issue flow process by above-mentioned Key-Value information table is described as can be known, because the Key-Value information table of different nodes may comprise the Key-Value information table of same CIMOM, for avoiding CIMOM Forward-reques message corresponding in the Key-Value information table of all nodes will cause some CIMOM to receive same request message for many times, utilize again first common unduplicated characteristic of Value value in each node Key-Value information table, the present invention avoids the problems referred to above by the CIMOM Forward-reques message of the Value value corresponding node in first of node Key-Value information table only.Two kinds of embodiment are provided in the embodiment of the present invention.The first embodiment can adopt following steps to process:
With the Value value among first of the Key-Value information table of first node in the DHT network as the place information inquiry result;
Transmit described request message and arrive the as a result CIMOM of corresponding node of described place information inquiry;
With described place information inquiry as a result the Value value among first of Key-Value information table of corresponding node self maintained as the place information inquiry result, then repeat above-mentioned request message and transmit step, until the request first node receive described place information inquiry as a result the node of the Value value correspondence among first of Key-Value information table of corresponding node self maintained be described first node;
Receive the response message of the CIMOM passback of described all nodes, received response message is forwarded to described CIM client.
Particularly, the first node that receives request message (is described for convenient, referred to as " N1 " node, is only described for convenient herein, and can adopt any other symbol to represent, should not be understood as restricted explanation.) with the place information inquiry result of the Value value among first of the Key-Value information table of N1 node (this Key-Value information table can comprise the Key-Value information of the CIMOM of the CIMOM of a node or an above node) as the purpose CIMOM of request message, then to place information inquiry as a result corresponding node (be the next node in the N1 node Key-Value information table, referred to as " N2 " node) CIMOM Forward-reques message, that is: N1->N2, and obtain the place information inquiry result that N2 returns, i.e. Value value in first of the Key-Value information table of N2 node self maintained.Then first node is with the place information inquiry result of the Value value among first of the Key-Value information table of N2 node self maintained as the purpose CIMOM of request message, the CIMOM Forward-reques message of the Value value corresponding node (referred to as " N3 " node) in first in the N2 node Key-Value information table, that is: N1->N3.So continue, first node constantly will receive Value value among in the Key-Value information table of node of request message first as the place information inquiry result, until the Value value corresponding node that receives among in the Key-Value information table of node of request message first is the start node N1 that receives the CIM client request message.Need to prove, in the request message repeating process, after knowing positional information Value value, those skilled in the art can adopt known technological means that request message is forwarded to CIMOM on the Value value corresponding node.The device that obtains the CIM resource of first node receives the response message that each CIMOM received request message returns, then the response message that receives is forwarded to the CIM client of the request of initiation, wherein said response message comprises the CIM resource information of request message requests inquiry.Need to prove, the device that obtains the CIM resource is forwarded in the process of CIM client of the request of initiation at the response message that will receive, can receive this response message that just will return behind the response message that CIMOM returns and be forwarded to the CIM client of the request of initiation, also can be after receiving all response messages that all CIMOM on the same node (can comprise an above CIMOM on a node) return with same node on the response message of all CIMOM be packaged as the CIM client that a response message is forwarded to the request of initiation.
The concrete steps of the second embodiment can comprise:
First node with the Value value among first of the Key-Value information table of first node in the distributed hashtable network as the place information inquiry result;
The request message that first node receives to the as a result CIMOM forwarding of corresponding node of described place information inquiry, and in described request message, add the first node address information;
The described request message that adds the first node address information of CIMOM forwarding of the Value value corresponding node of the Value value corresponding node in described first in first of the Key-Value information table of himself safeguarding;
The described request message that adds the first node address information of CIMOM forwarding of the Value value corresponding node of each node that receives the described request message that has added the first node address information in first of the Key-Value information table of himself safeguarding is until the Value value corresponding node that receives among in the Key-Value information table of node self maintained of the above-mentioned request message that has added the first node address information first is first node;
The response message that the CIMOM of described all nodes of first node reception returns according to described additional first node address information is forwarded to described CIM client with received response message.
Particularly, can (describe for convenient to first node in the DHT network, referred to as " K1 " node) first of Key-Value information table in the Value value (wherein, Value value in first of the Key-Value information table of first node is the place information inquiry result) CIMOM of corresponding node (referred to as " K2 " node) transmits the request message that has added the K1 node address information, that is: K1->K2, then the device that obtains the CIM resource of K2 node is transmitted the request message that has added the K1 node address information to the Value value corresponding node (referred to as " K3 " node) among first of the Key-Value information table of K2 node self maintained, that is: K2->K3, receive the described request message that adds the K1 node address information of CIMOM forwarding of the Value value corresponding node of the device that obtains the CIM resource in first of the Key-Value information table of himself safeguarding on each node of the described request message that has added the K1 node address information, until the Value value corresponding node that receives among in the Key-Value information table of the above-mentioned node that has added the K1 node address information first is the K1 node.Each CIMOM that has received request message can be back to response message according to node address information additional in the request message device that obtains the CIM resource of first node, the response message that the device that obtains the CIM resource of first node is receiving each CIMOM and returns, can after receiving response message, just received response message be forwarded to the CIM client of the request of initiation, also can after receiving all response messages of (can comprise an above CIMOM on the same node) of all CIMOM on the same node, described all response messages be packaged as a response message and be forwarded to the CIM client that initiation is asked.
In the embodiment of the present invention, except can adopting above-mentioned two kinds of embodiment, can also adopt the mode that generates the new node sign in the process of the CIMOM Forward-reques message of all Value value corresponding node in the Key-Value information table of all nodes, to avoid some CIMOM to receive same request message for many times.
In the embodiment of the present invention, may have the Key-Value information table of same CIMOM in the Key-Value information table of different nodes, in other words, the Key-Value information table of same CIMOM can be kept in the Key-Value information table of a plurality of nodes.In the process of CIMOM Forward-reques message corresponding in the Key-Value information table of all nodes, can be kept at owing to the Key-Value information of same CIMOM in the Key-Value information table of a plurality of nodes and make same CIMOM receive the request message that described a plurality of node is transmitted separately for many times.
For avoiding above-mentioned situation to occur, first node generates new information sign NewMessageID with the client of sign initial request messages by address and the port information according to the CIM client of the message identifier MessageID of described request message, initial request messages, then MessageID and NewMessageID are kept at MessageID and the corresponding table of NewMessageID of first node, it is the new information label table, MessageID and NewMessageID are corresponding one by one in the table, and the message identifier in the request message is replaced with NewMessageID.In the process with the CIMOM that is forwarded to all nodes of request message, whether the new information label table of inquiring about described first node according to the message identifier in the request message comprises new information sign corresponding to this message identifier, if do not comprise, then to the CIMOM Forward-reques message of described first node, and the new information that described message identifier is corresponding sign is saved to the new information label table of described first node, otherwise, not to the CIMOM Forward-reques message of described first node.After the judgement of first node CIMOM Forward-reques message on the first node whether is finished dealing with, to the corresponding CIMOM Forward-reques message of the Key-Value information table of first node.
The generation and the judgement that it is pointed out that above-mentioned new information sign are applicable to all nodes, are not limited to receive the first node of CIM client request message, also can be other nodes that receive the request message of first node forwarding.Adopt the mode of above-mentioned new information mark for marking CIM client in the process of the CIMOM of all Value value corresponding node of the information table that request message is forwarded to all nodes, can adopt the mode of the first node address information of the additional CIM of reception client request message in described request message that the CIMOM of each node that receives request message can be returned response message according to described additional first node address information.When the device that obtains the CIM resource of first node is the response message of NewMessageID with the message identifier that receives, the message identifier in the response message is replaced with MessageID and be forwarded to the CIM client of initial request messages.
In the embodiment of the present invention, can generate new information sign NewMessageID according to address and the port information of the CIM client of the message identifier MessageID in the message body of described request message, initial request messages, with the client of sign initial request messages.Concrete, can generate new information sign NewMessageID with the client of sign initial request messages by the address of the CIM client of the message identifier MessageID in the message body of described request message, initial request messages and port information are carried out the Hash computing.In an embodiment of the present invention, message identifier in the request message is MessageID=" 87872 ", can pass through NewMessageID=Hash (" 87872+10.138.73.32+5900 ")=5986324501 and generate NewMessageID, wherein 10.138.73.32 is the address information of client, and 5900 is port information.
Below by reference to the accompanying drawings the method for the CIM of obtaining resource of the present invention is set forth, described below in conjunction with the device of accompanying drawing to the CIM of obtaining resource of the present invention.
Referring to Fig. 4, illustrate the structural representation according to the device that obtains the CIM resource of embodiment of the present invention, the device 400 that obtains the CIM resource can be the first node of operation CIMOM, specifically can comprise:
CIMOM agency 502, be used for receiving the request message that the CIM client is sent to the inquiry CIM resource of first node, extract the keyword content in the described request message, judge that according to described keyword content described request message is the resource of the single Common Information Model Object Manager CIMOM of inquiry or the resource of inquiring about the CIMOM of all nodes;
DHT agency 504 is used for when the CIMMOM agency judges that described request message is the resource of the single CIMOM of inquiry, according to the positional information of described keyword content search purpose CIMOM; Or be used for when the CIMMOM agency judges that described request message is the resource of all node CIMOM of inquiry the positional information of searching all nodes;
CIMOM agency 502, also be used for according to the positional information that the DHT agency searches described request message being forwarded to CIMOM corresponding to described positional information, receive the response message that CIMOM corresponding to described positional information returns, and the response message that receives is forwarded to described CIM client.
In the embodiments of the present invention, CIMOM agency (CIMOM Agent) receives the request message of the inquiry CIM resource of CIM client transmission, request message is resolved to extract keyword content in the message body, and judge that according to the keyword content of extracting request message is the CIM resource on the CIM resource on the single CIMOM of inquiry or the CIMOM that inquires about all nodes.Wherein said keyword content comprises URI or URL or identifies the identifier of all CIMOM, and in embodiment of the present invention, the identifier of described all CIMOM of sign is AllHostPath or Null.If the keyword content is URI or URL information, then this request message is the CIM resource on the single CIMOM of inquiry, if the keyword content is AllHostPath or Null, then this request message is the CIM resource on all CIMOM of inquiry.
DHT agency provided by the invention not only can be used for realizing above-mentioned locating function, can also be used for realizing discovery and the information table issue of CIMOM on the node, specifically can comprise:
The Hash computing is carried out in first node IP address generate the Value value;
Find CIMOM all on the described first node according to the positioning service agreement request;
Obtain URI or the URL of CIMOM all on the described first node, described URI or URL are carried out the Hash computing obtain the Key value to generate the Key-Value information table of CIMOM;
The Key-Value information table that generates is published to the DHT network.
In the embodiment of the present invention, the DHT network refers to the URI of CIMOM or URL are carried out that IP address that Hash operation generates Key value and CIMOM place node carries out that Hash operation generates Value composition Key-Value information table and the network that consists of.
In the embodiment of the present invention, may move a plurality of CIMOM on the node.May move one or more CIMOM on the node, wherein not have interrelated on the same node between each CIMOM.Node namely obtains the device of CIM resource can be according to all CIMOM of the same node of positioning service protocol discovery operation.Can adopt the method for multicast to implement, particularly, the first node address need to be added multicast address, namely safeguard a multicast group of only having the first node address, then first node namely obtains the device of CIM resource, and the CIMOM in multicast address sends SLP multicast request; The CIMOM that receives SLP multicast request acts on behalf of the CIM resource information of himself with the DHT that the clean culture form returns to first node; The DHT agency obtains URI or the URL of each CIMOM, described URI or URL are carried out the Hash computing obtain the Key value, and then Key-Value information table corresponding to generation CIMOM, then the Key-Value information table that generates is published to the DHT network according to the DHT algorithm, described issue refers to and will be stored in dispersedly on a plurality of nodes according to the DHT algorithm by the CIM resource information on the Key value uniquely identified CIMOM, each node is responsible for storing sub-fraction Key-Value information table, thereby realize addressing and the storage of whole DHT network, DHT on each node agency periodically moves each self-corresponding detection algorithm of described DHT algorithm and detects the CIMOM on the newly added node or withdraw from/CIMOM on the failure node, thereby upgrade the Key-Value information table of described each node self, wherein said DHT algorithm comprises, but be not limited to Chord, CAN, Tapestry and Pastry algorithm.
In embodiments of the present invention, the discovery of all CIMOM resource informations of moving on the same node is except can be above-mentioned the multicast form implements, and can also adopt the mode that increases the directory agent module at node to implement.Particularly, the all CIMOM that move on the first node are to the CIM resource information of directory agent module registration self, then the DHT agency extracts the resource information of CIMOM registration from the directory agent module, from the resource information of extracting, obtain URI or the URL of CIMOM, the URI that obtains or URL are carried out the Hash computing obtain the Key value, and then the Key-Value information table of generation CIMOM, then the Key-Value information table that generates is published to the DHT network.Need to prove, although be described as an example of first node example in the execution mode, can adopt aforesaid way to find all CIMOM that move on the node on all nodes.
In the embodiment of the present invention, if inquire about the CIM resource on the single CIMOM, then DHT agency particularly, comprising according to the positional information that the URI in the key words content or URL search purpose CIMOM: the URI in the described keyword content or URL are carried out the Hash computing obtain the Key value; Search corresponding Value value according to the Key-Value information table in described Key value and the DHT network, wherein the Value value is the positional information of the purpose CIMOM of requesting query in the request message.In the DHT agents query after the positional information of purpose CIMOM, the CIMOM agency is forwarded to purpose CIMOM corresponding to Value value with request message, receive the response message that purpose CIMOM returns, and the response message that receives is forwarded to the CIM client of initial request messages.
If inquire about the resource of all node CIMOM, the positional information that the DHT agency searches all nodes in the DHT network, the CIMOM agency will act on behalf of the positional information Forward-reques message of searching according to DHT, the response message that reception is returned, and the response message that receives is forwarded to the CIM client of the request initiated.
Request message is forwarded in the CIMOM execution mode of all nodes in the positional information of searching all nodes and according to the positional information that finds, issue flow process by above-mentioned Key-Value information table is described as can be known, because the Key-Value information table of different nodes may comprise the Key-Value information table of same CIMOM, for avoiding CIMOM Forward-reques message corresponding in the Key-Value information table of all nodes will cause some CIMOM to receive same request message for many times, utilize again first common unduplicated characteristic of Value value in each node Key-Value information table, the present invention avoids the problems referred to above by the CIMOM Forward-reques message of the Value value corresponding node in first of node Key-Value information table only.Two kinds of embodiment are provided in the embodiment of the present invention.
The first embodiments may include steps: first node agent distributed hash table DHT network the first node Key-Value information in the first table's Value query results as location information for the first CIMOM agents node forwards the request message to said location information query results corresponding node CIMOM, the first node DHT agent then said location information query results corresponding node itself maintains key-Value information table in the first the Value of the results as location information of the first node to repeat the CIMOM proxy request message in step (i.e. forwards the request message to the location information query result to the corresponding node forwarding the CIMOM step) until the first point of DHT agent receives the location information query results corresponding node itself maintains key-Value information table in the first term value node corresponding to the value of the first node.
The second embodiments may include steps: first node agent distributed hash table DHT network the first node Key-Value information in the first table 's Value as location information query results, so that the first CIMOM agent node location information query result to the node corresponding CIMOM forwards the received request message , and the request message is added to said first node address information ; so that said first value in the Value the node corresponding to its own maintenance information table key-Value the Value of the first item in the node corresponding to said additional CIMOM forwarding address information of said first node a request message , and to facilitate the reception of the additional said first node address information request message , each node maintains its own information table key-Value the Value of the first item in the node corresponding to said additional CIMOM forwarding address information of said first node a request message until it receives the first point of the additional address information request message node itself maintained key-Value information table, the first entry in the value node is the first node corresponds .
Need to prove, although the description of above-mentioned the first embodiment and the second embodiment is take first node as example, this searches DHT agency and the CIMOM agency who can be applicable to arbitrary node in the distributed network with repeating process.
In the embodiment of the present invention, address and port information that CIMOM agency can also be used for the CIM client of message identifier, initial request messages according to described request message generate the client that new information identifies initial request messages.By this function, when in the process of the CIMOM Forward-reques message of all nodes, adopting the CIMOM Forward-reques message of all Value value corresponding node in the Key-Value information table of all nodes, can avoid the CIMOM of some node to receive same request message for many times.
In the embodiment of the present invention, CIMOM agency generates new information sign NewMessageID with the client of sign initial request messages by the address of the CIM client of the message identifier MessageID in the message body of described request message, initial request messages and port information are carried out the Hash computing.In an embodiment of the present invention, message identifier in the request message is MessageID=" 87872 ", can pass through NewMessageID=Hash (" 87872+10.138.73.32+5900 ")=5986324501 and generate NewMessageID, wherein 10.138.73.32 is the address information of client, and 5900 is port information.MessageID and NewMessageID can be saved to the correspondence table of MessageID and NewMessageID on the first node, it is the new information label table, MessageID and NewMessageID are corresponding one by one in the table, and the message identifier in the request message is replaced with NewMessageID.Request message is forwarded in the process of CIMOM of all nodes in the positional information that the CIMOM of first node agency finds according to the DHT agency of first node, whether the new information label table of inquiring about described first node according to the message identifier in the request message comprises the new information sign that this message identifier is corresponding, if do not comprise, then to the CIMOM Forward-reques message of described first node, and the new information that described message identifier is corresponding sign is saved to the new information label table of described first node, otherwise, not to the CIMOM Forward-reques message of described first node, after finishing dealing with to the judgement of the CIMOM Forward-reques message of first node whether, to all Value value corresponding node Forward-reques message of the Key-Value information table of first node.The generation and the judgement that it is pointed out that above-mentioned new information sign are applicable to all nodes, are not limited to receive the first node of CIM client request message, also can be other nodes that receive the request message of first node forwarding.Adopt the mode of above-mentioned new information mark for marking CIM client in the process of the CIMOM of all Value value corresponding node of the information table that request message is forwarded to all nodes, can adopt the mode of the first node address information of additional directly reception CIM client request message in described request message to make the CIMOM of each node that receives request message can response message be back to according to described additional first node address information the CIMOM agency of first node, when CIMOM agency is the response message of NewMessageID with the message identifier that receives, the message identifier in the response message is replaced with MessageID and be forwarded to the CIM client of initial request messages.
In embodiments of the present invention, in order to make the service ability of CIM client terminal to discover node, the CIMOM agency can adopt dual mode to carry out the service ability issue, is respectively the CIMOM service issue attribute field of definition SLP COS and expansion DMTF template.Particularly, comprising: definition positioning service protocol service type service type:DHT-CIMOM, the service ability of the form publisher node of foundation described positioning service agreement request/response; Or, in the template of DMTF definition, increase the service-type=DHT-CIMOM field to indicate the service ability of node.
Implement the method and apparatus that obtains the CIM resource of the present invention, arbitrary node by distributed network carries out flexible management to netting interior CIMOM according to the DHT algorithm, can also make simultaneously from the CIM client of arbitrary node access and can obtain in the distributed network the upper or upper CIM resource of all CIMOM of single CIMOM, realize obtaining of under extensive, distributed multi-master machine environment CIM resource.
In addition, the device that obtains the CIM resource in the above embodiment of the present invention (being node) originally can be the network equipment in the network, also can be the equipment such as computer.Each agency of the above embodiment of the present invention (such as the CIMOM agency, the DHT agency) can be the functional module in the processor that runs on the said equipment, and the present invention does not do restriction at this.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, to come the relevant hardware of instruction to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process such as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above is preferred implementation of the present invention, should be pointed out that for those of ordinary skills, under the prerequisite that does not break away from the principle of the invention, can also make some improvement and variation, and these improvement and variation also are considered as protection scope of the present invention.

Claims (14)

1.一种获取通用信息模型CIM资源的方法,其特征在于,所述方法包括:1. A method for obtaining a Common Information Model CIM resource, characterized in that the method comprises: 第一节点接收CIM客户端发送的查询CIM资源的请求消息;The first node receives a request message for querying CIM resources sent by the CIM client; 所述第一节点提取所述请求消息中的关键字内容,根据所述关键字内容判断所述请求消息是查询单个通用信息模型对象管理器CIMOM的资源还是查询所有节点的CIMOM的资源,The first node extracts the keyword content in the request message, and judges according to the keyword content whether the request message queries the resources of a single common information model object manager CIMOM or queries the resources of the CIMOMs of all nodes, 若查询单个CIMOM的资源,则执行步骤a,若查询所有节点的CIMOM的资源,则执行步骤b,If querying the resources of a single CIMOM, perform step a; if querying the resources of CIMOMs of all nodes, perform step b, a,所述第一节点根据所述关键字内容查找目的CIMOM的位置信息,根据查找到的位置信息将所述请求消息转发至目的CIMOM,接收所述目的CIMOM返回的响应消息,并将所述响应消息转发至所述CIM客户端,a. The first node searches for the location information of the destination CIMOM according to the keyword content, forwards the request message to the destination CIMOM according to the found location information, receives a response message returned by the destination CIMOM, and sends the forwarding the response message to the CIM client, b,所述第一节点查找所有节点的位置信息,根据查找到的位置信息将所述请求消息转发至所有节点的CIMOM,接收所述所有节点的CIMOM返回的响应消息,并将所述响应消息转发至所述CIM客户端。b. The first node searches for the location information of all nodes, forwards the request message to the CIMOMs of all nodes according to the found location information, receives the response messages returned by the CIMOMs of all nodes, and sends the response message forwarded to the CIM client. 2.如权利要求1所述的方法,其特征在于,在第一节点接收CIM客户端发送的查询CIM资源的请求消息之前,所述方法还包括:2. The method according to claim 1, wherein, before the first node receives the request message of querying CIM resources sent by the CIM client, the method further comprises: 所述第一节点对所述第一节点IP地址进行哈希运算生成Value值;The first node performs a hash operation on the IP address of the first node to generate a Value value; 根据服务定位协议发现所述第一节点上所有的CIMOM;discovering all CIMOMs on the first node according to a service location protocol; 获取所述第一节点上所有的CIMOM的通用资源标识符URI或统一资源定位符URL,将所述URI或URL进行哈希运算得到Key值以生成CIMOM的Key-Value信息表;Obtain the Universal Resource Identifier URI or Uniform Resource Locator URL of all CIMOMs on the first node, and perform a hash operation on the URI or URL to obtain a Key value to generate a Key-Value information table of the CIMOM; 将生成的Key-Value信息表发布到分布式哈希表网络。Publish the generated Key-Value information table to the distributed hash table network. 3.如权利要求2所述的方法,其特征在于,所述步骤a包括:3. The method according to claim 2, wherein said step a comprises: 所述第一节点对所述请求消息中的关键字内容中的URI或URL进行哈希运算得到Key值;The first node performs a hash operation on the URI or URL in the keyword content in the request message to obtain the Key value; 所述第一节点根据所述Key值和所述分布式哈希表网络中的Key-Value信息表查找对应的Value值;The first node looks up the corresponding Value value according to the Key value and the Key-Value information table in the distributed hash table network; 所述第一节点将所述请求消息转发至所述Value值对应的目的CIMOM;The first node forwards the request message to the destination CIMOM corresponding to the Value value; 所述第一节点接收所述目的CIMOM返回的响应消息,将接收到的响应消息转发至所述CIM客户端。The first node receives the response message returned by the destination CIMOM, and forwards the received response message to the CIM client. 4.如权利要求2所述的方法,其特征在于,所述步骤b包括:4. The method according to claim 2, wherein said step b comprises: 所述第一节点将分布式哈希表网络中所述第一节点的Key-Value信息表的第一项中的Value值作为位置信息查询结果;The first node uses the Value value in the first item of the Key-Value information table of the first node in the distributed hash table network as the location information query result; 所述第一节点转发所述请求消息到所述位置信息查询结果对应节点的CIMOM;The first node forwards the request message to the CIMOM of the node corresponding to the location information query result; 所述第一节点将所述位置信息查询结果对应节点自身维护的Key-Value信息表的第一项中的Value值作为位置信息查询结果,然后重复上述请求消息转发步骤,直至第一节点接收到所述位置信息查询结果对应节点自身维护的Key-Value信息表的第一项中的Value值对应的节点为所述第一节点;The first node uses the Value value in the first item of the Key-Value information table maintained by the node corresponding to the location information query result as the location information query result, and then repeats the above steps of forwarding the request message until the first node receives The node corresponding to the Value value in the first item of the Key-Value information table maintained by the node itself in the position information query result is the first node; 所述第一节点接收所述所有节点的CIMOM返回的响应消息,将所接收到的响应消息转发至所述CIM客户端。The first node receives the response messages returned by the CIMOMs of all the nodes, and forwards the received response messages to the CIM client. 5.如权利要求2所述的方法,其特征在于,所述步骤b包括:5. The method according to claim 2, wherein said step b comprises: 所述第一节点将分布式哈希表网络中的所述第一节点的Key-Value信息表的第一项中的Value值作为位置信息查询结果;The first node uses the Value value in the first item of the Key-Value information table of the first node in the distributed hash table network as the location information query result; 所述第一节点向所述位置信息查询结果对应的节点的CIMOM转发接收到的请求消息,并在所述请求消息中附加所述第一节点地址信息;以便于所述第一项中的Value值对应的节点向其自身维护的Key-Value信息表的第一项中的Value值对应的节点的CIMOM转发所述附加了所述第一节点地址信息的请求消息,以及以便于接收到所述附加了所述第一节点地址信息的请求消息的各节点向其自身维护的Key-Value信息表的第一项中的Value值对应的节点的CIMOM转发所述附加了所述第一节点地址信息的请求消息,直至接收到上述附加了第一节点地址信息的请求消息的节点自身维护的Key-Value信息表中的第一项中的Value值对应节点是第一节点;The first node forwards the received request message to the CIMOM of the node corresponding to the location information query result, and appends the first node address information to the request message; so that the Value in the first item The node corresponding to the value forwards the request message appended with the address information of the first node to the CIMOM of the node corresponding to the Value value in the first item of the Key-Value information table maintained by itself, and in order to receive the Each node appended with the request message of the first node address information forwards the appended first node address information to the CIMOM of the node corresponding to the Value value in the first item of the Key-Value information table maintained by itself. The request message until the node that receives the request message appended with the address information of the first node is the first node corresponding to the value in the first item in the Key-Value information table maintained by the node itself; 所述第一节点接收所述所有节点的CIMOM根据所述附加的所述第一节点地址信息返回的响应消息,将所接收到的响应消息转发至所述CIM客户端。The first node receives the response messages returned by the CIMOMs of all the nodes according to the added first node address information, and forwards the received response messages to the CIM client. 6.如权利要求2所述的方法,其特征在于,所述步骤b还包括:6. The method according to claim 2, wherein said step b further comprises: 根据所述请求消息的消息标识、所述CIM客户端的地址和端口信息生成新消息标识以标识发起请求消息的客户端。A new message identifier is generated according to the message identifier of the request message, the address and port information of the CIM client to identify the client that initiated the request message. 7.如权利要求6所述的方法,其特征在于,所述根据查找到的位置信息将所述请求消息转发至所有节点的CIMOM具体包括:7. The method according to claim 6, wherein, forwarding the request message to the CIMOMs of all nodes according to the found location information specifically comprises: 根据所述请求消息中的消息标识查询所述第一节点的新消息标识表是否包含该消息标识对应的新消息标识,Querying whether the new message identifier table of the first node contains a new message identifier corresponding to the message identifier according to the message identifier in the request message, 若不包含,则向所述第一节点的CIMOM转发请求消息,并将所述消息标识对应的新消息标识保存于所述第一节点的新消息标识表中,If not included, then forward the request message to the CIMOM of the first node, and save the new message identifier corresponding to the message identifier in the new message identifier table of the first node, 否则,不向所述第一节点的CIMOM转发请求消息。Otherwise, the request message is not forwarded to the CIMOM of the first node. 8.一种获取通用信息模型CIM资源的装置,其特征在于,所述装置包括:8. A device for acquiring common information model CIM resources, characterized in that the device comprises: CIMOM代理,用于接收CIM客户端发送至第一节点的查询CIM资源的请求消息,提取所述请求消息中的关键字内容,根据所述关键字内容判断所述请求消息是查询单个通用信息模型对象管理器CIMOM的资源还是查询所有节点的CIMOM的资源;The CIMOM agent is configured to receive a request message for querying CIM resources sent by the CIM client to the first node, extract keyword content in the request message, and judge that the request message is to query a single general information model according to the keyword content. The resources of the object manager CIMOM still query the resources of the CIMOM of all nodes; DHT代理,用于当CIMMOM代理判断所述请求消息是查询单个CIMOM的资源时,根据所述关键字内容查找目的CIMOM的位置信息;或用于当CIMMOM代理判断所述请求消息是查询所有节点CIMOM的资源时,查找所有节点的位置信息;The DHT agent is used to search the location information of the destination CIMOM according to the keyword content when the CIMMOM agent judges that the request message is to query the resources of a single CIMOM; or is used to query all node CIMOMs when the CIMMOM agent judges that the request message is to query the resources of a single CIMOM When resources are available, find the location information of all nodes; CIMOM代理,还用于根据DHT代理查找的位置信息将所述请求消息转发至所述位置信息对应的CIMOM,接收所述位置信息对应的CIMOM返回的响应消息,并将接收到的响应消息转发至所述CIM客户端。The CIMOM agent is also used to forward the request message to the CIMOM corresponding to the location information according to the location information searched by the DHT agent, receive the response message returned by the CIMOM corresponding to the location information, and forward the received response message to The CIM client. 9.如权利要求8所述的装置,其特征在于,所述DHT代理还用于对所述第一节点IP地址进行哈希运算生成Value值,根据服务定位协议发现所述第一节点上所有的CIMOM,获取所述第一节点上所有的CIMOM的通用资源标识符URI或统一资源定位符URL,将所述URI或URL进行哈希运算得到Key值以生成CIMOM的Key-Value信息表,将生成的Key-Value信息表发布到所述分布式哈希表网络。9. The device according to claim 8, wherein the DHT agent is further configured to perform a hash operation on the IP address of the first node to generate a Value value, and discover all IP addresses of the first node according to the service location protocol. CIMOM, obtain the Universal Resource Identifier URI or Uniform Resource Locator URL of all CIMOMs on the first node, perform hash operation on the URI or URL to obtain the Key value to generate the Key-Value information table of the CIMOM, and The generated Key-Value information table is published to the distributed hash table network. 10.如权利要求9所述的装置,其特征在于,所述CIMOM代理还用于实现本节点服务能力的发布,所述服务能力的发布包括:10. The device according to claim 9, wherein the CIMOM agent is also used to implement the release of the service capability of the node, and the release of the service capability includes: 定义服务定位协议服务类型service type:DHT-CIMOM,依据所述服务定位协议请求/响应的形式发布节点的服务能力;或,在分布式管理工作组定义的模板中增加service-type=DHT-CIMOM字段以标明节点的服务能力。Define the service location protocol service type service type: DHT-CIMOM, publish the service capability of the node according to the request/response form of the service location protocol; or, add service-type=DHT-CIMOM to the template defined by the distributed management working group field to indicate the service capability of the node. 11.如权利要求9所述的装置,其特征在于,所述DHT代理根据所述关键字内容查找目的CIMOM的位置信息具体包括:11. The device according to claim 9, wherein the DHT agent searches for the location information of the destination CIMOM according to the keyword content specifically includes: 对所述关键字内容中的URI/URL进行哈希运算得到Key值;Perform hash operation on the URI/URL in the keyword content to obtain the Key value; 根据所述Key值和所述分布式哈希表网络中的Key-Value信息表查找对应的Value值。Find the corresponding Value value according to the Key value and the Key-Value information table in the distributed hash table network. 12.如权利要求9所述的装置,其特征在于,所述CIMOM代理还用于根据所述请求消息的消息标识、所述CIM客户端的地址和端口信息生成新消息标识以标识发起请求消息的客户端。12. The apparatus according to claim 9, wherein the CIMOM agent is further configured to generate a new message identifier to identify the originator of the request message according to the message identifier of the request message, the address and port information of the CIM client client. 13.如权利要求12所述的装置,其特征在于,所述CIMOM代理根据DHT代理查找到的位置信息将所述请求消息转发至所有节点的CIMOM具体包括:13. The apparatus according to claim 12, wherein the CIMOM agent forwarding the request message to all nodes' CIMOMs according to the location information found by the DHT agent specifically includes: 根据所述请求消息中的消息标识查询所述第一节点的新消息标识表是否包含该消息标识对应的新消息标识,Querying whether the new message identifier table of the first node contains a new message identifier corresponding to the message identifier according to the message identifier in the request message, 若不包含,则向所述第一节点的CIMOM转发请求消息,并将所述消息标识对应的新消息标识保存于所述第一节点的新消息标识表中,If not included, then forward the request message to the CIMOM of the first node, and save the new message identifier corresponding to the message identifier in the new message identifier table of the first node, 否则,不向所述第一节点的CIMOM转发请求消息。Otherwise, the request message is not forwarded to the CIMOM of the first node. 14.如权利要求9所述的装置,其特征在于,14. The apparatus of claim 9, wherein 当CIMOM代理判断所述请求消息是查询所有节点的CIMOM的资源时,所述DHT代理具体用于:将分布式哈希表网络中所述第一节点的Key-Value信息表的第一项中的Value值作为位置信息查询结果以便CIMOM代理转发所述请求消息到所述位置信息查询结果对应节点的CIMOM,再将所述位置信息查询结果对应节点自身维护的Key-Value信息表的第一项中的Value值作为位置信息查询结果以便所述CIMOM代理重复上述请求消息转发步骤,直至所述DHT代理接收到所述位置信息查询结果对应节点自身维护的Key-Value信息表的第一项中的Value值对应的节点为所述第一节点;或When the CIMOM agent judges that the request message is to inquire about the resources of the CIMOM of all nodes, the DHT agent is specifically used to: include the first item in the Key-Value information table of the first node in the distributed hash table network The Value value of the location information is used as the location information query result so that the CIMOM agent forwards the request message to the CIMOM of the node corresponding to the location information query result, and then sends the location information query result to the first item of the Key-Value information table maintained by the node itself The Value value in is used as the location information query result so that the CIMOM agent repeats the above request message forwarding steps until the DHT agent receives the first item in the Key-Value information table maintained by the location information query result corresponding to the node itself. The node corresponding to the Value value is the first node; or 当CIMOM代理判断所述请求消息是查询所有节点的CIMOM的资源时,所述DHT代理具体用于:将分布式哈希表网络中所述第一节点的Key-Value信息表的第一项中的Value值作为位置信息查询结果以便CIMOM代理向所述位置信息查询结果对应的节点的CIMOM转发接收到的请求消息以及在所述请求消息中附加所述第一节点地址信息;以便于所述第一项中的Value值对应的节点向其自身维护的Key-Value信息表的第一项中的Value值对应的节点的CIMOM转发所述附加了所述第一节点地址信息的请求消息,以及以便于接收到所述附加了所述第一节点地址信息的请求消息的各节点向其自身维护的Key-Value信息表的第一项中的Value值对应的节点的CIMOM转发所述附加了所述第一节点地址信息的请求消息,直至接收到上述附加了第一节点地址信息的请求消息的节点自身维护的Key-Value信息表中的第一项中的Value值对应节点是第一节点。When the CIMOM agent judges that the request message is to inquire about the resources of the CIMOM of all nodes, the DHT agent is specifically used to: include the first item in the Key-Value information table of the first node in the distributed hash table network The value of the value is used as the position information query result so that the CIMOM agent forwards the received request message to the CIMOM of the node corresponding to the position information query result and appends the first node address information in the request message; The node corresponding to the Value value in one item forwards the request message appended with the address information of the first node to the CIMOM of the node corresponding to the Value value in the first item of the Key-Value information table maintained by itself, and so that Each node that receives the request message appended with the first node address information forwards the appended The request message for the address information of the first node, until receiving the above request message appended with the address information of the first node, the node corresponding to the Value value in the first item in the Key-Value information table maintained by the node itself is the first node.
CN201110205057.1A 2011-07-21 2011-07-21 A kind of method and apparatus obtaining CIM resource Active CN102891763B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110205057.1A CN102891763B (en) 2011-07-21 2011-07-21 A kind of method and apparatus obtaining CIM resource
PCT/CN2012/073543 WO2012167660A1 (en) 2011-07-21 2012-04-05 Method and apparatus for obtaining cim resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110205057.1A CN102891763B (en) 2011-07-21 2011-07-21 A kind of method and apparatus obtaining CIM resource

Publications (2)

Publication Number Publication Date
CN102891763A true CN102891763A (en) 2013-01-23
CN102891763B CN102891763B (en) 2016-03-09

Family

ID=47295456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110205057.1A Active CN102891763B (en) 2011-07-21 2011-07-21 A kind of method and apparatus obtaining CIM resource

Country Status (2)

Country Link
CN (1) CN102891763B (en)
WO (1) WO2012167660A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239428A (en) * 2014-08-26 2014-12-24 国家电网公司 IEC61970 (international electrotechnical commission 61970) CIM (common information model) data query access method
CN109446103A (en) * 2018-11-14 2019-03-08 郑州云海信息技术有限公司 A kind of CIM Provider test method and device
WO2019137439A1 (en) * 2018-01-10 2019-07-18 中兴通讯股份有限公司 Method for managing distributed hash table network, network node, management node, and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523817A (en) * 2003-02-20 2004-08-25 �Ҵ���˾ Method and system for managing devices in a network
CN1921413A (en) * 2005-08-25 2007-02-28 国际商业机器公司 Method and system for unified support of multiple system management information models in a multiple host environment
CN101917452A (en) * 2008-09-29 2010-12-15 英特尔公司 Platform discovery in a pre-boot environment using web services
CN101989923A (en) * 2009-07-31 2011-03-23 国际商业机器公司 Method and system for registering computer integrated manufacturing (CIM) agency to management agency and management system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523817A (en) * 2003-02-20 2004-08-25 �Ҵ���˾ Method and system for managing devices in a network
CN1921413A (en) * 2005-08-25 2007-02-28 国际商业机器公司 Method and system for unified support of multiple system management information models in a multiple host environment
CN101917452A (en) * 2008-09-29 2010-12-15 英特尔公司 Platform discovery in a pre-boot environment using web services
CN101989923A (en) * 2009-07-31 2011-03-23 国际商业机器公司 Method and system for registering computer integrated manufacturing (CIM) agency to management agency and management system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239428A (en) * 2014-08-26 2014-12-24 国家电网公司 IEC61970 (international electrotechnical commission 61970) CIM (common information model) data query access method
WO2019137439A1 (en) * 2018-01-10 2019-07-18 中兴通讯股份有限公司 Method for managing distributed hash table network, network node, management node, and system
CN109446103A (en) * 2018-11-14 2019-03-08 郑州云海信息技术有限公司 A kind of CIM Provider test method and device

Also Published As

Publication number Publication date
CN102891763B (en) 2016-03-09
WO2012167660A1 (en) 2012-12-13

Similar Documents

Publication Publication Date Title
EP1643730B1 (en) Organizing resources into collections to facilitate more efficient and reliable resource access
EP1542409A1 (en) Protocol for multi-hop ad-hoc networks
CN110138606B (en) Container network configuration method and system
KR20170118815A (en) Message Bus Service Directory
JP5847185B2 (en) Content sharing method and apparatus using group change information in content-centric network environment
RU2483455C2 (en) Methods and apparatus for detecting peer-to-peer overlay networks
EP2151095B1 (en) Method and apparatus for discovering universal plug and play device using resource information
WO2009111965A1 (en) Method, device and system of data synchronization
US20140089383A1 (en) Method and system for automatic detecting and resolving apis
US20210303366A1 (en) Cloud-native proxy gateway to cloud resources
KR20190002674A (en) Resource subscription method, resource subscription device, and resource subscription system
JP2009296128A (en) Information processor, control method for information processor, and computer program
CN111352716A (en) Task request method, device and system based on big data and storage medium
CN101345657B (en) Method and system for cluster management of multiple network elements based on simple network management protocol
US9021013B2 (en) Ubiquitous web service gateway and method
US20090165011A1 (en) Resource management method, information processing system, information processing apparatus, and program
KR20110063328A (en) Remote Frazier Load (RCPC) Bind Service with Physical Interface Query and Selection
CN102891763A (en) Method and device for acquiring CIM (Common Information Model) resource
CN116389599A (en) Gateway service request processing method and device and cloud native gateway system management method and device
CN102118274A (en) State monitoring method, device and system
CN111600929A (en) Transmission line detection method, route strategy generation method and proxy server
CN113791733B (en) Information storage method, device, equipment and storage medium
Wang et al. Peer-Serv: A framework of Web services in peer-to-peer environment
CN114025005B (en) Data communication method, system, electronic equipment and storage medium
JP2006171917A (en) Protocol for radio multi-hop ad hoc network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant