CN112448983B - Method for clustering multiple physical devices into logic device - Google Patents
Method for clustering multiple physical devices into logic device Download PDFInfo
- Publication number
- CN112448983B CN112448983B CN201910823102.6A CN201910823102A CN112448983B CN 112448983 B CN112448983 B CN 112448983B CN 201910823102 A CN201910823102 A CN 201910823102A CN 112448983 B CN112448983 B CN 112448983B
- Authority
- CN
- China
- Prior art keywords
- data
- equipment
- devices
- modified
- multicast address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Abstract
A method for clustering a plurality of physical devices into a logic device relates to the technical field of data communication, and each device is provided with a data block; presetting a multicast address; each device sends its own data block to the multicast address and synchronously receives and stores the data blocks of other devices; modifying the data of any data block in any device, and synchronously receiving and storing the modified data by other devices; and the device is adjusted according to the modified data. The invention ensures that the data among a plurality of devices are consistent, any device can be logged in to store global data without storing the data one by one, thereby achieving the purpose that a plurality of devices are automatically clustered into one device on logic on the physical basis and improving the usability of products.
Description
Technical Field
The present invention relates to the field of data communication technologies, and in particular, to a method for clustering a plurality of physical devices into a logical device.
Background
At present, conversion devices such as ArtNET and sabn based on control protocols of the ethernet are independent from each other, devices in the same network need to be configured independently in the use process, and various state data in the devices also need to be checked independently. When the device is used in a large amount, equipment parameters are required to be configured one by one, running state data are required to be checked one by one, and the working efficiency is too low and inconvenient. In order to be able to perform unified management, additional dedicated headquarters and other devices can be purchased, but this is certainly an increase in the cost.
The prior art needs to purchase special total control equipment, has high cost, otherwise needs to configure the equipment one by a user, checks the running state of the equipment one by one, and is inconvenient to collect the equipment data. When the consistency requirement on the working behavior of the equipment is needed, the equipment cannot be configured uniformly, the working parameters are manually input, and the defects of error and leakage and the like are easy to occur.
Therefore, there is a need for an operation mode that is simple to operate, convenient to use, low in cost, and configured in a centralized manner, so that multiple physical devices are automatically clustered into one logical device, and the usability of the product is improved.
Disclosure of Invention
In order to achieve the above purpose, the invention adopts the following technical scheme: a method of clustering a plurality of physical devices into a logical device, comprising:
setting data blocks of each device;
presetting a multicast address;
each device sends its own data block to the multicast address and synchronously receives and stores the data blocks of other devices;
modifying the data of any data block in any device, and synchronously receiving and storing the modified data by other devices;
the device adjusts itself according to the modification data.
Further, the device adjusting itself according to the modification data includes:
the device judges whether the modified data belongs to the data block of the device;
if yes, the working behavior of the self is correspondingly adjusted according to the modified data; if not, only data is stored, and the self behavior is not required to be changed.
Furthermore, the data synchronization between the devices is realized through a synchronous data mechanism.
Further, the synchronous data mechanism is formed by multicast sharing of multicast addresses.
Further, the data block is composed of a plurality of data record formats.
Further, the data recording format is used for recording the working state of the corresponding subunit of the self equipment and the information of the controlled lamp hung under the subunit.
Further, the data record format is provided with a device identification, a subunit number, a time stamp, detailed data and a check code.
The beneficial effects of the invention are as follows: 1. the data among the devices are kept consistent, and the global data can be stored by logging in any device without storing one by one; 2. because of an automatic data synchronization mechanism among the devices, the devices can be easily set in batches; 3. the equipment can automatically exit the cluster after being powered off, and the equipment is automatically added into the cluster after being powered on again, so that manual intervention is not needed in the whole process; 4. according to the scale change of the use scene, the equipment can be increased or reduced at any time, and the expandability is very flexible; 5. the data transmission is reliable and accurate based on the Ethernet communication technology; 6. the batch management of the equipment can be realized without additionally purchasing special master control equipment, and the cost is reduced.
Drawings
The invention is further illustrated by the accompanying drawings, which are not to be construed as limiting the invention in any way.
FIG. 1 is a prior art of the present invention;
FIG. 2 is a diagram showing the data status of each device after multicasting according to the present invention;
FIG. 3 is a data record format;
FIG. 4 is a flow chart of the present invention;
Detailed Description
The invention will be further described with reference to the accompanying drawings, in which the directions of fig. 1 are used.
As shown in fig. 1-3, in the method for clustering a plurality of physical devices into a logical device according to an embodiment of the present invention, a plurality of devices are provided, which can be set automatically according to performance, so as to facilitate an illustration of how to implement the clustering of a plurality of devices into a logical device by the method.
A multicast address is pre-agreed between the devices, the multicast address usually selects a local link multicast address, after the device A, B, C is started, the device A, B, C sends its own data block a, data block B and data block C to the multicast address, the device A, B, C sends its data block to the multicast address and simultaneously receives the data blocks of the other two devices, that is, the device a sends the data block a to the multicast address and simultaneously receives the data block B and the data block C, so that the device a has the data of the other two devices, that is, through the data blocks of the other devices on each device after multicast, as shown in fig. 2, the device a has not only the data block a, but also the data block B and the data block C, and the devices B and C also have the data of the other devices; if the data of three devices need to be changed, only the data block is required to be modified on any device, and the data after modification can be synchronized through a synchronous data mechanism, namely, the data of the device B is modified on the device A, the device B can receive the modified data at the same time, and the device C can also receive the modified data to the device B at the same time; if the data of the device C is to be modified, the device a may also be modified, and the device B may also receive the data modified by the device C, i.e. the device a may serve as a data modification center, and the device B, the device C, or other devices may serve as data modification centers.
In this embodiment, one device must act as both a receiver and a sender. Under the support of multicast technology, as long as a device agrees with a fixed multicast address in advance (can select a local link multicast address), after the device is started, the device sends a data record to the fixed multicast address, and the data record can be received by other similar devices in the same Ethernet, namely, the other devices can sense that a new device joins the cluster, and then the other devices send the data record to the fixed multicast address, so that the just joined device can obtain complete global data, and the original device in the cluster can also obtain a latest global data.
The synchronous data mechanism is formed by multicast sharing of multicast addresses, so that data sharing among all devices is realized, each device judges whether the modified data belong to the device according to a data block, the data block is formed by a plurality of data records, each data record corresponds to a subunit of the device one by one, and the data records are used for recording the working state of the corresponding subunit and the information of all controlled lamps connected to the subunit. For example, the equipment A is provided with five subunits, the data block A is provided with five data records, and the five data records record the working states of the five subunits and the detailed information of the controlled lamps hung under the five subunits.
The data record is provided with a device identifier, a subunit number, a time stamp, detailed data and a check code, and the device judges the shared data through the data record and records the modified data.
The device identifier generally refers to a network card MAC address of the device, and indicates which device the data record belongs to, and the length is fixed; when modifying data on any device, other devices can receive the modified data at the same time, but need to judge whether the modified data belongs to the device itself, if the data is modified to be the data on the device, the device makes a corresponding reaction with the modified data; if not, no care is taken.
The subunit number is used for recording the unified numbers of all the subunits of all the devices in the whole cluster range, and the length is fixed.
The time stamp is used for modifying the time of the self equipment data record, and the equipment data are synchronously combined with each other by referring to the value to make a trade-off, and the length is fixed.
The detailed data are used for recording the working state of the subunit and the controlled lamp information thereof in detail, the length is not fixed, and the length information is contained in the data item so as to carry out data analysis.
The check code is used for ensuring the correctness of the data and checking the whole data record.
If no data record is set, the three devices A, B, C only have own data blocks, and only can modify the own settings in one device, if the data of the three devices are to be modified, the data of the three devices can be modified respectively, so that the efficiency is low and the inconvenience is high. After multicast, the data on each device can be synchronously shared, each device is provided with a data record, the shared data is judged by the data records to make corresponding changes, the data records correspond to the subunits one by one, and the subunits are divided into the same functional modules in one device in terms of logic, so that the granularity is smaller. According to the characteristic, the number of the subunits can be overlapped through a data synchronization mechanism among the devices, so that a plurality of devices are automatically clustered into one logical device physically, and the usability of products is improved.
In the working process of the equipment, as long as the data record changes, the action of sending the data record to the multicast address can be triggered no matter the working state of the sub-equipment is changed due to the modification of a user, so that the data synchronization among the equipment is realized. From the user's perspective, the data interactions between the devices are transparent. When a new device joins the cluster, the data records corresponding to the device sub-units are synchronized to each device in the cluster, the number of sub-units in the cluster increases and these newly added sub-units can be configured on any device. Therefore, the batch management of the equipment can be realized without additionally purchasing special total control equipment, and the cost is reduced.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.
Claims (1)
1. A method of clustering a plurality of physical devices into a logical device, comprising:
setting data blocks of each device;
presetting a multicast address;
each device sends its own data block to the multicast address and synchronously receives and stores the data blocks of other devices;
modifying the data of any data block in any device, and synchronously receiving and storing the modified data by other devices;
the device adjusts itself according to the modified data;
after the equipment is started, transmitting a data record format of the equipment to the multicast address, wherein each equipment senses that a new equipment joins a cluster and transmits a data block of the equipment to the multicast address;
the new equipment synchronously receives and stores the data blocks of each equipment to obtain complete global data; the original equipment in the cluster synchronously receives and stores data blocks of other equipment to obtain the latest global data;
the device adjusts itself according to the modification data, comprising:
the device judges whether the modified data belongs to the data block of the device; if yes, the working behavior of the self is correspondingly adjusted according to the modified data; if not, only storing the data, and not changing the behavior of the user;
the data block consists of a plurality of data recording formats, the data recording formats are in one-to-one correspondence with the subunits of the corresponding equipment, and the data recording formats are used for recording the working states of the corresponding subunits and the information of all controlled lamps hung on the subunits; the data record format is provided with a device identifier, a subunit number, a time stamp, detailed data and a check code;
the data synchronization is realized among the devices through a synchronous data mechanism, and the synchronous data mechanism is formed by multicast sharing of multicast addresses.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910823102.6A CN112448983B (en) | 2019-09-02 | 2019-09-02 | Method for clustering multiple physical devices into logic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910823102.6A CN112448983B (en) | 2019-09-02 | 2019-09-02 | Method for clustering multiple physical devices into logic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112448983A CN112448983A (en) | 2021-03-05 |
CN112448983B true CN112448983B (en) | 2023-09-19 |
Family
ID=74735018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910823102.6A Active CN112448983B (en) | 2019-09-02 | 2019-09-02 | Method for clustering multiple physical devices into logic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112448983B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102387204A (en) * | 2011-10-21 | 2012-03-21 | 中国科学院计算技术研究所 | Method and system for maintaining consistency of cluster caching |
CN103309818A (en) * | 2012-03-09 | 2013-09-18 | 腾讯科技(深圳)有限公司 | Method and device for storing data |
CN103559319A (en) * | 2013-11-21 | 2014-02-05 | 华为技术有限公司 | Cache synchronization method and equipment for distributed cluster file system |
CN103795801A (en) * | 2014-02-12 | 2014-05-14 | 浪潮电子信息产业股份有限公司 | Metadata group design method based on real-time application group |
CN103891395A (en) * | 2011-10-17 | 2014-06-25 | 国际商业机器公司 | Multi-device monitoring and control |
CN104378427A (en) * | 2014-11-14 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Method for maintaining consistency of key data of clusters |
-
2019
- 2019-09-02 CN CN201910823102.6A patent/CN112448983B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103891395A (en) * | 2011-10-17 | 2014-06-25 | 国际商业机器公司 | Multi-device monitoring and control |
CN102387204A (en) * | 2011-10-21 | 2012-03-21 | 中国科学院计算技术研究所 | Method and system for maintaining consistency of cluster caching |
CN103309818A (en) * | 2012-03-09 | 2013-09-18 | 腾讯科技(深圳)有限公司 | Method and device for storing data |
CN103559319A (en) * | 2013-11-21 | 2014-02-05 | 华为技术有限公司 | Cache synchronization method and equipment for distributed cluster file system |
CN103795801A (en) * | 2014-02-12 | 2014-05-14 | 浪潮电子信息产业股份有限公司 | Metadata group design method based on real-time application group |
CN104378427A (en) * | 2014-11-14 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Method for maintaining consistency of key data of clusters |
Also Published As
Publication number | Publication date |
---|---|
CN112448983A (en) | 2021-03-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101971568B (en) | Method and device for communicating change-of-value information in building automation system | |
EP1715627B1 (en) | A method for implementing the real-time synchronization of configuration data between a network management system and a network element device | |
CN201887792U (en) | Multi-protocol conversion gateway | |
WO2006091040A1 (en) | Layer structure of network control protocol and interface method | |
CN104243616A (en) | Wi-Fi (wireless fidelity) communication based cloud air conditioner system | |
CN102255761B (en) | File-based configuration rollback system and configuration rollback method | |
CN113437998B (en) | Operation and maintenance debugging method and system, nonvolatile storage medium and processor | |
CN102957551A (en) | Method and device for managing equipment in batches | |
US11329866B2 (en) | Battery management system and communication method thereof | |
US10779061B2 (en) | Systems and methods for managed connectivity using local area wireless networks | |
CN105681081A (en) | Physical machine management method and device | |
CN108736077B (en) | Method and system for configuring slave controller of battery management system | |
EP4080824A1 (en) | Communication parameter configuration method and apparatus, device and storage medium | |
CN109565902B (en) | Method and equipment for processing power failure and acquiring connection relation | |
CN102063321B (en) | The installation method of terminal software, device and system | |
JP2008507200A (en) | Integrated management of wireless networks | |
US20090024726A1 (en) | Device for network system and method of transmitting profile | |
WO2022121772A1 (en) | Data disaster recovery backup method, and unified data management (udm) entity and storage medium | |
CN112448983B (en) | Method for clustering multiple physical devices into logic device | |
CN210781189U (en) | Hardware equipment for collecting load identification data of user electric meter | |
US10931529B2 (en) | Terminal device management method, server, and terminal device for managing terminal devices in local area network | |
CN110768749B (en) | Data transmission method and device and power peak shaving system | |
CN108055185B (en) | Communication system and communication method of household appliance and household appliance | |
CN109525621B (en) | Data synchronization method, equipment and system based on ZigBee binding | |
CN101185286A (en) | Method of configuring network profile of network system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |