XMPP protocol analysis-Details

Source: Internet
Author: User
Tags starttls
The XMPP protocol is analyzed through Wireshark packet capture. The following uses the Renren desktop version to demonstrate the XMPP client's process from logging on to getting new things. It is easier to understand the Protocol by analyzing specific data packets.

Step1.tcpEstablish a connection using a three-way handshake

Figure 1. XMPP client uses port 5222 to set SYN request connection

Figure 2. The server returns ACK, confirms the request, and sets the SYN request connection.

Figure 3. The client confirms the server connection request and the connection is established.

Step2.Client request, server response.

Figure 4. The client sends a Jabber/X Request request,

The client initializes the stream to the server.

Figure 5. The server returns Jabber/X response, and the server sends a stream tag to the client as a response

Figure 5.5 the server sends the starttls range to the client (including the authentication mechanism and any other stream features)

Figure 6. Send a request from the client Request to use transport layer encryption protocol [TLS]

Figure 7. Server Response, return Element, confirm transmission Encryption

Figure 8. Subsequent requests, data encrypted

Figure 9. After the response, the returned data is encrypted.

In this packet capture analysis, we can see that the security of XML documents is guaranteed, and encrypted data cannot be seen. , , Next time, we will analyze the open-source Jabber Client.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.