Disclosure of Invention
The invention provides a device networking method and system based on an IPv6 protocol, which aims to overcome the defects in the prior art and provide a device networking method and system based on the IPv6 protocol, which are efficient, convenient and comprehensive in function.
In one aspect, the present invention provides a device networking method based on an IPv6 protocol, including:
The device sends a multicast neighbor request, if the address is not unique, the operation is repeated until the address is unique, then a router IPv6 network address prefix is inquired, the IPv6 address of the device is spliced with the network card identifier and equipment identifier information is registered to a system, and then a user data server IPv6 address sent by a system server is prepared to be received to set a communication object, so that equipment registration is completed;
The equipment monitors the route notice information of ICMP6 protocol, when the network prefix of the router is found to be changed, the IPv6 address of the equipment is regenerated by utilizing the new network prefix and the network card identifier of the equipment, and the re-registration of the IPv6 address is completed;
And step three, a system function step, in which the system receives registration information of the equipment and registers relevant information of the equipment, and remotely sets relevant parameters of the equipment to perform user management and equipment management, wherein the equipment management comprises software remote online upgrading, equipment statistics, operation mode management, grouping management, communication state management and information inquiry.
According to the device networking method based on the IPv6 protocol, in the device registration step, the method for reading the sequence number in the unique identifier of the device comprises the following steps:
The device extracts a 4-byte device sequence number from its 24-byte unique identifier containing the device type, mode of operation, system software version number, device sequence number, system software length, system software checksum, user software length, user software checksum.
According to the device networking method based on the IPv6 protocol provided by the invention, in the device registration step, the operation of generating the network card identifier comprises the following steps:
And combining the extracted 4-byte device sequence number with 4 bytes generated by the random number generator to form a 64-bit network card identifier, so as to generate a device local link address.
According to the device networking method based on the IPv6 protocol, in the device registration step, after the device sends the multicast neighbor request, if the device receives the neighbor advertisement, the device determines that the address is not unique, and the following operations are repeatedly executed until the local link address is unique:
And re-reading the device sequence number, combining the device sequence number with 4 bytes generated by the random number generator again to generate a new network card identifier and a local link address, and then re-sending the multicast neighbor request.
According to the device networking method based on the IPv6 protocol, in the device registering step, after inquiring the IPv6 network address prefix of the router, if the network prefix is less than 64 bits, a 64-bit network prefix address is formed by supplementing 0 at the lower bit of the network prefix, and then the 64-bit network card identifier of the device is spliced into the IPv6 address of the device.
According to the equipment networking method based on the IPv6 protocol, in the system function steps, user management comprises recording of user numbers, names, contacts, telephones, addresses, equipment numbers and user data server number information, equipment statistics in equipment management comprises statistics of equipment types and quantity, equipment operation mode management is used for managing different operation states of equipment, grouping management is used for classifying and grouping the equipment, communication state management is used for monitoring connection and transmission states of equipment communication, and information query is used for querying various relevant information of the equipment.
On the other hand, the invention provides an IPv6 protocol-based equipment networking system, which comprises an equipment module, a system server module, a user data server module and a software module;
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 into a dynamic IPv6 address through a device registration step based on a unique identifier of the device and registers the dynamic IPv6 address to the system server module, receives a software module instruction, and communicates with the user data server module to realize data transmission and interaction;
The system server module is provided with a fixed IPv6 address and is used for receiving equipment module registration information, including equipment identifiers and IPv6 addresses, registering equipment related information, issuing management instructions to equipment through the software module, realizing the functions of user management, equipment management and equipment data storage, and playing a role in bridging the communication between the equipment module and the user data server module;
The user data server module is used for storing the user subordinate device data, does not need to fix an IPv6 address, maps the sequence number into a dynamic IPv6 address through a device registration step based on a unique identifier thereof and registers the dynamic IPv6 address to the system server module, receives a software module instruction, communicates with the subordinate device module to realize data transmission and interaction, and simultaneously executes a device IPv6 network address change monitoring function, if the change exists, the device is registered again in time, and can still normally communicate with the subordinate device when the IPv6 address is dynamically changed;
The software module runs on the system server and comprises a receiving device identifier and an IPv6 address registration function unit for receiving and processing device registration information, has a system management instruction issuing function, and simultaneously has the functions of user management, device management and device data storage, and ensures the normal operation of the whole system and the effective communication among devices.
According to the device networking system based on the IPv6 protocol, the device module comprises:
An identifier reading unit, configured to read a sequence number in a unique identifier of the device itself, where the unique identifier is 24 bytes, and includes a device type 1 byte, an operation mode 1 byte, a system software version number 2 byte, a device sequence number 4 byte, a system software length 4 byte, a system software checksum 4 byte, a user software length 4 byte, and a user software checksum 4 byte, where the unit extracts a device sequence number of 4 bytes from the identifier;
The network card identifier generating unit is connected with the identifier reading unit, receives the extracted 4-byte sequence number of the equipment, combines the sequence number with 4 bytes generated by the random number generator to form a 64-bit network card identifier, and further generates an equipment local link address;
The address detection and registration unit is connected with the network card identifier generation unit and is responsible for sending a multicast neighbor request, judging that the address is not unique if a neighbor advertisement is received, triggering the identifier reading unit and the network card identifier generation unit to regenerate the address until the local link address is unique, inquiring the IPv6 network address prefix of the router, supplementing 0 at a lower position to form a 64-bit network prefix address if the address is less than 64 bits, splicing the address with the 64-bit network card identifier of the device to form the IPv6 address of the device, registering device identifier information with a system server, completing the device registration process, preparing to receive the IPv6 address of a user data server sent by the system server, and setting a communication object;
And the communication unit is connected with the address detection and registration unit, communicates with the user data server according to the communication object set during registration to realize data transmission, receives a software module instruction, and executes corresponding operation.
According to the device networking system based on the IPv6 protocol, the system server module comprises:
A registration information receiving unit connected with the equipment module and used for receiving the registration information sent by the equipment module;
the information registration unit is connected with the registration information receiving unit and is responsible for registering the type, mode, system version, sequence number and IPv6 address information of the equipment and providing data support for equipment management and inquiry;
the instruction issuing unit is connected with the software module and receives an instruction of the software module, namely an instruction for setting the IPv6 address of the user data server to which the equipment belongs;
The user management unit is responsible for managing user related information, including recording user numbers, names, contacts, telephones, addresses, equipment numbers and user data server number information, and is used for realizing the association management of users and equipment;
The device management unit is connected with the software module and realizes a device management function, and comprises a device software remote online upgrading function subunit, a device statistics function subunit, a device operation mode management function subunit, a grouping management function subunit, a communication state management function subunit and an information query function subunit, wherein the device software remote online upgrading function subunit is used for updating software programs of devices, the device statistics function subunit is used for counting types and numbers of the devices, the device operation mode management function subunit is used for managing different operation states of the devices, the grouping management function subunit is used for classifying and grouping the devices, the communication state management function subunit is used for monitoring connection and transmission states of communication of the devices, and the information query function subunit is used for querying various relevant information of the devices.
According to the present invention, there is provided an IPv6 protocol-based device networking system, where the user data server module includes:
The data storage unit is used for storing data of equipment under the control of a user and providing storage and management space for the equipment data;
a second registration unit for completing the registration process of the user data server;
The address monitoring unit is used for continuously monitoring the IPv6 network address change of the equipment, and when the router network prefix change is found, the equipment is informed to regenerate the IPv6 address and complete registration, so that the communication between the equipment and the user data server is not affected by the address change;
the identifier reading unit II is used for reading the sequence number in the unique identifier of the user data server, and then the user data server automatically generates a network card identifier;
And the communication interface unit is used for realizing data communication with the equipment module and the system server module, receiving the data sent by the equipment module, transmitting the data to the data storage unit and receiving related instructions and information.
Compared with the prior art, the application has the beneficial effects that:
1. The application realizes mapping to the dynamic IPv6 address through the device sequence number, and a user only needs to memorize the simple device sequence number without directly processing the complex and lengthy IPv6 address, thereby greatly reducing the difficulty of address management and improving the efficiency of device management;
Compared with the traditional mode, the user does not need to care about the IPv6 address which dynamically changes after the equipment is powered on each time, the equipment automatically completes registration and address updating monitoring, so that the dynamic address realizes relatively static management at the system level, and the user can conveniently communicate with the equipment at any time.
2. The equipment networking can be realized by utilizing common network access modes such as home broadband, wireless and the like and low in cost without using an expensive IPv6 private line, thereby reducing the network communication cost of users, enabling more equipment to access an IPv6 network and promoting the popularization and application of the IPv6 technology;
The system automatically processes complex processes such as equipment registration and address management, reduces the requirements of manual configuration and intervention of users, reduces the requirements on professional knowledge of the users, and can easily realize equipment networking and management by common users.
3. The device identifier contains rich information such as device type, running mode, system software version number and the like, so that mapping from sequence numbers to IP addresses is realized, more device related information is provided for the system, and device management, monitoring and maintenance are more accurately facilitated;
The system server can comprehensively manage equipment information, and comprises functions of remotely setting equipment parameters, realizing equipment software remote online upgrade, equipment statistics, operation mode management, grouping management, communication state management, information inquiry and the like, so that the equipment management is more convenient, efficient and intelligent.
4. The device has the IPv6 network address change monitoring function, can track the network environment change in real time, and timely regenerates and registers a new IPv6 address, ensures that the device always keeps smooth communication in the dynamic network environment, and effectively solves the problem of communication interruption caused by the dynamic address change;
compared with the existing Dynamic Domain Name System (DDNS), the device automatically registers without registering domain names in advance, avoids complicated registration processes, is more suitable for networking management scenes of mass devices, and improves the expandability and practicability of the system.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
Example 1:
an embodiment of the present invention provides a device networking method based on an IPv6 protocol, referring to fig. 1, including:
The device sends a multicast neighbor request, if the address is not unique, the operation is repeated until the address is unique, then a router IPv6 network address prefix is inquired, the IPv6 address of the device is spliced with the network card identifier and equipment identifier information is registered to a system, and then a user data server IPv6 address sent by a system server is prepared to be received to set a communication object, so that equipment registration is completed;
The equipment monitors the route notice information of ICMP6 protocol, when the network prefix of the router is found to be changed, the IPv6 address of the equipment is regenerated by utilizing the new network prefix and the network card identifier of the equipment, and the re-registration of the IPv6 address is completed;
And step three, a system function step, in which the system receives registration information of the equipment and registers relevant information of the equipment, and remotely sets relevant parameters of the equipment to perform user management and equipment management, wherein the equipment management comprises software remote online upgrading, equipment statistics, operation mode management, grouping management, communication state management and information inquiry.
Preferably, in the device registration step, the manner in which the device reads the sequence number in the self-unique identifier includes:
The device extracts a 4-byte device sequence number from its 24-byte unique identifier containing the device type, mode of operation, system software version number, device sequence number, system software length, system software checksum, user software length, user software checksum.
Preferably, in the device registration step, the operation of generating the network card identifier includes:
And combining the extracted 4-byte device sequence number with 4 bytes generated by the random number generator to form a 64-bit network card identifier, so as to generate a device local link address.
Preferably, in the device registration step, after the device sends the multicast neighbor solicitation, if the device receives the neighbor advertisement, it is determined that the address is not unique, and the following operations are repeatedly performed until the local link address is unique:
And re-reading the device sequence number, combining the device sequence number with 4 bytes generated by the random number generator again to generate a new network card identifier and a local link address, and then re-sending the multicast neighbor request.
Preferably, in the device registration step, after querying the router IPv6 network address prefix, if the network prefix is less than 64 bits, a 64-bit network prefix address is formed by supplementing 0 to the lower bits of the network prefix, and then the network prefix and the 64-bit network card identifier of the device are combined into the IPv6 address of the device.
Preferably, in the system function step, the user management includes recording user number, name, contact person, telephone, address, equipment number and user data server number information, the equipment statistics in the equipment management includes statistics of equipment types and quantity, the equipment operation mode management is used for managing different operation states of the equipment, the grouping management is used for classifying and grouping the equipment, the communication state management is used for monitoring connection and transmission states of equipment communication, and the information inquiry is used for inquiring various relevant information of the equipment.
It should be noted that, for the device registration step, the device extracts the sequence number from its own unique identifier and combines with the byte generated by the random number generator to generate the network card identifier, so as to generate the local link address, thereby ensuring the initial positioning and the identification uniqueness of the device in the initial network environment;
The device sends a multicast neighbor request and repeats the operation according to feedback until the address is unique, thereby further ensuring the address uniqueness of the device in the local network, just like in a community, each family has a unique house number, and ensuring the accurate identification and communication accuracy of the device in the network;
And combining with the router IPv6 network address prefix to generate a final IPv6 address and registering the final IPv6 address in the system, so that the device can obtain a legal and unique address in the whole IPv6 network, complete the formal registration of the device in the network and lay a foundation for subsequent communication.
For the step of monitoring the IPv6 network address change of the equipment, the equipment can monitor the route announcement information of the ICMP6 protocol and timely find out the network prefix change of the router, so that the equipment can quickly adapt to the dynamic change of the network environment;
The IPv6 address is regenerated by using the new network prefix and the network card identifier and re-registered, so that the communication continuity of the equipment after the network environment changes is ensured, and even if the address changes, other equipment or servers can still find the equipment through the new address, thereby realizing seamless communication and avoiding communication interruption caused by the address change.
The system can clearly know the information such as the type, version, running state and the like of each device in the network, and the system is just like a device management center, so as to realize the palm for all access devices;
the remote device parameter setting function is convenient for an administrator to remotely manage and configure the device, and the device setting can be adjusted without going to the field of the device, so that the management efficiency is improved;
The user management function realizes effective management of user resources and equipment attribution by recording related information of the user and the association relation between the equipment and the user, ensures the safety and privacy of data and prevents unauthorized access and operation;
the method has the advantages that various functions in equipment management, such as software remote online upgrade, equipment statistics, operation mode management, grouping management, communication state management, information inquiry and the like, enable operation and maintenance of equipment to be more intelligent and convenient, enable an administrator to know operation conditions of the equipment in time, conduct classification management on the equipment, improve overall performance and reliability of the equipment, reduce maintenance cost, enable the number and distribution of different types of equipment to be known quickly through equipment statistics, facilitate resource planning, and enable communication state management to discover and solve communication faults in time.
Example 2:
The embodiment of the invention provides an IPv6 protocol-based equipment networking system, referring to FIG. 2, comprising an equipment module, a system server module, a user data server module and a software module;
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 into a dynamic IPv6 address through a device registration step based on the unique identifier of the device and registers the dynamic IPv6 address to the system server module, receives a software module instruction, and communicates with the user data server module to realize data transmission and interaction;
the system server module is provided with a fixed IPv6 address and is used for receiving registration information of the equipment module, including equipment identifier and IPv6 address, registering relevant information of equipment, issuing management instructions to the equipment through the software module, realizing the functions of user management, equipment management and equipment data storage, and playing a role of a bridge in the communication between the equipment module and the user data server module;
The user data server module is used for storing the data of the equipment under the control of the user, does not need to fix an IPv6 address, maps the sequence number into a dynamic IPv6 address through the equipment registration step based on the unique identifier of the user data server module, registers the dynamic IPv6 address to the system server module, receives a software module instruction, communicates with the affiliated equipment module to realize data transmission and interaction, and simultaneously executes the function of monitoring the change of the IPv6 network address of the equipment, if the change exists, the user data server module registers again in time, and ensures that the user data server module can still normally communicate with the equipment under the control of the user when the IPv6 address dynamically changes;
The software module runs on the system server and comprises a function unit for receiving the equipment identifier and registering the IPv6 address, so as to realize the receiving and processing of the equipment registration information, has the function of issuing a system management instruction, and simultaneously has the functions of user management, equipment management and equipment data storage, thereby ensuring the normal operation of the whole system and the effective communication among the equipment.
Preferably, the device module includes:
An identifier reading unit, configured to read a sequence number in a unique identifier of the device itself, where the unique identifier is 24 bytes, and includes a device type 1 byte, an operation mode 1 byte, a system software version number 2 byte, a device sequence number 4 byte, a system software length 4 byte, a system software checksum 4 byte, a user software length 4 byte, and a user software checksum 4 byte, where the unit extracts a device sequence number of 4 bytes from the identifier;
The network card identifier generating unit is connected with the identifier reading unit, receives the extracted 4-byte sequence number of the equipment, combines the sequence number with the 4 bytes generated by the random number generator to form a 64-bit network card identifier, and further generates a local link address of the equipment;
The address detection and registration unit is connected with the network card identifier generation unit and is responsible for sending a multicast neighbor request, judging that the address is not unique if the neighbor notice is received, triggering the identifier reading unit and the network card identifier generation unit to regenerate the address until the local link address is unique, inquiring the IPv6 network address prefix of the router, supplementing 0 at a lower position to form a 64-bit network prefix address if the address is less than 64 bits, splicing the address with the 64-bit network card identifier of the device to form the IPv6 address of the device, registering device identifier information with a system server, completing the device registration process, preparing to receive the IPv6 address of a user data server sent by the system server, and setting a communication object;
And the communication unit is connected with the address detection and registration unit, communicates with the user data server according to the communication object set during registration to realize data transmission, receives the software module instruction, and executes corresponding operation.
Preferably, the system server module includes:
A registration information receiving unit connected with the equipment module and used for receiving the registration information sent by the equipment module;
The information registration unit is connected with the registration information receiving unit and is responsible for registering the type, mode, system version, sequence number and IPv6 address information of the equipment and providing data support for equipment management and inquiry;
The instruction issuing unit is connected with the software module and receives an instruction of the software module, namely an instruction for setting the IPv6 address of the user data server to which the equipment belongs;
The user management unit is responsible for managing user related information, including recording user numbers, names, contacts, telephones, addresses, equipment numbers and user data server number information, and is used for realizing the association management of users and equipment;
The device management unit is connected with the software module and realizes a device management function, and comprises a device software remote online upgrading function subunit, a device statistics function subunit, a device operation mode management function subunit, a grouping management function subunit, a communication state management function subunit and an information query function subunit, wherein the device software remote online upgrading function subunit is used for updating software programs of devices, the device statistics function subunit is used for counting types and numbers of the devices, the device operation mode management function subunit is used for managing different operation states of the devices, the grouping management function subunit is used for classifying and grouping the devices, the communication state management function subunit is used for monitoring connection and transmission states of communication of the devices, and the information query function subunit is used for querying various relevant information of the devices.
Preferably, the user data server module includes:
The data storage unit is used for storing data of equipment under the control of a user and providing storage and management space for the equipment data;
a second registration unit for completing the registration process of the user data server;
The address monitoring unit is used for continuously monitoring the IPv6 network address change of the equipment, and when the router network prefix change is found, the equipment is informed to regenerate the IPv6 address and complete registration, so that the communication between the equipment and the user data server is not affected by the address change;
the identifier reading unit II is used for reading the sequence number in the unique identifier of the user data server, and then the user data server automatically generates a network card identifier;
And the communication interface unit is used for realizing data communication with the equipment module and the system server module, receiving the data sent by the equipment module, transmitting the data to the data storage unit and receiving related instructions and information.
It should be noted that the communication connection between the device module, the system server module, the user data server module and the software module constitutes a complete and efficient device networking architecture. The device module is used as a source of data generation, the user data server module is used as a terminal of data storage, and the user data server module and the system server module are in contact through a registration mechanism, so that the identification and management of the device in a network and the accurate transmission of the data in the network are realized;
The system server module becomes a core hub of the whole system by virtue of the fixed IPv6 address, and effectively coordinates the communication between the equipment module and the user data server module. The method not only receives and manages the equipment registration information, but also issues management instructions through the software module, thereby ensuring the orderly operation of the system and the effective cooperation among the equipment. The user data server module is focused on storing equipment data, ensures the stability of data communication through an address monitoring function, can continuously receive the data sent by equipment even if the IPv6 address of the equipment changes dynamically, and realizes the reliable storage and management of the data.
The software module runs on the system server as a 'brain' of the system, and comprehensively manages key functions such as equipment registration, user management, equipment management, data storage and the like, so that the whole system has intelligent and automatic management capability.
Example 3:
On the basis of embodiments 1-2, a specific implementation manner of device networking based on the IPv6 protocol is provided, and referring to fig. 3, this embodiment includes the following subjects:
1. device identifier
Each device has a unique device identifier, 24 bytes in total, and the device identifier in the embodiment contains the following information, namely a device type (1 byte), an operation mode (1 byte), a system software version number (2 bytes), a device sequence number (4 bytes), a system software length (4 bytes), a system software checksum (4 bytes), a user software length (4 bytes) and a user software checksum (4 bytes), wherein the device sequence number has uniqueness and is not repeated, and is a component part for generating an IPv6 address of the device. The device registration information is a device identifier.
2. System server
The system server has fixed IPv6 address, which is two media with dynamic IPv6 address direct communication, the system receives registration information from the equipment and the user data server to finish registration of equipment information, such as equipment type, mode, system version, sequence number, IPv6 address, etc., after the equipment is registered, the system server sends the IPv6 address of the user data server to the equipment to enable the equipment to realize end-to-end direct communication with the user data server, relevant parameters of the equipment are set remotely, such as IPv6 address of the user data server, etc., user management including information of user number, name, contact person, telephone, address, equipment number, user data server number, etc., equipment management using transmission protocol agreed with the system to carry out remote online upgrade of software of the equipment, equipment statistics including equipment type, number, statistics, equipment operation mode, equipment grouping, equipment communication state management, equipment information inquiry, etc.
In this embodiment, 3 data tables are built in the system software:
User table (user_tab) (Table 1)
In the embodiment, 2 users are built, namely, a user name 1 and a user name 2;
Equipment table (device_tab) (Table 2)
In the embodiment, 5 devices are built, namely a PLC (programmable logic controller) with the sequence number of 1, an intelligent gateway with the sequence number of 2, a wireless data collector with the sequence number of 3, a user data server I81 with the sequence number of 4, a user data server II 82 with the sequence number of 5;
User-device association table (user_device) (table 3)
In this embodiment, a user-device association table is built, see table 3, in which user 1 has a PLC4, an intelligent gateway 5, and a first user data server 81, and user 2 has an automobile 3 with wireless (4G/5G) data acquisition devices, and a second user data server 82.
3. User data server
As shown in FIG. 3, the first user data server 81 and the second user data server 82 are connected to the Internet through one of the home broadband, wireless and private lines, the first user data server 81 is registered on the system server according to the device registration step, the system software obtains the device type as user server through registration information, the sequence number is 4, the device belongs to user 1 in the user-device association table (table 3), the IPv6 address of the registration message is finally written into the IPv6_addr field with the user number of 1 in the user table (table 1), the second user data server 82 is registered on the system server according to the device registration step, the system software obtains the device type as user server through registration information, the sequence number is 5, the device belongs to user 5 in the user-device association table (table 3), the IPv6 address of the registration message is finally written into the IPv6_addr field with the user number of 2 in the user table (table 1), and the first user data server 82 can be changed in time when the user data server is normally used for receiving the user data server, and the user data server 82 can be changed in time, and the communication function can be changed when the user data server is normally, and the user data server is still normally used for receiving the user data server 81.
4. PLC device
As shown in fig. 3, after PLC4 is connected to home broadband router 1 through a network cable, PLC4 device is registered on a system server according to a device registration procedure, system software obtains the sequence number 1 of the device through registration information, searches a user-device association table (table 3) for the device belonging to user 1, searches a user data server IPv6 address in the user table (table 1), and finally sends the IPv6 address of user data server one 81 to PLC4 through a system setting command, and also sends the IPv6 address of PLC4 to user data server one 81, and then PLC4 device communicates with user data server one 81 to implement direct communication of devices having two dynamic IPv 6. As shown in fig. 3, the PLC4 collects real-time data of the pressure sensor 12, the temperature sensor 13, the industrial robot 14, etc., and then transmits the corresponding real-time data to the first user data server 81, and the PLC4 performs the function of monitoring the change of the IPv6 network address of the device while normally performing data collection and control, if the change occurs, the PLC4 registers again in time, so that the normal communication between the PLC4 and the first user data server 81 is not affected after the change of the IPv6 address.
5. Intelligent gateway equipment
As shown in fig. 3, after the intelligent gateway 5 is connected to the special router 2 through a network cable, the intelligent gateway 5 is registered on a system server according to a device registration step, the system software obtains the sequence number 2 of the device through registration information, searches a user-device association table (table 3) for the device belonging to the user 1, searches a user table (table 1) for the IPv6 address of the first user data server 81, sends the IPv6 address of the first user data server 81 to the intelligent gateway 5 through a system setting command, and sends the IPv6 address of the intelligent gateway 5 to the first user data server 81, so that the sequence number of the intelligent gateway is mapped with the IPv6 address of the first user data server 81, after the identifier registration is completed, the device communicates with the first user server 1 to realize direct communication of the device with two dynamic IPv6, and the intelligent gateway 5 performs data communication interaction with the coal mining machine 15 according to the communication protocol, and then the intelligent gateway 5 transmits real-time data of the coal mining machine 15 to the first user data server 81. The intelligent gateway 5 normally performs data acquisition and protocol conversion, and also performs the function of monitoring the change of the IPv6 network address of the device, if the change exists, the device registers again in time, and the normal communication between the intelligent gateway 5 and the user data server 81 is not affected after the change of the IPv6 address.
6. Automobile with wireless (4G/5G) data acquisition equipment
As shown in fig. 3, the automobile 3 with the wireless data collector (4G/5G) registers the device on the system server through the wireless 4G/5G card according to the device registration step, the system software obtains the sequence number 3 of the wireless data collector (4G/5G) through the registration information, searches the user_device association table (table 3) for the device belonging to the user 2, searches the user table (table 1) for the IPv6 address of the second user data server 82, finally sends the IPv6 address of the second user data server 82 to the wireless (4G/5G) data collector through the system setting command, and sends the IPv6 address of the wireless (4G/5G) data collector to the second user data server 82, then the device communicates with the user server 2 normally, so as to realize direct communication of the device with two dynamic IPv6, and the network prefix obtained by the wireless 4G/5G card is different because of different communication base stations. The wireless data collector (4G/5G) collects information such as environmental parameters, automobile parameters, GPS and the like, and the automobile continuously transmits the collected real-time data to the second user data server 82 according to the running route. The wireless data collector (4G/5G) normally collects data, and simultaneously executes the function of monitoring the IPv6 network address change of the device, if the device is changed, the device is registered again in time, and the normal communication between the wireless data collector (4G/5G) and the second user data server 82 is not affected after the IPv6 address is changed.
The embodiment shows the specific operation and advantages of the method and the system in practical application by elaborating the workflow and the function implementation of the equipment identifier, the system server, the user data server and various specific equipment in the equipment networking based on the IPv6 protocol, realizes the efficient registration, the dynamic address management, the stable communication and the intelligent management of the equipment, and provides a reliable solution for the interconnection and the intercommunication and the data interaction of different types of equipment in the IPv6 network.
It should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention, and not for limiting the same, and although the present invention has been described in detail with reference to the above-mentioned embodiments, it should be understood by those skilled in the art that the technical solution described in the above-mentioned embodiments may be modified or some technical features may be equivalently replaced, and these modifications or substitutions do not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of the embodiments of the present invention.