CN113794994B - Information gathering method and device based on multicast domain name system and application thereof - Google Patents

Information gathering method and device based on multicast domain name system and application thereof Download PDF

Info

Publication number
CN113794994B
CN113794994B CN202110986123.7A CN202110986123A CN113794994B CN 113794994 B CN113794994 B CN 113794994B CN 202110986123 A CN202110986123 A CN 202110986123A CN 113794994 B CN113794994 B CN 113794994B
Authority
CN
China
Prior art keywords
basic information
equipment
information
local area
area network
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
Application number
CN202110986123.7A
Other languages
Chinese (zh)
Other versions
CN113794994A (en
Inventor
巫金全
赵长春
马颖江
叶瑞权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202110986123.7A priority Critical patent/CN113794994B/en
Publication of CN113794994A publication Critical patent/CN113794994A/en
Application granted granted Critical
Publication of CN113794994B publication Critical patent/CN113794994B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Abstract

An information aggregation method based on a multicast domain name system, the method comprising the steps of: when a device accessing a local area network is started, basic information of the device is registered to a domain name system link, and at least one discovered device which can be discovered around is discovered by starting broadcasting; acquiring a comparison value of corresponding equipment from the basic information of the equipment and the basic information of the discovered equipment by using a preset calculation model, wherein the comparison value is used for acquiring priorities among a plurality of pieces of equipment; acquiring a top-priority device according to the comparison value, and summarizing basic information of a plurality of devices on the top-priority device to obtain comprehensive basic information of the local area network devices; and the top priority equipment sends the received local area network equipment basic information to a plurality of equipment covered in the local area network equipment basic information. The invention ensures that each device has the basic information of all devices in the local area network, and the interconnection communication between any two devices is started through the ip address and the port of the basic information.

Description

Information gathering method and device based on multicast domain name system and application thereof
Technical Field
The invention relates to the technical field of communication, in particular to an information gathering method and device based on a multicast domain name system and application thereof.
Background
With the development of the internet and the internet of things, smart furniture gradually enters families and lives of people, and human beings gradually enter the smart furniture age. These smart furniture are accessed into the network through WiFi of the home router and then controlled by the application of the smartphone. In the existing method for discovering devices among local area networks, a smart phone is usually used to discover other smart home devices actively, the smart phone and the smart home devices are connected to the same local area network, then a smart phone application program terminal broadcasts a device discovery message to the local area network, the smart home devices are waited to reply the device information message, and finally the smart phone application program terminal acquires the device information message of the smart home devices and establishes a communication channel.
However, due to the popularization of the intelligent terminal and the development of basic communication, especially the popularization of 5G, all things are still natural in the era of interconnection, information exchange between devices becomes more and more important, especially basic information intercommunication between the first devices and the importance thereof are particularly critical and important, and the above-mentioned traditional device communication technology cannot meet the information intercommunication requirement which requires more accuracy and comprehensiveness. The existing multicast domain name system technology can discover and mark devices without any other party information, but under the condition of more devices or poor network, each device has the problems of incomplete discovery device or information loss and the like, so that two devices cannot communicate with each other.
Disclosure of Invention
Aiming at the phenomenon that the devices cannot communicate due to the fact that incomplete problems are found, the invention provides an information gathering method and device based on a multicast domain name system and application thereof.
In order to solve the problems, the invention adopts the following technical scheme: an information aggregation method based on a multicast domain name system, wherein the method comprises the following steps:
when a device accessing a local area network is started, basic information of the device is registered to a domain name system link, and at least one discovered device which can be discovered around is discovered by starting broadcasting;
acquiring a comparison value of corresponding equipment from the basic information of the equipment and the basic information of the discovered equipment by using a preset calculation model, wherein the comparison value is used for acquiring priorities among a plurality of pieces of equipment;
obtaining the highest-priority equipment according to the comparison value, and summarizing basic information of the plurality of equipment on the highest-priority equipment to obtain comprehensive basic information of the local area network equipment;
and the top priority equipment sends the received local area network equipment basic information to a plurality of equipment covered in the local area network equipment basic information.
Preferably, after receiving the basic information of the multiple devices, the most superior device determines whether new devices exist in the basic information of the multiple devices and the basic information of the local area network device that is the latest time;
if the newly added equipment exists, obtaining the contrast values and/or the priorities of the plurality of equipment by using the preset calculation model again, summarizing the basic information of the plurality of equipment on the equipment with the highest priority, updating the basic information of the local area network equipment, and then sending the basic information to all the equipment;
and if no new equipment exists, sending the summarized basic information of the local area network equipment to all the equipment.
Preferably, the preset calculation model obtains an integer value of the corresponding device through calculation, and performs determination according to the size of the integer value, and if the integer value of the device is not the maximum value, the basic information of the device is sent to the device with the maximum integer value until the basic information of the multiple devices is summarized in the device with the maximum integer value.
Preferably, a device accessing the local area network registers the basic information of the device in the domain name system link, then starts broadcasting, and caches the basic information on the domain name system link to the local;
the basic information of the device has at least one of the following: IP address information, port information, network status information, device configuration information.
Preferably, the preset calculation model includes:
long P = cpu core number × absolute value of signal intensity × 1000000000+ memory size + ip tail number;
in the formula, P is a comparison value, the CPU core number and the memory size are device parameter values obtained in the basic information, the absolute value of the signal strength is a network or WiFi strength value obtained in the basic information, and the ip tail number is the last bit value of the ip address obtained in the basic information.
On the other hand, the invention adopts the following technical scheme to solve the problems: an information aggregation device based on a multicast domain name system, comprising:
the acquisition module is used for acquiring basic information of the equipment, wherein the basic information comprises: one or more of ip address information, port information, network status information, device configuration information;
the calculation module is used for obtaining the priorities of the plurality of devices according to the basic information by a preset calculation model;
the information summarizing module is used for summarizing the acquired basic information to the most advanced equipment;
and the sending module is used for sending the local area network equipment basic information obtained by the summarization to all equipment.
Preferably, the device further includes a caching module, configured to cache the device basis information and the local area network device basis information aggregated by the multiple devices.
Preferably, the calculating module is an integer value calculating module, obtains integer values of the multiple devices according to the basic information by using a preset calculating model, and compares the sizes of the integer values, where the preset calculating model is Long P = cpu core number × signal intensity dimension pair value × 1000000000+ memory size + ip tail number;
the information summarizing module is a local area network equipment basic information summarizing module, and summarizes the basic information obtained by the obtaining module to the equipment with the maximum integer value to obtain the local area network equipment basic information.
On the other hand, the following technical scheme is adopted to solve the problems: the device is based on the step of the information gathering method of the multicast domain name system, the device obtains the ip address information of all devices in the local area network through the steps of the method, and the interconnection communication between any two devices is started.
Compared with the prior art, the invention has the following beneficial effects:
according to the invention, the top-priority equipment is obtained through the preset calculation model, the basic information of all the equipment is collected on the top-priority equipment and then sent to all the equipment, so that each equipment has the basic information of all the equipment in the local area network, the interconnection communication between any two equipment can be started through the ip address and the port of the basic information, and the problems of incomplete equipment information discovery and small search area in the prior art are solved.
Drawings
In order to more clearly illustrate the technical solution, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic view of the flow structure of the present invention.
FIG. 2 is a schematic view of the flow structure of the present invention.
FIG. 3 is a schematic view of the flow structure of the present invention.
Detailed Description
For a clear and complete understanding of the technical solutions, the present invention will now be further described with reference to the embodiments and the accompanying drawings, and it is obvious that the described embodiments are only some embodiments of the present invention, and all other embodiments obtained by those skilled in the art without any inventive work are within the scope of the present invention.
As shown in fig. 1-3, an information aggregation method based on a multicast domain name system, wherein the method has the following steps:
when a first device 100 accessing a local area network is started, a device accessing the local area network registers basic information of the device in a domain name system link, then starts broadcasting, caches the basic information on the domain name system link to the local, and takes out the basic information through callback after caching is completed;
the basic information of the first device 100 includes IP address information (hereinafter referred to as IP) 192.168.2.1, and the first device 100 can discover other discovered devices with IP end numbers 2 and 5;
meanwhile, the local area network in this embodiment further includes the following devices and their corresponding IP and discovery relationships:
a second device 200, with an IP of 192.168.2.2, which can discover discovered devices with IP end numbers 1, 3;
a third device 300, with an IP of 192.168.2.3, which can discover discovered devices with IP tails 1, 2, 4, 5, 6;
a fourth device 400, with an IP of 192.168.2.4, may discover a discovered device with an IP tail number of 3;
a fifth device 500, with an IP of 192.168.2.5, which can discover discovered devices with IP end numbers 1, 5, 6;
a sixth device 600, having an IP of 192.168.2.6, may discover discovered devices having IP end numbers 1, 3.
When the first device 100 finds the second device 200 and the fifth device 500, the basic information of the three devices is calculated to obtain a comparison value according to a preset calculation model, the priority among the three devices is determined according to the comparison value, the most priority device is obtained according to the comparison value, and the basic information of the multiple devices is summarized on the most priority device to obtain comprehensive basic information of the local area network device;
wherein the preset calculation model comprises:
long P = cpu core number × absolute value of signal intensity × 1000000000+ memory size + ip tail number;
wherein, P is a comparison value, the number of CPU cores and the size of the memory are the device parameter values obtained from the basic information, the absolute value of the signal intensity is the network or WiFi intensity value obtained from the basic information, and the ip tail number is the last bit value of the ip address obtained from the basic information;
in this embodiment, the preset calculation model obtains, through calculation, an integer value of the corresponding device, and determines, according to the size of the integer value, that the integer value of the device is not the maximum, the basic information of the device is sent to the device having the maximum integer value until the basic information of the multiple devices is summarized at the device having the maximum integer value. The priorities of the six devices are calculated according to a preset calculation model as sixth device 600> fifth device 500> fourth device 400> third device 300> second device 200> first device 100.
Then, since the fifth device 500 is the most superior device among the three devices, the basic information of the three devices will be sent to the fifth device for aggregation, and meanwhile, the fifth device 500 is a discovered device that can discover the IP end numbers 1, 5, and 6, when the basic information is sent to the fifth device, the aggregated lan device basic information includes four devices with the IP numbers 1, 2, 5, and 6.
At this time, the fifth device with the highest priority among the four devices receives the basic information of the four devices, judges that the basic information of the four devices is compared with the basic information of the devices which can only be found originally, if a newly-added second device exists, the preset calculation model is used again to obtain the contrast values and/or priorities of the multiple devices, the sixth device 600 is obtained as the highest-priority device, and the basic information of the devices which can be found in the fifth device is collected on the sixth device 600.
The sixth device 600 receives the four pieces of device infrastructure information sent by the fifth device 500, and meanwhile, because the sixth device 600 has the discovered devices with the discovered IP tail numbers 1 and 3, the sixth device 600 also receives the device infrastructure information sent by the third device 300, and the third device 300 has the discovered devices with the discovered IP tail numbers 1, 2, 4, 5, and 6, that is, the infrastructure information of the third device 300 also includes the infrastructure information of the fourth device 40, so that after receiving the infrastructure information of the fifth device 500 and the third device 300, the sixth device 600 already summarizes all the device infrastructure information set in this embodiment, and further obtains comprehensive lan device infrastructure information.
The sixth device 600 with the highest priority sends the received basic information of the lan device to six devices included in the basic information of the lan device, and at this time, the six devices possess basic information of all devices, including IP address information, port information, network status information, device configuration information, and the like, so that any two devices can communicate with each other.
In the prior art before the implementation of this embodiment, if the network status is poor, or the distance between the devices is long, or the devices are difficult to search each other, the fourth device 400 cannot find the devices other than the third device 300, so that the information between the devices is missing, incomplete, and unable to communicate. In the present embodiment, a communication channel is established through discovery between the third device 300 and the fourth device 400, and basic information of each device is cached locally in the fourth device, so that a search area is enlarged, and a limitation that the search area is small in the prior art is broken.
On the other hand, in order to execute the above method steps, the present invention further provides an information aggregation apparatus based on a multicast domain name system, including:
the acquisition module is used for acquiring basic information of the equipment, wherein the basic information comprises: one or more of ip address information, port information, network status information, device configuration information;
an integer value calculation module, configured to obtain integer values of the multiple devices according to the basic information by using a preset calculation model, and compare the size of the integer values, where the preset calculation model is:
long P = cpu core number × absolute value of signal intensity × 1000000000+ memory size + ip tail number;
the local area network equipment basic information summarizing module summarizes the basic information obtained by the obtaining module to the equipment with the maximum integer value to obtain the local area network equipment basic information;
and the sending module is used for sending the local area network equipment basic information obtained by gathering to all the equipment.
And the cache module is used for caching the basic information of the equipment and the basic information of the local area network equipment gathered by the plurality of equipment.
On the other hand, the invention adopts the following technical scheme to solve the problems: the method comprises the steps of obtaining top-priority equipment through a preset calculation model, summarizing basic information of all the equipment on the top-priority equipment, sending the basic information to all the equipment, enabling each equipment to have basic information of all the equipment in a local area network, and starting interconnection communication between any two equipment through an ip address and a port of the basic information.
The above disclosure is intended only to illustrate one or more preferred embodiments of the present invention and not to limit the invention in any way, which is intended to be encompassed by the present invention.

Claims (7)

1. An information gathering method based on a multicast domain name system is characterized in that: the method has the following steps:
when a device accessing a local area network is started, basic information of the device is registered to a domain name system link, and at least one discovered device which can be discovered around is discovered by starting broadcasting;
and acquiring the basic information of the equipment and the basic information of the discovered equipment by a preset calculation model to obtain a comparison value of the corresponding equipment, wherein the basic information comprises: one or more of ip address information, port information, network state information and device configuration information, wherein the comparison value is used for acquiring the priority among a plurality of devices;
the preset calculation model comprises:
long P = cpu core number × absolute value of signal intensity × 1000000000+ memory size + ip tail number;
wherein, P is a comparison value, the number of CPU cores and the size of the memory are the device parameter values obtained from the basic information, the absolute value of the signal intensity is the network or WiFi intensity value obtained from the basic information, and the ip tail number is the last bit value of the ip address obtained from the basic information;
obtaining the highest-priority equipment according to the comparison value, and summarizing basic information of the plurality of equipment on the highest-priority equipment to obtain comprehensive basic information of the local area network equipment;
and the top priority device sends the received local area network device basic information to a plurality of devices covered in the local area network device basic information.
2. The information aggregation method based on the multicast domain name system according to claim 1, wherein: after receiving the basic information of the multiple devices, the top priority device judges whether the basic information of the multiple devices and the basic information of the local area network device which is the latest have new devices;
if the newly added equipment exists, obtaining the contrast values and/or the priorities of the plurality of equipment by using the preset calculation model again, summarizing the basic information of the plurality of equipment on the equipment with the highest priority, updating the basic information of the local area network equipment, and then sending the basic information to all the equipment;
and if no new equipment exists, sending the summarized basic information of the local area network equipment to all the equipment.
3. The method for aggregating information based on the multicast domain name system according to claim 1 or 2, wherein: and if the integral value of the equipment is not the maximum value, sending the basic information of the equipment to the equipment with the maximum integral value until the basic information of the plurality of equipment is summarized in the equipment with the maximum integral value.
4. The method for aggregating information based on the multicast domain name system according to claim 1 or 2, wherein: a device accessing the local area network registers the basic information of the device to a domain name system link, then starts broadcasting, and caches the basic information on the domain name system link to the local.
5. An information aggregation device based on a multicast domain name system, comprising:
the acquisition module is used for acquiring basic information of the equipment, wherein the basic information comprises: one or more of ip address information, port information, network status information, device configuration information;
the calculation module is used for obtaining the priorities of a plurality of devices according to the basic information by using a preset calculation model, wherein the preset calculation model comprises:
long P = cpu core number × absolute value of signal intensity × 1000000000+ memory size + ip tail number;
in the formula, P is a comparison value used for obtaining priorities among a plurality of devices, the CPU core number and the memory size are device parameter values obtained in the basic information, the absolute value of signal strength is a network or WiFi strength value obtained in the basic information, and the ip tail number is the last bit value of an ip address obtained in the basic information;
the information summarizing module is used for summarizing the acquired basic information to the most advanced equipment; and the sending module is used for sending the local area network equipment basic information obtained by gathering to all the equipment.
6. The apparatus for aggregating information based on multicast domain name system according to claim 5, further comprising:
and the cache module is used for caching the basic information of the equipment and the basic information of the local area network equipment gathered by the equipment.
7. The apparatus for aggregating information based on multicast domain name system according to claim 5 or 6, wherein:
the calculation module is an integer value calculation module, obtains integer values of the plurality of devices according to the basic information by using a preset calculation model, and compares the sizes of the integer values;
the information summarizing module is a local area network equipment basic information summarizing module, and summarizes the basic information obtained by the obtaining module to the equipment with the maximum integer value to obtain the local area network equipment basic information.
CN202110986123.7A 2021-08-26 2021-08-26 Information gathering method and device based on multicast domain name system and application thereof Active CN113794994B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110986123.7A CN113794994B (en) 2021-08-26 2021-08-26 Information gathering method and device based on multicast domain name system and application thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110986123.7A CN113794994B (en) 2021-08-26 2021-08-26 Information gathering method and device based on multicast domain name system and application thereof

Publications (2)

Publication Number Publication Date
CN113794994A CN113794994A (en) 2021-12-14
CN113794994B true CN113794994B (en) 2023-02-24

Family

ID=78876405

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110986123.7A Active CN113794994B (en) 2021-08-26 2021-08-26 Information gathering method and device based on multicast domain name system and application thereof

Country Status (1)

Country Link
CN (1) CN113794994B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794994B (en) * 2021-08-26 2023-02-24 珠海格力电器股份有限公司 Information gathering method and device based on multicast domain name system and application thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056255A (en) * 2006-06-09 2007-10-17 华为技术有限公司 A multicast channel control method and the device
CN104009894A (en) * 2013-02-26 2014-08-27 海尔集团公司 Automatic acquisition method of service information in local area network and system and equipment thereof
CN106685776A (en) * 2017-02-14 2017-05-17 上海斐讯数据通信技术有限公司 Method and system of intelligent device discovery in local area network
CN108521437A (en) * 2018-02-28 2018-09-11 深圳市大迈科技有限公司 A kind of searching method and search system of lan device
CN113794994A (en) * 2021-08-26 2021-12-14 珠海格力电器股份有限公司 Information gathering method and device based on multicast domain name system and application thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341483B (en) * 2016-09-28 2019-09-10 深圳市普渡科技有限公司 A kind of distributed scheduling system communication means based on LAN multicast group
CN108055211B (en) * 2017-12-22 2020-10-30 盛科网络(苏州)有限公司 Multicast replication method, equipment and storage medium
CN112616171B (en) * 2020-12-11 2024-03-01 深圳市越疆科技有限公司 Communication method and device based on wireless local area network and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056255A (en) * 2006-06-09 2007-10-17 华为技术有限公司 A multicast channel control method and the device
CN104009894A (en) * 2013-02-26 2014-08-27 海尔集团公司 Automatic acquisition method of service information in local area network and system and equipment thereof
CN106685776A (en) * 2017-02-14 2017-05-17 上海斐讯数据通信技术有限公司 Method and system of intelligent device discovery in local area network
CN108521437A (en) * 2018-02-28 2018-09-11 深圳市大迈科技有限公司 A kind of searching method and search system of lan device
CN113794994A (en) * 2021-08-26 2021-12-14 珠海格力电器股份有限公司 Information gathering method and device based on multicast domain name system and application thereof

Also Published As

Publication number Publication date
CN113794994A (en) 2021-12-14

Similar Documents

Publication Publication Date Title
WO2013033457A1 (en) Topology discovery in a hybrid network
CN102857377B (en) The online topological automatic generation method of a kind of train network
CN112468372B (en) Method and device for detecting equipment state in power line communication network
JP2005354249A (en) Network communication terminal
JP2015062295A (en) Group owner selection with crossing requests
CN110752943A (en) Distributed fault diagnosis system and method for power transmission line
CN113794994B (en) Information gathering method and device based on multicast domain name system and application thereof
CN108901035A (en) The recognition methods of internet-of-things terminal and device
WO2018001339A1 (en) Method and apparatus for forwarding packet in virtual extensible local area network (vxlan)
WO2018006623A1 (en) Preferred access method for mobile wifi hotspot, hotspot device and terminal device
WO2021197253A1 (en) Service message transmission method and related device
CN109151620B (en) Aggregation group port switching method and device and Optical Line Terminal (OLT) equipment
WO2021102694A1 (en) Ble mesh device access method and apparatus, device and storage medium
CN108965483B (en) System implementation method for storing and pushing data of mass equipment in Internet of things system
WO2022087795A1 (en) Resource mapping method and apparatus, device, and storage medium
CN110505648A (en) A kind of anti-lost line method of wireless device
WO2022134697A1 (en) Interface data interaction method, distributed unit, and central unit
CN103384210B (en) The method of broadband communication network topologically sweeping
WO2018171264A1 (en) Network interconnection and sharing device, interconnection and sharing network, interconnection and sharing method, and device connection method
SG178407A1 (en) Method and apparatus for constructing seed group in peer-to-peer application and method for using seed group
WO2022087796A1 (en) Zigbee device attribute subscription method and apparatus, and device
CN104519017A (en) Simulation SNMP (Simple Network Management Protocol) agent end system
CN115865844B (en) Virtual-real combined dynamic flow scheduling method and device based on SDN (software defined network) and NDN (non-dynamic network)
CN114697296B (en) Distribution network method, device, storage medium and collector
CN110233713A (en) A kind of multi link communications method and system based on LLDP message

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