CN115714991A - Method, apparatus and storage medium for transmitting time-resolved network packets - Google Patents

Method, apparatus and storage medium for transmitting time-resolved network packets Download PDF

Info

Publication number
CN115714991A
CN115714991A CN202110970319.7A CN202110970319A CN115714991A CN 115714991 A CN115714991 A CN 115714991A CN 202110970319 A CN202110970319 A CN 202110970319A CN 115714991 A CN115714991 A CN 115714991A
Authority
CN
China
Prior art keywords
packet
tan
broken
data
sequence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110970319.7A
Other languages
Chinese (zh)
Inventor
韦安妮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110970319.7A priority Critical patent/CN115714991A/en
Publication of CN115714991A publication Critical patent/CN115714991A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a time-transparent network data packet transmission method, equipment and a storage medium. The method comprises the following steps: determining a corresponding broken packet serial number according to the generation sequence of the TAN broken packets of the TAN data packets; sending a TAN broken packet, wherein the head of the TAN broken packet carries a broken packet serial number; the broken packet sequence number occupies at least two bits and is used for uniquely indicating the broken packet sequence of the corresponding TAN broken packet; the TAN packet interruption is a data packet generated after being interrupted based on a preemptive transmission mechanism in the process of sending the TAN data packet. The packet-breaking sequence number of the TAN packet-breaking at least occupies two bits and is used for uniquely indicating the packet-breaking sequence of the corresponding TAN packet-breaking, so that the absolute packet-breaking sequence of the TAN packet-breaking can be determined based on the head of the TAN packet-breaking, the disorder problem of the TAN packet-breaking in the wireless transmission environment can be effectively avoided, and the transmission performance of the TAN data packet in the wireless transmission environment is improved.

Description

Method, apparatus and storage medium for transmitting time-resolved network packets
Technical Field
The present application relates to the field of communications, and in particular, to a method, an apparatus, and a storage medium for transmitting a time-transparent network packet.
Background
In the related art, packet break transmission of TAN (Time Aware Network ) is performed according to a sequence of a packet break sequence number 0 — >1 — >0 — >1 — >0.. To determine a sequence of a packet PDU (Protocol Data Unit) during reassembly, and then reassembles the received packet break PDU. Most of the existing TANs are in wired transmission, and packet breaking and recombination are sequentially transmitted on adjacent TAN switches; however, in a wireless transmission environment, if the broken packet PDU is out of order or loses packets during transmission, cyclic Redundancy Check (CRC) does not pass when the broken packet PDU is reassembled, and a device responsible for the broken packet PDU reassembly cannot determine a reason of failing (out of order, packet loss, bit error, or broken packet is not transmitted), so that data reassembly failure or reassembly error is caused, and TAN service application is affected.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, and a storage medium for transmitting a time-transparent network packet, which aim to improve transmission performance of a TAN packet in a wireless transmission environment.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for transmitting a time-aware network packet, where the method is applied to a TAN switching device, and the method includes:
determining a corresponding broken packet serial number according to the generation sequence of the TAN broken packets of the TAN data packets;
sending the TAN broken packet, wherein the head of the TAN broken packet carries the broken packet serial number;
wherein, the broken packet sequence number occupies at least two bits and is used for uniquely indicating the broken packet sequence of the corresponding TAN broken packet; and the TAN packet interruption is a data packet generated after being interrupted based on a preemptive transmission mechanism in the process of sending the TAN data packet.
In the above scheme, the packet break sequence number further has a dynamic indication mode that dynamically indicates a packet break sequence of the corresponding TAN packet break by using one bit; and the head of the TAN broken packet also carries a broken packet sequence bit identifier used for indicating the broken packet sequence number to adopt a dynamic indication or unique indication mode.
In the above scheme, the packet break sequence bit identifier and/or at least part of the packet break sequence number occupy a reserved field of the head of the TAN packet break.
In the foregoing solution, the method further includes:
receiving a plurality of TAN broken packets corresponding to the same TAN data packet, wherein the head of each TAN broken packet carries the broken packet serial number;
determining a recombination sequence of each TAN broken packet based on the broken packet sequence number of each TAN broken packet;
and restoring the TAN data packet based on the reorganization sequence.
In a second aspect, an embodiment of the present application provides a method for transmitting a time-transparent network packet, which is applied to a network element of a wireless network, and the method includes:
receiving a plurality of TAN broken packets which are sent by TAN switching equipment and correspond to the same TAN data packet, wherein the head of each TAN broken packet carries a broken packet serial number;
encapsulating the received TAN broken packet into an IP (Internet Protocol) message and determining a header field of the IP message according to the head of the TAN broken packet;
sending the IP message;
the packet-break sequence number dynamically indicates the packet-break sequence of the corresponding TAN packet-break by using one bit, and the header field of the IP message can indicate the packet-break sequence of the corresponding TAN packet-break.
In the foregoing solution, the determining a header field of the IP packet according to the header of the TAN packet break includes:
determining the identification of the IP message according to the TAN data frame identification of the TAN packet interruption;
determining the mark of the IP message according to the packet break serial number of the TAN packet break;
and determining the slice offset of the IP message according to the length of the TAN broken packet.
In the above scheme, the method further comprises:
receiving a plurality of IP messages corresponding to the same TAN data packet, wherein a header field of the IP message corresponding to the TAN broken packet of the TAN data packet is determined according to a broken packet serial number of the TAN broken packet;
determining the recombination sequence of each TAN broken packet based on the header field of each IP message;
restoring the TAN data packet based on the reorganization sequence;
and sending the TAN data packet to the TAN switching equipment.
In a third aspect, an embodiment of the present application provides a method for transmitting a time-aware network packet, where the method is applied to a TAN switching device, and the method includes:
and in the wireless transmission mode, the transmission of the TAN data packet based on the preemptive transmission mechanism is stopped.
In the foregoing solution, the terminating transmitting the TAN data packet based on the preemptive transmission mechanism includes:
if the inlet of the TAN switching device receives a first TAN data packet and the outlet of the TAN switching device is transmitting a second TAN data packet, interrupting the transmission of the second TAN data packet, preferentially sending the first TAN data packet and retransmitting the complete second TAN data packet after sending the first TAN data packet.
In the above scheme, the method further comprises:
and terminating the transmission of the TAN data packet based on the preemptive transmission mechanism under the wireless transmission mode based on the local policy configuration or the policy configuration sent by the TAN system.
In a fourth aspect, an embodiment of the present application provides a device for transmitting a time-resolved network packet, where the device is applied to a TAN switching device, and the device includes:
the determining module is used for determining a corresponding broken packet serial number of the TAN broken packet of the TAN data packet based on the generating sequence;
a sending module, configured to send the TAN packet break, where a header of the TAN packet break carries the packet break sequence number;
the broken packet sequence number occupies at least two bits and is used for uniquely indicating the broken packet sequence of the corresponding TAN broken packet; and the TAN packet interruption is a data packet generated after being interrupted based on a preemptive transmission mechanism in the process of sending the TAN data packet.
In a fifth aspect, an embodiment of the present application provides a device for transmitting a time-transparent network packet, where the device is applied to a network element of a wireless network, and the device includes:
a receiving module, configured to receive multiple TAN broken packets corresponding to the same TAN data packet sent by a TAN switching device, where a head of each TAN broken packet carries a broken packet sequence number;
a determining module, configured to encapsulate the received TAN packet break into an IP packet and determine a header field of the IP packet according to a header of the TAN packet break;
a sending module, configured to send the IP packet;
the packet-break sequence number dynamically indicates the packet-break sequence of the corresponding TAN packet-break by using one bit, and the header field of the IP message can indicate the packet-break sequence of the corresponding TAN packet-break.
In a sixth aspect, an embodiment of the present application provides a device for transmitting a time-resolved network packet, where the device is applied to a TAN switching device, and the device includes:
and the control module is used for stopping transmitting the TAN data packet based on the preemptive transmission mechanism in the wireless transmission mode.
In a seventh aspect, an embodiment of the present application provides a TAN switching device, including: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor, when running the computer program, is configured to perform the steps of the method according to the first aspect or the third aspect of the embodiments of the present application.
In an eighth aspect, an embodiment of the present application provides a network device, including: a processor and a memory for storing a computer program operable on the processor, wherein the processor, when executing the computer program, is adapted to perform the steps of the method according to the second aspect of the embodiments of the present application.
In a ninth aspect, the present application provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the method in any one of the first to third aspects of the present application are implemented.
According to the technical scheme provided by the embodiment of the application, the packet breaking sequence number of the TAN broken packet at least occupies two bits and is used for uniquely indicating the corresponding packet breaking sequence of the TAN broken packet, so that the absolute packet breaking sequence of the TAN broken packet can be determined based on the head of the TAN broken packet, the disorder problem of the TAN broken packet in the wireless transmission environment can be effectively avoided, and the transmission performance of the TAN data packet in the wireless transmission environment is improved.
According to the technical scheme provided by the embodiment of the application, the network element of the wireless network encapsulates the received TAN broken packets into the IP message, determines the header field of the IP message according to the header of the TAN broken packets, and then sends the IP message, so that the network element receiving the IP message can determine the recombination sequence of each TAN broken packet based on the header field of the IP message, further restores the TAN data packets based on the recombination sequence, and sends the restored TAN data packets to the TAN switching equipment, the disorder problem of the TAN broken packets in the wireless transmission environment can be effectively avoided, and the transmission performance of the TAN data packets in the wireless transmission environment is further improved.
According to the technical scheme provided by the embodiment of the application, the TAN switching equipment can be configured in a strategy, the transmission of the TAN data packet based on the preemptive transmission mechanism is stopped in a wireless transmission mode, the disorder problem of the TAN broken packet in the wireless transmission environment can be effectively avoided, and the transmission performance of the TAN data packet in the wireless transmission environment is further improved.
Drawings
FIG. 1 is a diagram illustrating a structure of a TAN PDU in the related art;
fig. 2 is a flowchart illustrating a method for transmitting a TAN data packet according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a TAN PDU in an application example of the present application;
FIG. 4 is a diagram illustrating a structure of a TAN PDU in another exemplary application of the present application;
FIG. 5 is a diagram illustrating a structure of a TAN PDU in another exemplary application of the present application;
FIG. 6 is a schematic structural diagram of a TAN PDU in another application example of the present application;
fig. 7 is a flowchart illustrating a method for transmitting a TAN data packet according to another embodiment of the present application;
fig. 8 is a schematic diagram illustrating a principle of performing IP packet encapsulation on a TAN packet in an application example of the present application;
fig. 9 is a schematic diagram of a transmission flow of a TAN packet break in a 5G network in an application example of the present application;
fig. 10 is a flowchart illustrating a TAN data packet transmission method according to another embodiment of the present application;
fig. 11 is a schematic diagram illustrating a principle of issuing configuration of a TAN system control unit in an application example of the present application;
FIG. 12 is a schematic diagram of a transmission apparatus for a time-resolved network packet according to an embodiment of the present application;
FIG. 13 is a schematic diagram of a transmission apparatus for time-resolved network packets according to another embodiment of the present application;
FIG. 14 is a schematic diagram of a transmission apparatus for time-resolved network packets according to yet another embodiment of the present application;
fig. 15 is a schematic structural diagram of a TAN switching device according to an embodiment of the present application;
fig. 16 is a schematic structural diagram of a network device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
Before further detailed description of the embodiments of the present application, terms and expressions referred to in the embodiments of the present application are explained, and the terms and expressions referred to in the embodiments of the present application are applicable to the following explanations:
in the related art, a TAN packet is a packet of a brand-new time-based industrial communication technology, and data is processed by introducing a clock synchronization technology into a TAN system and encapsulating a TAN frame header before a standard ethernet frame header field to implement various time identifiers of a destination switch, a source switch, data priority, a data sequence number, and data. The TAN technology has good compatibility with various industrial protocols used by current industrial networks because of encapsulation of standard ethernet frames. Based on observability of the TAN data packet, namely that a network can know a data source, a data destination, data content and data time, the TAN technology is well applied to multiple fields of the industrial internet, such as scenes of control instruction synchronous transmission, data redundancy backup, data monitoring and the like.
Illustratively, the TAN PDU is shown in fig. 1 and consists of a TAN header and a standard GB/t15629.3PDU, wherein the TAN header consists of a source TAN switch ID, a destination TAN switch ID, a reservation, path information, a data frame type, a reservation, a data frame ID, a TAN PDU length, a broken packet identifier, a broken packet sequence number, a switch hop count, time information, a static checksum, and a dynamic checksum. The TAN header has 16 bytes.
In a TAN domain, on the basis of traditional priority, a dual-channel transmission mechanism can be added: the fast channel and the standard channel respectively correspond to the fast data frame and the standard data frame. The TAN PDU can be distinguished by the identification of the data frame type field, so that two data types of different channels are transmitted in a mixed mode, and the TAN switching equipment carries out differential transmission on the data types of the different channels. For example, a data frame type of 01 is a fast data frame identifying that the data frame is transmitted in the fast channel of TAN, and a data frame type of 10 is a standard data frame identifying that the data frame is transmitted in the standard channel of TAN. The priority of the fast data frames transmitted in the fast channel is higher than that of the standard data frames transmitted in the standard channel.
The TAN PDU transmitted in the standard channel has two formats, one is an un-truncated data frame (corresponding to the standard PDU, the data frame type is 10, and the packet-broken identification field is 0), and the other is a truncated data frame (corresponding to the packet-broken PDU, the data frame type is 10, the packet-broken identification field is 1, and the packet-broken sequence number is 0 or 1).
When the fast PDU (i.e. fast data frame) enters a TAN switching device, if the egress has no standard data transmission, the fast PDU is transmitted normally. If the egress is transmitting a standard PDU (i.e., a standard data frame), the TAN switch performs preemption, truncates the standard PDU, and then transmits a fast PDU.
When a TAN switch sends a fast PDU, the egress port is transmitting a standard PDU and the standard PDU has been sent with a data length (number of bytes) greater than or equal to the set data length (number of bytes) specified in GB/T15629.3, then preemption is performed. The preempted standard PDU will be truncated and the remaining data that is truncated will be repackaged as a packet-broken PDU. When the packet-breaking PDU is transmitted, the PDU can still be cut off by the rapid PDU, and the rest data is still packaged according to the packet-breaking PDU until the transmission of the standard PDU is completed completely, and the seized times are not limited. And in the receiving terminal TAN exchange equipment, carrying out data recombination according to the identification of the broken packet PDU to restore the broken packet PDU into the standard PDU.
Since the standard PDU may be truncated several times during transmission, a plurality of fragmented PDUs are formed. And the TAN exchange equipment at the receiving end performs the recombination and restoration of the standard PDU data according to the TAN head of the standard PDU and the identification of the broken packet PDU:
when the standard PDU is intercepted for the first time, the standard data PDU frame is divided into two parts, one part is the part which is already transmitted, the other part is the re-encapsulated broken packet PDU, the broken packet identifier in the broken packet PDU is set to be 1, and the broken packet sequence number is set to be 1 (the value of the position of the head part of the source TAN is inverted);
and after the rapid PDU is transmitted, the packet-broken PDU is recovered to be transmitted, if a new rapid PDU enters a TAN switching device or module, the preemption action is continued according to the preemption flow. The broken packet PDU is truncated into a new broken packet PDU. The broken packet PDU frame is divided into two parts, one part is the part which is already transmitted, the other part is the re-encapsulated broken packet PDU, the broken packet identifier in the broken packet PDU is set to be 1, the broken packet sequence number is set to be 0 (the position value of the head part of the source TAN is inverted);
the receiving-end TAN switching device may determine which broken packet PDUs belong to the same standard PDU according to the TAN header, for example, each PDU belonging to the same standard PDU may be determined according to the data frame ID. Judging a sequence when the packet breaking PDU is recombined according to the packet breaking sequence number 0-1-0, receiving the packet breaking PDU to recombine, and calculating the CRC value of the recombined PDU (assuming that CRC (calculation) represents the value after CRC calculation). Whether the reassembly is completed is judged by the value of CRC (calculation). And comparing the CRC (calculation) of the actual data with the CRC in the broken packet PDU, if the CRC is different from the CRC in the broken packet PDU, continuing to wait for the next broken packet PDU, and taking the CRC (calculation) calculated this time as the initial value of the next CRC (calculation) until the standard PDU is recombined when the recombined data CRC (calculation) is equal to the CRC carried by the broken packet PDU. Exemplary CRC comparison procedure, as shown in table 1.
TABLE 1
Figure BDA0003225699660000081
However, in a wireless transmission environment, if the packet-broken PDU is out of order or loses packets during transmission, the CRC does not pass during the reassembly of the packet-broken PDU, and the device responsible for the reassembly of the packet-broken PDU cannot determine the reason of failure (out of order, packet loss, bit error, or incomplete packet transmission), which causes data reassembly failure or reassembly error, and affects the TAN service application.
Based on this, in various embodiments of the present application, a method for transmitting a TAN data packet is provided, which can effectively avoid the problem of out-of-order of TAN data packets in a wireless transmission environment, thereby improving the transmission performance of the TAN data packets in the wireless transmission environment.
As shown in fig. 2, an embodiment of the present application provides a method for transmitting a time-aware network packet, which is applied to a TAN switching device, and the method includes:
step 201, determining a corresponding packet break serial number of the TAN break of the TAN data packet based on a generation sequence;
step 202, sending the TAN broken packet, wherein the head of the TAN broken packet carries the broken packet serial number; the broken packet sequence number occupies at least two bits and is used for uniquely indicating the broken packet sequence of the corresponding TAN broken packet; and the TAN packet interruption is a data packet generated after being interrupted based on a preemptive transmission mechanism in the process of sending the TAN data packet.
Here, the preemptive transmission mechanism may be understood as performing differentiated transmission based on the type of the data frame of the TAN data packet, for example, taking the TAN data packet with the data frame type 01 as a fast data frame, and taking the TAN data packet with the data frame type 10 as a standard data frame, where the priority of the fast data frame is higher than that of the standard data frame, and when the fast data frame is transmitted, if the TAN switching device is in the standard data frame, the standard data frame may be truncated, and the remaining data that is truncated may be re-encapsulated according to the packet-broken PDU, so as to generate the TAN packet-broken. It can be understood that the TAN packet may be further truncated by the fast data frame to be transmitted during the transmission process, and the remaining data that is retained may generate a new TAN packet again, so that there are two or more TAN packets in a standard data frame. If the packet break of TAN occurs out-of-order problem in the wireless transmission environment, it may cause data reassembly failure or reassembly error, and affect TAN service application.
In the embodiment of the application, the packet breaking sequence number of the TAN packet breaking at least occupies two bits and is used for uniquely indicating the packet breaking sequence of the corresponding TAN packet breaking, so that the absolute packet breaking sequence of the TAN packet breaking can be determined based on the head of the TAN packet breaking, the disorder problem of the TAN packet breaking in the wireless transmission environment can be effectively avoided, and the transmission performance of the TAN data packet in the wireless transmission environment is improved.
It should be noted that, the bit number of the broken packet sequence number may be set according to an application scenario, for example, in an actual use process, if the maximum number of broken packets in the actual scenario is 4, 2bits may be used to identify the broken packet sequence number field of the TAN header, for example, 00, 01, 10, and 11 are used to respectively represent sequentially generated TAN broken packets.
In an application example, the bit extension of the broken packet sequence number of the TAN header is as shown in fig. 3. Illustratively, the bit number n of the TAN header interrupt packet sequence number is 6 bits, and the TAN interrupt packet is used for reassembling the received packet-broken PDU according to the sequence of the packet-broken sequence number 000000- > 000001- > 000010- >000011. It should be noted that, since the ethernet frame data field portion is 46 bytes at the minimum and 1500 bytes at the maximum, the sequence requirement of the maximum packet break generation of the maximum ethernet frame data packet can be completely satisfied by the 6-bit packet break sequence number.
Illustratively, the broken packet sequence number further has a dynamic indication mode of dynamically indicating the broken packet sequence of the corresponding TAN broken packet by using one bit; and the head of the TAN broken packet also carries a broken packet sequence bit identifier used for indicating that the broken packet sequence number adopts a dynamic indication or unique indication mode.
It is understood that the TAN header of the TAN data packet may retain a dynamic indication manner for dynamically indicating the sequence of the fragmented packets based on one bit, and thus, may be compatible with a manner for reassembling fragmented PDUs based on a fragmented packet sequence number of one bit.
Illustratively, the packet break sequence bit identifier and/or at least part of the packet break sequence number occupy a reserved field of a header of the TAN packet break. Therefore, the reserved field of the TAN header can be fully utilized, and the overhead of the extra TAN header is reduced.
In an application example, the format of the TAN PDU is shown in fig. 4. The method has the advantages that the packet interruption sequence bit identification field is added to the TAN head, and the fact that the field behind the packet interruption sequence bit identification field is a packet interruption sequence number with 1bit or a packet interruption sequence number with more than 1bit is indicated. If the bit identification field of the broken packet sequence is 0, the sequence of the broken packet sequence number is 1bit, and the TAN broken packet is a sequence when the broken packet PDU is recombined according to the broken packet sequence number 0-1-0. If the packet break sequence bit identification field is 1, for example, 6 bits are used to identify the packet break sequence, the packet break sequence number is 6 bits, the TAN packet break is determined according to the packet break sequence number 000000- > 000001- > 000010- >000011.
It is understood that the manner shown in fig. 4 is compatible with 1-bit and multiple-bit broken packet sequence number field identifications compared to the manner shown in fig. 3.
In an application example, the format of the TAN PDU is shown in fig. 5. It is understood that on the basis of fig. 4, the broken packet sequence bit identification field may be replaced with a reserved field indicating whether the broken packet sequence number field is a 1-bit broken packet sequence number or a broken packet sequence number more than 1 bit. If the reserved field is 0, the packet breaking sequence number is 1bit, the TAN packet breaking is carried out according to the packet breaking sequence number 0- > 1- >0. If the reserved field is 1, for example, 6 bits are used for identifying the packet breaking sequence, the packet breaking sequence number is 6 bits, the TAN packet breaking is a sequence when the packet breaking PDU is recombined according to the packet breaking sequence number of 000000- > 000001- > 000010- >000011. Compared with the method shown in fig. 4, the existing reserved field can be utilized, and the packet-breaking sequence bit identification field does not need to be additionally added, so that the overhead of the TAN header is saved.
In an application example, the format of the TAN PDU is shown in fig. 6. And using the first reserved field as a broken packet sequence bit identification field to indicate whether the broken packet sequence number field is a broken packet sequence number of 1bit or a broken packet sequence number more than 1 bit. If the first reserved field is 0, the packet-broken sequence number is 1bit, and the TAN packet-broken sequence is judged according to the packet-broken sequence number 0- > 1- >0. If the first reserved field is 1, it indicates that the packet break sequence number field is more than 1bit, and the second reserved field is used to identify the packet break sequence number, for example, 6bit is used to identify the packet break sequence number, which identifies that the packet break sequence number is 6bit, TAN packet break is according to the packet break sequence number 000000- > 000001- > 000010- >000011. Compared with the method shown in fig. 5, the existing reserved field can be further utilized, and the field size of the TAN header does not need to be changed, i.e., an additional field does not need to be added to the TAN header.
Illustratively, when the TAN switching device receives the TAN packet, the method further includes:
receiving a plurality of TAN broken packets corresponding to the same TAN data packet, wherein the head of each TAN broken packet carries the broken packet serial number;
determining the reassembly sequence of each TAN packet break based on the packet break sequence number of each TAN packet break;
and restoring the TAN data packet based on the reorganization sequence.
It can be understood that, the broken packet sequence number of the embodiment of the present application occupies at least two bits, and can uniquely indicate the broken packet order of the corresponding TAN broken packet, so that the absolute broken packet order of the TAN broken packet can be determined based on the header of the TAN broken packet, and taking the broken packet sequence number of 6 bits as an example, the sequence when the broken packet PDU is reassembled can be determined according to the broken packet sequence number 000000- > 000001- > 000010- >000011. Therefore, the problem of disorder of the TAN broken packets in the wireless transmission environment can be effectively avoided, and the transmission performance of the TAN data packets in the wireless transmission environment is improved.
In some embodiments, the TAN packet is transmitted between the sending-side TAN switching device and the receiving-side TAN switching device via a wireless network, for example, the TAN packet sent by the sending-side TAN switching device is received by an ingress network element of the wireless network and sent to the receiving-side TAN switching device by an egress network element of the wireless network.
Based on this, an embodiment of the present application provides a method for transmitting a time-transparent network packet, which is applied to a network element of a wireless network, and as shown in fig. 7, the method includes:
step 701, receiving multiple TAN broken packets corresponding to the same TAN data packet sent by the TAN switching device, where a head of each TAN broken packet carries a broken packet sequence number.
Step 702, encapsulating the received TAN packet break into an IP packet and determining a header field of the IP packet according to a header of the TAN packet break.
Step 703, sending the IP packet; and the packet breaking sequence number dynamically indicates the corresponding packet breaking sequence of the TAN packet breaking by adopting one bit, and the header field of the IP message can indicate the corresponding packet breaking sequence of the TAN packet breaking.
Illustratively, the ingress network element receives a TAN data packet sent by a sending-end TAN switching device, where the sending-end TAN switching device may transmit a packet-breaking PDU based on the foregoing preemption transmission mechanism, and the packet-breaking PDU may adopt a dynamic indication manner, that is, a bit is adopted to dynamically indicate a packet-breaking sequence of the corresponding TAN packet-breaking, so that improvement on a header encoding manner of the TAN data packet may be omitted.
It can be understood that, the ingress network element encapsulates the received TAN packet fragment into an IP packet and determines a header field of the IP packet according to the header of the TAN packet fragment, specifically, determines an IP header field of the encapsulated IP packet according to a packet fragment order of the TAN packet fragment determined by a packet fragment sequence number, so that the IP header field can indicate a packet fragment order of the TAN packet fragment correspondingly. Then, the ingress network element sends the IP packet to the egress network element, and the egress network element may restore the TAN packet based on the reassembly sequence determined based on the IP header field of the received IP packet, and send the restored TAN packet to the receiving-end TAN switching device. The problem of disorder of the TAN broken packets in the wireless transmission environment can be effectively avoided, and the transmission performance of the TAN data packets in the wireless transmission environment is improved.
Exemplarily, the determining a header field of the IP packet according to the header of the TAN packet break includes:
determining the identification of the IP message according to the TAN data frame identification of the TAN packet interruption;
determining the mark of the IP message according to the packet breaking serial number of the TAN packet breaking;
and determining the slice offset of the IP message according to the length of the TAN broken packet.
In an application example, a schematic diagram of the principle of IP packet encapsulation for a TAN packet is shown in fig. 8.
The following describes the fields of the IP header:
version: the version of the IP protocol, for example, the IP protocol version number may be 4 and the next generation IP protocol version number 6.
Header length: the length of the IP header. The sum of the length of the fixed part (20 bytes) and the length of the variable part. Accounting for 4 bits in total. Maximum 1111, 15 in 10, means that the maximum length of the IP header may be 15 32bits (4 bytes), that is, the maximum length may be 15 × 4=60 bytes, the length of the variable portion is maximum 40 bytes except the length of the fixed portion which is 20 bytes.
Service type: type Of Service.
Total bit length: total length of IP message. The sum of the length of the header and the length of the data portion.
Marking: each datagram sent is uniquely identified. Usually every message sent, its value is incremented by one. When the length of the IP packet exceeds the MTU (maximum transmission unit) of the transmission network, the value of this identification field is copied into the identification fields of all data fragments, so that these fragments can reconstitute the original data according to the contents of the identification field when reaching the final destination.
Marking: and 3 bits in total, and can comprise: r, DF and MF. Currently, only the last two bits are valid, wherein, DF: 1 indicates no fragmentation, and 0 indicates fragmentation; MF bit: a value of 1 indicates "more slices" and a value of 0 indicates that this is the last slice.
Sheet offset: the OFFSET (OFFSET) of the IP packet refers to the OFFSET bit of the slice relative to the first bit in the original data packet.
Survival time: the maximum number of routers allowed to pass through by the IP packet. Every time a router is passed, the TTL is decremented by 1, and when 0, the router discards the datagram. The TTL field is an 8-bit field initially set by the sender. The recommended initial value is specified by the assignment number RFC, with the current value being 64. The TTL is often set to a maximum value of 255 when sending ICMP echo reply.
Protocol: it is indicated which protocol is used by the data carried in the IP packet so that the IP layer of the destination host knows which process to forward the datagram to (different protocols have different processes specifically). Like the port numbers, TCP has a protocol number of 6, UDP has a protocol number of 17, ICMP has a protocol number of 1, IGMP has a protocol number of 2, for example.
Header checksum: the checksum of the IP header is calculated and the integrity of the IP header is checked.
Source IP address: the source device of the IP datagram is identified.
Destination IP address: the destination address of the IP datagram is identified.
Here, the same identifier of the IP packet may be set for the packets identified by the same TAN data frame. Illustratively, when the packet fragmentation identification field of the TAN data packet is 0, the DF bit of the IP packet flag field is 1. When the equipment determines that the current data packet is the last broken packet of the TAN data through the TAN broken packet CRC check, the IP message flag bit MF is 1, and when the equipment determines that the current data packet is the last broken packet of the TAN data through the TAN broken packet CRC check, the IP message flag bit MF is 0; meanwhile, an IP packet OFFSET (OFFSET) field may be determined according to the length of the TAN PDU.
Illustratively, the method further comprises:
receiving a plurality of IP messages corresponding to the same TAN data packet, wherein a header field of the IP message corresponding to the TAN broken packet of the TAN data packet is determined according to a broken packet serial number of the TAN broken packet;
determining the recombination sequence of each TAN broken packet based on the header field of each IP message;
restoring the TAN data packet based on the reorganization sequence;
and sending the TAN data packet to the TAN switching equipment.
It can be understood that a network element of the wireless network may receive IP packets sent by other network elements, may determine, based on the header field of each IP packet, the packet interruption sequence number of the TAN packet interruption, and determine, based on the header field of each IP packet, the reassembly sequence of each TAN packet interruption, and then may reassemble the TAN packet interruption belonging to the same TAN packet, recover the TAN packet, and send the recovered TAN packet to the TAN switching device, thereby effectively avoiding the problem of disorder of the TAN packet interruption in the wireless transmission environment.
In an application example, as shown in fig. 9, taking uplink data transmission as an example, the transmission flow of the TAN packet break in the 5G network may include:
step 901, encapsulating the TAN outage packet data under the scene of seizing by the TAN switching device.
The TAN switching device may encapsulate the TAN outage packet data based on the preemptive transmission mechanism, which is not described herein.
And step 902, sending the TAN outage data.
The TAN switching device may send TAN packet fragmentation data to a 5G User plane functional entity, such as a UE (User Equipment).
Step 903, receiving and identifying the TAN broken packet data, determining the header field of the encapsulated IP packet head according to the TAN header field information and the like, and mapping the sequence of the TAN broken packet into the IP message.
And the UE receives and identifies TAN broken packet data, determines a header field of an encapsulated IP packet header according to TAN header field information and the like, and maps the sequence of the TAN broken packets into the IP message.
And step 904, sending the TAN outage data.
The UE sends the TAN outage data in the encapsulated IP packet to a UPF (User plane Function ) through the 5G network.
And step 905, identifying broken packet data, storing all broken packets of the same TAN data, and then performing TAN broken packet recombination.
And the UPF identifies the broken packet data through the IP message, stores and receives all broken packets of the same TAN data, and then carries out TAN broken packet recombination.
Step 906, sending the TAN data.
And the UPF sends the recombined TAN data packet to the TAN switching equipment.
It can be understood that, for downlink data, TAN broken packet data may be received and identified by the UPF, a header field of an encapsulated IP packet header is determined according to TAN header information and the like, the sequence of TAN broken packets is mapped to an IP packet, and TAN broken packet data encapsulated in the IP packet is sent to the UE, the UE identifies broken packet data based on the IP packet, and performs TAN broken packet reassembly, and sends the reassembled TAN packet data to the TAN switching device.
An embodiment of the present application further provides a method for transmitting a time-aware network packet, which is applied to a TAN switching device, and as shown in fig. 10, the method includes:
step 1001, in the wireless transmission mode, terminating the TAN packet transmission based on the preemptive transmission mechanism.
It can be understood that, when it is determined that the TAN packet is transmitted in the wireless transmission mode, the TAN switching device terminates the aforementioned behavior of transmitting data based on the preemption transmission mechanism, that is, when a fast PDU enters one TAN switching device, if an egress is transmitting a standard PDU, the TAN switching device does not perform the preemption action, that is, a TAN broken packet is not generated, so that the problem of disorder of the TAN broken packet of the TAN packet in the wireless transmission environment can be effectively avoided, and further, the transmission performance of the TAN packet in the wireless transmission environment is improved.
Illustratively, the terminating transmitting the TAN packet based on the preemptive transport mechanism includes:
if the inlet of the TAN switching device receives a first TAN data packet and the outlet of the TAN switching device is transmitting a second TAN data packet, interrupting the transmission of the second TAN data packet, preferentially sending the first TAN data packet and retransmitting the complete second TAN data packet after sending the first TAN data packet.
It can be understood that, the priority of the first TAN data packet is higher than that of the second TAN data packet, for example, the first TAN data packet corresponds to a fast data frame, the second TAN data packet corresponds to a standard data frame, and the TAN switching device does not truncate the standard data frame to generate a TAN broken packet any more in the wireless transmission mode, but interrupts transmission of the standard data frame, and retransmits the standard data frame after sending the fast data frame.
For example, the transmission of the TAN packet based on the preemptive transmission mechanism may be terminated in the wireless transmission mode based on a local policy configuration or a policy configuration sent by the TAN system. It can be understood that the TAN switching device needs to be configured locally or remotely in advance, so that the TAN switching device can terminate the aforementioned behavior of transmitting data based on the preemption transmission mechanism in a wireless transmission manner.
In an application example, as shown in fig. 11, a TAN system control unit issues policies to a receiving-end TAN switching device and a sending-end TAN switching device, respectively, so that the corresponding TAN switching devices are configured to: and the next hop is continuously packing the wireless transmitted TAN data, interrupting the transmission of the standard PDU under the preemption scene, and retransmitting the complete standard PDU after the transmission of the rapid PDU is finished.
It should be noted that, the TAN switching device at the receiving end and the TAN switching device at the sending end are relatively, and when one TAN switching device sends a TAN data packet to the TAN switching device at the opposite end, the TAN switching device that sends the TAN data packet is the TAN switching device at the sending end, and correspondingly, the TAN switching device at the opposite end is the TAN switching device at the receiving end.
It can be understood that, for the sending-end TAN switching device, when the fast PDU enters, if the egress is forwarding the standard PDU, the sending-end TAN switching device does not perform the foregoing packet interruption operation of the preemption transmission mechanism, directly stops sending the standard TAN PDU, and resends the complete standard TAN PDU after the sending of the fast PDU is completed. The TAN switching device at the receiving end may perform packet loss processing after repeating the received partial standard PDU data based on the received complete TAN PDU.
In order to implement the method of the embodiment of the present application, an embodiment of the present application further provides a device for transmitting a time-transparent network data packet, where the device for transmitting a time-transparent network data packet corresponds to the method for transmitting a time-transparent network data packet, and each step in the method for transmitting a time-transparent network data packet is also completely applicable to the embodiment of the device for transmitting a time-transparent network data packet.
In one embodiment, as shown in fig. 12, the apparatus for transmitting time-aware network packets is applied to a TAN switching device, and includes: a determining module 1201 and a sending module 1202.
The determining module 1201 is configured to determine a corresponding packet break sequence number for a TAN packet based on a generation sequence; a sending module 1202 is configured to send the TAN packet break, where a header of the TAN packet break carries the packet break sequence number; the broken packet sequence number occupies at least two bits and is used for uniquely indicating the broken packet sequence of the corresponding TAN broken packet; and the TAN packet interruption is a data packet generated after being interrupted based on a preemptive transmission mechanism in the process of sending the TAN data packet.
Illustratively, the broken packet sequence number further has a dynamic indication mode of dynamically indicating the broken packet sequence of the corresponding TAN broken packet by using one bit; and the head of the TAN broken packet also carries a broken packet sequence bit identifier used for indicating that the broken packet sequence number adopts a dynamic indication or unique indication mode.
Illustratively, the broken packet sequence bit identification and/or at least part of the broken packet sequence number occupies a reserved field of a header of the TAN broken packet.
Illustratively, the apparatus for transmitting a time-transparent network packet further comprises: a reassembly module 1203, configured to receive multiple TAN packets corresponding to the same TAN data packet, where a header of each TAN packet carries the packet-broken serial number; determining the reassembly sequence of each TAN packet break based on the packet break sequence number of each TAN packet break; and restoring the TAN data packet based on the reorganization sequence.
In practical applications, the determining module 1201, the sending module 1202 and the reassembling module 1203 may be implemented by a processor in a transmission device for time-resolved network packets. Of course, the processor needs to run a computer program in memory to implement its functions.
In one embodiment, as shown in fig. 13, the apparatus for transmitting time-resolved network packets is applied to a network element of a wireless network, and includes: a receiving module 1301, a determining module 1302 and a sending module 1303.
The receiving module 1301 is configured to receive multiple TAN broken packets corresponding to the same TAN data packet, where the multiple TAN broken packets are sent by a TAN switching device, and a head of each TAN broken packet carries a broken packet sequence number; the determining module 1302 is configured to encapsulate the received TAN packet break into an IP packet and determine a header field of the IP packet according to a header of the TAN packet break; the sending module 1303 is configured to send the IP packet; and the packet breaking sequence number dynamically indicates the corresponding packet breaking sequence of the TAN packet breaking by adopting one bit, and the header field of the IP message can indicate the corresponding packet breaking sequence of the TAN packet breaking.
Exemplarily, the determining module 1302 is specifically configured to:
determining the identification of the IP message according to the TAN data frame identification of the TAN packet interruption;
determining the mark of the IP message according to the packet break serial number of the TAN packet break;
and determining the slice offset of the IP message according to the length of the TAN broken packet.
Exemplarily, the receiving module 1301 is further configured to receive multiple IP packets corresponding to the same TAN data packet, where a header field of an IP packet corresponding to a TAN packet break of the TAN data packet is determined according to a packet break sequence number of the TAN packet break; the time-transparent network packet transmission device further comprises: a reassembly module 1304, configured to determine a reassembly sequence of each TAN packet break based on a header field of each IP packet, and restore the TAN data packet based on the reassembly sequence; the sending module 1303 is further configured to send the TAN data packet to the TAN switching device
In practical applications, the receiving module 1301, the determining module 1302, the sending module 1303 and the reassembly module 1304 may be implemented by a processor in a device for transmitting a time-transparent network packet. Of course, the processor needs to run a computer program in memory to implement its functions.
In one embodiment, as shown in fig. 14, the apparatus for transmitting time-aware network packets is applied to a TAN switching device, and includes: a control module 1401. The control module 1401 is configured to terminate the TAN packet transmission based on the preemptive transmission mechanism in the wireless transmission mode.
Illustratively, the control module 1401 is specifically configured to: if the inlet of the TAN switching device receives a first TAN data packet and the outlet of the TAN switching device is transmitting a second TAN data packet, interrupting the transmission of the second TAN data packet, preferentially sending the first TAN data packet and retransmitting the complete second TAN data packet after sending the first TAN data packet.
Illustratively, the transmission device of the time-transparent network packet further comprises: a configuration module 1402, configured to terminate transmission of the TAN data packet based on the preemption transmission mechanism in the wireless transmission mode based on the local policy configuration or the policy configuration sent by the TAN system.
In practical applications, the control module 1401 and the configuration module 1402 may be implemented by a processor in a transmission apparatus for a time-transparent network packet. Of course, the processor needs to run a computer program in memory to implement its functions.
It should be noted that: in the transmission device for a time-transparent network data packet provided in the foregoing embodiment, when the time-transparent network data packet is transmitted, the division of each program module is merely used as an example, and in practical applications, the processing allocation may be completed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules, so as to complete all or part of the processing described above. In addition, the transmission apparatus of the time-transparent network data packet and the transmission method embodiment of the time-transparent network data packet provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Based on the hardware implementation of the program module, and in order to implement the method according to the embodiment of the present application, an embodiment of the present application further provides a TAN switching device. Fig. 15 shows only an exemplary structure of the TAN switching device, not the entire structure, and a part of or the entire structure shown in fig. 15 may be implemented as necessary.
As shown in fig. 15, a TAN switching device 1500 provided in the embodiment of the present application includes: at least one processor 1501, memory 1502, a user interface 1503, and at least one network interface 1504. The various components in the TAN switching device 1500 are coupled together by a bus system 1505. It will be appreciated that bus system 1505 is used to enable communications among the components by way of connections. Bus system 1505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are identified in FIG. 15 as bus system 1505.
The user interface 1503 may include a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touch pad, a touch screen, or the like, among others.
The memory 1502 in the embodiments of the present application is used to store various types of data to support the operation of the TAN switching device. Examples of such data include: any computer program for operating on a TAN switching device.
The transmission method of the time-transparent network packet disclosed in the embodiment of the present application may be applied to the processor 1501 or implemented by the processor 1501. Processor 1501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the transmission method of the time-aware network packet may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 1501. The Processor 1501 described above may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 1501 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium that is located in the memory 1502, and the processor 1501 reads the information in the memory 1502 and completes the steps of the transmission method of the time-aware network packet provided in the embodiments of the present application in combination with the hardware thereof.
In an exemplary embodiment, the TAN switching Device may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, programmable Logic Devices (PLDs), complex Programmable Logic Devices (CPLDs), field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the foregoing methods.
Based on the hardware implementation of the program module, and in order to implement the method of the embodiment of the present application, an embodiment of the present application further provides a network device. Fig. 16 shows only an exemplary structure of the network device, not the entire structure, and a part or the entire structure shown in fig. 16 may be implemented as necessary.
As shown in fig. 16, a network device 1600 provided in the embodiment of the present application includes: at least one processor 1601, memory 1602, a user interface 1603, and at least one network interface 1604. The various components in network device 1600 are coupled together by a bus system 1605. It will be appreciated that bus system 1605 is used to enable connected communication between these components. The bus system 1605 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled in figure 16 as bus system 1605.
The user interface 1603 may include, among other things, a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touch pad, a touch screen, and the like.
The memory 1602 in the embodiments of the present application is used to store various types of data to support the operation of the network device. Examples of such data include: any computer program for operating on a network device.
The method for transmitting a time-transparent network packet disclosed by the embodiment of the present application may be applied to the processor 1601 or implemented by the processor 1601. The processor 1601 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the transmission method of the time-transparent network packet may be performed by an integrated logic circuit of hardware or instructions in the form of software in the processor 1601. The processor 1601 described above may be a general purpose processor, a DSP or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. Processor 1601 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 1602, and the processor 1601 may read the information in the memory 1602 to complete the steps of the time-aware network packet transmission method provided in the embodiments of the present application in combination with the hardware thereof.
In an exemplary embodiment, the network device 1600 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general-purpose processors, controllers, MCUs, microprocessors, or other electronic components for performing the aforementioned methods.
Illustratively, the network device 1600 may be a network element of a wireless network, and taking a 5G network as an example, the network device 1600 may be a UE or a UPF.
It will be appreciated that the memories 1502, 1602 can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a magnetic random access Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), synchronous Static Random Access Memory (SSRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (ESDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), synchronous Dynamic Random Access Memory (SLDRAM), direct Memory (DRmb Access), and Random Access Memory (DRAM). The memories described in the embodiments of the present application are intended to comprise, without being limited to, these and any other suitable types of memory.
In an exemplary embodiment, the present application further provides a storage medium, that is, a computer storage medium, which may be specifically a computer readable storage medium, for example, a memory 1502 for storing a computer program, where the computer program is executable by a processor 1501 of a TAN switching device to perform the steps described in the method of the present application; as another example, a memory 1602 is included that stores a computer program that is executable by a processor 1601 of a network device to perform the steps described in the methods of embodiments of the present application. The computer readable storage medium may be a ROM, PROM, EPROM, EEPROM, flash Memory, magnetic surface Memory, optical disk, or CD-ROM, among others.
It should be noted that: "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The technical means described in the embodiments of the present application may be arbitrarily combined without conflict.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (16)

1. A transmission method of time-aware network data packets is applied to a time-aware network TAN switching device, and the method comprises:
determining a corresponding broken packet serial number according to the generation sequence of the TAN broken packets of the TAN data packets;
sending the TAN broken packet, wherein the head of the TAN broken packet carries the broken packet serial number;
wherein, the broken packet sequence number occupies at least two bits and is used for uniquely indicating the broken packet sequence of the corresponding TAN broken packet; and the TAN packet interruption is a data packet generated after being interrupted based on a preemptive transmission mechanism in the process of sending the TAN data packet.
2. The method of claim 1, wherein the broken packet sequence number further has a dynamic indication manner of one bit to dynamically indicate the broken packet order of the corresponding TAN broken packet; and the head of the TAN broken packet also carries a broken packet sequence bit identifier used for indicating the broken packet sequence number to adopt a dynamic indication or unique indication mode.
3. The method of claim 2,
and the broken packet sequence bit identification and/or at least part of the broken packet sequence number occupy a reserved field of the head of the TAN broken packet.
4. The method of claim 1, further comprising:
receiving a plurality of TAN broken packets corresponding to the same TAN data packet, wherein the head of each TAN broken packet carries the broken packet serial number;
determining the reassembly sequence of each TAN packet break based on the packet break sequence number of each TAN packet break;
and restoring the TAN data packet based on the reorganization sequence.
5. A method for transmitting time-resolved network packets, the method being applied to a network element of a wireless network, the method comprising:
receiving a plurality of TAN broken packets which are sent by TAN switching equipment and correspond to the same TAN data packet, wherein the head of each TAN broken packet carries a broken packet serial number;
packaging the received TAN broken packet into an IP message and determining a header field of the IP message according to the header of the TAN broken packet;
sending the IP message;
the packet-break sequence number dynamically indicates the packet-break sequence of the corresponding TAN packet-break by using one bit, and the header field of the IP message can indicate the packet-break sequence of the corresponding TAN packet-break.
6. The method according to claim 5, wherein the determining a header field of the IP packet according to the header of the TAN packet break comprises:
determining the identification of the IP message according to the TAN data frame identification of the TAN packet interruption;
determining the mark of the IP message according to the packet breaking serial number of the TAN packet breaking;
and determining the slice offset of the IP message according to the length of the TAN broken packet.
7. The method of claim 5, further comprising:
receiving a plurality of IP messages corresponding to the same TAN data packet, wherein a header field of the IP message corresponding to the TAN broken packet of the TAN data packet is determined according to a broken packet serial number of the TAN broken packet;
determining the recombination sequence of each TAN broken packet based on the header field of each IP message;
restoring the TAN data packet based on the reassembly sequence;
and sending the TAN data packet to the TAN switching equipment.
8. A transmission method of time-resolved network data packets is applied to a TAN switching device, and the method comprises the following steps:
and in the wireless transmission mode, the transmission of the TAN data packet based on the preemptive transmission mechanism is stopped.
9. The method of claim 8, wherein terminating transmission of the TAN packet based on the preemptive transport mechanism comprises:
if the inlet of the TAN switching device receives a first TAN data packet and the outlet of the TAN switching device is transmitting a second TAN data packet, interrupting the transmission of the second TAN data packet, preferentially sending the first TAN data packet and retransmitting the complete second TAN data packet after sending the first TAN data packet.
10. The method of claim 8, further comprising:
and terminating the transmission of the TAN data packet based on the preemptive transmission mechanism under the wireless transmission mode based on the local policy configuration or the policy configuration sent by the TAN system.
11. A transmission apparatus for time-resolved network packets, the transmission apparatus being applied to a TAN switching device, the transmission apparatus comprising:
the determining module is used for determining a corresponding packet break serial number of the TAN broken packet of the TAN data packet based on the generation sequence;
a sending module, configured to send the TAN packet break, where a header of the TAN packet break carries the packet break sequence number;
the broken packet sequence number occupies at least two bits and is used for uniquely indicating the broken packet sequence of the corresponding TAN broken packet; and the TAN packet interruption is a data packet generated after being interrupted based on a preemptive transmission mechanism in the process of sending the TAN data packet.
12. A device for transmitting a time-resolved network packet, the device being applied to a network element of a wireless network, the device comprising:
a receiving module, configured to receive multiple TAN broken packets corresponding to the same TAN data packet sent by a TAN switching device, where a head of each TAN broken packet carries a broken packet sequence number;
a determining module, configured to encapsulate the received TAN packet break into an IP packet and determine a header field of the IP packet according to a header of the TAN packet break;
the sending module is used for sending the IP message;
the packet-break sequence number dynamically indicates the packet-break sequence of the corresponding TAN packet-break by using one bit, and the header field of the IP message can indicate the packet-break sequence of the corresponding TAN packet-break.
13. A transmission apparatus for time-resolved network packets, which is applied to a TAN switching device, the transmission apparatus comprising:
and the control module is used for stopping transmitting the TAN data packet based on the preemptive transmission mechanism in the wireless transmission mode.
14. A TAN switching device, comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein,
the processor, when executing the computer program, performs the steps of the method of any of claims 1 to 4 or 8 to 10.
15. A network device, comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein,
the processor, when executing the computer program, is adapted to perform the steps of the method of any of claims 5 to 7.
16. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the steps of the method of any one of claims 1 to 10.
CN202110970319.7A 2021-08-23 2021-08-23 Method, apparatus and storage medium for transmitting time-resolved network packets Pending CN115714991A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110970319.7A CN115714991A (en) 2021-08-23 2021-08-23 Method, apparatus and storage medium for transmitting time-resolved network packets

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110970319.7A CN115714991A (en) 2021-08-23 2021-08-23 Method, apparatus and storage medium for transmitting time-resolved network packets

Publications (1)

Publication Number Publication Date
CN115714991A true CN115714991A (en) 2023-02-24

Family

ID=85230334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110970319.7A Pending CN115714991A (en) 2021-08-23 2021-08-23 Method, apparatus and storage medium for transmitting time-resolved network packets

Country Status (1)

Country Link
CN (1) CN115714991A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116506335A (en) * 2023-06-27 2023-07-28 广东省科学院佛山产业技术研究院有限公司 Data encapsulation method, probe, acquisition method and system based on Ethernet transmission

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116506335A (en) * 2023-06-27 2023-07-28 广东省科学院佛山产业技术研究院有限公司 Data encapsulation method, probe, acquisition method and system based on Ethernet transmission
CN116506335B (en) * 2023-06-27 2023-10-13 广东省科学院佛山产业技术研究院有限公司 Data encapsulation method, probe, acquisition method and system based on Ethernet transmission

Similar Documents

Publication Publication Date Title
US9166917B2 (en) Link layer preemption
WO2018196491A1 (en) Method and apparatus for decompressing and compressing uplink data
US20180288179A1 (en) Proxy for serving internet-of-things (iot) devices
JP4829896B2 (en) Method, system and article for improved network performance by avoiding data corruption
RU2543996C2 (en) Managing overload in communication network
US8953631B2 (en) Interruption, at least in part, of frame transmission
CN112448918B (en) Message transmission method and device and computer storage medium
EP2696621A1 (en) Message processing method, device and system
CN112333094B (en) Data transmission processing method and device, network equipment and readable storage medium
JP2006211632A (en) Detection method of crc inspection error out of range
CN108632326B (en) Method and device for transmitting data by protocol data unit
US10069595B2 (en) Forward error correction in cellular networks
EP3490293B1 (en) Data receiving method, data sending method, receiving device and system
CN114513418B (en) Data processing method and related equipment
CN113055294A (en) Message encapsulation and decapsulation method and device, storage medium and electronic device
CN113079074A (en) Protocol stack communication method, device and storage medium based on CAN bus
US10200155B2 (en) One-way data transmission apparatus, one-way data reception apparatus, and one-way data transmission/reception method using the same
CN115714991A (en) Method, apparatus and storage medium for transmitting time-resolved network packets
WO2021208694A1 (en) Data transmission method and network device
US7924710B2 (en) Method for transmitting data including an error control mechanism designed for unreliable networks and error resilience applications
CN113965518A (en) Message processing method and device
CN112333850B (en) Method for preventing downlink desynchronization, communication device and readable storage medium
WO2005112489A1 (en) A method of transmitting status report
WO2019015487A1 (en) Data retransmission method, rlc entity and mac entity
CN114826634B (en) Message detection method, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination