WO2019148884A1 - 报文传输方法、存储介质及计算机设备 - Google Patents

报文传输方法、存储介质及计算机设备 Download PDF

Info

Publication number
WO2019148884A1
WO2019148884A1 PCT/CN2018/109883 CN2018109883W WO2019148884A1 WO 2019148884 A1 WO2019148884 A1 WO 2019148884A1 CN 2018109883 W CN2018109883 W CN 2018109883W WO 2019148884 A1 WO2019148884 A1 WO 2019148884A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
transmitted
message
sub
packet
Prior art date
Application number
PCT/CN2018/109883
Other languages
English (en)
French (fr)
Inventor
杜民
Original Assignee
深圳市民泰科电子有限公司
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 深圳市民泰科电子有限公司 filed Critical 深圳市民泰科电子有限公司
Publication of WO2019148884A1 publication Critical patent/WO2019148884A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/28Flow control; Congestion control in relation to timing considerations
    • H04L47/283Flow control; Congestion control in relation to timing considerations in response to processing delays, e.g. caused by jitter or round trip time [RTT]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames

Definitions

  • the present invention relates to the field of communications, and in particular, to a message transmission method, a storage medium, and a computer device.
  • the packet transmission mode needs to first receive the packet into the receiving buffer and check the packet.
  • the data of the receiving buffer is copied to the sending buffer, and then Then send to the target device.
  • the time required for transmission and reception depends on the packet length.
  • delay jitter occurs.
  • the embodiment of the invention provides a message transmission method, a storage medium and a computer device, which can reduce the delay of message transmission and eliminate the delay jitter of message transmission.
  • an embodiment of the present invention provides a packet transmission method, which is applicable to a first device, and includes:
  • a storage medium provided by the embodiment of the present invention has a computer program stored thereon, and when the computer program is run on a computer, the computer is configured to perform a message transmission method according to any embodiment of the present invention.
  • a computer device provided by an embodiment of the present invention includes a processor and a memory, where the memory has a computer program, and the processor uses the computer program to execute a report according to any embodiment of the present invention. Text transmission method.
  • the embodiment of the present invention receives a packet by using the first port of the first device, and sends the packet to the second device by using the second port, and performs verification on the packet to obtain a school. And obtaining the corresponding target data according to the message, and saving the target data in a buffer area; performing corresponding processing on the target data in the buffer area according to the verification result, and sending the target data to the target device Data to be transmitted in the buffer area.
  • the solution reduces the time for sending and receiving packets, thereby reducing the delay of packet transmission and eliminating delay jitter of packet transmission.
  • FIG. 1 is a schematic diagram of a scenario of a packet transmission method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a packet transmission method according to an embodiment of the present invention.
  • FIG. 3 is another schematic flowchart of a packet transmission method according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of an audio data transmission scenario according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of another structure of a message transmission apparatus according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
  • unit as used herein may be taken to mean a software object that is executed on the computing system.
  • the different components, units, engines, and services described herein can be considered as implementation objects on the computing system.
  • the apparatus and method described herein may be implemented in software, and may of course be implemented in hardware, all of which are within the scope of the present invention.
  • first”, “second” and “third” and the like in the present invention are used to distinguish different objects, and are not intended to describe a specific order.
  • the terms “comprises” and “comprising” and “comprising” are intended to cover a non-exclusive inclusion.
  • a process, method, system, product, or device that comprises a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or units not listed, or some embodiments Other steps or units inherent to these processes, methods, products, or devices are also included.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the embodiment of the present invention provides a message transmission method, where the object of the packet transmission method may be a message transmission device provided by the embodiment of the present invention, or a computer device integrated with the message transmission device, where the message transmission
  • the device can be implemented in hardware or software.
  • the computer device may have an A port and a B port, and both the A port and the B port are bidirectional ports, that is, both data and data may be transmitted.
  • the A port receives the packet
  • the A port is the first port mentioned in the embodiment of the present invention
  • the B port is the second port mentioned in the embodiment of the present invention
  • the B port receives the packet
  • the B port That is, the first port mentioned in the embodiment of the present invention
  • the A port is the second port mentioned in the embodiment of the present invention
  • the data sent by the first port to the second port is data downlink
  • the second port is
  • the data is sent in the direction of a port
  • the computer device itself also has a plurality of data buffers for processing data required by the computer device itself.
  • FIG. 1 is a schematic diagram of an application scenario of a packet transmission method according to an embodiment of the present invention.
  • the computer transmission device is integrated into a computer device as an example, and the computer device can receive a packet through the first port of the computer device; At the same time, the second port sends a message to the second device; the packet is verified to obtain a verification result; the corresponding target data is obtained according to the message, and the target data is saved in the buffer; according to the verification result
  • the target data in the buffer area is processed correspondingly, and the data to be transmitted in the buffer area is sent to the target device.
  • FIG. 2 is a schematic flowchart diagram of a packet transmission method according to an embodiment of the present invention.
  • the flow of the packet transmission method provided by the embodiment of the present invention may be as follows:
  • S201 Receive a packet by using a first port of the first device.
  • the first device refers to the computer device itself, that is, the computer device receives the message through the first port.
  • the computer device is an audio device, it receives voice information transmitted by a microphone or the like.
  • the computer device sends a message to the second device by using the second port with a preset delay while receiving the packet by the first port.
  • the preset delay can be freely set.
  • integrity check and cyclic redundancy check code are used for the message (Cyclic)
  • the Redundancy Check (CRC) is checked to obtain the verification result.
  • the verification result is that the packet verification succeeds or the packet verification fails.
  • the computer device in this embodiment does not need to receive the entire packet into the receiving buffer through the first port, and then performs verification on the packet, the packet will be received when the packet verification succeeds.
  • the packets in the buffer are transferred to the send buffer, and finally the data is sent out through the second port.
  • the packet is sent to the second device through the second port, and the packet is verified at the same time. Therefore, after receiving the packet, the packet is completed.
  • the delay is small and can be freely set. For example, the delay can be 48 ns. Therefore, at the same time that the message is received, the message is basically sent.
  • the message includes multiple fields, and there may be a data field for storing the data content, and a check field for storing the verification information.
  • the computer device in this embodiment may further update the verification information in the packet according to the verification result. For example, the computer device sends a packet to the second device through its second port while receiving the packet through the first port, and simultaneously checks the received packet to obtain a verification result, and then according to the checksum.
  • the check field in the message is updated, that is, the check information in the original message check field is replaced with the check information obtained after the computer device checks the message, where the check information can be The packet verification succeeds or the packet verification fails.
  • the packet can be sent out after the verification succeeds.
  • the packet is discarded, and the check information of the packet check field is not updated.
  • the computer device can send the message more quickly, and can timely let the other devices receiving the message know the correctness of the message, and to a certain extent, reduce the message transmission. Delay.
  • AEDP direct insertion or extraction technology
  • Add or Extract Data Directly in Packet Add a function contact.
  • the function contact can be an AEDP contact.
  • the AEDP contact is used to acquire the corresponding target data or insert the corresponding target data.
  • the size of the data block may be preset according to the data required by the computer device itself, a window is established according to the size of the preset data block, and the window is controlled on the message. Sliding, when the sliding position of the window is the second preset position, acquiring data to be acquired corresponding to the second preset position, obtaining target data, and saving the target data in the buffer area.
  • the second preset position may be determined by acquiring data required by the computer device itself, that is, when the data is needed by the device, the window is slid to the corresponding location, and then the data of the corresponding location is intercepted, and the buffer area exists.
  • step S204 may be configured to acquire a corresponding data to be inserted in the buffer according to the message, and may: create a data block according to the data to be inserted inserted by the computer device, and then The size of the preset data block establishes a window, and controls the window to slide on the message.
  • the sliding position of the window is the first preset position
  • the corresponding data to be inserted is inserted to obtain target data, and the target data is cached. All data to be transmitted, including the target data, is sent to the target device, wherein the first preset location may be the end portion of the message.
  • the data to be transmitted in the buffer area is sent to the target device, where the data to be transmitted in the buffer area includes the target data.
  • the target data in the buffer area is cleared.
  • the first port receives the correct flag; when the packet verification fails, the first port receives the error flag.
  • the packet is received by the first port of the first device; when the packet is received, the packet is sent to the second device by using the second port; and the packet is verified to obtain a verification result; Obtain corresponding target data according to the message, and save the target data in the buffer area; perform corresponding processing on the target data in the buffer area according to the verification result, and send the data to be transmitted in the buffer area to the target device.
  • the packet is sent out and the data is processed at the same time, which saves the processing time, and the time required for sending and receiving the packet does not depend on the packet length.
  • the method for transmitting packets by the Ethernet technology can reduce the delay of packet transmission and eliminate the delay jitter of packet transmission, and realize low packet delay and no delay jitter transmission.
  • the message transmission method may include:
  • S301 Receive a packet by using a first port of the first device.
  • the first device refers to the computer device itself, that is, the computer device receives the message through the first port.
  • the computer device is an audio device, it receives voice information transmitted by a microphone or the like.
  • the computer device sends a message to the second device by using the second port with a preset delay while receiving the packet by the first port.
  • the preset delay can be freely set.
  • integrity check and cyclic redundancy check code are used for the message (Cyclic)
  • the Redundancy Check (CRC) is checked to obtain the verification result.
  • the verification result is that the packet verification succeeds or the packet verification fails.
  • the embodiment can send the message at the same time with the preset delay, and simultaneously check the message, so that the message is received. At the same time as the message is finished, the corresponding message is also verified. Because the preset delay is small, and can be freely set according to the requirements, the message will be sent after the message is received.
  • the packet includes: the verification information. After the verification result is obtained, the packet may further include: updating the verification information in the packet according to the verification result.
  • the message includes multiple fields, and there may be a data field for storing the data content, and a check field for storing the verification information.
  • the computer device in this embodiment may further update the verification information in the packet according to the verification result. For example, the computer device sends a packet to the second device through its second port while receiving the packet through the first port, and simultaneously checks the received packet to obtain a verification result, and then according to the checksum.
  • the check field in the message is updated, that is, the check information in the original message check field is replaced with the check information obtained after the computer device checks the message, where the check information can be The packet verification succeeds or the packet verification fails.
  • the packet can be sent out after the verification succeeds.
  • the packet is discarded, and the check information of the packet check field is not updated.
  • the computer device can send the message more quickly, and can timely let the other devices receiving the message know the correctness of the message, and to a certain extent, reduce the message transmission. Delay.
  • AEDP direct insertion or extraction technology
  • Add or Extract Data Directly in Packet Add a function contact.
  • the function contact can be an AEDP contact.
  • the AEDP contact is used to acquire the corresponding target data or insert the corresponding target data.
  • the preset data block size may be determined according to data required by the computer device. Therefore, when receiving the message, the computer device may also establish a window according to the size of the preset data block, and control the window to be in the message. Swipe up to get the data needed for the computer device.
  • the data to be acquired corresponding to the second preset position is obtained, the target data is obtained, and the target data is saved in the buffer area, wherein the second preset
  • the location can be any location of the message data portion and can be determined by the amount of data required by the computer device.
  • step S306 may be: when the current sliding position of the window is the first preset position, the data to be inserted that the computer device needs to be inserted is inserted to obtain target data, wherein the first preset position may be a message. end.
  • the data to be transmitted (including the target data) in the buffer area is divided into multiple pieces of sub-to-be-transmitted data.
  • Step S307 and step S308 may be: when the message verification fails, the receiving port receives the error flag, clears the target data saved in the buffer area, and divides the data to be transmitted in the buffer area into multiple pieces of sub-transfer data to send. .
  • the receiving port receives the correct flag, and divides the data to be transmitted (including the target data) in the buffer area into multiple pieces of sub-transfer data to be transmitted, and sends each acknowledgement after receiving the success. Send another to improve accuracy.
  • the data to be transmitted originally exists in the buffer area, so whether or not the target data is stored in the buffer area as the data to be transmitted, the data to be transmitted originally existing in the buffer area needs to be sent to the target device.
  • the data is sorted according to the position of each sub-to-be-transmitted data in the data to be transmitted, so that the data sequence in each sub-to-be-transmitted data is in the same order as the data in the data to be transmitted.
  • Each sub-transmission data is sent once through each first channel.
  • the number of the first channels is eight, so that each sub-transmission data is sequentially sent once through each of the first channels, for a total of eight transmissions.
  • the target device confirms that the sub-to-be transmitted data is successfully verified, the next sub-transfer data is sent.
  • the response information is generated after the current sub-transmission data is received by the target device, and the current sub-to-be-transmitted data is verified, and when any current sub-transmission data is successfully verified, the success response information is returned, when any current When the data to be transmitted is not verified, the failure response information is returned.
  • For the current sub-to-be-transmitted data each time a current sub-to-be-transmitted data is received, one is verified. When the current sub-to-be-transmitted data is successfully verified, and the carried information of the current sub-to-be-transmitted data is complete and correct, the direct judgment is directly made. The verification succeeds, and the verification is stopped, and the current sub-to-be-transmitted data received through other channels is automatically ignored, and the success response information is returned. When it is determined that the sub-to-be-transmitted data received through the eight channels fails, it is judged that the transmission is incorrect, and the failure response information is returned.
  • step S310 is performed.
  • the current first channel is not smooth, or there is interference, so it is necessary to switch to the second channel for transmission.
  • the number of the second channels may be one or plural.
  • the current multiple first channels are closed and the plurality of second channels are set as the first channel. After the setting is completed, the step of transmitting the current sub-to-be-transmitted data to the target device by using the multiple first channels is performed.
  • the packet is received by the first port of the first device; when the packet is received, the packet is sent to the second device by using the second port; and the packet is verified to obtain a verification result; Obtain corresponding target data according to the message, and save the target data in the buffer area; perform corresponding processing on the target data in the buffer area according to the verification result, and send the data to be transmitted in the buffer area to the target device.
  • the packet is sent out and the data is processed at the same time, which saves the processing time, and the time required for sending and receiving the packet does not depend on the packet length.
  • the method for transmitting packets by the Ethernet technology can reduce the delay of packet transmission and eliminate the delay jitter of packet transmission, and realize low packet delay and no delay jitter transmission.
  • the computer device divides data to be transmitted in the buffer into multiple pieces of data to be transmitted; sorts a plurality of pieces of data to be transmitted to form a transmission sequence; and passes the plurality of first channels to the target device according to the transmission sequence. Transmitting each sub-transmission data in sequence, wherein each sub-transmission data is sent once through each first channel; thereby completing transmission of data to be transmitted in the buffer area, since each sub-transmission data passes through multiple Different first channels are sent multiple times, which greatly improves the accuracy of data transmission, and ensures stable transmission delay, avoiding the sharp jitter of transmission in the case of poor network.
  • a message transmission method is also provided, which can be applied to various scenarios.
  • the method is applied to an audio data transmission scenario, where the computer device b can be a
  • the plurality of devices may exist in a separate form or may be integrated into an audio device or the like. This embodiment is exemplified by the computer device b being in a separate form.
  • the computer device b may receive a message through the first port, where the message may be received by the computer device b from the other device through the first port, for example, receiving the voice sent by the microphone. After receiving the message, the computer device b sends the message to the second device through the second port, and the second device may be an audio c or other relay device; and at the same time, the message is verified.
  • the required target data is stored in the buffer area of the computer device b; then waits for the message reception to end, and after the message is received, the packet verification is also completed, and the message is verified.
  • the first port is received to receive the correct flag, and the data to be transmitted in the buffer area of the computer device b is moved to the receive queue buffer, and the set interface is set.
  • Send out wherein the computer device b may be transmission data in its buffer to the audio zone C, it may also be sent to other devices.
  • the first port receives the error flag, clears the target data in the buffer area of the computer device b, and moves the data to be transmitted in the buffer area of the computer device b to the receiving queue buffer.
  • the set interface is sent out. It can be understood that, regardless of whether the received packet verification result is successful or failed, the data to be transmitted may exist in the receive queue buffer, so the receive queue needs to be received regardless of whether the received packet check result is successful or failed.
  • the data to be transmitted in the buffer is sent out, but only when the packet is successfully received, the target data acquired by the computer device b needs to be sent out together.
  • the computer device b may also receive a message through the first port, where the message may be received by the computer device b from the other device through the first port, for example, received by the microphone. Voice information; then, the computer device b receives the message, and sends the message to the second device through the second port, where the second device can be an audio or other relay device; and the message is verified at the same time. Obtaining a verification result; then establishing a window according to the requirement of the computer device b or the size of the preset data block, sliding in the message received by the first port, and inserting the computer device after sliding to the set position b. The data to be inserted can be inserted into the end of the packet. Then, the packet is received.
  • the packet After the packet is received, the packet is verified. When the packet is successfully verified, Set the first port to receive the correct flag. When the message verification fails, the first port receives the error flag; then it can send to the audio c or other device including the insertion. Data including data to be transmitted and a check value corresponding to the data.
  • the first port of the computer device receives the message; while receiving the message, the second port sends a message to the second device; and the packet is verified to obtain a verification result; Obtain corresponding target data according to the message, and save the target data in the buffer area; perform corresponding processing on the target data in the buffer area according to the verification result, and send the data to be transmitted in the buffer area to the target device.
  • the packet is sent out and the data is processed at the same time, which saves the processing time, and the time required for sending and receiving the packet does not depend on the packet length, and the packet is implemented. Low latency and no delay jitter transmission.
  • FIG. 5 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present invention.
  • the message transmission device is applied to a computer device, and the message transmission device includes a receiving unit 401, a sending unit 402, a checking unit 403, an obtaining unit 404, and a processing unit 405, as follows:
  • the receiving unit 401 is configured to receive a message by using the first port of the first device
  • the sending unit 402 is configured to send a message to the second device by using the second port, while receiving the packet;
  • the verification unit 403 is configured to perform verification on the packet to obtain a verification result.
  • the obtaining unit 404 is configured to acquire corresponding target data according to the packet, and save the target data in the buffer area;
  • the processing unit 405 is configured to perform corresponding processing on the target data in the buffer area according to the verification result, and send the data to be transmitted in the buffer to the target device.
  • the apparatus may further include:
  • the updating unit 406 is configured to update the verification information in the packet according to the verification result.
  • the message includes multiple fields, and there may be a data field for storing the data content, and a check field for storing the verification information.
  • the computer device in this embodiment may further update the verification information in the packet according to the verification result. For example, the computer device sends a packet to the second device through its second port while receiving the packet through the first port, and simultaneously checks the received packet to obtain a verification result, and then according to the checksum.
  • the check field in the message is updated, that is, the check information in the original message check field is replaced with the check information obtained after the computer device checks the message, where the check information can be The packet verification succeeds or the packet verification fails.
  • the packet can be sent out after the verification succeeds.
  • the packet is discarded, and the check information of the packet check field is not updated.
  • the computer device can send the message more quickly, and can timely let the other devices receiving the message know the correctness of the message, and to a certain extent, reduce the message transmission. Delay.
  • the obtaining unit 404 may include:
  • a sliding subunit 4041 configured to establish a window according to a preset data block size, and control the window to slide on the message
  • the data processing sub-unit 4042 is configured to perform data processing on the message based on the sliding position of the window to obtain target data.
  • the data processing sub-unit 4042 can be configured to: when the current sliding position of the window is the first preset position, insert data to be inserted in the first preset position to obtain target data; or when the current window is When the sliding position is the second preset position, the data to be acquired corresponding to the second preset position is obtained, and the target data is obtained.
  • the processing unit 405 may include:
  • the clearing subunit 4051 is configured to clear the target data in the buffer area when the message verification fails.
  • a dividing subunit 4052 configured to divide data to be transmitted into multiple pieces of sub-to-be-transmitted data
  • a sorting subunit 4053 configured to sort the plurality of sub-transfer data to form a transmission sequence
  • the sending subunit 4054 is configured to sequentially send each subto-be-transmitted data to the target device through the plurality of first channels according to the transmission sequence.
  • the transmitting subunit 4054 can be used to:
  • the sub-transmission data set to the current sub-to-be-transmitted data is deleted from the transmission sequence, and after the deletion, the currently-sorted sub-transmission data in the transmission sequence is set as the current sub-s Data to be transmitted;
  • the current plurality of first channels are closed and the plurality of second channels are set as the first channel, and after the setting is completed, the transmitting sub-unit 4054 is configured to send the current sub-to-be-transmitted data to the target device through the plurality of first channels.
  • the steps performed by each unit in the message transmission apparatus may refer to the method steps described in the foregoing method embodiments.
  • the message transmission device can be integrated in a computer device.
  • the foregoing various units may be implemented as an independent entity, and may be implemented in any combination, and may be implemented as the same entity or a plurality of entities.
  • the foregoing units refer to the foregoing embodiments, and details are not described herein again.
  • the receiving unit 401 can receive the message through the first port of the first device; the sending unit 402 sends the message to the second device through the second port while receiving the message;
  • the unit 403 checks the message to obtain a verification result;
  • the obtaining unit 404 acquires the corresponding target data according to the message, and saves the target data in the buffer area;
  • the processing unit 405 determines the target in the buffer area according to the verification result.
  • the data is processed accordingly, and the data to be transmitted in the buffer area is sent to the target device.
  • the packet is sent out and the data is processed at the same time, which saves the processing time, and the time required for sending and receiving the packet does not depend on the packet length.
  • the method for transmitting packets by the Ethernet technology can reduce the delay of packet transmission and eliminate the delay jitter of packet transmission, and realize low packet delay and no delay jitter transmission.
  • the embodiment of the invention further provides a computer device.
  • the computer device 500 includes a processor 501 and a memory 502.
  • the processor 501 is electrically connected to the memory 502.
  • the processor 500 is a control center of the computer device 500 that connects various portions of the entire computer device using various interfaces and lines, by running or loading a computer program stored in the memory 502, and recalling data stored in the memory 502, The computer device 500 is monitored as a whole by performing various functions of the computer device 500 and processing the data.
  • the memory 502 can be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running computer programs and modules stored in the memory 502.
  • the memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of computer equipment, etc.
  • memory 502 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 502 can also include a memory controller to provide processor 501 access to memory 502.
  • the processor 501 in the computer device 500 loads the instructions corresponding to the process of one or more computer programs into the memory 502 according to the following steps, and is stored in the memory 502 by the processor 501.
  • the computer program in which to implement various functions, as follows:
  • the target data in the buffer area is processed correspondingly, and the data to be transmitted in the buffer area is sent to the target device.
  • the processor 501 when acquiring corresponding target data according to the message, can perform the following steps:
  • the data is processed by the window based on the sliding position of the window to obtain the target data.
  • the processor 501 when data processing is performed on the message based on the sliding position of the window to obtain the target data, the processor 501 can perform the following steps:
  • the data to be inserted is inserted at the first preset position to obtain target data
  • the data to be acquired corresponding to the second preset position is obtained, and the target data is obtained.
  • the processor 501 may perform the following steps:
  • the message includes: verification information, and after obtaining the verification result, the processor 501 may further perform the following steps:
  • the processor 501 when transmitting data to be transmitted in the buffer area to the target device, the processor 501 may further perform the following steps:
  • Each sub-transfer data is sequentially transmitted to the target device through the plurality of first channels according to the transmission sequence.
  • the processor 501 may further perform the following steps:
  • the sub-transmission data set to the current sub-to-be-transmitted data is deleted from the transmission sequence, and after the deletion, the sub-transmission data that is sorted first in the transmission sequence is set as the current sub-s The step of transmitting data;
  • the current plurality of first channels are closed and the plurality of second channels are set as the first channel, and the step of transmitting the current sub-to-be-transmitted data to the target device through the plurality of first channels is performed after the setting is completed.
  • the computer device of the embodiment receives the packet through the first port of the computer device, and sends the packet to the second device through the second port while receiving the packet;
  • the verification result is obtained;
  • the corresponding target data is obtained according to the message, and the target data is saved in the buffer area;
  • the target data in the buffer area is processed correspondingly according to the verification result, and the data to be transmitted in the buffer area is sent to the target device.
  • the packet is sent out and the data is processed at the same time, so that the processing time is saved, and the time required for sending and receiving the packet does not depend on the packet length, compared to the existing one.
  • the method for transmitting packets by the Ethernet technology can reduce the delay of packet transmission and eliminate the delay jitter of packet transmission, and realize low packet delay and no delay jitter transmission.
  • the embodiment of the present invention further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, causes the computer to execute the message transmission method in any of the above embodiments, for example:
  • the packet is received by the first port of the first device, and the packet is sent to the second device by using the second port; the packet is verified to obtain a verification result; and the corresponding target is obtained according to the packet.
  • Data, and the target data is saved in the buffer area; the target data in the buffer area is processed correspondingly according to the verification result, and the data to be transmitted in the buffer area is sent to the target device.
  • the storage medium may perform the following steps when acquiring corresponding target data according to the message:
  • the data is processed by the window based on the sliding position of the window to obtain the target data.
  • the storage medium may perform the following steps:
  • the data to be inserted is inserted at the first preset position to obtain target data
  • the data to be acquired corresponding to the second preset position is obtained, and the target data is obtained.
  • the storage medium may perform the following steps:
  • the message includes: verification information, and after obtaining the verification result, the storage medium may further perform the following steps:
  • the storage medium when the data to be transmitted in the buffer area is sent to the target device, the storage medium may further perform the following steps:
  • Each sub-transfer data is sequentially transmitted to the target device through the plurality of first channels according to the transmission sequence.
  • the storage medium when each sub-transmission data is sequentially transmitted to the target device through the plurality of first channels according to the transmission sequence, the storage medium may further perform the following steps:
  • the sub-transmission data set to the current sub-to-be-transmitted data is deleted from the transmission sequence, and after the deletion, the sub-transmission data that is sorted first in the transmission sequence is set as the current sub-s The step of transmitting data;
  • the current plurality of first channels are closed and the plurality of second channels are set as the first channel, and the step of transmitting the current sub-to-be-transmitted data to the target device through the plurality of first channels is performed after the setting is completed.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (Random). Access Memory, RAM), etc.
  • the computer program can be stored in a computer readable storage medium, such as in a memory of the computer device, and executed by at least one processor within the computer device, and can include, for example, a message during execution.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory, a random access memory, or the like.
  • each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated module if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

本发明公开了报文传输方法、存储介质及计算机设备,通过在接收报文的同时,向第二设备发送报文;对报文进行校验,得到校验结果;根据报文获取目标数据,并将其保存在缓存区;根据校验结果对缓存区内的目标数据进行相应的处理,并向目标设备发送缓存区内的待传输数据。从而降低了报文传输的时延,消除了报文传输的时延抖动。

Description

报文传输方法、存储介质及计算机设备
本申请要求于2018年01月31日提交中国专利局、申请号为201810094657.7、发明名称为“报文传输方法、装置、存储介质及计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信领域,尤其涉及一种报文传输方法、存储介质及计算机设备。
背景技术
目前,报文的传输方式都是需要先将报文整体接收放入接收缓冲区,同时对报文进行校验,当校验成功时,才将接收缓冲区的数据拷贝到发送缓冲区,然后再发送至目标设备。
由于目前的报文传输方式需要将报文整体接收才能做后续处理,这样使得发送、接收所需时间依赖于报文长度,当报文长短不一时,则会出现时延抖动;而且在报文传输过程中在各个缓冲区之间进行数据转移时也会产生时延。
技术问题
本发明实施例提供一种报文传输方法、存储介质及计算机设备,可以降低报文传输时的时延,消除报文传输的时延抖动。
技术解决方案
第一方面,本发明实施例提供一种报文传输方法,适用于第一设备,包括:
通过所述第一设备的第一端口接收报文;
在接收报文的同时,通过第二端口向第二设备发送所述报文;
对所述报文进行校验,得到校验结果;
根据所述报文获取相应的目标数据,并将所述目标数据保存在缓存区;
根据所述校验结果对所述缓存区内的目标数据进行相应的处理,并向目标设备发送所述缓存区内的待传输数据。
第二方面,本发明实施例提供的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如本发明任一实施例提供的报文传输方法。
第三方面,本发明实施例提供的计算机设备,包括处理器和存储器,所述存储器有计算机程序,所述处理器通过调用所述计算机程序,用于执行如本发明任一实施例提供的报文传输方法。
有益效果
本发明实施例通过所述第一设备的第一端口接收报文;在接收报文的同时,通过第二端口向第二设备发送所述报文;对所述报文进行校验,得到校验结果;根据所述报文获取相应的目标数据,并将所述目标数据保存在缓存区;根据所述校验结果对所述缓存区内的目标数据进行相应的处理,并向目标设备发送所述缓存区内的待传输数据。该方案通过在接收报文的同时,将报文发送出去,并同时进行数据处理,降低了报文收发的时间,从而降低了报文传输的时延,消除了报文传输的时延抖动。
附图说明
下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其它有益效果显而易见。
图1为本发明实施例提供的报文传输方法的场景示意图;
图2为本发明实施例提供的报文传输方法的流程示意图;
图3为本发明实施例提供的报文传输方法的另一流程示意图;
图4为本发明实施例提供的音频数据传输场景示意图;
图5为本发明实施例提供的报文传输装置的结构示意图;
图6为本发明实施例提供的报文传输装置的另一结构示意图;
图7为本发明实施例提供的计算机设备的结构示意图。
本发明的实施方式
请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。
在以下的说明中,本发明的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本发明原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。
本文所使用的术语“单元”可看做为在该运算系统上执行的软件对象。本文所述的不同组件、单元、引擎及服务可看做为在该运算系统上的实施对象。而本文所述的装置及方法可以以软件的方式进行实施,当然也可在硬件上进行实施,均在本发明保护范围之内。
本发明中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或单元,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本发明实施例提供一种报文传输方法,该报文传输方法的执行主体可以是本发明实施例提供的报文传输装置,或者集成了该报文传输装置的计算机设备,其中该报文传输装置可以采用硬件或者软件的方式实现。
请参阅图1,在具体实施方式中,该计算机设备可以有A端口和B端口,A端口和B端口都是双向端口,即既可以接收数据,也可以发送数据。当A端口接收报文时,A端口即为本发明实施例所提到的第一端口,而B端口则为本发明实施例提到的第二端口;当B端口接收报文时,B端口即为本发明实施例所提到的第一端口,而A端口则为本发明实施例提到的第二端口,由第一端口向第二端口方向发送数据为数据下行,第二端口向第一端口方向发送数据为数据上行;该计算机设备本身也具有多个数据缓存区,用于处理计算机设备本身所需数据。
图1为本发明实施例提供的报文传输方法的应用场景示意图,以报文传输装置集成在计算机设备中为例,计算机设备可以通过该计算机设备的第一端口接收报文;在接收报文的同时,通过第二端口向第二设备发送报文;对报文进行校验,得到校验结果;根据报文获取相应的目标数据,并将目标数据保存在缓存区;根据校验结果对缓存区内的目标数据进行相应的处理,并向目标设备发送缓存区内的待传输数据。
请参阅图2,图2为本发明实施例提供的报文传输方法的流程示意图。本发明实施例提供的报文传输方法的流程可以如下:
S201、通过第一设备的第一端口接收报文。
在本实施例中,第一设备指代计算机设备本身,也就是说计算机设备通过第一端口接收报文。例如,该计算机设备为音响时,其接收话筒等发送的语音信息。
S202、在接收报文的同时,通过第二端口向第二设备发送报文。
计算机设备在第一端口接收报文的同时,通过第二端口以预设时延向第二设备发送报文。其中,预设时延可以自由设置。
S203、对报文进行校验,得到校验结果。
其中,对报文进行完整性校验和循环冗余校验码(Cyclic Redundancy Check,CRC)校验,得到校验结果,该校验结果为报文校验成功或者报文校验失败。
需要说明的是,由于本实施例中的计算机设备不需要通过第一端口将报文整体接收到接收缓冲区,然后再对该报文进行校验,当报文校验成功时,才将接收缓冲区中的报文转移到发送缓冲区,最后才通过第二端口向外发送数据。而是在通过第一端口接收报文的同时,便通过第二端口向第二设备发送报文,同时对报文进行校验,因此在接收完报文的同时,便完成了报文的校验,同时,由于在接收报文的同时,便发送了该报文,虽然发送过程中会产生一些时延,但该时延却较小,且可以自由设置,例如,该时延可以为48ns,因此接收完报文的同时,该报文也基本发送完成。
可以理解的是,报文包含多个字段,其中可以有数据字段,用来存放数据内容,还可以有校验字段,用来存放校验信息。而本实施例中的计算机设备在得到校验结果之后,还可以根据校验结果对报文中的校验信息进行更新。例如,计算机设备在通过其第一端口接收报文的同时,通过其第二端口向第二设备发送报文,同时对接收到的报文进行校验,得到校验结果,然后根据该校验结果对报文中的校验字段进行更新,也就是说将原来报文校验字段中的校验信息换成该计算机设备对报文进行校验之后得到的校验信息,其中校验信息可以包括报文校验成功或者报文校验失败,而由于现有设备在接收到报文之后,需要对报文进行校验,校验成功之后才能将报文发送出去,而校验失败时,则将该报文丢弃,并不会对报文校验字段的校验信息进行更新。相比于现有设备,该计算机设备能更快速的将报文发送出去,并能及时让接受该报文的其他设备得知报文的正确性,在一定程度上,也降低了报文传输的时延。
S204、根据报文获取相应的目标数据,并将目标数据保存在缓存区。
其中,如图1所示,可以使用直接插入或提取技术(AEDP,Add or Extract data Directly in Packet)增加功能接点,该功能接点可以是AEDP接点,该AEDP接点用于获取相应的目标数据或者插入相应的目标数据。
例如当计算机设备从第一端口接收报文时,可以根据该计算机设备本身所需求的数据预先设定数据块的大小,根据预设数据块的大小建立一个窗口,并控制该窗口在报文上滑动,当该窗口的滑动位置为第二预设位置时,获取第二预设位置对应的待获取数据,得到目标数据,并将目标数据保存在缓存区中。其中,第二预设位置可以由获取本计算机设备本身所需数据而定,即本设备需要什么数据时,窗口就会滑动到对应的位置,然后截取对应位置的数据,并存在缓存区。
例如当计算机设备从第二端口接收报文时,步骤S204可以为根据报文获取缓存区中相应的待插入数据,可以为:根据该计算机设备需要插入的待插入数据建立一数据块,然后根据该预设数据块的大小建立一个窗口,并控制该窗口在报文上滑动,当该窗口的滑动位置为第一预设位置时,插入相应的待插入数据,得到目标数据,将缓存区中包括目标数据在内的所有待传输数据发送给目标设备,其中第一预设位置可以为报文末尾部分。
S205、根据校验结果对缓存区内的目标数据进行相应的处理,并向目标设备发送所述缓存区内的待传输数据。
在报文校验成功时,向目标设备发送所述缓存区内的待传输数据,其中缓存区内的待传输数据包括目标数据。在报文校验失败时,清除缓存区内的目标数据。
特别的,当报文校验成功时,置第一端口接收正确标志;当报文校验失败时,置第一端口接收错误标志。
由上可知,本实施例通过第一设备的第一端口接收报文;在接收报文的同时,通过第二端口向第二设备发送报文;对报文进行校验,得到校验结果;根据报文获取相应的目标数据,并将目标数据保存在缓存区;根据校验结果对缓存区内的目标数据进行相应的处理,并向目标设备发送所述缓存区内的待传输数据。本发明实施例通过在接收报文的同时,将报文发送出去并同时进行数据处理,节省了处理时间,同时使得发送、接收报文所需时间不依赖于报文长度,相比于现有的以太网技术传输报文的方法,本实施例可以减少报文传输的时延和消除报文传输的时延抖动,实现了报文的低时延和无时延抖动传输。
下面将在上述实施例描述的方法基础上,对本发明的报文传输方法做进一步介绍。参考图3,该报文传输方法可以包括:
S301、通过第一设备的第一端口接收报文。
在本发明实施例中,第一设备指代计算机设备本身,也就是说计算机设备通过第一端口接收报文。例如,该计算机设备为音响时,其接收话筒等发送的语音信息。
S302、在接收报文的同时,通过第二端口向第二设备发送报文。
计算机设备在第一端口接收报文的同时,通过第二端口以预设时延向第二设备发送报文。其中,预设时延可以自由设置。
S303、对报文进行校验,得到校验结果。
其中,对报文进行完整性校验和循环冗余校验码(Cyclic Redundancy Check,CRC)校验,得到校验结果,该校验结果为报文校验成功或者报文校验失败。
与传统的先校验后发送的报文传输不同的是,本实施例可以在接收报文的以预设时延同时将报文发送出去,并同时对报文进行校验,这样使得在接收完报文的同时,相应的报文也校验完成;由于预设时延较小,且可根据需求自由设置,使得在接受完报文时,该报文也相应的将发送完。
S304、根据校验结果对报文中的校验信息进行更新。
其中,报文包括:校验信息,在得到校验结果之后,还可以包括:根据校验结果对报文中的校验信息进行更新。
可以理解的是,报文包含多个字段,其中可以有数据字段,用来存放数据内容,还可以有校验字段,用来存放校验信息。而本实施例中的计算机设备在得到校验结果之后,还可以根据校验结果对报文中的校验信息进行更新。例如,计算机设备在通过其第一端口接收报文的同时,通过其第二端口向第二设备发送报文,同时对接收到的报文进行校验,得到校验结果,然后根据该校验结果对报文中的校验字段进行更新,也就是说将原来报文校验字段中的校验信息换成该计算机设备对报文进行校验之后得到的校验信息,其中校验信息可以包括报文校验成功或者报文校验失败,而由于现有设备在接收到报文之后,需要对报文进行校验,校验成功之后才能将报文发送出去,而校验失败时,则将该报文丢弃,并不会对报文校验字段的校验信息进行更新。相比于现有设备,该计算机设备能更快速的将报文发送出去,并能及时让接受该报文的其他设备得知报文的正确性,在一定程度上,也降低了报文传输的时延。
S305、根据预设数据块大小建立一个窗口,并控制窗口在报文上滑动。
其中,如图1所示,可以使用直接插入或提取技术(AEDP,Add or Extract data Directly in Packet)增加功能接点,该功能接点可以是AEDP接点,该AEDP接点用于获取相应的目标数据或者插入相应的目标数据。
其中,预设数据块大小可以根据该计算机设备所需要的数据而定,因此该计算机设备在接收到报文时,也可以根据预设数据块的大小建立一个窗口,并控制该窗口在报文上滑动,以获取该计算机设备所需要的数据。
S306、当窗口当前的滑动位置为第二预设位置时,获取第二预设位置对应的待获取数据,得到目标数据,并将目标数据保存在缓存区。
当数据下行时,当窗口当前的滑动位置为第二预设位置时,获取第二预设位置对应的待获取数据,得到目标数据,并将目标数据保存在缓存区中,其中第二预设位置可以为报文数据部分的任何位置,可以由该计算机设备所需要数据的多少决定。
当数据上行时,步骤S306可以为:当窗口当前的滑动位置为第一预设位置时,插入该计算机设备需要插入的待插入数据,得到目标数据,其中第一预设位置可以为报文的末尾。
S307、在报文校验失败时,清除缓存区内的目标数据,并将缓存区内的待传输数据分割成多份子待传输数据。
S308、在报文校验成功时,将缓存区内的待传输数据(包括目标数据)分割成多份子待传输数据。
步骤S307和步骤S308可以为:在报文校验失败时,置接收端口接收错误标志,清除缓存区中保存的目标数据,并将缓存区内的待传输数据分割成多份子待传输数据来发送。在报文校验成功时,置接收端口接收正确标志,并将缓存区内的待传输数据(包括目标数据在内)分割成多份子待传输数据来发送,并每发送一个确认接收成功后再发送另一个,以提高准确性。
可以理解的是,缓存区内原本就存在待传输数据,所以不管是否将目标数据存入缓存区内作为待传输数据,都需要向目标设备发送缓存区内原本存在的待传输数据。
S309、将多份子待传输数据排序形成传输序列。
在该步骤中,根据各个子待传输数据在待传输数据中的位置来排序,使得各个子待传输数据中的数据顺序与待传输数据中的数据顺序相同。
S310、将传输序列中当前排序第一的子待传输数据设定为当前子待传输数据。
S311、通过多个第一信道向目标设备发送当前子待传输数据。
其中,每一子待传输数据均通过每一第一信道发送一次。
在该步骤中,例如该第一信道的数量为8个,这样每一子待传输数据就要依次通过各个第一信道分别发送一次,总共要发送8次。每发送完一份子待传输数据(通过8条信道共发送8次)后,并得到目标设备确认该子待传输数据校验成功后,才发送下一份子待传输数据。
S312、接收目标设备返回的响应信息。
其中,该响应信息由目标设备接收到当前子待传输数据后对当前子待传输数据进行校验后生成,并当任一当前子待传输数据校验成功时,返回成功响应信息,当任意当前子待传输数据均校验失败时,返回失败响应信息。对于该当前子待传输数据,每接收到一个当前子待传输数据就校验一个,当一个当前子待传输数据校验成功,显示该当前子待传输数据的携带信息完整且无误,则直接判断校验成功,并停止校验以及自动忽略通过其他信道接收到的该当前子待传输数据,返回成功响应信息。当校验完通过该8个信道接收到的子待传输数据都失败时,则判断传输有误,返回失败响应信息。
S313、当接收到成功响应信息时,将设定为当前子待传输数据的子待传输数据从传输序列中删除。
S314、在删除后判断该传输序列中是否存在子待传输数据。
S315、如果不存在,则判断待传输数据发送完毕。
如果存在,则执行步骤S310。
S316、当接收到失败响应信息时,确认至少一个当前可用的第二信道。
在这种情况下,有可能当前的第一信道都不通畅,或者存在干扰,因此需要换第二信道来传输。第二信道的数量可以为一个,也可以为多个。
S317、关闭当前的多个第一信道并将多个第二信道设定为第一信道,设定完成后执行通过多个第一信道向目标设备发送当前子待传输数据的步骤。
由上可知,本实施例通过第一设备的第一端口接收报文;在接收报文的同时,通过第二端口向第二设备发送报文;对报文进行校验,得到校验结果;根据报文获取相应的目标数据,并将目标数据保存在缓存区;根据校验结果对缓存区内的目标数据进行相应的处理,并向目标设备发送缓存区内的待传输数据。本发明实施例通过在接收报文的同时,将报文发送出去并同时进行数据处理,节省了处理时间,同时使得发送、接收报文所需时间不依赖于报文长度,相比于现有的以太网技术传输报文的方法,本实施例可以减少报文传输的时延和消除报文传输的时延抖动,实现了报文的低时延和无时延抖动传输。
进一步的,由于本实施例中该计算机设备通过将缓存区中待传输数据分割成多份子待传输数据;将多份子待传输数据排序形成传输序列;按照传输序列通过多个第一信道向目标设备依次发送每一子待传输数据,其中,每一子待传输数据均通过每一第一信道发送一次;从而完成缓存区内的待传输数据的传输,由于其中每个子待传输数据均通过多个不同的第一信道发送了多次,大大提高了数据传输的准确性,并保证了传输时延稳定,避免在网络较差的情况下出现传输急剧抖动。
在一实施例中还提供了一种报文传输方法,该方法可以应用于各种场景中,请参阅图4,以该方法应用于音频数据传输场景为例,其中该计算机设备b可以是一个或多个,可以以单独的形式存在,也可以集成在音响等设备中,本实施例以该计算机设备b以单独的形式存在为例。
在该音频数据传输场景中,可以是该计算机设备b通过第一端口接收报文,其中,该报文可以是该计算机设备b通过第一端口从其他设备接收的,例如接收由话筒发送的语音信息;然后计算机设备b接收到该报文的同时,通过第二端口向第二设备发送该报文,该第二设备可以是音响c或者其他中继设备;并同时对报文进行校验,得到校验结果;然后根据该计算机设备b的需求或者预先设定的数据块的大小,建立一个窗口,在第一端口接收的报文中滑动,当滑动到设定位置后,提取该计算机设备b所需要的目标数据,并将其存入该计算机设备b的缓存区;接着等待报文接收结束,在报文接收完的同时,也完成了对报文的校验,当报文校验成功时,则置第一端口接收正确标志,并将该计算机设备b的缓存区内的待传输数据移动到接收队列缓冲区中,经设定的接口发送出去,其中,该计算机设备b可以向音响c发送其缓存区内的待传输数据,也可以向其他设备发送。当报文校验失败时,则置第一端口接收错误标志,并清除该计算机设备b的缓存区内的目标数据,并将该计算机设备b的缓存区内的待传输数据移动到接收队列缓冲区中,经设定的接口发送出去。可以理解的是,不管接收的报文校验结果为成功或者失败,该接收队列缓冲区中都可能存在待传输数据,因此不管接收的报文校验结果为成功或者失败,都需要将接收队列缓冲区中的待传输数据发送出去,只是在报文接收成功时,需要将该计算机设备b获取的目标数据一并发送出去。
在该音频数据传输场景中,也可以是该计算机设备b通过第一端口接收报文,其中,该报文可以是该计算机设备b通过第一端口从其他设备接收的,例如接收由话筒发送的语音信息;然后计算机设备b接收到该报文的同时,通过第二端口向第二设备发送该报文,该第二设备可以是音响或者其他中继设备;并同时对报文进行校验,得到校验结果;然后根据该计算机设备b的需求或者预先设定的数据块的大小,建立一个窗口,在第一端口接收的报文中滑动,当滑动到设定位置后,插入该计算机设备b需要插入的数据,一般可以插入到该报文的末尾;接着等待报文接收结束,在报文接收完的同时,也完成了对报文的校验,当报文校验成功时,则置第一端口接收正确标志,当报文校验失败时,则置第一端口接收错误标志;然后可以向音响c或其他设备发送包括插入的数据在内的待传输数据以及对应的数据校验值。
由上可知,本实施例通过该计算机设备的第一端口接收报文;在接收报文的同时,通过第二端口向第二设备发送报文;对报文进行校验,得到校验结果;根据报文获取相应的目标数据,并将目标数据保存在缓存区;根据校验结果对缓存区内的目标数据进行相应的处理,并向目标设备发送缓存区内的待传输数据。本发明实施例通过在接收报文的同时,将报文发送出去并同时进行数据处理,节省了处理时间,同时使得发送、接收报文所需时间不依赖于报文长度,实现了报文的低时延和无时延抖动传输。
在一实施例中还提供了一种报文传输装置。请参阅图5,图5为本发明实施例提供的报文传输装置的结构示意图。其中该报文传输装置应用于计算机设备,该报文传输装置包括接收单元401、发送单元402、校验单元403、、获取单元404和处理单元405,如下:
接收单元401,用于通过第一设备的第一端口接收报文;
发送单元402,用于在接收报文的同时,通过第二端口向第二设备发送报文;
校验单元403,用于对报文进行校验,得到校验结果;
获取单元404,用于根据报文获取相应的目标数据,并将目标数据保存在缓存区;
处理单元405,用于根据校验结果对缓存区内的目标数据进行相应的处理,并向目标设备发送缓冲区内的待传输数据。
在一实施例中,参考图6,所述装置还可以包括:
更新单元406,用于根据校验结果对报文中的校验信息进行更新。
可以理解的是,报文包含多个字段,其中可以有数据字段,用来存放数据内容,还可以有校验字段,用来存放校验信息。而本实施例中的计算机设备在得到校验结果之后,还可以根据校验结果对报文中的校验信息进行更新。例如,计算机设备在通过其第一端口接收报文的同时,通过其第二端口向第二设备发送报文,同时对接收到的报文进行校验,得到校验结果,然后根据该校验结果对报文中的校验字段进行更新,也就是说将原来报文校验字段中的校验信息换成该计算机设备对报文进行校验之后得到的校验信息,其中校验信息可以包括报文校验成功或者报文校验失败,而由于现有设备在接收到报文之后,需要对报文进行校验,校验成功之后才能将报文发送出去,而校验失败时,则将该报文丢弃,并不会对报文校验字段的校验信息进行更新。相比于现有设备,该计算机设备能更快速的将报文发送出去,并能及时让接受该报文的其他设备得知报文的正确性,在一定程度上,也降低了报文传输的时延。
在一实施例中,参考图6,所述获取单元404,可以包括:
滑动子单元4041,用于根据预设数据块大小建立一个窗口,并控制窗口在报文上滑动;
数据处理子单元4042,用于基于窗口的滑动位置对报文进行数据处理,得到目标数据。
在一实施例中,数据处理子单元4042,可以用于:当窗口当前的滑动位置为第一预设位置时,在第一预设位置插入待插入数据,得到目标数据;或者当窗口当前的滑动位置为第二预设位置时,获取第二预设位置对应的待获取数据,得到目标数据。
在一实施例中,参考图6,所述处理单元405,可以包括:
清除子单元4051,用于在报文校验失败时,清除缓存区内的目标数据。
分割子单元4052,用于将待传输数据分割成多份子待传输数据;
排序子单元4053,用于将多份子待传输数据排序形成传输序列;
发送子单元4054,用于按照传输序列通过多个第一信道向目标设备依次发送每一子待传输数据。
在一实施例中,发送子单元4054,可以用于:
将传输序列中当前排序第一的子待传输数据设定为当前子待传输数据;
通过多个第一信道向目标设备发送当前子待传输数据,其中,每一子待传输数据均通过每一第一信道发送一次;
接收目标设备返回的响应信息,其中,该响应信息由目标设备接收到当前子待传输数据后对当前子待传输数据进行校验后生成,并当任一当前子待传输数据校验成功时,返回成功响应信息,当任意当前子待传输数据均校验失败时,返回失败响应信息;
当接收到成功响应信息时,将设定为当前子待传输数据的子待传输数据从传输序列中删除,并在删除后将传输序列中当前排序第一的子待传输数据设定为当前子待传输数据;
当接收到失败响应信息时,确认多个当前可用的第二信道;
关闭当前的多个第一信道并将多个第二信道设定为第一信道,并在设定完成后触发发送子单元4054通过多个第一信道向目标设备发送当前子待传输数据。
其中,报文传输装置中各单元执行的步骤可以参考上述方法实施例描述的方法步骤。该报文传输装置可以集成在计算机设备中。
具体实施时,以上各个单元可以作为独立的实体实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单位的具体实施可参见前面的实施例,在此不再赘述。
由上可知,本实施例可以由接收单元401通过第一设备的第一端口接收报文;由发送单元402在接收报文的同时,通过第二端口向第二设备发送报文;由校验单元403对报文进行校验,得到校验结果;由获取单元404根据报文获取相应的目标数据,并将目标数据保存在缓存区;由处理单元405根据校验结果对缓存区内的目标数据进行相应的处理,并向目标设备发送缓存区内的待传输数据。本发明实施例通过在接收报文的同时,将报文发送出去并同时进行数据处理,节省了处理时间,同时使得发送、接收报文所需时间不依赖于报文长度,相比于现有的以太网技术传输报文的方法,本实施例可以减少报文传输的时延和消除报文传输的时延抖动,实现了报文的低时延和无时延抖动传输。
本发明实施例还提供一种计算机设备。请参阅图7,计算机设备500包括处理器501以及存储器502。其中,处理器501与存储器502电性连接。
所述处理器500是计算机设备500的控制中心,利用各种接口和线路连接整个计算机设备的各个部分,通过运行或加载存储在存储器502内的计算机程序,以及调用存储在存储器502内的数据,执行计算机设备500的各种功能并处理数据,从而对计算机设备500进行整体监控。
所述存储器502可用于存储软件程序以及模块,处理器501通过运行存储在存储器502的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据计算机设备的使用所创建的数据等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器501对存储器502的访问。
在本发明实施例中,计算机设备500中的处理器501会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器502中,并由处理器501运行存储在存储器502中的计算机程序,从而实现各种功能,如下:
通过第一设备的第一端口接收报文;
在接收报文的同时,通过第二端口向第二设备发送报文;
对报文进行校验,得到校验结果;
根据报文获取相应的目标数据,并将目标数据保存在缓存区;
根据校验结果对缓存区内的目标数据进行相应的处理,并向目标设备发送缓存区内的待传输数据。
在某些实施方式中,在根据报文获取相应的目标数据时,处理器501可以执行以下步骤:
根据预设数据块大小建立一个窗口,并控制窗口在报文上滑动;
基于窗口的滑动位置对报文进行数据处理,得到目标数据。
在某些实施方式中,在基于所述窗口的滑动位置对报文进行数据处理,得到目标数据时,处理器501可以执行以下步骤:
当窗口当前的滑动位置为第一预设位置时,在第一预设位置插入待插入数据,得到目标数据;或者
当窗口当前的滑动位置为第二预设位置时,获取第二预设位置对应的待获取数据,得到目标数据。
在某些实施方式中,在根据校验结果对缓存区内的目标数据进行相应的处理时,处理器501可以执行以下步骤:
在报文校验失败时,清除缓存区内的目标数据。
在某些实施方式中,报文包括:校验信息,在得到校验结果之后,处理器501还可以执行以下步骤:
根据所述校验结果对所述报文中的校验信息进行更新。
在某些实施方式中,在向目标设备发送缓存区内的待传输数据时,处理器501还可以执行以下步骤:
将缓存区内的待传输数据分割成多份子待传输数据;
将多份子待传输数据排序形成传输序列;
按照传输序列通过多个第一信道向目标设备依次发送每一子待传输数据。
在某些实施方式中,在按照传输序列依次将每一子待传输数据通过多个第一信道发送给目标设备时,处理器501还可以执行以下步骤:
将传输序列中当前排序第一的子待传输数据设定为当前子待传输数据;
通过多个第一信道向目标设备发送当前子待传输数据,其中,每一子待传输数据均通过每一第一信道发送一次;
接收目标设备返回的响应信息,其中,该响应信息由目标设备接收到当前子待传输数据后对当前子待传输数据进行校验后生成,并当任一当前子待传输数据校验成功时,返回成功响应信息,当任意当前子待传输数据均校验失败时,返回失败响应信息;
当接收到成功响应信息时,将设定为当前子待传输数据的子待传输数据从传输序列中删除,并在删除后执行将传输序列中排序第一的子待传输数据设定为当前子待传输数据的步骤;
当接收到失败响应信息时,确认多个当前可用的第二信道;
关闭当前的多个第一信道并将多个第二信道设定为第一信道,设定完成后执行通过多个第一信道向目标设备发送当前子待传输数据的步骤。
由上可知,本实施例的计算机设备,通过该计算机设备的第一端口接收报文;在接收报文的同时,通过第二端口向第二设备发送报文;对报文进行校验,得到校验结果;根据报文获取相应的目标数据,并将目标数据保存在缓存区;根据校验结果对缓存区内的目标数据进行相应的处理,并向目标设备发送缓存区内的待传输数据。本实施例通过在接收报文的同时,将报文发送出去并同时进行数据处理,节省了处理时间,同时使得发送、接收报文所需时间不依赖于报文长度,相比于现有的以太网技术传输报文的方法,本实施例可以减少报文传输的时延和消除报文传输的时延抖动,实现了报文的低时延和无时延抖动传输。
本发明实施例还提供一种存储介质,所述存储介质存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述任一实施例中的报文传输方法,比如:通过第一设备的第一端口接收报文;在接收报文的同时,通过第二端口向第二设备发送报文;对报文进行校验,得到校验结果;根据报文获取相应的目标数据,并将目标数据保存在缓存区;根据校验结果对缓存区内的目标数据进行相应的处理,并向目标设备发送缓存区内的待传输数据。
在某些实施方式中,在根据报文获取相应的目标数据时,存储介质可以执行以下步骤:
根据预设数据块大小建立一个窗口,并控制窗口在报文上滑动;
基于窗口的滑动位置对报文进行数据处理,得到目标数据。
在某些实施方式中,在基于所述窗口的滑动位置对报文进行数据处理,得到目标数据时,存储介质可以执行以下步骤:
当窗口当前的滑动位置为第一预设位置时,在第一预设位置插入待插入数据,得到目标数据;或者
当窗口当前的滑动位置为第二预设位置时,获取第二预设位置对应的待获取数据,得到目标数据。
在某些实施方式中,在根据校验结果对缓存区内的目标数据进行相应的处理时,存储介质可以执行以下步骤:
在报文校验失败时,清除缓存区内的目标数据。
在某些实施方式中,报文包括:校验信息,在得到校验结果之后,存储介质还可以执行以下步骤:
根据所述校验结果对所述报文中的校验信息进行更新。
在某些实施方式中,在向目标设备发送缓存区内的待传输数据时,存储介质还可以执行以下步骤:
将缓存区内的待传输数据分割成多份子待传输数据;
将多份子待传输数据排序形成传输序列;
按照传输序列通过多个第一信道向目标设备依次发送每一子待传输数据。
在某些实施方式中,在按照传输序列依次将每一子待传输数据通过多个第一信道发送给目标设备时,存储介质还可以执行以下步骤:
将传输序列中当前排序第一的子待传输数据设定为当前子待传输数据;
通过多个第一信道向目标设备发送当前子待传输数据,其中,每一子待传输数据均通过每一第一信道发送一次;
接收目标设备返回的响应信息,其中,该响应信息由目标设备接收到当前子待传输数据后对当前子待传输数据进行校验后生成,并当任一当前子待传输数据校验成功时,返回成功响应信息,当任意当前子待传输数据均校验失败时,返回失败响应信息;
当接收到成功响应信息时,将设定为当前子待传输数据的子待传输数据从传输序列中删除,并在删除后执行将传输序列中排序第一的子待传输数据设定为当前子待传输数据的步骤;
当接收到失败响应信息时,确认多个当前可用的第二信道;
关闭当前的多个第一信道并将多个第二信道设定为第一信道,设定完成后执行通过多个第一信道向目标设备发送当前子待传输数据的步骤。
在本发明实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM,)、或者随机存取记忆体(Random Access Memory,RAM)等。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
需要说明的是,对本发明实施例的报文传输方法而言,本领域普通测试人员可以理解实现本发明实施例的报文传输方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在计算机设备的存储器中,并被该计算机设备内的至少一个处理器执行,在执行过程中可包括如报文传输方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。
对本发明实施例的报文传输装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。
以上对本发明实施例所提供的一种报文传输方法、存储介质及计算机设备进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (20)

  1. 一种报文传输方法,适用于第一设备,其中,包括:
    通过所述第一设备的第一端口接收报文;
    在接收报文的同时,通过第二端口向第二设备发送所述报文;
    对所述报文进行校验,得到校验结果;
    根据所述报文获取相应的目标数据,并将所述目标数据保存在缓存区;
    根据所述校验结果对所述缓存区内的目标数据进行相应的处理,并向目标设备发送所述缓存区内的待传输数据。
  2. 如权利要求1所述的报文传输方法,其中,根据所述报文获取相应的目标数据,包括:
    根据预设数据块大小建立一个窗口,并控制所述窗口在所述报文上滑动;
    基于所述窗口的滑动位置对所述报文进行数据处理,得到目标数据。
  3. 如权利要求2所述的报文传输方法,其中,基于所述窗口的滑动位置对所述报文进行数据处理,得到目标数据,包括:
    当所述窗口当前的滑动位置为第一预设位置时,在所述第一预设位置插入待插入数据,得到目标数据;或者
    当所述窗口当前的滑动位置为第二预设位置时,获取所述第二预设位置对应的待获取数据,得到目标数据。
  4. 如权利要求1所述的报文传输方法,其中,根据所述校验结果对所述缓存区内的目标数据进行相应的处理,包括:
    在报文校验失败时,清除所述缓存区内的目标数据。
  5. 如权利要求1所述的报文传输方法,其中,所述报文包括:校验信息,在得到校验结果之后,还包括:
    根据所述校验结果对所述报文中的校验信息进行更新。
  6. 如权利要求3所述的报文传输方法,其中,向目标设备发送所述缓存区内的待传输数据,包括:
    将所述缓存区内的待传输数据分割成多份子待传输数据;
    将所述多份子待传输数据排序形成传输序列;
    按照所述传输序列通过多个第一信道向目标设备依次发送每一子待传输数据。
  7. 如权利要求6所述的报文传输方法,其中,按照所述传输序列通过多个第一信道向目标设备依次发送每一子待传输数据,包括:
    将传输序列中当前排序第一的子待传输数据设定为当前子待传输数据;
    通过多个第一信道向目标设备发送当前子待传输数据,其中,每一子待传输数据均通过每一第一信道发送一次;
    接收目标设备返回的响应信息,其中,该响应信息由目标设备接收到当前子待传输数据后对当前子待传输数据进行校验后生成,并当任一当前子待传输数据校验成功时,返回成功响应信息,当任意当前子待传输数据均校验失败时,返回失败响应信息;
    当接收到成功响应信息时,将设定为当前子待传输数据的子待传输数据从传输序列中删除,并在删除后执行将传输序列中排序第一的子待传输数据设定为当前子待传输数据的步骤;
    当接收到失败响应信息时,确认多个当前可用的第二信道;
    关闭当前的多个第一信道并将所述多个第二信道设定为第一信道,设定完成后执行通过多个第一信道向目标设备发送当前子待传输数据的步骤。
  8. 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上运行时,使得所述计算机执行如下步骤:
    通过第一设备的第一端口接收报文;
    在接收报文的同时,通过第二端口向第二设备发送所述报文;
    对所述报文进行校验,得到校验结果;
    根据所述报文获取相应的目标数据,并将所述目标数据保存在缓存区;
    根据所述校验结果对所述缓存区内的目标数据进行相应的处理,并向目标设备发送所述缓存区内的待传输数据。
  9. 如权利要求8所述的存储介质,其中,根据所述报文获取相应的目标数据,包括:
    根据预设数据块大小建立一个窗口,并控制所述窗口在所述报文上滑动;
    基于所述窗口的滑动位置对所述报文进行数据处理,得到目标数据。
  10. 如权利要求9所述的存储介质,其中,基于所述窗口的滑动位置对所述报文进行数据处理,得到目标数据,包括:
    当所述窗口当前的滑动位置为第一预设位置时,在所述第一预设位置插入待插入数据,得到目标数据;或者
    当所述窗口当前的滑动位置为第二预设位置时,获取所述第二预设位置对应的待获取数据,得到目标数据。
  11. 如权利要求8所述的存储介质,其中,根据所述校验结果对所述缓存区内的目标数据进行相应的处理,包括:
    在报文校验失败时,清除所述缓存区内的目标数据。
  12. 如权利要求8所述的存储介质,其中,所述报文包括:校验信息,在得到校验结果之后,还包括:
    根据所述校验结果对所述报文中的校验信息进行更新。
  13. 如权利要求10所述的存储介质,其中,向目标设备发送所述缓存区内的待传输数据,包括:
    将所述缓存区内的待传输数据分割成多份子待传输数据;
    将所述多份子待传输数据排序形成传输序列;
    按照所述传输序列通过多个第一信道向目标设备依次发送每一子待传输数据。
  14. 如权利要求13所述的存储介质,其中,按照所述传输序列通过多个第一信道向目标设备依次发送每一子待传输数据,包括:
    将传输序列中当前排序第一的子待传输数据设定为当前子待传输数据;
    通过多个第一信道向目标设备发送当前子待传输数据,其中,每一子待传输数据均通过每一第一信道发送一次;
    接收目标设备返回的响应信息,其中,该响应信息由目标设备接收到当前子待传输数据后对当前子待传输数据进行校验后生成,并当任一当前子待传输数据校验成功时,返回成功响应信息,当任意当前子待传输数据均校验失败时,返回失败响应信息;
    当接收到成功响应信息时,将设定为当前子待传输数据的子待传输数据从传输序列中删除,并在删除后执行将传输序列中排序第一的子待传输数据设定为当前子待传输数据的步骤;
    当接收到失败响应信息时,确认多个当前可用的第二信道;
    关闭当前的多个第一信道并将所述多个第二信道设定为第一信道,设定完成后执行通过多个第一信道向目标设备发送当前子待传输数据的步骤。
  15. 一种计算机设备,包括处理器和存储器,所述存储器有计算机程序,其中,所述处理器通过调用所述计算机程序,用于执行如下步骤:
    通过第一设备的第一端口接收报文;
    在接收报文的同时,通过第二端口向第二设备发送所述报文;
    对所述报文进行校验,得到校验结果;
    根据所述报文获取相应的目标数据,并将所述目标数据保存在缓存区;
    根据所述校验结果对所述缓存区内的目标数据进行相应的处理,并向目标设备发送所述缓存区内的待传输数据。
  16. 如权利要求15所述的计算机设备,其中,根据所述报文获取相应的目标数据,包括:
    根据预设数据块大小建立一个窗口,并控制所述窗口在所述报文上滑动;
    基于所述窗口的滑动位置对所述报文进行数据处理,得到目标数据。
  17. 如权利要求16所述的计算机设备,其中,基于所述窗口的滑动位置对所述报文进行数据处理,得到目标数据,包括:
    当所述窗口当前的滑动位置为第一预设位置时,在所述第一预设位置插入待插入数据,得到目标数据;或者
    当所述窗口当前的滑动位置为第二预设位置时,获取所述第二预设位置对应的待获取数据,得到目标数据。
  18. 如权利要求15所述的计算机设备,其中,所述报文包括:校验信息,在得到校验结果之后,还包括:
    根据所述校验结果对所述报文中的校验信息进行更新。
  19. 如权利要求17所述的计算机设备,其中,向目标设备发送所述缓存区内的待传输数据,包括:
    将所述缓存区内的待传输数据分割成多份子待传输数据;
    将所述多份子待传输数据排序形成传输序列;
    按照所述传输序列通过多个第一信道向目标设备依次发送每一子待传输数据。
  20. 如权利要求19所述的计算机设备,其中,按照所述传输序列通过多个第一信道向目标设备依次发送每一子待传输数据,包括:
    将传输序列中当前排序第一的子待传输数据设定为当前子待传输数据;
    通过多个第一信道向目标设备发送当前子待传输数据,其中,每一子待传输数据均通过每一第一信道发送一次;
    接收目标设备返回的响应信息,其中,该响应信息由目标设备接收到当前子待传输数据后对当前子待传输数据进行校验后生成,并当任一当前子待传输数据校验成功时,返回成功响应信息,当任意当前子待传输数据均校验失败时,返回失败响应信息;
    当接收到成功响应信息时,将设定为当前子待传输数据的子待传输数据从传输序列中删除,并在删除后执行将传输序列中排序第一的子待传输数据设定为当前子待传输数据的步骤;
    当接收到失败响应信息时,确认多个当前可用的第二信道;
    关闭当前的多个第一信道并将所述多个第二信道设定为第一信道,设定完成后执行通过多个第一信道向目标设备发送当前子待传输数据的步骤。
PCT/CN2018/109883 2018-01-31 2018-10-11 报文传输方法、存储介质及计算机设备 WO2019148884A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810094657.7A CN108270520B (zh) 2018-01-31 2018-01-31 报文传输方法、装置、存储介质及计算机设备
CN201810094657.7 2018-01-31

Publications (1)

Publication Number Publication Date
WO2019148884A1 true WO2019148884A1 (zh) 2019-08-08

Family

ID=62777203

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/109883 WO2019148884A1 (zh) 2018-01-31 2018-10-11 报文传输方法、存储介质及计算机设备

Country Status (2)

Country Link
CN (1) CN108270520B (zh)
WO (1) WO2019148884A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511536A (zh) * 2020-11-27 2021-03-16 北京经纬恒润科技股份有限公司 一种通信方法及通信系统
CN114157401A (zh) * 2021-12-03 2022-03-08 中国人民解放军国防科技大学 一种支持长短两种报文格式的重传缓冲装置
CN114268412A (zh) * 2021-11-18 2022-04-01 岚图汽车科技有限公司 车辆通信方法、装置、存储介质及设备
CN115834259A (zh) * 2023-02-21 2023-03-21 广东广宇科技发展有限公司 一种高危通信线路数据安全传输方法

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270520B (zh) * 2018-01-31 2020-08-28 杜民 报文传输方法、装置、存储介质及计算机设备
CN109714145B (zh) * 2018-12-29 2021-09-21 杭州迪普科技股份有限公司 一种多通道数据对齐的方法及装置
CN112436972B (zh) * 2019-08-26 2022-08-05 丰鸟航空科技有限公司 数据处理方法、装置、网络设备及计算机可读存储介质
CN111586154B (zh) * 2020-04-30 2022-08-05 北京百度网讯科技有限公司 基于传输信道的数据存储方法、装置、设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471756A (zh) * 2007-12-27 2009-07-01 上海无线通信研究中心 集中式调度的多跳中继下行系统中的harq方法
US9356738B1 (en) * 2010-06-15 2016-05-31 Google Inc. Adaptive data unit transmission and acknowledgment
CN106302364A (zh) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 代理方法、辅助代理方法与设备
CN107104782A (zh) * 2017-04-15 2017-08-29 深圳市民泰科电子有限公司 数据传输方法及装置
CN108270520A (zh) * 2018-01-31 2018-07-10 杜民 报文传输方法、装置、存储介质及计算机设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465813B (zh) * 2009-01-08 2011-09-07 杭州华三通信技术有限公司 一种主备链路切换方法、环形组网及交换设备
CN102752198B (zh) * 2012-06-21 2014-10-29 北京星网锐捷网络技术有限公司 多核报文转发方法、多核处理器及网络设备
CN103501353B (zh) * 2013-10-23 2017-12-12 北京经纬恒润科技有限公司 一种数据中继传输方法、装置及系统
US9083677B1 (en) * 2013-12-19 2015-07-14 Fortinet, Inc. Human user verification of high-risk network access

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471756A (zh) * 2007-12-27 2009-07-01 上海无线通信研究中心 集中式调度的多跳中继下行系统中的harq方法
US9356738B1 (en) * 2010-06-15 2016-05-31 Google Inc. Adaptive data unit transmission and acknowledgment
CN106302364A (zh) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 代理方法、辅助代理方法与设备
CN107104782A (zh) * 2017-04-15 2017-08-29 深圳市民泰科电子有限公司 数据传输方法及装置
CN108270520A (zh) * 2018-01-31 2018-07-10 杜民 报文传输方法、装置、存储介质及计算机设备

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511536A (zh) * 2020-11-27 2021-03-16 北京经纬恒润科技股份有限公司 一种通信方法及通信系统
CN114268412A (zh) * 2021-11-18 2022-04-01 岚图汽车科技有限公司 车辆通信方法、装置、存储介质及设备
CN114268412B (zh) * 2021-11-18 2023-10-13 岚图汽车科技有限公司 车辆通信方法、装置、存储介质及设备
CN114157401A (zh) * 2021-12-03 2022-03-08 中国人民解放军国防科技大学 一种支持长短两种报文格式的重传缓冲装置
CN114157401B (zh) * 2021-12-03 2024-01-23 中国人民解放军国防科技大学 一种支持长短两种报文格式的重传缓冲装置
CN115834259A (zh) * 2023-02-21 2023-03-21 广东广宇科技发展有限公司 一种高危通信线路数据安全传输方法
CN115834259B (zh) * 2023-02-21 2023-04-18 广东广宇科技发展有限公司 一种高危通信线路数据安全传输方法

Also Published As

Publication number Publication date
CN108270520A (zh) 2018-07-10
CN108270520B (zh) 2020-08-28

Similar Documents

Publication Publication Date Title
WO2019148884A1 (zh) 报文传输方法、存储介质及计算机设备
US6526446B1 (en) Hardware only transmission control protocol segmentation for a high performance network interface card
US7406481B2 (en) Using direct memory access for performing database operations between two or more machines
CN111930676B (zh) 多处理器间的通信方法、装置、系统及存储介质
US8352231B2 (en) System for performing a co-simulation and/or emulation of hardware and software
US20230118176A1 (en) Data transmission method and apparatus, computer-readable storage medium, electronic device, and computer program product
WO2019057005A1 (zh) 数据校验的方法、装置以及网卡
US7701973B2 (en) Processing receive protocol data units
CN114710224A (zh) 帧同步方法及装置、计算机可读介质、电子设备
US11032398B1 (en) Kernel multiplexing system of communications
EP2846470A1 (en) A method of mobile terminal internal communications
WO2021134418A1 (zh) 一种数据校验方法及装置
CN108768778B (zh) 一种网络时延计算方法、装置、设备及存储介质
CN107911372B (zh) 一种基于逻辑器件实现串口设备接入以太网的方法和装置
US20050144339A1 (en) Speculative processing of transaction layer packets
US20040170432A1 (en) Method and system for multi-initiator support to streaming devices in a fibre channel network
CN110134419B (zh) 一种双面柜的系统升级方法、装置、设备及存储介质
US8554955B2 (en) Systems and methods for avoiding host level busy and retry latencies
US11199986B2 (en) System and method for data migration across storage systems
CN109800202B (zh) 一种基于pcie的数据传输系统、方法及装置
WO2022227615A1 (zh) 数据升级方法、数据升级装置和可读存储介质
US20140204958A1 (en) Preprocessing unit for network data
CN110896391B (zh) 一种报文处理方法和装置
US10218468B2 (en) USB device, data transfer system and data transfer method
CN108243323B (zh) 一种软件升级方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18904236

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 04.11.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18904236

Country of ref document: EP

Kind code of ref document: A1