Search

CN-115087058-B - Network data transmission method, device and storage medium

CN115087058BCN 115087058 BCN115087058 BCN 115087058BCN-115087058-B

Abstract

The invention discloses a network data transmission method, a device and a storage medium, and relates to the technical field of communication. The method comprises the steps of receiving a first data packet sent by a server, wherein the first data packet comprises destination information, the destination information comprises information used by the server for communication with target terminal equipment, determining a target session identifier corresponding to the destination information according to a first mapping relation between stored session identifiers and the destination information, determining at least one connection source information corresponding to the target session identifier according to a second mapping relation between the stored session identifiers and the connection source information, determining the target connection source information according to the at least one connection source information, and finally sending a second data packet to the target terminal equipment through target access equipment. And the target access equipment corresponding to the target connection source information is in a connection state with the target terminal equipment. The invention can ensure the continuity of network data transmission and improve the reliability of communication between the terminal equipment and the server.

Inventors

  • YU SHUO
  • DING CHENG
  • WANG YANG
  • QIU QINGJU

Assignees

  • 青岛上合航天科技有限公司
  • 浙江时空道宇科技有限公司
  • 浙江吉利控股集团有限公司

Dates

Publication Date
20260508
Application Date
20220513

Claims (10)

  1. 1. A method for transmitting network data, comprising: Receiving a first data packet sent by a server, wherein the first data packet comprises destination information, and the destination information comprises information used by the server for communication with target terminal equipment; Determining a target session identifier corresponding to target information according to a first mapping relation between the stored session identifier and the target information, wherein the target session identifier is used for identifying a session between the target terminal equipment and the server; Determining at least one piece of connection source information corresponding to the target session identifier according to a second mapping relation between the stored session identifier and the connection source information, wherein the connection source information comprises information used by the target terminal device for communication with the server through an access device; Determining target connection source information according to the at least one connection source information, wherein target access equipment corresponding to the target connection source information is in a connection state with the target terminal equipment; when the at least one connection source information comprises a plurality of connection source information, determining target connection source information according to the at least one connection source information comprises obtaining state information corresponding to each connection source information in the plurality of connection source information, wherein the state information comprises first information and second information, the first information is used for indicating whether the target terminal equipment is in a connection state with access equipment corresponding to the connection source information, the second information is used for indicating communication parameter information between the target terminal equipment and the access equipment corresponding to the connection source information; and sending a second data packet to the target terminal equipment through the target access equipment, wherein the second data packet comprises the first data packet and the target connection source information.
  2. 2. The network data transmission method according to claim 1, wherein determining the priority of the plurality of access devices according to the plurality of second information and the device type of each of the access devices corresponding to the plurality of connection source information includes: Dividing access devices with the same device type in the plurality of access devices into one type to obtain at least one device set; determining the priority of at least one equipment set according to the equipment type corresponding to each equipment set; determining the priority of the access equipment in each equipment set according to the second information corresponding to each access equipment in each equipment set; And determining the priorities of the access devices according to the priorities of the at least one device set and the priorities of the access devices in each device set.
  3. 3. The network data transmission method of claim 2, wherein the second information comprises at least one of last active time, network delay information; The last active time is the time of last data transmission between the target terminal equipment and the access equipment corresponding to the connection source information, and the network delay information is the network delay between the target terminal equipment and the access equipment corresponding to the connection source information.
  4. 4. The network data transmission method according to claim 1 or 2, characterized in that the network data transmission method further comprises: Receiving a third data packet sent by the target access device, wherein the third data packet comprises the target connection source information, and the target connection source information comprises a source address, a source port and an identifier of the target access device; determining the target session identifier corresponding to the target connection source information according to the second mapping relation; determining the destination information corresponding to the target session identifier according to the first mapping relation; and sending the third data packet to the server according to the destination information.
  5. 5. The network data transmission method according to claim 2, wherein the destination connection source information includes a source address, a source port, and an identifier of the destination access device, and before the receiving the first data packet sent by the server, the network data transmission method further includes: Receiving a network connection request sent by the target access equipment; When the network connection request comprises the source address, the source port and the destination information, establishing a session between the target terminal equipment and the server, and distributing the target session identifier for the session; Transmitting the target session identification to the target terminal device via the target access device; Establishing a first mapping relation between the target session identifier and the target information, and establishing a second mapping relation between the target session identifier and the target connection source information; and storing state information corresponding to the target connection source information.
  6. 6. The network data transmission method according to claim 5, characterized in that the network data transmission method further comprises: When the network connection request comprises the source address, the source port and the target session identifier, a second mapping relation between the target session identifier and the target connection source information is established, and state information corresponding to the target connection source information is stored.
  7. 7. The network data transmission method according to claim 5, wherein the sending, via the target access device, the target session identifier to the target terminal device includes: encrypting the target session identifier by adopting a preset algorithm; and sending the encrypted target session identification to the target terminal equipment through the target access equipment.
  8. 8. A transmission apparatus for network data, comprising: The receiving module is used for receiving a first data packet sent by a server, wherein the first data packet comprises destination information, and the destination information comprises information used by the server for communication with target terminal equipment; The first determining module is used for determining a target session identifier corresponding to the destination information according to a first mapping relation between the stored session identifier and the destination information, wherein the target session identifier is used for identifying a session between the target terminal equipment and the server; the second determining module is used for determining at least one piece of connection source information corresponding to the target session identifier according to a second mapping relation between the stored session identifier and the connection source information, wherein the connection source information comprises information used by the target terminal device for communication with the server through the access device; The third determining module is configured to determine, according to the at least one connection source information, target connection source information, wherein the target access device corresponding to the target connection source information and the target terminal device are in a connection state, determine, according to the at least one connection source information, the target connection source information when the at least one connection source information includes a plurality of connection source information, wherein the determining includes obtaining state information corresponding to each connection source information in the plurality of connection source information, the state information including first information and second information, the first information being used for indicating whether the target terminal device and the access device corresponding to the connection source information are in a connection state, the second information being used for indicating communication parameter information between the target terminal device and the access device corresponding to the connection source information, determining, according to the plurality of second information and a device type of each access device in the plurality of connection source information, a priority of the access device corresponding to the first information being used for indicating that the access device corresponding to the highest priority is in the connection state, and determining, as the target connection source information; And the sending module is used for sending a second data packet to the target terminal equipment through the target access equipment, wherein the second data packet comprises the first data packet and the target connection source information.
  9. 9. A computer device comprising a processor and a memory, the memory for storing computer program code, the computer program code comprising computer instructions which, when executed by the processor, perform the network data transmission method of any of claims 1-7.
  10. 10. A computer readable storage medium comprising computer instructions which, when run on a computer device, cause the computer device to perform the network data transmission method of any of claims 1-7.

Description

Network data transmission method, device and storage medium Technical Field The present invention relates to the field of communications technologies, and in particular, to a network data transmission method, device, and storage medium. Background The satellite network is a network for completing data transmission among nodes by means of the capability of the satellite transponder for relaying signals, and has the advantages of long service distance, wide service range, no limitation of geographic conditions, high system reliability, strong destruction performance and the like. The ground network refers to a network that completes data transmission between nodes by means of the capability of the ground access device to relay signals. The satellite network may supplement the ground-based network to provide network services for the terminal devices. In the prior art, a terminal device performs network switching, for example, the terminal device switches from a ground network to a satellite network, or the terminal device switches from one network access device to another network access device in the same network, where the network address of the terminal device is changed, that is, the network addresses used before and after the terminal device switches networks are different. This makes it necessary for the terminal device to disconnect the previous network connection first, then to establish a new network connection based on the new network address, and to use the new network for data transmission. The implementation process of network switching is too complex, the continuity of data transmission cannot be guaranteed, and the reliability of communication is low. Disclosure of Invention The invention provides a network data transmission method, a device and a storage medium, which can ensure the continuity of network data transmission and improve the reliability of communication between terminal equipment and a server. In order to achieve the above purpose, the invention adopts the following technical scheme: In a first aspect, the present invention provides a network data transmission method, the method comprising: Receiving a first data packet sent by a server, wherein the first data packet comprises destination information, and the destination information comprises information used by the server for communication with target terminal equipment; Determining a target session identifier corresponding to the destination information according to a first mapping relation between the stored session identifier and the destination information, wherein the target session identifier is used for identifying a session between target terminal equipment and a server; Determining at least one piece of connection source information corresponding to the target session identifier according to a second mapping relation between the stored session identifier and the connection source information, wherein the connection source information comprises information used by the target terminal equipment for communication with the server through the access equipment; determining target connection source information according to at least one connection source information, wherein target access equipment corresponding to the target connection source information is in a connection state with target terminal equipment; and sending a second data packet to the target terminal equipment through the target access equipment, wherein the second data packet comprises the first data packet and target connection source information. In one possible implementation manner, when the at least one connection source information comprises a plurality of connection source information, determining target connection source information according to the at least one connection source information comprises obtaining state information corresponding to each connection source information in the plurality of connection source information, wherein the state information comprises first information and second information, the first information is used for indicating whether a target terminal device is in a connection state with access equipment corresponding to the connection source information, the second information is used for indicating communication parameter information between the target terminal device and the access equipment corresponding to the connection source information, priority of the plurality of access equipment is determined according to the plurality of second information and equipment types of the access equipment corresponding to the plurality of connection source information, and the first information is used for indicating the state information in the connection state, wherein the connection source information corresponding to the access equipment with the highest priority is determined to be the target connection source information. In one possible implementation manner, the priority of the access devices is determined according to the second