CN100352218C - Method of resource discovery in dynamic network environment - Google Patents
Method of resource discovery in dynamic network environment Download PDFInfo
- Publication number
- CN100352218C CN100352218C CNB2004100377095A CN200410037709A CN100352218C CN 100352218 C CN100352218 C CN 100352218C CN B2004100377095 A CNB2004100377095 A CN B2004100377095A CN 200410037709 A CN200410037709 A CN 200410037709A CN 100352218 C CN100352218 C CN 100352218C
- Authority
- CN
- China
- Prior art keywords
- service
- equipment
- message
- software
- resource
- 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.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 230000004044 response Effects 0.000 claims abstract description 28
- 238000012544 monitoring process Methods 0.000 claims abstract description 5
- 230000008859 change Effects 0.000 claims description 62
- 238000004519 manufacturing process Methods 0.000 claims description 31
- 230000005540 biological transmission Effects 0.000 claims description 8
- 230000000977 initiatory effect Effects 0.000 claims description 6
- 230000008569 process Effects 0.000 claims description 6
- 238000012217 deletion Methods 0.000 claims description 3
- 230000037430 deletion Effects 0.000 claims description 3
- 238000012423 maintenance Methods 0.000 claims description 2
- 238000007689 inspection Methods 0.000 claims 1
- 238000012545 processing Methods 0.000 abstract description 3
- 238000012986 modification Methods 0.000 abstract 1
- 230000004048 modification Effects 0.000 abstract 1
- 239000000344 soap Substances 0.000 description 16
- 238000012360 testing method Methods 0.000 description 15
- 238000005516 engineering process Methods 0.000 description 8
- 238000005096 rolling process Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 239000000047 product Substances 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000012467 final product Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000007306 turnover Effects 0.000 description 1
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
The present invention relates to a resource discovering method suitable for a dynamic network environment, which discovers network resources so as to realize sharing when a network topology structure is in a highly unstable state. Software for supporting the dynamic resource discovery of equipment is installed on physical equipment in a network, and the software comprises a starting and stopping control interface used for starting and stopping the software, a service registering and cancelling interface used for monitoring the service condition of the equipment and a resource searching, resource variation subscribing and resource variation notifying interface used for discovering the resources; a network invoking interface of the software listens and responds at a specified multicast address, and the software monitors the operating state of the equipment and the modification state of the resources by invoking and processing the interfaces. The dynamic discovery of the network resources is realized on the software of different kinds of equipment by means of a multicast search, a corresponding unicast response, the subscription and the notification of a resource variation event; when no resource management equipment exists in the network, the whole network doesn't need to be traversed.
Description
Technical field
The present invention relates to a kind of computer network resources discovery technique, relate to the resource discovering technology under the dynamic network environment or rather.This dynamic network is meant that network topology structure is under a kind of height unsure state, i.e. the equipment network of coming in and going out continually.
Background technology
Along with the fast development of computer technology and network technology, very universal thereby various device connects shared resource by network.The prerequisite that realizes resource-sharing is a resource discovering, especially in the network environment with height dynamic characteristic, as WLAN (wireless local area network).Because each equipment passes in and out network easily, and turnover continually, how to find that accurately the resource situation in the network just becomes an important technological problems of efficient shared network resource rapidly.
At the resource discovering problem of relative fixed network environment, industry has a lot of mature technique, as positioning service agreement SLP (Service Location Protocol), Jini, correlation techniques such as OSGI.These technology have a denominator, promptly in network, all need a relatively-stationary resource index equipment, miscellaneous equipment in the network is by issuing own resource to enrich resource index equipment and retrieve resources indexing apparatus to find the resource in the network and then to realize resource-sharing to resource index equipment.Need a relative fixed equipment to play directory agent (Directory Agent) effect as the SLP agreement,, need a permanent plant that discovery (Lookup) service is provided,, need a fixing gateway to realize resource index as the OSGI technology as the Jini technology.
Application number is 02129531.x, name is called in " the service search method when realizing resource-sharing in the home network " Chinese patent application file, a kind of service search method of using in home network is disclosed, when not having asset management device in the network, need search the equipment foundation earlier of service and being connected of target device, initiate the service search request one by one to target device again.Owing to can't know there is the service that needs on which equipment, therefore, when searching, might need all devices in the traverses network just can finish search procedure, search efficiency is very low beyond doubt in advance.
In sum, under dynamic network environment, owing to can't specify an equipment in advance as resource index equipment, thereby these technology of above introduction, all can't effectively play a role.
Summary of the invention
The objective of the invention is to design the resource discovery method under a kind of dynamic network environment, promptly be in the Internet resources discover method of height under the labile state in network topology structure, need not in network, to specify in advance a resource index equipment, frequently pass in and out in the environment of network at equipment, can effectively find the resource in the network and realize resource-sharing.
The equipment that the inventive method is involved, be meant be connected on the network can operate as normal physical equipment, the miscellaneous equipment of any equipment in the network in can accesses network also can be visited by the miscellaneous equipment in the network.
The service that the inventive method is involved is meant functional entity on the equipment of operating in, that have callable interface, and the service on any equipment in the network can be by the application call of this equipment, or by the application call on the miscellaneous equipment.
The resource that the inventive method is involved is equipment and both general designations of service.
The technical scheme that realizes the object of the invention is such: the Internet resources discover method under a kind of dynamic network environment is characterized in that comprising:
A. on the equipment of resource discovering under each hope realization dynamic network environment, the software that is used to support dynamic resource discovery is installed, this software comprises the start-up control interface that is used to start, stop software itself, stops control interface, interface is nullified in the service registry interface, the service that are used for monitoring equipment self service status, be used to find resource lookup interface, change in resources subscribing interface and the change in resources notification interface of resource and be used on the multicast address of appointment, intercepting and making the network call interface of replying;
B. the equipment behind the described software startup that is used to support dynamic resource discovery is when calling and handling described service registry interface, carry out service log, and to described multicast address multicast transmission service on-line message, this equipment is when calling and handling described service and nullify interface, delete service log, and serve the message that rolls off the production line to described multicast address multicast transmission;
C. equipment is intercepted the service on-line message of being sent by miscellaneous equipment on the network on multicast address, by application call on it and handle the change in resources notification interface of described software, obtain to serve dynamic-change information on the network, application program is to providing service routine to initiate routine call on the supply equipment; When needed, by application call on it and handle the resource lookup interface of described software, send service search message to described multicast address multicast, comprise search criterion in this service search message, on multicast address, listen to the device software of searching message, from service log, find the service that meets search criterion, broadcast to take to the tables of equipment of initiating service search and be engaged in searching response.And,
D. described equipment is when calling and handling described change in resources subscribing interface, send the request message of change in resources event subscription to the described software of designated equipment, the designated equipment that receives this request message carries out the event subscription record when decision receives event subscription, when this designated equipment is intercepted the service of being sent by miscellaneous equipment and is reached the standard grade or roll off the production line message on multicast address also searched events subscribe to record, when discovery has the service that meets the subscription record to reach the standard grade or roll off the production line, send the dynamic change notification message of service increase or minimizing to event subscription requests equipment.
The present invention is by installing a software that is used for the support equipment dynamic resource discovery on the physical equipment in network, this software is responsible for monitoring the operating state and the change of the resource on the equipment state of equipment of itself.Owing to need not in network, to specify in advance a resource index equipment, then can under dynamic network environment, need not to travel through equipment on the whole network, just can find Internet resources at any time.
Description of drawings
Fig. 1 is the message transmission schematic diagram that rolls off the production line on the equipment in the dynamic network environment.
Fig. 2 is the message transmission schematic diagram that rolls off the production line in the service in the dynamic network environment.
Fig. 3 is a service search process schematic diagram in the dynamic network environment.
Fig. 4 is change in resources event subscription/informing mechanism schematic diagram in the dynamic network environment.
Fig. 5 is the resource discovery procedure embodiment schematic diagram in the home network.
Fig. 6 is the resource discovery procedure embodiment schematic diagram in the office network.
Embodiment
Implement the inventive method, must wish in dynamic network environment, dynamically on the equipment of discovery resource a software (summary is " software ") that is used to support dynamic resource discovery to be installed at each, comprise software startup and stop control interface, service registry is nullified interface with service, the resource lookup interface, change in resources subscribing interface, change in resources notification interface and network call interface.Software startup wherein with stop control interface, service registry is nullified interface with service, the resource lookup interface, the change in resources subscribing interface, the change in resources notification interface can be referred to as the local calling interface of software.Network call interface is wherein specified a network multicast address 259.255.255.250:1900, and the network call interface of software is intercepted miscellaneous equipment sends in the network the internet message that is used for resource discovering and corresponding response message is sent to network on the equipment on the network multicast address of this appointment.
By calling and handle software startup in the local calling interface, stopping control interface, described software can change the operating state of software itself as required, comprises starting or stoping.By to the service registry in the local calling interface and the processing of calling of nullifying interface, described software can monitoring equipment self service status, comprises that the service that service is write down and will write down deletes.Need to use the application program of service on one equipment, find resource on the network by calling resource lookup interface, change in resources subscribing interface, the change in resources notification interface handled in the local calling interface.
Referring to Fig. 1, the upper and lower line message transmitting process of the equipment between device A shown in the figure and equipment B.
Step 11, the user comes this software among the starting device B by supporting the start-up control interface of dynamic resource discovery software among the starting device B;
Step 12, this software on the equipment B is after the startup interface is called and successfully handles, to network multicast address 259.255.255.250:1900 multicast transmitting apparatus on-line message, in the equipment on-line message, comprise other attribute information of the equipment indispensability such as device identification, B device name of this equipment B at least;
Step 13, device A receives the equipment on-line message of B equipment by intercepting network multicast address 259.255.255.250:1900, and device A software can be by the application program of change in resources notification interface with the equipment on-line message announcement apparatus A of B equipment.
Step 14, the user comes this software among the arrestment B by supporting the interface that stops of dynamic resource discovery software among the starting device B;
Step 15, this software on the equipment B is after stopping that interface is called and successfully handling, to the network multicast address 259.255.255.250:1900 multicast transmitting apparatus message that rolls off the production line, in rolling off the production line message, equipment comprises other attribute information of the equipment indispensability such as device identification, B device name of this equipment B at least;
Step 16, device A be by intercepting network multicast address 259.255.255.250:1900, the equipment that the receives B equipment message that rolls off the production line, and device A software can be by the change in resources notification interface with the roll off the production line application program of message informing device A of the equipment of B equipment.
Referring to Fig. 2, the upper and lower line message transmitting process of the service between device A shown in the figure and equipment B.
Step 22, equipment B send the service on-line message to the 259.255.255.250:1900 multicast of network multicast address simultaneously, comprise the device identification of B equipment at least in the service on-line message, the service identifiers of increase, COS, service name etc.
Step 25, equipment B send to the 259.255.255.250:1900 multicast of network multicast address simultaneously and serve the message that rolls off the production line, and comprise the device identification of B equipment at least in message is rolled off the production line in service, the service identifiers of the service of minimizing, COS, service name etc.
Referring to Fig. 3, be a service search process.
Step 31, with step 21 among Fig. 2, software is after the service registry interface that is provided is called " Test " by name service routine calls and successfully handles on the equipment B, carry out service log, the relevant information of i.e. " Test " service of being increased of record, relevant information comprises that at least COS, service identifiers, service name, service interface describe document information etc.;
Step 32, with step 22 among Fig. 2, equipment B sends the service on-line message to the 259.255.255.250:1900 multicast of network multicast address simultaneously, comprises the device identification of B equipment in the service on-line message at least, the service identifiers of " Test " service of increase, COS, service name etc.
Step 33, with step 21 among Fig. 2, software is after the service registry interface that is provided is called " Test 1 " by name service routine calls and successfully handles on the device A, carry out service log, the relevant information of i.e. " Test 1 " service of being increased of record, relevant information comprises that at least COS, service identifiers, service name, service interface describe document information etc.;
Step 34, with step 22 among Fig. 2, device A sends the service on-line message to the 259.255.255.250:1900 multicast of network multicast address simultaneously, in the service on-line message, comprise the device identification of A equipment at least, the service identifiers of " Test 1 " service of increase, COS, service name etc.
Step 35, equipment C goes up software by intercepting network multicast address 259.255.255.250:1900, receives above-mentioned on-line message, and the application program of equipment C is by calling the resource lookup interface of software, and lookup names is the service routine of " Test ";
Step 36, application program on the equipment C sends service search message by the resource lookup interface of software to the 259.255.255.250:1900 multicast of network multicast address, at least comprise device identification, the application program identification of the equipment C that initiates service search in the service search message, and search criterion, in search criterion, comprise the combination of service name to be found or COS or service place device identification or above-mentioned condition at least.
Step 371, software in the network on the device A listens to service search message by intercepting network multicast address 259.255.255.250:1900, analysis service is searched device identification and the application program identification that message is known the equipment C of service search condition and initiation service search, by to the service log of this device A and the coupling of service search condition, judge whether this equipment exists the service that meets search criterion, service name by registration thereon is " Test 1 ", do not exist name to be called the service routine of " Test ", so do not respond.
Step 372, software in the network on the equipment B listens to service search message by intercepting network multicast address 259.255.255.250:1900, analysis service is searched device identification and the application program identification that message is known the equipment C of service search condition and initiation service search, by to the service log of this equipment B and the coupling of service search condition, judge whether this equipment B exists the service that meets search criterion, service name by registration thereon is " Test ", promptly exists name to be called the service routine of " Test ".
Step 38, equipment B sends the service search response message to the equipment C clean culture of initiating service search, comprises the device identification of " Test " service place equipment B in the service search response message at least, service identifiers, COS, service name etc.
Referring to Fig. 4, the event subscription/notification procedure of change in resources shown in the figure.
Step 401, a certain application program F in the network on arbitrary equipment B can be by calling the change in resources event subscription interface of its software, and making its software send the COS of subscribing to the corresponding software on the designated equipment A is the change in resources event subscription requests message of " Printer ";
Step 402, equipment B sends change in resources event subscription requests message to device A, at least the matching condition that comprises the interested change in resources message of this application program in this change in resources event subscription requests message, in matching condition, indicate interested resource type (equipment or service), resource identification (device identification or service identifiers), Resource Properties (device type or COS), resource name (device name or service name) etc.
Step 403, software in the network on the device A receive that equipment B sends about COS during for the change in resources event subscription requests message of " Printer ", can whether accept this event subscription according to this equipment current disposal ability or other factors decision, decision is carried out the event subscription record and is returned change in resources event subscription response message to equipment B when accepting.Indicate the result to subscribe request in this change in resources event subscription response message, comprise success (or failure), the subscription when subscribing to successfully identifies and subscribes to effective time etc.
Step 404, with step 21 among Fig. 2, equipment C goes up software after the service registry interface that is provided (or nullifying interface) is called by a certain service routine G and successfully handles, carry out service log (or service deletion), promptly record increases the relevant information of (or minimizing) service, COS in this relevant information is that " Printer ", service name are " Test ", comprises that also service identifiers, service interface describe document information etc.;
Step 405, with step 22 among Fig. 2, equipment C sends to the 259.255.255.250:1900 multicast of network multicast address simultaneously and serves (or rolling off the production line) message of reaching the standard grade, comprise the device identification of C equipment in (or rolling off the production line) message of reaching the standard grade in service, the service identifiers of increase (or minimizing), COS " Printer ", service name " Test " etc.
Step 406, software in the network on the device A receives service (or rolling off the production line) message of reaching the standard grade by intercepting network multicast address 259.255.255.250:1900, whether should check the event subscription record in this software, checking has therewith that service " Printer " changes corresponding subscribe request.
Step 407, when existing service " Printer " therewith to change corresponding subscribe request, then should send corresponding change in resources event notice information to the subscription equipment B in subscribing to record, promptly send corresponding (or rolling off the production line) message of reaching the standard grade of serving to equipment B, in (or rolling off the production line) message is reached the standard grade in this service, indicate the service message that changes, can comprise COS " Printer ", service identifiers, service name " Test " etc. in this service message.
Step 408, software in the network on the equipment B is after receiving the subscription success response that device A returns the change in resources event subscription requests, should start and subscribe to the record maintenance process, surpass the subscription that provides in the subscription response writing time during effective time if certain is subscribed to, this subscribes to record should be deleted.Application program F on the equipment C knows that by the change in resources event notification interface of software change in resources incident one " Printer " type of service reaches the standard grade (or rolling off the production line), just can use the Service Source of the respective change on (or stopping using) equipment C.
Step 409, arbitrary equipment such as equipment B in the network, after knowing its event subscription success by the change in resources event notification interface of its software, can obtain one and subscribe to effective time, in this effective time, application program can be called the change in resources subscribing interface of software, makes its software send event subscription refresh requests message to the device A of accepting event subscription, at least comprise sign, the information such as application program identification of subscribing in the event subscription refresh requests message.
Step 410, when the software in the network on any equipment such as the device A is received event subscription refresh requests message, should check the event subscription record in the software, check whether there is this record, and whether accept event subscription according to the disposal ability of this equipment or other factors decision and refresh, and return event subscription refresh response message to the equipment B of initiate subscribing to refresh requests message, and in event subscription refresh response message, comprise at least and subscribe to sign, subscribe to information such as effective time.
Referring to Fig. 5, with the resource discovering of home network explanation the present invention under dynamic environment.Comprise PC, television set and notebook computer that software described in the present invention has been installed in the one family network, and notebook, PC, TV connect by wireless peer-to-peer network.The content of multimedia of having installed respectively based on software of the present invention on PC, the notebook provides service routine, and the content of multimedia play-back application based on software of the present invention then has been installed on the TV.
When PC, notebook are in off-mode, and TV is when being in open state, and TV is intercepted the equipment and the upper and lower line message of service in the network on the network multicast address.
After PC starts and adds network, the startup interface that content of multimedia on the PC provides service routine at first to call software starts software, this software is to network multicast address 239.255.255.250:1900 multicast transmitting apparatus on-line message, and the software on the TV then can listen to PC equipment on-line message on appropriate address.This equipment on-line message form is as shown in table one.
Table one
The equipment on-line message |
M-NOTIFY*HTTP/1.1 |
Host:239.255.255.255.250:1900 |
Cache-control:max-age=30 |
Location:http://www.igrs.org/device |
NT:urn:IGRS:Device:DeviceType:PC |
NTS:ssdp:alive |
SERVER:OS/version IGRS/1.0product/version |
USN:urn:IGRS:Device:DeviceId:012dabcdefg |
Man:”http://www.igrs.org/spec”;ns=01 |
01-IGRSVersion:IGRS/1.0 |
01-IGRSMessageType:DeviceOnlineAdvertisement |
01-SequenceId:0000001 |
01-ConfigId:00001 |
01-BootId:000001 |
01-DeviceName:MyPC |
01-DeviceType:PC |
After the start-up control interface that content of multimedia provides service routine to call software is also successful, can call the registration interface of software, register name is PCMediaDatabase, type is the service of MediaContentService, trigger software and send the service on-line message to network multicast address 239.255.255.250:1900, the form of this service on-line message as shown in Table 2.
Table two
The service on-line message |
M-NOTIFY*HTTP/1.1 |
Host:239.255.255.255.250:1900 |
Cache-control:max-age=30 |
Location:http://www.igrs.org/device |
NT: urn:IGRS:Service:SeviceType:MediaContentService |
NTS:ssdp:alive |
SERVER:OS/version IGRS/1.0product/version |
USN:urn:IGRS:Device:DeviceId:012dabcdefg |
Man:”http://www.igrs.org/spec”;ns=01 |
01-IGRSVersion:IGRS/1.0 |
01-IGRSMessageType:ServiceOnlineAdvertisement |
01-SequenceId:0000001 |
01-ConfigId:00001 |
01-BootId:000001 |
01-ServiceName:PCMediaDatabase |
01-ServiceType:MediaContentService |
Software on the TV is after receiving on the 239.255.255.250:1900 multicast address that content of multimedia provides the service on-line message, can be by change in resources notification interface notice content of multimedia play-back application, play-back application can provide service routine to initiate routine call by the content of multimedia on PC, obtain the multimedia file tabulation on the PC, and show, and then obtain the file that the user selectes and play by the TV circle user oriented.
After notebook starts and enters home network, after the start-up control interface that content of multimedia on the notebook provides service routine to call software is also successful, can call registration interface, register name is NBMediaDatabase, type is the service of MediaContentService, triggers software to network multicast address 239.255.255.250:1900 transmission service on-line message as shown in Table 3.
Table three
The service on-line message |
M-NOTIFY*HTTP/1.1 |
Host:239.255.255.255.250:1900 |
Cache-control:max-age=30 |
Location:http://www.igrs.org/device |
NT: urn:IGRS:Service:SeviceType:MediaContentService |
NTS:ssdp:alive |
SERVER:OS/version IGRS/1.0 product/version |
USN:urn:IGRS:Device:DeviceId:012dabafe1234 |
Man:”http://www.igrs.org/spec”;ns=01 |
01-IGRSVersion:IGRS/1.0 |
01-IGRSMessageType:ServiceOnlineAdvertisement |
01-SequenceId:0000001 |
01-ConfigId:00001 |
01-BootId:000001 |
01-ServiceName:NBMediaDatabase |
01-ServiceType:MediaContentService |
Software on the TV is after receiving the content of multimedia service on-line message of notebook on the 239.255.255.250:1900 multicast address, can be by change in resources notification interface notice content of multimedia play-back application, play-back application can provide service routine to initiate routine call by the content of multimedia on notebook, obtain the multimedia file tabulation on the notebook, and by the demonstration of TV circle user oriented, the user can select interested multimedia file between the service that PC and notebook provided.
It is the service of MediaContentService that multimedia playing program on the TV also can call the type that exists on the resource lookup interface Network Search of software when needed, by the processing of calling to the resource lookup interface, software will be searched message to the media content service that network address 239.255.255.250:1900 multicast sends as shown in Table 4:
Table four
Media content service is searched message |
M-SEARCH*HTTP/1.1 |
Host:239.255.255.250:1900 |
MAN:ssdp:discover |
MX: the maximum time of operating lag |
ST:urn:schemas-IGRS-org:Service:MediaContentService:1 |
Man:”http://www.igrs.org/spec1.0”:ns=01 |
01-IGRSVersion:IGRS/1.0 |
01-IGRSMessageType:SearchServiceRequest |
01-SourceDeviceId:urn:IGRS:Device:DeviceId:012dabc2156 |
Media content service is searched message |
01-SequenceId:000004 |
01-clientId:0000001 |
01-SearchByServiceType: urn:schemas-IGRS-org:Service:MediaContentService |
Software on notebook and the PC by intercept multicast address receive search message from the media content service of TV after, can search response message to television transmission through the search criterion coupling.Table five has provided the service search response message that notebook sends for the TV clean culture.
Table five
The service search response message |
HTTP/1.1200 OK |
Cache-control:max-age=30;no-cache=”Ext” |
Ext: |
SERVER:OS/version IGRS/1.0 product/version |
ST:urn:schemas-IGRS-org:Service:MediaContentService:1 |
USN;urn:IGRS:Device:DeviceId:012dabc1234 |
MAN:”http://www.igrs.org/spec1.0”;ns=01 |
01-IGRSVersion:IGRS/1.0 |
01-IGRSMessageType:SearchServiceResponse |
01-SourceDeviceId:urn:IGRS:Device:DeviceId:012dabc1234 |
01-TargetDeviceId:urn:IGRS:Device:DeviceId:012dabc2156 |
Content-type:text/xml |
Content-length:123 |
MAN:”http://schemas.xmlsoap.org/soap/envelope/”;ns=02 |
02-SoapAction:”IGRS-SearchService-Response” |
<SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelop e/” SOAP-ENV:encodingStyle=”http://schemas.xml soap.org/soap /encoding/”> |
<SOAP-ENV:Body> |
<DeviceOperation xmlns=“http://www.igrs.org/spec1.0”> |
<AcknowledgId>00004</AcknowledgeId> |
<ClientId>0000001</ClientId> |
<ReturnCode>200</ReturnCode> |
<SearchResult> |
<ServiceInfoList> |
<ServiceInfo> |
<DeviceId> urn:IGRS:Device:DeviceId:012dabc1234</DeviceId> |
<ServiceId>000001</ServiceId> |
<ServiceName>NBMediaContentService</ServiceName> |
<ServiceType> urn:schemas-IGRS-org:Service:MediaContentService </ServiceType> |
<location>“http://www.igrs.org/service”</location> |
</ServiceInfo> |
<!-other information on services- |
</ServiceInfoList> |
</SearchResult> |
The service search response message |
</DeviceOperation> |
</SOAP-ENV:Body> |
</SOAP-ENV:Envelope> |
Referring to Fig. 6, resource discovering under the dynamic network environment of the present invention is described with an office network.Comprise the station server that software of the present invention has been installed, a printer, a projecting apparatus and a notebook in the intraoffice network, wherein projecting apparatus, notebook are connected with access point apparatus AP by WLAN (wireless local area network), and AP, server, printer connect by wired ethernet.Wireless display application program and print application based on software of the present invention also have been installed on the notebook, the wireless display service routine then has been installed on the projecting apparatus.
After notebook inserts office network, wireless display application program on it and print application can be initiated the service state change events subscribe request of wireless display service, print service by its software respectively to server, and obtain the subscription success response of server.Wherein the service state of wireless display service change subscribe request message format as shown in table six, as shown in Table 7 to the form of this wireless display service subscription request responding message.
Table six
The projection service state changes subscription request message |
M-POST/IGRS HTTP/1.1 |
Host:10.90.10.1:2500 |
01-IGRSVersion:IGRS/1.0 |
01-IGRSMessageType:SubscribeServiceEventRequest |
01-SequenceId:00000002 |
01-SourceDeviceId:urn:IGRS:Device:DeviceId:00000001234e |
01-TargetDeviceId:urn:IGRS:Device:DeviceId:000000013fed |
Content-type:text/xml |
Content-length:123 |
MAN:”http://www.igrs.org/spec”;ns=01 |
MAN:”http://schemas.xml soap.org/soap/envelope/”:ns-02 |
02-SoapAction:”IGRS-SubscribeServiceEvent-Request” |
<SOAP-ENV:Envelope xmlns:SOAP-ENV=″http://schemas.xmlsoap.org/soap/envelope/″ SOAP-ENV:encodingStyle=″http://schemas.xmlsoap.org/soap/en coding/″> |
<SOAP-ENV:Body> |
<DeviceOperation xmlns=“http://www.igrs.org/spec”> |
<SourceClientId> 00001 </SourceClientId> |
<SubscriptionId> 00000234 </SubscriptionId> |
<ExpectSubscriptionTerm> 60 </ExpectSubscriptionTerm> |
<SubscriptionFilter> |
<SubscribeByServiceType> Projector </SubscribeByServiceType> |
</SubscriptionFilter> |
</DeviceOperation> |
</SOAP-ENV:Body> |
</SOAP-ENV:Envelope> |
Table seven
Projection state changes subscription response message |
HTTP/1.1200 0K |
Ext: |
Cache-control:no-cache=”Ext” |
01-IGRSVersion:IGRS/1.0 |
01-IGRSMessage:SubscribeServiceEventResponse |
01-AcknowledgeId:00000002 |
01-TargetDeviceId:urn:IGRS:Device:DeviceId:000000013fed |
01-SourceDeviceId:urn:IGRS:Device:DeviceId:00000001234a |
Content-type:text/xml |
Content-length:100 |
MAN:”http://www.igrs.org/spec”;ns=01 |
MAN:”http://schemas.xml soap.org/soap/envelope/”;ns-02 |
02-SoapAction:”IGRS-SubscribeDeviceEvent-Response” |
<SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelop e/” SOAP-ENV:encodingStyle=”http://schemas.xml soap.org/soap /encoding/”> |
<SOAP-ENV:Body> |
<DeviceOperation xmlns=“http://www.igrs.org/spec”> |
<TargetClientId> 000001 </TargetClientId> |
<SubscriptionId> 00000234 </SubscriptionId> |
<ApprovedSubcriptionTerm> 60 </ApprovedSubscriptionTerm> |
<ReturnCode>200</ReturnCode> |
</DeviceOperation> |
</SOAP-ENV:Body> |
</SOAP-ENV:Envelope> |
Server is receiving after projection service state that notebook sends changes subscription request message and print service state variation subscription request message and provide as shown in Table 7 successful respond, then subscribe to record in the inner events corresponding of creating of server, as shown in Table 8:
Table eight
The event subscription record form | |||||
Subscribe to device identification | Subscribe to customer ID | Subscribe to sign | Subscribe to event type | The subscription condition | The subscription time |
urn:IGRS:Device:DeviceId:00000 0013fed | 000001 | 000234 | Service state changes | COS=ProjectorService | 60 |
urn:IGRS:Device:DeviceId:00000 0013fed | 000001 | 000235 | Service state changes | COS=PrinterService | 60 |
After projecting apparatus, printer start and add network, service routine on projecting apparatus, the printer calls the service registry interface of software on the equipment separately respectively and registers projection service and print service respectively, carry out service log, software on projecting apparatus, the printer then respectively in network multicast send projection service, print service on-line message, wherein the projection service notification message of reaching the standard grade is as shown in Table 9.
Table nine
The service on-line message |
M-NOTIFY*HTTP/1.1 |
Host:239.255.255.255.250:1900 |
Cache-control:max-age=30 |
Location:http://www.igrs.org/device |
NT:urn:IGRS:Service:SeviceType:ProjectorService |
NTS:ssdp:alive |
SERVER:OS/version IGRS/1.0 product/version |
USN:urn:IGRS:Device:DeviceId:012dabafe1234 |
Man:”http://www.igrs.org/spec”;ns=01 |
01-IGRSVersion:IGRS/1.0 |
01-IGRSMessageType:ServiceOnlineAdvertisement |
01-SequenceId:0000001 |
01-ConfigId:00001 |
01-BootId:000001 |
01-ServiceName:WirelessProjector |
01-ServiceType:ProjectorService |
Server receives projection service and print service and reaches the standard grade behind the notification message by searching inner event subscription record, finds to exist the subscription record of corresponding projection service and print service, promptly sends the service state change notification message to subscriber-notebook.Server is reached the standard grade notification message format as shown in Table 10 to the projection service that notebook sends.
Table ten
The notification message of reaching the standard grade is served in projection |
M-POST/IGRS HTTP/1.1 |
Host:10.90.10.234:1900 |
01-IGRSVersion:IGRS/1.0 |
01-IGRSMessageType:NotifyServiceEvent |
01-SourceDeviceId:urn:IGRS:Device:DeviceId:00000001234a |
01-TargetDeviceId:urn:IGRS:Device:DeviceId:000000013fed |
Content-type:text/xml |
Content-length:97 |
MAN:”http://www.igrs.org/spec1.0”;ns=01 |
MAN:”http://schemas.xmlsoap.org/soap/envelope/”:ns=02 |
02-SoapAction:”IGRS-ServiceEvent-Notify” |
<SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelop e/” SOAP-ENV:encodingStvle=”http://schemas.xmlsoap.org/soap /encoding/”> |
<SOAP-ENV:Body> |
<DeviceOperation xmlns=“http://www.igrs.org/spec1.0”> |
<TargetClientId> 000001 </TargetClientId> |
<SubscriptionId> 00000234 </SubscriptionId> |
<EventType>Online</EventType> |
<ServiceInfo> |
<DeviceId></DeviceId> |
<ServiceName>WirelessProjector</ServiceName> |
<ServiceId></ServiceId> |
<ServiceType>ProjectorService</ServiceType> |
<Location>”http://www.igrs.org/service”</Location> |
</ServiceInfo> |
</DeviceOperation> |
</SOAP-ENV:Body> |
</SOAP-ENV:Envelope> |
Corresponding application can receive that by the change in resources notification interface of software projecting apparatus, the printer apparatus sent by server are reached the standard grade and the notice of reaching the standard grade of projection service and print service on the notebook, thereby can point out the user can use respective resources.And after interface is nullified in the service that the projection service on projecting apparatus, the printer and print service are called software, the software on projecting apparatus, the printer will be in network multicast send the corresponding service notification message that rolls off the production line.After server was received and served the message that rolls off the production line, searched events was subscribed to record, sends corresponding service state change notification message to the application program on the notebook.Application program on the notebook can be received projection service that server sends and the print service event notice that rolls off the production line by the change in resources notification interface of software, thereby can point out user's respective resources no longer available.Projecting apparatus, printer by call software stop interface will be in network multicast send the corresponding apparatus message that rolls off the production line, application program on server, the notebook can be received the equipment of projecting apparatus, the printer notice that rolls off the production line by the change in resources notification interface of software, can point out user's respective projection, to print resource no longer available.
Method of the present invention, the software of supporting dynamic resource discovery is installed on the network equipment, service on the equipment, the application program software startup by calling software with stop control interface, service registry and cancellation interface, resource lookup interface, change in resources subscribing interface and change in resources notification interface, and utilize the network call interface-network multicast address of software, realize dynamically finding, for primary condition has been created in the resource-sharing in dynamic network environment anywhere or anytime.
Claims (12)
1. the resource discovery method under the dynamic network environment is characterized in that comprising:
A. on the equipment of resource discovering under each hope realization dynamic network environment, the software that is used to support dynamic resource discovery is installed, this software comprises the start-up control interface that is used to start, stop software itself, stops control interface, interface is nullified in the service registry interface, the service that are used for monitoring equipment self service status, be used to find resource lookup interface, change in resources subscribing interface and the change in resources notification interface of resource and be used on the multicast address of appointment, intercepting and making the network call interface of replying;
B. the equipment behind the described software startup that is used to support dynamic resource discovery is when calling and handling described service registry interface, carry out service log, and to described multicast address multicast transmission service on-line message, this equipment is when calling and handling described service and nullify interface, delete service log, and serve the message that rolls off the production line to described multicast address multicast transmission;
C. equipment is intercepted the service on-line message of being sent by miscellaneous equipment on the network on multicast address, by application call on it and handle the change in resources notification interface of described software, obtain to serve dynamic-change information on the network, application program is to providing service routine to initiate routine call on the supply equipment; When needed, by application call on it and handle the resource lookup interface of described software, send service search message to described multicast address multicast, comprise search criterion in this service search message, on multicast address, listen to the device software of searching message, from service log, find the service that meets search criterion, broadcast to take to the tables of equipment of initiating service search and be engaged in searching response.
2. the resource discovery method under the dynamic network environment according to claim 1, it is characterized in that: being used among the described step B supported the software startup of dynamic resource discovery, be equipment when calling and handling described start-up control interface, start this software and the multicast address multicast transmitting apparatus on-line message on network; This equipment is calling and is handling described when stopping control interface, stops this software and the multicast address multicast transmitting apparatus on the network message that rolls off the production line.
3. the resource discovery method under the dynamic network environment according to claim 2 is characterized in that: described equipment on-line message, equipment roll off the production line in the message, comprise device identification, device name, and other mandatory-attribute information of equipment of this equipment at least.
4. the resource discovery method under the dynamic network environment according to claim 1, it is characterized in that: carry out service log and deletion service log among the described step B, this service log comprises that at least COS, service identifiers, service name and service interface describe document information.
5. the resource discovery method under the dynamic network environment according to claim 1, it is characterized in that: send service on-line message and the service message that rolls off the production line among the described step B, this serves service identifiers, COS and the service name that comprises device identification, increase or the minimizing of this equipment in the upper and lower line message.
6. the resource discovery method under the dynamic network environment according to claim 1 is characterized in that: the service search message among the described step C also comprises device identification and the application program identification of initiating service search equipment; Described search criterion comprises service name to be found or COS or service place device identification or above-mentioned every combination; Described service search response comprises service place device identification, service mark, COS and service name.
7. the resource discovery method under the dynamic network environment according to claim 1 is characterized in that further comprising:
D. described equipment is when calling and handling described change in resources subscribing interface, send the request message of change in resources event subscription to the described software of designated equipment, the designated equipment that receives this request message carries out the event subscription record when decision receives event subscription, when this designated equipment is intercepted the service of being sent by miscellaneous equipment and is reached the standard grade or roll off the production line message on multicast address also searched events subscribe to record, when discovery has the service that meets the subscription record to reach the standard grade or roll off the production line, send the dynamic change notification message of service increase or minimizing to event subscription requests equipment.
8. the resource discovery method under the dynamic network environment according to claim 7, it is characterized in that: among the described step D, at least the matching condition that comprises change in resources message in the request message of described change in resources event subscription, this matching condition comprise the Resource Properties of resource identification, equipment or service of resource type, equipment or service of equipment or service and the resource name of equipment or service.
9. the resource discovery method under the dynamic network environment according to claim 7, it is characterized in that: among the described step D, the described equipment that receives the change in resources event subscription requests also returns the response message of change in resources event subscription to event subscription requests equipment, comprise result in this response message, when asking successfully, also comprise in this response message subscribing to identifying and subscribing to effective time request or success or failure.
10. the resource discovery method under the dynamic network environment according to claim 9, it is characterized in that: among the described step D, the described equipment of change in resources event subscription requests that receives is after returning the response message of change in resources event subscription success to event subscription requests equipment, start one and subscribe to the record maintenance process, when the subscription record surpasses the effective time of this subscription that provides in the response message, delete described subscription record.
11. the resource discovery method under the dynamic network environment according to claim 9, it is characterized in that: among the described step D, the described equipment of change in resources event subscription requests that receives is after returning the response message of change in resources event subscription success to event subscription requests equipment, in response message provides subscription effective time, the network call interface of the described software of application call on the event subscription requests equipment sends event subscription refresh requests message to the equipment that receives the change in resources event subscription requests; Receive the equipment inspection event subscription record of event subscription refresh requests message, when having record and decision to receive, equipment from refresh requests message to initiated event that subscribe to returns event subscription refresh response message.
12. the resource discovery method under the dynamic network environment according to claim 11, it is characterized in that: comprise at least in the described refresh requests message and subscribe to sign, application program identification, comprise at least in the described refresh response message subscribing to identifying and subscribing to effective time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100377095A CN100352218C (en) | 2004-04-28 | 2004-04-28 | Method of resource discovery in dynamic network environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100377095A CN100352218C (en) | 2004-04-28 | 2004-04-28 | Method of resource discovery in dynamic network environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1691622A CN1691622A (en) | 2005-11-02 |
CN100352218C true CN100352218C (en) | 2007-11-28 |
Family
ID=35346767
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100377095A Expired - Lifetime CN100352218C (en) | 2004-04-28 | 2004-04-28 | Method of resource discovery in dynamic network environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100352218C (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1937848B (en) * | 2006-11-02 | 2011-03-30 | 杭州华三通信技术有限公司 | Wireless roaming user multicast realizing method and access controller |
CN100547974C (en) * | 2007-05-30 | 2009-10-07 | 四川长虹电器股份有限公司 | The service search method of the network equipment |
CN101110700B (en) * | 2007-06-14 | 2012-05-30 | 上海众恒信息产业股份有限公司 | Resource Manager in Resource Management Platform |
CN101453413A (en) * | 2007-12-04 | 2009-06-10 | 华为技术有限公司 | Method and apparatus for automatic topology discovery and resource management in PBB network |
US8583610B2 (en) | 2008-03-04 | 2013-11-12 | International Business Machines Corporation | Dynamically extending a plurality of manageability capabilities of it resources through the use of manageability aspects |
US8291479B2 (en) | 2008-11-12 | 2012-10-16 | International Business Machines Corporation | Method, hardware product, and computer program product for optimizing security in the context of credential transformation services |
CN101431467B (en) * | 2008-12-18 | 2010-12-01 | 中国人民解放军国防科学技术大学 | Real-time task admission control method of shared resource network |
US8392567B2 (en) | 2009-03-16 | 2013-03-05 | International Business Machines Corporation | Discovering and identifying manageable information technology resources |
US8533230B2 (en) | 2009-06-24 | 2013-09-10 | International Business Machines Corporation | Expressing manageable resource topology graphs as dynamic stateful resources |
JP5891881B2 (en) * | 2012-03-19 | 2016-03-23 | 富士ゼロックス株式会社 | Information processing apparatus and information processing program |
CN103888930B (en) * | 2012-12-24 | 2018-02-16 | 华为技术有限公司 | Information on services acquisition methods, provide method and apparatus |
CN104009894A (en) * | 2013-02-26 | 2014-08-27 | 海尔集团公司 | Automatic acquisition method of service information in local area network and system and equipment thereof |
CN103237053A (en) * | 2013-03-28 | 2013-08-07 | 东莞宇龙通信科技有限公司 | Media file sharing method and TV box |
CN107196983A (en) * | 2016-03-15 | 2017-09-22 | 阿里巴巴集团控股有限公司 | A kind of resource distribution method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6240066B1 (en) * | 1997-02-11 | 2001-05-29 | Lucent Technologies Inc. | Dynamic bandwidth and buffer management algorithm for multi-service ATM switches |
CN1375962A (en) * | 2001-03-12 | 2002-10-23 | 朗迅科技公司 | Apparatus and method for automatic port-mark finding in different machine system |
US6625709B2 (en) * | 2000-10-30 | 2003-09-23 | Microsoft Corporation | Fair share dynamic resource allocation scheme with a safety buffer |
CN1466324A (en) * | 2002-09-06 | 2004-01-07 | 联想(北京)有限公司 | Method for realixing dynamic networking connection and resource sharing in equipment of home backbone network |
CN1466326A (en) * | 2002-09-10 | 2004-01-07 | 联想(北京)有限公司 | Backbone network connection method of home network |
CN1482762A (en) * | 2003-01-31 | 2004-03-17 | 联想(北京)有限公司 | Method for dynamic join of equipment and service in network meeting |
-
2004
- 2004-04-28 CN CNB2004100377095A patent/CN100352218C/en not_active Expired - Lifetime
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6240066B1 (en) * | 1997-02-11 | 2001-05-29 | Lucent Technologies Inc. | Dynamic bandwidth and buffer management algorithm for multi-service ATM switches |
US6625709B2 (en) * | 2000-10-30 | 2003-09-23 | Microsoft Corporation | Fair share dynamic resource allocation scheme with a safety buffer |
CN1375962A (en) * | 2001-03-12 | 2002-10-23 | 朗迅科技公司 | Apparatus and method for automatic port-mark finding in different machine system |
CN1466324A (en) * | 2002-09-06 | 2004-01-07 | 联想(北京)有限公司 | Method for realixing dynamic networking connection and resource sharing in equipment of home backbone network |
CN1466326A (en) * | 2002-09-10 | 2004-01-07 | 联想(北京)有限公司 | Backbone network connection method of home network |
CN1482762A (en) * | 2003-01-31 | 2004-03-17 | 联想(北京)有限公司 | Method for dynamic join of equipment and service in network meeting |
Also Published As
Publication number | Publication date |
---|---|
CN1691622A (en) | 2005-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100352218C (en) | Method of resource discovery in dynamic network environment | |
CN100352222C (en) | Apparatus and method for coordinately managing media content | |
DE112013002674B4 (en) | Advertise, discover and consume services through virtual access point interfaces | |
KR101571376B1 (en) | Method, group server, and member device for accessing member resources | |
CN1640130A (en) | A method and system for internet content acquisition according to a program guide | |
KR20070086813A (en) | Selectively receiving data in a multicast environment | |
US20060133392A1 (en) | Gateway device, network system, communication program, and communication method | |
US20030140119A1 (en) | Dynamic service discovery | |
JP2011517884A (en) | Service discovery method in wireless network | |
CN1732454A (en) | System and method for rendering content on multiple devices | |
CN101056277A (en) | Method for transferring a content in dlna system | |
CN1829202A (en) | System and method for multiple account number simultaneously realizing IMPS service on one client | |
CN1732667A (en) | Transmission of application information and commands using presence technology | |
CN1523828A (en) | Control point server system and method for admission of effective access for household network devices | |
CN1886998A (en) | Method and communication system for automatically discovering the common multimedia service capability | |
CN1825946A (en) | Home network system and method for transmitting contents thereof | |
WO2009116265A1 (en) | Information processing apparatus, image forming apparatus, and control method therefor | |
JP2012165167A (en) | Network communication apparatus, method, and program | |
CN103297269B (en) | A kind of Web Service Deployment based on service compute platform and management method | |
US20220294868A1 (en) | Enhancements of registration of nef at nrf | |
US20140075010A1 (en) | Device discovery using broadcast technology | |
US8453164B2 (en) | Method and apparatus for reduction of event notification within a web service application of a multi-functional peripheral | |
CN1165851C (en) | Method for discovering equipment in dynamic network combination of family network | |
US20090210530A1 (en) | Termination criteria in service discovery request | |
CN101313559A (en) | Method, equipment and system for distributing media resources |
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 | ||
CX01 | Expiry of patent term | ||
CX01 | Expiry of patent term |
Granted publication date: 20071128 |