CN111372102B - Data transmission method, device, terminal equipment and storage medium - Google Patents

Data transmission method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN111372102B
CN111372102B CN202010081785.5A CN202010081785A CN111372102B CN 111372102 B CN111372102 B CN 111372102B CN 202010081785 A CN202010081785 A CN 202010081785A CN 111372102 B CN111372102 B CN 111372102B
Authority
CN
China
Prior art keywords
network card
channel identifier
card channel
point information
terminal equipment
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.)
Active
Application number
CN202010081785.5A
Other languages
Chinese (zh)
Other versions
CN111372102A (en
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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN202010081785.5A priority Critical patent/CN111372102B/en
Publication of CN111372102A publication Critical patent/CN111372102A/en
Application granted granted Critical
Publication of CN111372102B publication Critical patent/CN111372102B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6402Address allocation for clients

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Graphics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a data transmission method, a data transmission device, terminal equipment and a storage medium, wherein the data transmission method comprises the following steps: acquiring a detection data packet sent by terminal equipment, wherein the detection data packet at least comprises a target network card channel identifier and first terminal point information; acquiring second destination node information corresponding to the target network card channel identifier according to a pre-established destination node information and network card channel identifier corresponding table; if the first termination point information is inconsistent with the second termination point information, updating the second termination point information in the pre-established correspondence table of the termination point information and the network card channel identifier into the first termination point information according to the network card channel identifier; and carrying out data transmission with the terminal equipment according to the first terminal node information. Therefore, according to the technical scheme provided by the embodiment of the invention, when the IP of the terminal equipment is changed, the server adopts the updating strategy, so that the phenomenon that the data is different in the uplink and downlink processes due to the packet loss in the downlink process is avoided.

Description

Data transmission method, device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data transmission method, an apparatus, a terminal device, and a storage medium.
Background
With the rapid development of network technologies, bidirectional communications such as video conferences and video teaching are widely popularized in the aspects of life, work, learning and the like of users.
In practice, with the development of mobile services, when a terminal device and a server perform media stream data transmission, the server and the terminal device are connected through a UDP termination point, and after the terminal device moves from an area a to an area B, an IP address connected to the terminal device changes due to a change of a core network.
When the media stream is transmitted to the server, the terminal device may transmit the media stream data to the server according to an actual real-time end point, so that the server performs link aggregation; however, when the server is down-bound, that is, when the server transmits media stream data to each terminal device, the server considers that there is one more link, and when the server transmits the media stream data, the media stream data is distributed according to the mode of N +1 links, so that 1/(N + 1) of data is lost, and a packet loss phenomenon occurs.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a data transmission method, apparatus, terminal device and storage medium that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a data transmission method, where the method includes:
acquiring a detection data packet sent by terminal equipment, wherein the detection data packet at least comprises a target network card channel identifier and first destination node information;
according to a pre-established corresponding table of the destination node information and the network card channel identifier, obtaining second destination node information corresponding to the target network card channel identifier;
if the first termination point information is inconsistent with the second termination point information, updating the second termination point information in the pre-established correspondence table of the termination point information and the network card channel identifier into the first termination point information according to the target network card channel identifier;
and carrying out data transmission with the terminal equipment according to the first terminal node information.
Optionally, before obtaining the detection data packet sent by the terminal device, the method further includes:
receiving a socket request sent by the terminal device through the network card, wherein the request comprises second destination point information of the network card, and the second destination point information comprises an IP address and a port number of the network card;
establishing a network card channel with the terminal equipment according to the IP address and the port number of the network card;
acquiring a network card channel identifier of the network card channel;
and storing the second destination point information, the network card channel identifier and the corresponding relation between the second destination point information and the network card channel identifier in the pre-established corresponding table of the destination point information and the network card channel identifier.
Optionally, the detecting data packet includes a heartbeat data packet, and the acquiring the detecting data packet sent by the terminal device specifically includes:
acquiring heartbeat data packets sent by the terminal equipment through the network card at preset time intervals in a non-service state;
or
The detecting data packet includes a service data packet, and the acquiring of the detecting data packet sent by the terminal device specifically includes:
and acquiring a service data packet sent by the terminal equipment through the network card in a service state.
Optionally, the network card channel identifier is specifically a serial number corresponding to the network card.
In a second aspect, an embodiment of the present invention provides a data transmission apparatus, where the apparatus includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a detection data packet sent by terminal equipment, and the detection data packet at least comprises a target network card channel identifier and first terminal point information;
the determining module is used for acquiring second destination node information corresponding to the target network card channel identifier according to a pre-established destination node information and network card channel identifier corresponding table;
an updating module, configured to update the second destination information in the pre-established correspondence table of the destination information and the network card channel identifier to the first destination information according to the target network card channel identifier if the first destination information is inconsistent with the second destination information;
and the transmission module is used for carrying out data transmission with the terminal equipment according to the first terminal node information.
Optionally, the apparatus further comprises a storage module, the storage module is configured to:
receiving a socket request sent by the terminal device through the network card, wherein the request comprises second destination point information of the network card, and the second destination point information comprises an IP address and a port number of the network card;
establishing a network card channel according to the IP address and the port number of the network card and the network card of the terminal equipment;
acquiring a network card channel identifier of the network card channel;
and storing the second destination point information, the network card channel identifier and the corresponding relation between the second destination point information and the network card channel identifier in the pre-established corresponding table of the destination point information and the network card channel identifier.
Optionally, the detection data packet includes a heartbeat data packet, and the obtaining module is specifically configured to:
acquiring heartbeat data packets sent by the terminal equipment through the network card at preset time intervals in a non-service state;
or
The detection data packet includes a service data packet, and the obtaining module is specifically configured to:
and acquiring a service data packet sent by the terminal equipment through the network card in a service state.
Optionally, the network card channel identifier is specifically a serial number corresponding to the network card.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the data transmission method provided by the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed, the computer program implements the data transmission method provided in the first aspect.
The technical scheme provided by the embodiment of the invention is applied to a server and comprises the following steps: acquiring a detection data packet sent by terminal equipment, wherein the detection data packet at least comprises a target network card channel identifier and first terminal point information; acquiring second destination node information corresponding to the target network card channel identifier according to a pre-established destination node information and network card channel identifier corresponding table; (ii) a If the first termination point information is inconsistent with the second termination point information, updating the second termination point information in the pre-established correspondence table of the termination point information and the network card channel identifier into the first termination point information according to the network card channel identifier; and carrying out data transmission with the terminal equipment according to the first terminal point information. Therefore, according to the technical scheme provided by the embodiment of the invention, when the IP of the terminal equipment changes, the server updates the pre-established destination node information and the destination node information in the corresponding table of the network card channel identifier according to the received destination channel identifier sent by the terminal equipment, and adopts the updated destination node information to perform data transmission with the terminal equipment, so that the phenomenon that the difference exists between the uplink and downlink data due to the packet loss in the downlink process is avoided.
Drawings
FIG. 1 is a flow chart of the steps of one embodiment of a data transmission method of the present invention;
FIG. 2 is a flow chart of steps in another data transmission method embodiment of the present invention;
FIG. 3 is a flow chart of the steps of yet another data transmission method embodiment of the present invention;
FIG. 4 is a flow chart of steps of yet another data transmission method embodiment of the present invention;
FIG. 5 is a flow chart of steps in another data transmission method embodiment of the present invention;
FIG. 6 is a block diagram of an embodiment of a data transmission apparatus according to the present invention;
fig. 7 is a schematic structural diagram of a terminal device of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone of network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of Internet applications to high-definition video, and high definition is face-to-face.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
The nouns are explained as follows:
DHCP: the Dynamic Host Configuration Protocol is a network Protocol of a local area network. The method is characterized in that a server controls a segment of lP address range, and a client can automatically obtain the lP address and the subnet mask distributed by the server when logging in the server.
GGSN: the Gateway GPRS Support Node, the Gateway GPRS Support Node and the boundary between the GPRS network and the external network are internally responsible for the transmission of the Gn network and externally are an Internet router. The BGGSN (Border GGSN) is responsible for connecting Gn networks between different operators to implement inter-network roaming. The GGSN is connected to other GGSNs and SGSNs via a GPRS backbone network based on IP protocol.
The establishment of a network transmission is established on a fixed IP address + port, and the end EndPoint is used as the identifier of a network channel link. Generally, there is one and only one EndPoint when one network card establishes a connection. According to the networking mode of the core network, the base station and the terminal, the IP address of the terminal device may or may not change during the networking process, and specifically, the IP address changes mainly in the following cases 2 and 3:
1. the IP address cannot be changed when the base station is switched in the same area;
the 4G ensures seamless switching between the base stations, namely the process of switching the base stations, as long as the network is not disconnected (4G link, not data switch) in the switching process, the random access is not initiated again, and the original IP address of the IP address is obtained;
2. the access is reinitiated, and the IP address is changed;
the access is reinitiated, the IP address can be changed, and after the IP address is allocated to the core network, the GGSN core network automatically allocates according to the DHCP protocol; the re-initiation of the access process, which may be a power-on restart or an airplane mode switch, is a process from no signal to a signal.
3. From one area to another, the IP address may change;
the IP address allocation is allocated by a regional GGSN core network, for example, the terminal equipment is currently accessed to the communication network of the A region in the A region, the outlet IP address is also the communication network of the A region, but when the terminal equipment moves from the A region to the B region, the access network is changed into the communication network of the B region, and the IP address connected with the terminal equipment is definitely changed;
an embodiment of the present invention mainly addresses the situation in item 3, where an embodiment of the present invention provides a data transmission method, which is used for a server to update termination point information corresponding to a network card channel identifier according to the network card channel identifier sent by a terminal device. The execution main body of the embodiment is a data transmission device and is arranged on the server.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a data transmission method according to the present invention is shown, where the method may be applied to a server, and specifically may include the following steps:
s101, acquiring a detection data packet sent by terminal equipment, wherein the detection data packet at least comprises a target network card channel identifier and first destination node information;
optionally, the terminal device may be a 4G multi-network card aggregation terminal, and the terminal device has a function of simultaneously transmitting data by using a multi-network card link, that is, a plurality of network cards may be simultaneously installed on the terminal device.
In the embodiment of the present invention, one network card may be installed on the terminal device, or multiple network cards may be installed on the terminal device, and specifically, the network card may be set according to actual needs, which is not specifically limited in the embodiment of the present invention.
The terminal device establishes a network card channel with the server through the network card, and sends a detection data packet to the server through the established network card channel, wherein the data packet carries a network card channel identifier and first end point information, and the first end point information is EndPoint and comprises an IP address and a port number.
S102, obtaining second destination node information corresponding to the target network card channel identification according to a pre-established destination node information and network card channel identification corresponding table;
specifically, a correspondence table of destination node information and network card channel identifiers is pre-established on the server, and communication is performed with the terminal device according to the destination node information in the correspondence table, and in order to ensure that no packet loss occurs in the downlink process, after receiving a detection data packet sent by the terminal device, the server determines second destination node information corresponding to a destination network card channel identifier in the detection data packet according to the destination network card channel identifier in the detection data packet.
S103, if the first termination point information is inconsistent with the second termination point information, updating the second termination point information in the pre-established correspondence table of the termination point information and the network card channel identifier into the first termination point information according to the target network card channel identifier;
optionally, the network card channel identifier is specifically a serial number corresponding to the network card, that is, an ID number corresponding to the network card, and the serial number of the network card does not change in the process of data transmission between the terminal device and the server through the network card.
After the server acquires the first terminal information and the second terminal information, the first terminal information and the second terminal information are compared, if the first terminal information and the second terminal information are the same, the IP address of the terminal equipment is not changed, and the terminal information in a pre-established correspondence table of the terminal information and the network card channel identifier does not need to be updated;
if the two are not consistent, the IP address of the terminal device is changed, and the server updates the pre-established destination node information and the second destination node information corresponding to the destination network card channel identifier in the correspondence table of the network card channel identifiers to the first destination node information according to the destination network card channel identifier, namely, the original destination node information is updated to new destination node information.
And S104, carrying out data transmission with the terminal equipment according to the first terminal node information.
Specifically, after updating the destination node information corresponding to the target network card channel identifier, the server performs data transmission with the terminal device according to the updated first destination node information, that is, the IP address and the port number, thereby avoiding the problem of adding a new link due to the change of the IP address in the prior art.
The data transmission method provided by the embodiment of the invention comprises the steps of obtaining a detection data packet sent by a terminal device, wherein the detection data packet at least comprises a target network card channel identifier and first terminal point information; acquiring second destination node information corresponding to the target network card channel identifier according to a pre-established destination node information and network card channel identifier correspondence table; if the first termination point information is inconsistent with the second termination point information, updating the second termination point information in the pre-established correspondence table of the termination point information and the network card channel identifier into the first termination point information according to the network card channel identifier; and carrying out data transmission with the terminal equipment according to the first terminal node information. Therefore, according to the technical scheme provided by the embodiment of the invention, when the IP of the terminal equipment changes, the server updates the pre-established destination node information and the destination node information in the corresponding table of the network card channel identifier according to the received destination channel identifier sent by the terminal equipment, and adopts the updated destination node information to perform data transmission with the terminal equipment, so that the phenomenon that the difference exists between the uplink and downlink data due to the packet loss in the downlink process is avoided.
The method provided by the above embodiment is further described in an additional embodiment of the present invention.
As shown in fig. 2, which shows a flowchart of steps of another embodiment of the data transmission method of the present invention, before step S101, the method further includes:
s001, receiving a socket request sent by the terminal device through the network card, wherein the request comprises second destination point information of the network card, and the second destination point information comprises an IP address and a port number of the network card;
specifically, the terminal device sends a socket request to the server through the network card, and the request includes second endpoint information of the network card, specifically, an IP address allocated by the core network for the network card, and a port number randomly allocated by the socket.
S002, establishing a network card channel with the terminal equipment according to the IP address and the port number of the network card;
after receiving a socket request sent by the terminal equipment, the server establishes a network card channel with the terminal equipment through the IP address and the port number of the network card, and if the terminal equipment has a plurality of network cards, the terminal equipment can establish a plurality of network card channels with the server through the plurality of network cards;
s003, obtaining a network card channel identifier of the network card channel;
after the server and the terminal device establish the network card channel through the network card, the server obtains the network card channel identifier of each network card channel, namely the serial number corresponding to each network card.
S004, storing the second destination point information, the network card channel identifier, and the corresponding relationship between the second destination point information and the network card channel identifier in the pre-established correspondence table between the destination point information and the network card channel identifier.
The server stores the IP address, the port number and the serial number sent by the terminal equipment through the network card, stores the corresponding relation between the IP address, the port number and the serial number, and determines the corresponding relation between the destination node information (the IP address and the port number) and the network card channel identifier (the serial number) as a pre-established corresponding table of the destination node information and the network card channel identifier, so that the original destination node information can be updated according to the network card channel identifier if the IP address changes in the subsequent process.
If a new network card needs to communicate with the server, the destination information (IP address and port number) and the network card channel identifier (serial number) need to be added to the corresponding table of the destination information and the network card channel identifier according to the above steps.
As shown in fig. 3, which is a flowchart illustrating steps of another embodiment of a data transmission method according to the present invention, as an alternative implementation manner, the detection data packet includes a heartbeat data packet, and the data transmission method includes:
s301, acquiring heartbeat data packets sent by the terminal equipment through the network card at intervals of preset time in a non-service state, wherein the heartbeat data packets at least comprise a target network card channel identifier and first destination node information;
specifically, after the network card channel is established between the terminal device and the server, in order to ensure normal communication of the network link, the terminal device sends a heartbeat data packet to the server at preset intervals in a state without service, that is, in an idle state, and the heartbeat data packet at least includes a target network card channel identifier and first end point information.
S302, according to a pre-established correspondence table of the destination node information and the network card channel identifier, obtaining second destination node information corresponding to the target network card channel identifier;
s303, if the first destination node information is inconsistent with the second destination node information, updating the second destination node information in the pre-established correspondence table of destination node information and network card channel identifier to the first destination node information according to the target network card channel identifier;
optionally, the network card channel identifier is specifically a serial number corresponding to the network card.
And S304, carrying out data transmission with the terminal equipment according to the first terminal node information.
Due to steps S302 to S304, the steps are the same as steps S102 to S104 in the embodiment shown in fig. 1. Steps S102 to S104 have already been described in detail in fig. 1, and therefore, steps S302 to S304 are not described again here.
As shown in fig. 4, a flowchart illustrating steps of another embodiment of a data transmission method according to the present invention is shown, and as another alternative implementation manner, the detection data packet includes a service data packet, and the transmission method includes:
s401, in a service state, acquiring a service data packet sent by the terminal device through the network card, wherein the service data packet at least comprises a target network card channel identifier and first destination node information.
Specifically, when the terminal device is in a service state, for example, the terminal device sends a media stream data packet to the server through the network card, the server receives the media stream data packet sent by the terminal device, and acquires a destination network card channel identifier and first destination node information included in the media stream data packet.
S402, according to a pre-established corresponding table of the destination node information and the network card channel identifier, obtaining second destination node information corresponding to the target network card channel identifier;
s403, if the first termination point information is inconsistent with the second termination point information, updating the second termination point information in the pre-established correspondence table between the termination point information and the network card channel identifier to the first termination point information according to the target network card channel identifier;
optionally, the network card channel identifier is specifically a serial number corresponding to the network card.
And S404, carrying out data transmission with the terminal equipment according to the first terminal node information.
Due to steps S402 to S404, the same as steps S102 to S104 in the embodiment shown in fig. 1. Steps S102 to S104 have already been described in detail in fig. 1, and therefore, steps S402 to S404 are not described again here.
As shown in fig. 5, a flow chart of steps of another embodiment of a data transmission method of the present invention is shown, where the data transmission method includes:
s501, registering to acquire a network card channel identifier and terminal point information;
specifically, a plurality of network cards are arranged on the mobile terminal, each network card is registered on the server, the mobile terminal sends network card information, namely an IP address, a port number and an ID number, to the server through the network card, and correspondingly, the server obtains the IP address, the port number and the ID number corresponding to each network card, wherein the IP address and the port number are terminal information, and the ID number is a network card channel identifier.
S502, according to the network card information, the mobile terminal establishes an effective network card channel with the server through each network card;
s503, in practical application, the server receives a data packet sent by the mobile terminal, detects the type of the data packet, namely judges whether the data packet is a service state media packet or a non-service state heartbeat packet;
s504, the server judges the destination node information carried in the data packet;
s505, if the destination node information carried in the data packet changes, immediately updating the channel information, and covering the original destination node information with new destination node information;
and if the termination information carried in the data packet is not changed, keeping the original termination information.
By adopting the data transmission method provided by the embodiment of the invention, if the IP address of the mobile terminal changes, the corresponding strategy is only modified at the server, and the service on the mobile terminal is not influenced.
The data transmission method provided by the embodiment of the invention comprises the steps of obtaining a detection data packet sent by a terminal device, wherein the detection data packet at least comprises a target network card channel identifier and first destination node information; acquiring second destination node information corresponding to the target network card channel identifier according to a pre-established destination node information and network card channel identifier corresponding table; if the first termination point information is inconsistent with the second termination point information, updating the second termination point information in the pre-established correspondence table of the termination point information and the network card channel identifier into the first termination point information according to the network card channel identifier; and carrying out data transmission with the terminal equipment according to the first terminal node information. Therefore, according to the technical scheme provided by the embodiment of the invention, when the IP of the terminal equipment is changed, the server updates the pre-established destination node information and the destination node information in the corresponding table of the network card channel identifier according to the received destination channel identifier sent by the terminal equipment, and adopts the updated destination node information to perform data transmission with the terminal equipment, so that the phenomenon that the difference exists between the uplink data and the downlink data due to the packet loss in the downlink process is avoided.
Another embodiment of the present invention provides a data transmission apparatus, configured to execute the data transmission method provided in the foregoing embodiment.
Referring to fig. 6, a block diagram of a data transmission apparatus according to an embodiment of the present invention is shown, and is applied to a server, and specifically includes the following modules: an obtaining module 601, a determining module 602, an updating module 603, and a transmitting module 604, wherein:
the obtaining module 601 is configured to obtain a detection data packet sent by a terminal device, where the detection data packet at least includes a target network card channel identifier and first destination node information;
the determining module 602 is configured to obtain, according to a pre-established correspondence table between destination node information and a network card channel identifier, second destination node information corresponding to the target network card channel identifier;
the updating module 603 is configured to update the second termination information in the pre-established correspondence table between the termination information and the network card channel identifier to the first termination information according to the target network card channel identifier if the first termination information is inconsistent with the second termination information;
the transmission module 604 is configured to perform data transmission with the terminal device according to the first destination node information.
The data transmission device provided by the embodiment of the invention obtains the detection data packet sent by the terminal equipment, wherein the detection data packet at least comprises the channel identifier of the target network card and the first destination node information; acquiring second destination node information corresponding to the target network card channel identifier according to a pre-established destination node information and network card channel identifier corresponding table; if the first termination point information is inconsistent with the second termination point information, updating the second termination point information in the pre-established correspondence table of the termination point information and the network card channel identifier into the first termination point information according to the network card channel identifier; and carrying out data transmission with the terminal equipment according to the first terminal node information. Therefore, according to the technical scheme provided by the embodiment of the invention, when the IP of the terminal equipment changes, the server updates the pre-established destination node information and the destination node information in the corresponding table of the network card channel identifier according to the received destination channel identifier sent by the terminal equipment, and adopts the updated destination node information to perform data transmission with the terminal equipment, so that the phenomenon that the difference exists between the uplink and downlink data due to the packet loss in the downlink process is avoided.
The device provided by the above embodiment is further described in an additional embodiment of the present invention.
Optionally, the apparatus further comprises a storage module, the storage module is configured to:
receiving a socket request sent by the terminal device through the network card, wherein the request comprises second destination point information of the network card, and the second destination point information comprises an IP address and a port number of the network card;
establishing a network card channel according to the IP address and the port number of the network card and the network card of the terminal equipment;
acquiring a network card channel identifier of the network card channel;
and storing the second destination point information, the network card channel identifier and the corresponding relation between the second destination point information and the network card channel identifier in the pre-established corresponding table of the destination point information and the network card channel identifier.
Optionally, the detection data packet includes a heartbeat data packet, and the obtaining module 601 is specifically configured to:
acquiring heartbeat data packets sent by the terminal equipment through the network card at preset time intervals in a non-service state;
or
The detection data packet includes a service data packet, and the obtaining module 601 is specifically configured to:
and acquiring a service data packet sent by the terminal equipment through the network card in a service state.
Optionally, the network card channel identifier is specifically a serial number corresponding to the network card.
It should be noted that the respective implementable modes in the present embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present application is not limited thereto.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The data transmission device provided by the embodiment of the invention obtains the detection data packet sent by the terminal equipment, wherein the detection data packet at least comprises the channel identifier of the target network card and the first destination node information; acquiring second destination node information corresponding to the target network card channel identifier according to a pre-established destination node information and network card channel identifier corresponding table; if the first termination point information is inconsistent with the second termination point information, updating the second termination point information in the pre-established correspondence table of the termination point information and the network card channel identifier into the first termination point information according to the network card channel identifier; and carrying out data transmission with the terminal equipment according to the first terminal node information. Therefore, according to the technical scheme provided by the embodiment of the invention, when the IP of the terminal equipment changes, the server updates the pre-established destination node information and the destination node information in the corresponding table of the network card channel identifier according to the received destination channel identifier sent by the terminal equipment, and adopts the updated destination node information to perform data transmission with the terminal equipment, so that the phenomenon that the difference exists between the uplink and downlink data due to the packet loss in the downlink process is avoided.
Still another embodiment of the present invention provides a terminal device, configured to execute the data transmission method provided in the foregoing embodiment.
Fig. 7 is a schematic structural diagram of a terminal device of the present invention, and as shown in fig. 7, the terminal device includes: at least one processor 701 and memory 702;
the memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the data transmission method provided by the above-mentioned embodiments.
In the terminal device provided in this embodiment, a detection data packet sent by the terminal device is obtained, where the detection data packet at least includes a target network card channel identifier and first destination node information; acquiring second destination node information corresponding to the target network card channel identifier according to a pre-established destination node information and network card channel identifier corresponding table; if the first termination point information is inconsistent with the second termination point information, updating the second termination point information in the pre-established correspondence table of the termination point information and the network card channel identifier into the first termination point information according to the network card channel identifier; and carrying out data transmission with the terminal equipment according to the first terminal node information. Therefore, according to the technical scheme provided by the embodiment of the invention, when the IP of the terminal equipment changes, the server updates the pre-established destination node information and the destination node information in the corresponding table of the network card channel identifier according to the received destination channel identifier sent by the terminal equipment, and adopts the updated destination node information to perform data transmission with the terminal equipment, so that the phenomenon that the difference exists between the uplink and downlink data due to the packet loss in the downlink process is avoided.
Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed, the computer program implements the data transmission method provided in any one of the above embodiments.
According to the computer-readable storage medium of the embodiment, a detection data packet sent by a terminal device is acquired, wherein the detection data packet at least comprises a target network card channel identifier and first destination node information; acquiring second destination node information corresponding to the target network card channel identifier according to a pre-established destination node information and network card channel identifier corresponding table; if the first termination point information is inconsistent with the second termination point information, updating the second termination point information in the pre-established correspondence table of the termination point information and the network card channel identifier into the first termination point information according to the network card channel identifier; and carrying out data transmission with the terminal equipment according to the first terminal point information. Therefore, according to the technical scheme provided by the embodiment of the invention, when the IP of the terminal equipment changes, the server updates the pre-established destination node information and the destination node information in the corresponding table of the network card channel identifier according to the received destination channel identifier sent by the terminal equipment, and adopts the updated destination node information to perform data transmission with the terminal equipment, so that the phenomenon that the difference exists between the uplink and downlink data due to the packet loss in the downlink process is avoided.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or terminal apparatus that comprises the element.
The data transmission method and the data transmission device provided by the invention are described in detail, and the principle and the implementation mode of the invention are explained by applying specific examples, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of data transmission, the method comprising:
acquiring a detection data packet sent by terminal equipment, wherein the detection data packet at least comprises a target network card channel identifier and first destination node information; the network card channel identifier is an identifier of a network card channel established by the terminal equipment through the network card and the server; the destination node information at least comprises an IP address and a port number;
acquiring second destination node information corresponding to the target network card channel identifier according to a pre-established destination node information and network card channel identifier corresponding table; the pre-established correspondence table of the destination node information and the network card channel identifier is determined by the server receiving a socket request sent by the terminal equipment through the network card and according to the destination node information and the network card channel in the socket request;
if the first termination point information is inconsistent with the second termination point information, updating the second termination point information in the pre-established correspondence table of the termination point information and the network card channel identifier into the first termination point information according to the target network card channel identifier;
and carrying out data transmission with the terminal equipment according to the first terminal point information.
2. The method of claim 1, wherein before obtaining the detection packet sent by the terminal device, the method further comprises:
receiving a socket request sent by the terminal device through a network card, wherein the request comprises second destination point information of the network card, and the second destination point information comprises an IP address and a port number of the network card;
establishing a network card channel with the terminal equipment according to the IP address and the port number of the network card;
acquiring a network card channel identifier of the network card channel;
and storing the second destination point information, the network card channel identifier and the corresponding relation between the second destination point information and the network card channel identifier in the pre-established corresponding table of the destination point information and the network card channel identifier.
3. The method according to claim 1, wherein the detection packet includes a heartbeat packet, and the acquiring the detection packet sent by the terminal device specifically includes:
acquiring heartbeat data packets sent by the terminal equipment through a network card at preset time intervals in a non-service state;
or
The detecting data packet includes a service data packet, and the acquiring of the detecting data packet sent by the terminal device specifically includes:
and acquiring a service data packet sent by the terminal equipment through a network card in a service state.
4. The method according to any one of claims 2 or 3, wherein the network card channel identifier is specifically a serial number corresponding to the network card.
5. A data transmission apparatus, characterized in that the apparatus comprises:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a detection data packet sent by terminal equipment, and the detection data packet at least comprises a target network card channel identifier and first terminal point information; the network card channel identifier is an identifier of a network card channel established by the terminal equipment through the network card and the server; the destination node information at least comprises an IP address and a port number; the determining module is used for acquiring second destination node information corresponding to the target network card channel identifier according to a pre-established destination node information and network card channel identifier corresponding table; the pre-established correspondence table of the destination node information and the network card channel identifier is determined by the server receiving a socket request sent by the terminal equipment through the network card and according to the destination node information and the network card channel in the socket request;
an updating module, configured to update the second destination information in the pre-established correspondence table of the destination information and the network card channel identifier to the first destination information according to the target network card channel identifier if the first destination information is inconsistent with the second destination information;
and the transmission module is used for carrying out data transmission with the terminal equipment according to the first terminal node information.
6. The apparatus of claim 5, further comprising a storage module configured to:
receiving a socket request sent by the terminal device through a network card, wherein the request comprises second destination point information of the network card, and the second destination point information comprises an IP address and a port number of the network card;
establishing a network card channel according to the IP address and the port number of the network card and the network card of the terminal equipment;
acquiring a network card channel identifier of the network card channel;
and storing the second destination point information, the network card channel identifier and the corresponding relation between the second destination point information and the network card channel identifier in the pre-established corresponding table of the destination point information and the network card channel identifier.
7. The apparatus of claim 5, wherein the detection packet comprises a heartbeat packet, and the obtaining module is specifically configured to:
acquiring heartbeat data packets sent by the terminal equipment through a network card at preset time intervals in a non-service state;
or
The detection data packet includes a service data packet, and the obtaining module is specifically configured to:
and acquiring a service data packet sent by the terminal equipment through a network card in a service state.
8. The apparatus according to any one of claims 6 or 7, wherein the network card channel identifier is specifically a serial number corresponding to the network card.
9. A terminal device, comprising: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the data transfer method of any of claims 1-4.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the data transmission method of any one of claims 1 to 4.
CN202010081785.5A 2020-02-06 2020-02-06 Data transmission method, device, terminal equipment and storage medium Active CN111372102B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010081785.5A CN111372102B (en) 2020-02-06 2020-02-06 Data transmission method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010081785.5A CN111372102B (en) 2020-02-06 2020-02-06 Data transmission method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111372102A CN111372102A (en) 2020-07-03
CN111372102B true CN111372102B (en) 2022-10-28

Family

ID=71209996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010081785.5A Active CN111372102B (en) 2020-02-06 2020-02-06 Data transmission method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111372102B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112910749B (en) * 2021-01-18 2022-02-01 国汽智控(北京)科技有限公司 CAN channel connection equipment identification method and data transmission method and system
CN113691858A (en) * 2021-08-31 2021-11-23 Vidaa美国公司 Display device and interface display method
CN115102928A (en) * 2022-08-27 2022-09-23 北京蔚领时代科技有限公司 Connection migration method based on cloud game server, storage medium and processing equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754305A (en) * 2008-12-04 2010-06-23 华为技术有限公司 Method, device and system for realizing the switching of data gateway
CN105325031A (en) * 2014-05-30 2016-02-10 华为技术有限公司 Service path changing method and device
CN105516302A (en) * 2015-12-07 2016-04-20 东软集团股份有限公司 Data processing method and network device
CN105898471A (en) * 2015-11-11 2016-08-24 乐卡汽车智能科技(北京)有限公司 Vehicle-mounted audio and video transmission method and system, vehicle-mounted terminal and server
CN107979854A (en) * 2016-10-25 2018-05-01 华为技术有限公司 A kind of wireless routing switching method, couple in router and communication terminal
CN108777722A (en) * 2018-04-25 2018-11-09 广州视源电子科技股份有限公司 Multisystem group-net communication method, apparatus, mobile terminal and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6768726B2 (en) * 2002-08-06 2004-07-27 Motorola, Inc. Method and apparatus for effecting a seamless handoff between IP connections
TWI523464B (en) * 2014-01-27 2016-02-21 台達電子工業股份有限公司 Network card capable of searching ability, monitoring device including the network card and searching method used for the network card and the monitoring device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754305A (en) * 2008-12-04 2010-06-23 华为技术有限公司 Method, device and system for realizing the switching of data gateway
CN105325031A (en) * 2014-05-30 2016-02-10 华为技术有限公司 Service path changing method and device
CN105898471A (en) * 2015-11-11 2016-08-24 乐卡汽车智能科技(北京)有限公司 Vehicle-mounted audio and video transmission method and system, vehicle-mounted terminal and server
CN105516302A (en) * 2015-12-07 2016-04-20 东软集团股份有限公司 Data processing method and network device
CN107979854A (en) * 2016-10-25 2018-05-01 华为技术有限公司 A kind of wireless routing switching method, couple in router and communication terminal
CN108777722A (en) * 2018-04-25 2018-11-09 广州视源电子科技股份有限公司 Multisystem group-net communication method, apparatus, mobile terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TCP/IP协议的安全性分析;林;《大连民族学院学报》;20061115(第05期);全文 *

Also Published As

Publication number Publication date
CN111372102A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
US10931423B2 (en) Telecommunications apparatus and methods
CN111372102B (en) Data transmission method, device, terminal equipment and storage medium
CN110167051B (en) Communication method and communication equipment under centralized unit-distributed unit architecture
US8411649B2 (en) Bandwidth oriented reconfiguration of wireless ad hoc networks
US7072340B2 (en) Dynamic assignment and validation of IP addresses in wireless IP networks
RU2297107C2 (en) Method and system for generating access terminal ip address and for transferring messages to generate ip addresses in ip system
US9813141B1 (en) Dynamic control of automatic gain control (AGC) in a repeater system
KR100708002B1 (en) A method for setting up a ipoa channel based default administration channel
US11683723B2 (en) Methods and system for offloading data traffic
US20050172026A1 (en) Method of providing push service to mobile terminal in a mobile communication system for high-speed data transmission and push server apparatus using the same
CN110087335B (en) Data transmission system and method for aggregating multiple wireless links
KR100906083B1 (en) Network with sub-networks which can be interconnected through bridge terminals
EP1841146B1 (en) Association method and relay apparatus
CN104158752A (en) Method and device of processing business flow
US8583085B2 (en) Mobile equipment, base station apparatus and communication control method
CN101841790B (en) Address allocating method and device for emergency call
US20070153753A1 (en) Method of allocating mobile station identifiers in a distributed radio access network
CN102739676A (en) Speech call service realization method and device
KR100684322B1 (en) Method for establishing connection for ip management messages in mobile communication system and method for allocating ip address thereby
CN113573381A (en) Transmission processing method, equipment, device and medium for non-IP type data
AU3089800A (en) Method and apparatus in a communication network
CN111556587B (en) Data stream transmission method, device and system
CN105792385B (en) Communication method and device based on wireless local area network
US11503164B2 (en) Media interaction method in DECT network cluster
JP2007028232A (en) Wireless lan system

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
GR01 Patent grant
GR01 Patent grant