Instant Messaging Technology (IM) enables users to chat online in real time. If you want to send a message, the user needs to open a small window to let the user and his friends enter the information and have both parties see what they are talking about. Most commonly used instant Messaging senders offer a variety of features:
-
Instant Messaging-send messages back and forth between users and online friends
-
Chat-Create a custom chat room for users with friends or coworkers
-
Web links-Share your favorite URLs
-
Support Pictures-Browse pictures from your friends ' computers
-
Support sound-play music for friends
-
Support file transfer-send files directly to friends for easy sharing
-
talk-Use the Internet instead of the phone to have a real conversation with friends
-
Video streaming Content-real-time or quasi-real-time stock quotes or news
There are many IM systems, such as AOL IM, Yahoo IM, MSN im and we are familiar with QQ, their biggest difference lies in the implementation of their own communication protocol, so the core of instant communication technology is its transmission protocol, the Protocol is used to explain how information is transmitted on the network, if there is a unified transport protocol, It should be possible to achieve direct communication between the various IM, in order to create a unified standard of instant messaging, people have tried several times: the initial protocol of the IETF Dialogue Initiation Protocol (SIP) and the Instant Messenger dialog and the expression Extension Protocol (simple), the Application Exchange Protocol (APEX), Display and Instant Messaging Protocol (PRIM) and XML-based, open extensible Communication and Presentation Protocol (XMPP) protocol (often referred to as the Jabber protocol). There have been many attempts to unify the standards of major IM vendors (AOL, Yahoo, and Microsoft), but none have been successful and every IM continues to use the protocols it owns.
The
Impp primarily defines the necessary protocols and data formats for building an instant information system with the ability to receive and publish space. So far, the organization has published three draft RFCs, but there are two main: one for the site space and the Instant Messaging model (RFC 2778), and the other for the Instant Messaging/Space Protocol requirements (RFC2779). RFC2778 is a data-quality draft that defines the principles of all presence and IM services. RFC2779 defines the minimum requirement conditions for IMPP. In addition, the draft defines provisions on the presence service, such as the command to run, the format of the information, and how the presence server notifies the customer of the state change of the presence.
Simple is the perfect one that has been developed so far. Simple and XMPP two protocols, all conform to RFC2778 and RFC2779. Simple plans to use SIP to send presence information. SIP is the protocol that is developed for the endpoint in the IETF. SIP is generally considered to be used in the establishment of voice calls, once connected, according to the * Real Time Protocol (RTP) for the actual voice transmission. But sip can be used not only in voice, but also in video. Simple is defined as the method of establishing an IM process. Simple was given additional trust in the summer of 2002, and Microsoft and IBM are now working to implement this Protocol in their instant messaging systems. The
Simple team is committed to process mode operations, which will increase operational efficiency, enable SIP-based mechanisms for conferencing and tripartite telephone conversation control, and also take into account the many new features that can be offered in the future to achieve compatibility and improve performance. With process mode, simple uses SIP to establish a process, and then uses the SDP (Process description protocol) to actually transfer IM data.
XMPP is an XML-based protocol that inherits the flexibility of development in an XML environment. This indicates that XMPP is extensible. Applications such as content publishing systems and address-based services can be built on top of XMPP by sending extended information to handle the user's needs. Furthermore, XMPP contains a software protocol for the server side that enables it to talk to another, making it easier for developers to build customer applications or add functionality to a well-equipped system.
XMPP is currently widely used in free source code open Jabber im systems. This product has more than 50,000 downloads in 2002. XMPP has thousands of jabber developers, as well as approximately tens of thousands of configured servers and over millions of end users.
Xmpp:the extensible Messaging and Presence Protocol
Chinese full name: Extensible Communication and Presentation Protocol
Summary: Extensible communication and Presentation Protocol (XMPP) can be used for streaming XML data in service class real-time communication, representation, and demand-response services. XMPP is based on the Jabber protocol, while Jabber is an open protocol commonly used in instant messaging. XMPP is the IETF's formalization of the base XML streaming protocols for instant messaging and presence developed within T He Jabber Open-source community in 1999
XMPP (Extensible Messaging Field Protocol) is an Extensible Markup Language (XML)-based protocol that is used for instant messaging (IM) and online field probing. It facilitates quasi-immediate operation between servers. This agreement may eventually allow Internet users to send instant messages to anyone else on the internet, even if their operating systems and browsers are different.
XMPP's predecessor was Jabber, an open source form of organization-generated network Instant Messaging protocol. XMPP is currently being standardized by the IETF International Standards Organization. The core results of standardization are divided into two parts;
The core XML Stream Transfer Protocol
Application of instant communication extension based on XML Freeeim stream transmission
The definition of the core XML streaming protocol for XMPP enables XMPP to be on a more standardized platform than the previous network communication protocol. With the help of XML's easy parsing and reading features, the protocol of XMPP can be very beautiful.
The Instant Messenger extension Application section of XMPP is based on an abstract definition of instant messaging by the IETF prior to this, with other widely used instant messaging protocols such as AIM,QQ, which are functionally complete and perfect.
XMPP's extended protocol jingle makes IT support voice and video.
The official document for XMPP is RFC 3920.
Three roles, clients, servers, and gateways are defined in XMPP. Communication can occur bidirectional between any two of these three. The server also assumes the client information record, connection management and information routing function. The gateway undertakes the interconnection with the heterogeneous instant communication system, and the heterogeneous system can include SMS (SMS), MSN,ICQ and so on. The basic network form is that a single client connects to a single server over TCP/IP and then transmits the XML over it.
The transmission is an instruction related to instant messaging. In the past these commands are either sent in 2 binary form (such as QQ), or with a plain text instruction plus a space plus the parameter plus line Fu Jian (such as MSN). The logic of the instant communication Instructions transmitted by XMPP is similar to the previous ones, except that the form of the protocol becomes plain text in XML format. This not only makes the analysis easy, people are also easy to read, convenient development and error-checking. The central part of XMPP is a streaming protocol that sends XML over a network of fragments. This streaming protocol is the basis for the delivery of XMPP's instant messaging instructions and is also a very important network infrastructure protocol that can be further exploited. So it can be said that XMPP uses TCP to transmit the XML stream.
Recommended a Baidu space containing information about XMPP: Http://hi.baidu.com/jabber/home
XMPP official website: http://xmpp.org/
Jabber website, contains many implementations of XMPP: http://www.jabber.org/
XMPP Protocol Learning Note One