CN111835448B - Multi-channel communication time sequence control method and system - Google Patents

Multi-channel communication time sequence control method and system Download PDF

Info

Publication number
CN111835448B
CN111835448B CN202010732565.4A CN202010732565A CN111835448B CN 111835448 B CN111835448 B CN 111835448B CN 202010732565 A CN202010732565 A CN 202010732565A CN 111835448 B CN111835448 B CN 111835448B
Authority
CN
China
Prior art keywords
time sequence
data
channel
message
receiving
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.)
Active
Application number
CN202010732565.4A
Other languages
Chinese (zh)
Other versions
CN111835448A (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.)
Shanghai Zhixiang Technology Co ltd
Original Assignee
Shanghai Zhixiang 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 Shanghai Zhixiang Technology Co ltd filed Critical Shanghai Zhixiang Technology Co ltd
Priority to CN202010732565.4A priority Critical patent/CN111835448B/en
Publication of CN111835448A publication Critical patent/CN111835448A/en
Application granted granted Critical
Publication of CN111835448B publication Critical patent/CN111835448B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0602Systems characterised by the synchronising information used
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/75Information technology; Communication
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/067Details of the timestamp structure

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention provides a multi-channel communication time sequence control method and a multi-channel communication time sequence control system.A sending end encapsulates messages, adds a time sequence label to each message and transmits data through multiple channels; the receiving end receives data from multiple channels, performs power-like operation according to the time sequence label, avoids repeated data receiving caused by multiple channels, and sends a packet back to the sending end after receiving is confirmed. The invention realizes the improvement of the communication data delivery rate by utilizing a plurality of communication channel complementary mechanisms; by adding a time sequence control mechanism, the high efficiency and the accuracy of communication data delivery are realized, and repetition and disorder are avoided.

Description

Multi-channel communication time sequence control method and system
Technical Field
The invention relates to the technical field of communication of the Internet of things, in particular to a multi-channel communication time sequence control method and system.
Background
In the multi-channel communication transmission of the existing internet of things, a fusion technology of heterogeneous networks is often adopted to realize seamless switching of a terminal under the heterogeneous networks, and multi-channel transmission is performed on uplink data and downlink data according to different service requirement types, so that the uplink data and the downlink data can cause repeated data, for example, in an instruction timing sequence repackaging process in a downlink instruction, data timing sequence disorder or repeated execution of the instruction can be caused.
Patent document CN109639278A discloses a timing compensation method and device for a multi-channel time-interleaved ADC, the method includes: inputting a periodic signal with a set duration into the calibration ADC; obtaining selected sampling points from each initial sampling point of the calibration ADC; determining a time compensation value of each selected sampling point according to each initial sampling point of the calibration ADC and the periodic signal; and compensating the actual sampling points of the at least one acquisition ADC in the set time length by using the time compensation value of each selected sampling point. The time compensation can be carried out on the actual sampling point of the at least one acquisition ADC in the set time length, the mismatch of the time sequence of the at least one acquisition ADC can be avoided, but the time sequence compensation is not suitable for the asynchronous communication transmission of the Internet of things equipment.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a multi-channel communication time sequence control method and a multi-channel communication time sequence control system.
The invention provides a multi-channel communication time sequence control method, which comprises the following steps:
step S1: a sending end encapsulates the messages, adds a time sequence label to each message and transmits data through multiple channels;
step S2: the receiving end receives data from multiple channels, performs power-like operation according to the time sequence label, avoids repeated data receiving caused by multiple channels, and sends a packet back to the sending end after receiving is confirmed.
Preferably, step S1 includes:
step S11: when the message is packaged, the newly added field is used as a time sequence label field of each message;
step S12: and adding a time sequence tag to a time sequence tag field of each message according to the sequence of the sending time, wherein the time sequence tag comprises any one item or any plurality of items of a timestamp, a random numerical value or an increasing numerical value.
Preferably, the step S2 includes:
step S21: the receiving end receives data from multiple channels simultaneously, analyzes the data and generates an analysis result;
step S22: and receiving a plurality of data in the same channel and a plurality of data in different channels, judging the sequence or judging whether the data are the same according to the time sequence in the analysis result, and triggering a data processing mechanism.
Preferably, the data processing mechanism is to enter a normal data processing flow if the time sequence is determined to be the latest time sequence; if the time sequence is judged to be the repeated time sequence or the overdue time sequence, the data is ignored or a special data processing flow is entered.
Preferably, the multiple channels include any one or more of a TCP message channel, a UDP message channel and a short message channel.
The invention provides a multi-channel communication time sequence control system, which comprises:
Module S1: a sending end encapsulates the messages, adds a time sequence label to each message and transmits data through multiple channels;
module S2: the receiving end receives data from multiple channels, performs power-like operation according to the time sequence label, avoids repeated data receiving caused by multiple channels, and sends a packet back to the sending end after receiving is confirmed.
Preferably, the module S1 includes:
module S11: when a sending end encapsulates a message, newly adding a field as a time sequence label field of each message;
module S12: and adding a time sequence tag to a time sequence tag field of each message according to the sequence of the sending time, wherein the time sequence tag comprises any one item or any plurality of items of a timestamp, a random numerical value or an increasing numerical value.
Preferably, the module S2 includes:
module S21: the receiving end receives data from multiple channels simultaneously, analyzes the data and generates an analysis result;
module S22: and receiving a plurality of data in the same channel and a plurality of data in different channels, judging the sequence or judging whether the data are the same according to the time sequence in the analysis result, and triggering a data processing mechanism.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention realizes the improvement of the communication data delivery rate by utilizing a plurality of communication channel complementary mechanisms;
2. By adding a time sequence control mechanism, the invention realizes the high efficiency and accuracy of communication data delivery and avoids repetition and disorder.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
fig. 1 is a schematic diagram of data transmission and reception according to the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
Example 1
According to the multi-channel communication time sequence control method provided by the invention, the multi-channel comprises any one or more of a TCP message channel, a UDP message channel and a short message channel. When the sending end sends data, each message may transmit data through multiple channels. As shown in fig. 1, a sending end encapsulates messages, adds a timing sequence tag to each message, and transmits data through multiple channels, wherein the timing sequence tag is added to each message according to a time sequence; when a sending end encapsulates a message, newly adding a field as a time sequence label field of each message; and adding a time sequence tag to a time sequence tag field of each message according to the sequence of the sending time, wherein the time sequence tag comprises any one item or any plurality of items of a timestamp, a random numerical value or an increasing numerical value.
A receiving end receives data from multiple channels simultaneously, performs power-idempotent operation according to the time sequence label, avoids repeated receiving of the data caused by multiple channels, and sends a packet back to the sending end after receiving is confirmed; the receiving end receives data from multiple channels at the same time, analyzes the data and generates an analysis result; and receiving a plurality of data in the same channel and a plurality of data in different channels, judging the sequence or judging whether the data are the same according to the time sequence in the analysis result, and triggering a data processing mechanism. If the time sequence is judged to be the latest time sequence, entering a normal data processing flow; if the time sequence is judged to be the repeated time sequence or the overdue time sequence, the data is ignored or a special data processing flow is entered. Preferably, if the receiving end receives multiple pieces of data in the same channel, the receiving end determines the sequence or whether the data are the same according to the time sequence of the data and performs corresponding logic processing, and if the data are the same or the data with smaller time sequence, the data may be discarded or special data processing may be performed. If the receiving end receives a plurality of data in different channels, the receiving end judges the sequence or judges whether the data are the same data or not according to the time sequence of the data and carries out corresponding logic processing, and if the data are the same data or the data with smaller time sequence, the data can be discarded or special data processing can be carried out.
Example 2
Embodiment 2 can be regarded as a preferable example of embodiment 1. The system for multi-lane communication timing control described in embodiment 2 uses the steps of the method for multi-lane communication timing control described in embodiment 1.
The invention provides a multi-channel communication time sequence control system, which comprises:
module S1: a sending end encapsulates the messages, adds a time sequence label to each message and transmits data through multiple channels;
module S2: the receiving end receives data from multiple channels, performs power-like operation according to the time sequence label, avoids repeated data receiving caused by multiple channels, and sends a packet back to the sending end after receiving is confirmed.
The module S1 includes:
module S11: when the message is packaged, the newly added field is used as a time sequence label field of each message;
module S12: and adding a time sequence tag to a time sequence tag field of each message according to the sequence of the sending time, wherein the time sequence tag comprises any one item or any plurality of items of a timestamp, a random numerical value or an increasing numerical value.
The module S2 includes:
module S21: the receiving end receives data from multiple channels simultaneously, analyzes the data and generates an analysis result;
module S22: and receiving a plurality of data in the same channel and a plurality of data in different channels, judging the sequence or judging whether the data are the same according to the time sequence in the analysis result, and triggering a data processing mechanism.
The problems caused by multi-channel transmission are faced, such as uplink data timing, downlink instruction timing and the like. Repeated data can be caused by multi-channel uplink and downlink data, the data time sequence is disordered or the instructions are repeatedly executed, and idempotent design is required in specific implementation; and realizing idempotent operation through the time sequence of downlink instructions or uplink data. After receiving the message, the receiving end performs idempotent operation, and forwards the operated message to the service application layer for execution, and the service application layer does not consider the time sequence and mainly performs service processing of message data.
In a specific application, for example, a client device sends a certain data a through a TCP channel, a timing encapsulation is 1, if the TCP channel does not receive a response, the same data a is sent through a UDP channel, the timing encapsulation is also 1 as the same as the TCP, if the UDP channel does not receive a response, the same data a is sent through a short message channel, and the timing encapsulation is also 1 as the same as the TCP. The server side receives data of three channels of TCP, UDP and short message at the same time, if a certain channel receives data A first and the time sequence of the mark A is 1, then if the data A of other channels is received again and the time sequence is also 1, the data is considered to be repeated and ignored or recorded if the data A is repeated with the marked time sequence 1; if the received data timing is less than 1, i.e. the data is out of date, it is ignored or recorded.
Those skilled in the art will appreciate that, in addition to implementing the systems, apparatus, and various modules thereof provided by the present invention in purely computer readable program code, the same procedures can be implemented entirely by logically programming method steps such that the systems, apparatus, and various modules thereof are provided in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system, the device and the modules thereof provided by the present invention can be considered as a hardware component, and the modules included in the system, the device and the modules thereof for implementing various programs can also be considered as structures in the hardware component; modules for performing various functions may also be considered to be both software programs for performing the methods and structures within hardware components.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

Claims (6)

1. A multi-channel communication timing control method is characterized by comprising the following steps:
step S1: a sending end encapsulates the messages, adds a time sequence label to each message and transmits data through multiple channels;
step S2: the receiving end receives data from multiple channels, performs power-like operation according to the time sequence label, avoids repeated data receiving caused by multiple channels, and sends a packet back to the sending end after receiving is confirmed;
step S1 includes:
step S11: when a sending end encapsulates a message, newly adding a field as a time sequence label field of each message;
step S12: adding a time sequence tag to a time sequence tag field of each message according to the sequence of sending time, wherein the time sequence tag comprises any one or more of a timestamp, a numerical value representing time sequence or an increasing numerical value;
the step S2 includes:
step S21: the receiving end receives data from multiple channels simultaneously, analyzes the data and generates an analysis result;
step S22: and receiving a plurality of data in the same channel and a plurality of data in different channels, judging the sequence or judging whether the data are the same according to the time sequence in the analysis result, and triggering a data processing mechanism.
2. The multi-channel communication timing control method according to claim 1, wherein the data processing mechanism is configured to enter a normal data processing procedure if the timing is determined to be the latest timing; if the time sequence is judged to be the repeated time sequence or the overdue time sequence, the data is ignored or a special data processing flow is entered.
3. The multi-channel communication timing control method according to claim 1, wherein the multi-channel includes any one or more of a TCP message channel, a UDP message channel, and a short message channel.
4. A multi-channel communication timing control system, comprising:
module S1: a sending end encapsulates the messages, adds a time sequence label to each message and transmits data through multiple channels;
module S2: the receiving end receives data from multiple channels, performs power-like operation according to the time sequence label, avoids repeated data receiving caused by multiple channels, and sends a packet back to the sending end after receiving is confirmed;
the module S1 includes:
module S11: when a sending end encapsulates a message, newly added fields are used as time sequence label fields of each message;
module S12: adding a time sequence tag to a time sequence tag field of each message according to the sequence of sending time, wherein the time sequence tag comprises any one or more of a timestamp, a random numerical value or an increasing numerical value;
the module S2 includes:
module S21: the receiving end receives data from multiple channels simultaneously, analyzes the data and generates an analysis result;
module S22: and receiving a plurality of data by the same channel and receiving a plurality of data by different channels, judging the sequence or judging whether the data are the same according to the time sequence in the analysis result, and triggering a data processing mechanism.
5. The multi-channel communication timing control system according to claim 4, wherein the data processing mechanism is configured to enter a normal data processing procedure if the timing is determined to be the latest timing; if the time sequence is judged to be the repeated time sequence or the overdue time sequence, the data is ignored or a special data processing flow is entered.
6. The multi-channel communication timing control system according to claim 4, wherein the multi-channel includes any one or more of a TCP message channel, a UDP message channel, and a short message channel.
CN202010732565.4A 2020-07-27 2020-07-27 Multi-channel communication time sequence control method and system Active CN111835448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010732565.4A CN111835448B (en) 2020-07-27 2020-07-27 Multi-channel communication time sequence control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010732565.4A CN111835448B (en) 2020-07-27 2020-07-27 Multi-channel communication time sequence control method and system

Publications (2)

Publication Number Publication Date
CN111835448A CN111835448A (en) 2020-10-27
CN111835448B true CN111835448B (en) 2022-05-24

Family

ID=72924932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010732565.4A Active CN111835448B (en) 2020-07-27 2020-07-27 Multi-channel communication time sequence control method and system

Country Status (1)

Country Link
CN (1) CN111835448B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187420A (en) * 2020-10-28 2021-01-05 上海挚想科技有限公司 Multichannel transmission guarantee method and system
CN115190164B (en) * 2022-06-24 2023-11-03 弥费科技(上海)股份有限公司 Network communication method, device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916375A (en) * 2013-01-09 2014-07-09 中国科学院声学研究所 HFC network downlink data multi-channel packaging and transmitting method
CN108574530A (en) * 2017-03-14 2018-09-25 中兴通讯股份有限公司 Data sending, receiving method and device and multichannel EPON system
CN110167084A (en) * 2018-08-15 2019-08-23 腾讯科技(深圳)有限公司 Multi-channel data transmission method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105281883B (en) * 2014-06-30 2019-07-09 深圳市中兴微电子技术有限公司 Multi-channel synchronization method, synchronizing device and system
CN110866509B (en) * 2019-11-20 2023-04-28 腾讯科技(深圳)有限公司 Action recognition method, device, computer storage medium and computer equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916375A (en) * 2013-01-09 2014-07-09 中国科学院声学研究所 HFC network downlink data multi-channel packaging and transmitting method
CN108574530A (en) * 2017-03-14 2018-09-25 中兴通讯股份有限公司 Data sending, receiving method and device and multichannel EPON system
CN110167084A (en) * 2018-08-15 2019-08-23 腾讯科技(深圳)有限公司 Multi-channel data transmission method and device

Also Published As

Publication number Publication date
CN111835448A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN111835448B (en) Multi-channel communication time sequence control method and system
CN108011743B (en) Fault injection method and device
US10432741B2 (en) Systems and methods for guaranteeing delivery of pushed data to remote clients
CN109921843B (en) Beidou short message communication method for satellite remote education system
CN110943911B (en) High-efficiency data transmission method for Internet of things based on protobuf
CN101686139B (en) Method, device and system of multicast upgrading
CN103685381B (en) Method, system and device for downloading webpage resources
CN102902785A (en) Webpage information acquisition system and method
CN107113325A (en) The system and method operated for selective delivery acceleration device
CN114510476A (en) Telemetry data multi-path parallel processing system and method based on CCSDS source package system
CN114979984B (en) Message transmission method and device
CN104703126A (en) System and method for pushing broadcast information of wireless networks on basis of iBeacon
CN114153191B (en) Spacecraft control method, device and system
CN112034811A (en) Controller diagnostic device and method
MX2020008833A (en) Downlink control information transmission method, terminal device and network device.
EP3672189B1 (en) Data transmission method, device and system
CN103647615A (en) Method and apparatus for delay jitter elimination during message transmission process
CN110177030A (en) Industrial gateway controls test method
CN104469427A (en) Data transmission method and terminal and server
EP2869525B1 (en) Method and apparatus for locating session initiation protocol dialog
EP1244269B1 (en) A system and method for data transfer
CN101272211A (en) Service cross software test method and system
CN101753358B (en) Alarming information notification method and system
CN103888376B (en) Data frame transmission method, equipment and system
CN114885356B (en) Method and device for guaranteeing high-reliability receiving of power distribution control command

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
GR01 Patent grant
GR01 Patent grant