4.1 Hello Message at Server Startup and Bye Message at Shutdown

A host named \\myclient is a member of the Active Directory domain MyDomain. The host is connected to a single network, holding both an IPv4 address and an IPv6 address. When the BITS Peer-Caching: Peer Discovery Protocol server is started, the host sends the following message:

  
 (1) <?xml version="1.0" encoding="utf-8"?>
 (2) <soap:Envelope
 (3)  xmlns:soap="http://www.w3.org/2003/05/soap-envelope" 
 (4)  xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
 (5)  xmlns:wsd="http://schemas.xmlsoap.org/ws/2005/04/discovery"
 (6)  xmlns:msbits="http://schemas.microsoft.com/windows/2005/05/BITS/cache">
 (7)  <soap:Header>
 (8)    <wsa:To>
 (9)        urn:schemas-xmlsoap-org:ws:2005:04:discovery
 (10)        </wsa:To>
 (11)    <wsa:Action>
 (12)        http://schemas.xmlsoap.org/ws/2005/04/discovery/Hello
 (13)        </wsa:Action>
 (14)    <wsa:MessageID>
 (15)        urn:uuid:16d1ca53-23c0-4e27-accf-2bf71377f49e
 (16)        </wsa:MessageID>
 (17)    <wsd:AppSequence 
 (18)    InstanceId="1169067015" MessageNumber="2">
 (19)   </wsd:AppSequence>
 (20)  </soap:Header>
 (21)  <soap:Body>
 (22)    <wsd:Hello>
 (23)      <wsa:EndpointReference>
 (24)        <wsa:Address>
 (25)        uuid:A99558EB-C1D8-49D3-9476-8B9A6571800B
 (26)        </wsa:Address>
 (27)        <msbits:Fqdn>
 (28)        myclient.mydomain.com
 (29)        </msbits:Fqdn>
 (30)        <msbits:version>
 (31)        1
 (32)        </msbits:version>
 (33)      </wsa:EndpointReference>
 (34)      <wsd:Types>
 (35)        msbits:PeerServer
 (36)        </wsd:Types>
 (37)      <wsd:Scopes>
 (38)        http://mydomain.com
 (39)        </wsd:Scopes>
 (40)      <wsd:XAddrs>
 (41)        https://[2001:4898:2c:2:1db1:40d8:28fb:79d0]
 (42)        https://192.68.1.1
 (43)        </wsd:XAddrs>
 (44)      <wsd:MetadataVersion>
 (45)        1
 (46)        </wsd:MetadataVersion>
 (47)    </wsd:Hello>
 (48)  </soap:Body>
 (49) </soap:Envelope>

The packet is sent four times: twice to the IPv4 address 239.255.255.250 port 3702, and twice to the IPv6 address FF02::C port 3702. This follows the algorithm in [SOAP-UDP] Appendix I.

When the BITS Peer-Caching: Peer Discovery Protocol server is shut down, the following Bye message is sent. Like the Hello message, it is sent twice to each multicast address.

 (1) <?xml version="1.0" encoding="utf-8"?>
 (2) <soap:Envelope 
 (3)  xmlns:soap="http://www.w3.org/2003/05/soap-envelope" 
 (4)  xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
 (5)  xmlns:wsd="http://schemas.xmlsoap.org/ws/2005/04/discovery">
 (6)  <soap:Header>
 (7)    <wsa:To>
 (8)     urn:schemas-xmlsoap-org:ws:2005:04:discovery
 (9)    </wsa:To>
 (10)   <wsa:Action>
 (11)    http://schemas.xmlsoap.org/ws/2005/04/discovery/Bye
 (12)   </wsa:Action>
 (13)    <wsa:MessageID>
 (14)     urn:uuid:e1c429f4-661d-4f98-a6d3-ce712efa28b7
 (15)    </wsa:MessageID>
 (16)    <wsd:AppSequence 
 (17)     InstanceId="1169067015" 
 (18)     MessageNumber="3">
 (19)    </wsd:AppSequence>
 (20)  </soap:Header>
 (21)  <soap:Body>
 (22)    <wsd:Bye>
 (23)      <wsa:EndpointReference>
 (24)        <wsa:Address>
 (25)         uuid:A99558EB-C1D8-49D3-9476-8B9A6571800B
 (26)       </wsa:Address>
 (27)      </wsa:EndpointReference>
 (28)    </wsd:Bye>
 (29)  </soap:Body>
 (30) </soap:Envelope>