Data transmission method, data transmission system and computer readable storage medium

By generating an index in the core network device and updating the local list and adjusting the number of data packet copying, the reliability problem of data transmission in the prior art in the case of electromagnetic interference and terminal equipment failure is solved, and the reliability and integrity of data transmission in the case of increased wireless interference is achieved.

CN119766829AActive Publication Date: 2025-04-04SHENZHEN AI LINK CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411920190.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-04
Estimated Expiration
2044-12-25

AI Technical Summary

Technical Problem

The prior art in environments where electromagnetic interference is severe or wireless signal fading is severe, the reliability and stability of data transmission are low, and the dual transmission and selection mechanism is prone to failure in the event of terminal equipment failure.

Method used

By receiving uplink data packets in the core network device, generating an index to update the local list, extracting a sub-list and sending data records to the network management server, adjusting the number of data packet replication based on the packet replication information, ensuring the reliability of data transmission.

Benefits of technology

It realizes that when wireless interference increases, automatically increase the packet copy to ensure the reliability and integrity of data transmission, and actively adjust the number of packet copying in the event of a terminal device failure to avoid invalid transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766829A_ABST
    Figure CN119766829A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method, a data transmission system and a computer readable storage medium, and relates to the technical field of communication. The method comprises the following steps that: core network equipment generates a first index according to a first redundant tag and a session identifier corresponding to an uplink data packet so as to update a first local list, thereby obtaining a first updated list; and extracting the at least one first sub-list and adding a target identifier to at least one table item in the at least one first sub-list to generate a first data record. The network management server compares the number of the first identifiers with a first preset threshold value, if the number of the first identifiers is larger than the first preset threshold value, the core network device obtains address information of the target terminal device and sends a first copy adjustment instruction to the target terminal device, and the target terminal equipment copies the uplink data packet to generate a plurality of data packet copies, and sends the data packet copies to the core network equipment. According to the invention, the data packet copying number is adaptively adjusted according to the actual data transmission condition, so that the data transmission reliability is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data transmission method, a data transmission system and a computer-readable storage medium. Background Art

[0002] In the field of wireless communications, especially in scenarios with complex and changing electromagnetic environments, the reliability and stability of data transmission are crucial.

[0003] Existing data transmission methods usually adopt a dual-transmission and selective reception strategy of multiple user equipment (UE) or a single user equipment UE, by copying the original data message into two copies and transmitting them via two independent paths. However, in an environment with severe electromagnetic interference or severe wireless signal fading, even if the original data message is copied twice for transmission, data transmission may fail due to simultaneous interference. Based on the dual-transmission and selective reception strategy of multiple user equipment UE, when one of the user equipment UE fails, the other user equipment UE lacks an effective fault detection and response mechanism, and the original data message can only rely on a single link for transmission, resulting in the failure of the dual-transmission and selective reception mechanism. Based on the dual-transmission and selective reception strategy of a single user equipment UE, since the entire data transmission process depends on a specific user equipment UE, once the user equipment UE fails, the entire data transmission link will be completely terminated. Therefore, in a replicated industrial environment, it is very important to ensure the effectiveness and reliability of data transmission. Summary of the invention

[0004] The purpose of this application is to provide a data transmission method, a data transmission system and a computer-readable storage medium to address the deficiencies in the above-mentioned prior art, so as to solve the problems of low effectiveness and reliability of data transmission in the prior art.

[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0006] In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a data transmission system, the system including at least one terminal device, a core network device and a network management server, and the method includes:

[0007] The core network device receives an uplink data packet, generates a first index according to a first redundant label and a session identifier corresponding to the uplink data packet, and updates a first local list based on the first index to obtain a first updated list, wherein the first local list is used to store an association relationship between a sequence number of a redundant label of a data packet and a session identifier;

[0008] The core network device extracts at least one first sub-list from the first updated list, adds a target identifier to at least one table item in each of the first sub-lists, generates a first data record corresponding to the first sub-list, and sends the first data record to the network management server, wherein the session identifiers corresponding to the table items in the first sub-list are the same, and the sequence numbers corresponding to the table items are arranged in sequence, and the first data record includes the number of first identifiers and the session identifiers of the first sub-list, and the number of the first identifiers is the number of table items in the first sub-list that contain the target identifier;

[0009] The network management server compares the first number of identifiers with a first preset threshold value. If the first number of identifiers is greater than the first preset threshold value, the core network device obtains address information of a target terminal device corresponding to the session identifier of the first sublist, and sends a first replication adjustment instruction to the target terminal device based on the address information, wherein the first replication adjustment instruction includes data packet replication information;

[0010] The target terminal device responds to the first replication adjustment instruction, replicates the uplink data packet based on the data packet replication information, generates multiple data packet copies, and sends the multiple data packet copies to the core network device.

[0011] As a possible implementation manner, generating a first index according to a first redundant label and a session identifier corresponding to the uplink data packet, and updating the first local list based on the first index to obtain a first updated list includes:

[0012] Combining the first redundant tag and the session identifier to generate the first index;

[0013] Search the first local list based on the first index to find out whether there is a matching item corresponding to the first index in the first local list;

[0014] If it exists, the matching item is deleted; otherwise, the first index is added to the first local list to obtain the first updated list.

[0015] As a possible implementation manner, extracting at least one first sub-list from the first updated list includes:

[0016] sorting the entries in the first updated list according to the sequence numbers corresponding to the entries in the first updated list to obtain a sorted list;

[0017] Target table entries having the same session identifier are extracted from the sorted list, and at least one first sub-list is generated based on the target table entries.

[0018] As a possible implementation manner, adding a target identifier to at least one entry in each of the first sub-lists and generating a first data record corresponding to the first sub-list includes:

[0019] Adding the target identifier to the last entry in the first sublist based on the arrangement order of the sequence numbers corresponding to the entries in the first sublist;

[0020] For each middle table item of the first sublist, determine the difference in sequence numbers between any two adjacent middle table items, wherein the middle table items are items other than the last table item and the first table item;

[0021] adding the target identifier to at least one intermediate table entry based on the sequence number difference;

[0022] Determine the number of entries in the first sublist to which the target identifier is added, to obtain the number of the first identifiers;

[0023] The first data record is generated based on the first identification quantity and the session identifications of the first sub-list.

[0024] As a possible implementation manner, adding the target identifier to at least one intermediate entry based on the sequence number difference includes:

[0025] If the sequence number difference is greater than a second preset threshold, the target identifier is added to the intermediate entry with the earlier sequence number in the two adjacent intermediate entries.

[0026] As a possible implementation manner, the method further includes:

[0027] Each of the terminal devices sends heartbeat data to the network management server according to a preset period;

[0028] In response to receiving the heartbeat data, the network management server resets the local timer corresponding to each of the terminal devices, and detects whether the local timer corresponding to each of the terminal devices has timed out;

[0029] If the local timer corresponding to the first terminal device times out, the first replication adjustment instruction is sent to the second terminal device.

[0030] As a possible implementation manner, the method further includes:

[0031] The terminal device receives a downlink data packet, reads a second redundant label corresponding to the downlink data packet, uses a sequence number corresponding to the second redundant label as a second index, and updates a second local list based on the second index to obtain a second updated list;

[0032] The terminal device extracts at least one second sub-list from the second updated list, adds a target identifier to at least one table item in each of the second sub-lists, generates a second data record corresponding to the second sub-list, and sends the second data record to the network management server, the session identifiers corresponding to the items in the second sub-list are the same, and the sequence numbers corresponding to the items are arranged in sequence, the second data record includes the number of second identifiers and the session identifiers of the second sub-list, and the number of the second identifiers is the number of items in the second sub-list that contain the target identifier;

[0033] The network management server compares the second number of identifiers with the first preset threshold value. If the second number of identifiers is greater than the first preset threshold value, the core network device obtains the address information of the target terminal device corresponding to the session identifier of the second sublist, and sends a second replication adjustment instruction to the core network device, where the second replication adjustment instruction includes the address information and the data packet replication information;

[0034] The core network device responds to the second replication adjustment instruction, replicates the downlink data packet based on the data packet replication information, generates multiple data packet copies, and sends the multiple data packet copies to the target terminal device.

[0035] As a possible implementation manner, the method further includes:

[0036] The core network device receives the terminal fault information sent by the network management server, wherein the terminal fault information includes address information of the faulty terminal device;

[0037] The session identifier corresponding to the address information of the faulty terminal device is obtained, and the sending of the downlink data packet to the target session corresponding to the session identifier is stopped until the faulty terminal device returns to normal.

[0038] In a second aspect, an embodiment of the present application provides a data transmission system, the system comprising at least one terminal device, a core network device and a network management server;

[0039] The terminal device is used to execute the steps performed by any terminal device in the first aspect above;

[0040] The core network device is used to execute the steps performed by any core network device in the first aspect above;

[0041] The network management server is used to execute the steps performed by any network management server in the first aspect above.

[0042] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the data transmission method as described in any one of the first aspects above.

[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data transmission method as described in any one of the first aspects above are executed.

[0044] According to the data transmission method, data transmission system and computer-readable storage medium of the embodiments of the present application, the core network device receives an uplink data packet, generates a first index according to the first redundant label and session identifier corresponding to the uplink data packet, updates the first local list based on the first index to obtain a first updated list, extracts at least one first sub-list from the first updated list, adds a target identifier to at least one table item in each first sub-list, generates a first data record corresponding to the first sub-list, and sends the first data record to the network management server, the network management server compares the number of first identifiers with a first preset threshold, if the number of first identifiers is greater than the first preset threshold, the core network device obtains the address information of the target terminal device corresponding to the session identifier of the first sub-list, and sends a first replication adjustment instruction to the target terminal device based on the address information, the target terminal device responds to the first replication adjustment instruction, replicates the uplink data packet based on the data packet replication information, generates multiple data packet copies, and sends the multiple data packet copies to the core network device. According to an embodiment of the present application, the uplink data packet carries a redundant label and a session identifier. The core network device can track and distinguish different data packets and their sessions according to the redundant label and the session identifier, and generate a first index based on the redundant label and the session identifier to track the data packet reception of each session in real time. After the first local list is updated according to the first index to obtain the first updated list, the table items with the same session identifier are extracted from the updated list to generate a first sub-list, and the first sub-list is marked to generate a first data record containing the first identifier number. The network management server analyzes and makes decisions based on the first data record, and sends a first replication adjustment instruction to the target terminal device in the case of unreliable data transmission, so that the target terminal device adjusts the number of data packet replications and re-transmits data. Based on this, the present application adaptively adjusts the number of data packet replications according to the actual data transmission situation, so that when wireless interference increases, the reliability and integrity of data transmission can be effectively ensured by automatically increasing data packet replicas. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 A schematic diagram of the architecture of a data transmission system provided in an embodiment of the present application is shown;

[0047] Figure 2 A schematic diagram of the architecture of another data transmission system provided in an embodiment of the present application is shown;

[0048] Figure 3 An interactive schematic diagram of a data transmission method provided in an embodiment of the present application is shown;

[0049] Figure 4 A schematic diagram of a process for determining a first updated list provided in an embodiment of the present application is shown;

[0050] Figure 5 A schematic diagram of a process flow of a first data record generation method provided in an embodiment of the present application is shown;

[0051] Figure 6 A schematic diagram of a detection method provided in an embodiment of the present application is shown;

[0052] Figure 7 An interactive schematic diagram of another data transmission method provided in an embodiment of the present application is shown;

[0053] Figure 8 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0054] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0055] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0056] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0057] 5G dual transmission and selective reception refers to the redundant transmission of data based on two independent user equipment UEs in the 5G independent networking scenario, and the use of dual transmission and selective reception protocols such as FRER (IEEE 802.1CB) or HSR / PRP (IEC 62439-3) on the terminal side and the network side to achieve high-reliability forwarding of 5G connections. During the data transmission process, the sender copies the original data frame into two copies, adds corresponding fields to the data frame header to fill in information such as protocol type and redundant message sequence number, and sends them from two links at the same time, such as R-TAG of dual transmission and selective reception protocol FRER, HSR TAG of dual transmission and selective reception protocol HSR, RCT reserved field of PRP, etc. The receiver identifies redundant frames through redundant message sequence numbers, deduplicates data, avoids packet loss caused by single link failure, and further reduces service damage caused by node failures, data packet loss or jitter in transceiver modules, transmission networks and other links, thereby improving the reliability of end-to-end data transmission.

[0058] However, the existing data transmission method based on dual-transmit selective reception has the following problems:

[0059] (1) Consider only copying the original data message into two copies for transmission. However, in an environment with severe electromagnetic interference, the two copies are not sufficient to counteract the data message loss caused by wireless fading. Therefore, it is still possible that the receiving end cannot receive the data message after using dual-transmission selective reception.

[0060] (2) The dual-transmit selective reception scheme based on multiple UEs supports data transmission through a maximum of two wireless terminals. When a terminal fails, the other terminal cannot sense the situation and can only transmit a single data message on the wireless link, resulting in the failure of the dual-transmit selective reception mechanism.

[0061] (3) The dual-transmit selective reception solution based on a single UE has a single point failure problem in the terminal device. When the terminal that performs the dual-transmit selective reception function fails, data transmission will fail. In addition, due to cost constraints, the hardware reliability of the terminal is somewhat inferior to that of traditional industrial switches. In an industrial environment, the terminal is more prone to hardware failures than the industrial switch.

[0062] In response to the above problems, the present application provides a data transmission method and a data transmission system, which support the UPF, a key component in the terminal device and the core network device, to adaptively adjust the number of data packet copies according to the actual data transmission situation, so that when the wireless interference increases, the number of data packet copies can be automatically increased to ensure the reliability of data transmission. In addition, when a terminal device fails, the present application actively increases the number of uplink data packet copies of another terminal to ensure the reliability of uplink transmission, and actively avoids sending the number of downlink data packet copies to the failed terminal device, thereby avoiding invalid transmission.

[0063] Figure 1 FIG. 1 is a schematic diagram showing a structure of a data transmission system provided by an embodiment of the present application. Figure 1 As shown, the data transmission system includes at least one terminal device, a core network device and a network management server. Based on the interaction between the terminal device, the core network device and the network management server, the transmission process of the online data packet and the downlink data packet can be realized. Among them, there are key components (User Plane Function, UPF) and key components (Network Exposure Function, NEF) in the core network device. The key component UPF is mainly responsible for processing the data traffic of the user plane to ensure that the data packets between the user equipment UE and the external network can be transmitted efficiently and securely. The key component NEF is a bridge between the 5G core network and external entities, allowing external entities to safely access and utilize the capabilities and information of the 5G network.

[0064] Optionally, refer to Figure 2 As shown, in addition to terminal equipment, core network equipment and grid management servers, the data transmission system provided by the present application also includes machine equipment, dual-transmit selective receiving switches and host computers. Among them, the machine equipment is a networking device that can be used to generate uplink data packets. The machine equipment is connected to a dual-transmit selective receiving switch with dual-transmit selective receiving capabilities, and two terminal devices are connected to the external network port of the dual-transmit selective receiving switch. Each terminal device has only one 5G module, and the core network device is connected through the terminal device. The core network device provides a 5G network, and a dual-transmit selective receiving module is built into the key component UPF on the 5G network side to interact with the host computer through the key component UPF.

[0065] Based on this, according to the data transmission system provided in the embodiment of the present application, the data transmission system can automatically adjust the number of data message copies for each terminal in the 5G network according to the wireless interference situation and the working conditions of different wireless terminals, thereby enhancing the system's ability to resist wireless fading and terminal equipment failures.

[0066] The following is combined with the above Figure 1 and Figure 2 The content described in the data transmission system shown is used to explain in detail the data transmission method provided in the embodiment of the present application.

[0067] Figure 3 The following is an interactive diagram of a data transmission method provided by an embodiment of the present application. Figure 3 As shown, the method specifically comprises the following steps:

[0068] S301. A core network device receives an uplink data packet, generates a first index according to a first redundant label and a session identifier corresponding to the uplink data packet, and updates a first local list based on the first index to obtain a first updated list.

[0069] Optionally, in combination with the above Figure 2 As shown, during the uplink data transmission process, the machine device generates an uplink data packet and sends the uplink data packet to the dual-transmit selective receiving switch. The dual-transmit selective receiving switch will copy the uplink data packet into two copies and add a redundant label to each uplink data packet. Then, the uplink data packet will be sent to two terminal devices through two independent network ports respectively. Each terminal device will send the uplink data packet with redundant labels to the base station, and the data packets with redundant labels from the two terminal devices will be forwarded to the core network device respectively through the base station.

[0070] Optionally, the core network device stores a first local list [<pdu_id,seq> ], the first local list is used to store the association between the serial number of the redundant label of the data packet and the session identifier. Among them, the redundant label is a mechanism for enhancing the reliability of data transmission. By adding additional information in the message header of the uplink data packet, such as the serial number, protocol type, etc., a redundant label can be added to the uplink data packet. The session identifier is an identifier used to uniquely identify a specific data transmission session.

[0071] Further, after receiving the uplink data packet sent by the base station, the core network device reads the session identifier pdu_id for transmitting the uplink data packet, identifies the redundant label seq carried in the uplink data packet, and generates a first index based on the session identifier pdu_id and the redundant label<pdu_id,seq> , and using this first index<pdu_id,seq> Retrieve the first local list [<pdu_id,seq> ] to the first local list [<pdu_id,seq> ] is updated to obtain a first updated list, which contains the latest data packet reception information.

[0072] S302. The core network device extracts at least one first sub-list from the first updated list, adds a target identifier to at least one entry in each first sub-list, generates a first data record corresponding to the first sub-list, and sends the first data record to the network management server.

[0073] Optionally, the session identifiers corresponding to the entries in the first sublist are the same, and the serial numbers corresponding to the entries are arranged in sequence. The first data record includes the first identifier quantity and the session identifier of the first sublist. The first identifier quantity is the number of entries in the first sublist containing the target identifier.

[0074] Optionally, the core network device selects at least one subset, i.e., the first sublist, from the first updated list based on specific rules or extraction conditions. For example, at least one first sublist is extracted from the first updated list based on the extraction condition of having the same session identifier. The session identifiers corresponding to the items in the first sublist are the same, which means that the first sublist is constructed based on the same communication session, and the sequence numbers corresponding to the items are arranged in sequence, which helps to maintain the correct ordering of the sad data packets. On this basis, a target identifier is added to at least one item in the first sublist to specially mark certain items in the first sublist based on the target identifier, and a corresponding first data record is generated according to the marked first sublist, and the first data record is sent to the network management server.

[0075] S303. The network management server compares the first identification number with the first preset threshold. If the first identification number is greater than the first preset threshold, the core network device obtains the address information of the target terminal device corresponding to the session identification of the first sub-list, and sends a first replication adjustment instruction to the target terminal device based on the address information.

[0076] Optionally, the first replication adjustment instruction is used to adjust the processing mode of the uplink data packet, especially the replication of the uplink data packet. Specifically, the first replication adjustment instruction includes data packet replication information, and the data packet replication information is used to indicate how many copies of the uplink data packet are to be replicated.

[0077] Optionally, the first preset threshold is a preset value used as a criterion for triggering the core network device to obtain the address information of the target terminal device corresponding to the session identifier of the first sublist. After receiving the first data record sent by the core network device, the network management server compares the number of first identifiers in the first data record with the first preset threshold to determine whether it is necessary to adjust the data packet processing method of the relevant session.

[0078] Optionally, if the number of first identifiers is greater than a first preset threshold, meaning that some data packets under the session require special attention or there are abnormal conditions, a response process is triggered, and the core network device obtains the address information of the target terminal device corresponding to the session identifier of the first sub-list, and uses the obtained address information to send a first replication adjustment instruction to the corresponding target terminal device. The first replication adjustment instruction includes specific instructions on uplink data packet replication, specifically how many copies of the uplink data packet to copy, thereby improving the reliability of data transmission by adjusting the data packet replication method to ensure that even if some data packets are lost, the core network device can still reconstruct the complete information.

[0079] S304. The target terminal device responds to the first replication adjustment instruction, replicates the uplink data packet based on the data packet replication information, generates multiple data packet copies, and sends the multiple data packet copies to the core network device.

[0080] Optionally, after receiving the first replication adjustment instruction, the target terminal device updates the local data forwarding strategy, replicates the uplink data packet from the dual-transmit selective receiving switch again, forms multiple data packet copies, and sends the multiple data packet copies to the core network device through the base station. Specifically, the target terminal device determines how many copies of the uplink data packet need to be copied based on the data packet replication information carried in the first replication adjustment instruction. During this process, the target terminal device parses the first replication adjustment instruction and generates multiple data packet copies according to the requirements in the first replication adjustment instruction, and each data packet copy is a complete copy of the original uplink data packet.

[0081] Optionally, after the target terminal device completes the copying, it sends multiple copies of the data packet back to the core network device. In this process, the target terminal device needs to ensure that all copies of the data packet can be sent out in an appropriate order and time interval to avoid excessive occupation of network resources or congestion.

[0082] Based on this, according to the data transmission method provided by the embodiment of the present application, the uplink data packet carries a redundant label and a session identifier, and the core network device can track and distinguish different data packets and their sessions according to the redundant label and the session identifier, and generate a first index based on the redundant label and the session identifier to track the data packet reception of each session in real time. After the first local list is updated according to the first index to obtain the first updated list, the table items with the same session identifier are extracted from the updated list to generate a first sub-list, and the first sub-list is marked to generate a first data record containing the first identifier number. The network management server analyzes and makes decisions based on the first data record, and sends a first replication adjustment instruction to the target terminal device in the case of unreliable data transmission, so that the target terminal device adjusts the number of data packet replications and re-transmits data. Based on this, the present application adaptively adjusts the number of data packet replications according to the actual data transmission situation, so that when wireless interference increases, the reliability and integrity of data transmission can be effectively ensured by automatically increasing data packet replicas.

[0083] Figure 4 FIG. 1 is a flow chart of a method for determining a first updated list provided in an embodiment of the present application. Figure 4 As shown, the above step S301 generates a first index according to the first redundant label and the session identifier corresponding to the uplink data packet, and updates the first local list based on the first index to obtain a first updated list, which specifically includes the following steps:

[0084] S401: Combine a first redundant tag and a session identifier to generate a first index.

[0085] Exemplarily, the first redundant tag seq and the session identifier pdu_id are combined in a preset combination mode to form a unique identifier, namely, the first index. The preset combination mode may be simple string concatenation, for example, the first redundant tag seq and the session identifier pdu_id are simply concatenated using strings such as "," and "<>" to obtain the first index<pdu_id,seq> , the first index<pdu_id,seq> It can be used for subsequent retrieval and update of the first local list.

[0086] S402: Search the first local list based on the first index to find out whether there is a matching item corresponding to the first index in the first local list.

[0087] For example, the first local list [<pdu_id,seq> ] is a data structure based on the first index<pdu_id,seq> For this first local list [<pdu_id,seq> ] to search for the first local list[<pdu_id,seq> ] exists with the first index<pdu_id,seq> An entry that fully matches a table is also called a matching entry.

[0088] S403: If it exists, delete the matching item; otherwise, add the first index to the first local list to obtain a first updated list.

[0089] For example, if the first local list [<pdu_id,seq> ] exists in the first index<pdu_id,seq> The corresponding matching item means that the uplink data packet or the corresponding session has been processed and its information does not need to be retained, so a deletion operation is performed to remove the matching item from the first local list [<pdu_id,se q> ] and get the first updated list.

[0090] For example, if the first local list [<pdu_id,seq> ] does not exist in the first index<pdu_id,seq> The corresponding matching item means that the uplink data packet or the corresponding session is new and needs to be recorded for subsequent processing. Then the add operation is performed and the first index<pdu_id,seq> Add to first local list [<pdu_id,seq> ], and remove redundant labels from the uplink data packet, and then forward the processed uplink data packet to the host computer.

[0091] Based on this, the received uplink data packets are tracked and managed by generating indexes and updating local lists to ensure that the data packets are not processed repeatedly. At the same time, the information of new data packets can also be recorded for subsequent use. This operation is crucial to maintaining the integrity and consistency of network data.

[0092] As a possible implementation manner, the above step S302 extracts at least one first sub-list from the first updated list, including:

[0093] According to the serial numbers corresponding to the items in the first updated list, the items in the first updated list are sorted to obtain a sorted list; target items with the same session identifier are extracted from the sorted list, and at least one first sub-list is generated based on the target items.

[0094] Exemplarily, after obtaining the first updated list, the items in the first updated list may be sorted in ascending order based on the sequence numbers corresponding to the items in the first updated list, to obtain a sorted list arranged in sequence of the sequence numbers. It should be noted that the purpose of sorting the items in the first updated list is to ensure that all items are sorted in the correct order in the communication session.

[0095] Exemplarily, after obtaining the sorted list, the same session identifier is used as a screening condition, all entries with the same session identifier are found from the sorted list, and these entries are used as target entries, and at least one first sublist is generated according to the screened target entries. <seq>]. In the process of generating the first sublist, if there are all the table items of only one session in the screening result, a first sublist containing these table items is generated; if table items of multiple sessions are screened out, a first sublist is generated for each session. It should be noted that the operation of filtering table items according to session identifiers is to centrally process data packets belonging to the same session, so as to facilitate the management and analysis of behaviors or problems of specific sessions.

[0096] Based on this, the core network device extracts table entries with the same session identifier from the first updated list and groups them into at least one first sub-list, ensuring that the extracted sub-list can meet specific processing requirements and helping to improve the accuracy and efficiency of data processing.

[0097] Figure 5 FIG. 1 is a flow chart of a first data record generation method provided in an embodiment of the present application. Figure 5 As shown, the above step S302 adds a target identifier to at least one entry in each first sub-list and generates a first data record corresponding to the first sub-list, which specifically includes the following steps:

[0098] S501: Add a target identifier to the last entry in the first sublist based on the arrangement order of the sequence numbers corresponding to the entries in the first sublist.

[0099] For example, if the first sublist [ <seq>] has n entries, according to the first sublist [ <seq>], marking the first entry seq1 in the first sublist as Ts, and marking the last entry seq n It should be noted that in this application, the target identifier is Te as an example, the first sublist [ <seq>] in the last table entry seq n It can be added as a target table item with the target identifier Te, that is, the end table item seq n Marked as Te.

[0100] S502: For each middle entry of the first sublist, determine a sequence number difference between any two adjacent middle entries, where the middle entries are entries other than the last entry and the first entry.

[0101] For example, for each first sublist [ <seq>], except for the first entry seq1 and the last entry seq n In addition, for the first sublist [ <seq>], for any two adjacent intermediate entries, calculate the sequence number difference seq between the two adjacent intermediate entries i+1 -seq i .

[0102] It should be noted that by calculating the difference in serial numbers, the continuity or interval between entries can be evaluated, which is an important basis for deciding whether to add target identifiers to certain entries in subsequent steps.

[0103] S503: Add a target identifier to at least one intermediate table entry based on the sequence number difference.

[0104] Optionally, if the sequence number difference is greater than a second preset threshold, a target identifier is added to the intermediate table entry with the earlier sequence number in the two adjacent intermediate table entries.

[0105] Exemplarily, the second preset threshold is a preset value, for example, it can be set to 1. The sequence number difference is compared with the second preset threshold, and the target identifier is selectively added to the intermediate table entry according to the comparison result. i+1 -seq i When it is greater than 1, seq i Labeled as Te, and seq i+1 Marked as Ts, that is, adding the target identifier Te to the middle table entry with the earlier sequence number in the two adjacent middle table entries.

[0106] S504: Determine the number of entries in the first sublist to which the target identifier is added, and obtain the first identifier number.

[0107] For example, when the sequence number difference seq i+1 -seq i When it is greater than 1, seq i Labeled as Te, and seq i+1 Marked as Ts, after marking each middle item in the first sublist based on this marking principle, combined with the marking processing of the first item and the last item in the first sublist, the number of all items added with the target identifier Te in the first sublist is counted, and the first identifier number N can be obtained.

[0108] S505: Generate a first data record based on the first identification quantity and the session identifications of the first sub-list.

[0109] Exemplarily, the number of first identifiers is N, and the session identifier of the first sublist is pdu_id, then the number of first identifiers N and the session identifier pdu_id of the first sublist are combined to generate a first data record.<pdu_id,N> Further, the key component UPF will generate the first data record<pdu_id,N> Sending to the network management server so that the network management server records the first data<pd u_id,N> Determine whether to implement the data forwarding strategy.

[0110] Based on this, by adding identifiers to the items in the first sublist in an orderly manner, the core network device can more accurately manage and track the status of the data packet, ensuring that it can quickly locate and take measures when a network problem occurs. In addition, the generated first data record provides valuable information to the network management server, allowing the network management server to adjust the network policy and service quality according to the actual situation, thereby improving the overall network performance and reliability.

[0111] Figure 6 A schematic diagram of a detection method provided in an embodiment of the present application is shown. Figure 6 As shown, as a possible implementation, the method further includes:

[0112] S601. Each terminal device sends heartbeat data to a network management server according to a preset period.

[0113] Exemplarily, the preset period is a preset time period, such as 5 minutes, 10 minutes, etc., which can be set according to actual needs. Each terminal device sends heartbeat data to the network management server according to the preset period, and the heartbeat data can be used to indicate that the terminal device is currently active and online.

[0114] S602: In response to receiving the heartbeat data, the network management server resets the local timer corresponding to each terminal device and detects whether the local timer corresponding to each terminal device has timed out.

[0115] Exemplarily, the network management server maintains a local timer for each terminal device. When the network management server receives heartbeat data sent by the terminal device, it resets the local timer corresponding to the terminal device. This means that if the network management server continues to receive heartbeat data from a terminal device, the local timer of the terminal device will not time out.

[0116] Exemplarily, the network management server also periodically checks whether the local timer corresponding to each terminal device has timed out. Timeout means that within a preset period, the network management server has not received the heartbeat data sent by the terminal device, which means that the terminal device has a fault or the network connection is interrupted.

[0117] S603: If the local timer corresponding to the first terminal device times out, send a first replication adjustment instruction to the second terminal device.

[0118] For example, if the network management server detects that the local timer corresponding to the first terminal device has timed out, which means that the network management server has not received the heartbeat data of the first terminal device within a preset period, the network management server will send a first replication adjustment instruction to the second terminal device, so that the second terminal device replicates the uplink data packet according to the data packet replication information in the first replication adjustment instruction, and sends the replicated multiple data packet copies to the core network device, thereby enhancing the redundancy and reliability of data transmission, ensuring that even if there is a problem with the first terminal device, the communication quality and service level can be maintained.

[0119] Based on this, the network management server effectively monitors the status of terminal devices, promptly detects faulty or disconnected terminal devices through heartbeat data and local timers, and compensates for possible service interruptions by sending replication adjustment instructions to other terminal devices. In other words, this application supports actively increasing the number of uplink data packet replications of another terminal device when a terminal device fails, thereby ensuring the reliability of uplink transmission. Therefore, this application not only improves the overall stability and reliability of the network, but also provides a fault recovery strategy to ensure that a high level of service and data transmission reliability can be maintained even when certain components in the network environment temporarily fail.

[0120] Figure 7 An interactive schematic diagram of another data transmission method provided in an embodiment of the present application is shown.

[0121] Reference Figure 7 As shown, the method also includes:

[0122] S701. The terminal device receives a downlink data packet, reads a second redundant label corresponding to the downlink data packet, uses a serial number corresponding to the second redundant label as a second index, and updates a second local list based on the second index to obtain a second updated list.

[0123] Optionally, in combination with the above Figure 2 As shown, in the downlink data transmission process, the host computer generates a downlink data packet and sends the downlink data packet to the core network device, specifically, the downlink data packet is sent to the key component UPF in the core network device, and the dual-transmit selective receiving module in the UPF copies the downlink data packet from the host computer into two copies, adds a redundant label to the downlink data packet, and sends the copied downlink data packet with the redundant label to two terminal devices through the base station. Each terminal device receives the downlink data packet and sends the downlink data packet to the dual-transmit selective receiving switch.

[0124] Optionally, each terminal device maintains a second local list [ <seq>], where seq represents the sequence number corresponding to the second redundant tag in the downlink data packet. After receiving the downlink data packet from the base station, the terminal device reads the second redundant tag in the downlink data packet and retrieves the second local list using the sequence number seq corresponding to the second redundant tag as the second index. <seq>], if the second local list [ <seq>], the downlink data packet is directly sent to the dual-transmit selective receiving switch. Otherwise, if the second local list [ <seq>], then if there is no match for the second index in the second local list [ <seq>]Add the entry corresponding to the second index <seq>, thereby implementing the second local list [ <seq>] to get the second updated list.

[0125] S702: The terminal device extracts at least one second sub-list from the second updated list, adds a target identifier to at least one entry in each second sub-list, generates a second data record corresponding to the second sub-list, and sends the second data record to the network management server.

[0126] Optionally, the session identifiers corresponding to the entries in the second sublist are the same, and the serial numbers corresponding to the entries are arranged in sequence. The second data record includes the number of second identifiers and the session identifiers of the second sublist. The number of second identifiers is the number of entries in the second sublist containing the target identifier.

[0127] Exemplarily, the terminal device sorts the updated second updated list, specifically arranges each item in the second updated list in ascending order according to the sequence number seq to obtain an arranged list, and extracts at least one second sub-list from the arranged list, specifically according to the extraction condition of having the same session identifier.

[0128] For example, after the second sublist is extracted, the second sublist may be marked by adding a target identifier to at least one item in the second sublist. Specifically, the first item seq1 in the second sublist is marked as Ts, and the last item seq2 in the second sublist is marked as Ts. n It should be noted that, in this application, the target identifier is Te as an example, and the second sublist [ <seq>] in the last table entry seq m It can be added as a target table item with the target identifier Te, that is, the end table item seq n Labeled as Te. And, for the second sublist [ <seq>], for any two adjacent intermediate entries, calculate the sequence number difference seq between the two adjacent intermediate entries i+1 -seqseq i , when the sequence number difference seq i+1 -seq i When it is greater than the preset value 1, seq i Labeled as Te, and seq i+1 Marked as Ts, that is, adding the target identifier Te to the middle table entry with the earlier sequence number in the two adjacent middle table entries.

[0129] Exemplarily, based on the above marking method, the target terminal device counts the marked second sublist [ <seq>] in the Te identification number, that is, the second identification number, and sends the second identification number to the network management server.

[0130] S703. The network management server compares the second number of identifiers with the first preset threshold. If the second number of identifiers is greater than the first preset threshold, the core network device obtains the address information of the target terminal device corresponding to the session identifier of the second sub-list and sends a second replication adjustment instruction to the core network device.

[0131] Optionally, the second replication adjustment instruction includes address information and data packet replication information, and the data packet replication information is used to indicate how many copies of the downlink data packet are to be replicated. After receiving the second identification number sent by the terminal device, the network management server compares the second identification number with the first preset threshold to determine whether it is necessary to adjust the data packet processing method of the relevant session. Specifically, if the second identification number is greater than the first preset threshold, the network management server obtains the session identifier pdu_id corresponding to the IP address of the terminal device through the key component NEF in the core network device.

[0132] Furthermore, after receiving the session identifier pdu_id from the key component NEF, the network management server sends a second replication adjustment instruction to the key component UPF in the core network device. Specifically, the network management server sends data packet replication information M and the session identifier pdu_id to the key component UPF, that is, the key component UPF needs to replicate the original downlink data packet M times, and send the original downlink data packet to the target terminal device through the PDU session corresponding to the session identifier pdu_id.

[0133] S704. The core network device responds to the second replication adjustment instruction, replicates the downlink data packet based on the data packet replication information, generates multiple data packet copies, and sends the multiple data packet copies to the target terminal device.

[0134] Optionally, after receiving the second replication adjustment instruction from the network management server, the key component UPF in the core network device updates the local data forwarding strategy, replicates the downlink data packet from the host computer again to form multiple data packet copies, and sends the multiple data packet copies to the target terminal device through the base station.

[0135] Exemplarily, the key component UPF determines how many copies of the uplink data packet need to be copied based on the data packet replication information carried in the second replication adjustment instruction. During this process, the key component UPF parses the second replication adjustment instruction and generates multiple data packet copies according to the requirements in the second replication adjustment instruction. Each data packet copy is a complete copy of the original uplink data packet.

[0136] Based on this, the target terminal device can enhance the transmission reliability of downlink data packets, especially when the network conditions are unstable or there is a high packet loss rate. This application dynamically adjusts the data packet replication strategy so that the network can respond more flexibly to different application scenarios and needs, thereby improving communication quality and service continuity.

[0137] As a possible implementation method, the method also includes: the core network device receives terminal fault information sent by the network management server, obtains the session identifier corresponding to the address information of the faulty terminal device, and stops sending downlink data packets to the target session corresponding to the session identifier until the faulty terminal device returns to normal, wherein the terminal fault information includes the address information of the faulty terminal device.

[0138] Exemplarily, after the network management server detects that a certain terminal device has failed through the heartbeat information, it sends the terminal failure information to the key component UPF in the core network device, and the terminal failure information may include the IP address information of the failed terminal device. After receiving the terminal failure information from the network management server, the key component UPF obtains the session identifier pdu_id corresponding to the IP address information of the failed terminal device through the key component NEF query, and the key component UPF will stop sending downlink data packets to the PDU session corresponding to the failed terminal device until the network management server informs the core network device that the failed terminal device has returned to normal.

[0139] Based on this, when a terminal device fails, the data transmission method provided in the embodiment of the present application adopts an active strategy to actively avoid sending copy information of the downlink data packet to the failed terminal device, thereby eliminating invalid transmission.

[0140] The present application embodiment also provides an electronic device 800, such as Figure 8 As shown, it is a schematic diagram of the structure of an electronic device 800 provided in an embodiment of the present application, including: a processor 801, a memory 802, and optionally, a bus 803. The memory 802 stores machine-readable instructions executable by the processor 801. When the electronic device 800 is running, the processor 801 communicates with the memory 802 through the bus 803. When the machine-readable instructions are executed by the processor 801, the method steps in the data transmission method described in any one of the above items are executed.

[0141] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method steps in any of the above data transmission methods are executed.

[0142] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0143] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or part of the technical solution that contributes to the prior art or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Mem ory), disk or optical disk and other media that can store program code.

[0144] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.< / seq> < / seq> < / seq> < / seq> < / seq> < / seq> < / seq> < / seq> < / seq> < / seq> < / seq> < / seq> < / seq> < / seq> < / seq> < / seq>

Claims

1. A data transmission method, characterized in that: Applied to a data transmission system, the system includes at least one terminal device, a core network device and a network management server, and the method includes: The core network device receives an uplink data packet, generates a first index according to a first redundant label and a session identifier corresponding to the uplink data packet, and updates a first local list based on the first index to obtain a first updated list, wherein the first local list is used to store an association relationship between a sequence number of a redundant label of a data packet and a session identifier; The core network device extracts at least one first sub-list from the first updated list, adds a target identifier to at least one table item in each of the first sub-lists, generates a first data record corresponding to the first sub-list, and sends the first data record to the network management server, wherein the session identifiers corresponding to the table items in the first sub-list are the same, and the sequence numbers corresponding to the table items are arranged in sequence, and the first data record includes the number of first identifiers and the session identifiers of the first sub-list, and the number of the first identifiers is the number of table items in the first sub-list that contain the target identifier; The network management server compares the first number of identifiers with a first preset threshold value. If the first number of identifiers is greater than the first preset threshold value, the core network device obtains address information of a target terminal device corresponding to the session identifier of the first sublist, and sends a first replication adjustment instruction to the target terminal device based on the address information, wherein the first replication adjustment instruction includes data packet replication information; The target terminal device responds to the first replication adjustment instruction, replicates the uplink data packet based on the data packet replication information, generates multiple data packet copies, and sends the multiple data packet copies to the core network device.

2. The method according to claim 1, characterized in that The step of generating a first index according to a first redundant label and a session identifier corresponding to the uplink data packet, and updating a first local list based on the first index to obtain a first updated list includes: Combining the first redundant tag and the session identifier to generate the first index; Search the first local list based on the first index to find out whether there is a matching item corresponding to the first index in the first local list; If it exists, the matching item is deleted; otherwise, the first index is added to the first local list to obtain the first updated list.

3. The method according to claim 1, characterized in that The extracting at least one first sub-list from the first updated list comprises: sorting the entries in the first updated list according to the sequence numbers corresponding to the entries in the first updated list to obtain a sorted list; Target table entries having the same session identifier are extracted from the sorted list, and at least one first sub-list is generated based on the target table entries.

4. The method according to claim 1, characterized in that: The adding a target identifier to at least one entry in each of the first sub-lists and generating a first data record corresponding to the first sub-list includes: Adding the target identifier to the last entry in the first sublist based on the arrangement order of the sequence numbers corresponding to the entries in the first sublist; For each middle table item of the first sublist, determine the difference in sequence numbers between any two adjacent middle table items, wherein the middle table items are items other than the last table item and the first table item; adding the target identifier to at least one intermediate table entry based on the sequence number difference; Determine the number of entries in the first sublist to which the target identifier is added, to obtain the number of the first identifiers; The first data record is generated based on the first identification quantity and the session identifications of the first sub-list.

5. The method according to claim 4, characterized in that The adding the target identifier to at least one intermediate entry based on the sequence number difference includes: If the sequence number difference is greater than a second preset threshold, the target identifier is added to the intermediate entry with the earlier sequence number in the two adjacent intermediate entries.

6. The method according to claim 1, characterized in that Also includes: Each of the terminal devices sends heartbeat data to the network management server according to a preset period; In response to receiving the heartbeat data, the network management server resets the local timer corresponding to each of the terminal devices, and detects whether the local timer corresponding to each of the terminal devices has timed out; If the local timer corresponding to the first terminal device times out, the first replication adjustment instruction is sent to the second terminal device.

7. The method according to claim 1, characterized in that Also includes: The terminal device receives a downlink data packet, reads a second redundant label corresponding to the downlink data packet, uses a sequence number corresponding to the second redundant label as a second index, and updates a second local list based on the second index to obtain a second updated list; The terminal device extracts at least one second sub-list from the second updated list, adds a target identifier to at least one table item in each of the second sub-lists, generates a second data record corresponding to the second sub-list, and sends the second data record to the network management server, the session identifiers corresponding to the items in the second sub-list are the same, and the sequence numbers corresponding to the items are arranged in sequence, the second data record includes the number of second identifiers and the session identifiers of the second sub-list, and the number of the second identifiers is the number of items in the second sub-list that contain the target identifier; The network management server compares the second number of identifiers with the first preset threshold value. If the second number of identifiers is greater than the first preset threshold value, the core network device obtains the address information of the target terminal device corresponding to the session identifier of the second sublist, and sends a second replication adjustment instruction to the core network device, where the second replication adjustment instruction includes the address information and the data packet replication information; The core network device responds to the second replication adjustment instruction, replicates the downlink data packet based on the data packet replication information, generates multiple data packet copies, and sends the multiple data packet copies to the target terminal device.

8. The method according to claim 7, characterized in that Also includes: The core network device receives the terminal fault information sent by the network management server, wherein the terminal fault information includes address information of the faulty terminal device; The session identifier corresponding to the address information of the faulty terminal device is obtained, and the sending of the downlink data packet to the target session corresponding to the session identifier is stopped until the faulty terminal device returns to normal.

9. A data transmission system, characterized in that: The system includes at least one terminal device, a core network device and a network management server; The terminal device is used to perform the steps performed by any terminal device in claims 1-8; The core network device is used to perform the steps performed by any core network device in claims 1-8; The network management server is used to execute the steps executed by any one of the network management servers in claims 1-8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 8 are executed.

Citation Information

Patent Citations

  • Data communication method and device based on virtual local area network, equipment and medium

    CN114980074A

  • Window resource allocation method and device, equipment and storage medium

    CN117896329A

  • Network slice management method and storage medium

    CN119136222A