CN106487890A - A kind of cross-node communication network requesting method based on XMPP - Google Patents
A kind of cross-node communication network requesting method based on XMPP Download PDFInfo
- Publication number
- CN106487890A CN106487890A CN201610884472.7A CN201610884472A CN106487890A CN 106487890 A CN106487890 A CN 106487890A CN 201610884472 A CN201610884472 A CN 201610884472A CN 106487890 A CN106487890 A CN 106487890A
- Authority
- CN
- China
- Prior art keywords
- message
- cross
- node
- domain
- agreement
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/06—Message adaptation to terminal or network requirements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of cross-node communication network requesting method based on XMPP, defines trust domain, the instant message to transmitting is identified, and only from the instant message for trusting domain server, network request could be processed;Agreement is defined, agreement is communicated using HTTP2 agreement, increase random code, check value, timestamp information in URL during communication, for verifying header;Message format is defined, cross-node communication message increased crossdomain nodal information than normal messages, be added by sending node automatically;Cross-node message is transmitted receiving by internet.Realize, by the method, the message for carrying out safety and stability by XMPP among multiple nodes to send and reception.
Description
Technical field
The invention belongs to field of power, is related to a kind of cross-node communication network requesting method based on XMPP.
Background technology
As the mobile interchange number of users of power system is more and more, customer volume is increasing, and number of users assumes non-thread
Property increase, single node deployment mode cannot meet growing demand in the resources such as bandwidth, hardware, be also easy to produce therefore
Barrier, affects Consumer's Experience.
Content of the invention
For reducing the coverage of single deployment node failure, load and the O&M pressure of instant communication server is shunted,
It is an object of the invention to provide a kind of cross-node communication network requesting method based on XMPP, is realized many by the method
The message for safety and stability being carried out by XMPP between individual node sends and receives.
The purpose of the present invention is achieved through the following technical solutions:
A kind of cross-node communication network requesting method based on XMPP, it is characterised in that the method is comprised the following steps:
1)Trust domain is defined, the instant message to transmitting is identified, only from the instant message for trusting domain server,
Network request could be processed, and trust domain is bound with IP address, be verified;
2)Agreement is defined, agreement is communicated using HTTP2 agreement, in URL, during communication, increase random code, check value, time
Stamp information, for verifying header, it is ensured that source-information reliable and stable;
3)Message format is defined, cross-node communication message increased crossdomain nodal information than normal messages, be saved by transmission
Point adds automatically, conveniently application identification cross-node message and non-cross-node message;
4)Cross-node message is transmitted receiving by internet.
In the present invention, it is as follows that cross-node message is transmitted, by internet, the performance optimization method for receiving:
1)Deposit deferred information, system retrieval user not immediately by message deposit to deferred information queue after line, asynchronous and batch
It is saved in database;
2)Retrieval domain because domain is stored in database, sending every time message needs to inquire about user place domain, hence set up for
With the corresponding relation in domain, row cache of going forward side by side is processed, so that user arbitrarily carries out domain information switching;
3)Transmission optimization, normal HTTPS communication needs shake hands, coordinate AES process, and time delay is larger, using HTTP2 batch
Message packet is sent, is reduced flow and improves transmission performance.
The present invention realizes the deployment of instant communication server multinode, mitigates the pressure of single server, the visit of dispersion user
Request is asked, meets user's request.Realize carrying out disappearing for safety and stability by XMPP among multiple nodes by the method
Breath sends and receives.
Description of the drawings
Fig. 1 is the schematic flow sheet of the present invention.
Specific embodiment
A kind of cross-node communication network requesting method based on XMPP, comprises the following steps:
1)Trust domain is defined, the instant message to transmitting is identified, only from the instant message for trusting domain server,
Network request could be processed, and trust domain is bound with IP address, be verified.
2)Define agreement, agreement communicated using HTTP2 agreement, increase in URL during communication random code, check value,
Timestamp information, for verifying header, it is ensured that source-information reliable and stable.
3)Message format is defined, cross-node communication message increased crossdomain nodal information than normal messages, by sending out
Node is sent to add automatically, convenient application recognizes cross-node message and non-cross-node message.
4)Because cross-node message is transmitted cost greatly by internet, so proposing several sides that performance is optimized
Method:
(1)Deposit deferred information, system retrieval user not immediately by message deposit to deferred information queue after line, asynchronous and batch
It is saved in database.
(2)Retrieval domain, because domain is stored in database, sending message every time needs to inquire about user place domain, therefore builds
Stand for the corresponding relation with domain, row cache of going forward side by side is processed, domain information switching can be arbitrarily carried out so as to user.
(3)Transmission optimization, normal HTTPS communication needs shake hands, coordinate AES process, and time delay is larger, therefore adopts
HTTP2 can be reduced flow and improved transmission performance with Batch sending message packet.
Embodiment:
As shown in figure 1, the user of node 1 sends instant message to the user of node 2, step is as follows:
1. 1 user of node sends instant message to the node serve that he is located, and this message is transmitted using XMPP, than just
Often protocol extension crossdomain information, mainly adds in protocol massages message<crossmain fromdomain=””
todomain=””>, so as to application identification cross-node message.
2. after the instant messaging service of node 1 receives the message of 1 user of node, the letter that retrieval recipient user is located first
Appoint domain, then information is sent in the way of HTTP2 agreement.
3. random code, check value, timestamp information increased in the URL header in message packet.
4. whether online, after node 2 receives message, recipient user is first checked for, if online, then do not sent a message to
Deferred information queue, and asynchronous batch is saved in node database.As online, then pushed messages to user.
Claims (2)
1. a kind of cross-node communication network requesting method based on XMPP, it is characterised in that the method is comprised the following steps:
1)Trust domain is defined, the instant message to transmitting is identified, only from the instant message for trusting domain server,
Network request could be processed, and trust domain is bound with IP address, be verified;
2)Agreement is defined, agreement is communicated using HTTP2 agreement, in URL, during communication, increase random code, check value, time
Stamp information, for verifying header, it is ensured that source-information reliable and stable;
3)Message format is defined, cross-node communication message increased crossdomain nodal information than normal messages, be saved by transmission
Point adds automatically, conveniently application identification cross-node message and non-cross-node message;
4)Cross-node message is transmitted receiving by internet.
2. the cross-node communication network requesting method based on XMPP according to claim 1, it is characterised in that:Step
4)In, performance optimization method is as follows:
1)Deposit deferred information, system retrieval user not immediately by message deposit to deferred information queue after line, asynchronous and batch
It is saved in database;
2)Retrieval domain because domain is stored in database, sending every time message needs to inquire about user place domain, hence set up for
With the corresponding relation in domain, row cache of going forward side by side is processed, so that user arbitrarily carries out domain information switching;
3)Transmission optimization, normal HTTPS communication needs shake hands, coordinate AES process, and time delay is larger, using HTTP2 batch
Message packet is sent, is reduced flow and improves transmission performance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610884472.7A CN106487890A (en) | 2016-10-11 | 2016-10-11 | A kind of cross-node communication network requesting method based on XMPP |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610884472.7A CN106487890A (en) | 2016-10-11 | 2016-10-11 | A kind of cross-node communication network requesting method based on XMPP |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106487890A true CN106487890A (en) | 2017-03-08 |
Family
ID=58269271
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610884472.7A Pending CN106487890A (en) | 2016-10-11 | 2016-10-11 | A kind of cross-node communication network requesting method based on XMPP |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106487890A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108111404A (en) * | 2018-01-15 | 2018-06-01 | 中国科学院信息工程研究所 | A kind of instantaneous communication system and method based on safety label |
CN108600330A (en) * | 2018-03-29 | 2018-09-28 | 努比亚技术有限公司 | Deferred information method for pushing, equipment and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101394374A (en) * | 2008-11-11 | 2009-03-25 | 腾讯科技(深圳)有限公司 | Method for sharing customer information, distributed instant communication, system and device thereof |
US20120084215A1 (en) * | 2010-10-05 | 2012-04-05 | Accenture Global Services Limited | Electronic Process-Driven Collaboration System |
CN102594845A (en) * | 2012-03-29 | 2012-07-18 | 东南大学 | Instant message transmission method based on XMPP |
CN103701946A (en) * | 2013-12-20 | 2014-04-02 | 珠海金山网络游戏科技有限公司 | Method and system for client-side to be in communication with server through URL (Universal Resource Locator) |
CN105991712A (en) * | 2015-02-12 | 2016-10-05 | 林琳 | Network accelerating device |
-
2016
- 2016-10-11 CN CN201610884472.7A patent/CN106487890A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101394374A (en) * | 2008-11-11 | 2009-03-25 | 腾讯科技(深圳)有限公司 | Method for sharing customer information, distributed instant communication, system and device thereof |
US20120084215A1 (en) * | 2010-10-05 | 2012-04-05 | Accenture Global Services Limited | Electronic Process-Driven Collaboration System |
CN102594845A (en) * | 2012-03-29 | 2012-07-18 | 东南大学 | Instant message transmission method based on XMPP |
CN103701946A (en) * | 2013-12-20 | 2014-04-02 | 珠海金山网络游戏科技有限公司 | Method and system for client-side to be in communication with server through URL (Universal Resource Locator) |
CN105991712A (en) * | 2015-02-12 | 2016-10-05 | 林琳 | Network accelerating device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108111404A (en) * | 2018-01-15 | 2018-06-01 | 中国科学院信息工程研究所 | A kind of instantaneous communication system and method based on safety label |
CN108111404B (en) * | 2018-01-15 | 2020-10-13 | 中国科学院信息工程研究所 | Instant messaging system and method based on security label |
CN108600330A (en) * | 2018-03-29 | 2018-09-28 | 努比亚技术有限公司 | Deferred information method for pushing, equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103535004B (en) | Method for promoting anonymity audio and video communication and system based on web | |
US8599695B2 (en) | Selective internet priority service | |
US10148565B2 (en) | OPENFLOW communication method and system, controller, and service gateway | |
US10609181B2 (en) | Method and apparatus for controlling service chain of service flow | |
WO2018113373A1 (en) | Data transmission method and device | |
CA2557145A1 (en) | System, apparatus and method for communicating asynchronously with synchronous web services using a mediator service | |
CN104009938A (en) | Method and system for long connections based on router level | |
JP2019528495A5 (en) | ||
CN102625287A (en) | Method for downloading mobile phone application software | |
US11115498B2 (en) | Multi-path management | |
CN102469124A (en) | Implementation method, gateway, agency and system of mobile internet business based on AOG | |
CN103401946A (en) | HTTP (hyper text transfer protocol) uploading acceleration method and system | |
CN103548315A (en) | Method and apparatus for high performance low latency real time notification delivery | |
WO2023221452A1 (en) | Packet processing system and method, device, and storage medium | |
CN104010001A (en) | Method and system for carrying out connection communication on same networking requests in mobile terminal | |
CN102571575A (en) | Session information creation method, device and system | |
CN106789993B (en) | TCP agent method and device | |
CN106487890A (en) | A kind of cross-node communication network requesting method based on XMPP | |
WO2012003668A1 (en) | Method, system and interworking server for transmitting message | |
US20140068001A1 (en) | Intermediate proxy server, communication method, and communication system based on http multi-level proxy | |
CN101156400B (en) | Method and system for processing message in multimedia message service | |
WO2011140801A1 (en) | Method, apparatus, and system for sending multimedia messages | |
CN102802197A (en) | Method and device for transmitting application data | |
CN102857482A (en) | Method and system for transmitting data on basis of multiple servers | |
WO2010009666A1 (en) | Method, system and device for implementing multimedia service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170308 |
|
RJ01 | Rejection of invention patent application after publication |