CN104796228A - Information transmission method, device and system - Google Patents

Information transmission method, device and system Download PDF

Info

Publication number
CN104796228A
CN104796228A CN201510164175.0A CN201510164175A CN104796228A CN 104796228 A CN104796228 A CN 104796228A CN 201510164175 A CN201510164175 A CN 201510164175A CN 104796228 A CN104796228 A CN 104796228A
Authority
CN
China
Prior art keywords
receiving terminal
heartbeat message
running
command information
sends
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.)
Granted
Application number
CN201510164175.0A
Other languages
Chinese (zh)
Other versions
CN104796228B (en
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.)
TVM Beijing Education Technology Co Ltd
Original Assignee
TVM Beijing Education Technology 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 TVM Beijing Education Technology Co Ltd filed Critical TVM Beijing Education Technology Co Ltd
Priority to CN201510164175.0A priority Critical patent/CN104796228B/en
Publication of CN104796228A publication Critical patent/CN104796228A/en
Application granted granted Critical
Publication of CN104796228B publication Critical patent/CN104796228B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses an information transmission method, device and system and aims to improve reliability of network connection. The method includes: running a first process to transmit heart beat information to a receiving terminal; running a second process to transmit command information to the receiving terminal. transmission of the heart beat information and that of the command information do not interfere each other; thus, the transmission of the heart beat information is never delayed due to the transmission of the command information, chances that the network connection malfunctions due to the receiving terminal failing to accurately receive the heart beat information are slimmed, and network connection reliability is improved.

Description

A kind of method of information transmission, Apparatus and system
Technical field
The present invention relates to computer communication technology field, particularly a kind of method, Apparatus and system of information transmission.
Background technology
Heartbeat message (Heartbeat Message) is the message that a kind of transmitting terminal is sent to receiving terminal, and whether this message can allow receiving terminal determination transmitting terminal and when break down or to stop.Usually, send when heartbeat message starts from transmitting terminal, until transmitting terminal is closed, period transmitting terminal can continual transmission periodicity or repetition message.When receiving terminal does not receive message within certain message sink cycle, receiving terminal may think that transmitting terminal is closed, break down or current network unavailable, thus to disconnect.And command information is a kind of command information indicating receiving terminal to perform certain operation
At present, no matter be heartbeat message or command information, transmitting terminal all adopts same process to transmit.Specifically can comprise: transmitting terminal periodically sends heartbeat message in a process, and interval heartbeat message sends command information in this process.When adopting same process transmission heartbeat message and command information, if instruction is many, namely command information is larger, and the time sending command information is long, like this, heartbeat message just can not have sent according to original cycle, therefore, receiving terminal may think receiving terminal break down or current network unavailable, thus disconnect, thus, reduce the reliability that network connects, also reduce the accuracy of fault-tolerant processing.
Summary of the invention
The invention provides a kind of method and apparatus of information transmission, in order to improve the reliability that network connects.
The invention provides a kind of method of information transmission, comprising:
First process of running sends heartbeat message to receiving terminal;
Second process of running sends command information to described receiving terminal.
Some beneficial effects of the embodiment of the present invention can comprise:
Two processes are adopted to send heartbeat message and instruction information respectively, like this, send heartbeat message not interfere with each other with transmission command information, thus, the transmission of heartbeat message can not be delayed because sending command information, decreasing receiving terminal causes network to connect the probability of makeing mistakes because not receiving heartbeat message on time, improves the reliability that network connects.
In one embodiment of the invention, when there being at least two receiving terminals, described operation first process sends heartbeat message to receiving terminal and comprises:
Run described first process and send described heartbeat message to each receiving terminal poll.
Like this, the process of information transmission can be applicable to comprise in the network system of multiple receiving terminal.
In one embodiment of the invention, between described first process and described second process, carry out multiplexed port.
Visible, can multiplexed port be carried out between the second process and the second process, namely between the second process and the second process, have employed the technology of multiplexed IO.Thus, can the port of reasonable employment transmitting terminal, save resource.
In one embodiment of the invention, when running described first process and sending the failure of described heartbeat message to current receiving terminal, notify that described second process stops sending described command information to described current receiving terminal.
Visible, send unsuccessfully at heartbeat message, second process that notifies in time stops sending command information to current receiving terminal.Which reduce and run burden, also can not cause the loss of information.
The invention provides a kind of device of information transmission, comprising:
First running unit, sends heartbeat message for running the first process to receiving terminal;
Second running unit, sends command information for running the second process to described receiving terminal.
In one embodiment of the invention, described first running unit, specifically for when there being at least two receiving terminals, running described first process and sending described heartbeat message to each receiving terminal poll.
In one embodiment of the invention, this device also comprises:
Notification unit, for when running described first process and sending the failure of described heartbeat message to current receiving terminal, notify that described second process stops sending described command information to described current receiving terminal, wherein, between described first process and described second process, carry out multiplexed port.
Visible, the device of information transmission can adopt two processes to send heartbeat message and instruction information respectively, like this, send heartbeat message not interfere with each other with transmission command information, thus, can not delay the transmission of heartbeat message because sending command information, decreasing receiving terminal because not receiving heartbeat message on time causes network to connect the probability of makeing mistakes, and improves the reliability of network connection.
In addition, the device of information transmission sends unsuccessfully at heartbeat message, and second process that notifies in time stops sending command information to current receiving terminal.Which reduce and run burden, also can not cause the loss of information.
The invention provides a kind of system of information transmission, comprising:
Transmitting terminal, sends heartbeat message for running the first process to receiving terminal, and second process of operation sends command information to described receiving terminal;
According to described heartbeat message, whether receiving terminal, for receiving the described heartbeat message and described command information that described transmitting terminal sends, and determine that the network formed with described transmitting terminal is connected and break down.
In one embodiment of the invention, described transmitting terminal, specifically for when described system comprises at least two receiving terminals, runs described first process and sends described heartbeat message to each receiving terminal poll.
In one embodiment of the invention, described transmitting terminal, also for when running described first process and sending the failure of described heartbeat message to current receiving terminal, notify that described second process stops sending described command information to described current receiving terminal, wherein, multiplexed port is carried out between described first process and described second process.
The system of information transmission, comprise transmitting terminal and at least one receiving terminal, transmitting terminal have employed two processes respectively to run the transmission of heartbeat message and instruction information, thus, can not delay the transmission of heartbeat message because sending command information, decreasing receiving terminal because not receiving heartbeat message on time causes network to connect the probability of makeing mistakes, and improves the reliability of network connection.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from specification, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write specification, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart of information transmission in the embodiment of the present invention one;
Fig. 2 is the flow chart of information transmission in the embodiment of the present invention two;
Fig. 3 is the structure chart of the device of information transmission in the embodiment of the present invention three;
Fig. 4 is the Organization Chart of the system of information transmission in the embodiment of the present invention four.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Embodiment one, Fig. 1 is the flow chart of a kind of information transmission in the embodiment of the present invention.As shown in Figure 1, comprising:
Step 101: the first process of running sends heartbeat message to receiving terminal.
In embodiments of the present invention, transmitting terminal sends heartbeat message to receiving terminal, and by heartbeat message, receiving terminal can determine whether and when transmitting terminal breaks down or stop, thus, also can determine that network that transmitting terminal and receiving terminal form is connected and whether and when break down.
Transmitting terminal can run an independent process to send heartbeat message, and here, transmitting terminal can run the first process and periodically send heartbeat message to receiving terminal.And when there being two or more receiving terminal, and during at least two receiving terminals, then transmitting terminal can run the first process and periodically send heartbeat message to each receiving terminal poll.
Transmitting terminal can be server, client or other arbitrary apparatus for network node.
Step 102: the second process of running sends command information to receiving terminal.
In the embodiment of the present invention, transmitting terminal can carry out multi-process operation, and heartbeat message is sent by an independent process, and command information is then undertaken sending by another, and here, transmitting terminal runs the second process and sends command information to receiving terminal.
Step 101 and step 102 can be run simultaneously, but i.e. the first process and the second process concurrent process.Like this, can multiplexed port be carried out between the second process and the second process, namely between the second process and the second process, have employed the technology of multiplexed IO.Thus, can the port of reasonable employment transmitting terminal, save resource.
When there being two or more receiving terminal, the identity information of receiving terminal in command information, can be included, thus according to the identity information carried in command information, command information is sent to the receiving terminal corresponding with identity information by the second process of running.
Visible, in the embodiment of the present invention, two processes are adopted to send heartbeat message and instruction information respectively, like this, send heartbeat message not interfere with each other with transmission command information, thus, the transmission of heartbeat message can not be delayed because sending command information, decreasing receiving terminal causes network to connect the probability of makeing mistakes because not receiving heartbeat message on time, improves the reliability that network connects.
Embodiment two, in the present embodiment, when multi-process runs, when operation first process sends heartbeat message failure to receiving terminal, second process that notifies stops sending command information to receiving terminal.See Fig. 2, in the present embodiment, the process of information transmission comprises:
Step 201: the first process of running sends heartbeat message to receiving terminal.
Transmitting terminal runs the first process to send heartbeat message.And when there being multiple receiving terminal, then transmitting terminal can run the first process and send heartbeat message to each receiving terminal poll.Generally, heartbeat message periodically sends.
Equally, transmitting terminal can be server, client or other arbitrary apparatus for network node.
Step 202: the second process of running sends command information to receiving terminal.
In the embodiment of the present invention, transmitting terminal can carry out multi-process operation, and command information is then undertaken sending by another, and here, transmitting terminal runs the second process and sends command information to receiving terminal.
First process and the second process can be concurrent processes.Like this, can multiplexed port be carried out between the second process and the second process, namely between the second process and the second process, have employed the technology of multiplexed IO.Thus, can the port of reasonable employment transmitting terminal, save resource.
Step 203: when operation first process sends heartbeat message failure to current receiving terminal, second process that notifies stops sending command information to current receiving terminal.
When transmitting terminal does not receive the response message of receiving terminal transmission, or other transmission failure information, then can determine to send heartbeat message failure by the first process.No matter there is a receiving terminal, or two or more receiving terminal, the receiving terminal just preparing reception information is current receiving terminal.
When determining that operation first process sends heartbeat message failure to current receiving terminal, second process that notifies stops sending command information to current receiving terminal.Heartbeat message sends unsuccessfully, and the network between receiving terminal with transmitting terminal is connected may occur fault, and therefore, second process that notifies in time stops sending command information to current receiving terminal.
In visible enforcement, when heartbeat message sends unsuccessfully, second process that notifies in time stops sending command information to current receiving terminal.Which reduce the operation burden of transmitting terminal, also can not cause the loss of information.
Embodiment three, according to the process of above-mentioned information transmission, can build a kind of device of information transmission, and as shown in Figure 3, this device comprises: the first running unit 310 and the second running unit 320.Wherein,
First running unit 310, sends heartbeat message for running the first process to receiving terminal.
Second running unit 320, sends command information for running the second process to receiving terminal.
But the first running unit 310 and the second running unit 320 two unit arranged side by side, like this, the device of information transmission adopts two processes to send heartbeat message and instruction information respectively.
In one embodiment of the invention, the first running unit 310, specifically for when there being at least two receiving terminals, the first process of running sends heartbeat message to each receiving terminal poll.
Like this, the second running unit 320, specifically can be used for the identity information according to carrying in command information, and command information is sent to the receiving terminal corresponding with identity information by the second process of running.
In one embodiment of the invention, this device also comprises:
Notification unit, for when operation first process sends heartbeat message failure to current receiving terminal, second process that notifies stops sending command information to current receiving terminal, wherein, carries out multiplexed port between the first process and the second process.
The device of information transmission specifically can be transmitting terminal, can be server, client or other arbitrary apparatus for network node.
The device of information transmission can adopt two processes to send heartbeat message and instruction information respectively, like this, send heartbeat message not interfere with each other with transmission command information, thus, the transmission of heartbeat message can not be delayed because sending command information, decreasing receiving terminal causes network to connect the probability of makeing mistakes because not receiving heartbeat message on time, improves the reliability that network connects.
Further, can carry out multiplexed port between the second process and the second process, the port of reasonable employment transmitting terminal, saves resource.
In addition, the device of information transmission sends unsuccessfully at heartbeat message, and second process that notifies in time stops sending command information to current receiving terminal.Which reduce and run burden, also can not cause the loss of information.
Embodiment four, according to the process of above-mentioned information transmission, can build a kind of system of information transmission, and as shown in Figure 4, this device comprises: transmitting terminal 100 and receiving terminal 200.Wherein,
Transmitting terminal 100, sends heartbeat message for running the first process to receiving terminal, and second process of operation sends command information to receiving terminal.
Whether receiving terminal 200, is connected with transmitting terminal 100, the heartbeat message sent for receiving end/sending end and command information, and determine that the network formed with transmitting terminal is connected according to heartbeat message and break down.
Transmitting terminal 100 sends heartbeat message to receiving terminal 200, pass through heartbeat message, receiving terminal 200 can determine whether and when transmitting terminal 100 breaks down or stop, thus, also can determine that network that transmitting terminal 100 and receiving terminal 200 form is connected and whether and when break down.Generally,
And in one embodiment of the invention, transmitting terminal 100, specifically for when system comprises at least two receiving terminals 200, the first process of running sends heartbeat message to each receiving terminal 200 poll.Generally, transmitting terminal 100 periodically sends heartbeat message to each receiving terminal 200 poll.
Further, this transmitting terminal 100 also can according to the identity information carried in command information, and command information is sent to the receiving terminal corresponding with identity information by the second process of running.
Visible, this system can one, two or more receiving terminal 200.
In one embodiment of the invention, transmitting terminal 100, also for when operation first process sends heartbeat message failure to current receiving terminal, second process that notifies stops sending command information to current receiving terminal, wherein, multiplexed port is carried out between the first process and the second process.
Transmitting terminal 100 can carry out multi-process operation, but the first process and the second process concurrent process.Like this, can multiplexed port be carried out between the second process and the second process, namely between the second process and the second process, have employed the technology of multiplexed IO.Thus, can the port of reasonable employment transmitting terminal, save resource.
Visible, the system of the information transmission in the embodiment of the present invention, comprise transmitting terminal and at least one receiving terminal, transmitting terminal have employed two processes respectively to run the transmission of heartbeat message and instruction information, thus, can not delay the transmission of heartbeat message because sending command information, decreasing receiving terminal because not receiving heartbeat message on time causes network to connect the probability of makeing mistakes, and improves the reliability of network connection.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a method for information transmission, is characterized in that, comprising:
First process of running sends heartbeat message to receiving terminal;
Second process of running sends command information to described receiving terminal.
2. the method for claim 1, is characterized in that, when there being at least two receiving terminals, described operation first process sends heartbeat message to receiving terminal and comprises:
Run described first process and send described heartbeat message to each receiving terminal poll.
3. method as claimed in claim 1 or 2, is characterized in that, carry out multiplexed port between described first process and described second process.
4. method as claimed in claim 3, is characterized in that, also comprise:
When running described first process and sending the failure of described heartbeat message to current receiving terminal, notify that described second process stops sending described command information to described current receiving terminal.
5. a device for information transmission, is characterized in that, comprising:
First running unit, sends heartbeat message for running the first process to receiving terminal;
Second running unit, sends command information for running the second process to described receiving terminal.
6. device as claimed in claim 5, is characterized in that,
Described first running unit, specifically for when there being at least two receiving terminals, running described first process and sending described heartbeat message to each receiving terminal poll.
7. the device described in claim 5 or 6, is characterized in that, also comprises:
Notification unit, for when running described first process and sending the failure of described heartbeat message to current receiving terminal, notify that described second process stops sending described command information to described current receiving terminal, wherein, between described first process and described second process, carry out multiplexed port.
8. a system for information transmission, is characterized in that, comprising:
Transmitting terminal, sends heartbeat message for running the first process to receiving terminal, and second process of operation sends command information to described receiving terminal;
According to described heartbeat message, whether receiving terminal, for receiving the described heartbeat message and described command information that described transmitting terminal sends, and determine that the network formed with described transmitting terminal is connected and break down.
9. system according to claim 8, is characterized in that,
Described transmitting terminal, specifically for when described system comprises at least two receiving terminals, runs described first process and sends described heartbeat message to each receiving terminal poll.
10. the system described in claim 8 or 9, is characterized in that,
Described transmitting terminal, also for when running described first process and sending the failure of described heartbeat message to current receiving terminal, notify that described second process stops sending described command information to described current receiving terminal, wherein, between described first process and described second process, carry out multiplexed port.
CN201510164175.0A 2015-04-08 2015-04-08 A kind of method, apparatus and system of information transmission Expired - Fee Related CN104796228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510164175.0A CN104796228B (en) 2015-04-08 2015-04-08 A kind of method, apparatus and system of information transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510164175.0A CN104796228B (en) 2015-04-08 2015-04-08 A kind of method, apparatus and system of information transmission

Publications (2)

Publication Number Publication Date
CN104796228A true CN104796228A (en) 2015-07-22
CN104796228B CN104796228B (en) 2018-11-20

Family

ID=53560767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510164175.0A Expired - Fee Related CN104796228B (en) 2015-04-08 2015-04-08 A kind of method, apparatus and system of information transmission

Country Status (1)

Country Link
CN (1) CN104796228B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105752077A (en) * 2016-02-25 2016-07-13 上海科梁信息工程股份有限公司 Torque distribution method and system for hybrid power vehicle

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1926808A (en) * 2004-01-20 2007-03-07 高通股份有限公司 Methods and apparatus to optimize delivery of multicast content using probabilistic feedback
CN101702735A (en) * 2009-11-24 2010-05-05 恒生电子股份有限公司 TCP service device and method
CN101980468A (en) * 2010-12-06 2011-02-23 南京恩瑞特实业有限公司 Network hot backup data transmission method
US20150019839A1 (en) * 2010-10-11 2015-01-15 International Business Machines Corporation Determining processor offsets to synchronize processor time values

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1926808A (en) * 2004-01-20 2007-03-07 高通股份有限公司 Methods and apparatus to optimize delivery of multicast content using probabilistic feedback
CN101702735A (en) * 2009-11-24 2010-05-05 恒生电子股份有限公司 TCP service device and method
US20150019839A1 (en) * 2010-10-11 2015-01-15 International Business Machines Corporation Determining processor offsets to synchronize processor time values
CN101980468A (en) * 2010-12-06 2011-02-23 南京恩瑞特实业有限公司 Network hot backup data transmission method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105752077A (en) * 2016-02-25 2016-07-13 上海科梁信息工程股份有限公司 Torque distribution method and system for hybrid power vehicle

Also Published As

Publication number Publication date
CN104796228B (en) 2018-11-20

Similar Documents

Publication Publication Date Title
US9141491B2 (en) Highly available server system based on cloud computing
WO2017092347A1 (en) Method, device and system for updating client configuration in memcached system
CN110166562B (en) Data synchronization method and device, storage medium and electronic equipment
CN103491102A (en) Method, system and device for monitoring stability of internet audio and video
CN107948063B (en) Method for establishing aggregation link and access equipment
CN109245926B (en) Intelligent network card, intelligent network card system and control method
CN102882704A (en) Link protection method and apparatus in soft restart upgrade process of ISSU (in-service software upgrade)
CN106230622B (en) Cluster implementation method and device
EP4030776A1 (en) Method and apparatus for triggering vomci function from olt to send omci messages
CN107104822B (en) Server disaster recovery processing method and device, storage medium and electronic equipment
CN110138753B (en) Distributed message service system, method, apparatus, and computer-readable storage medium
EP3763087A1 (en) Method and system for managing transmission of probe messages for detection of failure
CN116670636A (en) Data access method, device and storage medium
CN110224872B (en) Communication method, device and storage medium
CN104796228A (en) Information transmission method, device and system
EP3534657B1 (en) Dynamic time allocation method and device
CN107872479B (en) Cloud management platform and controller integration method and system and related modules
CN112637121B (en) Data port updating method and device, electronic equipment and readable storage medium
CN105426118B (en) A kind of method that serial ports backup heartbeat passage is utilized in double-control system
CN114884805A (en) Data transmission method, device, terminal and storage medium
CN114338477A (en) Communication link monitoring method, device, equipment and storage medium
CN113242292A (en) Message transmission method, device, equipment, medium and product
CN110601972A (en) Message transmission method and device and intelligent elastic architecture system
CN110890989A (en) Channel connection method and device
CN112511603B (en) Data port updating method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181120

Termination date: 20210408

CF01 Termination of patent right due to non-payment of annual fee