CN101860955A - Method for realizing service registry and method and device for realizing service discovery - Google Patents

Method for realizing service registry and method and device for realizing service discovery Download PDF

Info

Publication number
CN101860955A
CN101860955A CN200910129995A CN200910129995A CN101860955A CN 101860955 A CN101860955 A CN 101860955A CN 200910129995 A CN200910129995 A CN 200910129995A CN 200910129995 A CN200910129995 A CN 200910129995A CN 101860955 A CN101860955 A CN 101860955A
Authority
CN
China
Prior art keywords
management node
service
service management
strand
description information
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.)
Pending
Application number
CN200910129995A
Other languages
Chinese (zh)
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
Southeast University
Original Assignee
Huawei Technologies Co Ltd
Southeast University
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, Southeast University filed Critical Huawei Technologies Co Ltd
Priority to CN200910129995A priority Critical patent/CN101860955A/en
Publication of CN101860955A publication Critical patent/CN101860955A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method for realizing cluster service register in a personal network, comprising the following steps: a first service management node obtains service description information which needs to register to the personal network and corresponds to the first beam of Strand; if the first service management node determines that a second service management node which stores the service description information corresponding to the first Strand can not store the obtained service description information corresponding to the first Strand, the first service management node stores the obtained service description information corresponding to the first Strand into the service management node except the second service management node. The invention also provides a device for realizing cluster service register in the personal network, a method for realizing cluster service register in the personal network and a device for realizing cluster service register in the personal network.

Description

Realize the method for service registry, the method and the device of realization service discovery
Technical field
The present invention relates to personal network (PN, Personal Networks) technology, relate in particular to the method that realizes service registry among the personal network, method and the device of realizing service discovery.
Background technology
In PN, each equipment is before providing service, must will be used for describing the descriptor issue of the service that oneself provides or be registered to PN, thereby allow other equipment among the PN know that all oneself can provide this service, is called service registry with such process here.On the other hand, each equipment among the PN is before consumption service, need the equipment of consumption service must inquire the equipment that required service can be provided, PN must be at the query requests of equipment, inquire the equipment that required service can be provided fast and accurately, such process is called service discovery here.For ease of describing, the descriptor that hereinafter will be used to describe the service that personal device provides abbreviates service description information as.
In the limited geographic range in PN, adjacent one another are and be called bunch (cluster) by the network that certain network technology links to each other and all equipment of trusting is each other formed.For bunch in service registry and service because the quantity of the equipment that constitutes bunch is few, and not far from one another to each other, therefore be fit to adopt centralized method to solve.
And for bunch between service registry and the problem of service discovery, my individual adaptive universal network (MAGNET, My personal Adaptive Global NET) suggestion MAGNET suggestion is adopted based on the Distributed Services registration of autotelic naming system (INS, Intentional Naming System)/Twine and the scheme of service discovery.
MAGNET also advises, if the service description information of this Strand of correspondence of the Service Management node of corresponding certain bundle (Strand) storage is too much, so this Service Management node can adopt the service description information of new this Strand of correspondence do not receive, replacement or these three kinds of means of buffer memory handle.
The present inventor finds in realizing process of the present invention: if the Service Management node adopts the means that do not receive, the service registry failure is described so; If the Service Management node adopts the means of replacing, just can not inquire the service description information of new this Strand of correspondence so in the service discovery stage; If the Service Management node adopts the means of buffer memory, so because the capacity of staging area is limited after all, so the quantity of the service description information of temporary this Strand of correspondence also can be limited, still can't resolve the too much problem of service description information of this Strand of correspondence of storage.Like this, no matter be which kind of technical scheme, all exist the service description information registration less than the possibility among the PN.If have service description information not to be registered among the PN, in follow-up service discovery process, just can't inquire this service description information so.
Summary of the invention
The method and the device of service registry between the embodiment of the invention provides among the personal network and to realize bunch, when the service description information of certain Strand of correspondence of Service Management node storage was too much, the service description information of new this Strand of correspondence can both be registered among the PN with realization.
The method of service registry between realizing among a kind of personal network bunch, comprising: the first Service Management node obtains to be registered to the service description information of correspondence the one Strand among the personal network; If the second Service Management node of the service description information of the corresponding Strand of storage can't be stored the service description information of correspondence the one Strand of acquisition, then the service description information of first Service Management node correspondence the one Strand that will obtain stores the Service Management node except that the second Service Management node into.
The device of service registry between realizing among a kind of personal network bunch comprises: obtain the unit, be used for obtaining being registered to the service description information of personal network's correspondence the one Strand; Judging unit is used to judge whether the second Service Management node of the service description information of storing a corresponding Strand can store the service description information of correspondence the one Strand of acquisition; Memory cell, if be used for the service description information that the second Service Management node that judgment unit judges goes out the service description information of the corresponding Strand of storage can't be stored correspondence the one Strand of acquisition, the service description information of correspondence the one Strand that then will obtain stores the Service Management node except that the second Service Management node into.
The method and the device of service discovery be implemented in the service discovery process between the embodiment of the invention also provided and realizes bunch, can inquire service description information.
The method of service discovery between realizing among a kind of personal network bunch, comprising: the first Service Management node obtains the request of the service description information of the corresponding Strand of inquiry; If there is the service description information of correspondence the one Strand that is not stored in the second Service Management node, then the first Service Management node determines not to be stored in the Service Management node that the service description information of correspondence the one Strand of the second Service Management node is stored, wherein, the second Service Management node is the Service Management node of the service description information of the corresponding Strand of storage; The first Service Management node is not stored in the service description information of correspondence the one Strand of the second Service Management node from the Service Management node acquisition of determining.
The device of service discovery between realizing among a kind of personal network bunch, comprising: first obtains the unit, is used to obtain inquire about the request of the service description information of a corresponding Strand; Judging unit is used to judge whether to exist the service description information of correspondence the one Strand that is not stored in the second Service Management node; Determining unit, if be used for the service description information that judgment unit judges goes out to exist correspondence the one Strand that is not stored in the second Service Management node, the Service Management node that then definite service description information that is not stored in correspondence the one Strand of the second Service Management node is stored, wherein, the second Service Management node is the Service Management node of the service description information of the corresponding Strand of storage; Second obtains the unit, is used for not being stored in from the Service Management node acquisition that determining unit is determined the service description information of correspondence the one Strand of the second Service Management node.
Between in the personal network of the embodiment of the invention, realizing bunch in the method and device of service registry, if store the service description information that the Service Management node of a Strand can not be stored corresponding this Strand, this service description information can be stored into so in the Service Management node except that the Service Management node of this Strand of storage.In embodiments of the present invention, the service description information of a corresponding Strand all has been registered among the personal network.Simultaneously, the service description information of corresponding this Strand does not need to use other keywords just can store the Service Management node into, like this, just the situation less than the service description information of this Strand of correspondence that uses other keywords storages can not appear inquiring about in the service discovery stage.
Between in the personal network of the embodiment of the invention, realizing bunch in the method and device of service discovery, if the service description information of a corresponding Strand all is not stored in a Service Management node, this Service Management node is the Service Management node of the service description information of corresponding this Strand of storage, so at first to determine not to be stored in the Service Management node that the service description information of this Strand of correspondence of this Service Management node is stored, afterwards, obtain the service description information of corresponding this Strand from the Service Management node of determining.In fact, realize among the personal network bunch between among scheme and the personal network of service discovery between realization bunch the scheme of service registry be corresponding.Because the scheme of service registry can guarantee that all service description informations of a corresponding Strand can both be registered among the personal network between realizing among the personal network bunch, so, all service description informations that can guarantee to inquire corresponding this Strand of the scheme correspondence of service discovery between realizing among the personal network bunch.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Figure 1A is the tree schematic diagram that is used to explain a kind of resource description of the embodiment of the invention;
Figure 1B is for decomposing the schematic diagram afterwards of the tree shown in Figure 1A;
Fig. 2 be realize among a kind of personal network of the embodiment of the invention bunch between the flow chart of method of service registry;
Fig. 3 be realize among a kind of personal network of the embodiment of the invention bunch between the logical construction schematic diagram of device of service registry;
Fig. 4 be realize among the another kind of personal network of the embodiment of the invention bunch between the flow chart of method of service registry;
Fig. 5 be realize among the another kind of personal network of the embodiment of the invention bunch between the logical construction schematic diagram of device of service registry;
Fig. 6 is the logical construction schematic diagram of the first Service Management node of the embodiment of the invention;
Fig. 7 is the flow chart of first preferred embodiment of the embodiment of the invention;
Fig. 8 is the flow chart of second preferred embodiment of the embodiment of the invention;
Fig. 9 is the logical construction schematic diagram of the second Service Management node of the embodiment of the invention;
Figure 10 is the flow chart of the 3rd preferred embodiment of the embodiment of the invention;
Figure 11 is the flow chart of the 4th preferred embodiment of the embodiment of the 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 is obtained under the creative work prerequisite.
Owing to all relate to Strand among all embodiment of the present invention, so followingly at first Strand is carried out brief description.
In INS/Twine, can represent with attribute-value tree (AV-Tree) for a kind of description.
For example, suppose being described below to a kind of resource:
<res>camera
<man>Acompany</man>
<model>AModel</model>
</res>
<subject>traffic</subject>
Above-mentioned resource description has shown produces the company of video camera and the model of video camera, and above-mentioned resource description has also shown the purposes of video camera,, is used for traffic that is.
Above-mentioned resource description can be represented with the tree shown in Figure 1A.For the tree shown in Figure 1A, according to prior art, can be decomposed into a plurality of significant bundles, i.e. Strand, each Strand of decomposition can be shown in Figure 1B.
Service description information in the embodiment of the invention can be represented with AV-Tree, because AV-Tree can be broken down at least one Strand.So service description information can be broken down at least one Strand.
In actual applications, between bunch service registry and bunch between service discovery be two implementation procedures, below, the embodiment of the invention respectively to bunch between service registry and bunch between service discovery be described.
At first the method to service registry between realizing among a kind of personal network of the embodiment of the invention bunch describes.As shown in Figure 2, comprising:
S201: the first Service Management node obtains to be registered to the service description information of the correspondence first bundle Strand among the personal network;
S202: can't store the service description information of correspondence the one Strand of acquisition if the first Service Management node is determined the second Service Management node of the service description information of the corresponding Strand of storage, then the service description information of first Service Management node correspondence the one Strand that will obtain stores the Service Management node except that the second Service Management node into.
S201 can have multiple mode to realize.
For example, at the first Service Management node and the second Service Management node is under the situation of different Service Management node, the first Service Management node obtains to be registered to the service description information among the personal network, afterwards, the first Service Management node decomposites at least one Strand from described service description information.Wherein, comprise a Strand among at least one Strand, the service description information of correspondence the one Strand that the first Service Management node obtains is that personal device provides.
Again for example, at the first Service Management node and the second Service Management node is under the situation of same Service Management node, after certain Service Management node obtains to be registered to service description information among the personal network, from described service description information, decomposite a Strand, afterwards, the service description information that obtains is offered the first Service Management node, that is, the first Service Management node obtains the service description information of a Strand correspondence.
The quantity that the needs that the first Service Management node obtains are registered to the service description information of correspondence the one Strand among the personal network can be one, also can be a plurality of.
Be one and a plurality of situations at the quantity of service description information respectively below, the method for service registry between realizing among the above-mentioned personal network bunch is described.
When the quantity of the service description information of correspondence the one Strand that obtains is one:
If the first Service Management node obtains the service description information that needs are registered to correspondence the one Strand among the personal network, the second Service Management node service description information that can't store correspondence the one Strand of acquisition specifically can show as so: the residual capacity of the service description information of the corresponding Strand of second Service Management node storage is not enough to store a described service description information of acquisition.
If the residual capacity of the second Service Management node is not enough to store the service description information of correspondence the one Strand that the first Service Management node obtains, the first Service Management node can store this service description information in the Service Management node except that the second Service Management node so.For example, this service description information can be stored in the Service Management node adjacent, specifically can use principles such as geographical vicinity or the topological vicinity of P2P with the second Service Management node.Again for example, a Strand can be decomposed into a plurality of sub-Strand again, afterwards, this service description information be stored into respectively in the Service Management node corresponding with this a little Strand.Concrete, select the additional attribute set A, the value according to the additional attribute set A is subdivided into some strip Strand with Strand then, wherein, the additional attribute set A can for example, can (be used Strand with a Strand for subordinate's attribute of the leaf node of the lowermost end of first Strand mRepresent) be decomposed into following plurality of sub Strand:
Sub-Strand M, 1=(Strand m, a 1) ..., sub-Strand M, p=(Strand m, a p)
Wherein, a 1... a pIt is all elements of additional attribute set A.
For example: at the Strand among Fig. 1 (res.camera), A={man, model},
Corresponding sub-strand={res.camera.man, res.camera.model}
The implementation of hereinafter mentioning that a Strand is decomposed into a plurality of sub-Strand can be referring to top description.
After the service description information of correspondence the one Strand that the first Service Management node will obtain stores Service Management node except that second management node into, the information that the service description information of correspondence the one Strand that obtains can be stored into the Service Management node except that second management node records second management node, for example, write down this service description information and be stored in which or which Service Management node, be convenient to searching in follow-up service discovery process like this service description information.
When the quantity of the service description information of correspondence the one Strand that obtains is a plurality of:
Under this situation, the service description information that the second Service Management node can't be stored correspondence the one Strand of acquisition specifically can show as: the residual capacity of the service description information of the corresponding Strand of second Service Management node storage is not enough to store the whole service description informations in described at least two service description informations of acquisition.The Service Management node that the service description information of correspondence the one Strand that the first Service Management node will obtain stores into except that the second Service Management node specifically can show as: the service description information that surpasses the second Service Management node residual capacity in the service description information of correspondence the one Strand that the first Service Management node will obtain stores the Service Management node except that the second Service Management node into.That is to say, the first Service Management node can store the service description information that the second Service Management node residual capacity can also be stored into second Service Management node, and remaining service description information is stored in the Service Management node except that the second Service Management node.For example, remaining service description information can be stored in the Service Management node adjacent, specifically can use principles such as geographical vicinity or the topological vicinity of P2P with the second Service Management node.Again for example, a Strand can be decomposed into a plurality of sub-Strand again, afterwards, remaining service description information be stored into respectively in the Service Management node corresponding with this a little Strand.
After the first Service Management node stores the service description information of remaining corresponding Strand into except that second management node Service Management node, the information that the service description information of remaining corresponding Strand can be stored into the Service Management node except that second management node records second management node, for example, write down remaining service description information and be stored in which or which Service Management node, be convenient to searching in follow-up service discovery process like this service description information.
In addition, the first Service Management node can also be provided with a mark at a Strand in the second Service Management node, and this mark is used for showing whether the service description information of a corresponding Strand all is stored in the second Service Management node.In follow-up service discovery process, when other Service Management nodes need obtain all service description informations of a corresponding Strand, the second Service Management node or other relevant Service Management nodes can determine clearly according to this mark whether all service description informations of a corresponding Strand all are stored in the second Service Management node.If not, can find the service description information of correspondence the one Strand in the Service Management node that is stored in except that the second Service Management node by recorded information above-mentioned.
If the first Service Management node is two different Service Management nodes with the second Service Management node, then after carrying out S201, the first Service Management node can pass through distributed hashtable (DHT, Distributed Hash Table) algorithm is determined the Service Management node of a Strand correspondence, i.e. the second Service Management node.Afterwards, the first Service Management node can send request to the second Service Management node.The content of request can be decided according to the actual requirements.For example, ask the second Service Management node that the residual capacity of the service description information of storage the one Strand correspondence is provided; Again for example, ask the service description information of a Strand correspondence of second Service Management node storage acquisition.Certainly, the content of request can also be other content, illustrates no longer one by one here.In fact, the first Service Management node is exactly to give triggering of the second Service Management node to the purpose that the second Service Management node sends request, provide some information to trigger the second Service Management node to the first Service Management node, for example the second Service Management node residual capacity of storing the service description information of a Strand correspondence.To this, after the second Service Management node is received this request, the residual capacity that can provide the second Service Management node to store the service description information of a Strand correspondence to the first Service Management node.After the first Service Management node is received the information of residual capacity, if the quantity of the service description information of a Strand correspondence that obtains surpasses residual capacity, the service description information of the first Service Management node the one Strand correspondence that just will obtain all offers the second Service Management node and stores so; If the quantity of the service description information of a Strand correspondence that obtains has surpassed residual capacity, the service description information of the first Service Management node a Strand correspondence that residual capacity can be stored offers the storage of the second Service Management node so, and the Service Management node that the service description information of a remaining Strand correspondence offers except that the second Service Management node is stored.
In addition, the first Service Management node and the second Service Management node can be same Service Management nodes, that is, the first Service Management node is exactly the second Service Management node.At this moment, the service description information of correspondence the one Strand of second Service Management node acquisition is provided by other Service Management nodes.Afterwards, the second Service Management node can compare the quantity of the service description information of the Strand correspondence that obtains with the residual capacity that the second Service Management node is stored the corresponding service description information of a Strand, if the quantity of the service description information of a Strand correspondence that obtains surpasses residual capacity, the second Service Management node is just stored the service description information of all Strand correspondences that obtain so; If the quantity of the service description information of a Strand correspondence that obtains has surpassed residual capacity, the service description information of the Strand correspondence that can store of second Service Management node storage residual capacity is so stored the Service Management node that the service description information of a remaining Strand correspondence offers except that the second Service Management node.
The device of service registry between the method for service registry between realizing among the corresponding above-mentioned personal network bunch, the embodiment of the invention provide and realize among a kind of personal network bunch.As shown in Figure 3, comprising: obtain unit 301, be used for obtaining to be registered to the service description information of personal network's correspondence the one Strand; Judging unit 302 is used to judge whether the second Service Management node of the service description information of storing a corresponding Strand can store the service description information of correspondence the one Strand of acquisition; Memory cell 303, judge the service description information that the second Service Management node of the service description information of the corresponding Strand of storage can't be stored correspondence the one Strand of acquisition if be used for judging unit 302, the service description information of correspondence the one Strand that then will obtain stores the Service Management node except that the second Service Management node into.
The service description information that 301 acquisitions of acquisition unit need be registered to correspondence the one Strand among the personal network can have multiple mode to realize.
For example, be not arranged under the situation in the second Service Management node obtaining unit 301, judging unit 302 and memory cell 303, acquisition unit 301 obtains to be registered to the service description information among the personal network, afterwards, obtain unit 301 and from described service description information, decomposite at least one Strand, wherein, comprise a Strand among at least one Strand, the service description information that obtains a Strand of unit 301 acquisitions is that personal device provides.
Again for example, be arranged under the situation in the second Service Management node obtaining unit 301, judging unit 302 and memory cell 303, after certain Service Management node obtains to be registered to service description information among the personal network, from described service description information, decomposite a Strand, afterwards, the service description information that obtains is offered acquisition unit 301, that is, obtain the service description information that unit 301 obtains a Strand correspondence.
The quantity that the needs that acquisition unit 301 obtains are registered to the service description information of correspondence the one Strand among the personal network can be one, also can be a plurality of.
Be one and a plurality of situations at the quantity of service description information respectively below, the device of service registry between realizing among the above-mentioned personal network bunch is described.
When the quantity of the service description information of correspondence the one Strand that acquisition unit 301 obtains is one:
Obtain the service description information that needs are registered to correspondence the one Strand among the personal network if obtain unit 301, the second Service Management node service description information that can't store correspondence the one Strand of acquisition specifically can show as so: the residual capacity of the service description information of the corresponding Strand of second Service Management node storage is not enough to store a described service description information of acquisition.
If the residual capacity of the second Service Management node is not enough to store the service description information of correspondence the one Strand that the first Service Management node obtains, memory cell 303 can store this service description information in the Service Management node except that the second Service Management node so.For example, memory cell 303 can store this service description information in the Service Management node adjacent with the second Service Management node, specifically can use principles such as geographical vicinity or the topological vicinity of P2P.Again for example, memory cell 303 can be decomposed into a Strand a plurality of sub-Strand again, afterwards, this service description information is stored into respectively in the Service Management node corresponding with this a little Strand.
The device of service registry can also comprise record cell 304 between realizing among the above-mentioned personal network bunch, be used for after the service description information that memory cell 303 will obtain correspondence the one Strand that unit 301 obtains stores Service Management node except that second management node into, the information that the service description information of correspondence the one Strand that obtains is stored into the Service Management node except that second management node records second management node, for example, these service description informations of record cell 304 record are stored in which or which Service Management node, are convenient to searching service description information in follow-up service discovery process like this.
When the quantity of the service description information of correspondence the one Strand that acquisition unit 301 obtains is a plurality of:
Under this situation, the service description information that the second Service Management node can't be stored correspondence the one Strand of acquisition specifically can show as: the residual capacity of the service description information of the corresponding Strand of second Service Management node storage is not enough to store the whole service description informations in described at least two service description informations of acquisition.The Service Management node that the service description information of correspondence the one Strand that memory cell 303 will obtain stores into except that the second Service Management node specifically can show as: memory cell 303 will obtain the service description information that surpasses the second Service Management node residual capacity in the service description information of correspondence the one Strand that unit 301 obtains and store Service Management node except that the second Service Management node into.That is to say that memory cell 303 can store the service description information that the second Service Management node residual capacity can also be stored into second Service Management node, remaining service description information is stored in the Service Management node except that the second Service Management node.For example, memory cell 303 can store remaining service description information in the Service Management node adjacent with the second Service Management node, specifically can use principles such as geographical vicinity or the topological vicinity of P2P.Again for example, memory cell 303 can be decomposed into a Strand a plurality of sub-Strand again, afterwards, remaining service description information is stored into respectively in the Service Management node corresponding with this a little Strand.
After memory cell 303 stores the service description information of remaining corresponding Strand into except that second management node Service Management node, the information that above-mentioned record cell 304 can store the service description information of remaining corresponding Strand into the Service Management node except that second management node records second management node, for example, remaining service description information of record cell 304 record are stored in which or which Service Management node, are convenient to searching service description information in follow-up service discovery process like this.
In addition, memory cell 303 can also be provided with this mark of mark at a Strand and be used for showing whether the service description information of a corresponding Strand all is stored in the second Service Management node in the second Service Management node, like this, in follow-up service discovery process, when other Service Management nodes need obtain all service description informations of a corresponding Strand, the second Service Management node or other relevant Service Management nodes are according to this mark, whether all service description informations that can clearly determine a corresponding Strand all are stored in the second Service Management node, if not words, can find the service description information of correspondence the one Strand in the Service Management node that is stored in except that the second Service Management node by recorded information above-mentioned.
Mentioned above, and obtained unit 301, judging unit 302 and memory cell 303 and can not be arranged in the second Service Management node.At this moment, the device of service registry can also comprise computing unit 305 between realizing among the above-mentioned personal network bunch, be used for after obtaining the service description information of correspondence the one Strand that unit 301 obtains to be registered to the personal network, determine the Service Management node of a Strand correspondence, the i.e. second Service Management node by the DHT algorithm.The device of service registry can also comprise request unit 306 between realizing among the above-mentioned personal network bunch, be used for computing unit 305 determine Strand correspondences be the second Service Management node after, send request to the second Service Management node.The content of request can be decided according to the actual requirements, and for example, the request unit 306 requests second Service Management node provides the residual capacity of the service description information of storage the one Strand correspondence; Again for example, the service description information of a Strand correspondence of request unit 306 requests second Service Management node storage acquisition.Certainly, the content of request can also be other content, illustrates no longer one by one here.In fact, request unit 306 is exactly to give triggering of the second Service Management node to the purpose that the second Service Management node sends request, provide some information to trigger the second Service Management node to the first Service Management node, for example the second Service Management node residual capacity of storing the service description information of a Strand correspondence.To this, after the second Service Management node is received this request, the residual capacity that can provide the second Service Management node to store the service description information of a Strand correspondence to the first Service Management node.After the information of residual capacity is received in acquisition unit 301, judging unit 302 can compare the quantity and the residual capacity of the service description information of the Strand correspondence that obtains, if the quantity of the service description information of a Strand correspondence that obtains surpasses residual capacity, the service description information of the memory cell 303 Strand correspondence that just will obtain all offers the second Service Management node and stores so; If the quantity of the service description information of a Strand correspondence that obtains has surpassed residual capacity, the service description information of memory cell 303 a Strand correspondence that residual capacity can be stored offers the storage of the second Service Management node so, and the Service Management node that the service description information of a remaining Strand correspondence offers except that the second Service Management node is stored.
Also mentioned above, and obtained unit 301, judging unit 302 and memory cell 303 and also can be arranged in the second Service Management node.At this moment, the service description information of correspondence the one Strand of acquisition unit 301 acquisitions is provided by other Service Management nodes.Judging unit 302 can compare the quantity of the service description information of the Strand correspondence that obtains with the residual capacity that the second Service Management node is stored the corresponding service description information of a Strand, if the quantity of the service description information of a Strand correspondence that obtains surpasses residual capacity, memory cell 303 is just stored the service description information of all Strand correspondences that obtain so; If the quantity of the service description information of a Strand correspondence that obtains has surpassed residual capacity, the service description information of the Strand correspondence that can store of memory cell 303 storage residual capacities is so stored the Service Management node that the service description information of a remaining Strand correspondence offers except that the second Service Management node.
Need to prove, each unit between realizing among the above-mentioned personal network bunch in the device of service registry can be arranged in the Service Management node, the working method of these unit in this Service Management node with in above-mentioned personal network, realize bunch between working method in the device of service registry identical, repeat no more here.In addition, if these unit are not arranged in the second Service Management node, so just illustrate that this Service Management node and the second Service Management node are different Service Management nodes; If these unit are arranged in the second Service Management node, so just illustrate that this Service Management node and the second Service Management node are same Service Management nodes.
Introduce the scheme of service registry between realizing among the personal network bunch above, introduced the scheme of service discovery between realizing among the personal network bunch below again.
At first the method to service discovery between realizing among a kind of personal network of the embodiment of the invention bunch describes.As shown in Figure 4, comprising:
S401: the 3rd Service Management node obtains the request of the service description information of the corresponding Strand of inquiry;
S402: be not stored in the service description information of correspondence the one Strand of the second Service Management node if the 3rd Service Management node is determined existence, then the 3rd Service Management node determines not to be stored in the Service Management node that the service description information of correspondence the one Strand of the second Service Management node is stored, wherein, the second Service Management node is the Service Management node of the service description information of the corresponding Strand of storage;
S403: the 3rd Service Management node is not stored in the service description information of correspondence the one Strand of the second Service Management node from the Service Management node acquisition of determining.
S401 can have multiple mode to realize.
For example, at the 3rd Service Management node and the second Service Management node is under the situation of different Service Management node, the 3rd Service Management node need to obtain the service description information of inquiry, and afterwards, the 3rd Service Management node decomposites at least one Strand from described service description information.Wherein, comprise a Strand among at least one Strand, the request of the service description information of the corresponding Strand of the inquiry that the 3rd Service Management node obtains is that personal device sends.Again for example, at the 3rd Service Management node and the second Service Management node is under the situation of same Service Management node, after certain Service Management node obtains to need the service description information of inquiry, from described service description information, decomposite a Strand, afterwards, the 3rd Service Management node is issued in the request that obtains, that is, the 3rd Service Management node obtains the request of the service description information of the corresponding Strand of inquiry.
After the request of the service description information of the corresponding Strand of the 3rd Service Management node acquisition inquiry, can check the mark that is arranged in the second Service Management node, described mark is used for showing whether the service description information of a corresponding Strand all is stored in the second Service Management node.Wherein, exist the service description information of correspondence the one Strand that is not stored in the second Service Management node specifically can show as: described mark shows that the service description information of a corresponding Strand all is not stored in the second Service Management node.
The Service Management node that the definite service description information that is not stored in correspondence the one Strand of the second Service Management node of the 3rd Service Management node is stored specifically can comprise: the recorded information of query note in the second Service Management node, described recorded information are used to show the Service Management node that the service description information of correspondence the one Strand that is not stored in the second Service Management node stores into.That is to say that the 3rd Service Management node is by query note information, the service description information of determining not to be stored in correspondence the one Strand of the second Service Management node has all stored which or which Service Management node into.
After the service description information that the 3rd Service Management node determines not to be stored in correspondence the one Strand of the second Service Management node has all stored which or which Service Management node into, just can be from the Service Management node of determining acquisition be not stored in the service description information of correspondence the one Strand of the second Service Management node.Certainly, the 3rd Service Management node also will obtain the service description information of correspondence the one Strand of second Service Management node storage from the second Service Management node.Afterwards, after the service description information that obtains gathered, offer personal device or other Service Management nodes of the request of sending.
Mentioned above, the 3rd Service Management node can be two different Service Management nodes with the second Service Management node.Also mentioned above, the 3rd Service Management node and the second Service Management node also can be same Service Management nodes, that is, the 3rd Service Management node is exactly the second Service Management node.
Corresponding to the method for service discovery between realizing among the above-mentioned personal network bunch, the device of service discovery between the embodiment of the invention provides and realizes among a kind of personal network bunch.As shown in Figure 5, comprising: first obtains unit 501, is used to obtain inquire about the request of the service description information of a corresponding Strand; Judging unit 502 is used to judge whether to exist the service description information of correspondence the one Strand that is not stored in the second Service Management node; Determining unit 503, judge the service description information that existence is not stored in correspondence the one Strand of the second Service Management node if be used for judging unit 502, the Service Management node that then definite service description information that is not stored in correspondence the one Strand of the second Service Management node is stored, wherein, the second Service Management node is the Service Management node of the service description information of the corresponding Strand of storage; Second obtains unit 504, is used for not being stored in from the Service Management node acquisition that determining unit 503 is determined the service description information of correspondence the one Strand of the second Service Management node.
First request that obtains the service description information of the corresponding Strand of unit 501 acquisition inquiries can have multiple mode to realize.
For example, obtaining unit 501, judging unit 502, determining unit 503 and second first obtains unit 504 and is not arranged under the situation in the second Service Management node, first obtains the service description information that unit 501 need to obtain inquiry, afterwards, first obtains unit 501 decomposites at least one Strand from described service description information, wherein, comprise a Strand among at least one Strand, the request of the service description information of the corresponding Strand of inquiry that the first acquisition unit 501 obtains is that personal device sends.
Again for example, obtaining unit 501, judging unit 502, determining unit 503 and second first obtains unit 504 and is arranged under the situation in the second Service Management node, after certain Service Management node obtains to need the service description information of inquiry, from described service description information, decomposite a Strand, afterwards, the request that obtains is issued first obtain unit 501, that is, first obtains the request that unit 501 obtains the service description information of the corresponding Strand of inquiry.
After the request of the service description information of the corresponding Strand of the first acquisition unit, 501 acquisition inquiries, judging unit 502 can be checked the mark that is arranged in the second Service Management node, and described mark is used for showing whether the service description information of a corresponding Strand all is stored in the second Service Management node.Wherein, exist the service description information of correspondence the one Strand that is not stored in the second Service Management node specifically can show as: described mark shows that the service description information of a corresponding Strand all is not stored in the second Service Management node.
The Service Management node that determining unit 503 definite service description informations that are not stored in correspondence the one Strand of the second Service Management node are stored specifically can comprise: the recorded information of determining unit 503 query notes in the second Service Management node, described recorded information are used to show the Service Management node that the service description information of correspondence the one Strand that is not stored in the second Service Management node stores into.That is to say that determining unit 503 is by recorded information, the service description information of determining not to be stored in correspondence the one Strand of the second Service Management node has all stored which or which Service Management node into.
After the service description informations that determining unit 503 determines not to be stored in correspondence the one Strand of the second Service Management node have all stored which or which Service Management node into, second obtain unit 504 just can be from the Service Management node of determining acquisition be not stored in the service description information of correspondence the one Strand of the second Service Management node.Certainly, second obtain the service description information that unit 504 also will obtain correspondence the one Strand of second Service Management node storage from the second Service Management node.The device of service discovery can also comprise between realizing among the above-mentioned personal network bunch provides unit 505, after being used for obtaining these service description informations that unit 504 obtains and gathering second, offers personal device or other Service Management nodes of the request of sending.
Need to prove, each unit between realizing among the above-mentioned personal network bunch in the device of service discovery can be arranged in the Service Management node, the working method of these unit in this Service Management node with in above-mentioned personal network, realize bunch between working method in the device of service discovery identical, repeat no more here.In addition, if each unit in the device of service discovery is not arranged in the second Service Management node between realizing among the above-mentioned personal network bunch, so just illustrate that this Service Management node and the second Service Management node are different Service Management nodes; If each unit between realizing among the above-mentioned personal network bunch in the device of service discovery is arranged in the second Service Management node, so just illustrate that this Service Management node and the second Service Management node are same Service Management nodes.
For making those skilled in the art more clearly understand the embodiment of the invention, introduce four preferred embodiments below again.
The applied environment of first preferred embodiment is: the first Service Management node is different Service Management nodes with the second Service Management node.The applied environment of second preferred embodiment is: the 3rd Service Management node is different Service Management nodes with the second Service Management node.The logical construction of the first Service Management node as shown in Figure 6, comprise: resolution unit (Resolver), map unit (StrandMapper), routing unit (KeyRoute), DHT processing unit (DHT Process) and local storage/query engine unit (Local Storage/query engine), wherein, routing unit has threshold values and handles (ThresholdProcess) function, and the DHT processing unit can use the Chord algorithm.
First preferred embodiment
In this preferred embodiment, personal device is initiated service registry, the first Service Management node processing service registry, idiographic flow as shown in Figure 7:
S701: personal device sends the service registry request to the first Service Management node.
S702: the AV-Tree in the resolution unit resolution service register requirement of the first Service Management node, obtain comprising the set Q of a plurality of Strand, and will gather the map unit that Q offers the first Service Management node, wherein, AV-Tree is the form of expression of service description information.
S703: the map unit of the first Service Management node is chosen a Strand among the set Q, calculate the Service Management node of this Strand correspondence, specifically can be expressed as Ki=Hash (Strand), and Ki be offered the routing unit of the first Service Management node.
S704: the routing unit of the first Service Management node utilizes the Chord algorithm according to Ki, calculates to receive service registry requested service management node SMN (Ki).
S705: the routing unit of the routing unit inquiry SMN (Ki) of the first Service Management node, obtain threshold values T_Ki and used quantity Y, T_Ki represents that SMN (Ki) can store the quantity of the service description information of this Strand correspondence at most, and Y represents the quantity of service description information of this Strand correspondence of the current storage of SMN (Ki).
S706: if the routing unit of the first Service Management node is judged the quantity of service description information of this Strand correspondence of acquisition greater than the difference of T_Ki and Y, then the service description information with the difference respective amount of T_Ki and Y is registered to SMN (Ki), remaining service description information is registered to other SMN except that SMN (Ki), and is provided with at SMN (Ki) that mark decomp (strand) is not equal to 0, record stores the service description information of other SMN and the corresponding relation between other SMN into.In the present embodiment, suppose according to the mode of decomposing sub-Strand service description information to be registered to other SMN, idiographic flow is as follows:
A) routing unit of the first Service Management node sends the service description information of current this Strand correspondence that can also store of SMN (Ki) to the routing unit of SMN (Ki), and sub-Strand and the corresponding relation between the corresponding SMN (Hash (sub-Strand_p)) are offered the routing unit of SMN (Ki), wherein, sub-Strand_p represents to be numbered the sub-Strand of p;
B) surpass the quantity of the service description information that can also store this sub-Strand correspondence of certain SMN as the quantity of the service description information of fruit Strand correspondence, so again this sub-Strand is decomposed at least one sub-Strand, by that analogy, till all being registered to all service description informations among the personal network.
S707: the routing unit of the first Service Management node returns the response of succeeding in registration to the map unit of the first Service Management node, and the map unit of the first Service Management node is returned the response of succeeding in registration to the resolution unit of the first Service Management node.
S708: the resolution unit of the first Service Management node is chosen next Strand again, repeats S703-S708, till all Strand in handling set Q.
S709: the resolution unit of the first Service Management node is returned the service registry response to personal device.
Second preferred embodiment
In this preferred embodiment, personal device is initiated service discovery, the 3rd Service Management node processing service discovery, idiographic flow as shown in Figure 8:
S801: personal device sends service discovery request to the 3rd Service Management node, and service discovery request can be described with logical expression query.
S802: the resolution unit resolution service of the 3rd Service Management node is found the AV-Tree in the request, obtains comprising the S set of a plurality of Strand, and S set is offered the map unit of the 3rd Service Management node.
S803: the map unit of the 3rd Service Management node is chosen a Strand in the S set, calculate the Service Management node of this Strand correspondence, specifically can be expressed as Ki=Hash (Strand), and Ki be offered the routing unit of the 3rd Service Management node.
S804: the routing unit of the 3rd Service Management node utilizes the Chord algorithm according to Ki, calculates the Service Management node SMN (Ki) that receives service discovery request.
S805: the resolution unit of the routing unit inquiry SMN (Ki) of the 3rd Service Management node, obtain the service description information of the corresponding above-mentioned Strand that chooses, and the routing unit of inquiry SMN (Ki), obtain the corresponding relation between mark decomp (strand) and sub-Strand and the corresponding SMN (Hash (sub-Strand_p)), wherein, whether the service description information of corresponding this Strand of decomp (strand) expression all is stored in SMN (Ki), and sub-Strand_p represents to be numbered the sub-Strand of p.
Afterwards, the routing unit of the 3rd Service Management node is checked decomp (strand), if decomp (strand)=0, then whether the service description information of corresponding this Strand of expression all is stored in SMN (Ki), in other words, show without any the service description information of this Strand of correspondence be stored in other Service Management node.At this moment, the routing unit of the 3rd Service Management node returns Query Result to the map unit of the 3rd Service Management node, and the map unit of the 3rd Service Management node is returned Query Result to the resolution unit of the 3rd Service Management node.
If decomp (strand) is not 0, then according to the corresponding relation between sub-Strand and the corresponding SMN (Hash (sub-Strand_p)), inquiry SMN (Hash (sub-Strand_p)).Gather the result who obtains according to each sub-Strand, afterwards, the routing unit of the 3rd Service Management node returns Query Result to the map unit of the 3rd Service Management node, and the map unit of the 3rd Service Management node is returned Query Result to the resolution unit of the 3rd Service Management node.
S806: the resolution unit of the 3rd Service Management node is chosen next Strand again, repeats S803-S806, till all Strand in handling S set, presses the Query Result of each Strand of logical combination of query, obtains final query result;
S807: the resolution unit of the 3rd Service Management node is returned final query result to personal device.
The applied environment of the 3rd preferred embodiment is: the first Service Management node and the second Service Management node are same Service Management nodes.The applied environment of the 4th preferred embodiment is: the 3rd Service Management node and the second Service Management node are same Service Management nodes.The logical construction of the second Service Management node as shown in Figure 9, comprise: resolution unit (Resolver), map unit (StrandMapper), routing unit (KeyRoute), DHT processing unit (DHT Process) and local storage/query engine unit (Local Storage/query engine), wherein, resolution unit has threshold values and handles (ThresholdProcess) function, and the DHT processing unit can use the Chord algorithm.
The 3rd preferred embodiment
In this preferred embodiment, personal device is initiated service registry, the second Service Management node processing service registry, idiographic flow as shown in figure 10:
S1001: personal device sends the service registry request to the first Service Management node.
S1002: the AV-Tree in the resolution unit resolution service register requirement of the first Service Management node, obtain comprising the set Q of a plurality of Strand, wherein, AV-Tree is the form of expression of service description information, set Q is offered the map unit of the first Service Management node.
S1003: the map unit of the first Service Management node is chosen a Strand among the set Q, calculate the Service Management node of this Strand correspondence, specifically can be expressed as Ki=Hash (Strand), and Ki be offered the routing unit of the first Service Management node.
S1004: the routing unit of the first Service Management node is according to Ki, utilize the Chord algorithm, calculate and receive service registry requested service management node SMN (Ki), suppose that SMN (Ki) is the second Service Management node, the routing unit of the first Service Management node is transmitted to the second Service Management node with the service registry request.
S1005: the resolution unit of the second Service Management node is inquired about threshold values T_Ki and has been used quantity Y, T_Ki represents that the second Service Management node can store the quantity of the service description information of this Strand correspondence at most, and Y represents the quantity of service description information of this Strand correspondence of the current storage of the second Service Management node.
S1006: if the resolution unit of the second Service Management node is judged the quantity of service description information of this Strand correspondence of acquisition greater than the difference of T_Ki and Y, then the service description information with the difference respective amount of T_Ki and Y is registered to this locality, and remaining service description information is registered to other SMN except that the second Service Management node, and be provided with in this locality that mark decomp (strand) is not equal to 0, record stores the service description information of other SMN and the corresponding relation between other SMN into.In the present embodiment, suppose according to the mode of decomposing sub-Strand service description information to be registered to other SMN, idiographic flow comprises:
The quantity that surpasses the service description information that can also store this sub-Strand correspondence of certain SMN as the quantity of the service description information of fruit Strand correspondence, so again this sub-Strand is decomposed at least one sub-Strand, by that analogy, till all being registered to all service description informations among the personal network.
S1007: the resolution unit of the second Service Management node is returned the response of succeeding in registration to the routing unit of the first Service Management node, the routing unit of the first Service Management node returns the response of succeeding in registration to the map unit of the first Service Management node, and the map unit of the first Service Management node is returned the response of succeeding in registration to the resolution unit of the first Service Management node.
S1008: the resolution unit of the first Service Management node is chosen next Strand again, repeats S1003-S1008, till all Strand in handling set Q.
S1009: the resolution unit of the first Service Management node is returned the service registry response to personal device.
The 4th preferred embodiment
In this preferred embodiment, personal device is initiated service discovery, the second Service Management node processing service discovery, idiographic flow as shown in figure 11:
S1101: personal device sends service discovery request to the 3rd Service Management node, and service discovery request can be described with logical expression query.
S1102: the resolution unit resolution service of the 3rd Service Management node is found the AV-Tree in the request, obtains comprising the S set of a plurality of Strand, and S set is offered the map unit of the 3rd Service Management node.
S1103: the map unit of the 3rd Service Management node is chosen a Strand in the S set, calculate the Service Management node of this Strand correspondence, specifically can be expressed as Ki=Hash (Strand), and Ki be offered the routing unit of the 3rd Service Management node.
S1104: the routing unit of the 3rd Service Management node is according to Ki, utilize the Chord algorithm, calculate the Service Management node SMN (Ki) that receives service discovery request, suppose that SMN (Ki) is the second Service Management node, the routing unit of the 3rd Service Management node is transmitted to the second Service Management node with service discovery request.
S1105: the local storage/query engine of the resolution unit inquiry unit of the second Service Management node, obtain the service description information of the corresponding above-mentioned Strand that chooses, and inquire about the routing unit of the second Service Management node, obtain the corresponding relation between mark decomp (strand) and sub-Strand and the corresponding SMN (Hash (sub-Strand_p)), wherein, whether the service description information of corresponding this Strand of decomp (strand) expression all is stored in SMN (Ki), and sub-Strand_p represents to be numbered the sub-Strand of p.
Afterwards, the resolution unit of the second Service Management node is checked decomp (strand), if decomp (strand)=0, then whether the service description information of corresponding this Strand of expression all is stored in the second Service Management node, in other words, show without any the service description information of this Strand of correspondence be stored in other Service Management node.At this moment, the resolution unit of the second Service Management node is returned Query Result to the routing unit of the 3rd Service Management node, the routing unit of the 3rd Service Management node returns Query Result to the map unit of the 3rd Service Management node, and the map unit of the 3rd Service Management node is returned Query Result to the resolution unit of the 3rd Service Management node.
If decomp (strand) is not 0, then according to the corresponding relation between sub-Strand and the corresponding SMN (Hash (sub-Strand_p)), inquiry SMN (Hash (sub-Strand_p)).Gather the result who obtains according to each sub-Strand.Afterwards, the resolution unit of the second Service Management node is returned query unit to the routing unit of the 3rd Service Management node, the routing unit of the 3rd Service Management node returns Query Result to the map unit of the 3rd Service Management node, and the map unit of the 3rd Service Management node is returned Query Result to the resolution unit of the 3rd Service Management node.
S1106: the resolution unit of the 3rd Service Management node is chosen next Strand again, repeat S1103-S1106, till all Strand in handling S set, press the Query Result of each Strand of logical combination of query, obtain final query result.
S1107: the resolution unit of the 3rd Service Management node is returned final query result to personal device.
Need to prove, when carrying out service registry, adopt first preferred embodiment better; When carrying out service discovery, adopt the 4th preferred embodiment better.At this moment, for any one Service Management node, resolution unit and routing unit all have the threshold values processing capacity.
In sum, between in the personal network of the embodiment of the invention, realizing bunch in method, device and the Service Management node of service registry, if store the service description information that the Service Management node of this Strand can not be stored a corresponding Strand, this service description information can be stored into so in the Service Management node except that the Service Management node of this Strand of storage.In embodiments of the present invention, the service description information of a corresponding Strand all has been registered among the personal network.Simultaneously, the service description information of corresponding this Strand does not need to use other keywords just can store the Service Management node into, like this, just the situation less than the service description information of this Strand of correspondence that uses other keywords storages can not appear inquiring about in the service discovery stage.
The method of service discovery between in the personal network of the embodiment of the invention, realizing bunch, in device and the Service Management node, if the service description information of a corresponding Strand all is not stored in a Service Management node, this Service Management node is the Service Management node of the service description information of corresponding this Strand of storage, so at first to determine not to be stored in the Service Management node that the service description information of this Strand of correspondence of this Service Management node is stored, afterwards, obtain the service description information of corresponding this Strand from the Service Management node of determining.In fact, realize among the personal network bunch between among scheme and the personal network of service discovery between realization bunch the scheme of service registry be corresponding.Because the scheme of service registry can guarantee that all service description informations of a corresponding Strand can both be registered among the personal network between realizing among the personal network bunch, so, all service description informations that can guarantee to inquire corresponding this Strand of the scheme correspondence of service discovery between realizing among the personal network bunch.
Need to prove, for the device of service registry between the realization of the embodiment of the invention bunch, realize bunch between the device and the Service Management node of service discovery, comprising a lot of unit all be dummy unit, that is, realize by the statement of computer language or statement combination.In actual applications, the function that the combination of different statements realizes can be different, in this case, and also may be different to the division of dummy unit.That is to say, the embodiment of the invention has just provided a kind of dividing mode of dummy unit, in actual applications, those skilled in the art can adopt the dividing mode of different dummy units according to actual needs, if guarantee to realize service registry between realization that the embodiment of the invention mentions bunch device, realize bunch between the device of service discovery and the function that the Service Management node is had.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-OnlyMemory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (11)

1. the method for service registry is characterized in that between realizing among the personal network bunch, comprising:
The first Service Management node obtains to be registered to the service description information of the correspondence first bundle Strand among the personal network;
If the first Service Management node determines the second Service Management node of the service description information of the corresponding Strand of storage and can't store the service description information of correspondence the one Strand of acquisition, then the service description information of first Service Management node correspondence the one Strand that will obtain stores the Service Management node except that the second Service Management node into.
2. the method for claim 1 is characterized in that, the service description information that described first Service Management node acquisition need be registered to the Strand of correspondence among the personal network specifically comprises:
The first Service Management node obtains to be registered to the service description information among the personal network;
The first Service Management node decomposites at least one Strand from described service description information, wherein, comprise a Strand among at least one Strand.
3. the method for claim 1, it is characterized in that the service description information that described first Service Management node acquisition need be registered to correspondence the one Strand among the personal network is specially: the first Service Management node obtains the service description information that needs are registered to correspondence the one Strand among the personal network;
The service description information that the described second Service Management node can't be stored correspondence the one Strand of acquisition is specially: the residual capacity of the service description information of the corresponding Strand of second Service Management node storage is not enough to store a described service description information of acquisition.
4. the method for claim 1, it is characterized in that the service description information that described first Service Management node acquisition need be registered to correspondence the one Strand among the personal network is specially: the first Service Management node obtains the service description information that at least two needs are registered to correspondence the one Strand among the personal network;
The service description information that the described second Service Management node can't be stored correspondence the one Strand of acquisition is specially: the residual capacity of the service description information of the corresponding Strand of second Service Management node storage is not enough to store the whole service description informations in described at least two service description informations of acquisition;
The Service Management node that the service description information of correspondence the one Strand that the described first Service Management node will obtain stores into except that the second Service Management node is specially: the service description information that surpasses the second Service Management node residual capacity in the service description information of correspondence the one Strand that the first Service Management node will obtain stores the Service Management node except that the second Service Management node into.
5. as any described method of claim 1-4, it is characterized in that, if the first Service Management node determines the second Service Management node of the service description information of the corresponding Strand of storage and can't store the service description information of correspondence the one Strand of acquisition, then the service description information of first Service Management node correspondence the one Strand that also will the obtain information that stores the Service Management node into is recorded in the second Service Management node.
6. the device of service registry is characterized in that between realizing among the personal network bunch, comprising:
Obtain the unit, be used for obtaining to be registered to the service description information of personal network's correspondence the one Strand;
Judging unit is used to judge whether the second Service Management node of the service description information of storing a corresponding Strand can store the service description information of correspondence the one Strand of acquisition;
Memory cell, if be used for the service description information that the second Service Management node that judgment unit judges goes out the service description information of the corresponding Strand of storage can't be stored correspondence the one Strand of acquisition, the service description information of correspondence the one Strand that then will obtain stores the Service Management node except that the second Service Management node into.
7. the method for service discovery is characterized in that between realizing among the personal network bunch, comprising:
The 3rd Service Management node obtains the request of the service description information of the corresponding Strand of inquiry;
If the 3rd Service Management node is determined existence and is not stored in the service description information of correspondence the one Strand of the second Service Management node, then the 3rd Service Management node determines not to be stored in the Service Management node that the service description information of correspondence the one Strand of the second Service Management node is stored, wherein, the second Service Management node is the Service Management node of the service description information of the corresponding Strand of storage;
The 3rd Service Management node is not stored in the service description information of correspondence the one Strand of the second Service Management node from the Service Management node acquisition of determining.
8. method as claimed in claim 7 is characterized in that, the request that described the 3rd Service Management node obtains the service description information of the corresponding Strand of inquiry specifically comprises:
The 3rd Service Management node need to obtain the service description information of inquiry;
The 3rd Service Management node decomposites at least one Strand from described service description information, wherein, comprise a Strand among at least one Strand.
9. method as claimed in claim 7, it is characterized in that, after the request of the service description information of the corresponding Strand of described the 3rd Service Management node acquisition inquiry, also comprise: the 3rd Service Management node inspection is arranged on the mark in the second Service Management node, and described mark is used for showing whether the service description information of a corresponding Strand all is stored in the second Service Management node;
The service description information that described existence is not stored in correspondence the one Strand of the second Service Management node is specially: described mark shows that the service description information of a corresponding Strand all is not stored in the second Service Management node.
10. method as claimed in claim 7, it is characterized in that, the Service Management node that the definite service description information that is not stored in correspondence the one Strand of the second Service Management node of described the 3rd Service Management node is stored specifically comprises: the 3rd Service Management querying node is recorded in the recorded information in the second Service Management node, and described recorded information is used to show the Service Management node that the service description information of correspondence the one Strand that is not stored in the second Service Management node stores into.
11. the device of service discovery is characterized in that between realizing among the personal network bunch, comprising:
First obtains the unit, is used to obtain inquire about the request of the service description information of a corresponding Strand;
Judging unit is used to judge whether to exist the service description information of correspondence the one Strand that is not stored in the second Service Management node;
Determining unit, if be used for the service description information that judgment unit judges goes out to exist correspondence the one Strand that is not stored in the second Service Management node, the Service Management node that then definite service description information that is not stored in correspondence the one Strand of the second Service Management node is stored, wherein, the second Service Management node is the Service Management node of the service description information of the corresponding Strand of storage;
Second obtains the unit, is used for not being stored in from the Service Management node acquisition that determining unit is determined the service description information of correspondence the one Strand of the second Service Management node.
CN200910129995A 2009-04-08 2009-04-08 Method for realizing service registry and method and device for realizing service discovery Pending CN101860955A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910129995A CN101860955A (en) 2009-04-08 2009-04-08 Method for realizing service registry and method and device for realizing service discovery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910129995A CN101860955A (en) 2009-04-08 2009-04-08 Method for realizing service registry and method and device for realizing service discovery

Publications (1)

Publication Number Publication Date
CN101860955A true CN101860955A (en) 2010-10-13

Family

ID=42946530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910129995A Pending CN101860955A (en) 2009-04-08 2009-04-08 Method for realizing service registry and method and device for realizing service discovery

Country Status (1)

Country Link
CN (1) CN101860955A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1152227A (en) * 1995-08-30 1997-06-18 美国电报电话公司 Shared distribution of internal message storage facilities by plurality of communication terminals
CN1795448A (en) * 2003-06-30 2006-06-28 国际商业机器公司 Retrieving a replica of an electronic document in a computer network
CN1889069A (en) * 2005-06-28 2007-01-03 联想(北京)有限公司 Media content long-distance dynamic dumping method
WO2007094398A1 (en) * 2006-02-15 2007-08-23 National Institute Of Information And Communications Technology Name system in communication network and naming method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1152227A (en) * 1995-08-30 1997-06-18 美国电报电话公司 Shared distribution of internal message storage facilities by plurality of communication terminals
CN1795448A (en) * 2003-06-30 2006-06-28 国际商业机器公司 Retrieving a replica of an electronic document in a computer network
CN1889069A (en) * 2005-06-28 2007-01-03 联想(北京)有限公司 Media content long-distance dynamic dumping method
WO2007094398A1 (en) * 2006-02-15 2007-08-23 National Institute Of Information And Communications Technology Name system in communication network and naming method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MAGDALENA BALAZINSKA 等: "INS/Twine: A Scalable Peer-to-Peer Architecture for Intentional Resource Discovery", 《INTERNATIONAL CONFERENCE ON PERVASIVE COMPUTING 2002》 *

Similar Documents

Publication Publication Date Title
CN107092437B (en) Data write-in, read method and device, cloud storage system
CN105933376B (en) A kind of data manipulation method, server and storage system
CN105593828B (en) Manage method, distributed memory system and the management node of file
CN100496004C (en) Structured peer-to-peer network system and its load query, transfer and resource seeking method
CN101645039B (en) Method for storing and reading data based on Peterson graph
CN104809129B (en) A kind of distributed data storage method, device and system
CN100452767C (en) Method for managing packet traffic in a data processing network and network thereof
CN104135715B (en) The implementation method of location-based service, a device, and system
CN107562757B (en) Query and access method, device and system based on distributed file system
CN103067521B (en) Node in a kind of distributed reptile cluster and system
CN106850710A (en) A kind of safe data cloud storage system, client terminal, storage server and application process
CN103444149A (en) Network topology discovery
CN101626392B (en) Methods and systems for storing and searching data
CN106095589A (en) Partition allocation method, device and system
CN111399761B (en) Storage resource allocation method, device and equipment, and storage medium
CN110413845A (en) Resource storage method and device based on Internet of Things operating system
CN106973125A (en) Domain name mapping implementation method and device
CN101645919A (en) Popularity-based duplicate rating calculation method and duplicate placement method
CN114968573A (en) Computing resource scheduling method and device and computer readable storage medium
CN102404372A (en) Method, system and node device for storing content in WEB cache in distributed mode
CN107704475A (en) Multilayer distributed unstructured data storage method, querying method and device
CN101719155B (en) Method of multidimensional attribute range inquiry for supporting distributed multi-cluster computing environment
CN101741588B (en) Data storage system and method
CN105354312A (en) File storage method and method, and file downloading method and system
CN101860955A (en) Method for realizing service registry and method and device for realizing service discovery

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101013