CN103347087A - Structuring P2P and UDDI service registering and searching method and system - Google Patents

Structuring P2P and UDDI service registering and searching method and system Download PDF

Info

Publication number
CN103347087A
CN103347087A CN2013102961808A CN201310296180A CN103347087A CN 103347087 A CN103347087 A CN 103347087A CN 2013102961808 A CN2013102961808 A CN 2013102961808A CN 201310296180 A CN201310296180 A CN 201310296180A CN 103347087 A CN103347087 A CN 103347087A
Authority
CN
China
Prior art keywords
service
node
management system
client management
uddi
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013102961808A
Other languages
Chinese (zh)
Other versions
CN103347087B (en
Inventor
何倩
龙运坚
王勇
杨辉华
强保华
折建章
杨指挥
周晴伦
柴华昕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guilin University of Electronic Technology
Original Assignee
Guilin University of Electronic Technology
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 Guilin University of Electronic Technology filed Critical Guilin University of Electronic Technology
Priority to CN201310296180.8A priority Critical patent/CN103347087B/en
Publication of CN103347087A publication Critical patent/CN103347087A/en
Application granted granted Critical
Publication of CN103347087B publication Critical patent/CN103347087B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a structuring P2P and UDDI service registering and searching method and system. The method comprises the steps that a structuring P2P protocol is used, a plurality of UDDI systems form a P2P covering network; a service requester sends user request information to a certain node of the P2P covering network through a client side management system, the node searches a corresponding UDDI node, the node determines registering or searching processing according to information types, and results are returned to the service requester; the client side management system carries out service registering and service searching on a service registering center; results of service searching or service registering are directly returned to the client side management system through a Socket communication module. The system formed through the method can effectively avoid the problem of single point invalidation, network loading balance is facilitated, flow and pressure of the P2P covering network are reduced, response speed is high, and good stability is achieved.

Description

The service registry of a kind of structural P 2 P and UDDI and lookup method and system
Technical field
The present invention relates to network service compute technical field, be specifically related to service registry and the lookup method of a kind of structural P 2 P and UDDI.
Background technology
Along with development of internet technology, traditional software architecture develops to the Service-Oriented Architecture Based architecture gradually.Web service is as realizing SOA(Service-Oriented Architecture, service-oriented architectural framework) ideal platform used, the first-selection when becoming architecture system.SOA mainly is made up of three dominant roles, is respectively ISP, service register center and service requester.The ISP provides the specific implementation of service, is responsible for simultaneously service is published to registration center, and service register center is a searchable catalogue.Service requester can be found service describing in registration center's issue, and can obtain binding information, utilizes this binding information, can be tied to the ISP, thereby call the service that the ISP provides.
Relevant international organization has proposed a series of related protocols and standard, as UDDI (Universal Description, Discovery and Integration, unified description, discovery and integrated), has arranged how to describe, register and find the web service.At present, the P2P technology has been widely used in numerous areas such as file-sharing, data sharing, multimedia communication, enforcement communication, online game, distributed storage and calculating.Web service can directly be used registration that P2P nerve of a covering technology serves and search as a kind of special computational resource.
The node of P2P nerve of a covering be client be again server, resource can be provided, comprise bandwidth, memory space and computing capability, when node added the P2P nerve of a covering, the resource of whole system also will increase, and this is that those C/S structures that can only have fixing server can not be compared.A kind of as network technology, the P2P nerve of a covering has outside the characteristics of general networking, also has other characteristics of self, and is good as topological dynamic, network robustness is good, load balancing etc.
Existing UDDI framework is a kind of centralized architecture, and the operations such as issue, search and coupling of centralized architecture service are all carried out at central server, and service describing all is stored on the registrar of center.When quantity of service suddenly increased, system will face the influence of problems such as system bottleneck, Single Point of Faliure, search efficiency reduction, in case the center Register breaks down, then whole service discovery system will be paralysed.And along with the increase of quantity of service and the continuous expansion of network size, the computing capability of memory capacity, the network bandwidth and the CPU of central server etc. is required higher, be easy to generate performance bottleneck, thereby have a strong impact on the performance (as: precision ratio, recall ratio and query time etc.) of web service discovery.
Summary of the invention
In order to solve the deficiencies in the prior art, the invention provides a kind of service registry based on structural P 2 P and UDDI and lookup method and system.
The service registry of a kind of structural P 2 P and UDDI and lookup method comprise:
Utilize the structural P 2 P agreement, a plurality of UDDI composition P2P of system nerves of a covering;
Service requester sends to subscription request message on certain node of P2P nerve of a covering by client management system, this node is searched corresponding UDDI node, the processing that decision is registered or searched according to type of message of this node, and return results is given 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 directly returns to client management system by the Socket communication module.
The node of the described P2P nerve of a covering of being made up of the UDDI system generates hashed value according to classification of service, routed messages to by P2P nerve of a covering communication module on the node of this hashed value of management, after judging service request type, directly call inquiry or the registration interface of UDDI.
The step that described client management system carries out service registry to service register center is as follows:
(1) user lands client management system, after the safety certification, with the URL(uniform resource locator) of the wsdl document of the service of having issued and the classified information of service, is submitted to client management system;
(2) client management system sends to the information that the user submits on certain node of P2P nerve of a covering; After this node reception information, the service classified information in the information extraction generates hashed value by the SHA-1 algorithm;
(3) this node judges whether to be managed by this node according to this hashed value, if then enter next step; If not, then be forwarded to the information that receives on the node of this hashed value of management by the P2P communication module;
(4) client management system is judged the request type of message, if the registration request, wsdl document is read and resolved in the address of then extracting the wsdl document of service according to the URL of this wsdl document,, generates the needed relevant information of service registry;
(5) client management system calls the registration API of UDDI, and resolving information and some relevant informations of wsdl document of service directly is registered among the UDDI of this node;
(6) succeed in registration after, client management system will identify the hashed value of this service classified information, be published in the P2P nerve of a covering, so that the searching of service requester;
(7) Zhu Ce object information 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 lands client management system, and after the safety certification, client management system sends to the Query Information that the user submits on certain node of P2P nerve of a covering;
(2) after the information that this node reception client management system sends over, extract service classified information, generate hashed value by the SHA-1 algorithm;
(3) this node judges whether to be managed by this node according to this hashed value, if then enter next step; If not, then be forwarded to the information that receives on the node of this hashed value of management by the P2P communication module;
(4) client management system is judged the request type of message, if query requests is then directly called the service-seeking AP of UDDI according to the relevant information of service;
(5) behind the poll-final, the result of inquiry returns to client management system.
Beneficial effect of the present invention:
(1) UDDI registration center is applied to the structural P 2 P nerve of a covering, feasible service is distributed to each node on the P2P nerve of a covering equably, with service registry in the UDDI of each node, when there is a large amount of service requests in system, the P2P nerve of a covering is forwarded to service request on the corresponding node, the pressure of whole system can be shared on each node like this, avoided a large amount of service requests to converge effectively and cause the single point failure problem that causes;
(2) because service request is distributed on each node equably, be conducive to the load balancing of network;
(3) service registry or lookup result are directly returned by Socket communication, need not return on former road, reduce flow, the pressure of P2P nerve of a covering;
(4) owing to the network of the structural P 2 P that is based on the Pastry agreement that adopts, the number of node can enlarge arbitrarily, and system does not reduce performance because of the expansion of node, has better stability;
(5) after P2P receives message, directly call UDDI registration, query interface, faster than general method (needing to resolve SAOP message) response speed.
Description of drawings
Fig. 1 is Web service model structure figure under the structural P 2 P nerve of a covering environment of the present invention.
Fig. 2 is the service registry of the method for the invention, the flow chart of searching.
Fig. 3 is for using the grid case diagram that the method for the invention constitutes.
Embodiment
Do below in conjunction with the present invention of accompanying drawing embodiment and to describe in further detail.
As shown in Figure 1, a kind of UDDI registration and lookup method and system based on structural P 2 P, UDDI on each node links to each other by the P2P nerve of a covering, the message that ISP or service requester send to node of P2P after, the P2P nerve of a covering is responsible for message is forwarded on the node of this service of management.Communication module comprises P2P nerve of a covering communication module and Socket communication module, wherein the Socket communication module is used for the communicating by letter of node and non-P2P nerve of a covering node on the P2P nerve of a covering, namely submit to service request information to P2P nerve of a covering node, and return the service request object information.
(1) service registry:
As shown in Figure 2, the ISP to the concrete steps of service register center registration service is:
1. the ISP submits user profile to by browser, signs in to client management system;
2. client is carried out safety certification to user profile; If authentication is passed through, then user profile is kept in the session, and allows this user to carry out the interior operation of its authority, otherwise the refusal operation;
3. the URL(uniform resource locator) of the wsdl document of the service that will issue of service registry person and the classified information of service are utilized the POST requesting method of http protocol, are submitted to client management system;
4. client management system is communicated by letter with Socket, and the information that the user is submitted to sends on the node of P2P nerve of a covering;
5. after the information that this node reception client management system sends over, extract service classified information, generate hashed value by the SHA-1 algorithm;
6. node judges whether to be managed by this node according to this hashed value, if, the rapid 1g of leapfrog then; If not, then the information that receives is transmitted, on the node that is forwarded to this hashed value of management;
7. the judgement type of message if registration is asked, then extracts the address of the wsdl document of service, according to the URL of this wsdl document, reads and resolve wsdl document;
8. the service registry API that calls UDDI is with among the resolving information of the wsdl document of service and the UDDI that service related information is registered to this node;
9. after succeeding in registration, with the hashed value of this identification service classified information, be published in the P2P nerve of a covering, so that the searching of service requester;
10. the object information with registration directly returns to client management system by Socket communication;
11. client management system is shown to registering result in the browser page;
12. the service registry process finishes.
(2) service search
As shown in Figure 2, the service requester concrete steps of carrying out service search to service register center are:
1. service requester is submitted user profile to by browser, signs in to client management system;
2. client is carried out safety certification to user profile; If authentication is passed through, then user profile is kept in the session, and allows this user to carry out the interior operation of its authority, otherwise the refusal operation;
Service requester service classified information that needs are searched and other relevant informations (as, commercial entity, service name etc.) be submitted to client management system;
4. client management system is communicated by letter by Socket, and the information that the user is submitted to sends on the node of P2P nerve of a covering;
5. after the information that this node reception client management system sends over, extract service classified information, generate hashed value by the SHA-1 algorithm;
6. node judges whether to be managed by this node according to this hashed value, if, the rapid 2g of leapfrog then; If not, the information that receives is transmitted, on the node that is forwarded to this hashed value of management;
7. after the node of this hashed value of management receives message in the P2P nerve of a covering, judge type of message, if query requests, then according to the relevant information of service (as, commercial entity, service name etc.) directly call the service-seeking API of UDDI;
8. behind the poll-final, the result who inquires about is directly returned to client management system by Socket communication;
9. client management system is shown to Query Result in the browser page;
10. the service search process finishes.
As shown in Figure 3, provided the example that the present invention uses trade mark enquiries mechanism.Node A, Node B, node C, node D constitute the P2P nerve of a covering, and UDDI registration center all is housed respectively on node separately.What this P2P nerve of a covering adopted is the Pastry agreement, and each node has identifier (NodeID), and all node identifiers are formed the NodeID space of an annular, passes through the Random assignment in the nodeID space of node IP address when node adds the P2P system.Each node is in charge of the resource the most close with NodeID.
Service registry process: after ISP's logging on client management system, submit the classified information of service and the address of serving the wsdl document of MyService to.Client management system sends to node A with the related news of registration service, after node A is received message, extracts the classified information of service and becomes hashed value (key) via the hash algorithm computing.Node A is forwarded to its next jumping (Node B) according to routing algorithm with message, and Node B finds that key does not return the management of this node, finally is forwarded to next jumping (node C).After node C determines that key is for the management of this node, extract the type of message, determine it is registration service, then the URL according to WSDL reads wsdl document to the web server, resolve post-registration in the UDDIc of this locality, the registration center on other nodes (as, UDDIa, UDDIb UDDId) will not have the log-on message that MyService serves.
Service search process: after the service requester logging on client management system, submit the classified information of inquiry service and the relevant information of other services to.Client management system sends to node A with query messages, after node A is received message, extracts the classified information of service and becomes hashed value (key) via the hash algorithm computing.Node A is forwarded to its next jumping (Node B) according to routing algorithm with message, and Node B finds that key does not return the management of this node, finally is forwarded to next jumping (node C).After node C determines that key is for the management of this node, extract the type of message, determine it is inquiry service, directly in the UDDIc of this locality, inquire about, can find the MyService information on services of previous service provider registers.

Claims (6)

1. service registry and the lookup method of a structural P 2 P and UDDI comprise:
Utilize the structural P 2 P agreement, a plurality of UDDI composition P2P of system nerves of a covering;
Service requester sends to subscription request message on certain node of P2P nerve of a covering by client management system, this node is searched corresponding UDDI node, the processing that decision is registered or searched according to type of message of this node, and return results is given 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 directly returns to client management system by the Socket communication module.
2. service registry according to claim 1 and lookup method, wherein said structural P 2 P agreement is based on the structural P 2 P agreement of Pastry algorithm.
3. service registry according to claim 1 and 2 and lookup method, the node of the wherein said P2P nerve of a covering of being made up of the UDDI system generates hashed value according to classification of service, routed messages to by P2P nerve of a covering communication module on the node of this hashed value of management, after judging service request type, directly call inquiry or the registration interface of UDDI.
4. service registry according to claim 3 and lookup method, the step that wherein said client management system carries out service registry to service register center is as follows:
(1) user lands client management system, after the safety certification, with the URL(uniform resource locator) of the wsdl document of the service of having issued and the classified information of service, is submitted to client management system;
(2) client management system sends to the information that the user submits on certain node of P2P nerve of a covering; After this node reception information, the service classified information in the information extraction generates hashed value by the SHA-1 algorithm;
(3) this node judges whether to be managed by this node according to this hashed value, if then enter next step; If not, then be forwarded to the information that receives on the node of this hashed value of management by the P2P communication module;
(4) client management system is judged the request type of message, if the registration request, wsdl document is read and resolved in the address of then extracting the wsdl document of service according to the URL of this wsdl document,, generates the needed relevant information of service registry;
(5) client management system calls the registration API of UDDI, and resolving information and some relevant informations of wsdl document of service directly is registered among the UDDI of this node;
(6) succeed in registration after, client management system will identify the hashed value of this service classified information, be published in the P2P nerve of a covering, so that the searching of service requester;
(7) Zhu Ce object information returns to client management system.
5. service registry according to claim 3 and lookup method, the step that wherein said client management system carries out service search to service register center is as follows:
(1) user lands client management system, and after the safety certification, client management system sends to the Query Information that the user submits on certain node of P2P nerve of a covering;
(2) after the information that this node reception client management system sends over, extract service classified information, generate hashed value by the SHA-1 algorithm;
(3) this node judges whether to be managed by this node according to this hashed value, if then enter next step; If not, then be forwarded to the information that receives on the node of this hashed value of management by the P2P communication module;
(4) client management system is judged the request type of message, if query requests is then directly called the service-seeking API of UDDI according to the relevant information of service;
(5) behind the poll-final, the result of inquiry returns to client management system.
6. the service registry of a structural P 2 P and UDDI and the system of searching comprises:
Utilize the structural P 2 P agreement, the device of a plurality of UDDI composition P2P of system nerves of a covering;
Service requester sends to subscription request message on certain node of P2P nerve of a covering by client management system, this node is searched corresponding UDDI node, the processing that decision is registered or searched according to type of message of this node, and return results is given the requestor's of service device;
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 the device of client management system by the Socket communication module.
CN201310296180.8A 2013-07-16 2013-07-16 The service registry of a kind of structural P 2 P and UDDI and lookup method and system Active CN103347087B (en)

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 true CN103347087A (en) 2013-10-09
CN103347087B 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468838A (en) * 2014-12-30 2015-03-25 桂林电子科技大学 P2P network and Web service selection method in publish-subscribe pattern
WO2018176406A1 (en) * 2017-03-31 2018-10-04 北京大学深圳研究生院 Top-level domain name management method and system based on alliance chain
CN109062687A (en) * 2018-07-10 2018-12-21 矩阵元技术(深圳)有限公司 Computing resource lookup method and device for P2P network
CN110049089A (en) * 2019-01-09 2019-07-23 阿里巴巴集团控股有限公司 A kind of service register center
CN111064588A (en) * 2018-10-16 2020-04-24 上海欣诺通信技术股份有限公司 Message processing method, system, device and storage medium
CN111147605A (en) * 2019-12-31 2020-05-12 中国银行股份有限公司 Service registration method, device and equipment
CN113645318A (en) * 2021-10-18 2021-11-12 北京大学 Self-adaptive construction method and device of structured peer-to-peer network facing to human-computer object resources

Citations (2)

* Cited by examiner, † Cited by third party
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
CN101170520A (en) * 2007-11-27 2008-04-30 宁波大学 A network system signal processing method based on UDDI

Patent Citations (2)

* Cited by examiner, † Cited by third party
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
CN101170520A (en) * 2007-11-27 2008-04-30 宁波大学 A network system signal processing method based on UDDI

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468838A (en) * 2014-12-30 2015-03-25 桂林电子科技大学 P2P network and Web service selection method in publish-subscribe pattern
CN104468838B (en) * 2014-12-30 2017-08-11 桂林电子科技大学 A kind of P2P networkings and the web service selection method of publish-subscribe model
WO2018176406A1 (en) * 2017-03-31 2018-10-04 北京大学深圳研究生院 Top-level domain name management method and system based on alliance chain
CN109062687A (en) * 2018-07-10 2018-12-21 矩阵元技术(深圳)有限公司 Computing resource lookup method and device for P2P network
CN111064588A (en) * 2018-10-16 2020-04-24 上海欣诺通信技术股份有限公司 Message processing method, system, device and storage medium
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
CN111147605A (en) * 2019-12-31 2020-05-12 中国银行股份有限公司 Service registration method, device and equipment
CN111147605B (en) * 2019-12-31 2022-06-10 中国银行股份有限公司 Service registration method, device and equipment
CN113645318A (en) * 2021-10-18 2021-11-12 北京大学 Self-adaptive construction method and device of structured peer-to-peer network facing to human-computer object resources

Also Published As

Publication number Publication date
CN103347087B (en) 2016-12-28

Similar Documents

Publication Publication Date Title
CN103347087A (en) Structuring P2P and UDDI service registering and searching method and system
Tanganelli et al. Edge-centric distributed discovery and access in the internet of things
WO2017190641A1 (en) Crawler interception method and device, server terminal and computer readable medium
US20070073829A1 (en) Partitioning data across servers
US9554276B2 (en) System and method for on the fly protocol conversion in obtaining policy enforcement information
WO2013078875A1 (en) Content management method, device and system
US20140280859A1 (en) Sharing control system and method for network resources download information
WO2019028683A1 (en) Method and system for acquiring and collecting client local dns server
US20100115613A1 (en) Cacheable Mesh Browsers
Liu et al. An efficient and trustworthy P2P and social network integrated file sharing system
CN109756584B (en) Domain name resolution method, domain name resolution device and computer readable storage medium
CN104184832A (en) Data submitting method and device in network application
US11416564B1 (en) Web scraper history management across multiple data centers
CN112671836A (en) Method for accelerating user request based on CDN technology
JP4009591B2 (en) Domain naming system (DNS) for accessing databases
Horozov et al. Moby-a mobile peer-to-peer service and data network
WO2017097092A1 (en) Method and system for processing cache cluster service
CN114466344A (en) Edge cloud discovery and selection method suitable for wireless self-organizing network environment
CN101895550B (en) Cache accelerating method for compatibility of dynamic and static contents of internet website
Roos Identity management on the blockchain
WO2012000455A1 (en) Client terminal and load balancing method
CN111614792A (en) Transparent transmission method, system, server, electronic device and storage medium
CN110213398A (en) Alias management method, device, server and storage medium
US20230018983A1 (en) Traffic counting for proxy web scraping
Rodrigues et al. Zigzag: A middleware for service discovery in future internet

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