A device networking method and system based on IPv6 protocol

By generating the IPv6 address of the device and realizing device registration and address change monitoring, the problems of IPv6 protocol address management difficulty and dynamic address changes are solved, and efficient and convenient device networking and management are achieved.

CN119254744BActive Publication Date: 2025-02-18ZHEJIANG JINGGAO INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411765042.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-02-18
Estimated Expiration
2044-12-04

AI Technical Summary

Technical Problem

The lengthy address format of the IPv6 protocol makes it difficult for users to manage. Dynamically allocated IPv6 addresses affect the stability and reliability of communication between devices. The existing technologies such as DDNS cannot meet the networking needs of massive devices.

Method used

The device reads the sequence number in its own unique identifier and the bytes generated by the random number generator to generate the network card identifier, form the IPv6 address of the device, and realizes device registration and address change monitoring, the system server manages device information and performs user manage.

Benefits of technology

It simplifies address management, reduces usage thresholds and costs, enhances device management functions, realizes efficient dynamic address processing, and ensures smooth communication of equipment in a dynamic network environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254744B_ABST
    Figure CN119254744B_ABST
Patent Text Reader

Abstract

The present invention provides a device networking method and system based on IPv6 protocol, comprising: when registering a device, first read the sequence number in its own unique identifier, combine it with the bytes generated by a random number generator to generate a network card identifier and a local link address, trigger a multicast neighbor request, combine it with the router IPv6 network address prefix to form the device IPv6 address, register the identifier information with the system, set the object to complete the registration; in the monitoring of the device IPv6 network address change, listen to the ICMP6 protocol routing announcement, and when the router network prefix changes, regenerate and re-register the IPv6 address with the new prefix and the network card identifier; in terms of system functions, receive registration information and register related content, remotely set parameters, perform user and device management, and the device management covers multiple functions such as remote online software upgrade; the present invention can simplify address management, reduce the use threshold and cost, enhance the device management function, and improve the dynamic address processing efficiency, thereby overcoming the shortcomings in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network communication technology, and in particular to a device networking method and system based on IPv6 protocol. Background Art

[0002] In today's digital age, network communication technology is developing rapidly. With the emergence and widespread application of emerging technologies such as the Internet of Things, big data, cloud computing, and artificial intelligence, the number of devices in the network is growing explosively, and the demand for network address resources is also increasing.

[0003] IPv4 is an early and widely used network protocol. Its address space is already insufficient for the access of massive devices. The address exhaustion problem seriously restricts the further expansion of the network and the interconnection needs of devices. In this context, IPv6 came into being. It has an address space of up to 2 to the 128th power and can assign an independent address to almost every device on the earth, making the Internet of Everything a possible vision.

[0004] However, the large-scale application of IPv6 has also brought a series of new challenges. On the one hand, its lengthy address format makes it very inconvenient for users to remember and use it, and it is difficult for people to directly use and manage these complex addresses. On the other hand, in many practical application scenarios, such as home broadband networks and mobile wireless networks (4G / 5G), the IPv6 addresses obtained by devices are often dynamically allocated. Every time the device is powered on or switches the network environment, its IPv6 address may change. This makes it difficult to accurately find the target device when communicating between devices, and the stability and reliability of the communication connection are seriously affected.

[0005] In addition, although some existing technical means such as the Dynamic Domain Name System (DDNS) have tried to solve the problem of dynamic IP addresses to a certain extent, for the massive number of devices on the Internet, it is necessary to register domain names with domain name service providers in advance, which is cumbersome and impractical. Moreover, the main function of DDNS is limited to the mapping of domain names and IP addresses, and it cannot provide other key information of the device. It lacks sufficient support for device management and system operation and maintenance, and it is difficult to meet the increasingly complex device networking needs.

[0006] Therefore, there is an urgent need in the art for a device networking method and system based on the IPv6 protocol to solve the above problems. Summary of the invention

[0007] The present invention provides a device networking method and system based on the IPv6 protocol, aiming to overcome the above-mentioned deficiencies in the prior art and provide an efficient, convenient and comprehensive device networking method and system based on the IPv6 protocol.

[0008] In one aspect, the present invention provides a device networking method based on the IPv6 protocol, comprising:

[0009] Step 1, device registration step; the device reads the sequence number in its own unique identifier, combines the sequence number with the bytes generated by the random number generator to generate a network card identifier, and then generates a device local link address; the device sends a multicast neighbor request, if the address is not unique, repeats the operation until the address is unique, then queries the router IPv6 network address prefix, combines it with the network card identifier to form the device's IPv6 address and registers the device identifier information with the system, then prepares to receive the user data server IPv6 address sent by the system server to set the communication object, and completes the device registration;

[0010] Step 2: Device IPv6 network address change monitoring step: the device listens to the routing announcement information of the ICMP6 protocol, and when it finds that the router network prefix has changed, it uses the new network prefix and the device's network card identifier to regenerate the device's IPv6 address and completes the IPv6 address re-registration;

[0011] Step three, system function step; the system receives the registration information of the device and registers the relevant information of the device, remotely sets the relevant parameters of the device, and performs user management and device management, where the device management includes remote online software upgrade, device statistics, operation mode management, group management, communication status management and information query.

[0012] According to a device networking method based on the IPv6 protocol provided by the present invention, in the device registration step, the device reads the sequence number in its own unique identifier in the following manner:

[0013] The device extracts a 4-byte device sequence number from its 24-byte unique identifier that includes the device type, operating mode, system software version number, device sequence number, system software length, system software checksum, user software length, and user software checksum.

[0014] According to a device networking method based on the IPv6 protocol provided by the present invention, in the device registration step, the operation of generating a network card identifier includes:

[0015] The extracted 4-byte device sequence number is combined with the 4 bytes generated by the random number generator to form a 64-bit network card identifier, which in turn generates the device local link address.

[0016] According to a device networking method based on the IPv6 protocol provided by the present invention, in the device registration step, after the device sends a multicast neighbor request, if a neighbor announcement is received, it is determined that the address is not unique, and the following operations are repeated until the local link address is unique:

[0017] The device sequence number is re-read and combined with the 4 bytes generated by the random number generator to generate a new network card identifier and local link address, and then the multicast neighbor request is sent again.

[0018] According to a device networking method based on the IPv6 protocol provided by the present invention, in the device registration step, after querying the router IPv6 network address prefix, if the network prefix is ​​less than 64 bits, 0 is added to its lower bits to form a 64-bit network prefix address, and then combined with the device's 64-bit network card identifier to form the device's IPv6 address.

[0019] According to a device networking method based on IPv6 protocol provided by the present invention, in the system function steps, user management includes recording user number, name, contact person, telephone number, address, device number and user data server number information; device statistics in device management include counting device type and quantity, device operation mode management is used to manage different operation states of devices, group management is used to classify and group devices, communication status management is used to monitor the connection and transmission status of device communication, and information query is used to query various related information of the device.

[0020] On the other hand, the present invention provides a device networking system based on IPv6 protocol, including: a device module, a system server module, a user data server module, and a software module;

[0021] The device module is in communication connection with the system server module, the user data server module and the software module, maps the sequence number to a dynamic IPv6 address through a device registration step based on the unique identifier of the device and registers it with the system server module, receives software module instructions, and communicates with the corresponding user data server module to realize data transmission and interaction;

[0022] The system server module has a fixed IPv6 address, which is used to receive device module registration information, including device identifier and IPv6 address, and register device related information; it sends management instructions to the device through the software module to realize user management, device management and device data storage functions, and plays a bridging role in the communication between the device module and the user data server module;

[0023] The user data server module is used to store the user's subordinate device data, without a fixed IPv6 address. Based on its unique identifier, the sequence number is mapped to a dynamic IPv6 address through the device registration step and registered to the system server module, receiving software module instructions, communicating with the subordinate device module, and realizing data transmission and interaction; at the same time, it performs the device IPv6 network address change monitoring function. If there is a change, it will be registered again in time to ensure that it can still communicate normally with its subordinate devices when its IPv6 address changes dynamically;

[0024] The software module runs on the system server and includes a functional unit for receiving device identifiers and IPv6 address registration to realize the reception and processing of device registration information; it has the function of issuing system management instructions, and also has user management, device management, and device data storage functions to ensure the normal operation of the entire system and effective communication between devices.

[0025] According to an IPv6 protocol-based device networking system provided by the present invention, the device module includes:

[0026] The identifier reading unit is used to read the sequence number in the unique identifier of the device itself. The unique identifier is 24 bytes, including 1 byte of device type, 1 byte of operation mode, 2 bytes of system software version number, 4 bytes of device sequence number, 4 bytes of system software length, 4 bytes of system software checksum, 4 bytes of user software length, and 4 bytes of user software checksum. This unit extracts the 4-byte device sequence number from the identifier;

[0027] a network card identifier generating unit connected to the identifier reading unit, receiving the extracted 4-byte sequence number of the device, combining the sequence number with the 4 bytes generated by the random number generator to form a 64-bit network card identifier, and then generating a device local link address;

[0028] An address detection and registration unit is connected to the network card identifier generation unit and is responsible for sending a multicast neighbor request. If a neighbor announcement is received, it is determined that the address is not unique, and the identifier reading unit and the network card identifier generation unit are triggered to regenerate the address until the local link address is unique. Then, the router IPv6 network address prefix is ​​queried. If it is less than 64 bits, 0 is added to the lower bits to form a 64-bit network prefix address, and then the 64-bit network card identifier of the device is combined to form the IPv6 address of the device, and the device identifier information is registered with the system server to complete the device registration process. At the same time, the user data server IPv6 address sent by the system server is prepared to be received and the communication object is set;

[0029] The communication unit is connected with the address detection and registration unit, and communicates with the user data server according to the communication object set during registration to realize data transmission, and at the same time receives software module instructions and executes corresponding operations.

[0030] According to a device networking system based on IPv6 protocol provided by the present invention, the system server module includes:

[0031] A registration information receiving unit, connected to the device module, and configured to receive registration information sent by the device module;

[0032] An information registration unit, which is connected to the registration information receiving unit and is responsible for registering the type, mode, system version, sequence number and IPv6 address information of the device, and providing data support for device management and query;

[0033] An instruction issuing unit, which is connected to the software module and receives an instruction from the software module, i.e., an instruction for setting an IPv6 address of a user data server to which the device belongs;

[0034] The user management unit is responsible for managing user-related information, including recording user ID, name, contact person, phone number, address, device ID, and user data server ID information, which is used to achieve the association management between users and devices;

[0035] The device management unit is connected to the software module to implement the device management function, including a device software remote online upgrade function subunit for updating the device software program; a device statistics function subunit for counting the type and quantity of devices; a device operation mode management function subunit for managing the different operation states of the device; a group management function subunit for classifying and grouping the devices; a communication status management function subunit for monitoring the connection and transmission status of the device communication; and an information query function subunit for querying various types of relevant information of the device.

[0036] According to a device networking system based on IPv6 protocol provided by the present invention, the user data server module includes:

[0037] The data storage unit is used to store the data of the user's devices and provide storage and management space for the device data;

[0038] Registration unit 2, which is used to complete the registration process of the user data server;

[0039] The address monitoring unit is used to continuously monitor the IPv6 network address changes of the device. When the router network prefix changes, it notifies the device to regenerate the IPv6 address and complete the registration, ensuring that the communication between the device and the user data server is not affected by the address change;

[0040] Identifier reading unit 2, which is used to read the sequence number in the unique identifier of the user data server itself; then the user data server automatically generates a network card identifier;

[0041] The communication interface unit is used to realize data communication with the device module and the system server module, receive data sent by the device module and transmit it to the data storage unit, and receive relevant instructions and information at the same time.

[0042] Compared with the prior art, the beneficial effects of this application are:

[0043] 1. Simplify address management: This application realizes the mapping of device serial numbers to dynamic IPv6 addresses. Users only need to remember simple device serial numbers and do not need to directly handle complex and lengthy IPv6 addresses, which greatly reduces the difficulty of address management and improves device management efficiency.

[0044] Compared with traditional methods, users do not need to worry about the IPv6 address that changes dynamically every time the device is powered on. The device automatically completes registration and address update monitoring, making dynamic addresses relatively statically managed at the system level, making it convenient for users to communicate with the device at any time.

[0045] 2. Reduce the threshold and cost of use: No need to use expensive IPv6 dedicated lines, devices can be connected to the Internet using common and low-cost network access methods such as home broadband and wireless, which reduces users' network communication costs, enables more devices to access the IPv6 network, and promotes the popularization and application of IPv6 technology;

[0046] The system automatically handles complex processes such as device registration and address management, reducing the need for manual configuration and intervention by users and lowering the requirements for user expertise, so that ordinary users can easily connect and manage devices.

[0047] 3. Enhanced device management function; the device identifier contains rich information, such as device type, operation mode, system software version number, etc. It not only realizes the mapping of serial number to IP address, but also provides the system with more device-related information, which helps to manage, monitor and maintain the device more accurately;

[0048] The system server can comprehensively manage device information, including remote setting of device parameters, remote online upgrade of device software, device statistics, operation mode management, group management, communication status management and information query, making device management more convenient, efficient and intelligent.

[0049] 4. Efficient dynamic address processing: The device has the function of monitoring IPv6 network address changes, which can track changes in the network environment in real time, regenerate and register new IPv6 addresses in a timely manner, ensure that the device always maintains smooth communication in a dynamic network environment, and effectively solve the problem of communication interruption caused by dynamic address changes;

[0050] Compared with the existing dynamic domain name system (DDNS), this application automatically registers the device without the need to register the domain name in advance, avoiding the cumbersome registration process. It is more suitable for the networking management scenarios of massive devices and improves the scalability and practicality of the system.

[0051] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.

[0052] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0054] Figure 1 It is a flow chart of a device networking method based on the IPv6 protocol provided by an embodiment of the present invention;

[0055] Figure 2 It is a structural diagram of a device networking system based on the IPv6 protocol provided by an embodiment of the present invention;

[0056] Figure 3 It is a structural diagram of embodiment 3 of the present invention.

[0057] exist Figure 3 Among them, 1. Home broadband router; 2. Dedicated line router; 3. Car equipped with wireless data collector (4G / 5G); 4. PLC; 5. Intelligent gateway; 6. System server; 7. One of home broadband, wireless, and dedicated line; 81. User data server 1; 82. User data server 2; 9. Wireless network; 10. Dedicated line network; 11. Home broadband; 12. Pressure sensor; 13. Temperature sensor; 14. Industrial robot; 15. Coal mining machine. DETAILED DESCRIPTION

[0058] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention. Embodiment 1:

[0059] The present invention provides a method for connecting a device to a network based on the IPv6 protocol. Figure 1 ,include:

[0060] Step 1, device registration step; the device reads the sequence number in its own unique identifier, combines the sequence number with the bytes generated by the random number generator to generate a network card identifier, and then generates a device local link address; the device sends a multicast neighbor request, if the address is not unique, repeats the operation until the address is unique, then queries the router IPv6 network address prefix, combines it with the network card identifier to form the device's IPv6 address and registers the device identifier information with the system, then prepares to receive the user data server IPv6 address sent by the system server to set the communication object, and completes the device registration;

[0061] Step 2: Device IPv6 network address change monitoring step: the device listens to the routing announcement information of the ICMP6 protocol, and when it finds that the router network prefix has changed, it uses the new network prefix and the device's network card identifier to regenerate the device's IPv6 address and completes the IPv6 address re-registration;

[0062] Step three, system function step; the system receives the registration information of the device and registers the relevant information of the device, remotely sets the relevant parameters of the device, and performs user management and device management, where the device management includes remote online software upgrade, device statistics, operation mode management, group management, communication status management and information query.

[0063] Preferably, in the device registration step, the device reads the sequence number in its own unique identifier in a manner that includes:

[0064] The device extracts a 4-byte device sequence number from its 24-byte unique identifier that includes the device type, operating mode, system software version number, device sequence number, system software length, system software checksum, user software length, and user software checksum.

[0065] Preferably, in the device registration step, the operation of generating a network card identifier includes:

[0066] The extracted 4-byte device sequence number is combined with the 4 bytes generated by the random number generator to form a 64-bit network card identifier, which in turn generates the device local link address.

[0067] Preferably, in the device registration step, after the device sends a multicast neighbor request, if a neighbor advertisement is received, it is determined that the address is not unique, and the following operations are repeated until the local link address is unique:

[0068] The device sequence number is re-read and combined with the 4 bytes generated by the random number generator to generate a new network card identifier and local link address, and then the multicast neighbor request is sent again.

[0069] Preferably, in the device registration step, after querying the router IPv6 network address prefix, if the network prefix is ​​less than 64 bits, 0 is added to its lower bits to form a 64-bit network prefix address, which is then combined with the device's 64-bit network card identifier to form the device's IPv6 address.

[0070] Preferably, in the system function steps, user management includes recording user number, name, contact person, telephone number, address, device number and user data server number information; device statistics in device management include statistics on device type and quantity, device operation mode management is used to manage different operating states of devices, group management is used to classify and group devices, communication status management is used to monitor the connection and transmission status of device communications, and information query is used to query various types of relevant information of the device.

[0071] It should be noted that, for the device registration step; the device extracts the sequence number from its own unique identifier and combines it with the bytes generated by the random number generator to generate the network card identifier, and then generates the local link address, which ensures the uniqueness of the initial positioning and identification of the device in the initial network environment; for example, in a complex network environment containing many devices, each device can obtain a unique local link address based on this, avoiding address conflicts;

[0072] The device sends a multicast neighbor request and repeats the process according to the feedback until the address is unique, which further ensures the uniqueness of the device address in the local network; this is like in a community, each family has a unique house number, which ensures the accurate identification of the device in the network and the accuracy of communication;

[0073] The final IPv6 address is generated by combining it with the router IPv6 network address prefix and registered with the system, so that the device can obtain a legal and unique address in the entire IPv6 network, complete the formal registration of the device in the network, and lay the foundation for subsequent communications.

[0074] Regarding the device IPv6 network address change monitoring step; the device can listen to the routing announcement information of the ICMP6 protocol and promptly discover the changes in the router network prefix, which allows the device to quickly adapt to the dynamic changes in the network environment; for example, when the device switches from one wireless network to another, or when the home broadband router reallocates the network prefix, the device can respond quickly;

[0075] Regenerating the IPv6 address and re-registering it with a new network prefix and network card identifier ensures the communication continuity of the device after changes in the network environment. Even if the address changes, other devices or servers can still find the device through the new address, achieving seamless communication and avoiding communication interruptions caused by address changes.

[0076] As for the system function steps; the system receives device registration information and registers relevant information, realizing comprehensive management and monitoring of devices; the system can clearly know the type, version, operating status and other information of each device in the network, just like a device management center, knowing all access devices well;

[0077] The remote device parameter setting function facilitates the remote management and configuration of devices by administrators. Device settings can be adjusted without going to the device site, which improves management efficiency. For example, administrators can remotely update the device's software parameters or adjust the device's operating mode.

[0078] The user management function records user-related information and the relationship between devices and users, thus achieving effective management of user resources and device ownership, ensuring data security and privacy, and preventing unauthorized access and operation.

[0079] The various functions in device management, such as remote online software upgrade, device statistics, operation mode management, group management, communication status management and information query, make the operation and maintenance of equipment more intelligent and convenient; administrators can timely understand the operation status of equipment, classify and manage equipment, improve the overall performance and reliability of equipment, and reduce maintenance costs; for example, through device statistics, you can quickly understand the number and distribution of different types of equipment, which is convenient for resource planning; communication status management can timely discover and solve communication failures. Embodiment 2:

[0080] The embodiment of the present invention provides a device networking system based on IPv6 protocol, please refer to Figure 2 , including: equipment module, system server module, user data server module, software module;

[0081] The device module is connected to the system server module, the user data server module and the software module, maps the sequence number to a dynamic IPv6 address based on the unique identifier of the device through the device registration step and registers it to the system server module, receives software module instructions, and communicates with the user data server module to achieve data transmission and interaction;

[0082] The system server module has a fixed IPv6 address, which is used to receive device module registration information, including device identifier and IPv6 address, and register device related information; it sends management instructions to the device through the software module to realize user management, device management and device data storage functions, and acts as a bridge in the communication between the device module and the user data server module;

[0083] The user data server module is used to store the user's subordinate device data. It does not require a fixed IPv6 address. Based on its unique identifier, the serial number is mapped to a dynamic IPv6 address through the device registration step and registered to the system server module. It receives software module instructions and communicates with the subordinate device module to achieve data transmission and interaction. At the same time, it performs the device IPv6 network address change monitoring function. If there is a change, it will be registered again in time to ensure that it can still communicate normally with its subordinate devices when its IPv6 address changes dynamically;

[0084] The software module runs on the system server and includes a functional unit for receiving device identifiers and IPv6 address registration to realize the reception and processing of device registration information. It has the function of issuing system management instructions, as well as user management, device management, and device data storage functions to ensure the normal operation of the entire system and effective communication between devices.

[0085] Preferably, the equipment module comprises:

[0086] The identifier reading unit is used to read the sequence number in the unique identifier of the device itself. The unique identifier is 24 bytes, including 1 byte of device type, 1 byte of operation mode, 2 bytes of system software version number, 4 bytes of device sequence number, 4 bytes of system software length, 4 bytes of system software checksum, 4 bytes of user software length, and 4 bytes of user software checksum. This unit extracts the 4-byte device sequence number from the identifier;

[0087] a network card identifier generating unit connected to the identifier reading unit, receiving the extracted 4-byte sequence number of the device, combining the sequence number with the 4 bytes generated by the random number generator to form a 64-bit network card identifier, and then generating a device local link address;

[0088] The address detection and registration unit is connected to the network card identifier generation unit and is responsible for sending multicast neighbor requests. If a neighbor announcement is received, it is determined that the address is not unique, and the identifier reading unit and the network card identifier generation unit are triggered to regenerate the address until the local link address is unique. Then the router IPv6 network address prefix is ​​queried. If it is less than 64 bits, 0 is added to the lower bits to form a 64-bit network prefix address, which is then combined with the device's 64-bit network card identifier to form the device's IPv6 address, and the device identifier information is registered with the system server to complete the device registration process. At the same time, it is prepared to receive the user data server IPv6 address sent by the system server and set the communication object;

[0089] The communication unit is connected with the address detection and registration unit, and communicates with the user data server according to the communication object set during registration to realize data transmission, and at the same time receives software module instructions and executes corresponding operations.

[0090] Preferably, the system server module includes:

[0091] A registration information receiving unit, connected to the device module, and configured to receive registration information sent by the device module;

[0092] The information registration unit is connected to the registration information receiving unit and is responsible for registering the type, mode, system version, sequence number and IPv6 address information of the device, providing data support for device management and query;

[0093] An instruction issuing unit, which is connected to the software module and receives instructions from the software module, i.e., instructions for setting the IPv6 address of the user data server to which the device belongs;

[0094] The user management unit is responsible for managing user-related information, including recording user ID, name, contact person, phone number, address, device ID, and user data server ID information, which is used to achieve the association management between users and devices;

[0095] The device management unit is connected to the software module to implement the device management function, including the device software remote online upgrade function subunit, which is used to update the device software program; the device statistics function subunit, which counts the type and quantity of devices; the device operation mode management function subunit, which is used to manage the different operation states of the device; the group management function subunit, which is used to classify and group the devices; the communication status management function subunit, which is used to monitor the connection and transmission status of the device communication; the information query function subunit, which is used to query various types of relevant information of the device.

[0096] Preferably, the user data server module includes:

[0097] The data storage unit is used to store the data of the user's devices and provide storage and management space for the device data;

[0098] Registration unit 2, which is used to complete the registration process of the user data server;

[0099] The address monitoring unit is used to continuously monitor the IPv6 network address changes of the device. When the router network prefix changes, it notifies the device to regenerate the IPv6 address and complete the registration, ensuring that the communication between the device and the user data server is not affected by the address change;

[0100] Identifier reading unit 2, which is used to read the sequence number in the unique identifier of the user data server itself; then the user data server automatically generates a network card identifier;

[0101] The communication interface unit is used to realize data communication with the device module and the system server module, receive data sent by the device module and transmit it to the data storage unit, and receive relevant instructions and information at the same time.

[0102] It should be noted that the communication connection between the device module, system server module, user data server module and software module builds a complete and efficient device networking system. The device module is the source of data generation, and the user data server module is the terminal of data storage. They establish a connection with the system server module through the registration mechanism, realizing the identification and management of devices in the network, and the accurate transmission of their data on the Internet;

[0103] With its fixed IPv6 address, the system server module becomes the core hub of the entire system, effectively coordinating the communication between the device module and the user data server module. It not only receives and manages device registration information, but also issues management instructions through the software module, ensuring the orderly operation of the system and effective collaboration between devices. The user data server module focuses on storing device data and ensures the stability of data communication through the address monitoring function. Even if the device IPv6 address changes dynamically, it can continue to receive the data sent by the device, realizing reliable storage and management of data.

[0104] The software module runs on the system server and serves as the "brain" of the system, coordinating key functions such as device registration, user management, equipment management and data storage, so that the entire system has intelligent and automated management capabilities. Embodiment 3:

[0105] Based on Example 1-2, a specific implementation method of device networking based on the IPv6 protocol is provided. Figure 3 , this embodiment includes the following topics:

[0106] 1. Device Identifier

[0107] Each device has a unique device identifier. In this embodiment, the device identifier is 24 bytes in total, including the following information: device type (1 byte), operation mode (1 byte), system software version number (2 bytes), device sequence number (4 bytes), system software length (4 bytes), system software checksum (4 bytes), user software length (4 bytes), user software checksum (4 bytes); the device sequence number is unique and non-repetitive, and is a component of the generated device IPv6 address. The device registration information is the device identifier.

[0108] 2. System Server

[0109] The system server has a fixed IPv6 address, which is the medium for direct communication between two devices with dynamic IPv6 addresses; the system receives registration information from the device and the user data server, and completes the registration of device information, such as the type, mode, system version, sequence number, IPv6 address, etc. of the device; after the device completes registration, the system server sends the IPv6 address of the user data server to the device, so that the device and its user data server can achieve end-to-end direct communication; remotely set relevant parameters of the device, such as the IPv6 address of the user data server, etc.; user management, including user number, name, contact person, phone number, address, device number, user data server number and other information; device management, the device uses the transmission protocol agreed with the system to perform remote online upgrades of the device software; device statistics, including device type, quantity, statistics; device operation mode; device grouping; device communication status management; device information query, etc.

[0110] In this embodiment, three data tables are established in the system software:

[0111] User table (user_tab) (Table 1)

[0112]

[0113] In this embodiment, two users are created, namely Username 1 and Username 2;

[0114] Device Table (device_tab) (Table 2)

[0115]

[0116] In this embodiment, five devices are built: PLC, sequence number 1; intelligent gateway, sequence number 2; wireless data collector, sequence number 3; user data server 1 81, sequence number 4; user data server 2 82, sequence number 5;

[0117] User-device association table (user_device) (Table 3)

[0118]

[0119] In this embodiment, a user-device association table is constructed, as shown in Table 3. User 1 owns PLC 4, smart gateway 5, and user data server 1 81; user 2 owns car 3 with wireless (4G / 5G) data collection equipment and user data server 2 82.

[0120] 3. User Data Server

[0121] like Figure 3As shown, user data server 1 81 and user data server 2 82 are connected to the Internet through one of home broadband, wireless, and dedicated lines. User data server 1 81 is registered on the system server according to the device registration steps. The system software obtains the type of the device as user server and the sequence number as 4 through the registration information, and searches the user-device association table (Table 3) to find that the device belongs to user 1. Because the type of the device is user server, the IPv6 address of the registration message is finally written into the IPv6_addr field of the user number 1 in the user table (Table 1); user data server 2 82 is registered on the system server according to the device registration steps. After registration, the system software obtains the type of the device as user server and sequence number 5 through the registration information, and searches the user-device association table (Table 3) to find that the device belongs to user 5. Because the type of the device is user server, the IPv6 address of the registration message is finally written into the IPv6_addrs field of the user number 2 in the user table (Table 1); while the user data server 1 81 and the user data server 2 82 receive the device data normally, they also perform the device IPv6 network address change monitoring function. If there is any change, they will register again in time to ensure that they can still communicate normally with their subordinate devices when their IPv6 addresses change dynamically.

[0122] 4. PLC equipment

[0123] like Figure 3 As shown, PLC4 is connected to the home broadband router 1 through a network cable. After the PLC4 device is powered on, it is registered on the system server according to the device registration steps. The system software obtains the device's sequence number 1 through the registration information, and searches the user-device association table (Table 3) to find that the device belongs to user 1. Then, in the user table (Table 1), the user data server IPv6 address is found. Finally, the IPv6 address of the user data server 81 is sent to PLC4 through the system setting command, and the IPv6 address of PLC4 is also sent to the user data server 81. Subsequently, the PLC4 device will communicate with the user data server 81, realizing direct communication between devices with two dynamic IPv6s. Because the network prefix obtained each time the home broadband router is powered on may be different, the IPv6 address obtained by the device is dynamic. Figure 3 As shown, PLC4 collects real-time data from pressure sensor 12, temperature sensor 13, industrial robot 14, etc., and then transmits the corresponding real-time data to user data server 81; while PLC4 carries out normal data collection and control, it also executes the device IPv6 network address change monitoring function. If there is any change, it will be registered again in time to ensure that after the IPv6 address changes, the normal communication between PLC4 and user data server 81 is not affected.

[0124] 5. Intelligent Gateway Device

[0125] like Figure 3 As shown, the intelligent gateway 5 is connected to the dedicated router 2 through a network cable. After the intelligent gateway 5 is powered on, it is registered on the system server according to the device registration steps. The system software obtains the serial number 2 of the device through the registration information, and searches the user-device association table (Table 3) to find that the device belongs to user 1. Then, in the user table (Table 1), the IPv6 address of the user data server 81 is found. Finally, the IPv6 address of the user data server 81 is sent to the intelligent gateway 5 through the system setting command, and the IPv6 address of the intelligent gateway 5 is also sent to the user data server 81. In this way, the serial number of the intelligent gateway and its IPv6 mapping are established. After the identifier registration is completed, the IPv6 address of the user data server 81 sent by the system server is obtained. Then the device will communicate with the user server 1 to realize direct communication between devices with two dynamic IPv6s; the intelligent gateway 5 and the coal mining machine 15 perform data communication interaction according to their communication protocol, and then the intelligent gateway 5 transmits the real-time data of the coal mining machine 15 to the user data server 81. While the intelligent gateway 5 performs data collection and protocol conversion normally, it also performs the device IPv6 network address change monitoring function. If there is any change, it will be registered again in time to ensure that after the IPv6 address changes, the normal communication between the intelligent gateway 5 and the user data server 81 is not affected.

[0126] 6. Cars with wireless (4G / 5G) data collection equipment

[0127] like Figure 3As shown, car 3 is equipped with a wireless data collector (4G / 5G). The device is registered on the system server through the wireless 4G / 5G card according to the device registration steps. The system software obtains the sequence number 3 of the wireless data collector (4G / 5G) through the registration information, and searches the user_device association table (Table 3) to find that the device belongs to user 2. Then, in the user table (Table 1), the IPv6 address of user data server 2 82 is found. Finally, the IPv6 address of user data server 2 82 is sent to the wireless (4G / 5G) data collector through the system setting command, and the IPv6 address of the wireless (4G / 5G) data collector is also sent to user data server 2 82. Subsequently, the device will communicate normally with user server 2, realizing direct communication between devices with two dynamic IPv6s. The network prefix obtained by the wireless 4G / 5G card is different because of different communication base stations, so the IPv6 address obtained by the device is dynamic. The data collected by the wireless data collector (4G / 5G) include: environmental parameters, vehicle parameters, GPS and other information. The vehicle continuously sends the collected real-time data to the user data server 282 according to the driving route. While the wireless data collector (4G / 5G) collects data normally, it also performs the device IPv6 network address change monitoring function. If there is a change, it will be registered again in time to ensure that after the IPv6 address changes, the normal communication between the wireless data collector (4G / 5G) and the user data server 282 is not affected.

[0128] This embodiment elaborates on the workflow and functional implementation of device identifiers, system servers, user data servers, and various specific devices in device networking based on the IPv6 protocol, demonstrates the specific operation and advantages of the method and system in practical applications, realizes efficient registration, dynamic address management, stable communication, and intelligent management of devices, and provides a reliable solution for the interconnection and data interaction of different types of devices in IPv6 networks.

[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A device networking method based on IPv6 protocol, characterized in that: include: Step 1, device registration step; the device reads the sequence number in its own unique identifier. Each device has a unique device identifier. The device identifier is 24 bytes in total and contains the following information: 1 byte for device type, 1 byte for operation mode, 2 bytes for system software version number, 4 bytes for device sequence number, 4 bytes for system software length, 4 bytes for system software checksum, 4 bytes for user software length, and 4 bytes for user software checksum; the device sequence number is unique and non-repetitive, and is a component of the generated device IPv6 address; the device registration information is the device identifier; the sequence number is combined with the bytes generated by the random number generator to generate a network card identifier, and then generate a device local link address; The device sends a multicast neighbor request. If the address is not unique, the operation is repeated until the address is unique. Then the router IPv6 network address prefix is ​​queried, and the IPv6 address of the device is formed with the network card identifier. The device identifier information is registered with the system. Then, the user data server IPv6 address sent by the system server is prepared to be received to set the communication object and complete the device registration. Step 2: Device IPv6 network address change monitoring step: the device listens to the routing announcement information of the ICMP6 protocol, and when it finds that the router network prefix has changed, it uses the new network prefix and the device's network card identifier to regenerate the device's IPv6 address and completes the IPv6 address re-registration; Step three, system function step; the system receives the registration information of the device and registers the relevant information of the device, remotely sets the relevant parameters of the device, and performs user management and device management, where the device management includes remote online software upgrade, device statistics, operation mode management, group management, communication status management and information query.

2. The device networking method based on IPv6 protocol according to claim 1, characterized in that: In the device registration step, the operation of generating a network card identifier includes: The extracted 4-byte device sequence number is combined with the 4 bytes generated by the random number generator to form a 64-bit network card identifier, which in turn generates the device local link address.

3. The device networking method based on IPv6 protocol according to claim 1, characterized in that: In the device registration step, after the device sends a multicast neighbor request, if a neighbor advertisement is received, it is determined that the address is not unique, and the following operations are repeated until the local link address is unique: The device sequence number is re-read and combined with the 4 bytes generated by the random number generator to generate a new network card identifier and local link address, and then the multicast neighbor request is sent again.

4. The device networking method based on IPv6 protocol according to claim 1, characterized in that: In the device registration step, after querying the router IPv6 network address prefix, if the network prefix is ​​less than 64 bits, 0 is added to its lower bits to form a 64-bit network prefix address, which is then combined with the device's 64-bit network card identifier to form the device's IPv6 address.

5. The device networking method based on IPv6 protocol according to claim 1, characterized in that: In the system function steps, user management includes recording user number, name, contact person, telephone number, address, device number and user data server number information; device statistics in device management include statistics on device type and quantity, device operation mode management is used to manage different operating states of devices, group management is used to classify and group devices, communication status management is used to monitor the connection and transmission status of device communication, and information query is used to query various related information of the device.

6. A device networking system based on IPv6 protocol, based on the device networking method according to claims 1-5, characterized in that: include: Equipment module, system server module, user data server module, software module; The device module is in communication with the system server module, the user data server module and the software module, registers the dynamic IPv6 address obtained in the device registration step based on the device networking method in claim 1 to the system server module, receives software module instructions, and communicates with the user data server module to achieve data transmission and interaction; The system server module has a fixed IPv6 address and is used to receive device module registration information, including a device identifier and an IPv6 address, and register device related information; Send management instructions to the device through the software module to realize user management, device management and device data storage functions, and play a bridging role in the communication between the device module and the user data server module; The user data server module is used to store the user's subordinate device data, without a fixed IPv6 address. Based on its unique identifier, the sequence number is mapped to a dynamic IPv6 address through the device registration step and registered to the system server module, receiving software module instructions, communicating with the subordinate device module, and realizing data transmission and interaction; at the same time, it performs the device IPv6 network address change monitoring function. If there is a change, it will be registered again in time to ensure that it can still communicate normally with its subordinate devices when its IPv6 address changes dynamically; The software module runs on the system server module and includes a functional unit for receiving a unique device identifier and an IPv6 address registration to realize the reception and processing of device registration information; it has the function of issuing system management instructions, and also has user management, device management, and device data storage functions to ensure the normal operation of the entire system and effective communication between devices.

7. The device networking system based on IPv6 protocol according to claim 6, characterized in that: The equipment module comprises: The identifier reading unit is used to read the sequence number in the unique identifier of the device itself. The unique identifier is 24 bytes, including 1 byte of device type, 1 byte of operation mode, 2 bytes of system software version number, 4 bytes of device sequence number, 4 bytes of system software length, 4 bytes of system software checksum, 4 bytes of user software length, and 4 bytes of user software checksum. This unit extracts the 4-byte device sequence number from the identifier; a network card identifier generating unit connected to the identifier reading unit, receiving the extracted 4-byte sequence number of the device, combining the sequence number with the 4 bytes generated by the random number generator to form a 64-bit network card identifier, and then generating a device local link address; An address detection and registration unit is connected to the network card identifier generation unit and is responsible for sending a multicast neighbor request. If a neighbor announcement is received, it is determined that the address is not unique, and the identifier reading unit and the network card identifier generation unit are triggered to regenerate the address until the local link address is unique. Then, the router IPv6 network address prefix is ​​queried. If it is less than 64 bits, 0 is added to the lower bits to form a 64-bit network prefix address, and then the 64-bit network card identifier of the device is combined to form the IPv6 address of the device, and the device identifier information is registered with the system server to complete the device registration process. At the same time, the user data server IPv6 address sent by the system server is prepared to be received and the communication object is set; The communication unit is connected with the address detection and registration unit, and communicates with the user data server according to the communication object set during registration to realize data transmission, and at the same time receives software module instructions and executes corresponding operations.

8. The device networking system based on IPv6 protocol according to claim 6, characterized in that: The system server module comprises: A registration information receiving unit, connected to the device module, and configured to receive registration information sent by the device module; An information registration unit, which is connected to the registration information receiving unit and is responsible for registering the type, mode, system version, sequence number and IPv6 address information of the device, and providing data support for device management and query; An instruction issuing unit, which is connected to the software module and receives an instruction from the software module, i.e., an instruction for setting an IPv6 address of a user data server to which the device belongs; The user management unit is responsible for managing user-related information, including recording user ID, name, contact person, phone number, address, device ID, and user data server ID information, which is used to achieve the association management between users and devices; The device management unit is connected to the software module to implement the device management function, including a device software remote online upgrade function subunit for updating the device software program; a device statistics function subunit for counting the type and quantity of devices; a device operation mode management function subunit for managing the different operation states of the device; a group management function subunit for classifying and grouping the devices; a communication status management function subunit for monitoring the connection and transmission status of the device communication; and an information query function subunit for querying various types of relevant information of the device.

9. The device networking system based on IPv6 protocol according to claim 6, characterized in that: The user data server module comprises: The data storage unit is used to store the data of the user's devices and provide storage and management space for the device data; Registration unit 2, which is used to complete the registration process of the user data server; The address monitoring unit is used to continuously monitor the IPv6 network address changes of the device. When the router network prefix changes, it notifies the device to regenerate the IPv6 address and complete the registration, ensuring that the communication between the device and the user data server is not affected by the address change; Identifier reading unit 2, which is used to read the sequence number in the unique identifier of the user data server itself; then the user data server automatically generates a network card identifier; The communication interface unit is used to realize data communication with the device module and the system server module, receive data sent by the device module and transmit it to the data storage unit, and receive relevant instructions and information at the same time.

Citation Information

Patent Citations

  • Sensor node IPv6 address allocation method based on credible identity

    CN109688243A

  • Method and device for obtaining local service and generating link local address

    CN110601984A