4.2 Example 2: Querying a Wired Sink

The following figure shows the layout of an example network that interconnects a media server and a TV with an integrated media player.

Example media server and TV (integrated media player network)

Figure 5: Example media server and TV (integrated media player network)

The media server is used to stream media content to the TV.

The following figure shows the protocol exchange between the media server and the TV.

Protocol exchange between the initiator and the wired sink device

Figure 6: Protocol exchange between the initiator and the wired sink device

The following list describes each step in the protocol exchange:

  1. The initiator initiates a TCP connection with the sink device at destination port 2177.

  2. The sink device accepts the TCP connection.

  3. The initiator constructs a Handshake Header (section 2.2.1.1) and sends it to the sink device.

  4. The initiator constructs a Common Message Header (section 2.2.1.2) with the Message_ID field set to 0x0009 (Connect) followed by the Connect Message (section 2.2.2.1)-specific header and sends it to the sink device.

  5. The sink acknowledges the Handshake Header from step 3 and constructs its own Handshake Header and sends it to the initiator.

  6. The sink acknowledges the Connect Message from step 4 and constructs a Common Message Header with the Message_ID field set to 0x000A (Connect Response) and sends it to the initiator.

  7. The sink follows up immediately with the rest of the Connect Response Message (section 2.2.2.2) by sending the Connect Response Message-specific header.

  8. The initiator sees that the W bit is cleared in the Connect Response Message-specific header and closes the TCP connection with the sink.

  9. The sink acknowledges the TCP connection close.