[MC-PRCR]:

Peer Channel Custom Resolver Protocol

Intellectual Property Rights Notice for Open Specifications Documentation

§  Technical Documentation. Microsoft publishes Open Specifications documentation for protocols, file formats, languages, standards as well as overviews of the interaction among each of these technologies.

§  Copyrights. This documentation is covered by Microsoft copyrights. Regardless of any other terms that are contained in the terms of use for the Microsoft website that hosts this documentation, you may make copies of it in order to develop implementations of the technologies described in the Open Specifications and may distribute portions of it in your implementations using these technologies or your documentation as necessary to properly document the implementation. You may also distribute in your implementation, with or without modification, any schema, IDL's, or code samples that are included in the documentation. This permission also applies to any documents that are referenced in the Open Specifications.

§  No Trade Secrets. Microsoft does not claim any trade secret rights in this documentation.

§  Patents. Microsoft has patents that may cover your implementations of the technologies described in the Open Specifications. Neither this notice nor Microsoft's delivery of the documentation grants any licenses under those or any other Microsoft patents. However, a given Open Specification may be covered by Microsoft Open Specification Promise or the Community Promise. If you would prefer a written license, or if the technologies described in the Open Specifications are not covered by the Open Specifications Promise or Community Promise, as applicable, patent licenses are available by contacting .

§  Trademarks. The names of companies and products contained in this documentation may be covered by trademarks or similar intellectual property rights. This notice does not grant any licenses under those rights. For a list of Microsoft trademarks, visit www.microsoft.com/trademarks.

§  Fictitious Names. The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted in this documentation are fictitious. No association with any real company, organization, product, domain name, email address, logo, person, place, or event is intended or should be inferred.

Reservation of Rights. All other rights are reserved, and this notice does not grant any rights other than specifically described above, whether by implication, estoppel, or otherwise.

Tools. The Open Specifications do not require the use of Microsoft programming tools or programming environments in order for you to develop an implementation. If you have access to Microsoft programming tools and environments you are free to take advantage of them. Certain Open Specifications are intended for use in conjunction with publicly available standard specifications and network programming art, and assumes that the reader either is familiar with the aforementioned material or has immediate access to it.

Revision Summary

Date / Revision History / Revision Class / Comments /
8/10/2007 / 0.1 / Major / Initial Availability
9/28/2007 / 0.2 / Minor / Clarified the meaning of the technical content.
10/23/2007 / 0.3 / Minor / Clarified the meaning of the technical content.
11/30/2007 / 0.3.1 / Editorial / Revised and edited the technical content; updated links.
1/25/2008 / 0.3.2 / Editorial / Changed language and formatting in the technical content.
3/14/2008 / 0.3.3 / Editorial / Changed language and formatting in the technical content.
5/16/2008 / 0.3.4 / Editorial / Changed language and formatting in the technical content.
6/20/2008 / 0.3.5 / Editorial / Changed language and formatting in the technical content.
7/25/2008 / 0.3.6 / Editorial / Changed language and formatting in the technical content.
8/29/2008 / 1.0 / Major / Updated and revised the technical content.
10/24/2008 / 1.0.1 / Editorial / Changed language and formatting in the technical content.
12/5/2008 / 2.0 / Major / Updated and revised the technical content.
1/16/2009 / 2.0.1 / Editorial / Changed language and formatting in the technical content.
2/27/2009 / 2.1 / Minor / Clarified the meaning of the technical content.
4/10/2009 / 2.2 / Minor / Clarified the meaning of the technical content.
5/22/2009 / 2.3 / Minor / Clarified the meaning of the technical content.
7/2/2009 / 2.3.1 / Editorial / Changed language and formatting in the technical content.
8/14/2009 / 2.3.2 / Editorial / Changed language and formatting in the technical content.
9/25/2009 / 2.4 / Minor / Clarified the meaning of the technical content.
11/6/2009 / 2.4.1 / Editorial / Changed language and formatting in the technical content.
12/18/2009 / 2.4.2 / Editorial / Changed language and formatting in the technical content.
1/29/2010 / 2.5 / Minor / Clarified the meaning of the technical content.
3/12/2010 / 2.5.1 / Editorial / Changed language and formatting in the technical content.
4/23/2010 / 2.5.2 / Editorial / Changed language and formatting in the technical content.
6/4/2010 / 3.0 / Major / Updated and revised the technical content.
7/16/2010 / 4.0 / Major / Updated and revised the technical content.
8/27/2010 / 5.0 / Major / Updated and revised the technical content.
10/8/2010 / 6.0 / Major / Updated and revised the technical content.
11/19/2010 / 7.0 / Major / Updated and revised the technical content.
1/7/2011 / 8.0 / Major / Updated and revised the technical content.
2/11/2011 / 8.1 / Minor / Clarified the meaning of the technical content.
3/25/2011 / 8.1 / None / No changes to the meaning, language, or formatting of the technical content.
5/6/2011 / 8.1 / None / No changes to the meaning, language, or formatting of the technical content.
6/17/2011 / 8.2 / Minor / Clarified the meaning of the technical content.
9/23/2011 / 8.2 / None / No changes to the meaning, language, or formatting of the technical content.
12/16/2011 / 9.0 / Major / Updated and revised the technical content.
3/30/2012 / 9.0 / None / No changes to the meaning, language, or formatting of the technical content.
7/12/2012 / 9.0 / None / No changes to the meaning, language, or formatting of the technical content.
10/25/2012 / 10.0 / Major / Updated and revised the technical content.
1/31/2013 / 11.0 / Major / Updated and revised the technical content.
8/8/2013 / 11.0 / None / No changes to the meaning, language, or formatting of the technical content.
11/14/2013 / 11.0 / None / No changes to the meaning, language, or formatting of the technical content.
2/13/2014 / 11.0 / None / No changes to the meaning, language, or formatting of the technical content.
5/15/2014 / 11.0 / None / No changes to the meaning, language, or formatting of the technical content.
6/30/2015 / 12.0 / Major / Significantly changed the technical content.
10/16/2015 / 12.0 / No Change / No changes to the meaning, language, or formatting of the technical content.

Table of Contents

1 Introduction 6

1.1 Glossary 6

1.2 References 7

1.2.1 Normative References 7

1.2.2 Informative References 8

1.3 Overview 8

1.3.1 Identifiers 8

1.3.1.1 Mesh Name 8

1.3.1.2 ClientId 8

1.3.1.3 RegistrationId 8

1.3.2 Connecting to the Resolver Service 9

1.3.3 List of Resolver Service Operations 9

1.3.4 Registration Record Maintenance 9

1.4 Relationship to Other Protocols 9

1.5 Prerequisites/Preconditions 9

1.6 Applicability Statement 10

1.7 Versioning and Capability Negotiation 10

1.8 Vendor-Extensible Fields 10

1.9 Standards Assignments 10

2 Messages 11

2.1 Transport 11

2.2 Message Syntax 11

2.2.1 Namespaces 11

2.2.2 Structures Used 12

2.2.2.1 PeerNodeAddress Structure 12

2.2.2.2 RefreshResult Enumeration 13

2.2.3 Resolver Client Messages 14

2.2.3.1 Register Message 14

2.2.3.2 Resolve Message 15

2.2.3.3 Refresh Message 15

2.2.3.4 Update Message 16

2.2.3.5 Unregister Message 17

2.2.3.6 GetServiceInfo Message 18

2.2.4 Resolver Service Messages 18

2.2.4.1 RegisterResponse Message 18

2.2.4.2 ResolveResponse Message 19

2.2.4.3 RefreshResponse Message 20

2.2.4.4 ServiceSettingsResponseInfo Message 21

3 Protocol Details 22

3.1 Resolver Client Details 22

3.1.1 Abstract Data Model 22

3.1.2 Timers 23

3.1.2.1 Client Refresh Timer 23

3.1.2.2 Message Response Timer 23

3.1.3 Initialization 23

3.1.4 Higher-Layer Triggered Events 23

3.1.4.1 Register 24

3.1.4.2 Update 24

3.1.4.3 Resolve 24

3.1.4.4 Unregister 24

3.1.4.5 Refresh 24

3.1.4.6 GetServiceInfo 24

3.1.5 Message Processing Events and Sequencing Rules 24

3.1.5.1 RegisterResponse Message 24

3.1.5.2 ResolveResponse Message 25

3.1.5.3 RefreshResponse Message 25

3.1.5.4 ServiceSettingsResponseInfo Message 25

3.1.6 Timer Events 25

3.1.6.1 Client Refresh Timer 25

3.1.6.2 Message Response Timer 25

3.1.7 Other Local Events 25

3.1.7.1 Shutting Down the Resolver Service 25

3.2 Resolver Service Details 25

3.2.1 Abstract Data Model 25

3.2.2 Timers 26

3.2.2.1 Maintenance Timer 26

3.2.3 Initialization 26

3.2.4 Higher-Layer Triggered Events 26

3.2.5 Message Processing Events and Sequencing Rules 26

3.2.5.1 Register 26

3.2.5.2 Update 26

3.2.5.3 Resolve 27

3.2.5.4 Unregister 27

3.2.5.5 Refresh 27

3.2.5.6 GetServiceInfo 27

3.2.6 Timer Events 27

3.2.6.1 Maintenance Timer 27

3.2.7 Other Local Events 27

4 Protocol Examples 28

4.1 Peer Discovery 28

5 Security 30

5.1 Security Considerations for Implementers 30

5.2 Index of Security Parameters 30

6 Appendix A: Full WSDL 31

7 Appendix B: Product Behavior 35

8 Change Tracking 36

9 Index 37

1  Introduction

The Peer Channel Custom Resolver Protocol is used for storage and retrieval of endpoint information of clients that have access to a known service. Clients that use the service can store their own endpoint information at the service and obtain endpoint information about other clients in order to establish direct connections between them.

Sections 1.8, 2, and 3 of this specification are normative and can contain the terms MAY, SHOULD, MUST, MUST NOT, and SHOULD NOT as defined in [RFC2119]. Sections 1.5 and 1.9 are also normative but do not contain those terms. All other sections and examples in this specification are informative.

1.1  Glossary

The following terms are specific to this document:

ClientId: A unique string that the client uses to identify itself to the resolver service, as described in section 1.3.1.2.

endpoint information: An endpoint address, formatted as a Uniform Resource Identifier (URI), along with a set of IP addresses. Describes the set of addresses on which a node is listening.

expiration time: A date-time value, in Coordinated Universal Time (UTC) format, that indicates when an instance of binary data is no longer valid.

globally unique identifier (GUID): A term used interchangeably with universally unique identifier (UUID) in Microsoft protocol technical documents (TDs). Interchanging the usage of these terms does not imply or require a specific algorithm or mechanism to generate the value. Specifically, the use of this term does not imply or require that the algorithms described in [RFC4122] or [C706] must be used for generating the GUID. See also universally unique identifier (UUID).

mesh name: A set of nodes that establish connections to each other to form a mesh.

PeerNodeAddress: A structure that contains the URI of a node and a set of IP addresses on which the client is listening ([MC-PRCR] section 2.2.2.1).

registration lifetime: The amount of time during which a registration record is guaranteed to be preserved by the resolver service; always associated with a particular registration record. This time starts upon the successful addition of a registration record to the resolver service. After this time has elapsed, the resolver service may choose to delete the corresponding registration record (section 3).

registration record: A set of endpoint information that is stored at the resolver service.

RegistrationId: A unique identifier in the form of a GUID, as described in section 1.3.1.3.

resolver client: An application endpoint that uses a resolver service to publish or obtain endpoint information.

resolver service: An application implementing this protocol that stores and distributes endpoint information.

MAY, SHOULD, MUST, SHOULD NOT, MUST NOT: These terms (in all caps) are used as defined in [RFC2119]. All statements of optional behavior use either MAY, SHOULD, or SHOULD NOT.

1.2  References

Links to a document in the Microsoft Open Specifications library point to the correct section in the most recently published version of the referenced document. However, because individual documents in the library are not updated at the same time, the section numbers in the documents may not match. You can confirm the correct section numbering by checking the Errata.

1.2.1  Normative References

We conduct frequent surveys of the normative references to assure their continued availability. If you have any issue with finding a normative reference, please contact . We will assist you in finding the relevant information.

[MC-NMF] Microsoft Corporation, ".NET Message Framing Protocol".

[MC-PRCH] Microsoft Corporation, "Peer Channel Protocol".

[MS-DTYP] Microsoft Corporation, "Windows Data Types".

[MS-WSPOL] Microsoft Corporation, "Web Services: Policy Assertions and WSDL Extensions".

[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997, http://www.rfc-editor.org/rfc/rfc2119.txt

[SOAP1.1] Box, D., Ehnebuske, D., Kakivaya, G., et al., "Simple Object Access Protocol (SOAP) 1.1", May 2000, http://www.w3.org/TR/2000/NOTE-SOAP-20000508/

[SOAP1.2-1/2003] Gudgin, M., Hadley, M., Mendelsohn, N., et al., "SOAP Version 1.2 Part 1: Messaging Framework", W3C Recommendation, June 2003, http://www.w3.org/TR/2003/REC-soap12-part1-20030624

[WSA1.0-Metadata] W3C, "WS-Addressing 1.0 Metadata Namespace", W3C Recommendation, http://www.w3.org/2007/05/addressing/metadata/

[WSA1.0-WSDLBinding] W3C, "WS-Addressing 1.0 WSDL Binding Namespace", W3C Recommendation, http://www.w3.org/2006/05/addressing/wsdl/

[WSAddressing] Box, D., et al., "Web Services Addressing (WS-Addressing)", August 2004, http://www.w3.org/Submission/ws-addressing/

[WSADDR] Gudgin, M., Hadley, M., and Rogers, T., "Web Services Addressing (WS-Addressing) 1.0", W3C Recommendation, May 2006, http://www.w3.org/2005/08/addressing

[WSDLSOAP] Angelov, D., Ballinger, K., Butek, R., et al., "WSDL 1.1 Binding Extension for SOAP 1.2", W3C Member Submission, April 2006, http://www.w3.org/Submission/2006/SUBM-wsdl11soap12-20060405/

[WSDL] Christensen, E., Curbera, F., Meredith, G., and Weerawarana, S., "Web Services Description Language (WSDL) 1.1", W3C Note, March 2001, http://www.w3.org/TR/2001/NOTE-wsdl-20010315

[WSP1.5-Namespace] W3C, "Web Services Policy 1.5 Namespace", W3C Recommendation, http://www.w3.org/ns/ws-policy/

[WSPOLICY] Bajaj, S., Box, D., Chappell, D., et al., "Web Services Policy Framework (WS-Policy) and Web Services Policy Attachment (WS-PolicyAttachment)", March 2006, http://schemas.xmlsoap.org/ws/2004/09/policy