CN109450908A - Communication means based on distributed message - Google Patents

Communication means based on distributed message Download PDF

Info

Publication number
CN109450908A
CN109450908A CN201811405601.5A CN201811405601A CN109450908A CN 109450908 A CN109450908 A CN 109450908A CN 201811405601 A CN201811405601 A CN 201811405601A CN 109450908 A CN109450908 A CN 109450908A
Authority
CN
China
Prior art keywords
publisher
subscriber
health status
information
heartbeat
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
Application number
CN201811405601.5A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial Internet Innovation Center (shanghai) Co Ltd
Original Assignee
Industrial Internet Innovation Center (shanghai) Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Industrial Internet Innovation Center (shanghai) Co Ltd filed Critical Industrial Internet Innovation Center (shanghai) Co Ltd
Priority to CN201811405601.5A priority Critical patent/CN109450908A/en
Publication of CN109450908A publication Critical patent/CN109450908A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/165Combined use of TCP and UDP protocols; selection criteria therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Abstract

The invention discloses a kind of communication means based on distributed message, publisher sends its issuing subject information to information bank, subscriber sends the subscription subject information interested to it to information bank, information storehouse matching issuing subject information and subscription subject information and QoS, such as matching, it then reports to the interested subscriber of its theme, corresponding data are sent to corresponding subscriber by publisher later;Publisher, subscriber while compatible udp protocol and Transmission Control Protocol, it is autonomous to select transport layer using udp protocol or Transmission Control Protocol transmission data according to the real-time health status of network.Communication protocol can be adjusted flexibly in method proposed by the invention, preferably take into account real-time and reliability.

Description

Communication means based on distributed message
Technical field
The present invention relates to network communication fields, and in particular to a kind of communication means based on distributed message.
Background technique
In distributed message dissemination system, middleware Technology is one of important technology.Middleware in the process of running, no Requirement only functionally, and there are also the constraints of real-time, reliability etc..In the communication environment having, the reality of information When exchange it is mostly important, the real-time and key application requirement in system can accomplish " the correct time, correct place obtain Correct data ";And in some communication environments, then the reliable transmission of information is mostly important.
For traditional middleware, if requirement of real-time is higher, udp protocol often is used in transport layer, communication is double Side, without establishing network connection in advance, greatly reduces connection expense, data transmission efficiency is high, in real time before carrying out data exchange Property is good, but such middleware reliability is not high.If higher to reliability requirement, it is mostly based on Transmission Control Protocol, although sufficiently examining Consider the support to real-time, but inefficient, to the very high field of some requirement of real-time, will lead to catastrophic consequence.
With the extensive use of distributed message distribution technology, in many particular communication environments, to the real-time of middleware Property and reliability propose high requirement, thus traditional middleware can not meet the demand well.
Summary of the invention
In order to solve the above problem mentioned by background technique, the present invention provides a kind of communication party based on distributed message Method, distributed message dissemination system of the invention include publisher, subscriber and information bank, and publisher sends its to information bank Issuing subject information, subscriber send the subscription subject information interested to it, information storehouse matching issuing subject letter to information bank Breath and subscription subject information and QoS, if it matches, then reporting to the interested subscriber of its theme, publisher will be corresponding later Data be sent to corresponding subscriber;
Publisher, subscriber in the system compatible udp protocol and Transmission Control Protocol simultaneously, according to network healthy shape in real time Condition, it is autonomous that transport layer is selected to transmit data, i.e., when system is in " health status ", publisher using udp protocol or Transmission Control Protocol Data transmission between subscriber uses udp protocol;When system is in " unhealthy status ", between publisher and subscriber Data transmission use Transmission Control Protocol.
Optionally, heartbeat detection mechanism is introduced, heartbeat detection mechanism is by periodically sending heartbeat packet to other nodes And the mode of wait-for-response carrys out the health status of detection system.
Optionally, the heartbeat detection mechanism is to push away model or draw model.
Optionally, heartbeat detection is periodically carried out, the ratio that heartbeat packet is properly received is calculated, system is judged according to the ratio Health status.
Optionally, comprising the following specific steps
Step 101: periodically carrying out heartbeat detection, calculate the ratio that heartbeat packet is properly received;
Step 102: according to " health status " of the ratio-dependent system that heartbeat packet is properly received;
Step 103: judging whether system is in " health status ", if so, entering step 104;If not, entering step 105;
Step 104: system is in " health status ", and the data transmission between publisher and subscriber uses udp protocol;
Step 105: system is in " unhealthy status ", and the data transmission between publisher and subscriber uses Transmission Control Protocol.
Optionally, in a step 102, a threshold value is set in advance, is greater than or equal to this when heartbeat is bundled into the received ratio of function When threshold value, system is considered as " health status ";When heartbeat is bundled into the received ratio of function less than the threshold value, system is considered as " non- Health status ".
Communication protocol can be adjusted flexibly in method proposed by the invention, preferably take into account real-time and reliability.
Detailed description of the invention
Fig. 1 is the communication means flow chart of the invention based on distributed message.
Specific embodiment
Technical solution of the present invention and preferred embodiment hereafter are described with detailed reference to attached drawing, whereby to the present invention how Applied technology method solves technical problem, and the realization process for reaching technical effect can fully understand and implement.In order to The comprehensive understanding present invention, refers to many details, it will be understood by those skilled in the art that of the invention in the following detailed description It may not need these details and realize.In other embodiments, it is not described in detail well known method, process, in order to avoid need not Strategic point keeps embodiment fuzzy.
Distributed message dissemination system of the invention includes publisher, subscriber and information bank, and publisher sends out to information bank Its issuing subject information, subscriber is given to information bank to send subscription subject information interested to it, the publication of information storehouse matching Subject information and subject information and QoS are subscribed to, if it matches, then report to the interested subscriber of its theme, publisher later Corresponding data instance is sent to corresponding subscriber.
It being associated between publisher and subscriber by theme, publisher need to only issue the Data subject that it can be provided, Subscriber need to only subscribe to the Data subject interested to it, point-to-point data transmission be carried out after matching, without information Library node.If it is the transmission rate for improving data, transport layer preferably uses udp protocol;If more valuing reliability, transmit Layer preferably generally uses Transmission Control Protocol.
In the present invention, real-time and reliability, each network equipment are compatible with udp protocol and Transmission Control Protocol simultaneously in order to balance, It is autonomous that transport layer is selected to use udp protocol or Transmission Control Protocol according to the real-time health status of network.It is in order to monitor in real time " health status " of system introduces heartbeat detection mechanism, and heartbeat detection mechanism is by periodically sending heartbeat packet to other nodes And the mode of wait-for-response carrys out the state of each node in detection system.Heartbeat detection mechanism, which can be, used in the present invention pushes away Model is also possible to draw model.
With reference to the accompanying drawing 1, detailed description of the present invention embodiment.
Step 101: periodically carrying out heartbeat detection, calculate the ratio that heartbeat packet is properly received;
Step 102: according to " health status " of the ratio-dependent system that heartbeat packet is properly received;
Preferably, a threshold value is set in advance, when heartbeat is bundled into the received ratio of function more than or equal to the threshold value, by system It is considered as " health status ";When heartbeat is bundled into the received ratio of function less than the threshold value, system is considered as " unhealthy status ".
Step 103: judging whether system is in " health status ", if so, entering step 104;If not, entering step 105;
Step 104: system is in " health status ", and the data transmission between publisher and subscriber uses udp protocol;
Step 105: system is in " unhealthy status ", and the data transmission between publisher and subscriber uses Transmission Control Protocol.
In the present invention, by heartbeat detection, when determining that Network status is relatively good, Reliability comparotive is good at this time, to improve Network transmission efficiency, using udp protocol;By heartbeat detection, when determining that Network status is not so good, Reliability comparotive is poor at this time, Primary will solve integrity problem, thus use Transmission Control Protocol.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to restrict the invention, all in spirit of that invention and original Any modifications, equivalent replacements, and improvements etc. done within then, is both contained within protection scope of the present invention.

Claims (6)

1. a kind of communication means based on distributed message, which is characterized in that distributed message dissemination system includes publisher, orders Reader and information bank, publisher sends its issuing subject information to information bank, subscriber sends interested to it to information bank Subscription subject information, information storehouse matching issuing subject information and subscribe to subject information and QoS, if it matches, then report to it The interested subscriber of theme, corresponding data are sent to corresponding subscriber by publisher later;
Publisher, subscriber while compatible udp protocol and Transmission Control Protocol in the system, according to the real-time health status of network, certainly Main selection transport layer transmits data using udp protocol or Transmission Control Protocol, i.e., when system be in " health status ", publisher with order Data transmission between reader uses udp protocol;Number when system is in " unhealthy status ", between publisher and subscriber Transmission Control Protocol is used according to transmission.
2. heartbeat detection mechanism passes through week the method according to claim 1, wherein introducing heartbeat detection mechanism Carry out to phase property the health status of detection system to the mode of other nodes transmission heartbeat packet and wait-for-response.
3. according to the method described in claim 2, it is characterized in that, the heartbeat detection mechanism is to push away model or draw model.
4. the method according to any one of claim 2-3, which is characterized in that periodically carry out heartbeat detection, calculate the heart Jump is bundled into the received ratio of function, and the health status of system is judged according to the ratio.
5. according to the method described in claim 4, it is characterized by comprising steps in detail below:
Step 101: periodically carrying out heartbeat detection, calculate the ratio that heartbeat packet is properly received;
Step 102: according to " health status " of the ratio-dependent system that heartbeat packet is properly received;
Step 103: judging whether system is in " health status ", if so, entering step 104;If not, entering step 105;
Step 104: system is in " health status ", and the data transmission between publisher and subscriber uses udp protocol;
Step 105: system is in " unhealthy status ", and the data transmission between publisher and subscriber uses Transmission Control Protocol.
6. according to the method described in claim 5, it is characterized in that, in a step 102, a threshold value being arranged in advance, works as heartbeat packet When the ratio of successful reception is greater than or equal to the threshold value, system is considered as " health status ";When heartbeat is bundled into the received ratio of function When less than the threshold value, system is considered as " unhealthy status ".
CN201811405601.5A 2018-11-23 2018-11-23 Communication means based on distributed message Pending CN109450908A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811405601.5A CN109450908A (en) 2018-11-23 2018-11-23 Communication means based on distributed message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811405601.5A CN109450908A (en) 2018-11-23 2018-11-23 Communication means based on distributed message

Publications (1)

Publication Number Publication Date
CN109450908A true CN109450908A (en) 2019-03-08

Family

ID=65553648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811405601.5A Pending CN109450908A (en) 2018-11-23 2018-11-23 Communication means based on distributed message

Country Status (1)

Country Link
CN (1) CN109450908A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110049058A (en) * 2019-04-25 2019-07-23 深圳市云语科技有限公司 A kind of Transmission system bottom method for selecting transmission protocol
CN110086636A (en) * 2019-04-17 2019-08-02 平安科技(深圳)有限公司 A kind of message distributing method based on mqtt, server and storage medium
CN111935308A (en) * 2020-09-17 2020-11-13 中国人民解放军国防科技大学 Space-time-frequency resource data subscription and release method and device in space dynamic network
CN112468375A (en) * 2021-01-26 2021-03-09 奥特酷智能科技(南京)有限公司 Method for acquiring transmission performance evaluation data for data distribution service
CN113449234A (en) * 2021-05-11 2021-09-28 中国人民解放军63729部队 Method for multi-stage subscription and release of data
CN114616815A (en) * 2019-11-12 2022-06-10 西门子股份公司 Method for transmitting subscription data, and data providing component, data consuming component, network and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078831A (en) * 2011-10-26 2013-05-01 新太科技股份有限公司 Self-adaption method on basis of TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) transmission supported by streaming media
CN103166974A (en) * 2013-03-28 2013-06-19 浙江理工大学 Stream media wireless transmission method based on mix protocol of transmission control protocol and user datagram protocol
WO2016049321A1 (en) * 2014-09-25 2016-03-31 Microsoft Technology Licensing, Llc Managing classified network streams
US20160285923A1 (en) * 2015-03-27 2016-09-29 At&T Intellectual Property I, Lp Method and system for providing media services in a communication system
CN106452841A (en) * 2016-09-13 2017-02-22 中国电子科技集团公司第三十二研究所 Method for using transmission service quality in robot operating system
CN107104819A (en) * 2017-03-23 2017-08-29 武汉邮电科学研究院 Adaptive self-coordinating unified communications and communication means based on SDN
CN108040034A (en) * 2017-11-15 2018-05-15 中国航空无线电电子研究所 Distributing real communication middleware

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078831A (en) * 2011-10-26 2013-05-01 新太科技股份有限公司 Self-adaption method on basis of TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) transmission supported by streaming media
CN103166974A (en) * 2013-03-28 2013-06-19 浙江理工大学 Stream media wireless transmission method based on mix protocol of transmission control protocol and user datagram protocol
WO2016049321A1 (en) * 2014-09-25 2016-03-31 Microsoft Technology Licensing, Llc Managing classified network streams
US20160285923A1 (en) * 2015-03-27 2016-09-29 At&T Intellectual Property I, Lp Method and system for providing media services in a communication system
CN106452841A (en) * 2016-09-13 2017-02-22 中国电子科技集团公司第三十二研究所 Method for using transmission service quality in robot operating system
CN107104819A (en) * 2017-03-23 2017-08-29 武汉邮电科学研究院 Adaptive self-coordinating unified communications and communication means based on SDN
CN108040034A (en) * 2017-11-15 2018-05-15 中国航空无线电电子研究所 Distributing real communication middleware

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
屈军锁,左佳丽: "一种可靠数据传输技术的设计与实现", 《西安邮电大学学报》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110086636A (en) * 2019-04-17 2019-08-02 平安科技(深圳)有限公司 A kind of message distributing method based on mqtt, server and storage medium
CN110086636B (en) * 2019-04-17 2022-03-25 平安科技(深圳)有限公司 Message distribution method based on mqtt, server and storage medium
CN110049058A (en) * 2019-04-25 2019-07-23 深圳市云语科技有限公司 A kind of Transmission system bottom method for selecting transmission protocol
CN114616815A (en) * 2019-11-12 2022-06-10 西门子股份公司 Method for transmitting subscription data, and data providing component, data consuming component, network and device
CN111935308A (en) * 2020-09-17 2020-11-13 中国人民解放军国防科技大学 Space-time-frequency resource data subscription and release method and device in space dynamic network
CN112468375A (en) * 2021-01-26 2021-03-09 奥特酷智能科技(南京)有限公司 Method for acquiring transmission performance evaluation data for data distribution service
CN112468375B (en) * 2021-01-26 2021-04-23 奥特酷智能科技(南京)有限公司 Method for acquiring transmission performance evaluation data for data distribution service
CN113449234A (en) * 2021-05-11 2021-09-28 中国人民解放军63729部队 Method for multi-stage subscription and release of data

Similar Documents

Publication Publication Date Title
CN109450908A (en) Communication means based on distributed message
CN104363407B (en) A kind of video conferencing system means of communication and related device
US8565095B2 (en) Context controlled data tap utilizing parallel logic for integrated link monitoring
CN102859921A (en) System and method for achieving accelerated throughput
CN109274747A (en) Market gateway system and its processing method
CN101731014A (en) Methods and apparatus for supporting group communications
CN101690363A (en) Methods and apparatus for supporting group communications utilizing device identifiers
CN101690279A (en) Methods and apparatus for supporting group communications with data re-transmission support
CN102106113A (en) Data streaming through time-varying transport media
CN109327493A (en) A kind of remote medical monitoring system based on cloud and monitoring method
CN104660708A (en) HTTP (Hyper Text Transfer Protocol) based mobile application message forwarding method and system
CN103634203B (en) Message asynchronous transport method, device and system
CN106464510A (en) Efficiently mixing voip data
CN106059936B (en) The method and device of cloud system Multicast File
CN111585776B (en) Data transmission method, device, equipment and computer readable storage medium
CN102484616B (en) Transmitting terminal and band estimation method
CN110493658A (en) A kind of network bandwidth method for detecting, equipment and storage equipment
CN114071247A (en) Block chain data broadcast transmission method, system, computer equipment and computer readable storage medium
CN110012051A (en) Notify method for pushing, device, terminal device, server and system
US8224940B2 (en) Strategies for compressing information using bloom filters
CN101548514A (en) Method for exchanging messages in a mobile radio network
US7453812B1 (en) Method for detecting and correcting publish-subscribe looping in a messaging network
CN111787039A (en) System and method for monitoring pathological parameters
TWI376917B (en) Frame merging apparatus and method thereof
CN110995603A (en) Many-to-many transmission method of data and heterogeneous data transmission layer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190308