WO2023103367A1 - Data transmission method and related device - Google Patents

Data transmission method and related device Download PDF

Info

Publication number
WO2023103367A1
WO2023103367A1 PCT/CN2022/104418 CN2022104418W WO2023103367A1 WO 2023103367 A1 WO2023103367 A1 WO 2023103367A1 CN 2022104418 W CN2022104418 W CN 2022104418W WO 2023103367 A1 WO2023103367 A1 WO 2023103367A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
data
virtual network
application data
caller
Prior art date
Application number
PCT/CN2022/104418
Other languages
French (fr)
Chinese (zh)
Inventor
董福
Original Assignee
深圳市广和通无线股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市广和通无线股份有限公司 filed Critical 深圳市广和通无线股份有限公司
Publication of WO2023103367A1 publication Critical patent/WO2023103367A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Definitions

  • the present application relates to the technical field of communications, and in particular to a data transmission method and related equipment.
  • APN Access Point Name
  • IP Internet Protocol
  • PDN Public Data Network
  • the inventor found at least the following problems: when a terminal device activates multiple IP addresses and accesses the mobile network, the public data network bearer corresponding to the latest activated IP address is defaulted as the sending link, and the public The data network bearer cannot distinguish whether the network with the destination IP address is a public network or a private network. Furthermore, application data may not be accurately sent to the peer end.
  • the present application provides a data transmission method and related equipment.
  • this application provides a data transmission method applied to terminal equipment, including:
  • each of the virtual network cards includes a caller identification mark, and each of the virtual network cards corresponds to a unique IP address;
  • the present application also provides a computer device, the computer device includes: a memory and one or more processors, wherein a computer program is stored in the memory, and when the computer program is executed by the one or more processors Realize the steps as above-mentioned method.
  • the present application also provides a computer storage medium, where the computer storage medium stores a computer program, and when the computer program is executed by one or more processors, the steps of the above method are realized.
  • Fig. 1 is a structural schematic diagram of a data transmission system
  • Fig. 2 is a schematic structural diagram of a data transmission system provided by the present application according to one or more embodiments;
  • FIG. 3 is a schematic flowchart of a data transmission method provided by the present application according to an embodiment
  • Fig. 4 is a schematic flowchart of another data transmission method provided by the present application according to an embodiment
  • Fig. 5 is a schematic structural diagram of a data transmission device provided by the present application according to one or more embodiments.
  • Fig. 6 is a schematic structural diagram of a computer device provided by the present application according to one or more embodiments.
  • FIG. 1 is a schematic diagram of a data transmission system.
  • the data transmission device 100 in the system shown in FIG. 1 does not limit the devices applicable to this application, and the data transmission device may include more or less components than those shown in the figure, or combine some components , or different component arrangements.
  • the data transmission device 100 includes an establishment module 102, a network card module 104 and a control plane (Control Plane, CP) module 106.
  • an establishment module 102 a network card module 104 and a control plane (Control Plane, CP) module 106.
  • CP Control Plane
  • the establishment module 102 is connected to the network card module 104, and the network card module 104 is connected to the control plane module.
  • Setting up module 102 can carry out packet data protocol (packet data protocol, PDP) context activation by AT command, set up session, each session can correspond to a calling identity delivery (CID), as shown in Figure 1, ⁇ CID1 ;CID2;...;CIDn ⁇ .
  • PDP packet data protocol
  • each session can correspond to a calling identity delivery (CID), as shown in Figure 1, ⁇ CID1 ;CID2;...;CIDn ⁇ .
  • CID calling identity delivery
  • multiple public data network connections are established with the network equipment, and multiple virtual network cards are mapped; wherein, each virtual network card includes a caller identification mark, and each virtual network card corresponds to a unique IP address.
  • the network card module 104 provides a virtual network card for the application data, and sends the application data through the IP address corresponding to the virtual network card.
  • the network card module 104 can store a virtual network card list, and the virtual network card list can store the corresponding relationship between each virtual network card and each IP address.
  • each virtual network card includes a subscriber identification module identity (SIMID) in addition to a caller identification identifier (CID).
  • SIMID subscriber identification module identity
  • CID caller identification identifier
  • the control plane module 106 receives the data sent by the network card module 104, and may send the application data to the network (network, NW) according to the route corresponding to the carried IP address.
  • the virtual network card is marked as netif, such as: netif1, netif2, ..., netifn; each IP address, such as: IP1, IP2, ..., IPn; the two identifiers that can be bound to a virtual network card netif are respectively recorded as cid and simid, then , as shown in Figure 1, the list of virtual network cards that can be stored in the network card module 104 netif_list ⁇ netif1 (cid1, simid) --- IP1; netif2 (cid2, simid) --- IP2; ... netifn (cidn, simid) --- -IPn ⁇ .
  • the control plane module 106 includes an evolved packet system (Evolved Packet System, EPS) mobile management (EPS Mobility Management, EMM) unit, EPS session management (EPS Session Management, ESM) unit and an access layer (Access Stratum, AS) unit .
  • EPS evolved Packet System
  • EMM evolved packet management
  • ESM EPS Session Management
  • AS Access Stratum
  • the ESM can establish the IP connection of the PDN link
  • the EMM can establish the mobile connection
  • the AS can access the network.
  • the application data can be sent through the virtual network card in the network card module.
  • the network network (network, NW) also includes an ESM unit, an EMM unit and an AS unit.
  • the application data is sent by the newly activated virtual network card by default.
  • the newly activated virtual network card can use its corresponding IP address to send the application data.
  • IP1 sends the application data out. It can be seen that since all application data is sent through the newly activated virtual network card, the IP bearer corresponding to the newly activated virtual network card cannot distinguish whether the destination address of the application data is a public network or a private network card network, and thus cannot accurately send the data.
  • This application provides a data transmission method and related equipment, which can establish multiple public data network connections with network equipment, and map multiple virtual network cards;
  • the virtual network card has a unique IP address; determine the caller ID corresponding to the application data according to the type of application data, determine the corresponding virtual network card according to the caller ID, and determine the corresponding IP address according to the virtual network card; bind the IP address , and send the corresponding application data through the IP address, so as to accurately send the application data.
  • FIG. 2 it is a schematic structural diagram of a data transmission system provided by the present application according to one or more embodiments.
  • the data transmission system shown in FIG. 2 compared with the data transmission device 100 shown in FIG. . in:
  • the establishment module 202 is connected to the adaptation module 204 , the adaptation module 204 is connected to the network card module 206 , and the network card module 206 is connected to the control plane module 208 .
  • the establishment module 202 can activate the PDP context through the AT command and establish a session.
  • Each session can correspond to a caller identification identifier CID, as shown in FIG. 2 , ⁇ CIDx; CIDy; . . . ; CIDz ⁇ .
  • CID caller identification identifier
  • the adaptation module 204 can determine the caller ID corresponding to the application data according to the type of the application data (that is, specify the caller ID carried by the application data according to the type of the application data), and determine the corresponding virtual network card according to the caller ID , and determine the corresponding IP address according to the corresponding virtual network card. Furthermore, the adaptation module 204 distributes the application data to different virtual network cards.
  • the network card module 206 provides a virtual network card for the application data, and sends the application data through the IP address corresponding to the virtual network card. That is to say, each virtual network card in the network card module 206 is bound to the IP address, and sends corresponding application data through the IP address.
  • the adaptation module 204 can also obtain the IP address of the corresponding virtual network card through the obtaining function.
  • the network card module 206 is further configured to store a list of virtual network cards, and the list of virtual network cards may store correspondences between each virtual network card and each IP address.
  • each virtual network card includes not only a caller identification identifier CID, but also a subscriber identity identification card identifier SIMID.
  • each application data may have three identifiers, including CID, SIMid and connection identity (conndct identity, conndctid) respectively.
  • the device further includes: a control plane module 208, configured to receive data sent by the network card module 206, and send application data to the NW according to a route corresponding to the carried IP address.
  • a control plane module 208 configured to receive data sent by the network card module 206, and send application data to the NW according to a route corresponding to the carried IP address.
  • control plane module 208 includes an EMM unit, an ESM unit and an AS unit.
  • the ESM can establish the IP connection of the PDN link
  • the EMM can establish the mobile connection
  • the AS can access the network.
  • the NW also includes the ESM unit, the EMM unit and the AS unit. The relevant content of the control plane module 208 will not be described in detail here, and reference may be made to the related description of the control plane module 106 in FIG. 1 .
  • the adaptation module 204 obtains the IP address of the corresponding virtual network card by obtaining the corresponding IP address Getipfromnetif (cid, simid, ip) function of the virtual network card; by binding the IP address Bind (s, ip) function, binding Set the IP address.
  • the application data is marked as APP_DATA, such as: APP_DATA1, APP_DATA2, ..., APP_DATAn; one can have three identifiers, which are respectively CID, SIMid and conndctid, then, as shown in Figure 2, the application data determined by the establishment module 202 are respectively APP_DATA1 (CIDx, SIMid, conndctid), APP_DATA2 (CIDy, SIMid, conndctid), ..., APP_DATAn (CIDz, SIMid, conndctid).
  • the virtual network card is marked as netif, such as: netifx, netify, ..., netifz; each IP address, such as: IPx, IPy, ..., IPz; the two identifiers that can be bound to a virtual network card netif are recorded as cid and simid respectively, then , as shown in Figure 2, the list of virtual network cards that can be stored in the network card module 206 netif_list ⁇ netifx (cidx, simid) --- IPx; netify (cidy, simid) --- IPy; ... netifz (cidz, simid) --- -IPz; ⁇ .
  • the adaptation module 204 determines the caller ID corresponding to the application data according to the type of the application data, determines the corresponding virtual network card according to the caller ID, and determines the corresponding IP address according to the virtual network card. Furthermore, the adaptation module 204 distributes the application data determined by the establishment module 202 to the corresponding virtual network card in the network card module 206, and sends the corresponding application data through the IP address corresponding to the virtual network card.
  • the data transmission device 200 shown in FIG. The IP address corresponding to the network card sends the application data accurately, avoiding the problem that only one virtual network card activated by default can be used to send data, and overcomes the problem of not being able to distinguish whether the network to be accessed by the application data is a public network or a private network. The problem that application data cannot be sent out accurately.
  • FIG. 3 it is a schematic flowchart of a data transmission method provided by the present application according to an embodiment. It should be understood that although the various steps in the flow chart of FIG. 3 are displayed sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders.
  • the data transmission method shown in FIG. 3 can be applied to a terminal device.
  • the terminal device may be a portable device such as a mobile phone, a tablet computer, or a notebook computer, or may be a computer, an Internet of Things terminal, or the like, which is not limited in this application.
  • the data transmission method may include but not limited to the following steps:
  • S302 Establish multiple public data network connections with the network device, and map multiple virtual network cards.
  • each virtual network card includes a caller ID, and each virtual network card corresponds to a unique IP address.
  • S304 Determine the caller ID corresponding to the application data according to the type of the application data, determine the corresponding virtual network card according to the caller ID, and determine the corresponding IP address according to the virtual network card.
  • the type of application data includes at least one of the following: File Transfer Protocol (File Transfer Protocol, FTP), Hypertext Transfer Protocol (Hyper Text Transfer Protocol, HTTP), Message Queuing Telemetry Transport Protocol (Message Queuing Telemetry Transport, MQTT) , lightweight communication protocol (Light Weight Machine-to-Machine, LWM2M), Network Time Protocol (Network Time Protocol, NTP), Simple Mail Transfer Protocol (Simple Mail Transfer Protocol, SMTP), domain name resolution protocol (Domain Name Server , DNS).
  • File Transfer Protocol File Transfer Protocol, FTP
  • Hypertext Transfer Protocol Hypertext Transfer Protocol
  • HTTP Hypertext Transfer Protocol
  • MQTT Message Queuing Telemetry Transport Protocol
  • LWM2M Light Weight Machine-to-Machine
  • NTP Network Time Protocol
  • Simple Mail Transfer Protocol Simple Mail Transfer Protocol
  • SMTP Simple Mail Transfer Protocol
  • DNS Domain Name Server
  • the terminal device stores the corresponding relationship between the type of application data and the caller ID, and the terminal device determines the caller ID corresponding to the application data according to the type of the application data, including: the terminal device determines the caller ID corresponding to the application data according to the application The type of the data and referring to the corresponding relationship to determine the caller ID corresponding to the application data.
  • the terminal device determines the caller ID corresponding to the application data according to the type of application data, that is, the terminal device determines the caller ID corresponding to the application data according to the type of application data and Referring to the corresponding relationship, the caller ID corresponding to the application data is determined. For example, if the type of the application data is FTP, then the terminal device determines that the caller ID corresponding to the FTP is the caller ID 1 according to the corresponding relationship, and uses the caller ID 1 as the caller ID corresponding to the FTP application data. Similarly, when the type of application data is HTTP, MQTT, LWM2M, NTP, SMTP, and DNS, the terminal device determines the caller ID corresponding to the application data according to the corresponding relationship.
  • the type of application data is HTTP, MQTT, LWM2M, NTP, SMTP, and DNS
  • the terminal device determines the caller ID corresponding to the application data according to the type of the application data, including: the terminal device distinguishes the application data of the same type in the application data; caller ID.
  • S306 Bind the IP address, and send corresponding application data through the IP address.
  • the terminal device is bound to an IP address, and the corresponding application data is sent through the IP address, including: the terminal device determines from the multi-channel public data network that the public data network bearer corresponding to the bound IP address ; Send the application data on the corresponding public data network bearer.
  • uniform resource locator uniform resource locator
  • URL uniform resource locator
  • the network corresponding to one destination IP address is a public network, and the other destination IP address
  • the corresponding network is a private network
  • the application programming interface Application Programming Interface, API
  • the application data includes the determined connection identity and the specified CID; two public data network connections are established, one for accessing the public network and the other for accessing the private network.
  • the terminal device determines the public data network bearer corresponding to the bound IP address from the two public data networks according to the caller ID corresponding to the application data, and accurately sends the two HTTP application data to the corresponding public data network bearer respectively. go out.
  • the terminal device can determine the caller ID corresponding to the application data according to the type of the application data, and transmit the application data to the corresponding virtual network card according to the caller ID corresponding to the application data.
  • the data transmission method of the embodiment of the present application is applied in the mobile Internet of Things technology and the 3rd Generation Partnership Project (3rd Generation Partnership Project, 3GPP) mobile network technology, which can realize that the same module supports multiple IP addresses, and various types of business access
  • 3rd Generation Partnership Project 3rd Generation Partnership Project, 3GPP
  • the purpose of different public and private networks solves the problems of customers in various data distribution business scenarios.
  • FIG. 4 it is a schematic flowchart of another data transmission method provided by an embodiment of the present application.
  • the data transmission method shown in FIG. 4 can be applied to a terminal device.
  • the data transmission method includes but is not limited to the following steps:
  • S402 Send multiple application data.
  • the application data to be sent includes APP_DATAX, APP_DATAY and APP_DATAZ.
  • S408 Determine whether to establish multiple public data network (PDN) connections, if no multiple public data network connections are established, then perform steps S410 and S412; if multiple public data network connections are established, then perform steps S414 to S418.
  • PDN public data network
  • S410 Map a unique virtual network card, and the virtual network card corresponds to a unique IP address.
  • the unique virtual network card is marked as Single netif, and the Single netif corresponds to a unique IP address.
  • S412 Bind to the unique IP address, and send all application data through the unique IP address.
  • S414 Establish multiple public data network connections with the network device, and map multiple virtual network cards.
  • each virtual network card includes a caller ID, and each virtual network card corresponds to a unique IP address.
  • a plurality of virtual network cards form a virtual network card list, and the virtual network card list may store correspondences between each virtual network card and each IP address.
  • each virtual network card has two identifiers, one of which is a CID and the other is a SIMID.
  • the virtual network card is marked as netif, such as: netifx, netify, ..., netifz; each IP address, such as: IPx, IPy, ..., IPz; the two identifiers that can be bound to a virtual network card netif are respectively recorded as cid and simid , then, the list of virtual network cards that can be stored in step S414 is netif_list ⁇ netifx(cidx, simid)---IPx; netify(cidy, simid)---IPy;...netifz(cidz, simid)---IPz; ⁇ .
  • S416 Determine the caller ID corresponding to the application data according to the type of the application data, determine the corresponding virtual network card according to the caller ID, and determine the corresponding IP address according to the virtual network card.
  • step S416 please refer to the related content of step S404 in the data transmission method shown in FIG. 3 above, which will not be described in detail here.
  • the terminal device obtains the corresponding IP address of the virtual network card by using the function Getipfromnetif(cid, simid, ip) to obtain the corresponding IP address of the virtual network card.
  • S418 Bind the IP address, and send corresponding application data through the IP address.
  • step S4108 refers to the relevant content of step S306 in the data transmission method shown in FIG. 3 above, which will not be described in detail here.
  • the terminal device binds the IP address by binding the Bind(s, ip) function; and sends the application data through the route of the IP address.
  • the caller ID corresponding to the data, the corresponding virtual network card is determined according to the caller ID, the corresponding IP address is determined according to the virtual network card, the IP address is bound, and the corresponding application data is sent through the IP address. It can be seen that in this method, during data transmission, the terminal device has different emergency handling schemes for different situations, which greatly improves the efficiency of data transmission.
  • FIG. 5 it is a schematic structural diagram of a data transmission device provided in this application according to one or more embodiments.
  • the data transmission device can be set in a terminal device, and the data transmission device at least includes an establishment module 502, a determination module 504, Sending module 506, processing module 508 and storage module 510, wherein:
  • the establishment module 502 is used to establish multiple public data network connections with the network equipment, and map out a plurality of virtual network cards; wherein, each of the virtual network cards includes a caller identification mark, and each of the virtual network cards corresponds to a unique IP address ;
  • a determining module 504 configured to determine a caller ID corresponding to the application data according to the type of the application data, determine a corresponding virtual network card according to the caller ID, and determine a corresponding IP address according to the virtual network card;
  • the sending module 506 is configured to bind the IP address and send corresponding application data through the IP address.
  • the data transmission device further includes a storage module 510, the storage module 510 stores the correspondence between the type of application data and the caller ID, and the determination module 504 determines the application data according to the type of application data Corresponding caller ID, specifically used for:
  • the data transmission device further includes a processing module 508, the processing module 508 is specifically configured to:
  • the processing module 508 is configured to:
  • Each module in the above-mentioned data transmission device may be fully or partially realized by software, hardware and a combination thereof.
  • the above-mentioned modules can be embedded in or independent of the processor in the server in the form of hardware, or can be stored in the memory of the server in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
  • FIG. 6 it is a schematic structural diagram of a computer device provided by the present application according to one or more embodiments.
  • the computer device includes at least a processor 602, a memory 606 and a user interface 604, the processor 602, the memory 606 and the user interface 604 are connected to each other, wherein the memory 606 is used to store a computer program, the computer program includes program instructions, and the processor 602 is used to Execute program instructions.
  • the memory 606 can include a volatile memory (volatile memory), for example, random-access memory (random-access memory, RAM); the memory 606 can also include a non-volatile memory (non-volatile memory), for example, a flash memory (flash memory), solid-state hard drive (solid-state drive, SSD) etc.; Memory 606 can also comprise the combination of above-mentioned types of memory.
  • volatile memory volatile memory
  • non-volatile memory for example, a flash memory (flash memory), solid-state hard drive (solid-state drive, SSD) etc.
  • SSD solid-state drive
  • the processor 602 may be a central processing unit (central processing unit, CPU).
  • the processor 602 may further include a hardware chip.
  • the aforementioned hardware chip may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD), and the like.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the above-mentioned PLD may be a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) and the like.
  • the memory 606 is also used to store program instructions.
  • the processor 602 can invoke program instructions: the processor 602 is configured to invoke program instructions, and perform the following steps:
  • each of the virtual network cards includes a caller identification mark, and each of the virtual network cards corresponds to a unique IP address;
  • the terminal device stores the correspondence between the type of application data and the caller ID, and the processor 602 determines the caller ID corresponding to the application data according to the type of the application data, including:
  • the processor 602 before establishing multiple public data network connections with the network device and mapping multiple virtual network cards, the processor 602 also executes;
  • the processor 602 further executes:
  • the present application also provides a computer-readable storage medium, on which a data transmission program is stored, and when the data transmission program is executed by a processor, the steps of a data transmission method in any of the foregoing embodiments are implemented.
  • the embodiments of the mobile terminal and the computer-readable storage medium provided in this application include all the technical features of the embodiments of the above-mentioned data transmission method, and the expansion and explanation of the description are basically the same as those of the embodiments of the above-mentioned method. I won't repeat it here.
  • An embodiment of the present application further provides a computer program product, the computer program product includes computer program code, and when the computer program code is run on the computer, the computer is made to execute the methods in the above various possible implementation manners.
  • the embodiment of the present application also provides a chip, including a memory and a processor.
  • the memory is used to store a computer program
  • the processor is used to call and run the computer program from the memory, so that the device installed with the chip executes the above various possible implementation modes. Methods.
  • Units in the device in the embodiment of the present application may be combined, divided and deleted according to actual needs.
  • each module in the above-mentioned device may be fully or partially realized by software, hardware or a combination thereof.
  • the network interface may be an Ethernet card or a wireless network card or the like.
  • the above-mentioned modules can be embedded in or independent of the processor in the server in the form of hardware, and can also be stored in the memory of the server in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
  • a component may be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and or a computer.
  • a component may be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and or a computer.
  • an application running on a server and a server can be a component.
  • One or more components can reside within a process and or thread of execution, and a component can be localized on one computer and or distributed between two or more computers.
  • the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the traditional technology, and the computer software product is stored in the above storage medium (such as ROM/RAM, disk , CD-ROM), including several instructions to enable a terminal device (which may be a mobile phone, computer, server, controlled terminal, or network device, etc.) to execute the method of each embodiment of the present application.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, special purpose computer, a computer network, or other programmable apparatus.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media.
  • Usable media may be magnetic media, (eg, floppy disk, memory disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A method in the present application comprises: establishing a multi-channel public data network connection with a network device, and mapping a plurality of virtual network cards, wherein each virtual network card comprises a calling identification identifier, and each virtual network card corresponds to a unique IP address; according to the type of application data, determining a calling identification identifier corresponding to the application data, determining a corresponding virtual network card according to the calling identification identifier, and determining a corresponding IP address according to the virtual network card; and binding the IP address, and sending corresponding application data by means of the IP address.

Description

数据传输方法及相关设备Data transmission method and related equipment 技术领域technical field
本申请涉及通信技术领域,具体涉及一种数据传输方法及相关设备。The present application relates to the technical field of communications, and in particular to a data transmission method and related equipment.
背景技术Background technique
随着通信技术的发展,移动终端支持多个网络接入(Access Point Name,APN),可请求多个互联网协议(Internet Protocol,IP)地址,通过多个IP地址连接移动网络的网关,以访问移动网络。例如,基于轻型IP协议虚拟网卡路由方案,当终端申请了多个IP地址,且应用层有应用数据需要发送但只指定了应用数据发送的目的IP地址时,该应用数据会被默认的从最新激活的IP地址对应的公用数据网络(Public Data Network,PDN)连接上发送出去。With the development of communication technology, mobile terminals support multiple network access (Access Point Name, APN), can request multiple Internet Protocol (Internet Protocol, IP) addresses, and connect to the gateway of the mobile network through multiple IP addresses to access mobile network. For example, based on the lightweight IP protocol virtual network card routing scheme, when the terminal applies for multiple IP addresses, and the application layer has application data to send but only specifies the destination IP address for sending the application data, the application data will be sent from the latest IP address by default. The activated IP address corresponding to the public data network (Public Data Network, PDN) connection is sent out.
在构思及实现本申请过程中,发明人发现至少存在如下问题:当终端设备激活多个IP地址,访问移动网络时,默认最新激活的IP地址对应的公用数据网络承载为发送链路,该公用数据网络承载无法区分该目的IP地址的网络是公有网络,还是私有网络,进而,应用数据可能会出现无法准确地发送到对端的问题。During the process of conceiving and implementing this application, the inventor found at least the following problems: when a terminal device activates multiple IP addresses and accesses the mobile network, the public data network bearer corresponding to the latest activated IP address is defaulted as the sending link, and the public The data network bearer cannot distinguish whether the network with the destination IP address is a public network or a private network. Furthermore, application data may not be accurately sent to the peer end.
前面的叙述在于提供一般的背景信息,并不一定构成传统技术。The foregoing description is provided to provide general background information and does not necessarily constitute conventional art.
发明内容Contents of the invention
针对上述技术问题,本申请提供一种数据传输方法及相关设备。In view of the above technical problems, the present application provides a data transmission method and related equipment.
为解决上述技术问题,本申请提供一种数据传输方法,应用于终端设备,包括:In order to solve the above technical problems, this application provides a data transmission method applied to terminal equipment, including:
与网络设备建立多路公用数据网络连接,并映射出多个虚拟网卡;其中,每一所述虚拟网卡包括主叫识别标识,每一所述虚拟网卡对应有唯一IP地址;Establishing multiple public data network connections with network equipment, and mapping out a plurality of virtual network cards; wherein, each of the virtual network cards includes a caller identification mark, and each of the virtual network cards corresponds to a unique IP address;
根据应用数据的类型确定所述应用数据对应的主叫识别标识,根据该主叫识别标识确定对应的虚拟网卡,根据该虚拟网卡确定对应的IP地址;Determine the caller ID corresponding to the application data according to the type of the application data, determine the corresponding virtual network card according to the caller ID, and determine the corresponding IP address according to the virtual network card;
绑定该IP地址,并通过该IP地址发送对应的应用数据。Bind the IP address, and send corresponding application data through the IP address.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features, objects and advantages of the present application will be apparent from the description, drawings and claims.
本申请还提供一种计算机设备,所述计算机设备包括:存储器和一个或多个处理器,其中,所述存储器上存储有计算机程序,所述计算机程序被所述一个或多个处理器执行时实现如上述方法的步骤。The present application also provides a computer device, the computer device includes: a memory and one or more processors, wherein a computer program is stored in the memory, and when the computer program is executed by the one or more processors Realize the steps as above-mentioned method.
本申请还提供一种计算机存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序被一个或多个处理器执行时实现如上述方法的步骤。The present application also provides a computer storage medium, where the computer storage medium stores a computer program, and when the computer program is executed by one or more processors, the steps of the above method are realized.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申 请的实施例,并与说明书一起用于解释本申请的原理。为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, for those of ordinary skill in the art, the Under the premise, other drawings can also be obtained based on these drawings.
图1为一种数据传输系统的结构示意图;Fig. 1 is a structural schematic diagram of a data transmission system;
图2是本申请根据一个或多个实施例提供的一种数据传输系统的结构示意图;Fig. 2 is a schematic structural diagram of a data transmission system provided by the present application according to one or more embodiments;
图3是本申请根据一个实施例提供的一种数据传输方法的流程示意图;FIG. 3 is a schematic flowchart of a data transmission method provided by the present application according to an embodiment;
图4是本申请根据一个实施例提供的另一种数据传输方法的流程示意图;Fig. 4 is a schematic flowchart of another data transmission method provided by the present application according to an embodiment;
图5是本申请根据一个或多个实施例提供的一种数据传输装置的结构示意图;Fig. 5 is a schematic structural diagram of a data transmission device provided by the present application according to one or more embodiments;
图6是本申请根据一个或多个实施例提供的一种计算机设备的结构示意图。Fig. 6 is a schematic structural diagram of a computer device provided by the present application according to one or more embodiments.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. By means of the above drawings, specific embodiments of the present application have been shown, which will be described in more detail hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the application in any way, but to illustrate the concept of the application for those skilled in the art by referring to specific embodiments.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
应当理解,术语“包含”、“包括”表明存在所述的特征、步骤、操作、元件、组件、项目、种类、和/或组,但不排除一个或多个其他特征、步骤、操作、元件、组件、项目、种类、和/或组的存在、出现或添加。本申请使用的术语“或”、“和/或”等可被解释为包括性的,或意味着任一个或任何组合。例如,“A、B或C”或者“A、B和/或C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A和B和C”。仅当元件、功能、步骤或操作的组合在某些方式下内在地互相排斥时,才会出现该定义的例外。It should be understood that the terms "comprising", "comprising" indicate the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not exclude one or more other features, steps, operations, elements , component, item, category, and/or group existence, occurrence, or addition. The terms "or", "and/or" etc. used in this application may be construed as inclusive or mean any one or any combination. For example, "A, B, or C" or "A, B, and/or C" means "any of the following: A; B; C; A and B; A and C; B and C; A and B and C" . Exceptions to this definition will only arise when combinations of elements, functions, steps or operations are inherently mutually exclusive in some way.
应该理解的是,虽然本申请实施例中的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,图中的一部分或多部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可 以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的一部分或多部分轮流或者交替地执行。It should be understood that although the various steps in the flow chart in the embodiment of the present application are displayed sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, some or more steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the order of execution is not necessarily It is performed sequentially, but can be performed in turn or alternately with other steps or sub-steps of other steps or a part or parts of stages.
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或者“单元”的后缀仅为了有利于本申请的说明,其本身没有特定的意义。因此,“模块”、“部件”或者“单元”可以混合地使用。In the following description, the use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating the description of the present application and has no specific meaning by itself. Therefore, 'module', 'part' or 'unit' may be mixedly used.
请参阅图1,为一种数据传输系统的示意图。本领域技术人员可以理解,图1示出的系统中的数据传输装置100并不对本申请适用的装置构成限定,数据传输装置可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please refer to FIG. 1 , which is a schematic diagram of a data transmission system. Those skilled in the art can understand that the data transmission device 100 in the system shown in FIG. 1 does not limit the devices applicable to this application, and the data transmission device may include more or less components than those shown in the figure, or combine some components , or different component arrangements.
该数据传输装置100包括建立模块102、网卡模块104和控制面(Control Plane,CP)模块106。The data transmission device 100 includes an establishment module 102, a network card module 104 and a control plane (Control Plane, CP) module 106.
其中,建立模块102和网卡模块104连接,网卡模块104和控制面模块连接。Wherein, the establishment module 102 is connected to the network card module 104, and the network card module 104 is connected to the control plane module.
建立模块102可通过AT命令进行分组数据协议(packet data protocol,PDP)上下文激活,建立会话,每个会话可对应一个主叫识别标识(calling identity delivery,CID),如图1所示,{CID1;CID2;…;CIDn}。同时,与网络设备建立多路公用数据网络连接,并映射出多个虚拟网卡;其中,每一虚拟网卡包括主叫识别标识,每一虚拟网卡对应有唯一IP地址。Setting up module 102 can carry out packet data protocol (packet data protocol, PDP) context activation by AT command, set up session, each session can correspond to a calling identity delivery (CID), as shown in Figure 1, {CID1 ;CID2;...;CIDn}. At the same time, multiple public data network connections are established with the network equipment, and multiple virtual network cards are mapped; wherein, each virtual network card includes a caller identification mark, and each virtual network card corresponds to a unique IP address.
网卡模块104为应用数据提供虚拟网卡,通过虚拟网卡对应的IP地址发送应用数据。网卡模块104中可存储虚拟网卡列表,虚拟网卡列表中可存储各虚拟网卡与各IP地址之间的对应关系。其中,每个虚拟网卡除了包括主叫识别标识CID,还包括用户身份识别卡标识(subscriber identification module identity,SIMID)。相应的,控制面模块106接收网卡模块104发送的数据,可根据携带的IP地址对应的路由发送应用数据到网络(network,NW)。假设虚拟网卡标记为netif,如:netif1、netif2、…、netifn;各IP地址,如:IP1、IP2、…、IPn;一个虚拟网卡netif可绑定的两个标识分别记为cid、simid,那么,如图1所示,网卡模块104中可存储的虚拟网卡列表netif_list{netif1(cid1,simid)---IP1;netif2(cid2,simid)---IP2;…netifn(cidn,simid)---IPn}。The network card module 104 provides a virtual network card for the application data, and sends the application data through the IP address corresponding to the virtual network card. The network card module 104 can store a virtual network card list, and the virtual network card list can store the corresponding relationship between each virtual network card and each IP address. Wherein, each virtual network card includes a subscriber identification module identity (SIMID) in addition to a caller identification identifier (CID). Correspondingly, the control plane module 106 receives the data sent by the network card module 104, and may send the application data to the network (network, NW) according to the route corresponding to the carried IP address. Suppose the virtual network card is marked as netif, such as: netif1, netif2, ..., netifn; each IP address, such as: IP1, IP2, ..., IPn; the two identifiers that can be bound to a virtual network card netif are respectively recorded as cid and simid, then , as shown in Figure 1, the list of virtual network cards that can be stored in the network card module 104 netif_list {netif1 (cid1, simid) --- IP1; netif2 (cid2, simid) --- IP2; ... netifn (cidn, simid) --- -IPn}.
控制面模块106中包括演进的分组系统(Evolved Packet System,EPS)移动管理(EPS Mobility Management,EMM)单元、EPS会话管理(EPS Session Management,ESM)单元以及接入层(Access Stratum,AS)单元。该ESM可建立PDN链路的IP连接,该EMM可建立移动连接,该AS可接入网络。建立模块102通过与控制面模块106建立会话后,可将应用数据通过网卡模块中的虚拟网卡发送。其中,网络(network,NW)中也包括ESM单元、EMM单元和AS单元。The control plane module 106 includes an evolved packet system (Evolved Packet System, EPS) mobile management (EPS Mobility Management, EMM) unit, EPS session management (EPS Session Management, ESM) unit and an access layer (Access Stratum, AS) unit . The ESM can establish the IP connection of the PDN link, the EMM can establish the mobile connection, and the AS can access the network. After the establishment module 102 establishes a session with the control plane module 106, the application data can be sent through the virtual network card in the network card module. Wherein, the network (network, NW) also includes an ESM unit, an EMM unit and an AS unit.
目前,网卡模块104中的哪路虚拟网卡被最新激活,应用数据默认由最新激活的虚拟网卡发送。其中,最新激活的虚拟网卡可采用其对应的IP地址将应用数据发送出去。假设该虚拟网卡列表netif_list中最新激活的是虚拟网卡netif1,那么,如图1所示,网络控制模块102中的应用数据APP_DATA1、APP_DATA2到APP_DATAn会默认由该netif1发送,其中,可采用netif1对应的IP1将应用数据发送出去。可见,由于所有的应用数据均通过最新激活的虚拟网卡发送,该最新激活的虚拟网卡对应的IP承载无法区分应用数据的目的地址是公有网络还是私有网卡络,进而无法将数据准确的发送出去。Currently, which virtual network card in the network card module 104 is newly activated, the application data is sent by the newly activated virtual network card by default. Wherein, the newly activated virtual network card can use its corresponding IP address to send the application data. Assuming that the newly activated virtual network card netif1 in the virtual network card list netif_list, then, as shown in FIG. IP1 sends the application data out. It can be seen that since all application data is sent through the newly activated virtual network card, the IP bearer corresponding to the newly activated virtual network card cannot distinguish whether the destination address of the application data is a public network or a private network card network, and thus cannot accurately send the data.
本申请提供一种数据传输方法及相关设备,可与网络设备建立多路公用数据网络连接,并映射出多个虚拟网卡;其中,每一所述虚拟网卡包括主叫识别标识,每一所述虚拟网卡对应有唯一IP地址;根据应用数据的类型确定应用数据对应的主叫识别标识,根据该主叫识别标识确定对应的虚拟网卡,根据该虚拟网卡确定对应的IP地址;绑定该IP地址,并通过该IP地址发送对应的应用数据,从而准确地将应用数据发送出去。This application provides a data transmission method and related equipment, which can establish multiple public data network connections with network equipment, and map multiple virtual network cards; The virtual network card has a unique IP address; determine the caller ID corresponding to the application data according to the type of application data, determine the corresponding virtual network card according to the caller ID, and determine the corresponding IP address according to the virtual network card; bind the IP address , and send the corresponding application data through the IP address, so as to accurately send the application data.
参见图2,是本申请根据一个或多个实施例提供的一种数据传输系统的结构示意图。图2所示的数据传输系统中,数据传输装置200与图1所示的数据传输装置100相比,除了包括建立模块202、网卡模块206和控制面模块208外,还可以包括适配模块204。其中:Referring to FIG. 2 , it is a schematic structural diagram of a data transmission system provided by the present application according to one or more embodiments. In the data transmission system shown in FIG. 2, compared with the data transmission device 100 shown in FIG. . in:
建立模块202和适配模块204连接,适配模块204和网卡模块206连接,网卡模块206和控制面模块208连接。The establishment module 202 is connected to the adaptation module 204 , the adaptation module 204 is connected to the network card module 206 , and the network card module 206 is connected to the control plane module 208 .
建立模块202可通过AT命令进行PDP上下文激活,建立会话,每个会话可对应一个主叫识别标识CID,如图2所示,{CIDx;CIDy;…;CIDz}。同时,与网络设备建立多路公用数据网络连接,并映射出多个虚拟网卡;其中,每一虚拟网卡包括主叫识别标识,每一虚拟网卡对应有唯一IP地址;The establishment module 202 can activate the PDP context through the AT command and establish a session. Each session can correspond to a caller identification identifier CID, as shown in FIG. 2 , {CIDx; CIDy; . . . ; CIDz}. At the same time, establish multi-channel public data network connections with network equipment, and map out multiple virtual network cards; wherein, each virtual network card includes a caller identification mark, and each virtual network card corresponds to a unique IP address;
适配模块204可根据应用数据的类型确定该应用数据对应的主叫识别标识(即根据应用数据的类型为应用数据指定携带的主叫识别标识),根据该主叫识别标识确定对应的虚拟网卡,根据该对应的虚拟网卡确定对应的IP地址。进而,适配模块204将应用数据分配到不同的虚拟网卡上。The adaptation module 204 can determine the caller ID corresponding to the application data according to the type of the application data (that is, specify the caller ID carried by the application data according to the type of the application data), and determine the corresponding virtual network card according to the caller ID , and determine the corresponding IP address according to the corresponding virtual network card. Furthermore, the adaptation module 204 distributes the application data to different virtual network cards.
网卡模块206为应用数据提供虚拟网卡,通过虚拟网卡对应的IP地址发送应用数据。也就是说,网卡模块206中的每个虚拟网卡都绑定该IP地址,并通过该IP地址发送对应的应用数据。The network card module 206 provides a virtual network card for the application data, and sends the application data through the IP address corresponding to the virtual network card. That is to say, each virtual network card in the network card module 206 is bound to the IP address, and sends corresponding application data through the IP address.
可选地,适配模块204,还可通过获取函数,获得对应的虚拟网卡的IP地址。Optionally, the adaptation module 204 can also obtain the IP address of the corresponding virtual network card through the obtaining function.
可选地,网卡模块206,还用于存储虚拟网卡列表,虚拟网卡列表中可存储各虚拟网卡与各IP地址之间的对应关系。其中,每个虚拟网卡除了包括主叫识别标识CID,还包括用户身份识别卡标识SIMID。Optionally, the network card module 206 is further configured to store a list of virtual network cards, and the list of virtual network cards may store correspondences between each virtual network card and each IP address. Wherein, each virtual network card includes not only a caller identification identifier CID, but also a subscriber identity identification card identifier SIMID.
可选地,每个应用数据可具有三个标识,分别包括CID,SIMid和连接身份标识(conndct identity,conndctid)。Optionally, each application data may have three identifiers, including CID, SIMid and connection identity (conndct identity, conndctid) respectively.
可选地,该装置还包括:控制面模块208,用于接收网卡模块206发送的数据,可根据携带的IP地址对应的路由发送应用数据到NW。Optionally, the device further includes: a control plane module 208, configured to receive data sent by the network card module 206, and send application data to the NW according to a route corresponding to the carried IP address.
其中,控制面模块208中包括EMM单元、ESM单元以及AS单元。该ESM可建立PDN链路的IP连接,该EMM可建立移动连接,该AS可接入网络。其中,NW中同样包括ESM单元、EMM单元和AS单元。控制面模块208的相关内容这里不再详述,可参见图1中控制面模块106的相关阐述。Wherein, the control plane module 208 includes an EMM unit, an ESM unit and an AS unit. The ESM can establish the IP connection of the PDN link, the EMM can establish the mobile connection, and the AS can access the network. Wherein, the NW also includes the ESM unit, the EMM unit and the AS unit. The relevant content of the control plane module 208 will not be described in detail here, and reference may be made to the related description of the control plane module 106 in FIG. 1 .
如图2所示,适配模块204通过获取虚拟网卡对应IP地址Getipfromnetif(cid,simid,ip)函数,获得对应的虚拟网卡的IP地址;通过绑定IP地址Bind(s,ip)函数,绑定该IP地址。As shown in Figure 2, the adaptation module 204 obtains the IP address of the corresponding virtual network card by obtaining the corresponding IP address Getipfromnetif (cid, simid, ip) function of the virtual network card; by binding the IP address Bind (s, ip) function, binding Set the IP address.
假设应用数据标记为APP_DATA,如:APP_DATA1、APP_DATA2、…、APP_DATAn;一个可具有三个标识,分别为CID,SIMid和conndctid,那么,如图2所示,建立模块202确定的应用数据分别是APP_DATA1(CIDx,SIMid,conndctid),APP_DATA2(CIDy,SIMid,conndctid),…,APP_DATAn(CIDz,SIMid,conndctid)。Assuming that the application data is marked as APP_DATA, such as: APP_DATA1, APP_DATA2, ..., APP_DATAn; one can have three identifiers, which are respectively CID, SIMid and conndctid, then, as shown in Figure 2, the application data determined by the establishment module 202 are respectively APP_DATA1 (CIDx, SIMid, conndctid), APP_DATA2 (CIDy, SIMid, conndctid), ..., APP_DATAn (CIDz, SIMid, conndctid).
假设虚拟网卡标记为netif,如:netifx、netify、…、netifz;各IP地址,如:IPx、IPy、…、IPz;一个虚拟网卡netif可绑定的两个标识分别记为cid、simid,那么,如图2所示,网卡模块206中可存储的虚拟网卡列表netif_list{netifx(cidx,simid)---IPx;netify(cidy,simid)---IPy;…netifz(cidz,simid)---IPz;}。Assuming that the virtual network card is marked as netif, such as: netifx, netify, ..., netifz; each IP address, such as: IPx, IPy, ..., IPz; the two identifiers that can be bound to a virtual network card netif are recorded as cid and simid respectively, then , as shown in Figure 2, the list of virtual network cards that can be stored in the network card module 206 netif_list {netifx (cidx, simid) --- IPx; netify (cidy, simid) --- IPy; ... netifz (cidz, simid) --- -IPz; }.
进一步的,适配模块204根据应用数据的类型确定该应用数据对应的主叫识别标识,根据该主叫识别标识确定对应的虚拟网卡,根据该虚拟网卡确定对应的IP地址。进而,适配模块204将上述建立模块202确定的应用数据分配到网卡模块206中对应的虚拟网卡上,通过虚拟网卡对应的IP地址发送对应的应用数据。Further, the adaptation module 204 determines the caller ID corresponding to the application data according to the type of the application data, determines the corresponding virtual network card according to the caller ID, and determines the corresponding IP address according to the virtual network card. Furthermore, the adaptation module 204 distributes the application data determined by the establishment module 202 to the corresponding virtual network card in the network card module 206, and sends the corresponding application data through the IP address corresponding to the virtual network card.
也就是说,与图1所示的数据传输装置100相比,图2所示的数据传输装置200可根据应用数据的类型确定该应用数据对应的主叫识别标识,从而,能够通过对应的虚拟网卡所对应的IP地址将应用数据准确的发送出去,避免了只能采用默认激活的一路虚拟网卡发送数据的问题,克服了因无法区分应用数据所要访问的网络是公有网络还是私有网络,可能造成应用数据无法准确地发送出去的问题。That is to say, compared with the data transmission device 100 shown in FIG. 1, the data transmission device 200 shown in FIG. The IP address corresponding to the network card sends the application data accurately, avoiding the problem that only one virtual network card activated by default can be used to send data, and overcomes the problem of not being able to distinguish whether the network to be accessed by the application data is a public network or a private network. The problem that application data cannot be sent out accurately.
以下结合附图,对本申请的各个实施例进行阐述。Various embodiments of the present application are described below in conjunction with the accompanying drawings.
参阅图3,是本申请根据一个实施例提供的一种数据传输的方法的流程示意图。应该理解的是,虽然图3的流程图中的各个步骤按照箭头的指示依次显示但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,图中的少部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行, 其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。图3所示的数据传输方法可应用终端设备中,该终端设备可以是手机、平板电脑、笔记本电脑等便携式设备,也可以是计算机、物联网终端等设备,本申请不做限定。如图3所示,该数据传输方法可以包括但不限于以下步骤:Referring to FIG. 3 , it is a schematic flowchart of a data transmission method provided by the present application according to an embodiment. It should be understood that although the various steps in the flow chart of FIG. 3 are displayed sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, a small number of steps in the figure may include multiple sub-steps or multiple stages, these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution order is not necessarily sequential Instead, it may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps. The data transmission method shown in FIG. 3 can be applied to a terminal device. The terminal device may be a portable device such as a mobile phone, a tablet computer, or a notebook computer, or may be a computer, an Internet of Things terminal, or the like, which is not limited in this application. As shown in Figure 3, the data transmission method may include but not limited to the following steps:
S302:与网络设备建立多路公用数据网络连接,并映射出多个虚拟网卡。S302: Establish multiple public data network connections with the network device, and map multiple virtual network cards.
其中,每一虚拟网卡包括主叫识别标识,每一虚拟网卡对应有唯一IP地址。Wherein, each virtual network card includes a caller ID, and each virtual network card corresponds to a unique IP address.
S304:根据应用数据的类型确定该应用数据对应的主叫识别标识,根据该主叫识别标识确定对应的虚拟网卡,根据该虚拟网卡确定对应的IP地址。S304: Determine the caller ID corresponding to the application data according to the type of the application data, determine the corresponding virtual network card according to the caller ID, and determine the corresponding IP address according to the virtual network card.
其中,应用数据的类型,包括以下至少一种:文件传输协议(File Transfer Protocol,FTP),超文本传输协议(Hyper Text Transfer Protocol,HTTP),消息队列遥测传输协议(Message Queuing Telemetry Transport,MQTT),轻量型的通信协议(Light Weight Machine-to-Machine,LWM2M),网络时间协议(Network Time Protocol,NTP),简单邮件传输协议(Simple Mail Transfer Protocol,SMTP),域名解析协议(Domain Name Server,DNS)。Among them, the type of application data includes at least one of the following: File Transfer Protocol (File Transfer Protocol, FTP), Hypertext Transfer Protocol (Hyper Text Transfer Protocol, HTTP), Message Queuing Telemetry Transport Protocol (Message Queuing Telemetry Transport, MQTT) , lightweight communication protocol (Light Weight Machine-to-Machine, LWM2M), Network Time Protocol (Network Time Protocol, NTP), Simple Mail Transfer Protocol (Simple Mail Transfer Protocol, SMTP), domain name resolution protocol (Domain Name Server , DNS).
一种可选的实施方式中,终端设备存储有应用数据的类型与主叫识别标识的对应关系,终端设备根据应用数据的类型确定该应用数据对应的主叫识别标识,包括:终端设备根据应用数据的类型并参照该对应关系,确定该应用数据对应的主叫识别标识。In an optional implementation manner, the terminal device stores the corresponding relationship between the type of application data and the caller ID, and the terminal device determines the caller ID corresponding to the application data according to the type of the application data, including: the terminal device determines the caller ID corresponding to the application data according to the application The type of the data and referring to the corresponding relationship to determine the caller ID corresponding to the application data.
例如,假设对应关系的内容为不同应用数据的类型与不同主叫识别标识一一对应,终端设备根据应用数据的类型确定该应用数据对应的主叫识别标识,即终端设备根据应用数据的类型并参照该对应关系,确定该应用数据对应的主叫识别标识。如,应用数据的类型为FTP,那么,终端设备根据对应关系确定FTP对应的主叫识别标识为主叫识别标识1,将主叫识别标识1作为FTP的应用数据对应的主叫识别标识。同理,应用数据的类型为HTTP、MQTT、LWM2M、NTP、SMTP和DNS时,终端设备根据对应关系确定应用数据对应的主叫识别标识。For example, assuming that the content of the correspondence relationship is that different types of application data correspond to different caller IDs one by one, the terminal device determines the caller ID corresponding to the application data according to the type of application data, that is, the terminal device determines the caller ID corresponding to the application data according to the type of application data and Referring to the corresponding relationship, the caller ID corresponding to the application data is determined. For example, if the type of the application data is FTP, then the terminal device determines that the caller ID corresponding to the FTP is the caller ID 1 according to the corresponding relationship, and uses the caller ID 1 as the caller ID corresponding to the FTP application data. Similarly, when the type of application data is HTTP, MQTT, LWM2M, NTP, SMTP, and DNS, the terminal device determines the caller ID corresponding to the application data according to the corresponding relationship.
一种可选的实施方式中,终端设备根据应用数据的类型确定该应用数据对应的主叫识别标识,包括:终端设备区分应用数据中相同类型的应用数据;分别为相同类型的应用数据指定携带的主叫识别标识。In an optional implementation manner, the terminal device determines the caller ID corresponding to the application data according to the type of the application data, including: the terminal device distinguishes the application data of the same type in the application data; caller ID.
S306:绑定该IP地址,并通过该IP地址发送对应的应用数据。S306: Bind the IP address, and send corresponding application data through the IP address.
一种可选的实施方式中,终端设备绑定IP地址,并通过该IP地址发送对应的应用数据,包括:终端设备从多路公用数据网络中确定绑定IP地址所对应的公用数据网络承载;在对应的公用数据网络承载上,发送应用数据。In an optional implementation manner, the terminal device is bound to an IP address, and the corresponding application data is sent through the IP address, including: the terminal device determines from the multi-channel public data network that the public data network bearer corresponding to the bound IP address ; Send the application data on the corresponding public data network bearer.
例如,假设有两路HTTP协议的统一资源定位符(uniform resource locator;URL)的应用数据要发送,且发送的目的IP地址不同,一路目的IP地址对应的网络为公有网络,另一路目的IP地址对应的网络为私有网络,确定两路 HTTP应用数据的应用程序编程接口(Application Programming Interface,API)。其中,应用数据包含确定连接身份标识和指定CID;建立两路公用数据网络连接,一路访问公网网络,另一路访问私网网络。终端设备根据应用数据对应的主叫识别标识从两路公用数据网络中确定绑定IP地址所对应的公用数据网络承载,在对应的公用数据网络承载上,分别准确地将两路HTTP应用数据发送出去。For example, suppose there are two paths of uniform resource locator (uniform resource locator; URL) application data of the HTTP protocol to be sent, and the destination IP addresses to be sent are different. The network corresponding to one destination IP address is a public network, and the other destination IP address The corresponding network is a private network, and the application programming interface (Application Programming Interface, API) of the two HTTP application data is determined. Among them, the application data includes the determined connection identity and the specified CID; two public data network connections are established, one for accessing the public network and the other for accessing the private network. The terminal device determines the public data network bearer corresponding to the bound IP address from the two public data networks according to the caller ID corresponding to the application data, and accurately sends the two HTTP application data to the corresponding public data network bearer respectively. go out.
可见,图3所示的数据传输方法中,终端设备可根据应用数据的类型确定应用数据对应的主叫识别标识,根据应用数据对应的主叫识别标识,将应用数据传输到对应的虚拟网卡,根据虚拟网卡对应的IP地址发送应用数据。可见,该方法可为应用数据分配对应的虚拟网卡,进而准确地进行应用数据发送。It can be seen that in the data transmission method shown in FIG. 3, the terminal device can determine the caller ID corresponding to the application data according to the type of the application data, and transmit the application data to the corresponding virtual network card according to the caller ID corresponding to the application data. Send application data according to the IP address corresponding to the virtual network card. It can be seen that this method can allocate the corresponding virtual network card for the application data, and then accurately send the application data.
进一步,本申请实施例的数据传输方法运用在移动物联网技术和第三代合作伙伴计划(3rd Generation Partnership Project,3GPP)移动网络技术中,可实现同一模组支持多IP地址,各类业务访问不同公私网的目的,解决了客户各类数据分发业务场景的问题。Further, the data transmission method of the embodiment of the present application is applied in the mobile Internet of Things technology and the 3rd Generation Partnership Project (3rd Generation Partnership Project, 3GPP) mobile network technology, which can realize that the same module supports multiple IP addresses, and various types of business access The purpose of different public and private networks solves the problems of customers in various data distribution business scenarios.
参阅图4,是本申请一个实施例提供的另一种数据传输方法的流程示意图,图4所示的数传输方法可应用于终端设备中。如图4所示,该数据传输方法包括但不限于以下步骤:Referring to FIG. 4 , it is a schematic flowchart of another data transmission method provided by an embodiment of the present application. The data transmission method shown in FIG. 4 can be applied to a terminal device. As shown in Figure 4, the data transmission method includes but is not limited to the following steps:
S402:多种应用数据发送。S402: Send multiple application data.
例如,所要发送的应用数据包括APP_DATAX、APP_DATAY和APP_DATAZ。For example, the application data to be sent includes APP_DATAX, APP_DATAY and APP_DATAZ.
S404:判断是否建立公用数据网络(PDN)连接,当没有建立公用数据网络连接,则执行步骤S406;当建立公用数据网络连接,则执行步骤S408。S404: Determine whether a public data network (PDN) connection is established, and if no public data network connection is established, execute step S406; if a public data network connection is established, execute step S408.
S406:则退出流程并终止数据传输。S406: Exit the process and terminate the data transmission.
S408:判断是否建立多路公用数据网络(PDN)连接,当没有建立多路公用数据网络连接,则执行步骤S410和S412;当建立多路公用数据网络连接,则执行步骤S414到S418。S408: Determine whether to establish multiple public data network (PDN) connections, if no multiple public data network connections are established, then perform steps S410 and S412; if multiple public data network connections are established, then perform steps S414 to S418.
S410:则映射唯一虚拟网卡,该虚拟网卡对应唯一IP地址。S410: Map a unique virtual network card, and the virtual network card corresponds to a unique IP address.
例如,假设唯一虚拟网卡的标记为Single netif,该Single netif对应唯一IP地址。For example, suppose the unique virtual network card is marked as Single netif, and the Single netif corresponds to a unique IP address.
S412:绑定该唯一IP地址,并通过该唯一IP地址发送所有应用数据。S412: Bind to the unique IP address, and send all application data through the unique IP address.
S414:与网络设备建立多路公用数据网络连接,并映射出多个虚拟网卡。S414: Establish multiple public data network connections with the network device, and map multiple virtual network cards.
其中,每一虚拟网卡包括主叫识别标识,每一虚拟网卡对应有唯一IP地址。Wherein, each virtual network card includes a caller ID, and each virtual network card corresponds to a unique IP address.
一种可选的实施方式中,多个虚拟网卡形成虚拟网卡列表,虚拟网卡列表中可存储各虚拟网卡与各IP地址之间的对应关系。可选的,每个虚拟网卡具有两个标识,其中一个标识是CID,另一个标识是SIMID。例如,假设虚 拟网卡标记为netif,如:netifx、netify、…、netifz;各IP地址,如:IPx、IPy、…、IPz;一个虚拟网卡netif可绑定的两个标识分别记为cid、simid,那么,步骤S414中可存储的虚拟网卡列表为netif_list{netifx(cidx,simid)---IPx;netify(cidy,simid)---IPy;…netifz(cidz,simid)---IPz;}。In an optional implementation manner, a plurality of virtual network cards form a virtual network card list, and the virtual network card list may store correspondences between each virtual network card and each IP address. Optionally, each virtual network card has two identifiers, one of which is a CID and the other is a SIMID. For example, assume that the virtual network card is marked as netif, such as: netifx, netify, ..., netifz; each IP address, such as: IPx, IPy, ..., IPz; the two identifiers that can be bound to a virtual network card netif are respectively recorded as cid and simid , then, the list of virtual network cards that can be stored in step S414 is netif_list{netifx(cidx, simid)---IPx; netify(cidy, simid)---IPy;...netifz(cidz, simid)---IPz;} .
S416:根据应用数据的类型确定该应用数据对应的主叫识别标识,根据该主叫识别标识确定对应的虚拟网卡,根据该虚拟网卡确定对应的IP地址。S416: Determine the caller ID corresponding to the application data according to the type of the application data, determine the corresponding virtual network card according to the caller ID, and determine the corresponding IP address according to the virtual network card.
其中,步骤S416的相关阐述,可参见上述图3所示的数据传输方法中步骤S404的相关内容,此处不再详述。For the related description of step S416, please refer to the related content of step S404 in the data transmission method shown in FIG. 3 above, which will not be described in detail here.
一种可选的实施方式中,终端设备通过获取虚拟网卡对应IP地址Getipfromnetif(cid,simid,ip)函数,获得对应的虚拟网卡的IP地址。In an optional implementation manner, the terminal device obtains the corresponding IP address of the virtual network card by using the function Getipfromnetif(cid, simid, ip) to obtain the corresponding IP address of the virtual network card.
S418:绑定该IP地址,并通过该IP地址发送对应的应用数据。S418: Bind the IP address, and send corresponding application data through the IP address.
其中,步骤S418的相关阐述,可参见上述图3所示的数据传输方法中步骤S306的相关内容,此处不再详述。Wherein, for the relevant description of step S418, refer to the relevant content of step S306 in the data transmission method shown in FIG. 3 above, which will not be described in detail here.
一种可选的实施例中,终端设备通过绑定Bind(s,ip)函数,绑定该IP地址;通过该IP地址的路由,将应用数据发送出去。In an optional embodiment, the terminal device binds the IP address by binding the Bind(s, ip) function; and sends the application data through the route of the IP address.
可见,图4所示的数据传输方法中,当终端设备确定没有建立公用数据网络连接时,终止数据传输;当终端设备确定建立一路公用数据网络连接时,将所有的应用数据都由这一路公用数据网络连接对应的唯一虚拟网卡发送;当终端设备确定建立多路公用数据网络连接时,与网络设备建立多路公用数据网络连接,并映射出多个虚拟网卡,根据应用数据的类型确定该应用数据对应的主叫识别标识,根据该主叫识别标识确定对应的虚拟网卡,根据该虚拟网卡确定对应的IP地址,绑定IP地址,并通过该IP地址发送对应的应用数据。可见,该方法在数据传输中,终端设备对不同的情况,有不同的应急处理方案,大大提升了数据传输的效率。It can be seen that in the data transmission method shown in Figure 4, when the terminal device determines that no public data network connection has been established, the data transmission is terminated; when the terminal device determines to establish a public data network connection, all application data are shared by this public data network. The unique virtual network card corresponding to the data network connection is sent; when the terminal device determines to establish a multi-channel public data network connection, it establishes a multi-channel public data network connection with the network device, and maps out multiple virtual network cards, and determines the application according to the type of application data. The caller ID corresponding to the data, the corresponding virtual network card is determined according to the caller ID, the corresponding IP address is determined according to the virtual network card, the IP address is bound, and the corresponding application data is sent through the IP address. It can be seen that in this method, during data transmission, the terminal device has different emergency handling schemes for different situations, which greatly improves the efficiency of data transmission.
参阅图5,是本申请根据一个或多个实施例提供的一种数据传输装置的结构示意图,该数据传输装置可以设置在终端设备中,该数据传输装置至少包括建立模块502、确定模块504、发送模块506、处理模块508和存储模块510,其中:Referring to FIG. 5 , it is a schematic structural diagram of a data transmission device provided in this application according to one or more embodiments. The data transmission device can be set in a terminal device, and the data transmission device at least includes an establishment module 502, a determination module 504, Sending module 506, processing module 508 and storage module 510, wherein:
建立模块502,用于与网络设备建立多路公用数据网络连接,并映射出多个虚拟网卡;其中,每一所述虚拟网卡包括主叫识别标识,每一所述虚拟网卡对应有唯一IP地址;The establishment module 502 is used to establish multiple public data network connections with the network equipment, and map out a plurality of virtual network cards; wherein, each of the virtual network cards includes a caller identification mark, and each of the virtual network cards corresponds to a unique IP address ;
确定模块504,用于根据应用数据的类型确定所述应用数据对应的主叫识别标识,根据该主叫识别标识确定对应的虚拟网卡,根据该虚拟网卡确定对应的IP地址;A determining module 504, configured to determine a caller ID corresponding to the application data according to the type of the application data, determine a corresponding virtual network card according to the caller ID, and determine a corresponding IP address according to the virtual network card;
发送模块506,用于绑定该IP地址,并通过该IP地址发送对应的应用数据。The sending module 506 is configured to bind the IP address and send corresponding application data through the IP address.
可选地,所述数据传输装置还包括存储模块510,所述存储模块510存储 有应用数据的类型与主叫识别标识的对应关系,所述确定模块504根据应用数据的类型确定所述应用数据对应的主叫识别标识,具体用于:Optionally, the data transmission device further includes a storage module 510, the storage module 510 stores the correspondence between the type of application data and the caller ID, and the determination module 504 determines the application data according to the type of application data Corresponding caller ID, specifically used for:
根据应用数据的类型并参照该对应关系,确定所述应用数据对应的主叫识别标识。According to the type of the application data and referring to the corresponding relationship, determine the caller ID corresponding to the application data.
可选地,所述数据传输装置还包括处理模块508,所述处理模块508在所述与网络设备建立多路公用数据网络连接,并映射出多个虚拟网卡之前,具体用于:Optionally, the data transmission device further includes a processing module 508, the processing module 508 is specifically configured to:
判断是否建立公用数据网络连接;当没有建立公用数据网络连接,则退出流程并终止数据传输。Determine whether to establish a public data network connection; if no public data network connection is established, exit the process and terminate data transmission.
可选地,在判断是否建立公用数据网络连接之后,所述处理模块508用于:Optionally, after determining whether to establish a public data network connection, the processing module 508 is configured to:
判断是否建立多路公用数据网络连接;当没有建立多路公用数据网络连接,则映射唯一虚拟网卡,该虚拟网卡对应唯一IP地址;Judging whether to establish a multi-channel public data network connection; when no multi-channel public data network connection is established, map a unique virtual network card, which corresponds to a unique IP address;
绑定该唯一IP地址,并通过该唯一IP地址发送所有应用数据。Bind to this unique IP address, and send all application data through this unique IP address.
上述数据传输装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于服务器中的处理器中,也可以以软件形式存储于服务器中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned data transmission device may be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the server in the form of hardware, or can be stored in the memory of the server in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
参阅图6,是本申请根据一个或多个实施例提供的一种计算机设备的结构示意图。该计算机设备至少包括处理器602、存储器606和用户接口604,处理器602、存储器606和用户接口604相互连接,其中,存储器606用于存储计算机程序,计算机程序包括程序指令,处理器602用于执行程序指令。Referring to FIG. 6 , it is a schematic structural diagram of a computer device provided by the present application according to one or more embodiments. The computer device includes at least a processor 602, a memory 606 and a user interface 604, the processor 602, the memory 606 and the user interface 604 are connected to each other, wherein the memory 606 is used to store a computer program, the computer program includes program instructions, and the processor 602 is used to Execute program instructions.
存储器606可以包括易失性存储器(volatile memory),例如,随存取存储器(random-access memory,RAM);存储器606也可以包括非易失性存储器(non-volatile memory),例如,快闪存储器(flash memory),固态硬盘(solid-state drive,SSD)等;存储器606还可以包括上述种类的存储器的组合。The memory 606 can include a volatile memory (volatile memory), for example, random-access memory (random-access memory, RAM); the memory 606 can also include a non-volatile memory (non-volatile memory), for example, a flash memory (flash memory), solid-state hard drive (solid-state drive, SSD) etc.; Memory 606 can also comprise the combination of above-mentioned types of memory.
处理器602可以是中央处理器(central processing unit,CPU)。处理器602还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)等。上述PLD可以是现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)等。The processor 602 may be a central processing unit (central processing unit, CPU). The processor 602 may further include a hardware chip. The aforementioned hardware chip may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD), and the like. The above-mentioned PLD may be a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) and the like.
在一个可选的实施方式中,存储器606还用于存储程序指令。处理器602可以调用程序指令:处理器602被配置用于调用程序指令,执行以下步骤:In an optional implementation, the memory 606 is also used to store program instructions. The processor 602 can invoke program instructions: the processor 602 is configured to invoke program instructions, and perform the following steps:
与网络设备建立多路公用数据网络连接,并映射出多个虚拟网卡;其中,每一所述虚拟网卡包括主叫识别标识,每一所述虚拟网卡对应有唯一IP地址;Establishing multiple public data network connections with network equipment, and mapping out a plurality of virtual network cards; wherein, each of the virtual network cards includes a caller identification mark, and each of the virtual network cards corresponds to a unique IP address;
根据应用数据的类型确定所述应用数据对应的主叫识别标识,根据该主叫识别标识确定对应的虚拟网卡,根据该虚拟网卡确定对应的IP地址;Determine the caller ID corresponding to the application data according to the type of the application data, determine the corresponding virtual network card according to the caller ID, and determine the corresponding IP address according to the virtual network card;
绑定该IP地址,并通过该IP地址发送对应的应用数据。Bind the IP address, and send corresponding application data through the IP address.
可选的,终端设备存储有应用数据的类型与主叫识别标识的对应关系,所述处理器602根据应用数据的类型确定所述应用数据对应的主叫识别标识,包括:Optionally, the terminal device stores the correspondence between the type of application data and the caller ID, and the processor 602 determines the caller ID corresponding to the application data according to the type of the application data, including:
根据应用数据的类型并参照该对应关系,确定所述应用数据对应的主叫识别标识。According to the type of the application data and referring to the corresponding relationship, determine the caller ID corresponding to the application data.
可选的,在所述与网络设备建立多路公用数据网络连接,并映射出多个虚拟网卡之前,所述处理器602还执行;Optionally, before establishing multiple public data network connections with the network device and mapping multiple virtual network cards, the processor 602 also executes;
判断是否建立公用数据网络连接;当没有建立公用数据网络连接,则退出流程并终止数据传输。Determine whether to establish a public data network connection; if no public data network connection is established, exit the process and terminate data transmission.
可选的,在判断是否建立公用数据网络连接之后,所述处理器602还执行:Optionally, after determining whether to establish a public data network connection, the processor 602 further executes:
判断是否建立多路公用数据网络连接;当没有建立多路公用数据网络连接,则映射唯一虚拟网卡,该虚拟网卡对应唯一IP地址;Judging whether to establish a multi-channel public data network connection; when no multi-channel public data network connection is established, map a unique virtual network card, which corresponds to a unique IP address;
绑定该唯一IP地址,并通过该唯一IP地址发送所有应用数据。Bind to this unique IP address, and send all application data through this unique IP address.
本申请还提供一种计算机可读存储介质,计算机可读存储介质上存储有数据传输程序,数据传输程序被处理器执行时实现上述任一实施例中的一种数据传输方法的步骤。The present application also provides a computer-readable storage medium, on which a data transmission program is stored, and when the data transmission program is executed by a processor, the steps of a data transmission method in any of the foregoing embodiments are implemented.
在本申请提供的移动终端和计算机可读存储介质的实施例中,包含了上述一种数据传输方法各实施例的全部技术特征,说明书拓展和解释内容与上述方法的各实施例基本相同,在此不做再赘述。The embodiments of the mobile terminal and the computer-readable storage medium provided in this application include all the technical features of the embodiments of the above-mentioned data transmission method, and the expansion and explanation of the description are basically the same as those of the embodiments of the above-mentioned method. I won't repeat it here.
本申请实施例还提供一种计算机程序产品,计算机程序产品包括计算机程序代码,当计算机程序代码在计算机上运行时,使得计算机执行如上各种可能的实施方式中的方法。An embodiment of the present application further provides a computer program product, the computer program product includes computer program code, and when the computer program code is run on the computer, the computer is made to execute the methods in the above various possible implementation manners.
本申请实施例还提供一种芯片,包括存储器和处理器,存储器用于存储计算机程序,处理器用于从存储器中调用并运行计算机程序,使得安装有芯片的设备执行如上各种可能的实施方式中的方法。The embodiment of the present application also provides a chip, including a memory and a processor. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the device installed with the chip executes the above various possible implementation modes. Methods.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the methods of the embodiments of the present application can be adjusted, combined and deleted according to actual needs.
本申请实施例设备中的单元可以根据实际需要进行合并、划分和删减。Units in the device in the embodiment of the present application may be combined, divided and deleted according to actual needs.
在本申请中,对于相同或相似的术语概念、技术方案和/或应用场景描述,一般只在第一次出现时进行详细描述,后面再重复出现时,为了简洁,一般未再重复阐述,在理解本申请技术方案等内容时,对于在后未详细描述的相同或相似的术语概念、技术方案和/或应用场景描述等,可以参考其之前的相关详细描述。In this application, descriptions of the same or similar terms, concepts, technical solutions and/or application scenarios are generally only described in detail when they appear for the first time, and when they appear repeatedly later, for the sake of brevity, they are generally not repeated. When understanding the technical solutions and other contents of the present application, for the same or similar term concepts, technical solutions and/or application scenario descriptions that are not described in detail later, you can refer to the previous relevant detailed descriptions.
在本申请中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In this application, the description of each embodiment has its own emphasis. For the parts that are not detailed or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
在本申请中,上述装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。其中,网络接口可以是以太网卡或无线网卡等。上述各模块可以硬件形式内嵌于或独立于服务器中的处理器中,也可以以软件形式存储于服务器中的存储器中,以便于处理器调用执行以上各个模块对应的操作。In the present application, each module in the above-mentioned device may be fully or partially realized by software, hardware or a combination thereof. Wherein, the network interface may be an Ethernet card or a wireless network card or the like. The above-mentioned modules can be embedded in or independent of the processor in the server in the form of hardware, and can also be stored in the memory of the server in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
在本申请中,使用的术语“组件”和“模块”等旨在表示计算机相关的实体,它可以是硬件、硬件和软件的组台、软件、或者执行中的软件。例如,组件可以是但不限于是,在处理器上运行的进程、处理器、对象、可执行码、执行的线程、程序和或计算机。作为说明,运行在服务器上的应用程序和服务器都可以是组件。一个或多个组件可以驻留在进程和或执行的线程中,并且组件可以位于一个计算机内和或分布在两个或更多的计算机之间。In this application, the terms "component" and "module" etc. as used are intended to refer to a computer-related entity, which may be hardware, a combination of hardware and software, software, or software in execution. For example, a component may be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and or a computer. As an illustration, both an application running on a server and a server can be a component. One or more components can reside within a process and or thread of execution, and a component can be localized on one computer and or distributed between two or more computers.
本申请技术方案的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本申请记载的范围。The various technical features of the technical solution of the present application can be combined arbitrarily. For the sake of concise description, all possible combinations of the various technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, all It should be regarded as the scope described in this application.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对传统技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,被控终端,或者网络设备等)执行本申请每个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the traditional technology, and the computer software product is stored in the above storage medium (such as ROM/RAM, disk , CD-ROM), including several instructions to enable a terminal device (which may be a mobile phone, computer, server, controlled terminal, or network device, etc.) to execute the method of each embodiment of the present application.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络,或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、存储盘、磁带)、光介质(例如,DVD),或者半导体介质(例如固态存储盘Solid State Disk(SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, special purpose computer, a computer network, or other programmable apparatus. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media. Usable media may be magnetic media, (eg, floppy disk, memory disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.
以上仅为本申请的部分实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间 接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only some embodiments of the application, and are not intended to limit the patent scope of the application. Any equivalent structure or equivalent process transformation made by using the specification and drawings of the application, or directly or indirectly used in other related technical fields , are all included in the patent protection scope of the present application in the same way.

Claims (10)

  1. 一种数据传输方法,应用于终端设备,包括:A data transmission method applied to a terminal device, comprising:
    与网络设备建立多路公用数据网络连接,并映射出多个虚拟网卡;其中,每一所述虚拟网卡包括主叫识别标识,每一所述虚拟网卡对应有唯一IP地址;Establishing multiple public data network connections with network equipment, and mapping out a plurality of virtual network cards; wherein, each of the virtual network cards includes a caller identification mark, and each of the virtual network cards corresponds to a unique IP address;
    根据应用数据的类型确定所述应用数据对应的主叫识别标识,根据该主叫识别标识确定对应的虚拟网卡,根据该虚拟网卡确定对应的IP地址;Determine the caller ID corresponding to the application data according to the type of the application data, determine the corresponding virtual network card according to the caller ID, and determine the corresponding IP address according to the virtual network card;
    绑定该IP地址,并通过该IP地址发送对应的应用数据。Bind the IP address, and send corresponding application data through the IP address.
  2. 根据权利要求1所述的方法,其特征在于,终端设备存储有应用数据的类型与主叫识别标识的对应关系,所述根据应用数据的类型确定所述应用数据对应的主叫识别标识,包括:The method according to claim 1, wherein the terminal device stores the corresponding relationship between the type of application data and the caller ID, and determining the caller ID corresponding to the application data according to the type of the application data includes :
    根据应用数据的类型并参照该对应关系,确定所述应用数据对应的主叫识别标识。According to the type of the application data and referring to the corresponding relationship, determine the caller ID corresponding to the application data.
  3. 根据权利要求1所述的方法,其特征在于,在所述与网络设备建立多路公用数据网络连接,并映射出多个虚拟网卡之前,所述方法还包括;The method according to claim 1, characterized in that, before establishing a multi-channel public data network connection with the network device and mapping out a plurality of virtual network cards, the method further includes;
    判断是否建立公用数据网络连接;当没有建立公用数据网络连接,则退出流程并终止数据传输。Determine whether to establish a public data network connection; if no public data network connection is established, exit the process and terminate data transmission.
  4. 根据权利要求3所述的方法,其特征在于,在判断是否建立公用数据网络连接之后,所述方法还包括:The method according to claim 3, wherein after judging whether to establish a public data network connection, the method further comprises:
    判断是否建立多路公用数据网络连接;当没有建立多路公用数据网络连接,则映射唯一虚拟网卡,该虚拟网卡对应唯一IP地址;Judging whether to establish a multi-channel public data network connection; when no multi-channel public data network connection is established, map a unique virtual network card, which corresponds to a unique IP address;
    绑定该唯一IP地址,并通过该唯一IP地址发送所有应用数据。Bind to this unique IP address, and send all application data through this unique IP address.
  5. 一种数据传输装置,开设:A data transmission device set up:
    建立模块,用于与网络设备建立多路公用数据网络连接,并映射出多个虚拟网卡;其中,每一所述虚拟网卡包括主叫识别标识,每一所述虚拟网卡对应有唯一IP地址;Establishing a module, used to establish multiple public data network connections with network equipment, and map out a plurality of virtual network cards; wherein, each of the virtual network cards includes a caller identification mark, and each of the virtual network cards corresponds to a unique IP address;
    确定模块,用于根据应用数据的类型确定所述应用数据对应的主叫识别标识,根据该主叫识别标识确定对应的虚拟网卡,根据该虚拟网卡确定对应的IP地址;A determining module, configured to determine the caller ID corresponding to the application data according to the type of the application data, determine the corresponding virtual network card according to the caller ID, and determine the corresponding IP address according to the virtual network card;
    发送模块,用于绑定该IP地址,并通过该IP地址发送对应的应用数据。The sending module is configured to bind the IP address and send corresponding application data through the IP address.
  6. 根据权利要求5所述的数据传输装置,其特征在于,所述数据传输装置还包括存储模块,所述存储模块存储有应用数据的类型与主叫识别标识的对应关系,所述确定模块根据应用数据的类型确定所述应用数据对应的主叫识别标识,具体用于:The data transmission device according to claim 5, characterized in that, the data transmission device further comprises a storage module, the storage module stores the corresponding relationship between the type of application data and the caller ID, and the determination module according to the application The type of data determines the caller ID corresponding to the application data, specifically for:
    根据应用数据的类型并参照该对应关系,确定所述应用数据对应的主叫识别标识。According to the type of the application data and referring to the corresponding relationship, determine the caller ID corresponding to the application data.
  7. 根据权利要求5所述的数据传输装置,其特征在于,所述数据传输装置还包括处理模块,所述处理模块在所述与网络设备建立多路公用数据网络连接,并映射出多个虚拟网卡之前,用于:The data transmission device according to claim 5, wherein the data transmission device further comprises a processing module, and the processing module establishes a multi-channel public data network connection with the network device, and maps out a plurality of virtual network cards Before, for:
    判断是否建立公用数据网络连接;当没有建立公用数据网络连接,则退出流程并终止数据传输。Determine whether to establish a public data network connection; if no public data network connection is established, exit the process and terminate data transmission.
  8. 根据权利要求7所述的数据传输装置,其特征在于,在判断是否建立公用数据网络连接之后,所述处理模块还用于:The data transmission device according to claim 7, wherein after judging whether to establish a public data network connection, the processing module is further used for:
    判断是否建立多路公用数据网络连接;当没有建立多路公用数据网络连接,则映射唯一虚拟网卡,该虚拟网卡对应唯一IP地址;Judging whether to establish a multi-channel public data network connection; when no multi-channel public data network connection is established, map a unique virtual network card, which corresponds to a unique IP address;
    绑定该唯一IP地址,并通过该唯一IP地址发送所有应用数据。Bind to this unique IP address, and send all application data through this unique IP address.
  9. 一种计算机设备,包括:存储器和一个或多个处理器,其中,所述存储器上存储有计算机程序,所述计算机程序被所述一个或多个处理器执行时实现如权利要求1至4中任一项所述的方法。A computer device, comprising: a memory and one or more processors, wherein a computer program is stored on the memory, and when the computer program is executed by the one or more processors, it implements claims 1 to 4 any one of the methods described.
  10. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被一个或多个处理器执行时实现如权利要求1至4中任一项所述的方法。A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by one or more processors, the method according to any one of claims 1 to 4 is realized.
PCT/CN2022/104418 2021-12-09 2022-07-07 Data transmission method and related device WO2023103367A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111501212.4A CN114257568A (en) 2021-12-09 2021-12-09 Data transmission method and related equipment
CN202111501212.4 2021-12-09

Publications (1)

Publication Number Publication Date
WO2023103367A1 true WO2023103367A1 (en) 2023-06-15

Family

ID=80794455

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/104418 WO2023103367A1 (en) 2021-12-09 2022-07-07 Data transmission method and related device

Country Status (2)

Country Link
CN (1) CN114257568A (en)
WO (1) WO2023103367A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257568A (en) * 2021-12-09 2022-03-29 深圳市广和通无线股份有限公司 Data transmission method and related equipment
CN115174310B (en) * 2022-05-16 2024-04-05 深圳市广和通无线通信软件有限公司 PDN dialing and configuration method, system, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130100798A1 (en) * 2011-01-30 2013-04-25 Huawei Technologies Co., Ltd. Method, network card, and communication system for binding physical network ports
US20150106812A1 (en) * 2013-10-16 2015-04-16 Power-All Networks Limited Cloud gateway, cloud gateway management device, and method thereof
CN108833508A (en) * 2018-05-31 2018-11-16 惠州市德赛西威汽车电子股份有限公司 Applied to multi-channel A PN networking method, storage medium and the system in car networking system
CN110830481A (en) * 2019-11-13 2020-02-21 深圳市华宝电子科技有限公司 Vehicle-mounted equipment internet surfing method and device, server and storage medium
CN114257568A (en) * 2021-12-09 2022-03-29 深圳市广和通无线股份有限公司 Data transmission method and related equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925461A (en) * 2005-09-01 2007-03-07 华为技术有限公司 Method for talking caller identification display in communication system
WO2007025436A1 (en) * 2005-09-01 2007-03-08 Huawei Technologies Co., Ltd. A method for calling identity delivery when calling in the communication system
CN102333210B (en) * 2011-10-28 2014-03-26 杭州华三通信技术有限公司 Video data storage method and equipment
US9602556B1 (en) * 2013-03-15 2017-03-21 CSC Holdings, LLC PacketCable controller for voice over IP network
CN105656747A (en) * 2015-11-11 2016-06-08 乐卡汽车智能科技(北京)有限公司 Multi-link data transmission method and apparatus
CN107846713B (en) * 2017-09-22 2020-12-15 上海华为技术有限公司 Network switching method and communication system
CN109768871B (en) * 2017-11-09 2022-09-16 阿里巴巴集团控股有限公司 Method for configuring multiple virtual network cards, host machine and storage medium
CN113709200B (en) * 2020-05-21 2023-11-28 阿里巴巴集团控股有限公司 Method and device for establishing communication connection
CN113300985B (en) * 2021-03-30 2023-04-07 阿里巴巴(中国)有限公司 Data processing method, device, equipment and storage medium
CN113556248B (en) * 2021-07-16 2023-05-12 广东电网有限责任公司 Cluster measurement and control dynamic deployment method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130100798A1 (en) * 2011-01-30 2013-04-25 Huawei Technologies Co., Ltd. Method, network card, and communication system for binding physical network ports
US20150106812A1 (en) * 2013-10-16 2015-04-16 Power-All Networks Limited Cloud gateway, cloud gateway management device, and method thereof
CN108833508A (en) * 2018-05-31 2018-11-16 惠州市德赛西威汽车电子股份有限公司 Applied to multi-channel A PN networking method, storage medium and the system in car networking system
CN110830481A (en) * 2019-11-13 2020-02-21 深圳市华宝电子科技有限公司 Vehicle-mounted equipment internet surfing method and device, server and storage medium
CN114257568A (en) * 2021-12-09 2022-03-29 深圳市广和通无线股份有限公司 Data transmission method and related equipment

Also Published As

Publication number Publication date
CN114257568A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
WO2023103367A1 (en) Data transmission method and related device
CN109315004B (en) PDU type setting method and related entity
CN104429037B8 (en) Method, equipment and system for being connected to communication equipment
WO2023000935A1 (en) Data processing method, network element device, and readable storage medium
US11856065B2 (en) Data transmission for service integration between a virtual private cloud and an intranet
US20180063879A1 (en) Apparatus and method for interoperation between internet-of-things devices
JP2020517132A (en) Method, apparatus and system for implementing policy control
TW201517577A (en) Enabling direct transport layer connectivity
US9094901B2 (en) Utilization of multiple access points to support multiple applications and services
US8386614B2 (en) Network connection manager
JP2012512573A (en) Public communication environment with secure remote access
WO2022033345A1 (en) Pdu session establishment method, terminal device, and chip system
WO2018195829A1 (en) Redirection method, control plane network element, aggregation user plane network element, content server and terminal device
WO2023000940A1 (en) Data processing method and apparatus, and network element device, storage medium and program product
WO2015065210A1 (en) Secure mobile access to resources within a private network
US20200367155A1 (en) Application based routing of data packets in multi-access communication networks
WO2017101186A1 (en) Method for establishing wireless connection for application of user equipment
WO2022042235A1 (en) Data packet sending method and apparatus, data packet processing method and apparatus, device, and data packet
WO2019157963A1 (en) Data transmission method, mobility management device, data service processing device, and terminal
CN112751812A (en) Method and device for self-adapting application protocol
CN113162836B (en) Virtual local area network communication method and device, cloud server, medium and electronic equipment
US10873526B2 (en) Flow aggregation and routing for multi-connectivity client devices
US9860736B1 (en) Providing network resource access based on a purpose identifier
US10348518B2 (en) Method, apparatus, system and media for transmitting messages between networked devices in data communication with a local network access point
WO2023011057A1 (en) Communication method and apparatus

Legal Events

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

Ref document number: 22902803

Country of ref document: EP

Kind code of ref document: A1