Communication transmission control system and method fusing optical fiber and radio channel
The communication transmission control system integrates optical fiber and radio channels using sequence number management and caching to prevent packet duplication and loss, enhancing system reliability by ensuring accurate message delivery.
Patent Information
- Application Number
- CN202411360358.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-12-10
AI Technical Summary
Existing communication systems integrating optical fiber and radio channels face issues with packet duplication and loss, leading to message disorder and reduced reliability due to differing transmission speeds.
A communication transmission control system and method that uses a superimposed sequence number adding module, message processing module, and message cache detection module to manage message transmission and reception across both channels, ensuring accurate and reliable delivery by filtering out duplicate packets and completing lost packets through caching.
The system effectively prevents packet duplication and loss, maintaining communication system reliability by ensuring timely delivery of messages, even in the presence of packet loss in optical fiber channels.
Smart Images

Figure CN119109481A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data communication technology, and more particularly to a communication transmission control system and method integrating optical fiber and radio channel. Background Art
[0002] In a communication system, reliability is an important indicator to measure its performance. It refers to the reliability of the information received in a specified channel during the communication transmission process. In some application scenarios with high reliability requirements, in order to improve the reliability of the communication system, multiple communication media are used to complete the transmission and exchange of information. When this type of communication system is working, at the data sending end, the message to be transmitted will be copied multiple times and sent through different communication media respectively; at the data receiving end, multiple messages will be received under normal circumstances, that is, duplicate packets will occur. At this time, the message needs to be processed by multiple transmission and selection, that is, the duplicate messages are filtered out and only one message is retained and uploaded to the terminal. If a channel loses packets, it is necessary to use the same message from other channels to complete it to ensure the reliability of information transmission.
[0003] When there are wired channels and wireless channels in multiple communication media, such as optical fiber channels and radio channels, since the transmission speed of messages in optical fiber channels is generally greater than that in radio channels, if packet loss occurs in the optical fiber channel, the receiving end may see a situation where the message sent last arrives first, that is, after the optical fiber channel packet is lost, when the receiving end receives a new packet of messages from the optical fiber channel, the message sent at the same time as the previous lost message and transmitted through the radio channel has not yet been delivered. At this time, the problem of message disorder will occur at the receiving end, reducing the reliability of the communication system.
[0004] Therefore, how to avoid packet duplication and packet loss in the transmission of messages while integrating multiple communication media, and thus improve the reliability of the communication system is an urgent problem that technical personnel in this field need to solve. Summary of the invention
[0005] In view of this, the present invention provides a communication transmission control system and method that integrates optical fiber and radio channels. When integrating multiple communication media, it avoids the occurrence of duplicate packets and packet loss in disorder in transmitted messages, thereby improving the reliability of the communication system.
[0006] In order to achieve the above object, the present invention adopts the following technical solution:
[0007] A communication transmission control system integrating optical fiber and radio channel, comprising: a superimposed sequence number adding module, a message processing module and a message buffer detection module;
[0008] The superimposed sequence number adding module is used to receive the message sent by the first terminal, encapsulate the superimposed sequence number in the message header, obtain the encapsulated message and send it through multiple channels;
[0009] The message processing module is used to receive the encapsulated message, extract the message superposition sequence number, and compare and judge with the updated expected superposition sequence number to obtain a comparison result, perform corresponding processing on the encapsulated message based on the comparison result, and screen the encapsulated message that meets the cache condition to obtain a cache message;
[0010] The message cache detection module is used to receive the cache message, establish a cache area based on the cache message, and perform detection when the cache message exists in the cache area, and send the cache message that meets the requirements to the second terminal.
[0011] Preferably, the superimposed sequence number adding module comprises: a message receiving unit, a sequence number adding unit and a message sending unit;
[0012] The message receiving unit is used to receive a message sent by the first terminal;
[0013] The sequence number adding unit is used to encapsulate and superimpose a sequence number on the header of the message to obtain the encapsulated message;
[0014] The message sending unit is used to copy the encapsulated message and send it through the optical fiber channel and the radio channel respectively.
[0015] Preferably, the superposition sequence number includes: a sequence number and a length sequence number;
[0016] The sequence number is used to indicate the order in which the messages are sent, and changes based on a cumulative rule;
[0017] The length sequence number is used to indicate the number of bytes in the body of the message.
[0018] Preferably, the message processing module includes: a superposition sequence number extraction unit, an expected superposition sequence number determination unit and a comparison and judgment unit;
[0019] The superposition sequence number extraction unit is used to receive the encapsulated message sent by the optical fiber channel and the radio channel, and extract the superposition sequence number based on the encapsulated message to obtain the message superposition sequence number;
[0020] The expected superposition sequence number determination unit is used to, when the system starts running, use the message superposition sequence number extracted from the first package encapsulation message received by the superposition sequence number extraction unit as the initial expected superposition sequence number, and after the first package encapsulation message is uploaded to the second terminal, add 1 to the sequence number in the initial expected superposition sequence number to obtain a sequence number update value, use the actual number of body bytes of the next package of the encapsulation message received as the length number update value in the initial expected superposition sequence number, and obtain the updated expected superposition sequence number based on the sequence number update value and the length number update value;
[0021] The comparison and judgment unit is used to determine whether the message superposition sequence number is equal to the updated expected superposition sequence number. If so, the current encapsulated message is uploaded to the second terminal, and the sequence number in the current expected superposition sequence number is increased by 1 to obtain the updated value of the sequence number. Otherwise, it is determined whether the sequence number in the message superposition sequence number is less than or equal to the sequence number in the updated expected superposition sequence number. If so, the current encapsulated message is discarded. Otherwise, it is determined whether the length number in the message superposition sequence number is equal to the length number in the updated expected superposition sequence number. If so, the current encapsulated message is used as a cached message. Otherwise, the current encapsulated message is discarded.
[0022] Preferably, the expected superposition sequence number determination unit is also used to set the updated expected superposition sequence number to a reset state if the encapsulated message is not received within a preset time period, and use the message superposition sequence number extracted from the first package encapsulation message received by the superposition sequence number extraction unit after the reset state as the new initial expected superposition sequence number; after the first package encapsulation message is uploaded to the second terminal, add 1 to the sequence number in the new initial expected superposition sequence number to obtain an updated sequence number value, and use the actual number of text bytes of the next package of the encapsulated message received as the length number update value in the new initial expected superposition sequence number; and obtain the updated expected superposition sequence number based on the sequence number update value and the length number update value.
[0023] Preferably, the message cache detection module includes: a cache area establishment unit and a detection processing unit;
[0024] The buffer area establishment unit is used to receive the buffer message, and use the sequential sequence number in the superimposed sequence number of the buffer message as a key and the text content as a value to establish a hash table as the buffer area;
[0025] The detection processing unit is used to determine whether there is a key in the cache area hash table that is the same as the sequential number in the current expected superposition sequence number when the first condition or the second condition is met. If so, the cache message corresponding to the key is uploaded to the second terminal, and the sequential number in the current expected superposition sequence number is increased by 1, and the judgment is continued until there is no key in the cache area hash table that is the same as the sequential number in the current expected superposition sequence number; otherwise, the expected superposition sequence number update timer is reset, and wait for the next triggering of the cache area detection.
[0026] Preferably, the first condition is:
[0027] When the cache message exists in the cache area, the expected superposition sequence number update timer is started with a preset delay as a timing period, and within the timeout period of the timer, the comparison and judgment unit uploads the encapsulated message to the second terminal, and increases the sequential number in the current expected superposition sequence number by 1, thereby triggering cache area detection.
[0028] Preferably, the second condition is:
[0029] When the cache message exists in the cache area, if the cache area detection is not triggered within one of the timing cycles of the expected superposition sequence number update timer, the sequential sequence number in the current expected superposition sequence number is increased by 1 to trigger the cache area detection.
[0030] Preferably, the detection processing unit is also used to remove the uploaded cache message from the cache area after the cache message is uploaded to the second terminal, and determine whether the current cache area is empty. If so, turn off the expected superposition sequence number update timer, delete the hash table and close the cache area, otherwise continue to trigger the cache area detection.
[0031] A communication transmission control method integrating optical fiber and radio channel, comprising:
[0032] Receive a message sent by the first terminal, encapsulate and superimpose a sequence number in the message header, obtain an encapsulated message, and send it through multiple channels;
[0033] Extracting the message superposition sequence number based on the encapsulated message and comparing it with the updated expected superposition sequence number to obtain a comparison result;
[0034] Based on the comparison result, the encapsulated message is processed accordingly, and the encapsulated message that meets the cache condition is screened to obtain the cache message;
[0035] A cache area is established based on the cache message, and when the cache message exists in the cache area, detection is performed, and the cache message that meets the requirements is sent to the second terminal.
[0036] It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses a communication transmission control system and method integrating optical fiber and radio channel, which has the following beneficial effects:
[0037] 1. The present invention adopts the multiple transmission and selective reception technology, introduces the expected superposition sequence number at the data receiving end, compares the superposition sequence number of the received message with the expected superposition sequence number through the message superposition sequence number processing module, filters out the message that has been uploaded to the terminal, and solves the problem of repeated packets in the integrated communication transmission of the optical fiber channel and the radio channel.
[0038] 2. The present invention adopts multi-channel transmission packet loss completion technology. When packet loss occurs in the optical fiber channel, the message superimposed sequence number processing module is used to screen out the messages that are sent last but arrived first and transmitted through the optical fiber channel; then the messages are put into the message cache detection module for caching; under the processing of the message cache detection module, the lost messages are completed and the cached messages are uploaded to the terminal in time to restore the normal operation of the communication transmission, thus solving the disorder problem that may be caused by packet loss in the optical fiber channel during the fusion transmission of the optical fiber channel and the radio channel. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0040] Figure 1 A schematic diagram of the structure of a communication transmission control system integrating optical fiber and radio channel provided by the present invention.
[0041] Figure 2 This is a flowchart of the comparison and judgment unit superimposed serial number judgment processing provided by the present invention.
[0042] Figure 3 This is a flow chart of the detection processing unit cache data judgment process provided by the present invention.
[0043] Figure 4 A flow chart of a communication transmission control method integrating optical fiber and radio channel provided by the present invention. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] Example 1
[0046] In the field of information communication transmission, communication refers to the transmission and exchange of information from one place to another through any method and any medium. Its basic purpose is to complete the task of transmitting and exchanging information in a timely and accurate manner. With the development of communication transmission technology, the media of communication transmission have also become diverse and can be divided into two categories: one category refers to the existence of physical lines that guide electromagnetic waves at both ends of information transmission, such as wires, coaxial tubes, optical fibers, etc. This transmission method is called a wired method, and the channel it constitutes is called a wired channel. The other category refers to the fact that there is no physical line connecting the two ends of information transmission, and electromagnetic waves propagate in space to achieve information transmission. The typical device that controls the propagation of electromagnetic waves in space is a radio station. This transmission method is called a wireless method, and the channel it constitutes is called a wireless channel.
[0047] like Figure 1 As shown, the embodiment of the present invention discloses a communication transmission control system integrating optical fiber and radio channel, including: a superimposed sequence number adding module, a message processing module and a message cache detection module;
[0048] A superimposed sequence number adding module, used for receiving a message sent by the first terminal, encapsulating the superimposed sequence number in the message header, obtaining the encapsulated message and sending it through multiple channels;
[0049] A message processing module is used to receive an encapsulated message, extract a message superimposed sequence number, and compare and judge with an updated expected superimposed sequence number to obtain a comparison result, perform corresponding processing on the encapsulated message based on the comparison result, and screen the encapsulated message that meets the cache condition to obtain a cache message;
[0050] The message cache detection module is used to receive cache messages, establish a cache area based on the cache messages, and detect when cache messages exist in the cache area, and send cache messages that meet the requirements to the second terminal.
[0051] Example 2
[0052] The embodiment of the present invention discloses a communication transmission control system integrating optical fiber and radio channel, including: a superimposed sequence number adding module, a message processing module and a message buffer detection module;
[0053] The superimposed sequence number adding module is used to receive the message sent by the first terminal, encapsulate the superimposed sequence number in the message header, obtain the encapsulated message and send it through multiple channels.
[0054] Preferably, the superimposed sequence number adding module comprises: a message receiving unit, a sequence number adding unit and a message sending unit;
[0055] A message receiving unit, configured to receive a message sent by the first terminal;
[0056] A sequence number adding unit, used for encapsulating and superimposing a sequence number on a header of a message to obtain an encapsulated message;
[0057] The message sending unit is used to copy the encapsulated message and send it through the optical fiber channel and the radio channel respectively, so as to realize the fusion transmission of the message optical fiber channel and the radio channel.
[0058] Preferably, the superimposed sequence number includes: a sequential sequence number and a length sequence number;
[0059] The sequence number is used to indicate the order in which the messages are sent, and changes based on the accumulation rule;
[0060] The length sequence number is used to indicate the number of bytes in the body of the message.
[0061] Preferably, in this embodiment, the superposition sequence number includes three bytes, the highest byte represents the sequential sequence number, and the other two bytes represent the length sequence number.
[0062] Preferably, a sequence number is encapsulated in the header of the message to record the order in which the messages are sent and the length information.
[0063] The message processing module is used to receive the encapsulated message, extract the message superposition sequence number, and compare and judge with the updated expected superposition sequence number to obtain the comparison result, perform corresponding processing on the encapsulated message based on the comparison result, and also to screen the encapsulated message that meets the cache conditions to obtain the cache message.
[0064] Preferably, the message processing module includes: a superposition sequence number extraction unit, an expected superposition sequence number determination unit and a comparison and judgment unit;
[0065] The superposition sequence number extraction unit is used to receive the encapsulated message sent by the optical fiber channel and the radio channel, and extract the superposition sequence number based on the encapsulated message to obtain the message superposition sequence number;
[0066] The expected superposition sequence number determination unit is used to reset the expected superposition sequence number when the system starts running, take the message superposition sequence number extracted from the first package encapsulation message received by the superposition sequence number extraction unit as the initial expected superposition sequence number, and after the first package encapsulation message is uploaded to the second terminal, add 1 to the sequence number in the initial expected superposition sequence number to obtain the sequence number update value, use the actual number of text bytes of the next package encapsulation message received as the length number update value in the initial expected superposition sequence number, and obtain the updated expected superposition sequence number based on the sequence number update value and the length number update value.
[0067] Preferably, the expected superposition sequence number determination unit is also used to set the updated expected superposition sequence number to a reset state if no encapsulation message is received within a preset time period, and use the message superposition sequence number extracted from the first package of encapsulation message received by the superposition sequence number extraction unit after the reset state as the new initial expected superposition sequence number; after the first package of encapsulation message is uploaded to the second terminal, add 1 to the sequence number in the new initial expected superposition sequence number to obtain an updated sequence number value, and use the actual number of text bytes of the next package of encapsulation message received as the updated length number value in the new initial expected superposition sequence number; and obtain the updated expected superposition sequence number based on the updated sequence number value and the updated length number value.
[0068] Preferably, in this embodiment, the maximum transmission delay t of transmitting an encapsulated message through a radio channel is used as a reference, and the preset duration is set to 3t.
[0069] Preferably, each time the encapsulated message of the present invention is uploaded to the second terminal, the sequential number in the expected superposition sequence number is incremented by 1 to update the expected superposition sequence number, and the updated expected superposition sequence number used in the judgment and processing process of the same encapsulated message is the same.
[0070] Preferably, the terminals involved in this embodiment represent the same type of terminal, the first terminal and the second terminal represent two devices of the same type of terminal, and the terminal has the ability to send and receive message data at the same time, and can perform two-way message data transmission. For example, it is a computer, and the data transmission software on the computer is specifically used to send and receive data. If analogous to commercial software, it can be WeChat, QQ, various mailboxes, etc.
[0071] like Figure 2 As shown, the comparison and judgment unit is used to determine whether the message superposition sequence number is equal to the updated expected superposition sequence number. If so, the current encapsulated message is uploaded to the second terminal, and the sequence number in the current expected superposition sequence number is increased by 1 to obtain the updated value of the sequence number. Otherwise, it is determined whether the sequence number in the message superposition sequence number is less than or equal to the sequence number in the updated expected superposition sequence number. If so, the current encapsulated message is discarded. Otherwise, it is determined whether the length number in the message superposition sequence number is equal to the length number in the updated expected superposition sequence number. If so, the current encapsulated message is used as a cached message. Otherwise, the current encapsulated message is discarded.
[0072] Preferably, when the message superposition sequence number is not equal to the updated expected superposition sequence number, and the sequential sequence number in the message superposition sequence number is smaller than the sequential sequence number in the updated expected superposition sequence number, it indicates that the current encapsulated message has been received through other channels and uploaded to the second terminal. At this time, the current encapsulated message is discarded, and the multi-transmission and selective reception function is completed, thereby solving the problem of duplicate packets at the data receiving end.
[0073] Preferably, when the message superposition sequence number is not equal to the updated expected superposition sequence number, and the sequence number in the message superposition sequence number is equal to the sequence number in the updated expected superposition sequence number, then the superposition sequence number in the message and the length number part in the updated expected superposition sequence number must be unequal, indicating that bytes have been lost in the transmission process of the encapsulated message. The current encapsulated message is discarded, and the encapsulated message with byte loss is filtered out, thereby solving the frame error problem caused by byte loss.
[0074] Preferably, when the message superposition sequence number is not equal to the updated expected superposition sequence number, and the sequence number in the message superposition sequence number is greater than the sequence number in the updated expected superposition sequence number, it indicates that the encapsulated message has packet loss, frame error or disorder during channel transmission. On this basis, when the length number in the message superposition sequence number is not equal to the length number in the updated expected superposition sequence number, the current encapsulated message is discarded and the encapsulated message with byte loss is filtered out.
[0075] The message cache detection module is used to receive cache messages, establish a cache area based on the cache messages, and detect when cache messages exist in the cache area, and send cache messages that meet the requirements to the second terminal.
[0076] Preferably, the message cache detection module includes: a cache area establishment unit and a detection processing unit;
[0077] A buffer area establishment unit is used to receive a buffer message, and use the sequential sequence number in the superimposed sequence number of the buffer message as a key and the body content as a value to establish a hash table as a buffer area;
[0078] like Figure 3 As shown, the detection processing unit is used to determine whether there is a key in the cache area hash table that is the same as the serial number in the current expected superposition sequence number when the first condition or the second condition is met. If so, the cache message corresponding to the key is uploaded to the second terminal, and the serial number in the current expected superposition sequence number is increased by 1, and the judgment is continued until there is no key in the cache area hash table that is the same as the serial number in the current expected superposition sequence number; otherwise, the expected superposition sequence number update timer is reset, waiting for the next triggering of the cache area detection.
[0079] Preferably, the first condition is:
[0080] When there is a cache message in the cache area, the expected superposition sequence number update timer is started with a preset delay as the timing period. Within the timer timeout period, the comparison and judgment unit uploads the encapsulated message to the second terminal, and increases the sequence number in the current expected superposition sequence number by 1, triggering the cache area detection.
[0081] Preferably, in this embodiment, the maximum transmission delay t of transmitting an encapsulated message through a radio channel is used as the preset delay.
[0082] Preferably, the second condition is:
[0083] When there is a cache message in the cache area, if the cache area detection is not triggered within a timing cycle of the expected superposition sequence number update timer, the sequence number in the current expected superposition sequence number is increased by 1 to trigger the cache area detection.
[0084] Preferably, when there is no key in the cache hash table that is the same as the sequential number in the current expected superposition sequence number, the expected superposition sequence number update timer is restarted to wait for the next triggering of the cache detection.
[0085] Preferably, the detection processing unit is also used to remove the uploaded cache message from the cache area after the cache message is uploaded to the second terminal, and determine whether the current cache area is empty. If so, turn off the expected superposition sequence number update timer, delete the hash table and close the cache area, otherwise continue to trigger the cache area detection.
[0086] Example 3
[0087] like Figure 4 As shown, a communication transmission control method integrating optical fiber and radio channel comprises:
[0088] Receive a message sent by the first terminal, encapsulate and superimpose a sequence number in a message header, obtain an encapsulated message, and send it through multiple channels;
[0089] Extracting the message superimposed sequence number based on the encapsulated message and comparing it with the updated expected superimposed sequence number to obtain a comparison result;
[0090] Based on the comparison result, the encapsulated message is processed accordingly, and the encapsulated message that meets the cache condition is screened to obtain the cache message;
[0091] A cache area is established based on the cache message, and when the cache message exists in the cache area, detection is performed, and the cache message that meets the requirements is sent to the second terminal.
[0092] Preferably, the multi-channel transmission includes:
[0093] The encapsulated message is copied and sent through the optical fiber channel and the radio channel respectively, thus realizing the fusion transmission of the message optical fiber channel and the radio channel.
[0094] Preferably, the updated expected superposition sequence number determination method includes:
[0095] First case:
[0096] When the system starts running, the expected superposition sequence number is in a reset state, and the message superposition sequence number extracted from the first encapsulation message received by the superposition sequence number extraction unit is used as the initial expected superposition sequence number;
[0097] After the first package encapsulation message is uploaded to the second terminal, the sequential number in the initial expected superposition sequence number is increased by 1 to obtain an updated sequential number value;
[0098] The actual number of bytes of the body of the next encapsulation message received is used as the length sequence number update value in the initial expected superposition sequence number;
[0099] An updated expected superposition sequence number is obtained based on the sequential sequence number update value and the length sequence number update value.
[0100] Preferably, the updated method for determining the expected superposition sequence number further includes:
[0101] Second case:
[0102] If no encapsulation message is received within the preset time, the updated expected superposition sequence number is set to a reset state; and the message superposition sequence number extracted from the first encapsulation message received by the superposition sequence number extraction unit after the reset state is used as the new initial expected superposition sequence number;
[0103] After the first encapsulated message is uploaded to the second terminal, the sequential number in the new initial expected superposition sequence number is increased by 1 to obtain an updated sequential number value;
[0104] The length sequence number in the new initial expected superposition sequence number is updated according to the actual number of bytes of the body of the next encapsulation message received;
[0105] An updated expected superposition sequence number is obtained based on the sequential sequence number update value and the length sequence number update value.
[0106] Preferably, the encapsulated message is processed accordingly based on the comparison result, specifically including:
[0107] Determine whether the message superposition sequence number is equal to the updated expected superposition sequence number;
[0108] If yes, the current encapsulation message is uploaded to the second terminal, and the sequence number in the current expected superposition sequence number is increased by 1 to obtain an updated value of the sequence number;
[0109] Otherwise, it is determined whether the sequential sequence number in the message superposition sequence number is less than or equal to the sequential sequence number in the updated expected superposition sequence number;
[0110] If yes, discard the current encapsulated message;
[0111] Otherwise, determine whether the length sequence number in the message superposition sequence number is equal to the length sequence number in the updated expected superposition sequence number;
[0112] If yes, the current encapsulated message is used as the cached message;
[0113] Otherwise, the current encapsulated message is discarded.
[0114] Preferably, when the message superposition sequence number is not equal to the updated expected superposition sequence number, and the sequential sequence number in the message superposition sequence number is smaller than the sequential sequence number in the updated expected superposition sequence number, it indicates that the current encapsulated message has been received through other channels and uploaded to the second terminal. At this time, the current encapsulated message is discarded, and the multi-transmission and selective reception function is completed, thereby solving the problem of duplicate packets at the data receiving end.
[0115] Preferably, when the message superposition sequence number is not equal to the updated expected superposition sequence number, and the sequence number in the message superposition sequence number is equal to the sequence number in the updated expected superposition sequence number, then the superposition sequence number in the message and the length number part in the updated expected superposition sequence number must be unequal, indicating that bytes have been lost in the transmission process of the encapsulated message. The current encapsulated message is discarded, and the encapsulated message with byte loss is filtered out, thereby solving the frame error problem caused by byte loss.
[0116] Preferably, when the message superposition sequence number is not equal to the updated expected superposition sequence number, and the sequence number in the message superposition sequence number is greater than the sequence number in the updated expected superposition sequence number, it indicates that the encapsulated message has packet loss, frame error or disorder during channel transmission. On this basis, when the length number in the message superposition sequence number is not equal to the length number in the updated expected superposition sequence number, the current encapsulated message is discarded and the encapsulated message with byte loss is filtered out.
[0117] Preferably, the buffer area establishment method is:
[0118] Based on the sequential sequence number in the superimposed sequence number of the cached message as the key and the body content as the value, a hash table is established as the cache area.
[0119] Preferably, when there is a cache message in the cache area, detection is performed, specifically including:
[0120] When the first condition or the second condition is met, it is determined whether there is a key in the cache hash table that has the same sequence number as the current expected superposition sequence number;
[0121] If it exists, the cache message corresponding to the key is uploaded to the second terminal, and the sequence number in the current expected superposition sequence number is increased by 1, and the judgment is continued until there is no key in the cache area hash table that is the same as the sequence number in the current expected superposition sequence number;
[0122] Otherwise, the expected superposition sequence number update timer is reset and the buffer detection is waited for the next trigger.
[0123] Preferably, the first condition is:
[0124] When there is a cache message in the cache area, the expected superposition sequence number update timer is started with a preset delay as the timing period. Within the timer timeout period, the comparison and judgment unit uploads the encapsulated message to the second terminal, and increases the sequence number in the current expected superposition sequence number by 1, triggering the cache area detection.
[0125] Preferably, in this embodiment, the maximum transmission delay t of transmitting an encapsulated message through a radio channel is used as the preset delay.
[0126] Preferably, the second condition is:
[0127] When there is a cache message in the cache area, if the cache area detection is not triggered within a timing cycle of the expected superposition sequence number update timer, the sequence number in the current expected superposition sequence number is increased by 1 to trigger the cache area detection.
[0128] Preferably, when there is no key in the cache hash table that is the same as the sequential number in the current expected superposition sequence number, the expected superposition sequence number update timer is restarted to wait for the next triggering of the cache detection.
[0129] Preferably, after the cache message is uploaded to the second terminal, the uploaded cache message is removed from the cache area, and it is determined whether the current cache area is empty. If so, the expected superposition sequence number update timer is turned off, the hash table is deleted and the cache area is closed, otherwise the cache area detection continues to be triggered.
[0130] Example 4
[0131] Based on the same inventive concept, the present invention also provides a computer device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0132] Memory, used to store computer programs;
[0133] The processor, when used to execute the program stored in the memory, can implement a communication transmission control method that integrates optical fiber and radio channel as in Example 3.
[0134] The electronic device may include: a processor, a communications interface, a memory, and a communications bus, wherein the processor, the communications interface, and the memory communicate with each other via the communications bus. The processor may call logic instructions in the memory to execute a communication transmission control method for integrating optical fiber and radio channels in embodiment 3.
[0135] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0136] It can be seen from the above technical solutions that the present invention discloses a communication transmission control system and method integrating optical fiber and radio channel, which has the following beneficial effects:
[0137] 1. The present invention adopts the multiple transmission and selective reception technology, introduces the expected superposition sequence number at the data receiving end, compares the superposition sequence number of the received message with the expected superposition sequence number through the message superposition sequence number processing module, filters out the message that has been uploaded to the terminal, and solves the problem of repeated packets in the integrated communication transmission of the optical fiber channel and the radio channel.
[0138] 2. The present invention adopts multi-channel transmission packet loss completion technology. When packet loss occurs in the optical fiber channel, the message superimposed sequence number processing module is used to screen out the messages that are sent last but arrived first and transmitted through the optical fiber channel; then the messages are put into the message cache detection module for caching; under the processing of the message cache detection module, the lost messages are completed and the cached messages are uploaded to the terminal in time to restore the normal operation of the communication transmission, thus solving the disorder problem that may be caused by packet loss in the optical fiber channel during the fusion transmission of the optical fiber channel and the radio channel.
[0139] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0140] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A communication transmission control system integrating optical fiber and radio channel, characterized in that: include: A superimposed sequence number adding module, a message processing module and a message cache detection module; The superimposed sequence number adding module is used to receive the message sent by the first terminal, encapsulate the superimposed sequence number in the message header, obtain the encapsulated message and send it through multiple channels; The message processing module is used to receive the encapsulated message, extract the message superposition sequence number, and compare and judge with the updated expected superposition sequence number to obtain a comparison result, perform corresponding processing on the encapsulated message based on the comparison result, and screen the encapsulated message that meets the cache condition to obtain a cache message; The message cache detection module is used to receive the cache message, establish a cache area based on the cache message, and perform detection when the cache message exists in the cache area, and send the cache message that meets the requirements to the second terminal.
2. A communication transmission control system integrating optical fiber and radio channel according to claim 1, characterized in that: The superposition sequence number adding module includes: a message receiving unit, a sequence number adding unit and a message sending unit; The message receiving unit is used to receive a message sent by the first terminal; The sequence number adding unit is used to encapsulate and superimpose a sequence number on the header of the message to obtain the encapsulated message; The message sending unit is used to copy the encapsulated message and send it through the optical fiber channel and the radio channel respectively.
3. A communication transmission control system integrating optical fiber and radio channel according to claim 2, characterized in that: The superposition sequence number includes: a sequence number and a length number; The sequence number is used to indicate the order in which the messages are sent, and changes based on a cumulative rule; The length sequence number is used to indicate the number of bytes in the body of the message.
4. A communication transmission control system integrating optical fiber and radio channel according to claim 3, characterized in that: The message processing module includes: a superposition sequence number extraction unit, an expected superposition sequence number determination unit and a comparison and judgment unit; The superposition sequence number extraction unit is used to receive the encapsulated message sent by the optical fiber channel and the radio channel, and extract the superposition sequence number based on the encapsulated message to obtain the message superposition sequence number; The expected superposition sequence number determination unit is used to, when the system starts running, use the message superposition sequence number extracted from the first package encapsulation message received by the superposition sequence number extraction unit as the initial expected superposition sequence number, and after the first package encapsulation message is uploaded to the second terminal, add 1 to the sequence number in the initial expected superposition sequence number to obtain a sequence number update value, use the actual number of body bytes of the next package of the encapsulation message received as the length number update value in the initial expected superposition sequence number, and obtain the updated expected superposition sequence number based on the sequence number update value and the length number update value; The comparison and judgment unit is used to determine whether the message superposition sequence number is equal to the updated expected superposition sequence number. If so, the current encapsulated message is uploaded to the second terminal, and the sequence number in the current expected superposition sequence number is increased by 1 to obtain the updated value of the sequence number. Otherwise, it is determined whether the sequence number in the message superposition sequence number is less than or equal to the sequence number in the updated expected superposition sequence number. If so, the current encapsulated message is discarded. Otherwise, it is determined whether the length number in the message superposition sequence number is equal to the length number in the updated expected superposition sequence number. If so, the current encapsulated message is used as a cached message. Otherwise, the current encapsulated message is discarded.
5. A communication transmission control system integrating optical fiber and radio channel according to claim 4, characterized in that: The expected superposition sequence number determination unit is also used to set the updated expected superposition sequence number to a reset state if the encapsulated message is not received within a preset time period, and use the message superposition sequence number extracted from the first package of encapsulated message received by the superposition sequence number extraction unit after the reset state as the new initial expected superposition sequence number; after the first package of encapsulated message is uploaded to the second terminal, add 1 to the sequence number in the new initial expected superposition sequence number to obtain an updated sequence number value, use the actual number of text bytes of the next package of encapsulated message received as the updated length number value in the new initial expected superposition sequence number, and obtain the updated expected superposition sequence number based on the updated sequence number value and the updated length number value.
6. A communication transmission control system integrating optical fiber and radio channel according to claim 4, characterized in that: The message cache detection module includes: a cache area establishment unit and a detection processing unit; The buffer area establishment unit is used to receive the buffer message, and use the sequential sequence number in the superimposed sequence number of the buffer message as a key and the text content as a value to establish a hash table as the buffer area; The detection processing unit is used to determine whether there is a key in the cache area hash table that is the same as the sequential number in the current expected superposition sequence number when the first condition or the second condition is met. If so, the cache message corresponding to the key is uploaded to the second terminal, and the sequential number in the current expected superposition sequence number is increased by 1, and the judgment is continued until there is no key in the cache area hash table that is the same as the sequential number in the current expected superposition sequence number; otherwise, the expected superposition sequence number update timer is reset, and wait for the next triggering of the cache area detection.
7. A communication transmission control system integrating optical fiber and radio channel according to claim 6, characterized in that: The first condition is: When the cache message exists in the cache area, the expected superposition sequence number update timer is started with a preset delay as a timing period, and within the timeout period of the timer, the comparison and judgment unit uploads the encapsulated message to the second terminal, and increases the sequential number in the current expected superposition sequence number by 1, thereby triggering cache area detection.
8. A communication transmission control system integrating optical fiber and radio channel according to claim 7, characterized in that: The second condition is: When the cache message exists in the cache area, if the cache area detection is not triggered within one of the timing cycles of the expected superposition sequence number update timer, the sequential sequence number in the current expected superposition sequence number is increased by 1 to trigger the cache area detection.
9. A communication transmission control system integrating optical fiber and radio channel according to claim 8, characterized in that: The detection processing unit is also used to remove the uploaded cache message from the cache area after the cache message is uploaded to the second terminal, and determine whether the current cache area is empty. If so, turn off the expected superposition sequence number update timer, delete the hash table and close the cache area, otherwise continue to trigger the cache area detection.
10. A communication transmission control method integrating optical fiber and radio channel, applied to any one of the communication transmission control systems integrating optical fiber and radio channel as claimed in claims 1 to 9, characterized in that: include: Receive a message sent by the first terminal, encapsulate and superimpose a sequence number in the message header, obtain an encapsulated message, and send it through multiple channels; Extracting the message superposition sequence number based on the encapsulated message and comparing it with the updated expected superposition sequence number to obtain a comparison result; Based on the comparison result, the encapsulated message is processed accordingly, and the encapsulated message that meets the cache condition is screened to obtain the cache message; A cache area is established based on the cache message, and when the cache message exists in the cache area, detection is performed, and the cache message that meets the requirements is sent to the second terminal.
