Data transmission method, electronic device and digital twin platform
By constructing a target data packet containing preset fields and determining the transmission method based on its attributes, the problem of low data transmission efficiency in the past is solved, and efficient and flexible data synchronization is achieved.
Patent Information
- Application Number
- CN202110879763.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-02
- Publication Date
- 2026-01-16
- Estimated Expiration
- 2041-08-02
AI Technical Summary
Existing data transmission methods have low data transmission efficiency and cannot meet the synchronization needs of different types of data in industry application scenarios.
Construct a target data packet, including preset fields to indicate the attributes of the synchronization data, determine the target transmission method based on the preset fields, and transmit the data packet using the target transmission method.
It improves data transmission efficiency, meets the synchronization needs of different types of data, reduces network resource consumption, and enhances the flexibility and reliability of data transmission.
Smart Images

Figure CN115883582B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, and in particular to a data transmission method, an electronic device and a digital twin platform. BACKGROUND
[0002] Digital twin refers to making full use of physical models, sensors, operation history and other data, integrating multi-disciplinary and multi-scale simulation processes, and reflecting the whole life cycle process of the corresponding physical entity product as a mirror image in the virtual space. After the digital twin platform generates a digital twin body by performing digital twin on an electronic device (for example, a physical entity), the electronic device needs to transmit data to the digital twin platform to realize data synchronization, so as to ensure the same rate convergence between the physical state and the virtual state, which helps to optimize the overall performance.
[0003] At present, the commonly used data transmission method is to transmit data to the digital twin platform in the order of data according to the same transmission mode. With the increase of industry application scenarios, the increase of digital twin devices and the increase of transmission data, the synchronization data in the transmission process is prone to slow data transmission, that is, low data transmission efficiency. SUMMARY
[0004] The embodiments of the present application provide a data transmission method, an electronic device and a digital twin platform to solve the problem of low data transmission efficiency.
[0005] To solve the above technical problems, the present application is implemented as follows:
[0006] In a first aspect, the embodiments of the present application provide a data transmission method for an electronic device, which comprises:
[0007] Constructing a target data packet, wherein the target data packet includes a preset field and synchronization data in the electronic device to be synchronized with the digital twin platform, and the preset field is used to indicate the attribute of the synchronization data;
[0008] According to the preset field, a target transmission mode is determined;
[0009] Based on the target transmission mode, the target data packet is transmitted to the digital twin platform.
[0010] In a second aspect, the embodiments of the present application provide another data transmission method for a digital twin platform, which comprises:
[0011] The electronic device receives a target data packet sent based on a target transmission manner, wherein the target data packet comprises a preset field and synchronization data in the electronic device to be synchronized with the digital twin platform, and the preset field is used to indicate the attribute of the synchronization data, and the target transmission manner is determined through the preset field.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising:
[0013] A construction module is configured to construct a target data packet, wherein the target data packet comprises a preset field and synchronization data in the electronic device to be synchronized with the digital twin platform, and the preset field is used to indicate the attribute of the synchronization data.
[0014] A determination module is configured to determine a target transmission manner according to the preset field.
[0015] A transmission module is configured to transmit the target data packet to the digital twin platform based on the target transmission manner.
[0016] In a fourth aspect, an embodiment of the present application provides a digital twin platform, comprising:
[0017] A receiving module is configured to receive a target data packet sent by an electronic device based on a target transmission manner, wherein the target data packet comprises a preset field and synchronization data in the electronic device to be synchronized with the digital twin platform, and the preset field is used to indicate the attribute of the synchronization data, and the target transmission manner is determined through the preset field.
[0018] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a transceiver and a processor,
[0019] The processor is configured to construct a target data packet, wherein the target data packet comprises a preset field and synchronization data in the electronic device to be synchronized with the digital twin platform, and the preset field is used to indicate the attribute of the synchronization data.
[0020] The processor is configured to determine a target transmission manner according to the preset field.
[0021] The transceiver is configured to transmit the target data packet to the digital twin platform based on the target transmission manner.
[0022] In a sixth aspect, an embodiment of the present application provides a digital twin platform, comprising a transceiver and a processor,
[0023] The transceiver is configured to receive a target data packet transmitted by the electronic device based on a target transmission mode, wherein the target data packet comprises a preset field and synchronization data to be synchronized by the digital twin platform in the electronic device, and the preset field is used to indicate the attribute of the synchronization data, and the target transmission mode is determined by the preset field.
[0024] In a seventh aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a program stored in the memory and capable of running on the processor, and when the program is executed by the processor, the steps of the data transmission method in the first aspect are implemented.
[0025] In an eighth aspect, an embodiment of the present application provides a digital twin platform, comprising a processor, a memory, and a program stored in the memory and capable of running on the processor, and when the program is executed by the processor, the steps of the data transmission method in the second aspect are implemented.
[0026] In a ninth aspect, an embodiment of the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data transmission method in the first aspect are implemented, or when the computer program is executed by a processor, the steps of the data transmission method in the second aspect are implemented.
[0027] In the data transmission method, instead of transmitting any data to the digital twin platform in the same transmission mode according to the order of the data, the target data packet comprises not only the synchronization data to be transmitted but also the preset field indicating the attribute of the synchronization data, the target transmission mode of the target data packet is determined by the preset field, and the target data packet is transmitted by the target transmission mode. It can be understood that the target transmission mode considers the attribute of the synchronization data, and the target data packet can be transmitted according to the target transmission mode determined by the preset field. Therefore, the data transmission efficiency can be improved. BRIEF DESCRIPTION OF DRAWINGS
[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor.
[0029] Figure 1 is a flow chart of a data transmission method provided by an embodiment of the present application;
[0030] Figure 2 is a principle diagram of a data transmission provided by an embodiment of the present application;
[0031] Figure 3 is a flow chart of another data transmission method provided by an embodiment of the present application;
[0032] Figure 4 is a format diagram of a target data packet provided by an embodiment of the present application;
[0033] Figure 5 is a format diagram of a target data packet provided by an embodiment of the present application;
[0034] Figure 6 is a format diagram of an MQTT protocol data packet;
[0035] Figure 7 is a format diagram of a MQTT protocol data packet header;
[0036] Figure 8 is a format diagram of a target data packet provided by an embodiment of the present application;
[0037] Figure 9 is a format diagram of an IP protocol data packet;
[0038] Figure 10 is a format diagram of a MAC layer data packet;
[0039] Figure 11 is a format diagram of a target data packet provided by an embodiment of the present application;
[0040] Figure 12 is a module diagram of an electronic device provided by an embodiment of the present application;
[0041] Figure 13 is a module diagram of a digital twin platform provided by an embodiment of the present application;
[0042] Figure 14 is a structure diagram of an electronic device provided by an embodiment of the present application;
[0043] Figure 15 is a structure diagram of a digital twin platform provided by an embodiment of the present application. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of, rather than all of, the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without any creative work fall within the protection scope of the present application.
[0045] Referring toFigure 1 , Figure 1 is a flowchart of a data transmission method provided by an embodiment of the present application, which is used for an electronic device, such as Figure 1 As shown in the figure, the method comprises the following steps:
[0046] Step 101: constructing a target data packet, wherein the target data packet comprises a preset field and synchronization data in the electronic device to be synchronized with the digital twin platform.
[0047] The preset field is used to indicate the attribute of the synchronization data.
[0048] The synchronization data can be understood as the data in the electronic device to be synchronized with the digital twin platform, that is, the electronic device needs to synchronize the synchronization data with the digital twin platform. First, the electronic device needs to construct a target data packet based on the synchronization data, which comprises the synchronization data and a preset field. The attribute of the synchronization data can be indicated by the preset field. As an example, the attribute can include at least one of a category identifier and a data size, and the category identifier can include at least one of an emergency category identifier and a privacy category identifier. The emergency category identifier can be used to represent whether it is an emergency category, for example, if the emergency category identifier of the data is 1, it represents that the data is emergency category data, and if the emergency category identifier of the data is 0, it represents that the data is non-emergency category data. The privacy category identifier can represent whether it is a privacy category, for example, if the privacy category identifier of the data is 1, it represents that the data is privacy category data, and if the privacy category identifier of the data is 0, it represents that the data is non-privacy category data.
[0049] Step 102: determining a target transmission mode according to the preset field.
[0050] Step 103: transmitting the target data packet to the digital twin platform based on the target transmission mode.
[0051] In this embodiment, the target transmission mode is determined by considering the preset field in the target data packet, which can indicate the attribute of the synchronization data. It can be understood that the attribute of the synchronization data is considered in the process of determining the target transmission mode. Then the target data packet is transmitted to the digital twin platform through the determined target transmission mode, so as to improve the data transmission efficiency.
[0052] In the data transmission method of the embodiment, instead of transmitting data in sequence to the digital twin platform according to the order of data by using the same transmission mode for any data, the target data packet constructed includes not only the synchronization data to be transmitted but also a preset field indicating the attribute of the synchronization data. The target transmission mode of the target data packet is determined through the preset field, and the target data packet is transmitted through the target transmission mode. It can be understood that the target transmission mode takes into account the attribute of the synchronization data, and the target data packet can be transmitted according to the target transmission mode determined through the preset field. In this way, the data transmission efficiency can be improved.
[0053] In one embodiment, the target data packet is constructed, including:
[0054] According to the attribute of the synchronization data, a preset field is added in the packet header of the data packet of the first protocol, wherein the first protocol is any protocol in the existing transmission protocol;
[0055] The synchronization data is added to the data field of the data packet of the first protocol to obtain the target data packet.
[0056] In the embodiment, by adding a preset field in the packet header of the data packet of any protocol of the existing transmission protocol, the synchronization data is added to the data field of the data packet of the protocol to obtain the target data packet. That is, in the embodiment, any protocol of the existing transmission protocol is compatible, a preset field is added in the packet header of the data packet of the existing protocol, which is used to indicate the attribute of the synchronization data. Subsequently, the target transmission mode is determined according to the preset field to transmit the target data packet, thereby improving the efficiency of data transmission.
[0057] In one embodiment, the target data packet is constructed, including:
[0058] According to the attribute of the synchronization data, an initial data packet is constructed, wherein the initial data packet includes a data field and a packet header including a preset field;
[0059] The synchronization data is added to the data field of the initial data packet to obtain the target data packet.
[0060] That is, in the embodiment, a new format of initial data packet can be constructed according to the attribute of the synchronization data without using the existing transmission protocol. The initial data packet includes a data field and a packet header, and the packet header includes a preset field. Subsequently, the target transmission mode is determined according to the preset field indicating the attribute of the synchronization data to transmit the target data packet, thereby improving the efficiency of data transmission.
[0061] In one embodiment, the target data packet is constructed, including:
[0062] According to the attribute of the synchronization data, a preset field is added in the data packet of the application layer protocol;
[0063] The synchronization data is added to the data field of the data packet of the application layer protocol to obtain a target data packet, wherein the data packet of the application layer protocol comprises a first reserved field, and at least one bit in the first reserved field is used to indicate that the target data packet is a synchronization data packet of the electronic device and the digital twin platform.
[0064] In the embodiment, the target data packet is obtained by adding a preset field in the data packet of the existing application layer protocol and adding the synchronization data in the data field of the data packet of the application layer protocol. In addition, at least one bit in the first reserved field in the target data packet is used to indicate that the target data packet is the synchronization data of the electronic device and the digital twin platform. That is, in the embodiment, the existing application layer protocol can be extended, and the preset field is added in the data packet of any existing application layer protocol to indicate the attribute of the synchronization data. Subsequently, the target data packet is transmitted according to the preset field to determine the target transmission mode, thereby improving the efficiency of data transmission.
[0065] For example, the existing application layer protocol comprises an HTTP (Hyper Text Transfer Protocol) protocol, an MQTT (Message Queuing Telemetry Transport) protocol, and the like. Taking the MQTT protocol as an example, the data packet of the MQTT protocol can comprise a fixed packet header, a variable packet header, and a message body (i.e., a data field). The fixed packet header of the data packet of the MQTT protocol can comprise a reserved field, i.e., a first reserved field. At least one bit in the first reserved field is used to indicate that the target data packet is the synchronization data packet of the electronic device and the digital twin platform. In addition, the preset field is added in the data packet of the MQTT protocol to indicate the attribute of the synchronization data. The synchronization data is added to the data field of the data packet of the application layer protocol to obtain the target data packet.
[0066] In one embodiment, the target data packet is constructed, comprising:
[0067] According to the attribute of the synchronization data, a preset field is added in the data packet of the link layer protocol;
[0068] The synchronization data is added to the data field of the data packet of the link layer protocol to obtain a target data packet, wherein the data packet of the link layer protocol comprises a virtual local area network identifier field, and a reserved value of the virtual local area network identifier field is used to indicate that the target data packet is a synchronization data packet of the electronic device and the digital twin platform.
[0069] In this embodiment, a target data packet is obtained by adding a preset field to the data packet of an existing link layer protocol and adding synchronization data to the data field of the data packet. Furthermore, the reserved value of the Virtual LAN Identifier field in the target data packet can indicate that the target data packet is a synchronization data packet between the electronic device and the digital twin platform. That is, in this implementation, existing link layer protocols can be extended by adding a preset field to the data packet of any existing link layer protocol to indicate the attributes of the synchronization data. Subsequently, the target transmission method is determined based on the preset field to transmit the target data packet, thereby improving data transmission efficiency.
[0070] It should be noted that the link layer is divided into the upper LLC layer and the lower MAC layer. Taking the MAC layer as an example, the data packets of the MAC layer include a Virtual LAN Identifier (VLAN ID) field. The reserved value in the VLAN ID field can be used to identify that the target data packet is a synchronization data packet between the electronic device and the digital twin platform. In addition, a preset field is added to the data packets of the MAC layer to indicate the attributes of the synchronization data. The synchronization data is added to the data field of the MAC layer data packet to obtain the target data packet.
[0071] In one embodiment, the target data packet is a data packet of a network layer protocol, and the attributes of the synchronization data include M sub-attributes, where M is a positive integer;
[0072] The data packet of the network layer protocol includes a second reserved field. At least some fields in the second reserved field are preset fields. The second reserved field includes at least M+1 reserved bits. The information of the target bit in the at least M+1 reserved bits is used to indicate that the target data packet is a synchronization data packet between the electronic device and the digital twin platform. The information of M reserved bits in the at least M+1 reserved bits is used to indicate M sub-attributes of the synchronization data.
[0073] In this embodiment, the target data packet is a network layer protocol data packet. Furthermore, the network layer protocol data packet may include a reserved field, namely a second reserved field. The target bit in the second reserved field of the target data packet can indicate that the target data packet is synchronization data between the electronic device and the digital twin platform. Of the at least M+1 reserved bits in the second reserved field, the other M reserved bits are used to indicate M sub-attributes of the synchronization data. That is, in this embodiment, existing network layer protocols, such as the IP protocol, can be extended. The M reserved bits of the second reserved field in the data packet of any existing network layer protocol can be used to indicate the attributes of the synchronization data. Subsequently, the target transmission method is determined according to the preset fields to transmit the target data packet, thereby improving data transmission efficiency.
[0074] In one embodiment, the target transmission method includes at least one of the following:
[0075] The first transmission mode is to transmit the target data packet to a first network device of a public network. The target data packet is used for the first network device to transmit the target data packet to a core network user plane function (UPF) entity. The target data packet is transmitted to the digital twin platform through the core network UPF.
[0076] The second transmission mode is to transmit the target data packet to a second network device of a private network. The target data packet is used for the second network device to transmit the target data packet to a campus user plane function (UPF) entity. The target data packet is transmitted to the digital twin platform through the campus UPF entity.
[0077] The third transmission mode is to transmit the target data packet to an edge gateway. The target data packet is used for the edge gateway to transmit the target data packet to the digital twin platform.
[0078] In this embodiment, the data transmission mode can include the above three transmission modes. The target transmission mode determined according to the preset field can be at least one of the above three transmission modes. For example, the electronic device can transmit data to the network device, and the network device can upload the target data packet to the digital twin platform. If the synchronization data is public, that is, non-private data, different network types (public network or private network) can be selected to transmit data. The electronic device can transmit the target data packet to the first network device of the public network, and transmit the target data packet to the core network UPF (User Plane Function) through the first network device. The core network UPF transmits the target data to the digital twin platform. The electronic device can also transmit the target data to the second network device of the private network. The target data packet is used for the second network device to transmit the target data packet to the campus user plane function (UPF) entity. The target data packet is transmitted to the digital twin platform through the campus UPF entity. While ensuring that the target data packet does not leave the campus, the emergency data can be quickly synchronized. In addition, the electronic device can upload data in a unified manner through Wi-Fi / Bluetooth / NB-IoT / Zigbee. That is, the electronic device can transmit the target data packet to the edge gateway through Wi-Fi / Bluetooth / NB-IoT / Zigbee. The edge gateway transmits the target data packet to the digital twin platform to realize data synchronization. It should be noted that for large data, the edge gateway can directly upload to the digital twin platform. For small data, the edge gateway collects and temporarily stores the data. When the accumulated small data reaches a certain degree, the edge gateway packages and uploads the accumulated data packets to the digital twin body. That is, the edge gateway transmits the stored data packets to the digital twin platform when the total size of the stored data packets is greater than a preset threshold (X). The target data packet is included in the stored data packets. X can be set according to actual conditions. It should be noted that the core network UPF, the campus UPF, the edge gateway, and the electronic entity need to be modified in this embodiment to support the identification of emergency, privacy, data size, and other fields.
[0079] In an embodiment, the target transmission mode is determined according to the preset field, including at least one of the following:
[0080] In a case where the emergency category identifier in the preset field is represented as an emergency category or the privacy category identifier in the preset field is represented as a privacy category, the target transmission mode includes the second transmission mode;
[0081] In a case where the emergency category identifier in the preset field is represented as a non-emergency category or the privacy category identifier in the preset field is represented as a non-privacy category or, the target transmission mode includes at least one of the first transmission mode, the second transmission mode and the third transmission mode;
[0082] In a case where the data size of the synchronization data indicated by the preset field is less than a preset data size, the target transmission mode includes the third transmission mode.
[0083] That is, it can be understood that the emergency data or the privacy data can be transmitted to the digital twin platform through the second transmission mode, which can improve the efficiency of emergency data synchronization or improve the security of privacy data transmission. Non-emergency data and non-privacy data can also be transmitted through at least one of the above three transmission modes, improving the flexibility of data transmission. Data with a smaller data size can also be transmitted through the third transmission mode. In this way, the corresponding transmission mode can be selected for transmission according to the preset field, meeting the different transmission needs of synchronization data with different attributes and improving the flexibility of data transmission.
[0084] As shown in FIG. 1, taking an electronic device as a physical entity and a network device as a 5G base station as an example, when data transmission is performed according to the first path (the first transmission mode) in FIG. 1 according to the preset field, the physical entity first transmits the target data packet to the first 5G base station of the public network through the 5G network, the first 5G base station transmits the target data packet to the 5G core network UPF entity or the 5G core network SMF entity, and the 5G core network UPF entity or the 5G core network SMF (Session Management Function) entity synchronizes the target data to the digital twin platform. Figure 2 Figure 2 As shown in FIG. 1, taking an electronic device as a physical entity and a network device as a 5G base station as an example, when data transmission is performed according to the first path (the first transmission mode) in FIG. 1 according to the preset field, the physical entity first transmits the target data packet to the first 5G base station of the public network through the 5G network, the first 5G base station transmits the target data packet to the 5G core network UPF entity or the 5G core network SMF entity, and the 5G core network UPF entity or the 5G core network SMF (Session Management Function) entity synchronizes the target data to the digital twin platform. Figure 2 Figure 2 As shown in FIG. 1, taking an electronic device as a physical entity and a network device as a 5G base station as an example, when data transmission is performed according to the second path (the second transmission mode) in FIG. 1 according to the preset field, the physical entity first transmits the target data packet to the second 5G base station of the private network through the 5G network, the second 5G base station transmits the target data packet to the park UPF entity, and the park UPF entity synchronizes the target data to the digital twin platform.When the third path (the third transmission mode) in the third row in the table is used for data transmission, the physical entity first transmits the target data packet to the edge gateway through Wi-Fi / Bluetooth / NB-IoT / Zigbee, and the edge gateway synchronizes the target data packet to the digital twin platform.
[0085] In the embodiment, the target transmission mode is determined from the three transmission modes according to the preset field for data transmission, data synchronization is achieved, and in the data transmission process, the properties of the synchronization data indicated by the preset field are considered, so that the data transmission efficiency can be improved. The target transmission mode can be at least one of the three transmission modes, the target data packet is transmitted to the digital twin platform, data synchronization between the electronic device and the digital twin platform is achieved, and the flexibility of data transmission can be improved.
[0086] Referring to Figure 3 , Figure 3 is a flowchart of a data transmission method provided by an embodiment of the present application, which is used for a digital twin platform, as shown in Figure 3 The method comprises the following steps:
[0087] Step 301: receiving a target data packet sent by an electronic device based on a target transmission mode, wherein the target data packet comprises a preset field and synchronization data in the electronic device to be synchronized with a digital twin platform, and the preset field is used to indicate the properties of the synchronization data, and the target transmission mode is determined by the preset field.
[0088] That is, the digital twin platform receives the target data packet sent by the electronic device by using the target transmission mode determined by the preset field.
[0089] In the data transmission method of the embodiment, the target data packet not only comprises the synchronization data to be transmitted, but also comprises the preset field which can indicate the properties of the synchronization data. The digital twin platform receives the target data packet sent by the electronic device based on the target transmission mode determined by the preset field. It can be understood that the properties of the synchronization data are considered in the data transmission process, so that the data transmission efficiency can be improved.
[0090] In one embodiment, the target data packet sent by the electronic device comprises at least one of the following:
[0091] The target data packet sent by the electronic device is received from a core network user plane function (UPF) entity, wherein the core network UPF entity receives the target data packet from a first network device of a public network;
[0092] The target data packet sent by the electronic device is received from a campus user plane function (UPF) entity, wherein the campus UPF entity receives the target data packet from a second network device of a private network;
[0093] Receiving the target data packet sent by the electronic device from the edge gateway.
[0094] That is, the electronic device can transmit the target data packet to the first network device of the public network, the first network device transmits the target data packet to the core network user plane function UPF entity, and the target data packet is transmitted to the digital twin platform through the core network UPF, that is, the digital twin platform can receive the target data packet from the core network UPF to realize data synchronization. The electronic device can also transmit the target data packet to the second network device of the private network, the second network device transmits the target data packet to the campus user plane function UPF entity, and the target data packet is transmitted to the digital twin platform through the campus UPF entity, that is, the digital twin platform can receive the target data packet sent by the electronic device from the campus UPF entity. In addition, the electronic device can also transmit the target data packet to the edge gateway, and the edge gateway transmits the target data packet to the digital twin platform, that is, the digital twin platform can receive the target data packet sent by the electronic device from the edge gateway.
[0095] The process of the above data transmission method will be specifically described below with one specific embodiment.
[0096] The present application proposes a method for efficient information synchronization between industry field physical entities and digital twin platforms in different industry applications. When the physical entity constructs a target data packet, the data is expanded, which is used for path selection, transmission priority strategy, transmission quality guarantee, encryption mode selection, etc. during the target data packet transmission process. Ensure that different categories of synchronization data can be uploaded to the digital twin platform on time with minimal network cost.
[0097] In practical applications, the real physical entity in the digital twin system needs to synchronize the data packet to the digital twin platform, so that the digital twin platform can obtain the running state of the physical entity and simulate the running state of the equipment / production line in the digital twin platform or system. The data in the vertical industry application scenario exists in different types, priorities, privacy, etc., so there are different needs for the delay of data transmission, whether to go out of the campus, etc., so a single network transmission method cannot meet the needs of industry customers.
[0098] The physical entity in the application can be a terminal device, a material, a production line, etc. A digital twin corresponding to the physical entity is constructed on the digital twin platform side through digital twin modeling technology. The digital twin platform is deployed on the edge side or the network side according to customer needs. The synchronization data uploaded by the physical entity can be divided into production data and management data according to data types; can be divided into confidential data (i.e. privacy data) and public data (non-privacy data) according to privacy; can be divided into emergency data and non-emergency data according to urgency; and can be divided into small data (such as text data) and large data (such as video data) according to data size. For data synchronization and network transmission, the privacy / non-privacy, urgency / non-urgency, and data size are mainly considered. In the embodiment of the application, there are three ways of information synchronization between the physical entity and the digital twin platform:
[0099] The physical entity transmits the target data packet to the first 5G base station of the public network, and the first 5G base station uploads the target data packet to the digital twin platform through the core network UPF;
[0100] The physical entity transmits the target data packet to the second 5G base station of the private network, and the second 5G base station uploads the target data packet to the digital twin platform through the local UPF (i.e. the park UPF), which realizes the rapid synchronization of emergency data while ensuring that the data does not leave the park;
[0101] The physical entity transmits the target data packet to the edge gateway through Wi-Fi / Bluetooth / NB-IoT / Zigbee, etc., and uploads it to the digital twin platform. For large data, the edge gateway can directly upload it, and for small data, the edge gateway collects and temporarily stores it, and when the size of the collected data packet reaches a certain degree, the edge gateway stores the data packet and uploads it to the digital twin platform.
[0102] In an embodiment of the application, any existing transmission protocol can be compatible in the process of constructing the target data packet.
[0103] The physical entity in the industry field continuously generates entity data (which can be understood as synchronization data). When the physical entity constructs the target data packet, it can construct the target data packet according to the category and size of the synchronization data, for example, it can construct the data packet header according to the category and size of the synchronization data, such as adding four preset fields in the header of the data packet to indicate the urgency, privacy, data size, and expandable information of the synchronization data, which are used for path selection, transmission priority strategy, and transmission quality guarantee in the synchronization data process. Urgency is used to indicate the degree of urgency of data transmission, privacy is used to indicate the confidentiality requirement of data, data size is used to indicate the size of synchronization data, and expandable information is used to indicate other expandable identification information negotiated by the entity and the twin. The physical entity can select different transmission modes according to the preset fields in the header.
[0104] To be compatible with existing transmission protocols and reduce the cost of modification, the embodiment can be compatible with any existing transmission protocol, and four preset fields, namely emergency field, privacy field, data size field and expandable information field, are added to the data packet header of the existing protocol, wherein the expandable information field can be selected by the user whether to be added.
[0105] For example, the format of the data packet of an existing transmission protocol after preset field expansion is as shown in Figure 4 The data packet of the transmission protocol originally includes an original packet header and a message body (i.e., a data field), and on this basis, the four preset fields are added to the original packet header, i.e., the four preset fields are expanded, and the format of the target data packet obtained is as shown in Figure 4 The embodiment realizes the fusion of the application and the existing transmission protocol in a relatively simple manner, and there may be some information duplication in the packet header of the existing transmission protocol. The expandable information field and the size are not limited by the application.
[0106] In an embodiment of the application, the existing transmission protocol is not used in the process of constructing the target data packet.
[0107] Without using the existing protocol for transmission, a new data format can be constructed, and the new initial data packet constructed can include the packet header of the four preset fields of emergency, privacy, data size and expandable information and the synchronization data (corresponding to the data field) to be transmitted, as shown in Figure 5 .
[0108] In an embodiment of the application, the existing application layer protocol is expanded in the process of constructing the target data packet.
[0109] The embodiment takes the expansion of the application layer protocol as an example, adds preset fields to the data packet of the existing application layer protocol, and on the basis of the packet header of the existing application layer protocol, uses a field of the existing application layer protocol packet header to identify whether the target data packet is a synchronization data packet of the physical entity and the digital twin platform, and then expands the data packet and adds the preset fields to identify the emergency, privacy, data size, etc. of the synchronization data.
[0110] The application layer protocol (application layer protocol) defines how application processes running on different end systems communicate with each other. The currently widely used application layer protocols include HTTP, MQTT, etc. The application can expand the efficient information synchronization function between the physical entity and the digital twin platform based on the application layer protocol widely used in the industry. Taking MQTT as an example, the format of the data packet is as shown in Figure 6 The fixed header of the MQTT protocol includes the message type and the reserved field, and the format is as shown in Figure 7As shown. Among them, the message type controls the type of message, which is used to indicate the type, such as CONNECT message, PUBLISH message, etc., which occupies four bytes (7-4). The flag bit of the control message type: contains the flag bit indicating the number of repeated sending (DUP), which occupies 1 byte (3), the quality of service (QoS), which occupies 2 bytes (2-1), and the reserved flag (RETAIN) occupies 1 byte (0). The rest is the remaining length, which represents the number of bytes of the remaining part of the current message, including the variable header and the data of the load. The remaining length does not include the number of bytes used to encode the remaining length field itself. The variable header in the MQTT protocol includes four fields: protocol name, protocol level, connection flag and keep-alive, wherein the protocol level represents the MQTT protocol version. Therefore, when the physical entity needs to synchronize data with the digital twin platform using the MQTT protocol, the reserved flag (the first reserved field) in the fixed packet header message type flag bit can be used to identify whether the information is a synchronization data packet of the physical entity and the digital twin platform. If the data packet is a synchronization data packet of the physical entity and the digital twin platform, it is extended and a preset field is added. The format of the target data packet obtained after extension is as shown in Figure 8 As shown. Since only the reserved flag in the fixed packet header can be used in the MQTT protocol, the present example uses the reserved flag to indicate whether the MQTT data packet is a synchronization data packet of the physical entity and the digital twin platform, and extends three preset fields of urgency, privacy and data (message body) size in the MQTT data packet.
[0111] In an embodiment of the present application, the existing network layer protocol is extended in the process of constructing the target data packet.
[0112] Taking the IP protocol as an example, as shown in Figure 9 As shown in the IP protocol data packet, the process field in the service type has 3 bits (value 0-7), which sets the importance of the data packet and can represent the data urgency, so the present scheme uses the last bit of the field (the 7th bit to indicate whether the data packet is a synchronization data packet between the physical entity and the digital twin platform). The total length in the IP protocol data packet is the total length of the target data packet, which represents the size of the target data packet. The target data packet includes synchronization data, so the size of the synchronization data can be indirectly indicated. Therefore, the total length field is used to represent the size of the target data packet, and the size of the target data packet is the sum of the size of the synchronization data and the size of the packet header, so the size of the synchronization data can be indicated by the total length field. The identification bit contains the reserved segment bit (1 bit), and in order to save the transmission load, the reserved segment bit is used to represent the privacy of the synchronization data.
[0113] The last bit (unused) in the existing service type in the IP protocol data packet is used to indicate whether the data packet is a synchronization data packet between the physical entity and the digital twin platform, the remaining part of the service type is used to indicate the urgency, the total length field is used to indicate the data packet size, and the reserved segment bit is used to indicate the privacy of the data, so as to indicate the urgency, privacy and data packet size of the target data packet by using the fields in the existing IP protocol data packet.
[0114] In an embodiment of the present application, the existing link layer protocol is expanded in the process of constructing the target data packet.
[0115] The data link layer is between the physical layer and the network layer. The data link layer provides services to the network layer based on the services provided by the physical layer, and its most basic service is to reliably transmit data from the network layer to the target machine network layer of the adjacent node. The link layer is divided into upper LLC and lower MAC, and the data transmission is mainly used in the MAC (Media Access Control) layer. For example, the MAC layer data frame format is as shown in the following figure. Figure 10 The data length field in the MAC data frame (MAC layer data packet) can indicate the data packet size, and the data size field in the present embodiment uses the data length field in the current MAC data frame and expands the remaining information. Therefore, when the physical entity and the digital twin perform information synchronization, it is necessary to expand the MAC data frame and add a preset field to obtain the format of the target data packet as shown in the following figure. Figure 11 In addition, the reserved value in the VLAN ID field can be used to identify whether the target data packet is synchronization information of the physical entity and the digital twin. That is, in the present embodiment, the reserved value in the VLAN ID field is used to identify whether the target data packet is synchronization information of the physical entity and the digital twin, the length field in the MAC data frame is used to indicate the data size, and the emergency and privacy fields are expanded. Since the MAC data frame includes synchronization data and other fields, the size of the other fields can be determined, so that the size of the synchronization data can be indicated by the length field.
[0116] Through the above data transmission process of the present application, different transmission modes are used to transmit the data generated by the physical entity, which can reduce the load of the 5G network; compared with the unified transmission mode, the method of the present application can realize the same or even higher data transmission performance with smaller bandwidth, saving the spectrum resource of the operator; the data synchronization efficiency can be improved, that is, the transmission strategy of different data and the grouping aggregation strategy of the edge gateway side are provided, and efficient information synchronization between the physical entity and the digital twin is realized; the application reliability can be improved: for industry application scenarios, the data is classified, and the urgent data such as data transmission failure and interface data failure is transmitted preferentially, which improves the reliability of the application.
[0117] Digital twin is an important scene application in the 5G Internet of Things era, and is a strong wind outlet for 5G landing. Digital twin technology is mostly used in the industrial field, especially in intelligent manufacturing, steel, and mining fields, and is also a key breakthrough in the sub-industry of China Mobile 5G+ strategy. The most core application basis of future industrial Internet of Things is data, whether it is industrial equipment on the production line or garbage cans and lamp posts in the city, which need to be collected and mapped to the digital world. Digital twin is therefore indispensable. The efficient data synchronization strategy attached to the 5G network will promote 5G to provide better services for vertical industries and promote the transformation of sample houses to commodity houses.
[0118] A large amount of device operation data, business data, management data, etc. will be generated in industry applications. These data include device interface data, control instructions, device operation data, and business operation record data. In the case of more and more data, urgency, privacy, and different data sizes, if 5G unified transmission is used, it will occupy the operator spectrum resources and bandwidth, and urgent data may not be synchronized to the platform in time, and data privacy cannot be distinguished and protected.
[0119] Therefore, the method implemented by the present application expands the data packet information, realizes the differentiation of data, and allows users to specify different data transmission methods. The data is divided into public network / special network, local UPF, and Bluetooth / Wifi / Bluetooth / Zigbee, etc. On the one hand, it reduces the occupation of operator spectrum resources, realizes the reasonable and efficient transmission of data, and improves the performance of 5G network services for vertical industries. On the other hand, it can reduce the occurrence of production operation accidents and reduce the economic losses of industry customers.
[0120] Reference Figure 12 , Figure 12 is a structural schematic diagram of an electronic device provided by an embodiment of the present application, as Figure 12 shown, the electronic device 1200 includes:
[0121] The construction module 1201 is configured to construct a target data packet, wherein the target data packet includes a preset field and synchronization data in the electronic device to be synchronized with the digital twin platform, and the preset field is used to indicate the attribute of the synchronization data.
[0122] The determination module 1202 is configured to determine a target transmission mode according to the preset field.
[0123] The transmission module 1203 is configured to transmit the target data packet to the digital twin platform based on the target transmission mode.
[0124] In one embodiment, the construction module 1201 includes:
[0125] The first adding module is configured to add a preset field in a packet header of a data packet of the first protocol according to an attribute of the synchronization data, wherein the first protocol is any one of existing transmission protocols.
[0126] The second adding module is configured to add the synchronization data into a data field of the data packet of the first protocol to obtain the target data packet.
[0127] In one embodiment, the constructing module 1201 comprises:
[0128] The initial constructing module is configured to construct an initial data packet according to an attribute of the synchronization data, wherein the initial data packet comprises a data field and a packet header comprising a preset field;
[0129] The third adding module is configured to add the synchronization data into the data field of the initial data packet to obtain the target data packet.
[0130] In one embodiment, the constructing module 1201 comprises:
[0131] The fourth adding module is configured to add a preset field in a data packet of an application layer protocol according to an attribute of the synchronization data;
[0132] The fifth adding module is configured to add the synchronization data into a data field of the data packet of the application layer protocol to obtain the target data packet, wherein the data packet of the application layer protocol comprises a first reserved field, and at least one bit in the first reserved field is used to indicate that the target data packet is a synchronization data packet of an electronic device and a digital twin platform.
[0133] In one embodiment, the constructing module 1201 comprises:
[0134] The sixth adding module is configured to add a preset field in a data packet of a link layer protocol according to an attribute of the synchronization data;
[0135] The seventh adding module is configured to add the synchronization data into a data field of the data packet of the link layer protocol to obtain the target data packet, wherein the data packet of the link layer protocol comprises a virtual local area network identifier field, and a reserved value of the virtual local area network identifier field is used to indicate that the target data packet is a synchronization data packet of an electronic device and a digital twin platform.
[0136] In one embodiment, the target data packet is a data packet of a network layer protocol, and the attribute of the synchronization data comprises M sub-attributes, wherein M is a positive integer.
[0137] The second reserved field includes at least M+1 reserved bits, and information of a target bit in the at least M+1 reserved bits is used to indicate that the target data packet is a synchronization data packet of the electronic device and the digital twin platform, and information of M reserved bits in the at least M+1 reserved bits is used to indicate M sub-attributes of the synchronization data.
[0138] In one embodiment, the target transmission mode includes at least one of the following modes:
[0139] The first transmission mode is to transmit the target data packet to a first network device of a public network, the target data packet is used for the first network device to transmit the target data packet to a core network user plane function (UPF) entity, and the target data packet is transmitted to the digital twin platform through the core network UPF;
[0140] The second transmission mode is to transmit the target data packet to a second network device of a private network, the target data packet is used for the second network device to transmit the target data packet to a campus user plane function (UPF) entity, and the target data packet is transmitted to the digital twin platform through the campus UPF entity;
[0141] The third transmission mode is to transmit the target data packet to an edge gateway, and the target data packet is used for the edge gateway to transmit the target data packet to the digital twin platform.
[0142] In one embodiment, the determining module 1202 includes at least one of the following:
[0143] The first determining module is configured to determine that the target transmission mode includes the second transmission mode when the emergency category identifier in the preset field indicates an emergency category or the privacy category identifier in the preset field indicates a privacy category.
[0144] The second determining module is configured to determine that the target transmission mode includes at least one of the first transmission mode, the second transmission mode, and the third transmission mode when the emergency category identifier in the preset field indicates a non-emergency category or the privacy category identifier in the preset field indicates a non-privacy category.
[0145] The third determining module is configured to determine that the target transmission mode includes the third transmission mode when the preset field indicates that the data size of the synchronization data is smaller than a preset data size.
[0146] Referring to Figure 13 , Figure 13 is a structural schematic diagram of a digital twin platform provided by an embodiment of the present application, as Figure 13 indicated, the digital twin platform 1300 includes:
[0147] The receiving module 1301 is configured to receive a target data packet sent by the electronic device based on a target transmission mode, wherein the target data packet comprises a preset field and synchronization data in the electronic device to be synchronized with the digital twin platform, and the preset field is used to indicate the attribute of the synchronization data, and the target transmission mode is determined by the preset field.
[0148] In one embodiment, the receiving electronic device sends a target data packet based on a target transmission mode, which includes at least one of the following:
[0149] The target data packet sent by the electronic device is received from a core network user plane function (UPF) entity, wherein the core network UPF entity receives the target data packet from a first network device of a public network;
[0150] The target data packet sent by the electronic device is received from a campus user plane function (UPF) entity, wherein the campus UPF entity receives the target data packet from a second network device of a private network;
[0151] The target data packet sent by the electronic device is received from an edge gateway.
[0152] The embodiment of the application also provides an electronic device, which comprises a processor, a memory, and a program stored in the memory and executable on the processor, the program being executed by the processor to implement each process of the above-mentioned data transmission method for electronic device embodiment and achieve the same technical effect, and details are not repeated here.
[0153] Specifically, referring to Figure 14 The embodiment of the application also provides an electronic device, which comprises a bus 1401, a transceiver 1402, an antenna 1403, a bus interface 1404, a processor 1405, and a memory 1406.
[0154] The processor 1405 is configured to construct a target data packet, wherein the target data packet comprises a preset field and synchronization data in the electronic device to be synchronized with the digital twin platform, and the preset field is used to indicate the attribute of the synchronization data.
[0155] The processor 1405 is configured to determine the target transmission mode according to the preset field.
[0156] The transceiver 1402 is configured to transmit the target data packet to the digital twin platform based on the target transmission mode.
[0157] In one embodiment, the processor 1405 is configured to add a preset field in the packet header of the data packet of the first protocol according to the attribute of the synchronization data, wherein the first protocol is any protocol in the existing transmission protocol; and add the synchronization data to the data field of the data packet of the first protocol to obtain the target data packet.
[0158] In an embodiment, the processor 1405 is configured to construct an initial data packet according to an attribute of the synchronization data, where the initial data packet comprises a data field and a packet header comprising a preset field; and add the synchronization data into the data field of the initial data packet to obtain a target data packet.
[0159] In an embodiment, the processor 1405 is configured to add a preset field in a data packet of an application layer protocol according to an attribute of the synchronization data; and add the synchronization data into a data field of the data packet of the application layer protocol to obtain a target data packet, where the data packet of the application layer protocol comprises a first reserved field, and at least one bit in the first reserved field is used to indicate that the target data packet is a synchronization data packet of an electronic device and a digital twin platform.
[0160] In an embodiment, the processor 1405 is configured to add a preset field in a data packet of a link layer protocol according to an attribute of the synchronization data; and add the synchronization data into a data field of the data packet of the link layer protocol to obtain a target data packet, where the data packet of the link layer protocol comprises a virtual local area network identifier field, and a reserved value of the virtual local area network identifier field is used to indicate that the target data packet is a synchronization data packet of an electronic device and a digital twin platform.
[0161] In an embodiment, the target data packet is a data packet of a network layer protocol, and the attribute of the synchronization data comprises M sub-attributes, where M is a positive integer.
[0162] In an embodiment, the data packet of the network layer protocol comprises a second reserved field, at least part of the fields in the second reserved field are used as the preset field, the second reserved field comprises at least M+1 reserved bits, information of a target bit in the at least M+1 reserved bits is used to indicate that the target data packet is a synchronization data packet of an electronic device and a digital twin platform, and information of M reserved bits in the at least M+1 reserved bits is used to indicate the M sub-attributes of the synchronization data.
[0163] In an embodiment, the target transmission mode comprises at least one of the following modes:
[0164] The first transmission mode: transmitting the target data packet to a first network device of a public network, the target data packet is used for the first network device to transmit the target data packet to a core network user plane function (UPF) entity, and the target data packet is transmitted to the digital twin platform through the core network UPF;
[0165] The second transmission mode: transmitting the target data packet to a second network device of a private network, the target data packet is used for the second network device to transmit the target data packet to a campus user plane function (UPF) entity, and the target data packet is transmitted to the digital twin platform through the campus UPF entity;
[0166] The third transmission mode: transmitting the target data packet to the edge gateway, and the target data packet is used for the edge gateway to transmit the target data packet to the digital twin platform.
[0167] In one embodiment, the processor 1405 is further configured to perform at least one of the following:
[0168] In the case that the emergency category identifier in the preset field represents an emergency category or the privacy category identifier in the preset field represents a privacy category, determining the target transmission mode includes the second transmission mode;
[0169] In the case that the emergency category identifier in the preset field represents a non-emergency category or the privacy category identifier in the preset field represents a non-privacy category, determining the target transmission mode includes at least one of the first transmission mode, the second transmission mode and the third transmission mode.
[0170] In the case that the data size of the synchronization data indicated by the preset field is less than the preset data size, determining the target transmission mode includes the third transmission mode.
[0171] In Figure 14 In the bus architecture (represented by the bus 1401), the bus 1401 can include any number of interconnected buses and bridges, which link various circuits including one or more processors represented by the processor 1405 and the memory represented by the memory 1406. The bus 1401 can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art, and thus, are not further described herein. The bus interface 1404 provides an interface between the bus 1401 and the transceiver 1402. The transceiver 1402 can be one element or multiple elements, such as multiple receivers and transmitters, which provide a means for communicating with various other apparatuses over a transmission medium. Data processed by the processor 1405 is transmitted over a wireless medium via the antenna 1403, and further, the antenna 1403 also receives data and transmits the data to the processor 1405.
[0172] The processor 1405 is responsible for managing the bus 1401 and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. The memory 1406 can be used to store data used by the processor 1405 in performing operations.
[0173] Optionally, the processor 1405 can be a CPU, an ASIC, an FPGA, or a CPLD.
[0174] The embodiment of the present application also provides a computer readable storage medium, and the computer readable storage medium stores a computer program, the computer program is executed by a processor to realize each process of the data transmission method embodiment, and the same technical effects can be achieved, and details are not repeated here. The computer readable storage medium includes a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk and the like.
[0175] The embodiment of the present application also provides a digital twin platform, including a processor, a memory and a program stored in the memory and executable on the processor, the program is executed by the processor to realize each process of the data transmission method embodiment, and the same technical effects can be achieved, and details are not repeated here.
[0176] Specifically, referring to Figure 15 The embodiment of the present application also provides a digital twin platform, including a bus 1501, a transceiver 1502, an antenna 1503, a bus interface 1504, a processor 1505 and a memory 1506.
[0177] The transceiver 1502 is configured to receive a target data packet transmitted by the electronic device based on a target transmission mode, wherein the target data packet includes a preset field and synchronization data in the electronic device to be synchronized with the digital twin platform, and the preset field is used to indicate the attribute of the synchronization data, and the target transmission mode is determined by the preset field.
[0178] In one embodiment, the target data packet transmitted by the receiving electronic device based on the target transmission mode includes at least one of the following:
[0179] The target data packet transmitted by the electronic device is received from a core network user plane function (UPF) entity, wherein the core network UPF entity receives the target data packet from a first network device of a public network;
[0180] The target data packet transmitted by the electronic device is received from a campus user plane function (UPF) entity, wherein the campus UPF entity receives the target data packet from a second network device of a private network;
[0181] The target data packet transmitted by the electronic device is received from an edge gateway.
[0182] The embodiment of the present application also provides a computer readable storage medium, and the computer readable storage medium stores a computer program, the computer program is executed by a processor to realize each process of the data transmission method embodiment, and the same technical effects can be achieved, and details are not repeated here. The computer readable storage medium, such as ROM, RAM, a magnetic disk or an optical disk.
[0183] It should be noted that in this paper, the term "including", "containing" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0184] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment method can be realized by software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, air conditioner or digital twin platform) execute the method of each embodiment of the present application.
[0185] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above specific embodiments, and the above specific embodiments are only illustrative, not restrictive, and those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope of protection of the claims, which all belong to the protection of the present application.
Claims
1. A data transmission method applied to electronic devices, characterized in that, The method comprises: constructing a target data packet, wherein the target data packet comprises a preset field and synchronization data of the electronic device to be synchronized with the digital twin platform, and the preset field is used to indicate the attribute of the synchronization data; determining a target transmission mode according to the preset field; transmitting the target data packet to the digital twin platform based on the target transmission mode; The target transmission mode comprises at least one of the following modes: The first transmission mode: the target data packet is transmitted to the first network device of the public network, and the target data packet is used for the first network device to transmit the target data packet to the core network user plane function UPF entity, and the target data packet is transmitted to the digital twin platform through the core network UPF; The second transmission mode: the target data packet is transmitted to the second network device of the private network, and the target data packet is used for the second network device to transmit the target data packet to the park user plane function UPF entity, and the target data packet is transmitted to the digital twin platform through the park UPF entity; The third transmission mode: the target data packet is transmitted to the edge gateway, and the target data packet is used for the edge gateway to transmit the target data packet to the digital twin platform.
2. The data transmission method of claim 1, wherein, The construction of the target data packet comprises: According to the attribute of the synchronization data, the preset field is added in the packet header of the data packet of the first protocol, wherein the first protocol is any protocol in the existing transmission protocol; The synchronization data is added to the data field of the data packet of the first protocol to obtain the target data packet.
3. The data transmission method of claim 1, wherein, The construction of the target data packet comprises: According to the attribute of the synchronization data, an initial data packet is constructed, wherein the initial data packet comprises a data field and a packet header comprising the preset field; The synchronization data is added to the data field of the initial data packet to obtain the target data packet.
4. The data transmission method of claim 1, wherein, The construction of the target data packet comprises: According to the attribute of the synchronization data, the preset field is added in the data packet of the application layer protocol; The synchronization data is added to the data field of the data packet of the application layer protocol to obtain the target data packet, wherein the data packet of the application layer protocol comprises a first reserved field, and in the target data packet, at least one bit in the first reserved field is used to indicate that the target data packet is a synchronization data packet of the electronic device and the digital twin platform.
5. The data transmission method of claim 1, wherein, The construction of the target data packet comprises: According to the attribute of the synchronization data, the preset field is added in the data packet of the link layer protocol; The synchronization data is added to the data field of the data packet of the link layer protocol to obtain the target data packet, wherein the data packet of the link layer protocol comprises a virtual local area network identifier field, and in the target data packet, the reserved value of the virtual local area network identifier field is used to indicate that the target data packet is a synchronization data packet of the electronic device and the digital twin platform.
6. The data transmission method of claim 1, wherein, The target data packet is a data packet of a network layer protocol, the attribute of the synchronization data comprises M sub-attributes, and M is a positive integer; The data packet of the network layer protocol comprises a second reserved field, at least part of the fields in the second reserved field are preset fields, the second reserved field comprises at least M+1 reserved bits, the information of target bits in the at least M+1 reserved bits is used to indicate that the target data packet is a synchronization data packet of the electronic device and the digital twin platform, and the information of M reserved bits in the at least M+1 reserved bits is used to indicate M sub-attributes of the synchronization data.
7. The data transmission method of claim 1, wherein, The target transmission mode is determined according to the preset field, including at least one of the following: In the case that the emergency category identifier in the preset field is an emergency category or the privacy category identifier in the preset field is a privacy category, the target transmission mode is determined to include the second transmission mode; In the case that the emergency category identifier in the preset field is a non-emergency category or the privacy category identifier in the preset field is a non-privacy category, the target transmission mode is determined to include at least one of the first transmission mode, the second transmission mode and the third transmission mode; In the case that the data size of the synchronization data indicated by the preset field is less than a preset data size, the target transmission mode is determined to include the third transmission mode.
8. A data transmission method, characterized by, The method is applied to a digital twin platform, and the method comprises: receiving a target data packet sent by an electronic device based on a target transmission mode, wherein the target data packet comprises a preset field and synchronization data of the electronic device to be synchronized with the digital twin platform, and the preset field is used to indicate attributes of the synchronization data, and the target transmission mode is determined by the preset field; The receiving of the target data packet sent by the electronic device based on the target transmission mode comprises at least one of the following: receiving the target data packet sent by the electronic device from a core network user plane function (UPF) entity, wherein the core network UPF entity receives the target data packet from a first network device of a public network; receiving the target data packet sent by the electronic device from a campus user plane function (UPF) entity, wherein the campus UPF entity receives the target data packet from a second network device of a private network; receiving the target data packet sent by the electronic device from an edge gateway.
9. An electronic device, comprising: The electronic device comprises: a construction module configured to construct a target data packet, wherein the target data packet comprises a preset field and synchronization data of the electronic device, and the preset field is used to indicate attributes of the synchronization data; a determination module configured to determine a target transmission mode according to the preset field; a transmission module configured to transmit the target data packet to a digital twin platform based on the target transmission mode; The target transmission mode comprises at least one of the following: a first transmission mode: transmitting the target data packet to a first network device of a public network, and the target data packet is used for the first network device to transmit the target data packet to a core network user plane function (UPF) entity, and the target data packet is transmitted to the digital twin platform through the core network UPF; The second transmission mode is that the target data packet is transmitted to a second network device of a private network, the target data packet is used for the second network device to transmit the target data packet to a user plane function UPF entity of a park, and the target data packet is transmitted to the digital twin platform through the UPF entity of the park. The third transmission mode is that the target data packet is transmitted to an edge gateway, and the target data packet is used for the edge gateway to transmit the target data packet to the digital twin platform.
10. A digital twin platform, characterized in that, The digital twin platform comprises: The receiving module is configured to receive a target data packet sent by an electronic device based on a target transmission mode, wherein the target data packet comprises a preset field and synchronization data of the electronic device, and the preset field is used to indicate the attribute of the synchronization data. The target data packet sent by the receiving electronic device based on the target transmission mode comprises at least one of the following: The target data packet sent by the electronic device is received from a core network user plane function UPF entity, wherein the core network UPF entity receives the target data packet from a first network device of a public network; The target data packet sent by the electronic device is received from a park user plane function UPF entity, wherein the park UPF entity receives the target data packet from a second network device of a private network; The target data packet sent by the electronic device is received from an edge gateway.
11. An electronic device, comprising: The transceiver and the processor are comprised, The processor is configured to construct a target data packet, wherein the target data packet comprises a preset field and synchronization data of the electronic device, and the preset field is used to indicate the attribute of the synchronization data. The processor is configured to determine a target transmission mode according to the preset field. The transceiver is configured to transmit the target data packet to a digital twin platform based on the target transmission mode. The target transmission mode comprises at least one of the following: The first transmission mode is that the target data packet is transmitted to a first network device of a public network, and the target data packet is used for the first network device to transmit the target data packet to a core network user plane function UPF entity, and the target data packet is transmitted to the digital twin platform through the core network UPF; The second transmission mode is that the target data packet is transmitted to a second network device of a private network, the target data packet is used for the second network device to transmit the target data packet to a user plane function UPF entity of a park, and the target data packet is transmitted to the digital twin platform through the UPF entity of the park. The third transmission mode is that the target data packet is transmitted to an edge gateway, and the target data packet is used for the edge gateway to transmit the target data packet to the digital twin platform.
12. A digital twin platform, characterized in that, The transceiver and the processor are comprised, The transceiver is configured to receive a target data packet sent by an electronic device based on a target transmission mode, wherein the target data packet comprises a preset field and synchronization data of the electronic device, and the preset field is used to indicate the attribute of the synchronization data. The target data packet transmitted by the receiving electronic device based on a target transmission mode comprises at least one of: receiving the target data packet transmitted by the electronic device from a core network user plane function (UPF) entity, wherein the core network UPF entity receives the target data packet from a first network device of a public network; receiving the target data packet transmitted by the electronic device from a campus user plane function (UPF) entity, wherein the campus UPF entity receives the target data packet from a second network device of a private network; receiving the target data packet transmitted by the electronic device from an edge gateway.
13. An electronic device, comprising: comprising: a processor, a memory, and a program stored in the memory and executable on the processor, the program being executed by the processor to implement the steps of the method of any one of claims 1 to 7.
14. A digital twin platform, characterized in that, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, the program being executed by the processor to implement the steps of the method of claim 8.
15. A computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor to implement the steps of the method of any one of claims 1 to 7; or the computer program being executed by a processor to implement the steps of the method of claim 8.
Citation Information
Patent Citations
Data transmission method and device and electronic device
CN107872422A
Incremental data synchronization method and device, computer equipment and computer storage medium
CN110083579A
Data synchronization method and device
CN111782731A