CN103401912A - Pervasive computing-based service ad hoc networking method - Google Patents

Pervasive computing-based service ad hoc networking method Download PDF

Info

Publication number
CN103401912A
CN103401912A CN2013103143892A CN201310314389A CN103401912A CN 103401912 A CN103401912 A CN 103401912A CN 2013103143892 A CN2013103143892 A CN 2013103143892A CN 201310314389 A CN201310314389 A CN 201310314389A CN 103401912 A CN103401912 A CN 103401912A
Authority
CN
China
Prior art keywords
service
management module
application program
binding
network
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
CN2013103143892A
Other languages
Chinese (zh)
Other versions
CN103401912B (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

Images

Abstract

The invention provides a pervasive computing-based service ad hoc networking method. The pervasive computing-based service ad hoc networking method comprises the following steps: S1, deploying service, wherein new service is required to be deployed at first when accessing to the internet for the first time so as to become usable service; S2, issuing the service, wherein the service issuance comprises a direct broadcast mode and an indirect broadcast mode; S3, discovering the service, i.e., transmitting a service lookup request to a corresponding service management module by an application program according to the demand of the application program, executing the request by the service management module corresponding to the application program to look up the service and returning a lookup result to the application program; S4, networking the service, i.e., binding required services according to a binding command transmitted by the service management module corresponding to the application program; S5, calling the service; S6, unbinding the service. According to the method, the service lookup frequency can be greatly reduced and the network bandwidth occupancy rate is reduced.

Description

Service ad hoc network method based on general fit calculation
Technical field
The present invention relates to the general fit calculation system, especially a kind of ad hoc network method of service based on general fit calculation.
Background technology
At present, the application program in Internet of Things needs to search for and call its needs at the beginning of operation service, each application program must be searched all services, increases to a great extent offered load, has improved time and space cost.While especially needing to call a plurality of service, can only search one by one by the service in network, and may appear at the situation of failing to find the service of mating fully that traveled through after all are served.The method search efficiency of this traversal is low, to network, causes very large operating pressure.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art, a kind of ad hoc network method of service based on general fit calculation is provided, can significantly reduce the number of times of service search, reduced network bandwidth occupancy.The technical solution used in the present invention is:
A kind of ad hoc network method of service based on general fit calculation comprises the following steps:
S1. service arrangement: when new service enters network for the first time, thereby need first dispose and become available service it;
S2. service issue, described service issue comprises direct broadcast mode and indirect broadcast mode;
S2-1. direct broadcast mode: service is carried out periodic broadcast by self information on services in network, and, when to service library, carrying out directly broadcast, on service library, registers;
S2-2. indirect broadcast mode: service library carries out the address information of service library self periodic broadcast in network;
S3. service discovery: application program sends the service search request according to the demand of self to its corresponding service management module, and the service management module corresponding with application program carried out this request and carried out in order service search, 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 to service management module, sends search request, until find the service that all need; If found required whole services, application program sends bind request to service management module; Service management module is namely sent bind command to the service that need call;
S4. serve MANET: according to the bind command that service management module corresponding to application program sent, between required service, bind, and preserve binding information in service management module corresponding to application program;
S5. service call: the service after the application call binding;
S6. serving solution ties up: after the application program operation completes, to service management module corresponding to application program, send solution and tie up request, service management module is sent solution to the service of binding and is tied up order, and the service solution is tied up, and discharges corresponding resource.
Further, in step S3, the service management module corresponding with application program carried out in order service search according to the search request of application program and specifically comprised:
S3-1. at first search service management module corresponding to application program with other service management module on outer network, if on other service management module, find the service binding record of application program required service, directly according to the address of service of preserving, to destination service, send bind command, after the destination service binding, be employed routine call, also on service management module corresponding to application program, record its binding information simultaneously;
If S3-2. on other service management module, can not find the service binding record of application program required service, continue to search on the service library in network, if find the service that needs, by service management module, according to the address of service that keeps on service library, to destination service, send bind command its binding the program that is employed are called, also on service management module corresponding to application program, record its binding information simultaneously;
If S3-3. on the service library in other service management module and network, all can not find service binding record or the service of application program required service, on network, all services are traveled through and search, if find the service that needs, make its binding for the application routine call, and record its binding information on service management module corresponding to application program.
Further, in step S2, self information on services of service comprises:
1) ISP's information;
2) concrete function of this service entities is described;
3) complete other required service support of this service;
4) effective period of this service;
5) address information of this service on network.
Advantage of the present invention: each newly enters the service of network and broadcasts after deployment, makes other entity (service, service library, service management module) on network can in time obtain the information of new service.By the design of service library, significantly reduce the number of times of service search, reduced network bandwidth occupancy.The design of service management module has realized that service discovery and service binding are 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 on network (comprising service management module), it is programmable making whole network, applied logic can be in network real-time implementation, improved reusability and the systematic function of service.
The accompanying drawing explanation
Fig. 1 is that structure of the present invention forms schematic diagram.
Fig. 2 is service search detailed maps of the present invention.
Embodiment
The invention will be further described below in conjunction with concrete drawings and Examples.
As shown in Figure 1:
Service management system based on general fit calculation comprises ISP, service, service library, service management module and five kinds of entities of application program.Service library itself is also a service, and its function is the information that is stored in registered service on this service library, and provides query function to the service of outside.At every turn all must be again to the problem of all service search for new application program, the present invention has designed 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 on traverses network when needs call service, only need by the service management module as intermediary is sent to inquiry request, service management module, to other service management module, service library and service-seeking in network, can know whether that the service that this application program needs exists; After having determined the service that needs, between service, can carry out being employed routine call after MANET according to the demand of application program.For the demand of different application, MANET will be freely carried out in service.Service management module also will record the information on services that corresponding application program is called simultaneously, conveniently have the application program of same requirements to call fast required service.
A kind of ad hoc network method of service based on general fit calculation comprises the following steps S1~S6:
S1. service arrangement: when new service enters network for the first time, thereby need first dispose and become available service it.New service is provided by the ISP.Process 1 in Fig. 1 has represented the service arrangement step, and ISP A has disposed service A, and ISP B has disposed a service library B(service library also can regard a kind of service as), ISP C has disposed service C.
S2. service issue, described service issue comprises direct broadcast mode and indirect broadcast mode;
S2-1. direct broadcast mode: service is carried out periodic broadcast by self information on services in network, and, when to service library, carrying out directly broadcast, on service library, registers; Self information on services of service comprises:
1) ISP's information;
2) concrete function of this service entities is described;
3) complete other required service support of this 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 service this moment can be broadcasted to service library separately, also can in broadcast, to service library, register, and making self also becomes a member of service library.
Interested entity on network can be preserved (comprising at least service library) information of this service after receiving this broadcast.
S2-2. indirect broadcast mode: service library carries out the address information of service library self periodic broadcast in network; 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, by accessing this service library, indirectly obtains the information of registered service.Service management module is preserved broadcast message after receiving the broadcast from service itself or service library, so that service management module is initiatively found when needs inquiry required service.
Service library is as service issue intermediary, after the address information of self is broadcasted, can allow service management module by service library, service entities be inquired about indirectly, be thereby that service management module conducts interviews and obtain the information of the service of having registered on this service library service library according to the service library address of broadcast, 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 sends the service search request according to the demand of self to its corresponding service management module, the service management module corresponding with application program carried out this request and carried out in order service search, 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 to service management module, sends search request, until find the service that all need; If found required whole services, application program sends bind request to service management module; Service management module is namely sent bind command to the service that need call;
When application program entered network, network can create a service management module corresponding with this application program.Although this service management module content at the beginning is empty, it can help application program to find suitable service.This service management module can all services on other service management module, service library and network be searched the service that needs according to certain order.
As shown in Figure 2, the service management module corresponding with application program carried out in order service search according to the search request of application program and specifically comprised:
S3-1. at first search service management module that application program X is corresponding with other service management module on outer network, if on other service management module, find the service binding record of application program X required service, directly according to the address of service of preserving (comprising the address information of service etc. in the binding record), to destination service (service A and service B), send bind command, after service A and service B binding, be employed program X and call, the while is the binding information of record service A and service B on service management module corresponding to application program X also;
If S3-2. on other service management module, can not find the service binding record of application program X required service, continue to search on the service library in network, if find the service (this sentences service E, F and G is example) that needs, by service management module, according to the address of service that keeps on service library, to service E, F and G, send bind command its binding the program that is employed called, simultaneously also on service management module corresponding to application program X record serve E, F and G binding information;
If S3-3. on the service library in other service management module and network, all can not find service binding record or the service of application program X required service, on network, all services are traveled through and search, if find the service (service C, D in Fig. 2) that needs, make to serve C, D binding and call for application program X, and the binding information that C, D served in record on service management module corresponding to application program X.
S4. serve MANET: the real-time binding procedure that service MANET process is namely served.As shown in the process 4 in Fig. 1, according to the bind command that service management module corresponding to application program sent, between required service, bind, and preserve binding information in service management module corresponding to application program.
S5. service call: the service after the application call binding, as shown in the process 5 in Fig. 1.
S6. serving solution ties up: as shown in the process 6.1 in Fig. 1, process 6.2, process 6.3, after the application program operation completes, to service management module corresponding to application program, send solution and tie up request, service management module is sent solution to the service of binding and is tied up order, the service solution is tied up, and discharges corresponding resource.
In the present invention, the design of service management module has realized that service discovery and service binding are 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 on network (comprising service management module), it is programmable making whole network, applied logic can be in network real-time implementation, improved reusability and the systematic function of service.

Claims (3)

1. the ad hoc network method of the service based on general fit calculation, is characterized in that, comprises the following steps:
S1. service arrangement: when new service enters network for the first time, thereby need first dispose and become available service it;
S2. service issue, described service issue comprises direct broadcast mode and indirect broadcast mode;
S2-1. direct broadcast mode: service is carried out periodic broadcast by self information on services in network, and, when to service library, carrying out directly broadcast, on service library, registers;
S2-2. indirect broadcast mode: service library carries out the address information of service library self periodic broadcast in network;
S3. service discovery: application program sends the service search request according to the demand of self to its corresponding service management module, and the service management module corresponding with application program carried out this request and carried out in order service search, 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 to service management module, sends search request, until find the service that all need; If found required whole services, application program sends bind request to service management module; Service management module is namely sent bind command to the service that need call;
S4. serve MANET: according to the bind command that service management module corresponding to application program sent, between required service, bind, and preserve binding information in service management module corresponding to application program;
S5. service call: the service after the application call binding;
S6. serving solution ties up: after the application program operation completes, to service management module corresponding to application program, send solution and tie up request, service management module is sent solution to the service of binding and is tied up order, and the service solution is tied up, and discharges corresponding resource.
2. the ad hoc network method of the service based on general fit calculation as claimed in claim 1, is characterized in that, in step S3, the service management module corresponding with application program carried out in order service search according to the search request of application program and specifically comprised:
S3-1. at first search service management module corresponding to application program with other service management module on outer network, if on other service management module, find the service binding record of application program required service, directly according to the address of service of preserving, to destination service, send bind command, after the destination service binding, be employed routine call, also on service management module corresponding to application program, record its binding information simultaneously;
If S3-2. on other service management module, can not find the service binding record of application program required service, continue to search on the service library in network, if find the service that needs, by service management module, according to the address of service that keeps on service library, to destination service, send bind command its binding the program that is employed are called, also on service management module corresponding to application program, record its binding information simultaneously;
If S3-3. on the service library in other service management module and network, all can not find service binding record or the service of application program required service, on network, all services are traveled through and search, if find the service that needs, make its binding for the application routine call, and record its binding information on service management module corresponding to application program.
3. the ad hoc network method of the service based on general fit calculation as claimed in claim 1, is characterized in that,
In step S2, self information on services of service comprises:
1) ISP's information;
2) concrete function of this service entities is described;
3) complete other required service support of this 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 true CN103401912A (en) 2013-11-20
CN103401912B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945002A (en) * 2014-05-05 2014-07-23 江苏物联网研究发展中心 Efficient service management method based on pervasive computing
CN104363239A (en) * 2014-11-26 2015-02-18 南京大学 Dynamic service binding method based on physical entity environment perception
CN105681137A (en) * 2014-11-20 2016-06-15 北京海尔广科数字技术有限公司 Method and device for invoking services
CN109495539A (en) * 2018-09-26 2019-03-19 深圳爱根斯通科技有限公司 Method, apparatus, electronic equipment and the storage medium for preventing sub- equipment from accidentally being deleted

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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945002A (en) * 2014-05-05 2014-07-23 江苏物联网研究发展中心 Efficient service management method based on pervasive computing
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
CN104363239A (en) * 2014-11-26 2015-02-18 南京大学 Dynamic service binding method based on physical entity environment perception
CN104363239B (en) * 2014-11-26 2017-04-12 南京大学 Dynamic service binding method based on physical entity environment perception
CN109495539A (en) * 2018-09-26 2019-03-19 深圳爱根斯通科技有限公司 Method, apparatus, electronic equipment and the storage medium for preventing sub- equipment from accidentally being deleted

Also Published As

Publication number Publication date
CN103401912B (en) 2016-03-16

Similar Documents

Publication Publication Date Title
CN111901367B (en) Network data analysis method and device
US10241839B2 (en) Method and system for generating a virtual device resource accessible by an application
CN107317830B (en) Service discovery processing method and device
CN103401912A (en) Pervasive computing-based service ad hoc networking method
CN102843426B (en) Based on Web cache resources shared system and the method for intelligent father node
US20160380968A1 (en) Generating network device names
JP2018530270A5 (en)
CN105636241B (en) Deletion and registration method of M2M node and M2M node
CN102395126B (en) Mobile Ad hoc network address configuration realization method based on tree structure
CN105282682B (en) Method for realizing resource attribute notification and public service entity
US20170085673A1 (en) Attribute Operating Method and Apparatus
WO2004095168A3 (en) System and method for providing a territory management tool
WO2012068833A1 (en) Method and system for collecting alarm and performance of communication device
CN103346975B (en) Data based on wireless sensor network forward and storage method
US9762680B2 (en) Node apparatus operating as proxy server
CN103889021A (en) Low power and lossy network member updating method and DODAG root node
CN109862089A (en) Data processing method, device, system, computer readable storage medium
CN105025459B (en) Resource notification method and system, local CSE and remote CSE
CN103347100B (en) A kind of 6LoWPAN wireless transducer network address configuration method
CN111193805B (en) Resource discovery method and device
KR20150113375A (en) Computing apparatus for data distribution service and method for operating thereof
CN113254437B (en) Batch processing job processing method and device
CN114710350A (en) Allocation method and device for callable resources
Ayad et al. Cross-layer routing based on semantic web services discovery with energy evaluation and optimization in MANET
CN103442407B (en) The system of selection of wireless relay in a kind of low-frequency range low-consumption wireless local area network

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