CN103347087B - The service registry of a kind of structural P 2 P and UDDI and lookup method and system - Google Patents
The service registry of a kind of structural P 2 P and UDDI and lookup method and system Download PDFInfo
- Publication number
- CN103347087B CN103347087B CN201310296180.8A CN201310296180A CN103347087B CN 103347087 B CN103347087 B CN 103347087B CN 201310296180 A CN201310296180 A CN 201310296180A CN 103347087 B CN103347087 B CN 103347087B
- Authority
- CN
- China
- Prior art keywords
- service
- node
- management system
- client management
- 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.)
- Active
Links
Abstract
The invention discloses service registry and lookup method and the system of a kind of structural P 2 P and UDDI, described method includes: utilize structural P 2 P agreement, and multiple UDDI systems are formed P2P nerve of a covering;Subscription request message is sent on certain node of P2P nerve of a covering by service requester by client management system, the UDDI node that this node checks is corresponding, this node determines the process carrying out registering or searching according to type of message, and returns result to the requestor of service;Client management system carries out service registry and service search to service register center;The result of service registry or service search is directly returned to client management system by Socket communication module.The system that application this method is constituted can be effectively prevented from the load balancing of single point failure problem, beneficially network, reduces the flow of P2P nerve of a covering, pressure, has fast response time and more preferable stability.
Description
Technical field
The present invention relates to network service computing technique field, be specifically related to the service registry of a kind of structural P 2 P and UDDI
With lookup method.
Background technology
Along with the development of network technology, traditional software architecture is gradually to Service-Oriented Architecture structural evolution.
Web service is as realizing SOA(Service-Oriented Architecture, Service-oriented application) ideal applied
Platform, has become as first-selection during architecture system.SOA is mainly made up of three dominant roles, is ISP, service respectively
Registration center and service requester.ISP provides implementing of service, is responsible for being published in registration service simultaneously
The heart, service register center is a searchable catalogue.Service requester can be issued in registration center and find service describing, and
Binding information can be obtained, utilize this binding information, ISP can be tied to, thus call the clothes that ISP provides
Business.
Relevant international organization has been proposed for a series of related protocol and specification, such as UDDI (Universal
Description, Discovery and Integration, universal description discovery and integration protocol), arranged how to describe, note
Volume and discovery web services.At present, P2P technology be widely used to file-sharing, data sharing, multimedia communication, enforcement lead to
The numerous areas such as letter, online game, distributed storage and calculating.Web service can be direct as a kind of special calculating resource
Application P2P nerve of a covering technology carries out registration and the lookup serviced.
The node of P2P nerve of a covering is client and server, is provided that resource, including bandwidth, memory space and meter
Calculation ability, when there being node to add P2P nerve of a covering, the resource of whole system also will increase, and it is fixing that this is that those can only have
The C/S structure of server can not compare.As the one of network technology, P2P nerve of a covering has outside the feature of general networking,
Also have other features of self, as good in topological dynamics, good, the load balancing of network robustness etc..
Existing UDDI framework is a kind of centralized architecture, the issue of centralized architecture service, searches for and the operation such as coupling
All carrying out on central server, service describing is stored on the registrar of center.When the anxious increasing of quantity of service, system will
Can face the impact of the problems such as system bottleneck, Single Point of Faliure, search efficiency reduction, once center Register breaks down,
The most whole service discovery system will paralysis.And along with the increase of quantity of service and the continuous of network size expand, centering is genuinely convinced
The business memory capacity of device, the computing capability etc. of the network bandwidth and CPU require higher, easily produce performance bottleneck, thus serious shadow
Ring the performance (such as: precision ratio, recall ratio and query time etc.) that web services finds.
Summary of the invention
In order to solve the deficiencies in the prior art, the present invention provide a kind of service registry based on structural P 2 P and UDDI with
Lookup method and system.
A kind of structural P 2 P and the service registry of UDDI and lookup method, including:
Utilize structural P 2 P agreement, multiple UDDI systems are formed P2P nerve of a covering;
Subscription request message is sent to certain node of P2P nerve of a covering by service requester by client management system
On, the UDDI node that this node checks is corresponding, this node determines the process carrying out registering or searching, and returns according to type of message
Return the result requestor to service;
Client management system carries out service registry and service search to service register center;
The result of service registry or service search is directly returned to client management system by Socket communication module.
The node of the described P2P nerve of a covering being made up of UDDI system generates hashed value according to classification of service, by P2P nerve of a covering
Communication module routes messages to manage on the node of this hashed value, it is judged that after service request type, directly invokes looking into of UDDI
Ask or registration interface.
The step that described client management system carries out service registry to service register center is as follows:
(1) user logs in client management system, after safety certification, by the unification of the wsdl document of the most issued service
The classification information of URLs and service, is submitted to client management system;
(2) information that user submits to is sent on certain node of P2P nerve of a covering by client management system;This node connects
Collecting mail after breath, the service classified information in extraction information, by SHA-1 algorithm generation hashed value;
(3) this node is according to this hashed value, it may be judged whether managed by this node, the most then enter next step;If no
It is then to be forwarded to manage on the node of this hashed value by P2P communication module by the information received;
(4) client management system judges the request type of message, if registration request, then extracts the wsdl document of service
Address, according to the URL of this wsdl document, read and resolve wsdl document, generate the relevant information required for service registry;
(5) client management system calls the registration API of UDDI, by the parsing information of wsdl document of service and some
Relevant information directly registers with in the UDDI of this node;
(6), after succeeding in registration, client management system, by identifying the hashed value of this service classified information, is published to P2P and covers
In cover net, in order to the lookup of service requester;
(7) object information registered returns to client management system.
The step that described client management system carries out service search to service register center is as follows:
(1) user logs in client management system, after safety certification, and the inquiry letter that user is submitted to by client management system
Breath is sent on certain node of P2P nerve of a covering;
(2), after this node receives the information that client management system sends over, extract service classified information, pass through SHA-
1 algorithm generates hashed value;
(3) this node is according to this hashed value, it may be judged whether managed by this node, the most then enter next step;If no
It is then to be forwarded to manage on the node of this hashed value by P2P communication module by the information received;
(4) client management system judges the request type of message, if inquiry request, then according to the relevant information of service
Directly invoke the service-seeking AP of UDDI;
(5), after poll-final, the result of inquiry returns to client management system.
Beneficial effects of the present invention:
(1) UDDI registration center is applied to structural P 2 P nerve of a covering so that service is distributed to P2P nerve of a covering equably
On each node, by service registry to the UDDI of each node, when system has substantial amounts of service request, P2P nerve of a covering
Service request is forwarded on the node of correspondence, so the pressure of whole system can be shared on each node, effectively keep away
Exempt from substantial amounts of service request to converge and cause the single point failure problem that causes;
(2) it is distributed to equably on each node due to service request, the beneficially load balancing of network;
(3) service registry or lookup result are directly returned by Socket communication, without backtracking, reduce P2P nerve of a covering
Flow, pressure;
(4) owing to using the network of structural P 2 P based on Pastry agreement, the number of node can arbitrarily expand
Greatly, system does not reduce performance because of the expansion of node, has more preferable stability;
(5), after P2P receives message, directly invoke UDDI registration, query interface, (need to resolve SAOP than general method
Message) response speed is faster.
Accompanying drawing explanation
Fig. 1 be the present invention structural P 2 P nerve of a covering environment under Web service model structure figure.
Fig. 2 is the flow chart of the service registry of the method for the invention, lookup.
Fig. 3 is the grid case diagram that application the method for the invention is constituted.
Detailed description of the invention
Below in conjunction with accompanying drawing embodiment, the present invention is described in further detail.
As it is shown in figure 1, a kind of UDDI based on structural P 2 P registration and lookup method and system, on each node
UDDI by P2P nerve of a covering be connected, in the message that ISP or service requester send to mono-node of P2P after, P2P covers
Cover net is responsible for forwarding the message to manage on the node of this service.Communication module includes P2P nerve of a covering communication module and Socket
Communication module, wherein Socket communication module node on P2P nerve of a covering and the communication of non-P2P nerve of a covering node, i.e. carry
Hand over service request information on P2P nerve of a covering node, and return service request result information.
(1) service registry:
As in figure 2 it is shown, ISP's concretely comprising the following steps to service register center registration service:
1. ISP submits user profile to by browser, signs in client management system;
2. client carries out safety certification to user profile;If certification is passed through, then user profile is preserved in a session,
And allow this user to perform the operation in its authority, otherwise refuse operation;
3. service registry person's URL by the wsdl document of the most issued service and the classification of service
Information, utilizes the POST request method of http protocol, is submitted to client management system;
4. client management system Socket communicates, and the information that user submits to is sent to a joint of P2P nerve of a covering
On point;
5., after this node receives the information that client management system sends over, extract service classified information, pass through SHA-
1 algorithm generates hashed value;
6. node is according to this hashed value, it may be judged whether managed by this node, the most then the rapid 1g of leapfrog;If it is not, then
The information received is forwarded, until being forwarded to manage on the node of this hashed value;
7. judge type of message, if registration request, then extract the address of the wsdl document of service, according to this WSDL literary composition
The URL of part, reads and resolves wsdl document;
8. parsing information and the service related information of the wsdl document of service are noted by the service registry API calling UDDI
Volume is in the UDDI of this node;
9. after succeeding in registration, by the hashed value of this mark service classified information, it is published in P2P nerve of a covering, in order to clothes
The lookup of business requestor;
10. the object information of registration is directly returned to client management system by Socket communication;
Registering result is shown in browser page by 11. client management systems;
12. service registry processes terminate.
(2) service search
As in figure 2 it is shown, service requester carries out concretely comprising the following steps of service search to service register center:
1. service requester submits user profile to by browser, signs in client management system;
2. client carries out safety certification to user profile;If certification is passed through, then user profile is preserved in a session,
And allow this user to perform the operation in its authority, otherwise refuse operation;
3. service requester will require look up service classified information and other relevant informations (e.g., commercial entity, clothes
Business title etc.) it is submitted to client management system;
4. client management system is communicated by Socket, and the information that user submits to is sent to of P2P nerve of a covering
On node;
5., after this node receives the information that client management system sends over, extract service classified information, pass through SHA-
1 algorithm generates hashed value;
6. node is according to this hashed value, it may be judged whether managed by this node, the most then the rapid 2g of leapfrog;If it is not, will
The information received forwards, until being forwarded to manage on the node of this hashed value;
7. P2P nerve of a covering manage after the node of this hashed value receives message, it is judged that type of message, if inquiry please
Ask, then directly invoke the service-seeking API of UDDI according to the relevant information (e.g., commercial entity, service name etc.) of service;
8., after poll-final, the result of inquiry is directly returned to client management system by Socket communication;
9. Query Result is shown in browser page by client management system;
10. service search process terminates.
As it is shown on figure 3, give the example of present invention application trade mark enquiries mechanism.Node A, node B, node C, node D
Constitute P2P nerve of a covering, respective node is equipped with UDDI registration center respectively.This P2P nerve of a covering uses Pastry
Agreement, each node has identifier (NodeID), one annular NodeID space of all of node identifier composition, node
The random assortment in nodeID space of node IP address is passed through when adding P2P system.Each node is responsible for and NodeID
The most close resource.
Service registry process: after ISP logs in client management system, submits classification information and the clothes of service to
The address of the wsdl document of business MyService.The related news of registration service are sent to node A, node A by client management system
After having received message, extract the classification information of service and become hashed value (key) via hash algorithm computing.Node A is according to route
Algorithm forwards the message to its down hop (node B), and node B finds that key does not return this node administration, is ultimately forwarded to down hop
(node C).After node C determines that key is this node administration, extract the type of message, determine it is registration service, then according to WSDL's
URL reads wsdl document to web server, and in parsing post-registration to local UDDIc, the registration center on other nodes is (e.g.,
UDDIa, UDDIb, UDDId) will not there is the log-on message that MyService services.
Service search process: service requester logs in after client management system, submit to the classification information of inquiry service with
And the relevant information of other services.Query messages is sent to node A by client management system, after node A has received message, extracts
Service classification information and become hashed value (key) via hash algorithm computing.Node A forwards the message to it according to routing algorithm
Down hop (node B), node B finds that key does not return this node administration, is ultimately forwarded to down hop (node C).Node C determines key
After this node administration, extract the type of message, determine it is inquiry service, directly inquire about in local UDDIc,
Find the MyService information on services of previous service provider registers.
Claims (3)
1. structural P 2 P and the service registry of UDDI and a lookup method, including P2P agreement and UDDI, is characterized in that:
Described P2P agreement is a kind of structural P 2 P agreement based on Pastry algorithm, utilizes this structural P 2 P agreement multiple
UDDI system composition structural P 2 P nerve of a covering;
Subscription request message is sent on certain node of P2P nerve of a covering by service requester by client management system, should
The UDDI node that node checks is corresponding, this node dissipates according to the classification information of the URL of wsdl document and service
Train value determines the process carrying out registering or searching, and returns result to the requestor of service;
Client management system carries out service registry and service search to service register center;
The result of service registry or service search is directly returned to client management system by Socket communication module;
The step that described client management system carries out service registry to service register center is as follows:
(1) user logs in client management system, after safety certification, by the unified resource of the wsdl document of the most issued service
The classification information of finger URL and service, is submitted to client management system;
(2) information that user submits to is sent on certain node of P2P nerve of a covering by client management system;This node receives letter
After breath, the service classified information in extraction information, generate hashed value by SHA-1 algorithm;
(3) this node is according to this hashed value, it may be judged whether managed by this node, the most then enter next step;If it is not,
Then it is forwarded to manage on the node of this hashed value by P2P communication module by the information received;
(4) client management system judges the request type of message, if registration request, then extracts the ground of the wsdl document of service
Location, according to the URL of this wsdl document, reads and resolves wsdl document, generate the relevant information required for service registry;
(5) client management system calls the registration API of UDDI, by the parsing information of the wsdl document of service and some be correlated with
Information directly registers with in the UDDI of this node;
(6), after succeeding in registration, client management system, by identifying the hashed value of this service classified information, is published to P2P nerve of a covering
In, in order to the lookup of service requester;
(7) object information registered returns to client management system;
The step that described client management system carries out service search to service register center is as follows:
(1) user logs in client management system, and after safety certification, the Query Information that user submits to is sent out by client management system
Deliver on certain node of P2P nerve of a covering;
(2), after this node receives the information that client management system sends over, extract service classified information, calculated by SHA-1
Method generates hashed value;
(3) this node is according to this hashed value, it may be judged whether managed by this node, the most then enter next step;If it is not,
Then it is forwarded to manage on the node of this hashed value by P2P communication module by the information received;
(4) client management system judges the request type of message, if inquiry request, then the relevant information according to service is direct
Call the service-seeking API of UDDI;
(5), after poll-final, the result of inquiry returns to client management system.
Service registry the most according to claim 1 and lookup method, is characterized in that: the described P2P being made up of UDDI system
The node of nerve of a covering generates hashed value, by structuring according to the URL of wsdl document and the classification information of service
P2P nerve of a covering communication module routes messages to manage on the node of this hashed value, it is judged that after service request type, directly invoke
The inquiry of UDDI or registration interface.
3. the service registry of structural P 2 P and UDDI and a system for lookup, is characterized in that including:
Utilize structural P 2 P agreement, the device of multiple UDDI systems composition structural P 2 P nerve of a covering;
Subscription request message is sent to certain node of structural P 2 P nerve of a covering by service requester by client management system
On, the UDDI node that this node checks is corresponding, this node is believed according to the URL of wsdl document and the classification of service
The hashed value of breath determines the process carrying out registering or searching, and returns result to the device of the requestor of service;
Client management system carries out the device of service registry and service search to service register center;
The result of service registry or service search is directly returned to client management system by Socket communication module;
The step that described client management system carries out service registry to service register center is as follows:
(1) user logs in client management system, after safety certification, by the unified resource of the wsdl document of the most issued service
The classification information of finger URL and service, is submitted to client management system;
(2) information that user submits to is sent on certain node of P2P nerve of a covering by client management system;This node receives letter
After breath, the service classified information in extraction information, generate hashed value by SHA-1 algorithm;
(3) this node is according to this hashed value, it may be judged whether managed by this node, the most then enter next step;If it is not,
Then it is forwarded to manage on the node of this hashed value by P2P communication module by the information received;
(4) client management system judges the request type of message, if registration request, then extracts the ground of the wsdl document of service
Location, according to the URL of this wsdl document, reads and resolves wsdl document, generate the relevant information required for service registry;
(5) client management system calls the registration API of UDDI, by the parsing information of the wsdl document of service and some be correlated with
Information directly registers with in the UDDI of this node;
(6), after succeeding in registration, client management system, by identifying the hashed value of this service classified information, is published to P2P nerve of a covering
In, in order to the lookup of service requester;
(7) object information registered returns to client management system;
The step that described client management system carries out service search to service register center is as follows:
(1) user logs in client management system, and after safety certification, the Query Information that user submits to is sent out by client management system
Deliver on certain node of P2P nerve of a covering;
(2), after this node receives the information that client management system sends over, extract service classified information, calculated by SHA-1
Method generates hashed value;
(3) this node is according to this hashed value, it may be judged whether managed by this node, the most then enter next step;If it is not,
Then it is forwarded to manage on the node of this hashed value by P2P communication module by the information received;
(4) client management system judges the request type of message, if inquiry request, then the relevant information according to service is direct
Call the service-seeking API of UDDI;
(5), after poll-final, the result of inquiry returns to client management system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310296180.8A CN103347087B (en) | 2013-07-16 | 2013-07-16 | The service registry of a kind of structural P 2 P and UDDI and lookup method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310296180.8A CN103347087B (en) | 2013-07-16 | 2013-07-16 | The service registry of a kind of structural P 2 P and UDDI and lookup method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103347087A CN103347087A (en) | 2013-10-09 |
CN103347087B true CN103347087B (en) | 2016-12-28 |
Family
ID=49281861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310296180.8A Active CN103347087B (en) | 2013-07-16 | 2013-07-16 | The service registry of a kind of structural P 2 P and UDDI and lookup method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103347087B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10178069B2 (en) | 2017-03-31 | 2019-01-08 | Peking University Shenzhen Graduate School | Systems and methods for managing top-level domain names using consortium blockchain |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104468838B (en) * | 2014-12-30 | 2017-08-11 | 桂林电子科技大学 | A kind of P2P networkings and the web service selection method of publish-subscribe model |
CN109062687A (en) * | 2018-07-10 | 2018-12-21 | 矩阵元技术(深圳)有限公司 | Computing resource lookup method and device for P2P network |
CN111064588B (en) * | 2018-10-16 | 2022-12-02 | 上海欣诺通信技术股份有限公司 | Message processing method, system, device and storage medium |
CN110049089A (en) * | 2019-01-09 | 2019-07-23 | 阿里巴巴集团控股有限公司 | A kind of service register center |
CN111147605B (en) * | 2019-12-31 | 2022-06-10 | 中国银行股份有限公司 | Service registration method, device and equipment |
CN113645318B (en) * | 2021-10-18 | 2022-01-21 | 北京大学 | Self-adaptive construction method and device of structured peer-to-peer network facing to human-computer object resources |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101170520A (en) * | 2007-11-27 | 2008-04-30 | 宁波大学 | A network system signal processing method based on UDDI |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050273668A1 (en) * | 2004-05-20 | 2005-12-08 | Richard Manning | Dynamic and distributed managed edge computing (MEC) framework |
-
2013
- 2013-07-16 CN CN201310296180.8A patent/CN103347087B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101170520A (en) * | 2007-11-27 | 2008-04-30 | 宁波大学 | A network system signal processing method based on UDDI |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10178069B2 (en) | 2017-03-31 | 2019-01-08 | Peking University Shenzhen Graduate School | Systems and methods for managing top-level domain names using consortium blockchain |
Also Published As
Publication number | Publication date |
---|---|
CN103347087A (en) | 2013-10-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103347087B (en) | The service registry of a kind of structural P 2 P and UDDI and lookup method and system | |
Vu et al. | Dmap: A shared hosting scheme for dynamic identifier to locator mappings in the global internet | |
Baid et al. | Comparing alternative approaches for networking of named objects in the future Internet | |
Koponen et al. | A data-oriented (and beyond) network architecture | |
CN101997759B (en) | Service implementation method and service system | |
US20070073878A1 (en) | System and method for lowering proxy bandwidth utilization | |
US20140280859A1 (en) | Sharing control system and method for network resources download information | |
CN107431726A (en) | Messaging bus service catalogue | |
CN110740187A (en) | micro service architecture realization method | |
CN104486402A (en) | Combined equalizing method based on large-scale website | |
US20040179481A1 (en) | Overlay network for location-independent communication between computer systems | |
WO2010133097A1 (en) | Data sharing method, server and data sharing system for widget system | |
US10225358B2 (en) | Page push method, device, server and system | |
WO2017097092A1 (en) | Method and system for processing cache cluster service | |
WO2013040925A1 (en) | M2m platform cloud system and m2m service processing method thereof | |
CN107347100B (en) | Transparent proxy forwarding method for content distribution network | |
CN106790502B (en) | Load balancing system of IPv4 terminal and IPv6 service intercommunication service based on NAT64 prefix | |
Roos | Identity management on the blockchain | |
CN102497402B (en) | Content injection method and system thereof, and content delivery method and system thereof | |
Wu et al. | A novel interoperable model of distributed UDDI | |
JP5137201B2 (en) | User authentication type reverse proxy device, data relay method thereof, and program thereof | |
Tan et al. | Scheduling of distributed collaborative tasks on ndn based manet | |
CN102035725B (en) | Relevant technology system for one-way flow uniform resource identifier (URI) under asymmetric routing and method thereof | |
Edens et al. | The packet protector | |
CN110677417A (en) | Anti-crawler system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |