WO2012167660A1 - Procédé et appareil pour obtenir des ressources cim - Google Patents

Procédé et appareil pour obtenir des ressources cim Download PDF

Info

Publication number
WO2012167660A1
WO2012167660A1 PCT/CN2012/073543 CN2012073543W WO2012167660A1 WO 2012167660 A1 WO2012167660 A1 WO 2012167660A1 CN 2012073543 W CN2012073543 W CN 2012073543W WO 2012167660 A1 WO2012167660 A1 WO 2012167660A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
value
cimom
request message
key
Prior art date
Application number
PCT/CN2012/073543
Other languages
English (en)
Chinese (zh)
Inventor
李永安
刘生俊
刘战杰
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2012167660A1 publication Critical patent/WO2012167660A1/fr

Links

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

Definitions

  • the present invention relates to communication networks, and in particular, to a method and apparatus for acquiring CIM resources. Background technique
  • the Di s tr iaded Management Task Force defines a set of specifications and frameworks to standardize the interface between management applications and various managed elements (MEs), existing general information.
  • the Common Inf or Moderation Mode (CIM) system includes a CIM client, a CIM Object Manager (CIM0M), a CIM Provider plugin (CIM Provider), and a managed network element, where the CIM client is CIM0M.
  • the CIM client obtains model and instance data, subscriptions, and receive events for each ME from the CIM0M through a standard interface.
  • CIM0M is the core of the entire CIM system architecture.
  • the CIM provider plug-in is an adaptation module between the CIM0M and the ME. It is integrated into the CIM0M by means of a plug-in.
  • the ME is used to obtain the instance data and events of the ME and report it to CIM0M.
  • the information model of the managed network element is described by the M0F ( Managed Object Forma t ) format defined in the CIM Infras gagture specification (DMIF Specification Document DSP0004, CIM Infras truncation Spec I ica t ion ).
  • CIM-XML Co ⁇ on Inf ormatometric Model - Extensible Markup Language, described in DMTF specification document DSP0200
  • WS-Management Web Services for Management, in DMTF specification.
  • Document DSP0226 SM CLP (Server Management Command Line l) Protocol Spec if i cat ion, described in the DMTF specification document DSP0214).
  • the programming interface between the two is mainly CSR-XML JSR48 (Java Spec if ication Reques t 48, The Java TM API for Web Based Enterpr i se Management).
  • the technical problem to be solved by the present invention is to provide a method and apparatus for acquiring CIM resources.
  • the present invention provides a method of obtaining a common information model CIM resource, the method comprising:
  • the first node receives the request message for querying the CIM resource sent by the CIM client;
  • the first node extracts the keyword content in the request message, and determines, according to the keyword content, that the request message is a resource for querying a single general information model object manager CIM0M or a CIM0M resource for querying all nodes.
  • step a If the resource of a single CIM0M is queried, step a is performed. If the resources of the CIM0M of all nodes are queried, step b is performed.
  • the first node searches for the location information of the destination CIMOM according to the keyword content, and forwards the request message to the destination CIM0M according to the found location information, and receives the destination.
  • a response message returned by the CIMOM, and forwarding the response message to the CIM client b, the first node searching for location information of all nodes, and forwarding the request message to all nodes according to the found location information
  • the CIMOM receives a response message returned by the CIMOM of all the nodes, and forwards the response message to the CIM client.
  • the method further includes: the first node performing a hash operation on the IP address of the first node to generate a Va lue value;
  • the service location protocol discovers all CIMOMs on the first node; acquires a universal resource identifier URI or a uniform resource locator URL of all CIMOMs on the first node, and hashes the URI or URL to obtain a Key value.
  • the step a includes: the first node performs a hash operation on the URI or the URL in the keyword content in the request message to obtain a Key value; the first node according to the Key value and the The Key-Va lue information table in the distributed hash table network searches for a corresponding Va lue value; the first node forwards the request message to a destination CIMOM corresponding to the Va lue value; The response message returned by the destination CIMOM forwards the received response message to the CIM client.
  • the step b includes: the first node uses a Va lue value in a first item of the Key-Va lue information table of the first node in the distributed hash table network as a location information query result; The first node forwards the request message to the CIMOM of the node corresponding to the location information query result; the first node compares the location information query result to the first item in the Key-Va lue information table maintained by the node itself The Va lue value is used as the location information query result, and then the request message forwarding step is repeated until the first node receives the location information query result corresponding to the Va lue value in the first item of the Key-Va lue information table maintained by the node itself.
  • the node is the first node; the first node receives a response message returned by the CIMOM of all the nodes, and forwards the received response message to the CIM client.
  • the step b includes: the first node in a distributed hash table network
  • the Va lue value in the first item of the Key-Va lue information table of the first node is used as a location information query result; the first node forwards the received request message to the CIM0M of the node corresponding to the location information query result.
  • the CIM0M of the node corresponding to the lue value forwards the request message to which the first node address information is attached, and the nodes that receive the request message to which the first node address information is attached are maintained to themselves
  • the CIM0M of the node corresponding to the Va1 ue value in the first item of the Key-Va lue information table forwards the request message to which the first node address information is attached until the above-mentioned first node address information is attached.
  • the Va lue value corresponding node in the first item in the Key-Va lue information table maintained by the node of the request message is the first node; the first node receives the CIM0M of all the nodes according to the attached A node address information response message returned, it forwards the received response message to the C IM client.
  • step b further includes: generating a new message identifier according to the message identifier of the request message, the address and port information of the CIM client, to identify a client that initiates the request message.
  • the CIM0M that forwards the request message to all the nodes according to the found location information specifically includes: querying, according to the message identifier in the request message, whether the new message identifier table of the first node includes the message identifier Corresponding new message identifier; if not, forwarding the request message to the CIM0M of the first node, and saving the new message identifier corresponding to the message identifier in the new message identifier table of the first node; otherwise, The request message is not forwarded to the CIM0M of the first node.
  • the present invention provides an apparatus for obtaining a common information model CIM resource, the apparatus comprising:
  • the CIM0M proxy is configured to receive a request message for querying the CIM resource sent by the CIM client to the first node, extract the keyword content in the request message, and determine, according to the keyword content, that the request message is a query for a single universal information model.
  • the resource of the object manager CIM0M is also the resource of the CIM0M of all nodes;
  • a DHT proxy configured to: when the CIMMOM agent determines that the request message is a resource for querying a single CIM0M, search for location information of the destination CIM0M according to the keyword content; or when the CIMMOM agent determines that the request message is to query all nodes CIM0M Find the location information of all nodes when the resource is used;
  • the CIM0M proxy is further configured to forward the request message to the CIM0M corresponding to the location information according to the location information searched by the DHT proxy, receive a response message returned by the CIM0M corresponding to the location information, and forward the received response message to the The C IM client.
  • the DHT proxy is further configured to perform a hash operation on the first node IP address to generate a Va lue value, and discover all CIM0Ms on the first node according to a service location protocol, and obtain all the first nodes.
  • CIM0M's Universal Resource Identifier URI or Uniform Resource Locator URL hashing the URI or URL to get the Key value to generate the CIM0M Key-Va lue information table, and publishing the generated Key-Va lue information table to The distributed hash table network.
  • the determining, by the DHT agent, the location information of the destination CIM0M according to the keyword content includes: performing a hash operation on the URI/URL in the keyword content to obtain a Key value; and according to the Key value and the distribution
  • the Key-Va lue information table in the hash table network looks up the corresponding Va lue value.
  • the CIM0M proxy is further configured to generate a new message identifier according to the message identifier of the request message, the address and port information of the CIM client, to identify a client that initiates the request message.
  • the CIM0M agent forwarding the request message to the CIM0M of all the nodes according to the location information found by the DHT proxy specifically includes: according to the message identifier in the request message Querying whether the new message identifier table of the first node includes a new message identifier corresponding to the message identifier; if not, forwarding a request message to the CIMOM of the first node and identifying a new message identifier corresponding to the message identifier And saving in the new message identifier table of the first node; otherwise, the request message is not forwarded to the CIMOM of the first node.
  • the DHT proxy is specifically configured to: use a Key-Va lue information table of the first node in the distributed hash table network The Value value in the first item is used as the location information query result, so that the CIMOM agent forwards the request message to the CIMOM of the corresponding node of the location information query result, and then the location information query result corresponds to the Key-Va lue information maintained by the node itself.
  • the Va lue value in the first item of the table is used as the location information query result, so that the CIMOM agent repeats the above request message forwarding step until the DHT agent receives the Key-Va lue information maintained by the node corresponding to the location information query result.
  • the node corresponding to the Va lue value in the first item of the table is the first node; or
  • the DHT agent is specifically configured to: use the first item of the Key-Va lue information table of the first node in the distributed hash table network
  • the Va lue value is used as a result of the location information query so that the CIMOM agent 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;
  • the node corresponding to the Va lue value in the first item forwards the CIMOM of the node corresponding to the Va lue value in the first item of the Key-Va lue information table maintained by itself to the node to which the first node address information is attached.
  • the C IM0M forwards the request message to which the first node address information is attached, until the node that receives the request message to which the first node address information is attached is maintained by itself
  • the first item in the Key-Va lue information table corresponding to the value Va lue node is the first node.
  • the method and apparatus of the present invention have the following beneficial effects:
  • the CIMOM agent and the DHT agent enable the CIM client to obtain CIM resource information of a single CIMOM or CIMOM of all nodes in the network at any node, thereby realizing the acquisition of CIM resources in a large-scale, distributed multi-host environment.
  • FIG. 1 is a schematic diagram showing the relationship between a device for acquiring CIM resources and a CIM client and a CIM object manager according to an embodiment of the present invention.
  • FIG. 1 is a schematic diagram showing a process of discovering CIMOM on a node and publishing a information table according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart diagram of a method for acquiring CIM resources according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an apparatus for acquiring CIM resources according to an embodiment of the present invention. detailed description
  • FIG. 1 a schematic diagram of a relationship between a device for acquiring CIM resources and a CIM client and a CIM object manager according to an embodiment of the present invention is illustrated.
  • the CIM client can obtain the resources of the CIM object manager CIMOM through the device that obtains the CIM resource.
  • CIMOM runs on acquiring CIM resources.
  • a device that acquires C IM resources can run one C IM0M or multiple CIM0Ms.
  • the device for obtaining the C IM resource may be any node running CIM0M, where the node may be a host or a virtual machine.
  • the CIM0M agent, the DHT agent, and the CIM0M agent that perform the function of acquiring CIM resources of the node may be performed by the processor of the host. Even though the device that acquires the CIM resource can be a virtual machine, the virtual machine is still a virtual machine running on the computer processor, so the CIM0M agent, the DHT agent, and the CIM0M agent still run in the processor of the computer.
  • the method for obtaining CIM resources provided in the embodiments of the present invention is implemented by using any node in a distributed network.
  • the method can be implemented by a software form on a node or a combination of software and hardware.
  • a node that receives a request message for querying a C IM resource sent by a CIM client is referred to as a first node, so as to distinguish from other nodes that receive a request message forwarded by the first node, where the first node may be distributed.
  • Any node within the network cannot be construed as a restrictive explanation.
  • the device may also include the first device that obtains the CIM resource on the first node.
  • FIG. 2 a schematic diagram of a CIM0M discovery and information table publishing process on a node according to an embodiment of the present invention is illustrated, which may specifically include:
  • S200 Perform a hash operation on the first node IP address to generate a Va lue value.
  • the IP address of the first node is hashed to generate a Va lue value of the Key-Va lue information table of the CIM0M on the node.
  • one or more CIM0Ms may be running on one node, and each C IM0M on the same node is not associated with each other.
  • the device that obtains the CIM resource by the node can discover all the CIM0Ms running on the same node according to the Servicing Protocol (SLP).
  • SLP Serviced Generation Protocol
  • the first node address needs to be added Entering a multicast address, that is, maintaining a multicast group having only the first node address, and then the first node, that is, the device acquiring the CIM resource, sends an SLP multicast request to the CIM0M in the multicast address; receiving the SLP multicast request
  • the CIM0M returns its own CIM resource information in a unicast manner to the device of the first node that acquires the CIM resource.
  • the method may be implemented by adding a Directory Retrieval Agent module on the first node. Specifically, all CIM0Ms on the first node register their own CIM resource information with the directory proxy module on the node.
  • S204 Obtain a URI or a URL of all the CIM0Ms on the first node, perform a hash operation on the URI or the URL to obtain a Key value, and generate a Key-Va lue information table of the CIM0M.
  • the first node obtains the URI or URL in the CIM resource information returned by each CIM0M through the unicast form, and hashes the obtained URI or URL.
  • the operation obtains a Key value to generate a Key-Va lue information table for each CIM0M.
  • the CIM0M discovery is implemented by using the directory proxy module, the first node obtains the URI or URL of each CIM0M from the directory proxy module on the node, and hashes the obtained URI or URL to generate a Key value to generate a Key of each CIM0M. -Va lue information sheet.
  • the first node sends the generated Key-Va lue information table of each CIM0M to the DHT network corresponding to the CIM0M according to the DHT algorithm known to those skilled in the art, where the DHT network corresponding to the CIM0M is existing.
  • Distributed network The issuance of the Key-Va lue information table refers to storing the Key-Va lue information table in a distributed manner on multiple nodes according to the DHT algorithm, and each node is responsible for storing a part of the Key-Va lue information table, thereby realizing the entire DHT network. Addressing and storage.
  • Each node periodically runs a detection algorithm corresponding to each of the DHT algorithms to detect a CIM0M on a newly joined node or a CIM0M on an exit or a failed node, thereby updating the Key-Va lue information table of each node itself.
  • the DHT algorithm includes, but is not limited to, Chord, CAN, Tapes try and Pas try algorithms.
  • FIG. 6 a flow chart of a method for acquiring CIM resources according to an embodiment of the present invention is illustrated. The method includes the steps of:
  • the first node receives the request message for querying the CIM resource sent by the CIM client.
  • the first node may be any node in the distributed network, and the device that obtains the CIM resource may be in the distributed network. Any one node. Any node in the implementation of the present invention can acquire CIM resources.
  • the first node After being started on the first node, the first node can perform step 400 and subsequent steps of acquiring CIM resources.
  • the request message for querying the CIM resource sent by the CIM client that is, the request message for inquiring the CIM resource on the CIM0M or the CIM resource on the CIM0M of all the nodes initiated by the CIM client, the request message for querying the CIM resource is simply referred to as the request.
  • the format of the message can be in the standard format of the Windows Management System (Windows Management Specification) or the WBEM (Web-Based Enterprise Management) standard format.
  • the request message includes a message header and a message body, wherein the message body includes a key content identifying the request resource, a URI or URL information for identifying a single CIM0M, or an identifier of the CIM0M of all nodes.
  • the host address is Al lHos tPath to identify the CIM0M of all nodes; in addition, the host address is null (Nul l ) to identify the CIM0M of all nodes. If the CIM resource on a single CIM0M is queried, the keyword content includes a URI or URL information that identifies a single CIM0M. If the CIM resource on the CIM0M of all nodes is queried, the keyword content includes all nodes. The identifier of the CIM0M, ie Al lHos tPath or Nul l.
  • the first node extracts the keyword content in the request message, and determines, according to the keyword content, whether the request message is a resource of a single CIM0M or a resource of a CIM0M of all nodes, and if a resource of a single CIM0M is queried, Step S404, if the resources of all nodes CIM0M are queried, step S406 is performed;
  • the device that acquires the CIM resource of the first node extracts the keyword content of the message body in the request message, and determines that the request message is a single query according to the keyword content.
  • the CIM0M resource is also a resource for querying CIM0M of all nodes, if the keyword content is included If the URI or the URL information of the single CIMOM is identified, it is determined to query the resources of the single CIMOM, and step S404 is performed. If the keyword content includes the identifier of the CIMOM that identifies all the nodes, it is determined to query the CIMOM of all the nodes. The resource is executed in step S406.
  • the first node searches for 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 response message. Forwarded to the CIM client;
  • the step S404 performed by the first node may specifically include:
  • the distributed hash table search algorithm well known to those skilled in the art may be used to improve the search efficiency, and is not limited to the embodiment of the present invention.
  • the found Va lue value corresponds to the location information of the node where the CIM0M of the request message is requested in the request message, and the Va lue value generation process can be used to determine the IP address of the node by using the Va lue value. address.
  • the destination CIM0M After forwarding the request message to the destination CIM0M corresponding to the Va lue value, receiving the response message to the request message returned by the destination CIM0M, and then forwarding the received response message to the CIM client, that is, the CIM client that initiates the request message End, wherein the response message includes CIM resource information in the request message requesting the query.
  • the first node searches for location information of all the nodes, forwards the request message to the CIM0M of all nodes according to the found location information, receives a response message returned by the CIM0M of all the nodes, and forwards the response message to The CIM client.
  • the keyword content of the request message includes an identifier
  • the identifier of the CIMOM of the node, Al lHos tPath or Nul l requests the message request to query the CIM resources on the CIMOM of all nodes.
  • the table may include the Key-Va lue information table of the same CIMOM. To avoid forwarding the request message to the corresponding CIMOM in the Key-Va lue information table of all nodes, some CIMOMs will receive the same request message multiple times, and each node Key- The first item Va lue value in the Va lue information table is usually not repeated.
  • the present invention avoids the above problem by forwarding the request message only to the CIMOM corresponding node of the Value value in the first item of the node Key-Va lue information table.
  • Two embodiments are provided in the embodiments of the present invention.
  • the first embodiment can be processed as follows:
  • the Va lue value in the first item of the Key-Va lue information table of the first node in the DHT network is used as the location information query result;
  • the first node that receives the request message (referred to as "N1" node for convenience of description, is merely for convenience of description, and may be represented by any other symbol, and should not be construed as a restrictive explanation.)
  • the Va lue value in the first item of the Key-Va lue information table of the N1 node (the Key-Va lue information table may include the CIM0M of one node or the Key-Va lue information of the CIM0M of one or more nodes) as the request message Purpose CIM0M location information query result, and then query the location corresponding node to the location information (ie, the next section in the N1 node Key-Va lue information table)
  • the CIMOM forwarding request message which is referred to as the "N2" node, is: N1->N2, and obtains the location information query result returned by N2, that is, in the first item of the Key-Va lue information table maintained by the N
  • the first node uses the Va lue value in the first item of the Key-Va lue information table maintained by the N2 node as the location information query result of the destination CIMOM of the request message, and the first in the N2 node Key-Va lue information table.
  • the Va lue value in the entry corresponds to the CIMOM forwarding request message of the node (referred to as the "N3" node), namely: N1->N3.
  • the first node continually uses the Va lue value in the first item in the Key-Va lue information table of the node that received the request message as the location information query result until the Key-Va lue of the node that received the request message
  • the Va lue value corresponding node in the first item in the information table is the initial node N1 that receives the CIM client request message. It should be noted that, in the request message forwarding process, after the location information Va lue value is learned, a person skilled in the art may use a known technical means to forward the request message to the CIM0M on the corresponding node of the Va lue value.
  • the device for acquiring the CIM resource of the first node receives the response message returned by each CIM0M that has received the request message, and then forwards the received response message to the CIM client that initiated the request, where the response message includes the request message requesting the query. CIM resource information. It should be noted that, in the process of forwarding the received response message to the CIM client that initiated the request, the device that obtains the CIM resource may forward the returned response message to the initiation request after receiving the response message returned by the CIM0M.
  • the CIM client can also package all CIM0M response messages on the same node into a response message and forward it to the requesting request after receiving all the response messages returned by all CIM0Ms on the same node (more than one CIM0M can be included on one node). CIM client.
  • the first node uses the Va lue value in the first item of the Key-Va lue information table of the first node in the distributed hash table network as the location information query result;
  • the first node forwards the received request message to the CIM0M of the corresponding node of the location information query result, and adds the first node address information to the request message;
  • the Va lue value in the first item corresponds to the Key-Va lue information table maintained by the node to itself.
  • the Va lue value in the first item corresponds to the CIMOM of the node forwarding the request message to which the first node address information is attached;
  • Each node that receives the request message to which the first node address information is attached forwards the first node address to the CIMOM of the corresponding node of the Va lue value in the first item of the Key-Va lue information table maintained by itself a request message of information, until the Va lue value corresponding node in the first item in the Key-Va lue information table maintained by the node itself that receives the request message to which the first node address information is attached is the first node;
  • the first node receives the response message returned by the CIMOM of all the nodes according to the additional first node address information, and forwards the received response message to the C IM client.
  • the Va lue value in the first item of the Key-Va lue information table of the first node (referred to as a "K1" node for convenience of description) in the DHT network (where the Key-Va of the first node)
  • the Va lue value in the first item of the lue information table is the result of the location information query.
  • the corresponding node (referred to as the "K2" node) forwards the request message to which the K1 node address information is attached, that is, K1->K2, then ⁇ 2
  • the device for acquiring the CIM resource of the node forwards the request message to which the K1 node address information is attached to the Va lue value corresponding node (referred to as "K3, node") in the first item of the Key-Va lue information table maintained by the node 2 itself.
  • the Va in the first item of the Key-Va ue information table maintained by the device that acquires the C ⁇ resource on each node of the request message to which the K1 node address information is attached is received
  • the CIM0M corresponding to the node of the lue value forwards the request message to which the K1 node address information is attached, until the Va lue value corresponding node in the first item in the Key-Va lue information table of the node to which the K1 node address information is attached is received. Is the K1 node.
  • the CIM0M of the request message may return the response message to the device for acquiring the CIM resource of the first node according to the node address information attached to the request message, and the device that obtains the CIM resource of the first node receives the response message returned by each CIM0M, and may After receiving the response message, the received response message is forwarded to the CIM client that initiated the request, and may also receive all the response messages of all CIM0Ms (which may include more than one CIM0M on the same node) on the same node. All response messages are packaged as a response message forwarded to the CIM client that initiated the request.
  • the CIM0M forwarding request message of all Va lue value corresponding nodes in the Key-Va lue information table of all nodes may be generated by generating a new node identifier. Avoid some CIM0Ms receiving the same request message multiple times during the process.
  • the same may exist in the Key-Va lue information table of different nodes.
  • the Key-Va lue information table of CIM0M in other words, the Key-Va lue information table of the same CIM0M can be stored in the Key-Va lue information table of multiple nodes.
  • the same CIM0M is saved because the Key-Va lue information of the same CIM0M is stored in the Key-Va lue information table of the multiple nodes.
  • the request message forwarded by each of the plurality of nodes is received.
  • the first node generates a new message identifier NewMes sagelD to identify the client that initiated the request message by identifying the Mes sagelD according to the message of the request message, the address and port information of the CIM client that initiated the request message, and then the Mes The sagelD and NewMes sagelD are stored in the first node's Mes sagelD and NewMes sagelD correspondence tables, namely the new message identification table, Mes sagelD and NewMes sagelD - in the table, and replace the message identifier in the request message with NewMes sagelD.
  • the CIM0M of the first node In the process of forwarding the request message to the CIM0M of all the nodes, querying, according to the message identifier in the request message, whether the new message identifier table of the first node includes a new message identifier corresponding to the message identifier, and if not, The CIM0M of the first node forwards the request message, and saves the new message identifier corresponding to the message identifier to the new message identifier table of the first node. Otherwise, the request message is not forwarded to the CIM0M of the first node. After determining, by the first node, whether the CIM0M forwarding request message on the first node is processed, the first node forwards the request message to the corresponding CIM0M of the Key-Va lue information table of the first node.
  • the generation and judgment of the foregoing new message identifiers are applicable to all nodes, and are not limited to the first node that receives the CIM client request message, or may be other nodes that receive the request message forwarded by the first node.
  • the manner in which the CIM client is identified by using the above new message identifier is to forward the request message to all the Va lue values of the information table of all nodes corresponding to the CIM0M of the node.
  • the first node address information of the CIM client request message may be additionally received in the request message, so that the CIM0M of each node that receives the request message may respond according to the additional first node address information. The message is returned.
  • the device that acquires the CIM resource of the first node identifies the received message as a response message of NewMes sagelD
  • the message identifier in the response message is replaced with Mes sagelD and forwarded to the CIM client that initiates the request message.
  • the new message identifier NewMes sagelD may be generated according to the message identifier Mes sagelD in the message body of the request message, and the address and port information of the CIM client that initiates the request message to identify the client that initiated the request message.
  • the new message identifier NewMes sagelD may be generated by using the message identifier Mes sageID in the message body of the request message, the address of the CIM client that initiates the request message, and the port information to identify the client that initiates the request message.
  • the apparatus 400 for acquiring a CIM resource may be a first node that runs the CIM0M, and specifically includes:
  • the CIM0M proxy 502 is configured to receive a request message for querying a CIM resource sent by the CIM client to the first node, extract a keyword content in the request message, and determine, according to the keyword content, that the request message is a query for a single general information.
  • the resource of the model object manager CIM0M is also the resource of the C IM0M of all nodes;
  • the DHT proxy 504 is configured to: when the CIMM0M agent determines that the request message is a resource for querying a single CIM0M, search for location information of the target CIM0M according to the keyword content; or when the CIMM0M agent determines that the request message is to query all nodes. When looking for resources of C IM0M, find all Location information of the node;
  • the CIMOM proxy 502 is further configured to forward the request message to the CIM0M corresponding to the location information according to the location information searched by the DHT proxy, receive the response message returned by the CIM0M corresponding to the location information, and forward the received response message. To the CIM client.
  • the CIMOM Agent receives the request message for querying the CIM resource sent by the CIM client, parses the request message to extract the keyword content in the message body, and determines the request according to the extracted keyword content.
  • the message is to query CIM resources on a single CIM0M or to query CIM resources on CIM0M of all nodes.
  • the keyword content includes a URI or a URL or an identifier that identifies all CIM0Ms.
  • the identifiers of all CIM0Ms are Al lHos tPath or Nul l.
  • the request message is a CIM resource on a single CIM0M. If the content of the keyword is Al lHos tPath or Nul l , the request message is a CIM resource on all CIM0Ms.
  • the DHT agent provided by the present invention can be used not only to implement the above-mentioned search function, but also to implement the discovery of the CIM0M on the node and the release of the information table.
  • the DHT network is a network formed by hashing the URI or URL of the CIM0M to generate a Key value and an IP address of a node where the CIM0M is located, and generating a Key-Va lue information table by generating a Va lue.
  • multiple CIM0Ms may be running on one node.
  • One or more CIM0Ms may be running on a node, where there is no correlation between CIMOMs on the same node.
  • a device that acquires a CIM resource can discover all the same nodes running according to the service location protocol.
  • the first node address needs to be added to the multicast Address, that is, maintaining a multicast group having only the first node address, and then the first node, that is, the device acquiring the CIM resource, sends an SLP multicast request to the CIMOM in the multicast address; the CIMOM receiving the SLP multicast request will The CIM resource information of the CIM is returned to the DHT proxy of the first node in a unicast manner; the DHT proxy obtains the URI or URL of each CIMOM, performs a hash operation on the URI or the URL to obtain a Key value, and generates a Key-Va lue corresponding to the CIMOM.
  • the information table is then distributed to the DHT network according to the DHT algorithm, and the CIM resource information on the CIMOM uniquely identified by the Key value is stored in a plurality of nodes according to the DHT algorithm.
  • Each node is responsible for storing a small number of Key-Va lue information tables, thereby realizing addressing and storage of the entire DHT network, and the DHT agents on each node periodically run the respective detection algorithms corresponding to the DHT algorithms to detect new ones.
  • the discovery of all CIM0M resource information running on the same node may be implemented by adding a directory proxy module to the node, in addition to being implemented in the above multicast manner. Specifically, all CIM0Ms running on the first node register their own CIM resource information with the directory proxy module, and then the DHT proxy extracts the CIM0M registered resource information from the directory proxy module, and obtains the CIM0M URI or the extracted resource information. The URL, the obtained URI or URL is hashed to obtain a Key value, and then a Key-Va lue information table of CIM0M is generated, and then the generated Key-Va lue information table is published to the DHT network. It should be noted that although the first node is taken as an example in the embodiment, all the CIM0Ms running on the node can be found on all nodes in the above manner.
  • the DHT proxy searches for the location information of the destination CIM0M according to the URI or the URL in the keyword content, and specifically includes: a URI or a URL in the keyword content. Performing a hash operation to obtain a Key value; searching for a corresponding Va lue value according to the Key value and a Key-Va lue information table in the DHT network, where the Va lue value is a location information of a destination CIM0M requesting a query in the request message.
  • the CIMOM proxy forwards the request message to the destination CIMOM corresponding to the Va lue value, receives the response message returned by the destination CIMOM, and forwards the received response message to the CIM client that initiated the request message.
  • the DHT agent searches for location information of all nodes in the DHT network, and the CIMOM agent forwards the request message according to the location information searched by the DHT proxy, receives the returned response message, and forwards the received response message to the originating message.
  • the requested CIM client If the resources of all nodes CIMOM are queried, the DHT agent searches for location information of all nodes in the DHT network, and the CIMOM agent forwards the request message according to the location information searched by the DHT proxy, receives the returned response message, and forwards the received response message to the originating message.
  • the requested CIM client is the resources of all nodes CIMOM.
  • the table may include the Key-Va lue information table of the same CIMOM.
  • some CIM0Ms may receive the same request message multiple times, and each node Key- The first item Va lue value in the Va lue information table is usually not repeated.
  • the present invention avoids the above problem by forwarding the request message only to the CIM0M corresponding to the value of the node in the first item of the node Key-Va lue information table. Two embodiments are provided in the embodiments of the present invention.
  • the first embodiment may include the steps: the DHT proxy of the first node uses the Va lue value in the first item of the Key-Va lue information table of the first node in the distributed hash table network as the location information query result so that The CIM0M proxy of the first node forwards the request message to the CIM0M of the node corresponding to the location information query result, and the DHT proxy of the first node further compares the location information query result to the Key-Va lue information table maintained by the node itself.
  • the Va lue value in one item is used as the location information query result, so that the CIM0M agent of the first node repeats the foregoing request message forwarding step (that is, the forwarding step of forwarding the request message to the CIM0M corresponding to the location information query result node), until the The node corresponding to the Va lue value in the first item of the Key-Va lue information table maintained by the node corresponding to the location information query result is the first node.
  • the second embodiment may include the following steps: the DHT proxy of the first node uses the Va lue value in the first item of the Key-Va lue information table of the first node in the distributed hash table network as the location information query result.
  • a node's CIM0M agent queries the node corresponding to the location information query result
  • the CIMOM forwards the received request message and appends the first node address information to the request message; to facilitate the node corresponding to the Va lue value in the first item to maintain the Key-Va lue information table of itself
  • the CIM0M of the node corresponding to the Va lue value in the first item forwards the request message to which the first node address information is attached, and in order to receive the request message to which the first node address information is attached
  • the node forwards the request message to which the first node address information is attached to the CIM0M of the node corresponding to the Va lue value in the first item of the Key-
  • the lookup and forwarding process can be applied to the DHT proxy and the CIM0M proxy of any node in the distributed network.
  • the CIM0M proxy may be further configured to generate a new message identifier according to the message identifier of the request message, the address and port information of the CIM client that initiates the request message, to identify the client that initiates the request message.
  • the CIM0M agent performs a hash operation on the message identifier Mes sageID in the message body of the request message, the address and port information of the CIM client that initiates the request message, and generates a new message identifier NewMes sagelD to identify the request message.
  • the new message identifier corresponding to the message identifier is included, if not, forwarding the request message to the CIMOM of the first node, and saving the new message identifier corresponding to the message identifier to the new message identifier of the first node Table, otherwise, does not forward the request message to the CIMOM of the first node, and after all the determination processing of the CIMOM forwarding request message to the first node is completed, all Va lue values of the Key-Va lue information table of the first node are The corresponding node forwards the request message.
  • the generation and judgment of the foregoing new message identifiers are applicable to all nodes, and are not limited to the first node that receives the CIM client request message, or may be other nodes that receive the request message forwarded by the first node.
  • the CMI client request may be directly received in the request message.
  • the first node address information of the message is such that the CIM0M of each node receiving the request message can return the response message to the CIM0M agent of the first node according to the additional first node address information, and the CIM0M agent will receive the message.
  • the response message is identified as NewMes sagelD
  • the message identifier in the response message is replaced with Mes sagelD and forwarded to the CIM client that initiated the request message.
  • the CIM0M proxy in order for the CIM client to discover the service capability of the node, can perform the service capability release in two ways, namely, the CIM0M service release attribute field that defines the SLP service type and the extended DMTF template.
  • the DHT-CIMOM field is used to indicate the service capabilities of the node.
  • the method and device for acquiring the CIM resource of the present invention can be flexibly managed by the CHT0M in the network according to the DHT algorithm by any node of the distributed network, and can also be connected from any node.
  • the incoming CIM client can obtain CIM resources on a single CIMOM or all CIMOMs in a distributed network, and realizes the acquisition of CIM resources in a large-scale, distributed multi-host environment.
  • the device ie, the node for acquiring the CIM resource in the foregoing embodiment of the present invention may be a network device in the network, or may be a device such as a computer.
  • the agents of the above-mentioned embodiments of the present invention may be functional modules that are executed in the processor of the above device, and the present invention is not limited thereto.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

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

Abstract

La présente invention porte sur un procédé d'obtention de ressources de modèle d'information commun (CIM). Le procédé consiste à générer un réseau à table de hachage distribuée (DHT) d'un gestionnaire d'objet de modèle d'information commun (CIMOM) par réalisation d'un calcul de hachage sur des informations de CIMOM intra-réseau par n'importe quel nœud dans un réseau distribué, et également à fournir une procédure permettant d'obtenir les ressources CIM du CIMOM intra-réseau par un algorithme DHT. L'appareil correspondant pour obtenir les ressources CIM est également décrit par la présente invention. Par réalisation du procédé et de l'appareil selon la présente invention, les informations de ressources CIM du CIMOM intra-réseau peuvent être obtenues au niveau de n'importe quel nœud par un client CIM, et l'obtention des ressources CIM dans l'environnement multi-hôte étendu et distribué est réalisée.
PCT/CN2012/073543 2011-07-21 2012-04-05 Procédé et appareil pour obtenir des ressources cim WO2012167660A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110205057.1A CN102891763B (zh) 2011-07-21 2011-07-21 一种获取cim资源的方法和装置
CN201110205057.1 2011-07-21

Publications (1)

Publication Number Publication Date
WO2012167660A1 true WO2012167660A1 (fr) 2012-12-13

Family

ID=47295456

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/073543 WO2012167660A1 (fr) 2011-07-21 2012-04-05 Procédé et appareil pour obtenir des ressources cim

Country Status (2)

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

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239428A (zh) * 2014-08-26 2014-12-24 国家电网公司 Iec61970 cim模型数据查询访问方法
CN110022222B (zh) * 2018-01-10 2022-02-25 中兴通讯股份有限公司 一种dht网络的管理方法、网络节点、管理节点及系统
CN109446103A (zh) * 2018-11-14 2019-03-08 郑州云海信息技术有限公司 一种CIM Provider测试方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523817A (zh) * 2003-02-20 2004-08-25 �Ҵ���˾ 管理网络中的设备的方法和系统
CN1921413A (zh) * 2005-08-25 2007-02-28 国际商业机器公司 用于管理多主机环境下的公共信息模型的方法和系统
CN101917452A (zh) * 2008-09-29 2010-12-15 英特尔公司 在预引导环境下使用网络服务进行平台发现
CN101989923A (zh) * 2009-07-31 2011-03-23 国际商业机器公司 将cim代理注册到管理代理的方法和系统以及管理系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523817A (zh) * 2003-02-20 2004-08-25 �Ҵ���˾ 管理网络中的设备的方法和系统
CN1921413A (zh) * 2005-08-25 2007-02-28 国际商业机器公司 用于管理多主机环境下的公共信息模型的方法和系统
CN101917452A (zh) * 2008-09-29 2010-12-15 英特尔公司 在预引导环境下使用网络服务进行平台发现
CN101989923A (zh) * 2009-07-31 2011-03-23 国际商业机器公司 将cim代理注册到管理代理的方法和系统以及管理系统

Also Published As

Publication number Publication date
CN102891763B (zh) 2016-03-09
CN102891763A (zh) 2013-01-23

Similar Documents

Publication Publication Date Title
US7978631B1 (en) Method and apparatus for encoding and mapping of virtual addresses for clusters
RU2409846C2 (ru) Организация ресурсов в коллекции, способствующая более эффективному и надежному доступу к ресурсам
WO2019095889A1 (fr) Procédé et dispositif de découverte de nf par nrf et support d'informations lisible
US20090319686A1 (en) Communication route selecting method and apparatus
US20190222656A1 (en) Communication Method and Apparatus
US10637794B2 (en) Resource subscription method, resource subscription apparatus, and resource subscription system
WO2009111965A1 (fr) Procédé, dispositif et système de synchronisation de données
RU2483455C2 (ru) Способы и устройства для обнаружения одноранговых оверлейных сетей
TW200803303A (en) Inter-proximity communication within a rendezvous federation
CN104509073A (zh) 在软件定义的网络中发现ip多播组成员
WO2021233327A1 (fr) Procédé et appareil de traitement de message, procédé et appareil d'annonce, nœud de pont réseau, dispositif source, support de stockage et système de traitement de message
WO2009062414A1 (fr) Client intégré et procédé de communication d'une application de bureau avec une application web .net
US10148739B2 (en) M2M data querying and invoking methods, querying and invoking devices, and system
JP2011525313A (ja) マルチキャスト・グループ管理のための方法及び装置
JP2009540462A (ja) コンパイルスコープを用いたサービスの発見
CN103347087B (zh) 一种结构化p2p和uddi的服务注册与查找方法和系统
WO2013117112A1 (fr) Plate-forme d'intercommunication et d'analyse dans un réseau de capteurs, et procédé et système d'intercommunication dans un réseau de capteurs
JP2014147094A (ja) ネットワーク・ロケーション・サービス
Lv et al. Virtual resource organization and virtual network embedding across multiple domains
EP3937502A1 (fr) Procédé, appareil et dispositif pour pousser un flux vidéo, et support de stockage
WO2012167660A1 (fr) Procédé et appareil pour obtenir des ressources cim
WO2009006779A1 (fr) Procédé et système pour déterminer un nœud d'index de domicile et un nœud de service de domicile d'un utilisateur
CN103841183A (zh) 一种面向数据中心的SMI-S Provider注册请求方法
CN107046537B (zh) 一种基于DNS-SD的OCF客户端对AllJoyn服务的发现方法
WO2015003420A1 (fr) Procédé de déploiement de ressources pour environnement d'informatique en nuage

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12797182

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12797182

Country of ref document: EP

Kind code of ref document: A1