The present disclosure relates to the technical field of Internet of Things communications, in particular to a data migration system, method and apparatus for an Internet of Things device, and a storage medium.
In the field of mobile cellular Internet of Things communications, an Internet of Things platform provides unified management for Internet of Things devices and data collection functions. The Internet of Things device is accessed to a server cluster of the Internet of Things platform through a mobile communication network and then through a backbone bearer network. Generally, the Internet of Things platform needs to configure a public IP address of the server cluster to the Internet of Things device, and the Internet of Things device sends data to the server cluster accessed to the Internet of Things platform based on the configured IP address.
At present, with the increasing number of the Internet of Things devices, the business processing pressure on the Internet of Things platform is increasing gradually, necessitating the addition of IP addresses to increase the server clusters for load distribution. However, given the wide geographic distribution and large number of Internet of Things devices, reconfiguring the destination IP addresses on-site or remotely to migrate the data of the Internet of Things devices to a new server cluster would incur significant labor and time costs.
The present disclosure aims to solve at least one of the technical problems in the related art. Therefore, the present disclosure provides a data migration system, method and apparatus for an Internet of Things device, and a storage medium.
In one aspect, the embodiments of the present disclosure provide a data migration system for an Internet of Things device, including a gateway platform and an Internet of Things platform, wherein the Internet of Things platform includes a plurality of server clusters;
According to some embodiments of the present disclosure, the gateway platform includes a device access authentication module for:
According to some embodiments of the present disclosure, the gateway platform further includes a data packet forwarding module for:
According to some embodiments of the present disclosure, the server cluster is configured for:
According to some embodiments of the present disclosure, the gateway platform further includes a configuration module for:
In another aspect, the embodiments of the present disclosure further provide a data migration method for an Internet of Things device, applied to the gateway platform in the data migration system for an Internet of Things device mentioned above, and comprising:
According to some embodiments of the present disclosure, the data migration method for an Internet of Things device further includes:
According to some embodiments of the present disclosure, determining the user identifier of the Internet of Things device according to the data includes:
In another aspect, the embodiments of the present disclosure further provide a data migration apparatus for an Internet of Things device, including:
In another aspect, the embodiments of the present disclosure further provide a computer-readable storage medium storing a processor-executable program which, when executed by a computer, causes the computer to implement the data migration method for an Internet of Things device mentioned above.
The technical solutions of the present disclosure at least have one of the following advantages or beneficial effects. When the Internet of Things device transmits data to the server cluster of the Internet of Things platform, firstly, the gateway platform receives the data of the Internet of Things device, determines the user identifier of the Internet of Things device preset in the gateway platform according to the data, and determines the virtual private channel for transmitting the data based on the user identifier. Since each virtual private channel corresponds to one server cluster, the data of the Internet of Things device can be migrated to the corresponding server cluster after the virtual private channel is determined. By establishing the virtual private channel between the gateway platform and each server cluster of the Internet of Things platform, the gateway platform addresses and forwards the data according to the IP address in the data, and the virtual private channel is determined according to the user identifier of the Internet of Things device, so that the data can be transmitted to the server cluster corresponding to the virtual private channel. Therefore, the migration of the data of the Internet of Things device can be realized only by changing the user identifier preset in the gateway platform without changing the configuration of the Internet of Things device, which saves the data migration cost for the Internet of Things device.
The embodiments of the present disclosure will be described in detail hereinafter. Examples of the embodiments are shown in the drawings. The same or similar reference numerals throughout the drawings denote the same or similar elements or elements having the same or similar functions. The embodiments described below by reference to the accompanying drawings are exemplary and are intended only to explain the present disclosure and are not to be construed as limiting the present disclosure.
In the description of the present disclosure, it should be understood that the orientation or position relation related to the orientation description, such as the orientation or position relation indicated by the terms such as upper, lower, front, rear, left, right, etc., is based on the orientation or position relation shown in the drawings, which is only configured for convenience of description of the present disclosure and simplification of description instead of indicating or implying that the indicated device or element must have a specific orientation, and be constructed and operated in a specific orientation, and thus shall not be understood as a limitation to the present disclosure.
In the description of the present disclosure, if the terms such as first and second are described, they are configured for the purpose of distinguishing the technical features only, and cannot be understood as indicating or implying relative importance, or implicitly indicating the number of technical features indicated thereby, or implicitly indicating the order of technical features indicated thereby.
Before the embodiments of the present disclosure are further explained in detail, the nouns and terms involved in the embodiments of the present disclosure are explained, and the nouns and terms involved in the embodiments of the present disclosure are applicable to the following explanations.
Home Subscriber Server (HSS): an important component of a control layer in an IP Multimedia Subsystem (IMS). The HSS supports a primary user database of an IMS network entity for handling/calling sessions. The HSS contains a user profile, performs identity authentication and authorization of the user, and may provide information about a physical location of the user. The HS S is similar to GSMHomeLocationregister. Entities communicating with the HSS include an application server and a call session control function server.
Mobility Management Entity (MME): a key control node of a 3GPP protocol LTE access network, which is responsible for positioning and paging processes of User Equipment (UE) in an idle mode, including relay. Simply speaking, the MME is responsible for signaling processing. The MME involves activation/deactivation process of a bearer, and selects one Serving GateWay (SGW) for the UE when the UE is initialized and connected. The MME authenticates one user by interacting with the HSS, and assigns one temporary ID to the user.
Serving GateWay (SGW): an important network element in a mobile communication core network. In a traditional network, a Serving GPRS Support Node (SGSN) is not only responsible for functions related to signaling planes such as mobility management and user access control, but also responsible for forwarding user data. Based on the idea of control and bearer separation, functions of the SGSN are split in the mobile communication core network, that is, the signaling plane function is taken over by the MME network element, while the user plane function of user data forwarding is taken over by the SGW network element.
PDN GateWay (PGW): as a border gateway of the mobile communication core network, it provides functions such as user session management and bearer control, data forwarding, IP address allocation and access for non-3GPP users. The PGW is an anchor point for 3GPP access and non-3GPP access with a public data network PDN. The 3GPP access refers to wireless access technology from a 3GPP standard family, while the non-3GPP access refers to wireless access technology excluding the 3GPP standard family.
Customer Edge (CE): a client router to which a service provider is connected. The CE router provides service access for the user by connecting one or more PE routers.
Virtual Private Network (VPN): remote access technology, which uses data encapsulation and encryption technologies to set up a private network on a public network, thus forming a virtual private channel on the public network. A VPN gateway realizes remote access by encrypting a data packet and translating a destination address of the data packet. The VPN can be realized in many ways, such as server, hardware and software.
Each server cluster on an Internet of Things platform provides a public IP address to the outside, and intranet IP addresses are employed inside the server cluster. The traditional Internet of Things device sends data to the Internet of Things platform through the following method: the Internet of Things device is configured with a destination IP address of a destination server, and the Internet of Things device encapsulates a data packet based on the destination IP address and sends the data packet to a gateway platform for forwarding. The gateway platform forwards the data to a corresponding server cluster according to an IP address addressing method, and the server cluster forwards the data to the destination server in the server cluster based on the destination IP address in the data. Because the IP address addressing method is used to forward the data in the gateway platform, the intranet IP addresses in different server clusters cannot be the same, otherwise routing conflicts will occur. In order to migrate the data of the Internet of Things device to other server clusters, the destination IP address configured in the Internet of Things device has to be changed.
Based on this, the embodiments of the present disclosure provide a data migration system for an Internet of Things device. Referring to
The gateway platform is configured for receiving data of the Internet of Things device, determining a user identifier of the Internet of Things device according to the data, determining a virtual private channel for transmitting the data according to the user identifier, and sending the data through the virtual private channel, wherein the user identifier is preset in the gateway platform.
Specifically, taking the data migration system for an Internet of Things device shown in
According to some specific embodiments of the present disclosure, referring to
Specifically, the Internet of Things device initiates a network access request to the device access authentication module. The device access authentication module takes an MAC address of the Internet of Things device as the device identifier, assigns a Charging Character (CC) value to the MAC address of the Internet of Things device as the user identifier, and then binds the MAC address and the CC value to form the first relational mapping table. In addition, the device access authentication module also assigns one first IP address as a source IP address to the Internet of Things device after the Internet of Things device initiates an authentication request, and sends the assigned first IP address to the Internet of Things device, and the network access request of the Internet of Things device is successful.
According to some embodiments of the present disclosure, referring to
Specifically, the Internet of Things device uses the first IP address as the source IP address to send the data to the server cluster in the Internet of Things platform through the gateway platform. The data packet forwarding module in the gateway platform analyzes the data of the Internet of Things device to get the MAC address of the Internet of Things device, queries the first relational mapping table in the device access authentication module according to the MAC address to get the corresponding CC value, then queries the second relational mapping table according to the CC value to determine the corresponding virtual private channel, and then sends the data to the corresponding server cluster through the virtual private channel.
According to some specific embodiments of the present disclosure, the server cluster is configured for:
Specifically, the server cluster is configured with a firewall device, in which only the data of the corresponding virtual private channel is received by decrypting to identify the data packet, and the data of other virtual private channels are isolated. The data are analyzed to obtain the second IP address of the data in the service server cluster, which is the destination IP address of the data, and then the destination server or the next-level destination server cluster is determined according to the second IP address and the data are forwarded thereto.
According to some specific embodiments of the present disclosure, the gateway platform further includes a configuration module configured for:
Specifically, the configuration module acquires the configuration instruction input by the user, and the configuration instruction includes the user identifier and the server cluster number. In the configuration module, in response to the configuration instruction, the configuration instruction is analyzed to obtain the user identifier and the server cluster number, and then the corresponding virtual private channel is determined according to the server cluster number, and the virtual private channel and the user identifier in the configuration instruction are bound to form the second relational mapping table, thus migrating the data of the Internet of Things device in batches. In this embodiment, the correspondence between the user identifier and the virtual private channel in the gateway platform can be changed through the configuration instruction, for example, the virtual private channel corresponding to the user identifier “2” is modified to the VPN1, and the data of all the Internet of Things devices with the user identifier “2” can be migrated to the server cluster 1 in batches.
In some embodiments, the configuration instruction input by the user may also include the user identifier and the device identifier. In the configuration module, in response to the configuration instruction, the configuration instruction is analyzed to obtain the user identifier and the device identifier, and then the user identifier and the device identifier in the configuration instruction are bound to form the second relational mapping table, thus migrating the data of a certain Internet of Things device. In this embodiment, the correspondence between the user identifier and the device identifier in the gateway platform can be changed through the configuration instruction, for example, the user identifier corresponding to the device identifier “MAC1” is modified from “1” to “2”, and the data of the Internet of Things device with the user identifier “MAC1” can be migrated from the server cluster 1 to the server cluster 2.
The embodiments of the present disclosure provide a data migration method for an Internet of Things device, applied to the gateway platform of the data migration system for an Internet of Things device according to the above embodiments. Referring to
Step S110: receiving the data of the Internet of Things device;
In this embodiment, the gateway platform receives the data of the Internet of Things device, determines the user identifier of the Internet of Things device preset in the gateway platform according to the data, and determines the virtual private channel for transmitting the data based on the user identifier. Since each virtual private channel corresponds to one server cluster, the data of the Internet of Things device can be migrated to the corresponding server cluster after the virtual private channel is determined. By establishing the virtual private channel between the gateway platform and each server cluster of the Internet of Things platform, the gateway platform addresses and forwards the data according to the IP address in the data, and the virtual private channel is determined according to the user identifier of the Internet of Things device, so that the data can be transmitted to the server cluster corresponding to the virtual private channel. Therefore, the migration of the data of the Internet of Things device can be realized only by changing the user identifier preset in the gateway platform without changing the configuration of the Internet of Things device, which saves the data migration cost for the Internet of Things device.
According to some specific embodiments of the present disclosure, the data migration method for an Internet of Things device further includes, but is not limited to the following steps:
In this embodiment, network access attachment can be realized for the Internet of Things device, wherein the network access attachment includes allocating the first IP address for the Internet of Things device, that is, a source IP address in a data packet uploaded by the Internet of Things device, and the network access attachment further includes presetting the user identifier for the Internet of Things device.
According to some specific embodiments of the present disclosure, the step S120 includes, but is not limited to the following steps:
In this embodiment, based on the device identifier in the data of the Internet of Things device, the virtual private channel for transmitting the data is determined by querying the first relational mapping table and the second relational mapping table, so as to send the data to the corresponding server cluster through the corresponding virtual private channel.
Referring to
The 4G core network includes an MME network element, an HSS network element, a SGW network element, a PGW network element and a CE network element. An Internet of Things device of a certain user initiates a network access request to the MME network element, the MME network element sends the network access request to the HSS network element, and the HSS network element acquires a CC value from a receiving interface and returns the CC value to the MME network element. The MME network element sends the device identifier and the CC value of the Internet of Things device to the SGW network element for storage. When the Internet of Things device uploads the data to the server cluster of the Internet of Things platform, the data of the Internet of Things device are mapped in the SGW network element to obtain the user identifier, and the virtual private channel is determined in the PGW network element according to the user identifier. The Network Address Translation (NAT) technology is adopted in the CE network element to send the data to the corresponding virtual private channel, so as to send the data to the corresponding server cluster. A Fire Wall (FW) on the server cluster realizes data receiving in the corresponding virtual private channel.
Referring to
The control processor and the memory may be connected by a bus or in other ways, and connecting by bus is taken as an example in
As a non-transient computer-readable storage medium, the memory may be used to store non-transient software and non-transient computer-executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk memory device, a flash memory device, or other non-transient solid storage devices. In some embodiments, the memory optionally includes a memory remotely disposed with respect to the control processor, which may be connected to the data migration apparatus for the Internet of Things device through a network. Examples of the networks above include, but are not limited to, the Internet, intranet, local area networks, mobile communication networks, and combinations thereof.
Those of ordinary skills in the art can understand that the apparatus structure shown in
Non-transient software programs and instructions required to realize the data migration method for an Internet of Things device applied to the data migration apparatus for the Internet of Things device in the foregoing embodiments are stored in the memory, which, when executed by the control processor, cause the processor to execute the data migration method for an Internet of Things device applied in the data migration apparatus for the Internet of Things device described above.
Moreover, an embodiment of the present application further provides a computer-readable storage medium that stores a computer-executable instruction, which, when operated by one or more control processors, causes the one or more control processors to execute the data migration method for an Internet of Things device described in the above-mentioned method embodiments.
Those of ordinary skills in the art will appreciate that all or some of the steps in the methods and the systems disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some physical components or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, and the computer-readable medium may include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As well known to those of ordinary skills in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instruction, data structure, programming module or other data). The computer storage medium includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc memory, magnetic cassette, magnetic tape, magnetic disk memory or other magnetic memory device, or may be any other medium that can be used to store the desired information and can be accessed by a computer. Moreover, it is well known to those of ordinary skills in the art that the communication medium typically includes computer-readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transmission mechanism, and may include any information delivery medium.
The embodiments of the present disclosure are described in detail with reference to the drawings above, but the present disclosure is not limited to the above embodiments, and various changes may also be made within the knowledge scope of those of ordinary skills in the art without departing from the purpose of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202111652214.3 | Dec 2021 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2022/140392 | 12/20/2022 | WO |