CN110856220B - Data transmission method and terminal - Google Patents

Data transmission method and terminal Download PDF

Info

Publication number
CN110856220B
CN110856220B CN201911124325.XA CN201911124325A CN110856220B CN 110856220 B CN110856220 B CN 110856220B CN 201911124325 A CN201911124325 A CN 201911124325A CN 110856220 B CN110856220 B CN 110856220B
Authority
CN
China
Prior art keywords
terminal
data
information
sub
acquisition request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911124325.XA
Other languages
Chinese (zh)
Other versions
CN110856220A (en
Inventor
周伟
余为波
刘国森
王进德
李西林
黄国荣
杜林�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yibin Zhengxing Intelligent Manufacturing Technology Co ltd
Original Assignee
Shenzhen Eastaeon Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Eastaeon Technology Co ltd filed Critical Shenzhen Eastaeon Technology Co ltd
Priority to CN201911124325.XA priority Critical patent/CN110856220B/en
Publication of CN110856220A publication Critical patent/CN110856220A/en
Application granted granted Critical
Publication of CN110856220B publication Critical patent/CN110856220B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • H04W12/033Protecting confidentiality, e.g. by encryption of the user plane, e.g. user's traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

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

Abstract

本发明实施例涉及一种数据传输方法及终端,所述方法包括:第一终端向第二终端发送数据获取请求,所述数据获取请求携带有设定的字符和/或图片;所述第二终端基于所述数据获取请求确定待传输的数据,将所述数据拆分为多个子数据;所述第二终端基于所述字符和/或图片对所述每个子数据进行加密;所述第二终端与所述第一终端建立5G传输网络,将加密后的所述子数据插入切片中,所述第二终端将携带所述子数据的多个所述切片并行向所述第一终端传输,在5G终端之间的数据传输,采用端到端之间数据直接传输,减少了由基站转发的时延,采用网络切片的形式进行数据传输,提升5G终端之间数据传输的速率,通过预先约定拆分规则、插入规则和插入数据的形式可保证数据传输过程中的安全性。

Figure 201911124325

Embodiments of the present invention relate to a data transmission method and terminal. The method includes: a first terminal sends a data acquisition request to a second terminal, where the data acquisition request carries set characters and/or pictures; the second terminal The terminal determines the data to be transmitted based on the data acquisition request, and splits the data into multiple sub-data; the second terminal encrypts each of the sub-data based on the characters and/or pictures; the second The terminal establishes a 5G transmission network with the first terminal, inserts the encrypted sub-data into slices, and the second terminal transmits the plurality of slices carrying the sub-data to the first terminal in parallel, For data transmission between 5G terminals, direct data transmission between end-to-end is adopted to reduce the delay forwarded by the base station, and data transmission is carried out in the form of network slicing to improve the data transmission rate between 5G terminals. The splitting rules, inserting rules and the form of inserting data can ensure the security during data transmission.

Figure 201911124325

Description

数据传输方法及终端Data transmission method and terminal

技术领域technical field

本发明实施例涉及通信领域,尤其涉及一种数据传输方法及终端。Embodiments of the present invention relate to the field of communications, and in particular, to a data transmission method and terminal.

背景技术Background technique

对于终端而言,终端之间的数据传输通常采用蓝牙短距离传输、或从存储介质相互拷贝的形式,上述的传输形式对于数据安全性的影响、数据的传输时间通常具有一定影响。For terminals, data transmission between terminals usually adopts the form of Bluetooth short-distance transmission or mutual copying from a storage medium. The above-mentioned transmission forms usually have a certain impact on data security and data transmission time.

例如,数据拷贝的形式,通常以数据线连接另一设备或者在终端上插入存储卡的形式进行数据传输,当设备或存储卡上携带有病毒(该病毒未存在于待传输的数据上)时,当终端与设备或存储卡连接时,会对终端造成一定的安全隐患。For example, in the form of data copy, data transmission is usually carried out in the form of connecting another device with a data cable or inserting a memory card in the terminal, when the device or memory card carries a virus (the virus does not exist on the data to be transmitted) , when the terminal is connected to a device or a memory card, it will cause certain security risks to the terminal.

又如,蓝牙短距离传输的形式,通常以两个终端进行蓝牙配对,配对完成后进行数据传输,但是蓝牙传输的形式受限于传输距离以及数据的大小。For another example, in the form of Bluetooth short-distance transmission, two terminals are usually paired with Bluetooth, and data is transmitted after the pairing is completed, but the form of Bluetooth transmission is limited by the transmission distance and the size of the data.

在5G终端时代,数据拷贝的形式或蓝牙短距离传输的形式均不利于大数据的高效传输。In the era of 5G terminals, neither the form of data copy nor the form of Bluetooth short-distance transmission is conducive to the efficient transmission of big data.

发明内容SUMMARY OF THE INVENTION

鉴于此,为解决上述技术问题或部分技术问题,本发明实施例提供一种数据传输方法及终端。In view of this, in order to solve the above technical problems or some of the technical problems, embodiments of the present invention provide a data transmission method and a terminal.

第一方面,本发明实施例提供一种数据传输方法,包括:In a first aspect, an embodiment of the present invention provides a data transmission method, including:

第一终端向第二终端发送数据获取请求,所述数据获取请求携带有设定的字符和/或图片;The first terminal sends a data acquisition request to the second terminal, and the data acquisition request carries a set character and/or picture;

所述第二终端基于所述数据获取请求确定待传输的数据,将所述数据拆分为多个子数据;The second terminal determines the data to be transmitted based on the data acquisition request, and splits the data into multiple sub-data;

所述第二终端基于所述字符和/或图片对所述每个子数据进行加密;The second terminal encrypts each of the sub-data based on the characters and/or pictures;

所述第二终端与所述第一终端建立5G传输网络,将加密后的所述子数据插入切片中,所述第二终端将携带所述子数据的多个所述切片并行向所述第一终端传输。The second terminal establishes a 5G transmission network with the first terminal, inserts the encrypted sub-data into slices, and the second terminal transmits a plurality of the slices carrying the sub-data to the first terminal in parallel. A terminal transmission.

在一个可能的实施方式中,所述将所述数据拆分为多个子数据,包括:In a possible implementation manner, the splitting of the data into multiple sub-data includes:

所述第二终端根据所述数据获取请求查询本地存储的所述第一终端与所述第二终端共同约定的拆分规则;The second terminal inquires, according to the data acquisition request, a locally stored splitting rule jointly agreed by the first terminal and the second terminal;

所述第二终端按照所述拆分规则将所述数据拆分为多个子数据。The second terminal splits the data into multiple sub-data according to the splitting rule.

在一个可能的实施方式中,所述第二终端基于所述字符和/或图片对所述每个子数据进行加密,包括:In a possible implementation manner, the second terminal encrypts each sub-data based on the characters and/or pictures, including:

所述第二终端根据所述数据获取请求查询本地存储的所述第一终端与所述第二终端共同约定插入规则;The second terminal inquires, according to the data acquisition request, an insertion rule jointly agreed by the first terminal and the second terminal stored locally;

所述第二终端按照所述插入规则将所述字符和/或图片插入所述子数据中的设定位置以完成对所述子数据的加密,以及对加密后的所述子数据设置标识。The second terminal inserts the character and/or picture into a set position in the sub-data according to the insertion rule to complete the encryption of the sub-data, and sets an identifier for the encrypted sub-data.

在一个可能的实施方式中,在所述第二终端基于所述字符和/或图片对所述每个子数据进行加密之后,还包括:In a possible implementation manner, after the second terminal encrypts each sub-data based on the characters and/or pictures, the method further includes:

所述第二终端根据加密后的所述子数据的所述标识和数量生成拆分信息,将所述拆分信息发送给所述第一终端。The second terminal generates split information according to the encrypted identifier and quantity of the sub-data, and sends the split information to the first terminal.

在一个可能的实施方式中,所述第二终端与所述第一终端建立5G传输网络,包括:In a possible implementation manner, establishing a 5G transmission network between the second terminal and the first terminal includes:

所述第一终端的5G芯片接入网络切片确定所述第一终端接入的多个网络切片的第一切片信息、第一IP地址信息和第一端口信息;The 5G chip access network slice of the first terminal determines first slice information, first IP address information, and first port information of multiple network slices accessed by the first terminal;

所述第一终端将所述第一切片信息、所述第一IP地址信息和所述第一端口信息发送给第二终端,以使所述第二终端基于所述第一切片信息接入对应的多个网络切片,以及向所述第一终端返回所述第二终端的第二IP地址信息和第二端口信息。The first terminal sends the first slice information, the first IP address information, and the first port information to the second terminal, so that the second terminal can connect based on the first slice information. inputting the corresponding multiple network slices, and returning the second IP address information and second port information of the second terminal to the first terminal.

在一个可能的实施方式中,所述方法,还包括:In a possible implementation, the method further includes:

从接收到的多个所述切片中获取对应的多个加密后的所述子数据,按照所述插入规则对多个加密后的所述子数据进行解密得到,多个所述子数据;根据拆分信息将多个所述子数据组合为数据。Obtain a plurality of corresponding encrypted sub-data from the received plurality of slices, and decrypt the encrypted sub-data according to the insertion rule to obtain the plurality of sub-data; according to The split information combines a plurality of the sub-data into data.

第二方面,本发明实施例提供一种终端,包括:In a second aspect, an embodiment of the present invention provides a terminal, including:

收发器,用于接收第一终端发送的数据获取请求,所述数据获取请求携带有设定的字符和/或图片;a transceiver, configured to receive a data acquisition request sent by the first terminal, where the data acquisition request carries set characters and/or pictures;

处理器,用于基于所述数据获取请求确定待传输的数据,将所述数据拆分为多个子数据;a processor, configured to determine the data to be transmitted based on the data acquisition request, and split the data into multiple sub-data;

所述处理器,还用于基于所述字符和/或图片对所述每个子数据进行加密;The processor is further configured to encrypt each of the sub-data based on the characters and/or pictures;

所述收发器,还用于与所述第一终端建立5G传输网络,将加密后的所述子数据插入切片中,所述第二终端将携带所述子数据的多个所述切片并行向所述第一终端传输。The transceiver is further configured to establish a 5G transmission network with the first terminal, insert the encrypted sub-data into the slice, and the second terminal will transmit the plurality of slices carrying the sub-data to the slice in parallel. The first terminal transmits.

在一个可能的实施方式中,所述处理器,具体用于根据所述数据获取请求查询本地存储的所述第一终端与所述第二终端共同约定的拆分规则;所述第二终端按照所述拆分规则将所述数据拆分为多个子数据,根据所述数据获取请求查询本地存储的所述第一终端与所述第二终端共同约定插入规则;所述第二终端按照所述插入规则将所述字符和/或图片插入所述子数据中的设定位置以完成对所述子数据的加密,以及对加密后的所述子数据设置标识。In a possible implementation manner, the processor is specifically configured to, according to the data acquisition request, query the locally stored splitting rule jointly agreed by the first terminal and the second terminal; The splitting rule splits the data into a plurality of sub-data, and queries the locally stored first terminal and the second terminal according to the data acquisition request to jointly agree on the insertion rule; the second terminal according to the The insertion rule inserts the character and/or picture into a set position in the sub-data to complete the encryption of the sub-data, and sets an identifier for the encrypted sub-data.

在一个可能的实施方式中,所述收发器,具体用于接收所述第一终端发送的第一切片信息、第一IP地址信息和第一端口信息,以及基于所述第一切片信息接入对应的多个网络切片,以及向所述第一终端返回所述第二终端的第二IP地址信息和第二端口信息。In a possible implementation manner, the transceiver is specifically configured to receive first slice information, first IP address information, and first port information sent by the first terminal, and based on the first slice information Accessing the corresponding multiple network slices, and returning the second IP address information and second port information of the second terminal to the first terminal.

第三方面,本发明实施例提供一种终端,包括:In a third aspect, an embodiment of the present invention provides a terminal, including:

收发器,用于向第二终端发送数据获取请求,所述数据获取请求携带有设定的字符和/或图片;a transceiver, configured to send a data acquisition request to the second terminal, where the data acquisition request carries set characters and/or pictures;

所述收发器,还用于通过5G芯片接入网络切片,以及确定接入的多个网络切片的第一切片信息、第一IP地址信息和第一端口信息,将所述第一切片信息、所述第一IP地址信息和所述第一端口信息发送给所述第二终端;The transceiver is further configured to access the network slice through the 5G chip, and determine the first slice information, the first IP address information, and the first port information of the multiple network slices to be accessed, and connect the first slice to the network slice. information, the first IP address information and the first port information are sent to the second terminal;

所述收发器,还用于接收所述第二终端返回的所述第二终端的第二IP地址信息和第二端口信息;The transceiver is further configured to receive second IP address information and second port information of the second terminal returned by the second terminal;

所述收发器,还用于接收第二终端发送的携带加密后的子数据的多个切片;The transceiver is further configured to receive multiple slices carrying encrypted sub-data sent by the second terminal;

处理器,用于从接收到的多个所述切片中获取对应的多个加密后的所述子数据,按照所述插入规则对多个加密后的所述子数据进行解密得到,多个所述子数据;根据拆分信息将多个所述子数据组合为数据。The processor is configured to obtain a plurality of corresponding encrypted sub-data from the received plurality of slices, and decrypt the encrypted sub-data according to the insertion rule to obtain a plurality of encrypted sub-data. the sub-data; and combine a plurality of the sub-data into data according to the split information.

本发明实施例提供的数据传输方案,通过第一终端向第二终端发送数据获取请求,所述数据获取请求携带有设定的字符和/或图片;所述第二终端基于所述数据获取请求确定待传输的数据,将所述数据拆分为多个子数据;所述第二终端基于所述字符和/或图片对所述每个子数据进行加密;所述第二终端与所述第一终端建立5G传输网络,将加密后的所述子数据插入切片中,所述第二终端将携带所述子数据的多个所述切片并行向所述第一终端传输,第一终端将接收到的多个加密后的所述切片按照所述插入规则进行解密,根据所述拆分信息将多个解密后的所述子数据组合为数据,在5G终端之间的数据传输,采用端到端之间数据直接传输,减少了由基站转发的时延,采用网络切片的形式进行数据传输,提升5G终端之间数据传输的速率,通过预先约定拆分规则、插入规则和插入数据的形式可保证数据传输过程中的安全性。In the data transmission solution provided by the embodiment of the present invention, a data acquisition request is sent to a second terminal through a first terminal, and the data acquisition request carries set characters and/or pictures; the second terminal is based on the data acquisition request Determine the data to be transmitted, and split the data into multiple sub-data; the second terminal encrypts each sub-data based on the characters and/or pictures; the second terminal and the first terminal Establish a 5G transmission network, insert the encrypted sub-data into slices, the second terminal will transmit multiple slices carrying the sub-data to the first terminal in parallel, and the first terminal will receive the The multiple encrypted slices are decrypted according to the insertion rule, and the multiple decrypted sub-data are combined into data according to the split information, and the data transmission between 5G terminals adopts an end-to-end method. The data is directly transmitted between 5G terminals, which reduces the delay forwarded by the base station. The data transmission is carried out in the form of network slicing, which improves the data transmission rate between 5G terminals. The pre-agreed splitting rules, insertion rules and the form of data insertion can ensure data Security during transmission.

附图说明Description of drawings

图1为本发明实施例提供的一种数据传输方法的流程示意图;1 is a schematic flowchart of a data transmission method according to an embodiment of the present invention;

图2为本发明实施例提供的另一种数据传输方法的流程示意图;2 is a schematic flowchart of another data transmission method provided by an embodiment of the present invention;

图3为本发明实施例提供的一种终端的结构示意图;3 is a schematic structural diagram of a terminal according to an embodiment of the present invention;

图4为本发明实施例提供的另一种终端的结构示意图。FIG. 4 is a schematic structural diagram of another terminal according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

为便于对本发明实施例的理解,下面将结合附图以具体实施例做进一步的解释说明,实施例并不构成对本发明实施例的限定。In order to facilitate the understanding of the embodiments of the present invention, further explanation will be given below with specific embodiments in conjunction with the accompanying drawings, and the embodiments do not constitute limitations to the embodiments of the present invention.

图1为本发明实施例提供的一种数据传输方法的流程示意图,如图1所示,该方法具体包括:FIG. 1 is a schematic flowchart of a data transmission method provided by an embodiment of the present invention. As shown in FIG. 1 , the method specifically includes:

S11、第一终端向第二终端发送数据获取请求。S11. The first terminal sends a data acquisition request to the second terminal.

本发明实施例涉及的数据传输方法应用于终端之间的数据的传输,将The data transmission method involved in the embodiments of the present invention is applied to the transmission of data between terminals, and the

第一终端作为数据的接收端、第二终端作为数据的发送端,第一终端与第二终端均为设置有5G模块,5G模块包括5G芯片和Wi-Fi天线,第一终端与第二终端通过5G模块与网络切片连接,进而第二终端通过网络切片向第一终端进行数据传输。The first terminal serves as a data receiving end, and the second terminal serves as a data sending end. Both the first terminal and the second terminal are provided with a 5G module. The 5G module includes a 5G chip and a Wi-Fi antenna. The first terminal and the second terminal are provided with a 5G module. The 5G module is connected to the network slice, and then the second terminal transmits data to the first terminal through the network slice.

本实施例中设定数据获取请求由接收端(第一终端)发起,在该数据获取请求中包含有待传输的数据信息,在该数据获取请求中还携带有设定的字符和/或图片,该字符和/或图片可以用于发送端(第二终端)对带传输的数据进行加密。In this embodiment, it is set that the data acquisition request is initiated by the receiving end (the first terminal), the data acquisition request contains data information to be transmitted, and the data acquisition request also carries the set characters and/or pictures, The characters and/or pictures can be used by the sender (the second terminal) to encrypt the data transmitted with the tape.

S12、所述第二终端基于所述数据获取请求确定待传输的数据,将所述数据拆分为多个子数据。S12. The second terminal determines the data to be transmitted based on the data acquisition request, and splits the data into multiple sub-data.

第二终端对数据获取请求进行解析得到待传输的数据信息,根据数据信息确定待传输的数据,按照第二终端与第一终端约定的拆分规则对数据进行拆分,得到多个子数据。The second terminal parses the data acquisition request to obtain data information to be transmitted, determines the data to be transmitted according to the data information, and splits the data according to the splitting rules agreed between the second terminal and the first terminal to obtain multiple sub-data.

S13、所述第二终端基于所述字符和/或图片对所述每个子数据进行加密。S13. The second terminal encrypts each sub-data based on the characters and/or pictures.

根据数据获取请求中携带的设定的字符和/或图片对每个子数据进行加密,加密的方式可以是:将字符和/或图片插入每个子数据中的设定位置。Each sub-data is encrypted according to the set characters and/or pictures carried in the data acquisition request, and the encryption method may be: inserting the characters and/or pictures into the set positions in each sub-data.

例如,将图片插入某个视频子数据中的多个位置,插入的位置可以由第一终端和第二终端进行约定。For example, pictures are inserted into multiple positions in a certain video sub-data, and the inserted positions can be agreed upon by the first terminal and the second terminal.

S14、所述第二终端与所述第一终端建立5G传输网络,将加密后的所述子数据插入切片中,所述第二终端将携带所述子数据的多个所述切片并行向所述第一终端传输。S14. The second terminal establishes a 5G transmission network with the first terminal, inserts the encrypted sub-data into a slice, and the second terminal sends a plurality of the slices carrying the sub-data to all the slices in parallel. the first terminal transmission.

第一终端通过5G芯片预先接入网络切片,得到接入切片的切片信息,将该切片信息发送给第二终端,第二终端根据该切片信息控制5G芯片接入该切片信息对应的网络切片,将加密后的子数据插入切片中,在切片中插入子数据过程中还可以同时插入子数据的信息(便于后续子数据组合为数据),将携带有子数据的切片通过第二终端与第一终端同时接入的网络切片传输给第一终端。The first terminal accesses the network slice in advance through the 5G chip, obtains slice information of the access slice, sends the slice information to the second terminal, and the second terminal controls the 5G chip to access the network slice corresponding to the slice information according to the slice information, Insert the encrypted sub-data into the slice, and insert the information of the sub-data at the same time during the process of inserting the sub-data in the slice (to facilitate subsequent sub-data to be combined into data), and connect the slice with the sub-data through the second terminal to the first terminal. The network slices simultaneously accessed by the terminals are transmitted to the first terminal.

图2为本发明实施例提供的另一种数据传输方法的流程示意图,如图2所示,该方法具体包括:FIG. 2 is a schematic flowchart of another data transmission method provided by an embodiment of the present invention. As shown in FIG. 2 , the method specifically includes:

S21、第一终端向第二终端发送数据获取请求。S21. The first terminal sends a data acquisition request to the second terminal.

在本实施例中,预先对第一终端和第二终端进行配对,在第一终端与第二终端进行配对时,预先约定二者进行配对的认证信息,该认证信息可以是双方约定的密码等,增加认证信息的目的在于增加确保第二终端为真实的,增加传输过程中的安全性。In this embodiment, the first terminal and the second terminal are paired in advance, and when the first terminal and the second terminal are paired, the authentication information for pairing is pre-agreed, and the authentication information may be a password agreed by both parties, etc. , the purpose of adding the authentication information is to increase the assurance that the second terminal is authentic and to increase the security during the transmission process.

在认证信息通过后,由第二终端确定是否向第一终端传输数据,若确定向第一终端进行数据传输时,则接收第一终端发送的数据获取请求,在该数据获取请求中包含有待传输的数据信息和用于加密数据的设定的字符和/或图片。After the authentication information is passed, the second terminal determines whether to transmit data to the first terminal. If it is determined to transmit data to the first terminal, it receives a data acquisition request sent by the first terminal, and the data acquisition request includes the data to be transmitted. data information and set characters and/or pictures used to encrypt data.

例如,约定接收端(第一终端)的认证信息为XXX-A,发送端(第二终端)的认证信息为XXX-B(同意进行数据传输)和XXX-C(不同意进行数据传输);具体流程可以是:第一终端向第二终端发送XXX-A,表示第一终端希望与第二终端建立数据传输连接,向第二终端请求数据,第二终端返回XXX-B,表示第二终端存储有请求的数据,可以向第一终端传输该数据,第二终端返回XXX-C,表示第二终端未存储有请求的数据。For example, it is agreed that the authentication information of the receiving end (the first terminal) is XXX-A, and the authentication information of the transmitting end (the second terminal) is XXX-B (agree to data transmission) and XXX-C (do not agree to data transmission); The specific process may be: the first terminal sends XXX-A to the second terminal, indicating that the first terminal wishes to establish a data transmission connection with the second terminal, requests data from the second terminal, and the second terminal returns XXX-B, indicating that the second terminal If the requested data is stored, the data can be transmitted to the first terminal, and the second terminal returns XXX-C, indicating that the second terminal does not store the requested data.

S22、第二终端基于所述数据获取请求确定待传输的数据。S22. The second terminal determines the data to be transmitted based on the data acquisition request.

S23、所述第二终端根据所述数据获取请求查询本地存储的所述第一终端与所述第二终端共同约定的拆分规则。S23. The second terminal inquires, according to the data acquisition request, the locally stored splitting rule jointly agreed by the first terminal and the second terminal.

在本实施例中,在第二终端本地存储有多个第二终端与其它终端共同约定的多个拆分规则,第二终端根据第一终端的标识查找第一终端与第二终端共同约定的拆分规则。In this embodiment, a plurality of splitting rules jointly agreed by the second terminal and other terminals are locally stored in the second terminal, and the second terminal searches for the split rules jointly agreed by the first terminal and the second terminal according to the identifier of the first terminal. Split rules.

拆分规则的生成可以由基站进行合成并下发至小区内的终端,终端接入小区后将自己的拆分规则发送给基站,基站对所有的拆分规则按照终端的不同进行两两合并,并将组合后的拆分规则返回给对应的终端。The generation of splitting rules can be synthesized by the base station and sent to the terminals in the cell. After the terminal accesses the cell, it sends its own splitting rules to the base station, and the base station combines all splitting rules according to the different terminals. And return the combined split rule to the corresponding terminal.

例如,第一终端将其自己的拆分规则a发送给基站,第二终端将其自己的拆分规则b发送给基站,基站对拆分规则进行两两合并,将(a+b)返回给对应的第一终端和第二终端。For example, the first terminal sends its own splitting rule a to the base station, the second terminal sends its own splitting rule b to the base station, and the base station combines the splitting rules in pairs, and returns (a+b) to the base station. Corresponding first terminal and second terminal.

在第一终端和第二终端均存储有共同约定的拆分规则(a+b)后,当需要进行数据拆分时,按照发送端的拆分规则对数据进行拆分。After both the first terminal and the second terminal store the commonly agreed splitting rule (a+b), when data splitting is required, the data is split according to the splitting rule of the sender.

S24、所述第二终端按照所述拆分规则将所述数据拆分为多个子数据。S24. The second terminal splits the data into multiple sub-data according to the splitting rule.

拆分规则可以根据实际需求进行设定(如,按照设定大小进行拆分或者按照网络的传输速率进行拆分),本实施例中并不对拆分规则作具体限定。The splitting rule may be set according to actual requirements (eg, splitting according to the set size or splitting according to the transmission rate of the network), and the splitting rule is not specifically limited in this embodiment.

S25、所述第二终端根据所述数据获取请求查询本地存储的所述第一终端与所述第二终端共同约定插入规则。S25. The second terminal queries the locally stored first terminal and the second terminal to jointly agree on the insertion rule according to the data acquisition request.

在本实施例中,在第二终端本地存储有多个第二终端与其它终端共同约定的多个插入规则,第二终端根据第一终端的标识查找第一终端与第二终端共同约定的插入规则。In this embodiment, a plurality of insertion rules jointly agreed by the second terminal and other terminals are locally stored in the second terminal, and the second terminal searches for the insertion rules jointly agreed by the first terminal and the second terminal according to the identifier of the first terminal rule.

插入规则的生成可以由基站进行合成并下发至小区内的终端,终端接入小区后将自己的插入规则发送给基站,基站对所有的插入规则按照终端的不同进行两两合并,并将组合后的插入规则返回给对应的终端。The generation of insertion rules can be synthesized by the base station and sent to the terminals in the cell. After the terminal accesses the cell, it sends its own insertion rules to the base station. The base station combines all the insertion rules according to the different terminals. The subsequent insertion rule is returned to the corresponding terminal.

例如,第一终端将其自己的插入规则c发送给基站,第二终端将其自己的插入规则d发送给基站,基站对插入规则进行两两合并,将(c+d)返回给对应的第一终端和第二终端。For example, the first terminal sends its own insertion rule c to the base station, the second terminal sends its own insertion rule d to the base station, and the base station combines the insertion rules in pairs, and returns (c+d) to the corresponding a terminal and a second terminal.

S26、所述第二终端按照所述插入规则将所述字符和/或图片插入所述子数据中的设定位置以完成对所述子数据的加密,以及对加密后的所述子数据设置标识。S26. The second terminal inserts the character and/or picture into the set position in the sub-data according to the insertion rule to complete the encryption of the sub-data, and sets the encrypted sub-data logo.

插入规则可以根据实际需求进行设定(如,设置将字符和/或图片插入子数据中的设定位置),本实施例中并不对插入规则作具体限定。The insertion rule may be set according to actual requirements (for example, setting a set position for inserting characters and/or pictures into the sub-data), and the insertion rule is not specifically limited in this embodiment.

按照插入规则在每个子数据的设定位置插入字符和/或图片完成对子数据的加密,并为每个加密完后的子数据设置标识。Insert characters and/or pictures at the set position of each sub-data according to the insertion rule to complete the encryption of the sub-data, and set an identifier for each encrypted sub-data.

需要说的是,设定位置可以是子数据中的一个或多个位置。It should be noted that the set position may be one or more positions in the sub-data.

S27、所述第二终端根据加密后的所述子数据的所述标识和数量生成拆分信息,将所述拆分信息发送给所述第一终端。S27. The second terminal generates split information according to the encrypted identifier and quantity of the sub-data, and sends the split information to the first terminal.

第二终端将数据全部拆分为子数据后,将子数据包的数量和标识生成拆分信息,将拆分信息发送给第一终端,拆分信息用于第一终端根据拆分信息对子数据进行组合。After the second terminal splits all the data into sub-data, it generates split information based on the number and identifier of the sub-data packets, and sends the split information to the first terminal. The split information is used by the first terminal to split the sub-data according to the split information. data is combined.

S28、所述第一终端的5G芯片接入网络切片确定所述第一终端接入的多个网络切片的第一切片信息、第一IP地址信息和第一端口信息。S28. The 5G chip of the first terminal accesses the network slice to determine first slice information, first IP address information, and first port information of multiple network slices accessed by the first terminal.

S29、所述第一终端将所述第一切片信息、所述第一IP地址信息和所述第一端口信息发送给第二终端,以使所述第二终端基于所述第一切片信息接入对应的多个网络切片,以及向所述第一终端返回所述第二终端的第二IP地址信息和第二端口信息。S29. The first terminal sends the first slice information, the first IP address information and the first port information to the second terminal, so that the second terminal is based on the first slice The information accesses the corresponding multiple network slices, and returns the second IP address information and second port information of the second terminal to the first terminal.

对于第一终端的5G芯片接入网络切片确定所述第一终端接入的多个网络切片的数量可根据第一终端和第二终端进行协商确定,在第一终端和第二终端同时接入多个网络切片后,采用多个网络切片并行发送子数据可提升数据的传输效率,并且多个网络切片的传输形式也可保证数据传输过程中的安全性。For the 5G chip access network slice of the first terminal, the number of multiple network slices accessed by the first terminal can be determined according to the negotiation between the first terminal and the second terminal. After multiple network slices, using multiple network slices to send sub-data in parallel can improve the data transmission efficiency, and the transmission form of multiple network slices can also ensure the security during data transmission.

S210、将加密后的所述子数据插入切片中,所述第二终端将携带所述子数据的多个所述切片并行向所述第一终端传输。S210. Insert the encrypted sub-data into a slice, and the second terminal transmits the plurality of slices carrying the sub-data to the first terminal in parallel.

S211、所述第一终端从接收到的多个所述切片中获取对应的多个加密后的所述子数据,按照所述插入规则对多个加密后的所述子数据进行解密得到,多个所述子数据;根据拆分信息将多个所述子数据组合为数据。S211. The first terminal obtains a plurality of corresponding encrypted sub-data from the received plurality of slices, and decrypts the encrypted sub-data according to the insertion rule to obtain a plurality of encrypted sub-data. a plurality of the sub-data; and combining a plurality of the sub-data into data according to the split information.

本发明实施例提供的数据传输方法,通过第一终端向第二终端发送数据获取请求,所述数据获取请求携带有设定的字符和/或图片;所述第二终端基于所述数据获取请求确定待传输的数据,将所述数据拆分为多个子数据;所述第二终端基于所述字符和/或图片对所述每个子数据进行加密;所述第二终端与所述第一终端建立5G传输网络,将加密后的所述子数据插入切片中,所述第二终端将携带所述子数据的多个所述切片并行向所述第一终端传输,第一终端将接收到的多个加密后的所述切片按照所述插入规则进行解密,根据所述拆分信息将多个解密后的所述子数据组合为数据,在5G终端之间的数据传输,采用端到端之间数据直接传输,减少了由基站转发的时延,采用网络切片的形式进行数据传输,提升5G终端之间数据传输的速率,通过预先约定拆分规则、插入规则和插入数据的形式可保证数据传输过程中的安全性。In the data transmission method provided by the embodiment of the present invention, a data acquisition request is sent to a second terminal through a first terminal, and the data acquisition request carries set characters and/or pictures; the second terminal is based on the data acquisition request Determine the data to be transmitted, and split the data into multiple sub-data; the second terminal encrypts each sub-data based on the characters and/or pictures; the second terminal and the first terminal Establish a 5G transmission network, insert the encrypted sub-data into slices, the second terminal will transmit multiple slices carrying the sub-data to the first terminal in parallel, and the first terminal will receive the The multiple encrypted slices are decrypted according to the insertion rule, and the multiple decrypted sub-data are combined into data according to the split information, and the data transmission between 5G terminals adopts an end-to-end method. The data is directly transmitted between 5G terminals, which reduces the delay forwarded by the base station. The data transmission is carried out in the form of network slicing, which improves the data transmission rate between 5G terminals. The pre-agreed splitting rules, insertion rules and the form of data insertion can ensure data Security during transmission.

图3为本发明实施例提供的一种终端的结构示意图,如图3所示,该终端具体包括:FIG. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 3 , the terminal specifically includes:

处理器310、存储器320和收发器330。Processor 310 , memory 320 and transceiver 330 .

处理器310可以是中央处理器(Central Processing Unit,CPU),或者CPU和硬件芯片的组合。上述硬件芯片可以是专用集成电路(Application-Specific IntegratedCircuit,ASIC),可编程逻辑器件(Programmable Logic Device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(Complex Programmable Logic device,CPLD),现场可编程门阵列(Field-Frogrammable Gate Array,FPGA),通用阵列逻辑(Generic Array Logic,GAL)或其任意组合。The processor 310 may be a central processing unit (Central Processing Unit, CPU), or a combination of a CPU and a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), a programmable logic device (Programmable Logic Device, PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (Complex Programmable Logic device, CPLD), a field programmable gate array (Field-Frogrammable Gate Array, FPGA), a general array logic (Generic Array Logic, GAL) or any combination thereof.

存储器320用于存储各种应用,操作系统和数据。存储器320可以将存储的数据传输给处理器310。存储器320可以包括易失性存储器,非易失性动态随机存取内存(Nonvolatile Random Access Memory,NVRAM)、相变化随机存取内存(Phase Change RAM,PRAM)、磁阻式随机存取内存(Magetoresistive RAM,MRAM)等,例如至少一个磁盘存储器件、电子可擦除可编程只读存储器(Electrically Erasable Programmable Read-OnlyMemory,EEPROM)、闪存器件,例如反或闪存(Flash Memory,NOR)或是反及闪存(FlashMemory,NAND)、半导体器件,例如固态硬盘(Solid State Disk,SSD)等。存储器320还可以包括上述种类的存储器的组合。Memory 320 is used to store various applications, operating systems and data. The memory 320 may transmit the stored data to the processor 310 . The memory 320 may include volatile memory, non-volatile dynamic random access memory (NVRAM), phase change random access memory (Phase Change RAM, PRAM), magnetoresistive random access memory (Magetoresistive memory) RAM, MRAM), etc., such as at least one disk storage device, Electronically Erasable Programmable Read-Only Memory (EEPROM), flash memory devices such as NAND or Flash Memory (NOR) or NAND Flash memory (FlashMemory, NAND), semiconductor devices, such as Solid State Disk (Solid State Disk, SSD), etc. Memory 320 may also include a combination of the types of memory described above.

收发器330,用于发送和/或接收数据,收发器330可以是天线等。The transceiver 330 is used to transmit and/or receive data, and the transceiver 330 may be an antenna or the like.

所述各器件的工作过程如下:The working process of each device is as follows:

收发器330,用于接收第一终端发送的数据获取请求,所述数据获取请求携带有设定的字符和/或图片;A transceiver 330, configured to receive a data acquisition request sent by the first terminal, where the data acquisition request carries set characters and/or pictures;

处理器310,用于基于所述数据获取请求确定待传输的数据,将所述数据拆分为多个子数据;a processor 310, configured to determine the data to be transmitted based on the data acquisition request, and split the data into multiple sub-data;

所述处理器310,还用于基于所述字符和/或图片对所述每个子数据进行加密;The processor 310 is further configured to encrypt each sub-data based on the characters and/or pictures;

所述收发器330,还用于与所述第一终端建立5G传输网络,将加密后的所述子数据插入切片中,所述第二终端将携带所述子数据的多个所述切片并行向所述第一终端传输。The transceiver 330 is further configured to establish a 5G transmission network with the first terminal, insert the encrypted sub-data into slices, and the second terminal parallelizes multiple slices carrying the sub-data to the first terminal.

可选地,所述处理器310,具体用于根据所述数据获取请求查询本地存储的所述第一终端与所述第二终端共同约定的拆分规则;所述第二终端按照所述拆分规则将所述数据拆分为多个子数据。Optionally, the processor 310 is specifically configured to query the locally stored splitting rule jointly agreed by the first terminal and the second terminal according to the data acquisition request; The sub-rule divides the data into multiple sub-data.

可选地,所述处理器310,具体用于根据所述数据获取请求查询本地存储的所述第一终端与所述第二终端共同约定插入规则;所述第二终端按照所述插入规则将所述字符和/或图片插入所述子数据中的设定位置以完成对所述子数据的加密,以及对加密后的所述子数据设置标识。Optionally, the processor 310 is specifically configured to query the locally stored first terminal and the second terminal to agree on an insertion rule according to the data acquisition request; the second terminal will insert the rule according to the insertion rule. The characters and/or pictures are inserted into the set positions in the sub-data to complete the encryption of the sub-data, and set an identifier for the encrypted sub-data.

可选地,所述收发器330,具体用于接收所述第一终端发送的第一切片信息、第一IP地址信息和第一端口信息,以及基于所述第一切片信息接入对应的多个网络切片,以及向所述第一终端返回所述第二终端的第二IP地址信息和第二端口信息。Optionally, the transceiver 330 is specifically configured to receive the first slice information, the first IP address information, and the first port information sent by the first terminal, and access corresponding information based on the first slice information. and returning the second IP address information and second port information of the second terminal to the first terminal.

本实施例提供的终端可以是如图3中所示的终端,可执行如图1-2中数据传输方法的所有步骤,进而实现图1-2所示数据传输方法的技术效果,具体请参照图1-2相关描述,为简洁描述,在此不作赘述。The terminal provided in this embodiment may be the terminal shown in FIG. 3 , and can perform all the steps of the data transmission method shown in FIG. 1-2, thereby realizing the technical effect of the data transmission method shown in FIG. 1-2. For details, please refer to The descriptions of Figures 1-2 are not repeated here for brevity.

本发明实施例还提供了一种存储介质(计算机可读存储介质)。这里的存储介质存储有一个或者多个程序。其中,存储介质可以包括易失性存储器,例如随机存取存储器;存储器也可以包括非易失性存储器,例如只读存储器、快闪存储器、硬盘或固态硬盘;存储器还可以包括上述种类的存储器的组合。The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. Wherein, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid-state hard disk; the memory may also include the above-mentioned types of memory. combination.

当存储介质中一个或者多个程序可被一个或者多个处理器执行,以实现上述在数据传输设备侧执行的数据传输方法。When one or more programs in the storage medium can be executed by one or more processors, the above-mentioned data transmission method performed on the data transmission device side can be implemented.

所述处理器用于执行存储器中存储的数据传输程序,以实现以下在数据传输设备侧执行的数据传输方法的步骤:The processor is used to execute the data transmission program stored in the memory, so as to realize the following steps of the data transmission method performed on the data transmission device side:

接收第一终端发送的数据获取请求,所述数据获取请求携带有设定的字符和/或图片;基于所述数据获取请求确定待传输的数据,将所述数据拆分为多个子数据;基于所述字符和/或图片对所述每个子数据进行加密;与所述第一终端建立5G传输网络,将加密后的所述子数据插入切片中,所述第二终端将携带所述子数据的多个所述切片并行向所述第一终端传输。Receive a data acquisition request sent by the first terminal, where the data acquisition request carries set characters and/or pictures; determine the data to be transmitted based on the data acquisition request, and split the data into multiple sub-data; The characters and/or pictures encrypt each of the sub-data; establish a 5G transmission network with the first terminal, insert the encrypted sub-data into the slice, and the second terminal will carry the sub-data A plurality of the slices are transmitted to the first terminal in parallel.

可选地,根据所述数据获取请求查询本地存储的所述第一终端与所述第二终端共同约定的拆分规则;所述第二终端按照所述拆分规则将所述数据拆分为多个子数据。Optionally, according to the data acquisition request, query the locally stored splitting rule jointly agreed by the first terminal and the second terminal; the second terminal splits the data into two parts according to the splitting rule. multiple subdata.

可选地,根据所述数据获取请求查询本地存储的所述第一终端与所述第二终端共同约定插入规则;所述第二终端按照所述插入规则将所述字符和/或图片插入所述子数据中的设定位置以完成对所述子数据的加密,以及对加密后的所述子数据设置标识。Optionally, query the locally stored first terminal and the second terminal to agree on an insertion rule according to the data acquisition request; the second terminal inserts the character and/or picture into all the characters and/or pictures according to the insertion rule. A set position in the sub-data is used to complete the encryption of the sub-data, and an identifier is set for the encrypted sub-data.

可选地,接收所述第一终端发送的第一切片信息、第一IP地址信息和第一端口信息,以及基于所述第一切片信息接入对应的多个网络切片,以及向所述第一终端返回所述第二终端的第二IP地址信息和第二端口信息。Optionally, receive the first slice information, the first IP address information, and the first port information sent by the first terminal, and access the corresponding multiple network slices based on the first slice information, and send the information to the The first terminal returns second IP address information and second port information of the second terminal.

图4为本发明实施例提供的另一种终端的结构示意图,如图4所示,该终端具体包括:FIG. 4 is a schematic structural diagram of another terminal provided by an embodiment of the present invention. As shown in FIG. 4 , the terminal specifically includes:

处理器410、存储器420和收发器430。Processor 410 , memory 420 and transceiver 430 .

处理器410可以是中央处理器(Central Processing Unit,CPU),或者CPU和硬件芯片的组合。上述硬件芯片可以是专用集成电路(Application-Specific IntegratedCircuit,ASIC),可编程逻辑器件(Programmable Logic Device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(Complex Programmable Logic device,CPLD),现场可编程门阵列(Field-Frogrammable Gate Array,FPGA),通用阵列逻辑(Generic Array Logic,GAL)或其任意组合。The processor 410 may be a central processing unit (Central Processing Unit, CPU), or a combination of a CPU and a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), a programmable logic device (Programmable Logic Device, PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (Complex Programmable Logic device, CPLD), a field programmable gate array (Field-Frogrammable Gate Array, FPGA), a general array logic (Generic Array Logic, GAL) or any combination thereof.

存储器420用于存储各种应用,操作系统和数据。存储器420可以将存储的数据传输给处理器410。存储器420可以包括易失性存储器,非易失性动态随机存取内存(Nonvolatile Random Access Memory,NVRAM)、相变化随机存取内存(Phase Change RAM,PRAM)、磁阻式随机存取内存(Magetoresistive RAM,MRAM)等,例如至少一个磁盘存储器件、电子可擦除可编程只读存储器(Electrically Erasable Programmable Read-OnlyMemory,EEPROM)、闪存器件,例如反或闪存(Flash Memory,NOR)或是反及闪存(FlashMemory,NAND)、半导体器件,例如固态硬盘(Solid State Disk,SSD)等。存储器420还可以包括上述种类的存储器的组合。Memory 420 is used to store various applications, operating systems and data. The memory 420 may transmit the stored data to the processor 410 . The memory 420 may include volatile memory, non-volatile dynamic random access memory (NVRAM), phase change random access memory (Phase Change RAM, PRAM), magnetoresistive random access memory (Magetoresistive memory) RAM, MRAM), etc., such as at least one disk storage device, Electronically Erasable Programmable Read-Only Memory (EEPROM), flash memory devices such as NAND or Flash Memory (NOR) or NAND Flash memory (FlashMemory, NAND), semiconductor devices, such as Solid State Disk (Solid State Disk, SSD), etc. Memory 420 may also include a combination of the types of memory described above.

收发器430,用于发送和/或接收数据,收发器430可以是天线等。The transceiver 430 is used to transmit and/or receive data, and the transceiver 430 may be an antenna or the like.

所述各器件的工作过程如下:The working process of each device is as follows:

收发器430,用于向第二终端发送数据获取请求,所述数据获取请求携带有设定的字符和/或图片;a transceiver 430, configured to send a data acquisition request to the second terminal, where the data acquisition request carries set characters and/or pictures;

所述收发器430,还用于通过5G芯片接入网络切片,以及确定接入的多个网络切片的第一切片信息、第一IP地址信息和第一端口信息,将所述第一切片信息、所述第一IP地址信息和所述第一端口信息发送给所述第二终端;The transceiver 430 is further configured to access the network slice through the 5G chip, and determine the first slice information, the first IP address information, and the first port information of the multiple network slices accessed, and connect the first The slice information, the first IP address information and the first port information are sent to the second terminal;

所述收发器430,还用于接收所述第二终端返回的所述第二终端的第二IP地址信息和第二端口信息;The transceiver 430 is further configured to receive the second IP address information and second port information of the second terminal returned by the second terminal;

所述收发器430,还用于接收第二终端发送的携带加密后的子数据的多个切片;The transceiver 430 is further configured to receive multiple slices carrying encrypted sub-data sent by the second terminal;

处理器410,用于从接收到的多个所述切片中获取对应的多个加密后的所述子数据,按照所述插入规则对多个加密后的所述子数据进行解密得到,多个所述子数据;根据拆分信息将多个所述子数据组合为数据。The processor 410 is configured to obtain a plurality of corresponding encrypted sub-data from the received plurality of slices, and decrypt the encrypted sub-data according to the insertion rule to obtain a plurality of encrypted sub-data. the sub-data; combining a plurality of the sub-data into data according to the split information.

本实施例提供的终端可以是如图4中所示的终端,可执行如图1-2中数据传输方法的所有步骤,进而实现图1-2所示数据传输方法的技术效果,具体请参照图1-2相关描述,为简洁描述,在此不作赘述。The terminal provided in this embodiment may be the terminal shown in FIG. 4 , and can perform all the steps of the data transmission method shown in FIG. 1-2, thereby realizing the technical effect of the data transmission method shown in FIG. 1-2. For details, please refer to The descriptions of Figures 1-2 are not repeated here for brevity.

本发明实施例还提供了一种存储介质(计算机可读存储介质)。这里的存储介质存储有一个或者多个程序。其中,存储介质可以包括易失性存储器,例如随机存取存储器;存储器也可以包括非易失性存储器,例如只读存储器、快闪存储器、硬盘或固态硬盘;存储器还可以包括上述种类的存储器的组合。The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. Wherein, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid-state hard disk; the memory may also include the above-mentioned types of memory. combination.

当存储介质中一个或者多个程序可被一个或者多个处理器执行,以实现上述在数据传输设备侧执行的数据传输方法。When one or more programs in the storage medium can be executed by one or more processors, the above-mentioned data transmission method performed on the data transmission device side can be implemented.

所述处理器用于执行存储器中存储的数据传输程序,以实现以下在数据传输设备侧执行的数据传输方法的步骤:The processor is used to execute the data transmission program stored in the memory, so as to realize the following steps of the data transmission method performed on the data transmission device side:

通过5G芯片接入网络切片,以及确定接入的多个网络切片的第一切片信息、第一IP地址信息和第一端口信息,将所述第一切片信息、所述第一IP地址信息和所述第一端口信息发送给所述第二终端;接收所述第二终端返回的所述第二终端的第二IP地址信息和第二端口信息;接收第二终端发送的携带加密后的子数据的多个切片;从接收到的多个所述切片中获取对应的多个加密后的所述子数据,按照所述插入规则对多个加密后的所述子数据进行解密得到,多个所述子数据;根据拆分信息将多个所述子数据组合为数据。Access a network slice through a 5G chip, and determine the first slice information, first IP address information, and first port information of multiple network slices accessed, and convert the first slice information, the first IP address information and the first port information are sent to the second terminal; receive the second IP address information and second port information of the second terminal returned by the second terminal; A plurality of slices of the sub-data obtained; obtain a plurality of corresponding encrypted sub-data from the received plurality of the slices, and decrypt the encrypted sub-data according to the insertion rule to obtain, a plurality of the sub-data; and combining the plurality of the sub-data into data according to the split information.

专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals should be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. Interchangeability, the above description has generally described the components and steps of each example in terms of function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein may be implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.

以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above further describe the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention, and are not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (7)

1. A method of data transmission, comprising:
a first terminal sends a data acquisition request to a second terminal, wherein the data acquisition request carries set characters and/or pictures;
pairing a first terminal and a second terminal through authentication information, wherein the authentication information is agreed by the first terminal and the second terminal in advance;
after the authentication information passes, the first terminal and the second terminal are successfully paired;
the second terminal determines data to be transmitted based on the data acquisition request, and queries a locally stored splitting rule agreed by the first terminal and the second terminal together according to the data acquisition request;
the second terminal splits the data into a plurality of subdata according to the splitting rule;
the second terminal inquires the locally stored insertion rule jointly agreed by the first terminal and the second terminal according to the data acquisition request;
the second terminal inserts the characters and/or pictures into the set positions in the subdata according to the insertion rule so as to finish the encryption of the subdata, and sets an identifier for the encrypted subdata;
and the second terminal and the first terminal establish a 5G transmission network, the encrypted subdata is inserted into the slice, and the plurality of slices carrying the subdata are transmitted to the first terminal in parallel by the second terminal.
2. The method of claim 1, wherein after the second terminal encrypts each sub-data based on the characters and/or pictures, the method further comprises:
and the second terminal generates splitting information according to the identification and the number of the encrypted subdata and sends the splitting information to the first terminal.
3. The method of claim 1, wherein the second terminal establishes a 5G transport network with the first terminal, comprising:
the 5G chip of the first terminal is accessed into the network slice to determine first slice information, first IP address information and first port information of a plurality of network slices accessed by the first terminal;
and the first terminal sends the first slice information, the first IP address information and the first port information to a second terminal so that the second terminal accesses a plurality of corresponding network slices based on the first slice information and returns second IP address information and second port information of the second terminal to the first terminal.
4. The method of claim 3, further comprising:
the first terminal obtains a plurality of corresponding encrypted subdata from the plurality of received slices, and decrypts the plurality of encrypted subdata according to the insertion rule to obtain a plurality of subdata; and combining the plurality of subdata into data according to the splitting information.
5. A terminal, comprising:
the transceiver is used for receiving a data acquisition request sent by a first terminal, wherein the data acquisition request carries set characters and/or pictures;
the processor is used for pairing the first terminal and the second terminal through authentication information, wherein the authentication information is predetermined by the first terminal and the second terminal; after the authentication information passes, the first terminal and the second terminal are successfully paired;
the processor is further configured to determine data to be transmitted based on the data acquisition request, query a locally stored splitting rule jointly agreed by the first terminal and the second terminal according to the data acquisition request, and split the data into a plurality of sub-data according to the splitting rule;
the processor is further configured to insert the characters and/or pictures into a set position in the subdata according to an insertion rule to complete encryption of the subdata, and set an identifier for the encrypted subdata;
the transceiver is further configured to establish a 5G transmission network with the first terminal, insert the encrypted sub-data into a slice, and transmit the plurality of slices carrying the sub-data to the first terminal in parallel by the second terminal.
6. The terminal of claim 5, wherein the transceiver is specifically configured to receive first slice information, first IP address information, and first port information sent by the first terminal, access a corresponding plurality of network slices based on the first slice information, and return second IP address information and second port information of the second terminal to the first terminal.
7. A terminal, comprising:
the transceiver is used for sending a data acquisition request to the second terminal, wherein the data acquisition request carries set characters and/or pictures;
the processor is used for pairing the first terminal and the second terminal through authentication information, wherein the authentication information is predetermined by the first terminal and the second terminal; after the authentication information passes, the first terminal and the second terminal are successfully paired;
the transceiver is further configured to access a network slice through a 5G chip, determine first slice information, first IP address information, and first port information of a plurality of network slices that are accessed, and send the first slice information, the first IP address information, and the first port information to the second terminal;
the transceiver is further configured to receive second IP address information and second port information of the second terminal, which are returned by the second terminal;
the transceiver is further configured to receive multiple slices carrying the encrypted sub-data sent by the second terminal;
the processor is further configured to obtain a plurality of corresponding encrypted subdata from the plurality of received slices, query a locally stored insertion rule jointly agreed by the first terminal and the second terminal according to the data obtaining request, and decrypt the plurality of encrypted subdata according to the insertion rule to obtain the plurality of subdata; and combining the plurality of subdata into data according to the splitting information.
CN201911124325.XA 2019-11-15 2019-11-15 Data transmission method and terminal Active CN110856220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911124325.XA CN110856220B (en) 2019-11-15 2019-11-15 Data transmission method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911124325.XA CN110856220B (en) 2019-11-15 2019-11-15 Data transmission method and terminal

Publications (2)

Publication Number Publication Date
CN110856220A CN110856220A (en) 2020-02-28
CN110856220B true CN110856220B (en) 2020-12-29

Family

ID=69601142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911124325.XA Active CN110856220B (en) 2019-11-15 2019-11-15 Data transmission method and terminal

Country Status (1)

Country Link
CN (1) CN110856220B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492549A (en) * 2019-09-11 2021-03-12 中兴通讯股份有限公司 Data transmission method, device, terminal equipment and storage medium
CN111444445B (en) * 2020-03-25 2024-07-12 深圳平安医疗健康科技服务有限公司 Data transmission method, system, computer equipment and readable storage medium
CN112399381B (en) * 2020-10-29 2023-09-15 华人运通(江苏)技术有限公司 Data transmission method and vehicle-mounted Ethernet transmission system
CN112398698A (en) * 2020-12-01 2021-02-23 中国联合网络通信集团有限公司 Data transmission method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316456A (en) * 2011-08-10 2012-01-11 南京邮电大学 Forwarding-attack-resistance method based on digital watermarking
WO2014001573A1 (en) * 2012-06-29 2014-01-03 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Video data stream concept
CN106326721A (en) * 2015-06-19 2017-01-11 上海高清数字科技产业有限公司 Terminal encryption and decryption system and method
CN109257744A (en) * 2018-11-05 2019-01-22 广东工业大学 5G data transmission method, system and 5G data send and receive device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316456A (en) * 2011-08-10 2012-01-11 南京邮电大学 Forwarding-attack-resistance method based on digital watermarking
WO2014001573A1 (en) * 2012-06-29 2014-01-03 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Video data stream concept
CN106326721A (en) * 2015-06-19 2017-01-11 上海高清数字科技产业有限公司 Terminal encryption and decryption system and method
CN109257744A (en) * 2018-11-05 2019-01-22 广东工业大学 5G data transmission method, system and 5G data send and receive device

Also Published As

Publication number Publication date
CN110856220A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
CN110856153B (en) Data transmission method and terminal
CN110856220B (en) Data transmission method and terminal
US20150264724A1 (en) Method and system of establishing wireless communication connection
US11108548B2 (en) Authentication method, server, terminal, and gateway
CN107483383B (en) Data processing method, terminal, background server and storage medium
CN109309650B (en) Method, terminal device and network device for processing data
WO2015027814A1 (en) File sharing method and device
CN110912920A (en) Data processing method, apparatus and medium
CN102577230A (en) Low latency peer session establishment
WO2023231774A1 (en) Identity verification method for handshake process for tlcp protocol
US20030172303A1 (en) Method and system for accelerating the conversion process between encryption schemes
CN104579679A (en) Wireless public network data forwarding method for rural power distribution network communication equipment
CN1741444B (en) Reconfigurable key search engine
CN110224976A (en) A kind of encryption communication method, device and computer readable storage medium
CN107493150A (en) A kind of data encryption and transmission method and device
CN105208028A (en) Data transmission method and related device and equipment
WO2021155482A1 (en) Data transmission method and ble device
WO2021022406A1 (en) Identity authentication method and device
CN111835613B (en) Data transmission method of VPN server and VPN server
CN103650457B (en) A detection method, device and terminal device for shared access
CN111262837B (en) Data encryption method, data decryption method, system, equipment and medium
US11005651B2 (en) Method and terminal for establishing security infrastructure and device
CN109960935A (en) Method, device and storage medium for determining trusted state of TPM
WO2021047246A1 (en) Data transmission method and apparatus, terminal device and storage medium
CN116893994B (en) Communication method of host and peripheral equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220126

Address after: 610101 Room 301, No. 9, west section of Gangyuan Avenue, Lingang Economic Development Zone, Yibin City, Sichuan Province

Patentee after: Yibin Dongfang tuoyu Technology Co.,Ltd.

Address before: 518000 south block, 4th floor, building B, Kingdee Software Park, No.2, Keji South 12th Road, South District, high tech Industrial Park, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN EASTAEON TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
CP03 Change of name, title or address

Address after: 644000 Sichuan Province, Yibin City, Lingang Economic Development Zone, Zhongyuan Road, No. 2, Harbin Institute of Technology Big Data Group Yibin Science and Technology Park Building 1

Patentee after: Yibin Zhengxing Intelligent Manufacturing Technology Co.,Ltd.

Country or region after: China

Address before: 610101 Room 301, No. 9, west section of Gangyuan Avenue, Lingang Economic Development Zone, Yibin City, Sichuan Province

Patentee before: Yibin Dongfang tuoyu Technology Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address