CN103401912B - Based on the service ad hoc network method of general fit calculation - Google Patents

Based on the service ad hoc network method of general fit calculation Download PDF

Info

Publication number
CN103401912B
CN103401912B CN201310314389.2A CN201310314389A CN103401912B CN 103401912 B CN103401912 B CN 103401912B CN 201310314389 A CN201310314389 A CN 201310314389A CN 103401912 B CN103401912 B CN 103401912B
Authority
CN
China
Prior art keywords
service
management module
application program
network
service management
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
Application number
CN201310314389.2A
Other languages
Chinese (zh)
Other versions
CN103401912A (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.)
Jiangsu IoT Research and Development Center
Original Assignee
Jiangsu IoT Research and Development Center
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 Jiangsu IoT Research and Development Center filed Critical Jiangsu IoT Research and Development Center
Priority to CN201310314389.2A priority Critical patent/CN103401912B/en
Publication of CN103401912A publication Critical patent/CN103401912A/en
Application granted granted Critical
Publication of CN103401912B publication Critical patent/CN103401912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a kind of service ad hoc network method based on general fit calculation, comprise the following steps: S1. service arrangement: when new service enters network for the first time, need first dispose it thus become available service; S2. serve issue, described service is issued and is comprised direct broadcast mode and indirect broadcast mode; S3. service discovery: application program is according to the service management module transmission service search request of the demand of self to its correspondence, and the service management module corresponding with application program performs this request and carry out service search in order, and lookup result is returned to application program; S4. serve MANET: the bind command that the service management module corresponding according to application program sends, bind between required service; S5. service call; S6. serve solution to tie up.This method significantly can reduce the number of times of service search, reduces network bandwidth occupancy.

Description

Based on the service ad hoc network method of general fit calculation
Technical field
The present invention relates to general fit calculation system, especially a kind of service ad hoc network method based on general fit calculation.
Background technology
At present, the application program in Internet of Things needs to search for and calls the service of its needs at the beginning of running, and each application program must be searched all services, increases offered load to a great extent, improves Time and place cost.When especially needing to call multiple service, can only by searching one by one the service in network, and after traversed all services may be appeared at, fail to find the situation of the service of mating completely.The method search efficiency of this traversal is low, causes very large operating pressure to network.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of service ad hoc network method based on general fit calculation is provided, significantly can reduce the number of times of service search, reduce network bandwidth occupancy.The technical solution used in the present invention is:
Based on a service ad hoc network method for general fit calculation, comprise the following steps:
S1. service arrangement: when new service enters network for the first time, needs first dispose it thus become available service;
S2. serve issue, described service is issued and is comprised direct broadcast mode and indirect broadcast mode;
S2-1. direct broadcast mode: serve and own services information is carried out periodic broadcast in a network, and while carry out directly broadcast to service library, service library is registered;
S2-2. indirect broadcast mode: service library carries out periodic broadcast in a network the address information of service library self;
S3. service discovery: application program is according to the service management module transmission service search request of the demand of self to its correspondence, and the service management module corresponding with application program performs this request and carry out service search in order, and lookup result is returned to application program; If fail to find required whole services, this application program will enter to hang up waits for listening state, and periodically sends search request, until find service in need to service management module; If found required whole services, application program has sent bind request to service management module; Namely service management module sends bind command to the service that need call;
S4. serve MANET: the bind command that the service management module corresponding according to application program sends, bind between required service, and preserve binding information in the service management module that application program is corresponding;
S5. service call: the service after application call binding;
S6. serve solution to tie up: after application program has been run, send solution tie up request to the service management module that application program is corresponding, the service of service management module to binding sends solution and ties up order, and service solution is tied up, and discharges corresponding resource.
Further, in step S3, the service management module corresponding with application program is carried out service search in order according to the search request of application program and is specifically comprised:
S3-1. service management module corresponding to application program is first searched with other service management module on outer network, if find the service binding record of application program required service in other service management module, then the direct address of service according to preserving sends bind command to destination service, be employed routine call after destination service binding, also in the service management module that application program is corresponding, record its binding information simultaneously;
If S3-2. can not find the service binding record of application program required service in other service management module, then continue service library is in a network searched, if find the service of needs, then sending bind command according to the address of service that service library retains to destination service by service management module makes it bind and the program that is employed called, and also in the service management module that application program is corresponding, records its binding information simultaneously;
If the service library S3-3. in other service management module and network all can not find service binding record or the service of application program required service, then on network, carry out traversal to all services to search, if find the service of needs, then make it bind for application call, and record its binding information in the service management module that application program is corresponding.
Further, in step S2, the own services information of service comprises:
1) Service provider information;
2) concrete function of this service entities describes;
3) other service support needed for complete cost service;
4) effective period of this service;
5) address information of this service on network.
Advantage of the present invention: each service newly entering network is broadcasted after deployment, makes other entity (service, service library, service management module) on network can obtain the information of new service in time.By the design of service library, significantly reduce the number of times of service search, reduce network bandwidth occupancy.The design of service management module achieves service discovery and service binding is all completed by service management module.Because service management module also belongs to a kind of service, namely after application program enters network, service search, service discovery and service binding procedure complete by the service (comprising service management module) on network, whole network is made to be programmable, applied logic can real-time implementation in a network, improves reusability and the systematic function of service.
Accompanying drawing explanation
Fig. 1 is structure of the present invention composition schematic diagram.
Fig. 2 is service search detailed maps of the present invention.
Embodiment
Below in conjunction with concrete drawings and Examples, the invention will be further described.
As shown in Figure 1:
Service management system based on general fit calculation comprises ISP, service, service library, service management module and application program five kinds of entities.Service library itself is also a service, and its function is the information being stored in registered service on this service library, and the service for queries function to outside.At every turn all must again to the problem of all service search for new application program, the present invention devises service management module, and service management module is also a service, the corresponding service management module of each application program.Application program no longer needs all services in traverses network when needing to call service, only need by sending inquiry request to the service management module as intermediary, service management module, to other service management module in network, service library and service-seeking, can know whether that the service that this application program needs exists; After the service determining needs, after MANET can being carried out according to the demand of application program between service, be employed routine call.For the demand of different application, service freely will carry out MANET.Service management module is also by the information on services that the application program that record is corresponding is called simultaneously, conveniently has the application program of same requirements to call required service fast.
Based on a service ad hoc network method for general fit calculation, comprise the following steps S1 ~ S6:
S1. service arrangement: when new service enters network for the first time, needs first dispose it thus become available service.New service is provided by ISP.Process 1 in Fig. 1 illustrates service arrangement step, and ISP A deploys service A, ISP B and deploys a service library B(service library and also can regard a kind of service as), ISP C deploys service C.
S2. serve issue, described service is issued and is comprised direct broadcast mode and indirect broadcast mode;
S2-1. direct broadcast mode: serve and own services information is carried out periodic broadcast in a network, and while carry out directly broadcast to service library, service library is registered; The own services information of service comprises:
1) Service provider information;
2) concrete function of this service entities describes;
3) other service support needed for complete cost service;
4) effective period of this service;
5) address information of this service on network.
Process 2.1 in Fig. 1 is the direct broadcast between service; Process 2.2 is that service is directly broadcasted service library, and now service can be broadcasted to service library separately, also can register to service library while broadcast, make self also to become a member of service library.
On network, interested entity (at least comprising service library) can preserve the information of this service after receiving this broadcast.
S2-2. indirect broadcast mode: service library carries out periodic broadcast in a network the address information of service library self; As shown in the process 2.3 in Fig. 1.Service library is externally broadcasted, and the address of service library is sent to other entity, when other entity needs search service, indirectly obtains the information of registered service by accessing this service library.Service management module preserves broadcast message after receiving the broadcast from service itself or service library, so that service management module initiatively finds when needs inquiry required service.
Service library issues intermediary as service, after the address information of self is broadcasted, service management module can be allowed indirectly to be inquired about service entities by service library, namely service management module to conduct interviews to service library according to the service library address of broadcast thus obtains the information of the service of registering on this service library, and the information content comprises 5 points in above-mentioned S2-1.
S3. service discovery: as shown in the process 3.1 in Fig. 1, process 3.2, process 3.3, process 3.4, process 3.5, application program is according to the service management module transmission service search request of the demand of self to its correspondence, the service management module corresponding with application program performs this request and carries out service search in order, and lookup result is returned to application program; If fail to find required whole services, this application program will enter to hang up waits for listening state, and periodically sends search request, until find service in need to service management module; If found required whole services, application program has sent bind request to service management module; Namely service management module sends bind command to the service that need call;
When application program enters network, network can create a service management module corresponding with this application program.Although this service management module at the beginning content is empty, it can help application program to find suitable service.This service management module can carry out the service of searching needs according to all services of certain order on other service management module, service library and network.
As shown in Figure 2, corresponding with application program service management module is carried out service search in order according to the search request of application program and is specifically comprised:
S3-1. service management module corresponding to application program X is first searched with other service management module on outer network, if find the service binding record of application program X required service in other service management module, then the direct address of service (comprising the address information etc. of service in binding record) according to preserving sends bind command to destination service (service A and service B), be employed program X after service A and service B bind to call, also in the service management module that application program X is corresponding, record is served A and is served the binding information of B simultaneously;
If S3-2. can not find the service binding record of application program X required service in other service management module, then continue service library is in a network searched, if find the service of needs (this sentences service E, F and G is example), then sending bind command according to the address of service that service library retains to service E, F and G by service management module makes it bind and the program that is employed called, and also in the service management module that application program X is corresponding, E, F and G binding information served in record simultaneously;
If the service library S3-3. in other service management module and network all can not find service binding record or the service of application program X required service, then on network, carry out traversal to all services to search, if find the service (service C, D in Fig. 2) of needs, then make service C, D bind to call for application program X, and the binding information of C, D served in record in the service management module that application program X is corresponding.
S4. MANET is served: the real-time binding procedure that namely service MANET process serves.As shown in the process 4 in Fig. 1, the bind command that the service management module corresponding according to application program sends, binds between required service, and preserve binding information in the service management module that application program is corresponding.
S5. service call: the service after application call binding, as shown in the process 5 in Fig. 1.
S6. serve solution to tie up: as shown in the process 6.1 in Fig. 1, process 6.2, process 6.3, after application program has been run, send solution tie up request to the service management module that application program is corresponding, the service of service management module to binding sends solution and ties up order, service solution is tied up, and discharges corresponding resource.
In the present invention, the design of service management module achieves service discovery and service binding is all completed by service management module.Because service management module also belongs to a kind of service, namely after application program enters network, service search, service discovery and service binding procedure complete by the service (comprising service management module) on network, whole network is made to be programmable, applied logic can real-time implementation in a network, improves reusability and the systematic function of service.

Claims (2)

1., based on a service ad hoc network method for general fit calculation, it is characterized in that, comprise the following steps:
S1. service arrangement: when new service enters network for the first time, needs first dispose it thus become available service;
S2. serve issue, described service is issued and is comprised direct broadcast mode and indirect broadcast mode;
S2-1. direct broadcast mode: serve and own services information is carried out periodic broadcast in a network, and while carry out directly broadcast to service library, service library is registered;
S2-2. indirect broadcast mode: service library carries out periodic broadcast in a network the address information of service library self;
S3. service discovery: application program is according to the service management module transmission service search request of the demand of self to its correspondence, and the service management module corresponding with application program performs this request and carry out service search in order, and lookup result is returned to application program; If fail to find required whole services, this application program will enter to hang up waits for listening state, and periodically sends search request, until find service in need to service management module; If found required whole services, application program has sent bind request to service management module; Namely service management module sends bind command to the service that need call;
S4. serve MANET: the bind command that the service management module corresponding according to application program sends, bind between required service, and preserve binding information in the service management module that application program is corresponding;
S5. service call: the service after application call binding;
S6. serve solution to tie up: after application program has been run, send solution tie up request to the service management module that application program is corresponding, the service of service management module to binding sends solution and ties up order, and service solution is tied up, and discharges corresponding resource;
In step S3, the service management module corresponding with application program is carried out service search in order according to the search request of application program and is specifically comprised:
S3-1. service management module corresponding to application program is first searched with other service management module on outer network, if find the service binding record of application program required service in other service management module, then the direct address of service according to preserving sends bind command to destination service, be employed routine call after destination service binding, also in the service management module that application program is corresponding, record its binding information simultaneously;
If S3-2. can not find the service binding record of application program required service in other service management module, then continue service library is in a network searched, if find the service of needs, then sending bind command according to the address of service that service library retains to destination service by service management module makes it bind and the program that is employed called, and also in the service management module that application program is corresponding, records its binding information simultaneously;
If the service library S3-3. in other service management module and network all can not find service binding record or the service of application program required service, then on network, carry out traversal to all services to search, if find the service of needs, then make it bind for application call, and record its binding information in the service management module that application program is corresponding.
2., as claimed in claim 1 based on the service ad hoc network method of general fit calculation, it is characterized in that,
In step S2, the own services information of service comprises:
1) Service provider information;
2) concrete function of this service entities describes;
3) other service support needed for complete cost service;
4) effective period of this service;
5) address information of this service on network.
CN201310314389.2A 2013-07-24 2013-07-24 Based on the service ad hoc network method of general fit calculation Active CN103401912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310314389.2A CN103401912B (en) 2013-07-24 2013-07-24 Based on the service ad hoc network method of general fit calculation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310314389.2A CN103401912B (en) 2013-07-24 2013-07-24 Based on the service ad hoc network method of general fit calculation

Publications (2)

Publication Number Publication Date
CN103401912A CN103401912A (en) 2013-11-20
CN103401912B true CN103401912B (en) 2016-03-16

Family

ID=49565435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310314389.2A Active CN103401912B (en) 2013-07-24 2013-07-24 Based on the service ad hoc network method of general fit calculation

Country Status (1)

Country Link
CN (1) CN103401912B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945002B (en) * 2014-05-05 2017-05-31 瞄财网络科技(北京)有限公司 High-effective Service management method based on general fit calculation
CN105681137A (en) * 2014-11-20 2016-06-15 北京海尔广科数字技术有限公司 Method and device for invoking services
CN104363239B (en) * 2014-11-26 2017-04-12 南京大学 Dynamic service binding method based on physical entity environment perception
CN109495539B (en) * 2018-09-26 2021-08-31 深圳爱根斯通科技有限公司 Method and device for preventing sub-equipment from being deleted by mistake, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787524A (en) * 2005-06-22 2006-06-14 北京航空航天大学 Distributed active web service registered information managing system and realizing method thereof
US7218714B2 (en) * 2002-12-20 2007-05-15 Lenovo (Beijing) Limited Method of calling service among devices in home network
CN101170520A (en) * 2007-11-27 2008-04-30 宁波大学 A network system signal processing method based on UDDI
CN102215266A (en) * 2011-06-20 2011-10-12 中兴通讯股份有限公司 Implementation method of persistency services and persistency service system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7218714B2 (en) * 2002-12-20 2007-05-15 Lenovo (Beijing) Limited Method of calling service among devices in home network
CN1787524A (en) * 2005-06-22 2006-06-14 北京航空航天大学 Distributed active web service registered information managing system and realizing method thereof
CN101170520A (en) * 2007-11-27 2008-04-30 宁波大学 A network system signal processing method based on UDDI
CN102215266A (en) * 2011-06-20 2011-10-12 中兴通讯股份有限公司 Implementation method of persistency services and persistency service system

Also Published As

Publication number Publication date
CN103401912A (en) 2013-11-20

Similar Documents

Publication Publication Date Title
CN103401912B (en) Based on the service ad hoc network method of general fit calculation
CN101694665B (en) Method and device for data query of heterogeneous data source
US20160042029A1 (en) Managing a Distributed Database
EP3036630A1 (en) Method and system for generating a virtual device resource accessible by an application
CN104967873A (en) Streaming live scheduling method, system and scheduling server
CN110209719A (en) A kind of multitype database based on micro services framework uniformly accesses system and method
CN102591934A (en) Zookeeper-based method for realizing automatic expansion and switching of multiple Solr Shards
CN105246118A (en) Wireless network communication realization method based on positioning information
JP2018530270A5 (en)
US20170085673A1 (en) Attribute Operating Method and Apparatus
CN103530335B (en) In-stockroom operation method and device of electric power measurement acquisition system
CN102594885A (en) Sensor network analyzing intercommunicating platform, sensor network intercommunicating method and system
WO2015117391A1 (en) Method for realizing resource attribute notification, and common service entity
CN110581893A (en) data transmission method and device, routing equipment, server and storage medium
WO2004095168A3 (en) System and method for providing a territory management tool
JP2013058108A (en) Tag management device and tag management program
CN109947764B (en) Query enhancement system and method for constructing elastic site based on time delay
CN103716348A (en) Method, system and device for data access based on CDN network
CN105681327A (en) Automatic query method and system for firewall policy
US20150172380A1 (en) Node apparatus, information processing system, information processing method, and recording medium recording information processing program
CN112218104B (en) Data transmission method, device, terminal equipment and storage medium
CN105404504A (en) Debugging method and device of Web assembly
CN103078968B (en) Domain name inquiry method, IP divide race's method, device and equipment
US20170142614A1 (en) Load Control Method and Apparatus for Notification Messages
CN111193805B (en) Resource discovery method and device

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