MSNP10 protocol analysis 00. Basic [by progsoft]

xiaoxiao2021-03-06  99

In 1999, Microsoft submitted a draft "MSN Messenger Service 1.0 Protocol" draft to IETF, which is the original version of MSN Messenger protocol. Now the MSN version is 6.2, the protocol version is MSNP10, which focuses on the basic situation of MSNP10. The article is mainly analyzed by the author's analysis, while referring to the information of others. The MSN's protocol is based on TCP, except P2P file transfer and voice conversation, etc., all connects are 1863 ports that are servers.

MSN logins, you need to deal in three servers: 1. Dispatch Server: Assign Server, referred to as DS effect: Guide users to stereotype NS, equalization server load

2. Notification Server: Notify the server, referred to as NS effect: Maintain the entire session server, including user list, group information, own changes, request dialog, and send files, with Hotmail E-mail, etc.

3. Switchboard Server: Wiring server, referred to as SS effect: The gateway between the chat dialog, the request of each conversation begins, and requests for file transfer, etc., you must first and SB calls.

Most of the MSN commands are the format of the plain text architecture (file transfer, user avatar partial ASC), so we are more convenient to analyze. And these commands are stored in the datagram being passed to the server or client. These passing data streams can be divided into three data: commands, information, and errors.

The commands command is similar to the DOS command. The command of the MSN is usually 3 letters, and the back is followed by parameters, and the parameters are spaced in segmentation, and finally end with / R / N. Grammatical structure: xxx [ Trid param1 param2 ...]

Messages Information All information is started with MSG and can be seen as a special command. The special part is that the segmentation symbol includes spaces and newline (/ r / n), so the number of the last parameters of the message represents the length of the message (starting from the second row). Syntax structure: MSG [ param1 param2 ...] len line1 line2 ...

ErrorS error error is a special command that starts with three decimal numbers, followed by an ID, indicating that the error generated command number is indicated. Grammatical structure: XXX [ Trid]

The Trid Transaction ID is sent from the client to the server, and there should be a transaction ID. The answering command of the server response, but also contains the same transaction ID. The range of transaction ID is 0-4294967295. Theoretically start from 0, then 1 each time. In fact, as long as you can distinguish between different commands.

Note: = / x20 = / r / n

转载请注明原文地址:https://www.9cbs.com/read-124074.html

New Post(0)