Message Transmission Method, Device, Base Station, System and Storage Medium

By building an IP mapping relationship table on the base station side and encapsulating the terminal IP, the problem of difficulty in finding the terminal to send messages is solved, and static addressing and networking flexibility are improved between devices.

CN115297520BActive Publication Date: 2025-06-13COMBA TELECOM SYST CHINA LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210869143.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-21
Publication Date
2025-06-13
Estimated Expiration
2042-07-21

AI Technical Summary

Technical Problem

In the field of industrial applications, the device itself does not have a wireless module and needs to access the core network through CPE or industrial gateway, which makes it difficult for the base station to find the relevant terminal to send messages.

Method used

By constructing an IP mapping relationship table between the terminal IP and the device IP on the base station side, it is determined whether the IP header protocol field information of the downlink terminal IP message is preset information. If it is preset information, the target terminal IP corresponding to the target device IP is determined based on the IP mapping relationship table, and encapsulated it into the downlink IP message.

Benefits of technology

It realizes that the base station can find relevant terminals based on the terminal IP to send messages, improves the flexibility of networking, supports traditional services to statically pass through terminal subordinate devices, and meets the static addressing requirements between devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115297520B_ABST
    Figure CN115297520B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a message transmission method, apparatus, base station, system and storage medium. The method is applied to a base station and includes: obtaining a downlink terminal IP message, where the downlink terminal IP message contains the target device IP of the device subordinate to the terminal; when the protocol field information in the IP header of the downlink terminal IP message is preset information, determining the target terminal IP corresponding to the target device IP according to the IP mapping relation table; encapsulating the target terminal IP into the IP layer of the downlink terminal IP message to generate a downlink IP message; and sending the downlink IP message to the target terminal corresponding to the target terminal IP. This solution finds the terminal IP corresponding to the device IP by querying the IP mapping relation table, encapsulates it in the message and then sends it down, enabling the lower-layer module of the base station to find the relevant terminal according to the terminal IP and send the downlink IP message to it, so as to send the message to the device through the terminal, thereby enabling traditional services to directly reach the device subordinate to the terminal statically.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet of Things communication technologies, and in particular, to a message transmission method, apparatus, base station, system, and storage medium. Background Art

[0002] In the field of industrial applications, in some dedicated systems, many devices do not have wireless modules themselves and generally need to be connected to a core network by connecting to a CPE (Customer Premise Equipment) or an industrial gateway.

[0003] Since the IP (Internet Protocol) addresses of the CPE and the industrial gateway are dynamically allocated by the core network, when the base station actively sends a message to a subordinate device of the CPE or the industrial gateway, how to find the relevant CPE or industrial gateway to send the message to the device becomes an urgent problem to be solved. Summary of the Invention

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a message transmission method, apparatus, base station, system, and storage medium.

[0005] In a first aspect, a message transmission method, the method includes:

[0006] Obtain a downlink terminal IP message, where the downlink terminal IP message includes a target device IP of a subordinate device of the terminal;

[0007] Determine whether protocol field information in an IP header of the downlink terminal IP message is preset information;

[0008] If the protocol field information in the IP header of the downlink terminal IP message is the preset information, determine a target terminal IP corresponding to the target device IP according to an IP mapping table, where the IP mapping table is constructed according to a terminal IP and a device IP carried in an uplink terminal IP message, and the IP mapping table includes a mapping relationship between the terminal IP and the device IP;

[0009] Encapsulate the target terminal IP into an IP layer of the downlink terminal IP message to generate a downlink IP message;

[0010] Send the downlink IP message to a target terminal corresponding to the target terminal IP.

[0011] In a second aspect, a message transmission method, the method includes:

[0012] Receive the downlink IP packet sent by the base station. The downlink IP packet includes the target terminal IP and the target device IP. The target terminal IP is determined by the base station according to the IP mapping relationship table when it determines that the IP header protocol field information of the downlink terminal IP packet is preset information, and is the terminal IP corresponding to the target device IP, and is encapsulated into the IP layer of the downlink terminal IP packet. The IP mapping relationship table is constructed by the base station according to the terminal IP and the device IP carried in the uplink terminal IP packet;

[0013] In the case where the IP header protocol field information of the downlink IP packet is the preset information, remove the target terminal IP in the downlink IP packet to generate an IP packet;

[0014] Based on the target device IP, send the IP packet to the target terminal subordinate device corresponding to the target device IP.

[0015] In a third aspect, a packet transmission device, the device includes:

[0016] An acquisition module, configured to acquire a downlink terminal IP packet, where the downlink terminal IP packet contains the target device IP of the terminal subordinate device;

[0017] A judgment module, configured to judge whether the IP header protocol field information of the downlink terminal IP packet is preset information;

[0018] A terminal IP determination module, configured to, when the IP header protocol field information of the downlink terminal IP packet is the preset information, determine the target terminal IP corresponding to the target device IP according to the IP mapping relationship table, where the IP mapping relationship table is constructed according to the terminal IP and the device IP carried in the uplink terminal IP packet, and the IP mapping relationship table includes the mapping relationship between the terminal IP and the device IP;

[0019] An encapsulation module, configured to encapsulate the target terminal IP into the IP layer of the downlink terminal IP packet to generate a downlink IP packet;

[0020] A first sending module, configured to send the downlink IP packet to the target terminal corresponding to the target terminal IP.

[0021] In a fourth aspect, a packet transmission device, the device includes:

[0022] A receiving module, configured to receive a downlink IP packet sent by an uplink device, where the downlink IP packet includes a target terminal IP and a target device IP. The target terminal IP is determined by the base station according to an IP mapping table corresponding to the target device IP when it determines that the IP header protocol field information of the downlink terminal IP packet is preset information, and is encapsulated into the IP layer of the downlink terminal IP packet. The IP mapping table is constructed by the base station according to the terminal IP and the device IP carried in the uplink terminal IP packet;

[0023] An eliminating module, configured to eliminate the target terminal IP in the downlink IP packet to generate an IP packet when the IP header protocol field information of the downlink IP packet is the preset information;

[0024] A second sending module, configured to send the IP packet to a target terminal subordinate device corresponding to the target device IP based on the target device IP.

[0025] In a fifth aspect, a base station includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the packet transmission method described in the first aspect are implemented.

[0026] In a sixth aspect, a packet transmission system includes: a base station and a terminal, and the base station and the terminal are connected through a network; wherein,

[0027] The base station is configured to obtain a downlink terminal IP packet, where the downlink terminal IP packet contains a target device IP of a terminal subordinate device. When the IP header protocol field information of the downlink terminal IP packet is preset information, according to an IP mapping table, determine a target terminal IP corresponding to the target device IP, encapsulate the target terminal IP into the IP layer of the terminal IP packet to generate a downlink IP packet, and send the downlink IP packet to a target terminal corresponding to the target terminal IP. The IP mapping table is constructed according to the terminal IP and the device IP carried in the uplink terminal IP packet, and the IP mapping table includes the mapping relationship between the terminal IP and the device IP;

[0028] The terminal is configured to receive the downlink IP packet sent by the base station, and when the IP header protocol field information of the downlink IP packet is preset information, eliminate the target terminal IP included in the downlink IP packet to generate an IP packet. The IP packet contains the target device IP of the terminal subordinate device, and based on the target device IP, send the IP packet to a target terminal subordinate device corresponding to the target device IP.

[0029] Seventh aspect, a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the message transmission method as described in the first aspect or implement the message transmission method as described in the second aspect.

[0030] The technical solutions provided by the embodiments of the present disclosure have the following advantages compared with the prior art:

[0031] Obtain a downlink terminal IP packet, where the downlink terminal IP packet contains the target device IP of the device subordinate to the terminal. When the protocol field information in the IP header of the downlink terminal IP packet is preset information, determine the target terminal IP corresponding to the target device IP according to the IP mapping relationship table. The IP mapping relationship table is constructed based on the terminal IP and device IP carried in the uplink terminal IP packet, and the mapping relationship between the terminal IP and the device IP is included in the IP mapping relationship table. Then, encapsulate the target terminal IP into the IP layer of the downlink terminal IP packet to generate a downlink IP packet, and then send the downlink IP packet to the target terminal corresponding to the target terminal IP. By adopting the above technical solution, the base station can construct the IP mapping relationship table by itself according to the terminal IP and device IP carried in the uplink terminal IP packet. Then, when the base station sends a downlink packet to the terminal, it can find the terminal IP corresponding to the device IP according to the constructed IP mapping relationship table, so that the lower-layer module of the base station can find the relevant terminal according to the terminal IP to send the packet to the device through the terminal, so that the traditional service can be statically directly connected to the device subordinate to the terminal, greatly improving the flexibility of networking. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.

[0033] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0034] Figure 1 Shows a schematic diagram of the network structure of a communication system according to an exemplary embodiment of the present disclosure;

[0035] Figure 2 Is a schematic flowchart of a message transmission method provided by an embodiment of the present disclosure;

[0036] Figure 3 Shows a schematic diagram of the network module of a base station according to an exemplary embodiment of the present disclosure;

[0037] Figure 4 A schematic flowchart of a message transmission method provided by another embodiment of the present disclosure;

[0038] Figure 5 A schematic flowchart of a message transmission method provided by still another embodiment of the present disclosure;

[0039] Figure 6 A schematic flowchart of a message transmission method provided by yet another embodiment of the present disclosure;

[0040] Figure 7 A schematic structural diagram of a message transmission device provided by an embodiment of the present disclosure;

[0041] Figure 8 A schematic structural diagram of a message transmission device provided by another embodiment of the present disclosure;

[0042] Figure 9 A schematic structural diagram of a message transmission system provided by an embodiment of the present disclosure;

[0043] Figure 10 Shows a schematic diagram of the message transmission process in an exemplary embodiment of the present disclosure. Detailed implementation manners

[0044] In order to more clearly understand the above objects, features, and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments may be combined with each other.

[0045] In the following description, many specific details are set forth to facilitate a thorough understanding of the present disclosure, but the present disclosure may be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all the embodiments.

[0046] In the industrial application field, such as the transformation of the communication system in old mining areas, in the original communication system of the mining area, the equipment directly communicates with the application server. In the transformed communication system, the equipment accesses terminals such as CPE and industrial gateways to communicate with the application server. Since the original IP of the equipment has been recorded on the corresponding application server, there is a need for a fixed static IP. However, in the transformed communication system, the IP address of the terminal is dynamically allocated by the core network. How to find the terminal to which the equipment is connected to statically address the equipment is a difficult problem in the transformation of the mining area communication system.

[0047] Taking the 5G communication network as an example, Figure 1 Shows a schematic network structure diagram of a communication system according to an exemplary embodiment of the present disclosure. Among them, Server 1, 5G base stations, terminals, and equipment subordinate to the terminals form an industrial application network system, such as the transformed mining area network system. AsFigure 1 As shown in the figure, the terminal (such as CPE, industrial gateway, etc.) has multiple subordinate devices, namely Device 1, Device 2 to Device n, and Devices 1 to n are all called terminal subordinate devices. The terminal communicates with the 5G base station through the air interface. The BBU (Building Baseband Unite, indoor baseband processing unit) of the base station can communicate with the server (Server 1) of the industrial application network system through the traffic splitting interface, or communicate with the network data server (Server 2) through the core network and the DN (Data Network).

[0048] In Figure 1 In the network system shown in the figure, the IP address of the terminal is dynamically allocated by the 5G core network and is no longer fixed. When Server 1 wants to actively send a message to the terminal subordinate device, how to find the relevant terminal to send the message to the terminal subordinate device becomes an urgent problem to be solved.

[0049] In view of the above problems, the present disclosure provides a message transmission method to solve the problem of static addressing from two levels of optimizing the CPE terminal and base station parsing and traffic splitting. On the base station side, by constructing an IP mapping relationship table between the terminal IP and the device IP, when the IP header protocol field information of the terminal IP message is preset information, for the downlink message, the base station determines the terminal IP corresponding to the device IP based on the IP mapping relationship table, and encapsulates the terminal IP into the downlink terminal IP message and then sends it down; on the terminal side, for the device IP message sent by the subordinate device, the terminal obtains its own terminal IP and encapsulates it into the device IP message and then reports it to the base station. Thus, through two-layer encapsulation in tunnel mode based on the device IP message of the terminal subordinate device, combined with in-depth detection and traffic splitting by the base station, the data of the traditional local area network is smoothly introduced into the wireless communication network, enabling the traditional service data to directly reach the terminal subordinate device statically, realizing static addressing between devices, and conforming to the traditional characteristics of the local area network, greatly improving the flexibility of networking and enhancing the experience of customized customers.

[0050] Adopting the solution of the present disclosure to transform the communication system of old mining areas, the transformed special base station system for mining components includes base station detection and traffic splitting, and terminal double-layer IP encapsulation. The docking of the data channels of the local area network and the 5G terminal is the core of the present disclosure. The solution of the present disclosure draws on the traditional local area network technology. Through double-layer IP tunnel encapsulation and base station detection and traffic splitting, it provides static integration of the wireless communication network and the traditional local area network for customers, can support high-level direct addressing services, provides a new idea for flexible service support and broadband access network methods, and the actual experience effect is also remarkable.

[0051] Figure 2Schematic flowchart of a packet transmission method provided by an embodiment of the present disclosure. The packet transmission method is applied to a base station, which may be, for example, a 5G base station. The method may be executed by a packet transmission device provided by an embodiment of the present disclosure. The packet transmission device may be implemented by software and / or hardware and may be integrated on the base station.

[0052] Figure 3 Schematic diagram of the network module of the base station according to an exemplary embodiment of the present disclosure. As Figure 3 shown, the base station (NG-eNB) of the embodiment of the present disclosure includes multiple modules, which are, from bottom to top, the PHY (Physical) layer module, the MAC (Medium Access Control) layer module, the RLC (Radio Link Control) layer module, the PDCP (Packet Data Convergence Protocol) layer module, the SDAP (Service Data Adaptation Protocol) layer module, and the GTP (GPRS Tunneling Protocol) layer module. Moreover, the base station stores and maintains an IP mapping relationship table internally. When it is necessary to perform terminal IP encapsulation on the downlink terminal IP packet, the base station queries the terminal IP corresponding to the device IP by querying the IP mapping relationship table, so as to achieve static addressing between the industrial application server and the devices subordinate to the terminal.

[0053] As Figure 2 shown, the packet transmission method may include the following steps:

[0054] Step 101: Obtain a downlink terminal IP packet, where the downlink terminal IP packet contains the target device IP of the device subordinate to the terminal.

[0055] Among them, the downlink terminal IP packet may be a downlink packet sent by the server. The terminal may be a terminal such as a CPE or an industrial gateway. The device subordinate to the terminal is a device accessing terminals such as a CPE or an industrial gateway, such as Figure 1 devices 1 to n in

[0056] In the embodiments of the present disclosure, after the message reported by the terminal passes through the PHY module, MAC module, RLC module, and PDCP module, the message reaching the SDAP module contains the overall message related to the terminal, and the message reaching the GTP module also contains the overall message related to the terminal; the message sent by the base station first passes through the GTP module and SDAP module for transmission, and then is transmitted downward through the PDCP module, RLC module, MAC module, and PHY module. The messages reaching the GTP module and SDAP module are relatively complete. Therefore, in the embodiments of the present disclosure, when the base station obtains the terminal IP message, it can obtain the terminal IP message from the GTP module of the base station; or, it can also obtain the terminal IP message from the SDAP module of the base station. It can be understood that the terminal IP message can be a downlink terminal IP message sent by the server or an uplink terminal IP message reported by the terminal.

[0057] Step 102, determine whether the IP header protocol field information of the downlink terminal IP message is preset information.

[0058] Wherein, the preset information is the information agreed in advance for indicating that the downlink terminal IP message needs to perform terminal IP encapsulation or the uplink terminal IP message needs to perform terminal IP removal. For example, the preset information can be agreed as IPIP(4), or it can also be agreed as other information, such as agreed as the number 00, etc. The present disclosure does not limit the preset information.

[0059] In the embodiments of the present disclosure, the preset information is written into the IP header protocol field of the terminal IP message. When the device subordinate to the terminal sends an IP message to the base station through the terminal, the terminal can write it into the IP header protocol field to obtain an uplink terminal IP message containing the preset information, so as to facilitate the base station to determine whether it is necessary to perform terminal IP removal on the obtained uplink terminal IP message; or, it can also be Figure 2 when server 1 in

[0060] sends a message to the device subordinate to the terminal, server 1 writes it into the IP header protocol field of the message to obtain a downlink terminal IP message containing the preset information, so as to facilitate the base station to determine whether it is necessary to perform terminal IP encapsulation on the obtained downlink terminal IP message.

[0061] Step 103: If the IP header protocol field information of the downlink terminal IP packet is the preset information, then according to the IP mapping relationship table, determine the target terminal IP corresponding to the target device IP, where the IP mapping relationship table is constructed based on the terminal IP and the device IP carried in the uplink terminal IP packet, and the IP mapping relationship table includes the mapping relationship between the terminal IP and the device IP.

[0062] In the embodiment of the present disclosure, when it is determined that the IP header protocol field information of the downlink terminal IP packet is the preset information, according to the IP mapping relationship table, determine the target terminal IP corresponding to the target device IP carried in the downlink terminal IP packet.

[0063] Among them, the IP mapping relationship table can be self-learned by the base station according to the uplink terminal IP packet sent by the terminal and stored in the local memory of the base station, and is continuously updated and used. When the IP header protocol field information of the uplink terminal IP packet obtained by the base station is the preset information, the base station can obtain the terminal IP and the device IP from the uplink terminal IP packet, and establish the mapping relationship between the terminal IP and the device IP, and construct the IP mapping relationship table.

[0064] Exemplarily, the IP mapping relationship table is shown in Table 1. Assume that the target device IP carried in the downlink terminal IP packet is 168.168.12.1. Then, by querying the IP mapping relationship table shown in Table 1, it can be determined that the target terminal IP corresponding to the target device IP is 192.168.12.10.

[0065] Table 1

[0066]

[0067] In an alternative embodiment of the present disclosure, when querying the IP mapping relationship table according to the target device IP included in the downlink terminal IP packet, if the target terminal IP corresponding to the target device IP is not found according to the IP mapping relationship table, then discard the downlink terminal IP packet.

[0068] It can be understood that when the target terminal IP corresponding to the target device IP included in the downlink terminal IP packet cannot be found from the IP mapping relationship table, the base station cannot determine which terminal to send the downlink terminal IP packet to. For such a packet, it can be discarded to save the processing resources of the base station and avoid resource waste caused by the lower-layer module of the base station processing the downlink terminal IP packet again.

[0069] In an alternative embodiment of the present disclosure, if the obtained IP header protocol field information is not the preset information, it can be considered that the terminal IP packet is not Figure 2For the packets transmitted between Server 1 in [[]] and the devices subordinate to the terminal, for the uplink terminal IP packets, the uplink terminal IP packets are sent to the core network, and for the downlink terminal IP packets, the downlink terminal IP packets are sent to the lower-layer module of the base station.

[0070] Step 104: Enclose the target terminal IP into the IP layer of the downlink terminal IP packet to generate a downlink IP packet.

[0071] In the embodiments of the present disclosure, after determining the target terminal IP corresponding to the target device IP, the target terminal IP can be enclosed in the IP layer of the downlink terminal IP packet to generate a downlink IP packet. Then, the downlink IP packet not only contains the device IP of the device subordinate to the terminal but also the terminal IP of the terminal.

[0072] Step 105: Send the downlink IP packet to the target terminal corresponding to the target terminal IP.

[0073] In the embodiments of the present disclosure, after encapsulating to obtain the downlink IP packet, the base station can send the generated downlink IP packet to the lower-layer module, and the lower-layer module of the base station sends the downlink IP packet to the target terminal corresponding to the target terminal IP. For example, if the downlink terminal IP packet is obtained from the SDAP module of the base station, according to the target terminal IP encapsulated in the downlink IP packet, the SDAP entity of the terminal can be retrieved, and then the generated downlink IP packet can be sent to the PDCP module, and then sent by the PDCP module to the RLC module, and so on, so as to realize the internal transceiver corresponding channels of the downlink IP packet in the protocol stack and complete the circulation of the uplink and downlink data links. Since the target terminal IP is encapsulated in the downlink IP packet, the module in the base station that docks with the terminal can determine the target terminal corresponding to the target terminal IP according to the terminal IP in the downlink packet, and then send the downlink IP packet to the target terminal. After receiving the downlink IP packet, the target terminal can determine the target device subordinate to the terminal corresponding to the target device IP from the downlink IP packet and send the processed packet to the target device subordinate to the terminal. Thus, static addressing between the server and the devices subordinate to the terminal is realized.

[0074] The packet transmission method according to the embodiment of the present disclosure obtains a downlink terminal IP packet, where the downlink terminal IP packet contains the target device IP of the device subordinate to the terminal. When the protocol field information in the IP header of the downlink terminal IP packet is preset information, according to the IP mapping relationship table, the target terminal IP corresponding to the target device IP is determined. The IP mapping relationship table is constructed based on the terminal IP and device IP carried in the uplink terminal IP packet, and the mapping relationship between the terminal IP and the device IP is included in the IP mapping relationship table. Then, the target terminal IP is encapsulated into the IP layer of the downlink terminal IP packet to generate a downlink IP packet, and the downlink IP packet is sent to the target terminal corresponding to the target terminal IP. By adopting the above technical solution, the base station can construct an IP mapping relationship table by itself according to the terminal IP and device IP carried in the uplink terminal IP packet. Then, when the base station sends a downlink packet to the terminal, it can find the terminal IP corresponding to the device IP according to the constructed IP mapping relationship table, so that the lower-layer module of the base station can find the relevant terminal according to the terminal IP to send the packet to the device through the terminal, so that the traditional service can be statically directly connected to the device subordinate to the terminal, greatly improving the flexibility of networking.

[0075] Figure 4 is a schematic flowchart of a packet transmission method provided by another embodiment of the present disclosure. As Figure 4 shown, for the base station to construct an IP mapping relationship table according to the terminal IP and device IP carried in the uplink terminal IP packet, the packet transmission method may include the following steps:

[0076] Step 201, obtain an uplink terminal IP packet, where the uplink terminal IP packet contains the device IP of the device subordinate to the terminal and the terminal IP of the terminal.

[0077] In the embodiment of the present disclosure, the base station may obtain an uplink terminal IP packet sent by the terminal. Among them, the terminal may be, for example, a CPE, an industrial gateway, etc. The device subordinate to the terminal is a device connected to terminals such as CPEs and industrial gateways, such as Figure 1 devices 1 to n.

[0078] After the uplink packet sent by the terminal passes through the PHY module, MAC module, RLC module, and PDCP module, the packet reaching the SDAP module contains the overall packet related to the terminal, and the packet reaching the GTP module also contains the overall packet related to the terminal. Therefore, in the embodiment of the present disclosure, when the base station obtains the uplink terminal IP packet, it may obtain the uplink terminal IP packet from the GTP module; or, it may also obtain the uplink terminal IP packet from the SDAP module. The present disclosure does not limit this.

[0079] Step 202, determine whether the protocol field information in the IP header of the uplink terminal IP packet is the preset information.

[0080] Among them, the description of the preset information can refer to the relevant content of the foregoing embodiments, which will not be elaborated here.

[0081] Step 203: If the IP header protocol field information of the uplink terminal IP packet is the preset information, obtain the terminal IP and the device IP from the uplink terminal IP packet.

[0082] In the embodiment of the present disclosure, after the base station obtains the uplink terminal IP packet sent by the terminal, it can obtain the IP header protocol field information from the IP header protocol field of the uplink terminal IP packet, and determine whether the obtained IP header protocol field information is the preset information. If the IP header protocol field information of the uplink terminal IP packet is the preset information, the terminal IP and the device IP can be obtained from the uplink terminal IP packet.

[0083] Step 204: Construct an IP mapping relationship table according to the terminal IP and the device IP, where the IP mapping relationship table includes the mapping relationship between the terminal IP and the device IP.

[0084] In the embodiment of the present disclosure, after the base station obtains the terminal IP and the device IP from the uplink terminal IP packet, it can construct an IP mapping relationship table according to the obtained terminal IP and device IP. The IP mapping relationship table records the mapping relationship between the obtained terminal IP and the device IP.

[0085] It can be understood that when the base station obtains the uplink terminal IP packet for the first time, an IP mapping relationship table is constructed according to the terminal IP and the device IP in the uplink terminal IP packet. The IP mapping relationship table includes the mapping relationship between the terminal IP and the device IP obtained this time. The constructed IP mapping relationship table is stored in the local memory and is continuously updated and used. When the base station obtains a new uplink terminal IP packet, the terminal IP and the device IP are obtained from the newly obtained uplink terminal IP packet, and the mapping relationship between the terminal IP and the device IP is established and added to the IP mapping relationship table stored in the local memory, realizing the continuous update of the IP mapping relationship table. In addition, if the mapping relationship established this time has been stored in the IP mapping relationship table, in order to save memory, the mapping relationship may not be added to the IP mapping relationship table.

[0086] The message transmission method of the disclosed embodiment obtains an uplink terminal IP message, which includes the device IP of the terminal subordinate device and the terminal IP of the terminal, determines whether the IP header protocol field information of the uplink terminal IP message is preset information, and obtains the terminal IP and the device IP from the uplink terminal IP message when the IP header protocol field information is preset information, and then constructs an IP mapping relationship table according to the terminal IP and the device IP, wherein the IP mapping relationship table includes the mapping relationship between the terminal IP and the device IP. With the above technical solution, the base station can construct an IP mapping relationship table according to the uplink terminal IP message sent by the terminal, and then when the base station needs to send a message to the terminal, it can find the terminal IP corresponding to the device IP according to the constructed IP mapping relationship table, so that the lower layer module of the base station can find the relevant terminal according to the terminal IP to send the message to the device through the terminal, so that the traditional service can be statically connected to the terminal subordinate device, which greatly improves the flexibility of networking.

[0087] In an optional implementation of the present disclosure, when the base station obtains an uplink terminal IP message, if the base station determines that the IP header protocol field information of the uplink terminal IP message is preset information, the base station can also remove the terminal IP in the uplink terminal IP message, generate an uplink IP message containing the device IP of the terminal's subordinate device, and then send the uplink IP message to the diversion interface of the base station.

[0088] In the disclosed embodiment, when the base station determines that the IP header protocol field information of the acquired uplink terminal IP message is preset information, the terminal IP encapsulated in the uplink terminal IP message is removed to obtain an uplink IP message containing the device IP of the terminal subordinate device.

[0089] It can be understood that for the uplink terminal IP message, the terminal IP contained therein is post-encapsulated and is located in the first layer of the IP layer in the terminal IP message. Therefore, when removing, the first layer of the IP layer in the terminal IP message can be removed, thereby removing the terminal IP in the uplink terminal IP message.

[0090] In the embodiment of the present disclosure, after the uplink IP message is obtained, the uplink IP message may be sent to the shunt interface of the base station.

[0091] For example, Figure 1 As shown, when the IP header protocol field information of the uplink terminal IP message is preset information, the uplink IP message generated by removing the terminal IP is sent to server 1 through the diversion interface, thereby realizing the diversion of the uplink message whose IP header protocol field information is preset information.

[0092] It can be understood that in the embodiments of the present disclosure, the step of establishing the mapping relationship between the terminal IP and the device IP should be completed before the base station removes the terminal IP from the uplink terminal IP packet, so as to ensure that the terminal IP and the device IP can be obtained; alternatively, the base station can back up the uplink terminal IP packet, and after obtaining the terminal IP and the device IP from the uplink terminal IP packet to establish the mapping relationship between the terminal IP and the device IP, delete the backed-up uplink terminal IP packet to save the memory space of the base station. Thus, the step of establishing the mapping relationship between the terminal IP and the device IP and the step of removing the terminal IP from the uplink terminal IP packet do not affect each other, and thus the execution order of the two does not need to be restricted.

[0093] In the embodiments of the present disclosure, for the obtained uplink terminal IP packet, when it is determined that the IP header protocol field information of the uplink terminal IP packet is preset information, the base station removes the terminal IP from the uplink terminal IP packet, generates an uplink IP packet containing the device IP, and sends the uplink IP packet to the traffic splitting interface of the base station. Thus, before the packet is sent to the server, the terminal IP carried in the packet is deleted, so that the server is unaware of the terminal IP, and the server can only perceive the static device IP, meeting the static IP planning and requirements of the server.

[0094] Figure 5 FIG. is a schematic flowchart of a packet transmission method provided by another embodiment of the present disclosure. The packet transmission method is applied to a terminal and can be executed by the packet transmission device provided by the embodiments of the present disclosure. The packet transmission device can be implemented by software and / or hardware and can be integrated on the terminal. The terminal includes, but is not limited to, a CPE, an industrial gateway, etc.

[0095] As Figure 5 shown, the packet transmission method may include the following steps:

[0096] Step 301, receive a downlink IP packet sent by the base station. The downlink IP packet includes a target terminal IP and a target device IP. The target terminal IP is the terminal IP corresponding to the target device IP determined by the base station according to the IP mapping table when it is determined that the IP header protocol field information of the downlink terminal IP packet is preset information, and is encapsulated into the IP layer of the downlink terminal IP packet. The IP mapping table is constructed by the base station according to the terminal IP and the device IP carried in the uplink terminal IP packet.

[0097] Exemplarily, in a 5G wireless communication network, the communication between the terminal and the base station is usually realized through a 5G module. The terminal receives the downlink IP packet sent by the base station through the 5G module, and sends the uplink packet sent by the device subordinate to the terminal to the base station through the 5G module.

[0098] Based on the description of the foregoing embodiments, it can be understood that the downlink IP packet is generated by the base station after encapsulating the terminal IP in the downlink terminal IP packet sent by the server according to the IP mapping relationship table. The downlink IP packet contains the target terminal IP and the target device IP of the devices subordinate to the terminal. The construction of the IP mapping relationship table can be referred to the relevant description of the foregoing embodiments and will not be elaborated here.

[0099] Step 302, when the protocol field information in the IP header of the downlink IP packet is the preset information, remove the target terminal IP in the downlink IP packet to generate an IP packet.

[0100] Among them, the preset information included in the protocol field of the IP header of the downlink IP packet is the same as the preset information included in the protocol field of the IP header of the terminal IP packet, and the preset information will not be elaborated here in detail.

[0101] In the embodiments of the present disclosure, after the terminal receives the downlink IP packet sent by the base station, it can obtain the protocol field information of the IP header from the protocol field of the IP header of the downlink IP packet, and determine whether the obtained protocol field information of the IP header is the preset information. If it is the preset information, the target terminal IP included in the downlink IP packet is removed to generate an IP packet, and the generated IP packet contains the target device IP of the devices subordinate to the terminal.

[0102] It can be understood that for the downlink IP packet, the included target terminal IP is encapsulated later and is located in the first layer of the IP layer in the downlink IP packet. Therefore, when removing, the first layer of the IP layer in the downlink IP packet can be removed, thereby removing the target terminal IP in the downlink IP packet.

[0103] Step 303, based on the target device IP, send the IP packet to the target terminal subordinate device corresponding to the target device IP.

[0104] In the embodiments of the present disclosure, after the terminal removes the target terminal IP in the downlink IP packet to generate an IP packet, it can determine the target terminal subordinate device corresponding to the target device IP based on the target device IP included in the IP packet, and send the IP packet to the target terminal subordinate device.

[0105] The packet transmission method according to an embodiment of the present disclosure. The terminal receives a downlink IP packet sent by a base station, and when the protocol field information in the IP header of the downlink IP packet is preset information, the target terminal IP included in the downlink IP packet is removed to generate an IP packet, and the target device IP of the device subordinate to the terminal is included in the IP packet. Then, based on the target device IP, the IP packet is sent to the target device subordinate to the terminal corresponding to the target device IP. By adopting the solution of the present disclosure, static addressing between a server and a device subordinate to a terminal in a wireless network is achieved, and the flexibility of network formation is improved.

[0106] Figure 6 FIG. 4 is a schematic flowchart of a packet transmission method provided in another embodiment of the present disclosure. This method is applied to a terminal, as Figure 6 shown, the packet transmission method may further include the following steps:

[0107] Step 401: When receiving a device IP packet sent by a device subordinate to the terminal, obtain the terminal IP of the terminal.

[0108] Generally, a device subordinate to a terminal can access the terminal through the LAN (Local Area Network) port of the terminal, and information is transmitted between the terminal and its subordinate devices through a wired network accessing the LAN port. Therefore, in the embodiment of the present disclosure, the terminal can monitor the LAN port to obtain the device IP packet sent by the device subordinate to the terminal, and when monitoring the device IP packet sent by the device subordinate to the terminal, obtain the terminal IP of the terminal, where the terminal IP is dynamically allocated to the terminal by the core network.

[0109] Step 402: Enclose the terminal IP into the IP layer of the device IP packet, and write the preset information into the protocol field of the IP header to generate an uplink terminal IP packet.

[0110] In the embodiment of the present disclosure, after the terminal obtains the terminal IP, the obtained terminal IP can be enclosed into the IP layer of the device IP packet, and the preset information is written into the protocol field of the IP header to generate an uplink terminal IP packet.

[0111] It should be noted that, in the embodiment of the present disclosure, the device IP packet obtained by the terminal includes the device IP of the device subordinate to the terminal that sends the device IP packet. Then, the uplink terminal IP packet generated by enclosing the terminal IP into the IP layer of the device IP packet includes both the device IP and the terminal IP.

[0112] In an alternative embodiment of the present disclosure, when encapsulating the terminal IP, the terminal may encapsulate only the source IP, which is the terminal IP dynamically allocated by the 5G core network, or may encapsulate both the source IP and the destination IP. Among them, the destination IP is set to the heterogeneous gateway x.0.0.254 of the source IP. For example, if the source IP is 192.168.12.10, the destination IP may be set to 192.0.0.254.

[0113] Step 403: Send the uplink terminal IP packet to the base station.

[0114] In the embodiment of the present disclosure, after generating the uplink terminal IP packet, the terminal sends the generated uplink terminal IP packet to the base station. After receiving the uplink terminal IP packet sent by the terminal, the base station can determine that the uplink terminal IP packet is an uplink packet. According to the IP header protocol field of the uplink terminal IP packet, the information of the IP header protocol field can be obtained as the preset information. Thus, the terminal IP in the uplink terminal IP packet can be removed, and after generating the uplink IP packet, it is sent to the shunt interface and then transmitted to the server. Therefore, the server can only perceive the device IP of the devices subordinate to the terminal and is unaware of the terminal IP, realizing static addressing between the server and the devices subordinate to the terminal. In addition, the base station can also establish a mapping relationship between the terminal IP and the device IP according to the terminal IP and the device IP in the uplink terminal IP packet and add it to the IP mapping relationship table stored in the local memory of the base station to realize the maintenance and update of the IP mapping relationship table.

[0115] The packet transmission method of the embodiment of the present disclosure, when obtaining the device IP packet sent by the device subordinate to the terminal, obtains the terminal IP of the terminal, encapsulates the terminal IP into the IP layer of the device IP packet, and writes the preset information to the IP header protocol field to generate the uplink terminal IP packet. Then, the uplink terminal IP packet is sent to the base station, providing data support for the base station to update the IP mapping relationship table, enabling the base station to establish a mapping relationship between the terminal IP and the device IP according to the terminal IP packet and add it to the IP mapping relationship table to realize the continuous update of the IP mapping relationship table.

[0116] To implement the above embodiment, the present disclosure also provides a packet transmission device, which can be implemented by software and / or hardware and can be applied to the base station.

[0117] Figure 7 As shown in the structural schematic diagram of the packet transmission device provided by an embodiment of the present disclosure, Figure 7 the packet transmission device 50 may include: an obtaining module 500, a determining module 510, a terminal IP determining module 520, an encapsulating module 530, and a first sending module 540.

[0118] Among them, an obtaining module 500 is configured to obtain a downlink terminal IP packet, where the downlink terminal IP packet contains a target device IP of a device subordinate to the terminal;

[0119] A determining module 510 is configured to determine whether protocol field information of an IP header of the downlink terminal IP packet is preset information;

[0120] A terminal IP determining module 520 is configured to, when the protocol field information of the IP header of the downlink terminal IP packet is the preset information, determine a target terminal IP corresponding to the target device IP according to an IP mapping relationship table, where the IP mapping relationship table is constructed according to a terminal IP and a device IP carried in an uplink terminal IP packet, and the IP mapping relationship table includes a mapping relationship between the terminal IP and the device IP;

[0121] An encapsulating module 530 is configured to encapsulate the target terminal IP into an IP layer of the downlink terminal IP packet to generate a downlink IP packet;

[0122] A first sending module 540 is configured to send the downlink IP packet to a target terminal corresponding to the target terminal IP.

[0123] Optionally, the packet transmission device 50 further includes:

[0124] A relationship table constructing module is configured to obtain an uplink terminal IP packet, where the uplink terminal IP packet contains a device IP of a device subordinate to the terminal and a terminal IP of the terminal; determine whether protocol field information of an IP header of the uplink terminal IP packet is the preset information; if the protocol field information of the IP header of the uplink terminal IP packet is the preset information, obtain the terminal IP and the device IP from the uplink terminal IP packet; construct an IP mapping relationship table according to the terminal IP and the device IP, where the IP mapping relationship table includes a mapping relationship between the terminal IP and the device IP.

[0125] Optionally, the packet transmission device 50 further includes:

[0126] A first processing module is configured to, when the protocol field information of the IP header of the terminal IP packet is preset information, remove the terminal IP from the uplink terminal IP packet to generate an uplink IP packet containing a device IP of a device subordinate to the terminal;

[0127] A third sending module is configured to send the uplink IP packet to a shunt interface of the base station.

[0128] Optionally, the packet transmission device 50 further includes:

[0129] A discard module, configured to discard the downlink terminal IP packet if the target terminal IP corresponding to the target device IP cannot be queried according to the IP mapping relationship table.

[0130] Optionally, the obtaining module 500 is further configured to:

[0131] Obtain the downlink terminal IP packet from the GTP module of the base station; or

[0132] Obtain the downlink terminal IP packet from the SDAP module of the base station.

[0133] The message transmission device provided by the embodiments of the present disclosure that can be applied to a base station can execute the message transmission method provided by the embodiments of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method. The content not described in detail in the device embodiments of the present disclosure can be referred to the description in any method embodiment of the present disclosure.

[0134] To implement the above embodiments, the present disclosure further provides a message transmission device. The message transmission device can be implemented by software and / or hardware, and can be applied to the terminal of the embodiments of the present disclosure. The terminal includes, but is not limited to, a CPE, an industrial gateway, etc.

[0135] Figure 8 The structural schematic diagram of the message transmission device provided by another embodiment of the present disclosure is as Figure 8 shown. The message transmission device 60 may include: a receiving module 610, a removing module 620, and a second sending module 630.

[0136] Among them, the receiving module 610 is configured to receive the downlink IP packet sent by the base station. The downlink IP packet includes a target terminal IP and a target device IP. The target terminal IP is the terminal IP corresponding to the target device IP determined by the base station according to the IP mapping relationship table when it determines that the IP header protocol field information of the downlink terminal IP packet is preset information, and is encapsulated into the IP layer of the downlink terminal IP packet. The IP mapping relationship table is constructed by the base station according to the terminal IP and device IP carried in the uplink terminal IP packet;

[0137] The removing module 620 is configured to remove the target terminal IP in the downlink IP packet to generate an IP packet when the IP header protocol field information of the downlink IP packet is the preset information;

[0138] The second sending module 630 is configured to send the IP packet to the target terminal subordinate device corresponding to the target device IP based on the target device IP.

[0139] Optionally, the message transmission device 60 further includes:

[0140] A terminal IP acquisition module, configured to acquire the terminal IP of a terminal when an equipment IP packet sent by a device subordinate to the terminal is acquired.

[0141] A second processing module, configured to encapsulate the terminal IP into the IP layer of the equipment IP packet, and write the preset information into the IP header protocol field to generate an uplink terminal IP packet.

[0142] A fourth sending module, configured to send the uplink terminal IP packet to the base station.

[0143] The message transmission device applicable to a terminal provided by an embodiment of the present disclosure can execute the message transmission method applicable to a terminal provided by an embodiment of the present disclosure, and has functional modules and beneficial effects corresponding to the execution of the method. The content not described in detail in the device embodiment of the present disclosure can be referred to the description in any method embodiment of the present disclosure.

[0144] To implement the above embodiments, the present disclosure also provides a message transmission system.

[0145] Figure 9 As shown in the structural schematic diagram of the message transmission system provided by an embodiment of the present disclosure, Figure 9 as shown, the message transmission system 70 includes: a base station 710 and a terminal 720, and the base station 710 and the terminal 720 are connected through a network; wherein,

[0146] The base station 710 is configured to acquire a downlink terminal IP packet, where the downlink terminal IP packet contains the target device IP of a device subordinate to the terminal. When the information in the IP header protocol field of the downlink terminal IP packet is the preset information, according to the IP mapping relationship table, determine the target terminal IP corresponding to the target device IP, encapsulate the target terminal IP into the IP layer of the terminal IP packet, generate a downlink IP packet, and send the downlink IP packet to the target terminal corresponding to the target terminal IP. The IP mapping relationship table is constructed according to the terminal IP and the device IP carried in the uplink terminal IP packet, and the IP mapping relationship table includes the mapping relationship between the terminal IP and the device IP;

[0147] The terminal 720 is configured to receive the downlink IP packet sent by the base station 710, and when the information in the IP header protocol field of the downlink IP packet is the preset information, remove the target terminal IP included in the downlink IP packet to generate an IP packet, where the IP packet contains the target device IP of a device subordinate to the terminal, and based on the target device IP, send the IP packet to the target device subordinate to the terminal corresponding to the target device IP.

[0148] In an alternative embodiment of the present disclosure, the terminal 720 is further configured to, when obtaining a device IP packet sent by a device subordinate to the terminal, obtain the terminal IP of the terminal, encapsulate the terminal IP into the IP layer of the device IP packet, write the preset information into the IP header protocol field, generate an uplink terminal IP packet, and send the uplink terminal IP packet to the base station 710;

[0149] The base station 710 is further configured to, when the information in the IP header protocol field of the uplink terminal IP packet is the preset information, remove the terminal IP in the uplink terminal IP packet, generate an uplink IP packet including the device IP of the device subordinate to the terminal, and send the uplink IP packet to the traffic splitting interface of the base station.

[0150] In an alternative embodiment of the present disclosure, the base station 710 is further configured to, when the information in the IP header protocol field of the uplink terminal IP packet is the preset information, obtain the terminal IP and the device IP from the uplink terminal IP packet, and construct an IP mapping relationship table according to the terminal IP and the device IP included in the uplink terminal IP packet, where the IP mapping relationship table includes the mapping relationship between the terminal IP and the device IP.

[0151] The base station provided by the embodiments of the present disclosure includes a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented:

[0152] Obtain a downlink terminal IP packet, where the downlink terminal IP packet includes the target device IP of a device subordinate to the terminal;

[0153] Determine whether the information in the IP header protocol field of the downlink terminal IP packet is the preset information;

[0154] If the information in the IP header protocol field of the downlink terminal IP packet is the preset information, determine the target terminal IP corresponding to the target device IP according to the IP mapping relationship table, where the IP mapping relationship table is constructed according to the terminal IP and the device IP carried in the uplink terminal IP packet, and the IP mapping relationship table includes the mapping relationship between the terminal IP and the device IP;

[0155] Encapsulate the target terminal IP into the IP layer of the downlink terminal IP packet to generate a downlink IP packet;

[0156] Send the downlink IP packet to the target terminal corresponding to the target terminal IP.

[0157] The message transmission system provided by the embodiments of the present disclosure includes a base station and a terminal. The base station can execute the message transmission method applicable to the base station provided by the embodiments of the present disclosure, and the terminal can execute the message transmission method applicable to the terminal provided by the embodiments of the present disclosure, and has the corresponding functional modules and beneficial effects for executing the method. The content not described in detail in the system embodiments of the present disclosure can be referred to the description in any method embodiment of the present disclosure.

[0158] Figure 10 Fig. shows a schematic diagram of the message transmission process in an exemplary embodiment of the present disclosure. Assume Figure 10 Device 1 in sends a message to Server 1. The sent device IP message includes a data field and an IP header (abbreviated as Hrd) field. The device IP is 168.168.12.1. Device 1 sends the device IP message to the CPE terminal through a wired network. The terminal IP of the CPE terminal is 192.168.12.10. The CPE terminal encapsulates the terminal IP in the IP layer of the device IP message and writes preset information to the IP header protocol field to obtain an Figure 10 upstream terminal IP message as shown, and then sends the upstream terminal IP message to the base station through a 5G module. After receiving the upstream terminal IP message, if the base station determines that the IP header protocol field information of the upstream terminal IP message is preset information, it removes the terminal IP from the upstream terminal IP message, generates an upstream IP message, and sends it to Server 1 through a shunt interface. In addition, the base station also obtains the terminal IP and the device IP from the upstream terminal IP message, and establishes a mapping relationship between the two and adds it to the IP mapping relationship table in the local memory.

[0159] Assume Figure 10 Server 1 in sends a message to Device 1. The sent downstream terminal IP message carries the device IP of Device 1 and the data to be transmitted. The device IP is 168.168.12.1, and preset information is written to the IP header protocol field of the downstream terminal IP message. Server 1 sends the downstream terminal IP message to the base station. After obtaining the downstream terminal IP message, if the base station determines that the IP header protocol field information of the downstream terminal IP message is preset information, it queries the IP mapping relationship table to determine the terminal IP corresponding to the device IP in the downstream terminal IP message, encapsulates the terminal IP in the IP layer of the downstream terminal IP message to obtain a downstream IP message, and sends the downstream IP message to the CPE terminal through a 5G network. The CPE terminal receives the downstream IP message through a 5G module, and after determining that the IP header protocol field information of the downstream IP message is preset information, it removes the terminal IP included in the downstream IP message to generate an IP message, and sends the IP message to Device 1 corresponding to the device IP according to the device IP in the IP message.

[0160] It can be seen that with the solution of the present disclosure, the dynamic terminal IP is imperceptible to both the server and the devices subordinate to the terminal. The server can only perceive the static IP address of the device, realizing static addressing between the server and the device.

[0161] The embodiments of the present disclosure also provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the embodiments of the message transmission method as described in the foregoing embodiments. To avoid repeated description, it will not be elaborated herein.

[0162] The embodiments of the present disclosure also provide a computer program product for executing the steps of the embodiments of the message transmission method as described in the foregoing embodiments.

[0163] It should be noted that in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "comprising a..." does not exclude the existence of additional identical elements in the process, method, article or device comprising the element.

[0164] The above are only specific implementation manners of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.

[0165] In addition, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments may also be implemented combinatorially in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.

[0166] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. On the contrary, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A packet transmission method, characterized in that, applied to a base station, the method includes: Obtain a downlink terminal IP packet, where the downlink terminal IP packet contains the target device IP of the device subordinate to the terminal; Determine whether the IP header protocol field information of the downlink terminal IP packet is preset information, where the preset information is pre-agreed information used to indicate that the downlink terminal IP packet needs to perform terminal IP encapsulation or the uplink terminal IP packet needs to perform terminal IP removal; If the IP header protocol field information of the downlink terminal IP packet is the preset information, then according to the IP mapping relationship table, determine the target terminal IP corresponding to the target device IP, where the IP mapping relationship table is constructed based on the terminal IP and device IP carried in the uplink terminal IP packet, and the IP mapping relationship table includes the mapping relationship between the terminal IP and the device IP; Encapsulate the target terminal IP into the IP layer of the downlink terminal IP packet to generate a downlink IP packet; Send the downlink IP packet to the target terminal corresponding to the target terminal IP.

2. The method according to claim 1, characterized in that, The IP mapping relationship table is constructed based on the terminal IP and device IP carried in the uplink terminal IP packet, and includes: Obtain an uplink terminal IP packet, where the uplink terminal IP packet contains the device IP of the device subordinate to the terminal and the terminal IP of the terminal; Determine whether the IP header protocol field information of the uplink terminal IP packet is the preset information; If the IP header protocol field information of the uplink terminal IP packet is the preset information, then obtain the terminal IP and the device IP from the uplink terminal IP packet; According to the terminal IP and the device IP, construct the IP mapping relationship table including the mapping relationship between the terminal IP and the device IP.

3. The method according to claim 2, characterized in that, When the IP header protocol field information of the uplink terminal IP packet is the preset information, the method further includes: Remove the terminal IP from the uplink terminal IP packet to generate an uplink IP packet containing the device IP of the device subordinate to the terminal; Send the uplink IP packet to the shunt interface of the base station.

4. The method according to claim 1, characterized in that, The method further includes: If the target terminal IP corresponding to the target device IP cannot be queried according to the IP mapping relationship table, then discard the downlink terminal IP packet.

5. The method according to claim 1, characterized in that, The obtaining of the downlink terminal IP packet includes: Obtain the downlink terminal IP packet from the GTP module of the base station; or Obtain the downlink terminal IP packet from the SDAP module of the base station.

6. A packet transmission method, characterized in that, The method includes: Receive the downlink IP packet sent by the base station. The downlink IP packet includes the target terminal IP and the target device IP. The target terminal IP is determined by the base station according to the IP mapping relationship table when it determines that the IP header protocol field information of the downlink terminal IP packet is preset information, and is the terminal IP corresponding to the target device IP, and is encapsulated into the IP layer of the downlink terminal IP packet. The IP mapping relationship table is constructed by the base station according to the terminal IP and device IP carried in the uplink terminal IP packet. Wherein, the preset information is the pre-agreed information used to indicate that the downlink terminal IP packet needs to perform terminal IP encapsulation or the uplink terminal IP packet needs to perform terminal IP removal; In the case where the IP header protocol field information of the downlink IP packet is the preset information, remove the target terminal IP in the downlink IP packet to generate an IP packet; Based on the target device IP, send the IP packet to the target terminal subordinate device corresponding to the target device IP.

7. The method according to claim 6, wherein, the method further includes: When obtaining the device IP packet sent by the terminal subordinate device, obtain the terminal IP of the terminal; Encapsulate the terminal IP into the IP layer of the device IP packet, and write the preset information to the IP header protocol field to generate an uplink terminal IP packet; Send the uplink terminal IP packet to the base station.

8. A message transmission device, wherein, the device includes: An acquisition module, configured to acquire a downlink terminal IP packet, where the downlink terminal IP packet contains the target device IP of the terminal subordinate device; A judgment module, configured to judge whether the IP header protocol field information of the downlink terminal IP packet is preset information, where the preset information is the pre-agreed information used to indicate that the downlink terminal IP packet needs to perform terminal IP encapsulation or the uplink terminal IP packet needs to perform terminal IP removal; A terminal IP determination module, configured to, when the IP header protocol field information of the downlink terminal IP packet is the preset information, determine the target terminal IP corresponding to the target device IP according to the IP mapping relationship table, where the IP mapping relationship table is constructed according to the terminal IP and device IP carried in the uplink terminal IP packet, and the IP mapping relationship table includes the mapping relationship between the terminal IP and the device IP; An encapsulation module, configured to encapsulate the target terminal IP into the IP layer of the downlink terminal IP packet to generate a downlink IP packet; A first sending module, configured to send the downlink IP packet to the target terminal corresponding to the target terminal IP.

9. A message transmission device, wherein, the device includes: A receiving module, configured to receive a downlink IP packet sent by a base station. The downlink IP packet includes a target terminal IP and a target device IP. The target terminal IP is determined by the base station according to an IP mapping relationship table when determining that the IP header protocol field information of the downlink terminal IP packet is preset information, and is the terminal IP corresponding to the target device IP, and is encapsulated into the IP layer of the downlink terminal IP packet. The IP mapping relationship table is constructed by the base station according to the terminal IP and the device IP carried in the uplink terminal IP packet. Wherein, the preset information is pre-agreed information used to indicate that the downlink terminal IP packet needs to perform terminal IP encapsulation or the uplink terminal IP packet needs to perform terminal IP removal; A removal module, configured to remove the target terminal IP in the downlink IP packet to generate an IP packet when the IP header protocol field information of the downlink IP packet is the preset information; A second sending module, configured to send the IP packet to a target terminal subordinate device corresponding to the target device IP based on the target device IP.

10. A base station, including a memory and a processor, where the memory stores a computer program, characterized in that, when the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

11. A message transmission system, characterized in that, including: a base station and a terminal, where the base station and the terminal are connected through a network; wherein, the base station is configured to obtain a downlink terminal IP packet, the downlink terminal IP packet contains a target device IP of a terminal subordinate device, and when the IP header protocol field information of the downlink terminal IP packet is preset information, determine a target terminal IP corresponding to the target device IP according to an IP mapping relationship table, encapsulate the target terminal IP into the IP layer of the terminal IP packet, generate a downlink IP packet, and send the downlink IP packet to a target terminal corresponding to the target terminal IP. The IP mapping relationship table is constructed according to the terminal IP and the device IP carried in the uplink terminal IP packet, and the IP mapping relationship table includes the mapping relationship between the terminal IP and the device IP. Wherein, the preset information is pre-agreed information used to indicate that the downlink terminal IP packet needs to perform terminal IP encapsulation or the uplink terminal IP packet needs to perform terminal IP removal; the terminal is configured to receive the downlink IP packet sent by the base station, and when the IP header protocol field information of the downlink IP packet is preset information, remove the target terminal IP included in the downlink IP packet to generate an IP packet, the IP packet includes the target device IP of the terminal subordinate device, and based on the target device IP, send the IP packet to a target terminal subordinate device corresponding to the target device IP.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the message transmission method according to any one of claims 1-5, or implement the message transmission method according to any one of claims 6-7.

Citation Information

Patent Citations

  • Lower-hanging equipment network access communication realization method of private network client terminal equipment and apparatus thereof

    CN105577501A