Service Location Protocol. By. Team Qwerty. Aparna Atmaram. Venkatesh Babu. Agenda. What is SLP? ... optional actor to which all services register ... – PowerPoint PPT presentation
9 SLP Message (2) Message Type Abbreviation Service Registration SrvReg Service Deregister SrvDeReg Service Acknowledge SrvAck Service Request SrvRqst Service Reply SrvRply Service Type Request SrvTypeRqst Service Type Reply SrvTypeRply Attribute Request AttrRqst Att ribute Reply AttrRply DA Advertisement DAAdvert SA Advertisement SAAdvert
10 Service Registration Message
SrvReg
Message sent by SA's to DA's containing information about a service that is available
Message Format
---------------------- ----------
Service Location header (function SrvReg)
---------------------- ----------
\ ltURL-Entrygt
\
---------------------- ----------
Length of Attr List String ltattr-listgt
---------------------- ----------
\ ltattr-listgt, Continued.
\
---------------------- ----------
(if present) Attribute Authentication Block ...
---------------------- ----------
Figure 4 Service Registration Message Format
11 Service Deregister Message
SrvDeReg
Message sent by SA's to inform DA's that a service is no longer available.
Message Format
---------------------- ----------
Service Location header (function SrvDereg)
---------------------- ----------
length of URL URL
---------------------- ----------
\ URL of Service to Deregister, contd. \
---------------------- ----------
(if present) authentication block .....
---------------------- ----------
length of lttag specgt string lttag specgt
---------------------- ----------
\ lttag specgt, continued
\
12 Service Acknowledgement Message
SrvAck
A generic acknowledgment that is sent by DA's to SA's in response to SrvReg and SrvDeReg messages
ltservice-typegt is the type of service being advertised
ltaddrspecgt is the service's location (domain name or IP address and port number).
For example servicemail//mail.com25
Above URL advertises a mail server at mail.com on port 25
17 OpenSLP APIs (1)
SLP implementation is available with source at http//www.openslp.org/
OpenSLP API is just an implementation of a standardized specification described in RFC 2614.
The SLP API is a library interface that allows programmers to use SLP in their applications to locate services
Following are the list of major APIs provided
SLPReg()
SLPDeReg()
SLPFindSrvs()
SLPFindAttrs()
SLPFindSrvTypes()
SLPParseSrvURL()
18 OpenSLP APIs (2)
SLPOpen() Functions used to open SLPHandles
SLPReg() Registers a service URL and service attributes with SLP.
SLPDeReg() Deregisters a previously registered service.
SLPFindSrvs() Finds services based on service type or attributes.
SLPFindAttrs() Obtains a list of attributes for services registered with SLP.
SLPFindSrvTypes() Obtains a list of the types of services that have been registered with SLP.
SLPParseSrvURL() Parses a Service URL passed in as a character string and returns the results in a pointer to a dynamically allocated SLPSrvURL structure.
19 Sample Application
Listing of SLP-enabled daytime server (Synchronous execution of SLP callback functions)
Listing of SLP-enabled daytime client
20 Conclusion
SLP enables automatic service discovery and configuration of services over a network.
Automatic service discovery is very advantageous given the mobility of today's computers.
2 Automate client management with the Service Location Protocol by M. Tim Jones. http//www-128.ibm.com/developerworks/linux/librar y/l-slp/
3 Service Location Protocol. http//www.redbooks .ibm.com/abstracts/TIPS0269.html?Open
4 Some Notes on Security in the Service Location Protocol Version 2 by Marco Vettorello, Christian Bettstetter, and Christian Schwingenschlogl. http//www.scs.carleton.ca/bar beau/wadhc/Papers/vettorello.pdf
5 OpenSLP API information from http//www.openslp.org/
PowerShow.com is a leading presentation sharing website. It has millions of presentations already uploaded and available with 1,000s more being uploaded by its users every day. Whatever your area of interest, here you’ll be able to find and view presentations you’ll love and possibly download. And, best of all, it is completely free and easy to use.
You might even have a presentation you’d like to share with others. If so, just upload it to PowerShow.com. We’ll convert it to an HTML5 slideshow that includes all the media types you’ve already added: audio, video, music, pictures, animations and transition effects. Then you can share it with your target audience as well as PowerShow.com’s millions of monthly visitors. And, again, it’s all free.
About the Developers
PowerShow.com is brought to you by CrystalGraphics, the award-winning developer and market-leading publisher of rich-media enhancement products for presentations. Our product offerings include millions of PowerPoint templates, diagrams, animated 3D characters and more.