CN117614872A - Distributed wireless network communication method, device, storage medium and electronic equipment - Google Patents

Distributed wireless network communication method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117614872A
CN117614872A CN202311301422.8A CN202311301422A CN117614872A CN 117614872 A CN117614872 A CN 117614872A CN 202311301422 A CN202311301422 A CN 202311301422A CN 117614872 A CN117614872 A CN 117614872A
Authority
CN
China
Prior art keywords
electronic device
address
electronic equipment
wireless network
distributed wireless
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.)
Pending
Application number
CN202311301422.8A
Other languages
Chinese (zh)
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.)
Shenhua Xilinhot New Energy Co ltd
Guohua Energy Investment Co ltd
Original Assignee
Shenhua Xilinhot New Energy Co ltd
Guohua Energy Investment Co ltd
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 Shenhua Xilinhot New Energy Co ltd, Guohua Energy Investment Co ltd filed Critical Shenhua Xilinhot New Energy Co ltd
Priority to CN202311301422.8A priority Critical patent/CN117614872A/en
Publication of CN117614872A publication Critical patent/CN117614872A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure relates to a distributed wireless network communication method, a device, a storage medium and an electronic apparatus, including: acquiring a first heartbeat message to be sent to second electronic equipment by first electronic equipment; the first electronic device is any electronic device in the distributed wireless network, and the second electronic device is any electronic device except the first electronic device in the distributed wireless network; determining a target IP address of the second electronic equipment in the distributed wireless network according to the identification information of the second electronic equipment; generating a second heartbeat message according to the IP address and the first heartbeat message; and sending a second heartbeat message to the second electronic equipment. According to the technical scheme, the second heartbeat message to be sent is determined through the obtained first heartbeat message and the target IP address of the second electronic equipment, and the second heartbeat message is sent through the second electronic equipment, so that the distributed wireless network electronic equipment can send the target when communicating with each other, the occupation of a normal communication channel is avoided, and the communication quality is improved.

Description

Distributed wireless network communication method, device, storage medium and electronic equipment
Technical Field
The disclosure relates to the technical field of communication, in particular to a distributed wireless network communication method, a device, a storage medium and electronic equipment.
Background
In the prior art, the networking mode of the terminal equipment generally has a central node, if the central node has a problem, the whole network has problems, the distributed wireless network has no central node, the networking and communication of other nodes are not affected after any node has a problem, but the distributed wireless network has the condition that the nodes fall off the network, so that the distributed wireless network adopts the condition that heartbeat detection messages are mutually sent between the nodes to judge whether a certain node falls off the network, thereby updating the network node state to realize that the communication can be realized between any two nodes, but the heartbeat detection messages are not limited at present, so that excessive occupation of normal communication channel resources can be caused, and the normal communication quality between the distributed wireless network nodes is affected.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a distributed wireless network communication method, apparatus, storage medium, and electronic device.
According to a first aspect of embodiments of the present disclosure, there is provided a communication method of a distributed wireless network, applied to a first electronic device, the method including:
acquiring a first heartbeat message to be sent to second electronic equipment by the first electronic equipment; the first electronic device is any electronic device in the distributed wireless network, and the second electronic device is any electronic device except the first electronic device in the distributed wireless network;
determining a target IP address of the second electronic equipment in the distributed wireless network according to the identification information of the second electronic equipment;
generating a second heartbeat message according to the IP address and the first heartbeat message;
and sending the second heartbeat message to the second electronic equipment.
Optionally, the determining, according to the identification information of the second electronic device, the target IP address of the second electronic device in the distributed wireless network includes:
acquiring an IP address corresponding to the identification information of the second electronic equipment in an IP address lookup table according to the identification information of the second electronic equipment to obtain the target IP address;
the IP address lookup table is generated by a master device in the distributed wireless network after the distributed wireless network networking is completed and is broadcasted to other electronic devices in the distributed wireless network.
Optionally, the obtaining, according to the identification information of the second electronic device, an IP address corresponding to the identification information of the second electronic device in an IP address lookup table, to obtain the target IP address includes:
inquiring an IP address corresponding to the identification information of the second electronic equipment in an IP address lookup table according to the identification information of the second electronic equipment;
when the IP address corresponding to the identification information of the second electronic equipment exists in the IP address lookup table, determining the IP address corresponding to the identification information of the second electronic equipment as the target IP address;
and when the IP address corresponding to the identification information of the second electronic equipment does not exist in the IP address lookup table, acquiring the IP address of the second electronic equipment from the second electronic equipment as the target IP address.
Optionally, when the IP address corresponding to the identification information of the second electronic device does not exist in the IP address lookup table, acquiring the IP address of the second electronic device from the second electronic device includes:
when the IP address corresponding to the identification information of the second electronic equipment does not exist in the IP address lookup table, a request for acquiring the IP address of the second electronic equipment is sent to the second electronic equipment;
and receiving the IP address of the second electronic device fed back by the second electronic device aiming at the request.
Optionally, after the acquiring the IP address of the second electronic device from the second electronic device, the method includes:
updating the IP address lookup table stored on the first electronic device based on the IP address of the second electronic device acquired from the second electronic device, and obtaining an updated IP address lookup table;
broadcasting the updated IP address lookup table in the distributed wireless network.
Optionally, the method further comprises:
deleting the identification information and the IP address of the second electronic equipment from the IP address lookup table when the response information of the second electronic equipment for the second heartbeat message is not received within the preset time after the second heartbeat message is sent to the second electronic equipment, so as to obtain an updated IP address lookup table;
broadcasting the updated IP address lookup table in the distributed wireless network.
Optionally, the sending the second heartbeat message to the second electronic device includes:
acquiring state information of the second electronic equipment;
determining the resource occupancy rate of the second electronic equipment according to the state information;
and when the resource occupancy rate is smaller than a set threshold value, sending the second heartbeat message to the second electronic equipment.
According to a second aspect of embodiments of the present disclosure, there is provided a distributed wireless network communication apparatus comprising:
the acquisition module is used for acquiring a first heartbeat message to be sent to the second electronic equipment by the first electronic equipment; the first electronic device is any electronic device in the distributed wireless network, and the second electronic device is any electronic device except the first electronic device in the distributed wireless network;
a determining module, configured to determine a target IP address of the second electronic device in the distributed wireless network according to the identification information of the second electronic device;
the generation module is used for generating a second heartbeat message according to the IP address and the first heartbeat message;
and the sending module is used for sending the second heartbeat message to the second electronic equipment.
According to a third aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the distributed wireless network communication method provided by the first aspect of the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the distributed wireless network communication method provided by the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
in the above technical solution, a first heartbeat message to be sent by a first electronic device to a second electronic device is acquired, where the first electronic device is any electronic device in a distributed wireless network, and the second electronic device is any electronic device in the distributed wireless network except the first electronic device; determining a target IP address of the second electronic equipment in the distributed wireless network according to the identification information of the second electronic equipment; generating a second heartbeat message according to the IP address and the first heartbeat message; and sending a second heartbeat message to the second electronic equipment. In the above technical solution, the second heartbeat message to be sent is determined by the obtained first heartbeat message and the target IP address of the second electronic device in the distributed wireless network, and the second heartbeat message is sent by the second electronic device, so that when the electronic devices in the distributed wireless network communicate with each other, the electronic devices can send the second heartbeat message in a targeted manner, thereby effectively avoiding excessive occupation of normal communication channel resources and improving normal communication quality between the electronic devices in the distributed wireless network.
Additional features and advantages of the present disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification, illustrate the disclosure and together with the description serve to explain, but do not limit the disclosure. In the drawings:
fig. 1 is a flow chart illustrating a method of communication of a distributed wireless network, according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating another method of communication of a distributed wireless network, according to an example embodiment.
Fig. 3 is a flow chart illustrating another method of communication of a distributed wireless network, according to an example embodiment.
Fig. 4 is a flow chart illustrating a method of communication of yet another distributed wireless network, according to an exemplary embodiment.
Fig. 5 is a flow chart illustrating a method of communication of yet another distributed wireless network, according to an exemplary embodiment.
Fig. 6 is a flow chart illustrating a method of communication of yet another distributed wireless network, according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating a distributed wireless network communication device 700, according to an example embodiment.
Fig. 8 is a block diagram of an electronic device 800, according to an example embodiment.
Fig. 9 is a block diagram of an electronic device 900, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It is to be understood that the terms "first," "second," and the like in this disclosure are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance.
It will be further understood that although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous.
Fig. 1 is a flowchart illustrating a communication method of a distributed wireless network, as shown in fig. 1, applied to a first electronic device, according to an exemplary embodiment, the method including:
in step S11, a first heartbeat message to be sent to a second electronic device by the first electronic device is obtained; the first electronic device is any electronic device in the distributed wireless network, and the second electronic device is any electronic device except the first electronic device in the distributed wireless network.
The distributed wireless network is formed by interconnecting electronic devices distributed at different places as nodes in the network, the distributed wireless network has no central node, the communication sub-network is of a closed structure, and the communication control function is distributed on each node. The electronic device may be an intelligent terminal, and when the first electronic device and the second electronic device communicate in the distributed wireless network, a first heartbeat message to be sent to the second electronic device by the first electronic device is obtained; the first electronic device is any electronic device in the distributed wireless network, and the second electronic device is any electronic device except the first electronic device in the distributed wireless network. For example, the first electronic device and the second electronic device may be electronic devices with cooperative job tasks, two electronic devices may cooperate to complete a job task, or three devices cooperate or any two devices in more devices, and a job task may be a data calculation service or others, so that the state of the other party needs to be accurately determined in time so that the job task can be reliably completed.
In step S12, a target IP address of the second electronic device in the distributed wireless network is determined according to the identification information of the second electronic device.
Illustratively, the electronic device may be an intelligent terminal, a computer, a server, a gateway, an edge device, and the like, and the target IP address of the second electronic device in the distributed wireless network is determined according to identification information (for example, a device name, a device ID, a device MAC address, or a device serial number) of the second electronic device, where the identification information may be a device name of the second electronic device.
In step S13, a second heartbeat message is generated according to the IP address and the first heartbeat message.
In step S14, the second heartbeat message is sent to the second electronic device.
The second heartbeat message is generated through the IP address and the first heartbeat message, and the second heartbeat message carries the IP address of the second electronic device and is sent to the second electronic device.
Optionally, in the step S12, it includes:
according to the identification information of the second electronic equipment, an IP address corresponding to the identification information of the second electronic equipment is obtained in an IP address lookup table, and the target IP address is obtained;
the IP address lookup table is generated by a master device in the distributed wireless network after the distributed wireless network networking is completed and broadcast to other electronic devices in the distributed wireless network.
The identification information of the second electronic device is an equipment name of the second electronic device, and the target IP address can be obtained by querying an IP address corresponding to the equipment name of the second electronic device in an IP address lookup table in the first electronic device through the equipment name of the second electronic device.
For example: when the electronic device A sends the heartbeat message to the electronic device B, the heartbeat message possibly reaches the electronic device B through the adjacent electronic device C and the electronic device D, the IP address of the electronic device B is carried in the heartbeat message sent by the electronic device A, and the IP address of the electronic device B is known by the electronic device C and the electronic device D based on the IP address lookup table stored by the electronic device A, so that the electronic device A can send the heartbeat message to the electronic device C or the electronic device D first, then send the heartbeat message to the electronic device B by the electronic device C or the electronic device D, and then send the heartbeat message to the electronic device C and the electronic device D simultaneously instead of simultaneously sending the heartbeat message to the electronic device C and the electronic device D.
According to the technical scheme, the second heartbeat message to be sent is determined through the obtained first heartbeat message and the obtained target IP address of the second electronic equipment in the distributed wireless network, and the second heartbeat message is sent through the second electronic equipment, so that the electronic equipment in the distributed wireless network can be sent in a targeted manner when communicating with each other, excessive occupation of normal communication channel resources is avoided, and normal communication quality and communication efficiency between the electronic equipment in the distributed wireless network are improved.
Fig. 2 is a flowchart illustrating another communication method of the distributed wireless network according to an exemplary embodiment, and in step S12, as shown in fig. 2, the method includes:
in step S121, according to the identification information of the second electronic device, the IP address corresponding to the identification information of the second electronic device is queried in the IP address lookup table.
The identification information of the second electronic device is an equipment name of the second electronic device, and the IP address corresponding to the equipment name of the second electronic device is queried in the IP address lookup table in the first electronic device through the equipment name.
In step S122, when the IP address corresponding to the identification information of the second electronic device exists in the IP address lookup table, the IP address corresponding to the identification information of the second electronic device is determined as the target IP address.
In step S123, when the IP address corresponding to the identification information of the second electronic device does not exist in the IP address lookup table, the IP address of the second electronic device is acquired from the second electronic device as the target IP address.
Illustratively, when the IP address corresponding to the device name of the second electronic device is queried in the IP address lookup table in the first electronic device through the device name, when the IP address corresponding to the device name of the second electronic device exists in the IP address lookup table, determining the IP address corresponding to the device name of the second electronic device as the target IP address, when the IP address corresponding to the device name of the second electronic device is not queried in the IP address lookup table, acquiring the IP address of the second electronic device from the second electronic device, and determining the IP address as the target IP address.
Fig. 3 is a flowchart illustrating another communication method of the distributed wireless network according to an exemplary embodiment, as shown in fig. 3, in step S123, including:
in step S1231, when the IP address corresponding to the identification information of the second electronic device does not exist in the IP address lookup table, a request to acquire the IP address of the second electronic device is sent to the second electronic device.
In step S1232, the IP address of the second electronic device fed back by the second electronic device for the request is received.
In an exemplary embodiment, when the IP address corresponding to the device name of the second electronic device is not queried in the IP address lookup table, the first electronic device sends a request instruction for obtaining the IP address of the second electronic device to the second electronic device, and the first electronic device receives the IP address of the second electronic device fed back by the second electronic device for the request instruction.
Fig. 4 is a flowchart illustrating a communication method of yet another distributed wireless network according to an exemplary embodiment, and as shown in fig. 4, in step S123, further includes:
in step S1233, the IP address lookup table stored on the first electronic device is updated based on the IP address of the second electronic device acquired from the second electronic device, resulting in an updated IP address lookup table.
In step S1234, the updated IP address lookup table is broadcast in the distributed wireless network.
The second electronic device, after obtaining the IP address of the second electronic device, updates the IP address lookup table stored on the first electronic device to obtain an updated IP address lookup table, and broadcasts the updated IP address lookup table in the distributed wireless network, so that each electronic device in the distributed wireless network updates the IP address lookup table.
Fig. 5 is a flow chart illustrating a communication method of yet another distributed wireless network, according to an exemplary embodiment, as shown in fig. 5, the method further comprising:
in step S15, when the response information of the second electronic device to the second heartbeat message is not received within the preset time after the second heartbeat message is sent to the second electronic device, the identification information and the IP address of the second electronic device are deleted from the IP address lookup table, and an updated IP address lookup table is obtained.
In step S16, the updated IP address lookup table is broadcast in the distributed wireless network.
In the communication process of the distributed wireless network, if the first electronic device does not receive the response information of the second electronic device for the second heartbeat message within the preset time after the first electronic device sends the second heartbeat message to the second electronic device, and when the device name and the IP address of the second electronic device are both in the IP address lookup table of the first electronic device, deleting the device name and the IP address of the second electronic device from the IP address lookup table to obtain an updated IP address lookup table, and broadcasting the updated IP address lookup table in the distributed wireless network, so that each electronic device in the distributed wireless network updates the IP address lookup table.
Fig. 6 is a flowchart illustrating a communication method of yet another distributed wireless network according to an exemplary embodiment, and as shown in fig. 6, in step S14, includes:
in step S141, status information of the second electronic device is acquired.
In step S142, the resource occupancy of the second electronic device is determined according to the status information.
In step S143, when the resource occupancy rate is less than the set threshold, the second heartbeat message is sent to the second electronic device.
The state information of the second electronic device is obtained, the state information includes multiple sub-state information, the multiple sub-state information corresponds to different resource occupation information, the resource occupation information includes one or more of CPU occupation information, network occupation information, memory occupation information and disk occupation information, the resource occupation rate of the second electronic device is determined according to the state information, when the resource occupation rate is smaller than a set threshold, the second heartbeat message is sent to the second electronic device, the set threshold can be set in a self-defined manner according to the situation, the resource occupation rate is based on the CPU occupation information, the network occupation information, the memory occupation information and the disk occupation information, and four corresponding parameter values, such as percentage values, are obtained after quantization, the resource occupation rate is obtained according to weight values preset for the CPU occupation information, the network occupation information, the memory occupation information and the disk occupation information, then the resource occupation rate is compared with the set threshold, if the resource occupation rate is smaller than the set threshold, the second heartbeat message is sent, and if the resource occupation rate is not sent temporarily when the resource occupation rate is larger than or equal to the set threshold. When the distributed wireless network executes heartbeat detection, the influence on the processing target job task is reduced as much as possible, and the efficiency of processing the job task by the distributed wireless network is improved.
According to the technical scheme, the second heartbeat message to be sent is determined through the obtained first heartbeat message and the obtained target IP address of the second electronic equipment in the distributed wireless network, and the second heartbeat message is sent through the second electronic equipment, so that the distributed wireless network can realize targeted sending when communicating with each other, excessive occupation of normal communication channel resources is effectively avoided, and normal communication quality between the distributed wireless network electronic equipment is improved.
Fig. 7 is a block diagram of a distributed wireless network communication device 700, according to an exemplary embodiment, as shown in fig. 7, the distributed wireless network communication device 700 includes: an acquisition module 701, a determination module 702, a generation module 703 and a transmission module 704.
An obtaining module 701, configured to obtain a first heartbeat packet to be sent by the first electronic device to the second electronic device; the first electronic device is any electronic device in the distributed wireless network, and the second electronic device is any electronic device except the first electronic device in the distributed wireless network;
a determining module 702, configured to determine, according to the identification information of the second electronic device, a target IP address of the second electronic device in the distributed wireless network;
a generating module 703, configured to generate a second heartbeat message according to the IP address and the first heartbeat message;
and a sending module 704, configured to send the second heartbeat packet to the second electronic device.
Optionally, the determining module 702 is further configured to:
according to the identification information of the second electronic equipment, an IP address corresponding to the identification information of the second electronic equipment is obtained in an IP address lookup table, and the target IP address is obtained;
the IP address lookup table is generated by a master device in the distributed wireless network after the distributed wireless network networking is completed and broadcast to other electronic devices in the distributed wireless network.
Optionally, the determining module 702 includes:
the inquiring sub-module is used for inquiring the IP address corresponding to the identification information of the second electronic equipment in the IP address lookup table according to the identification information of the second electronic equipment;
a first determining sub-module, configured to determine, when an IP address corresponding to the identification information of the second electronic device exists in the IP address lookup table, the IP address corresponding to the identification information of the second electronic device as the target IP address;
and the first acquisition sub-module is used for acquiring the IP address of the second electronic equipment from the second electronic equipment as the target IP address when the IP address corresponding to the identification information of the second electronic equipment does not exist in the IP address lookup table.
Optionally, the acquiring sub-module includes:
a request sub-module, configured to send a request for obtaining an IP address of the second electronic device to the second electronic device when the IP address corresponding to the identification information of the second electronic device does not exist in the IP address lookup table;
and the receiving sub-module is used for receiving the IP address of the second electronic device fed back by the second electronic device aiming at the request.
Optionally, the determining module 702 further includes:
an updating sub-module, configured to update the IP address lookup table stored on the first electronic device based on acquiring the IP address of the second electronic device from the second electronic device, to obtain an updated IP address lookup table;
and the broadcasting sub-module is used for broadcasting the updated IP address lookup table in the distributed wireless network.
Optionally, the distributed wireless network communication device 700 further includes:
the updating module is used for deleting the identification information and the IP address of the second electronic equipment from the IP address lookup table to obtain an updated IP address lookup table when the response information of the second electronic equipment for the second heartbeat message is not received within the preset time after the second heartbeat message is sent to the second electronic equipment;
and the broadcasting module is used for broadcasting the updated IP address lookup table in the distributed wireless network.
Optionally, the sending module 704 includes:
the second acquisition sub-module is used for acquiring the state information of the second electronic equipment;
the second determining submodule is used for determining the resource occupancy rate of the second electronic equipment according to the state information;
and the sending sub-module is used for sending the second heartbeat message to the second electronic equipment when the resource occupancy rate is smaller than a set threshold value.
In the above technical solution, a first heartbeat message to be sent by a first electronic device to a second electronic device is acquired, where the first electronic device is any electronic device in a distributed wireless network, and the second electronic device is any electronic device in the distributed wireless network except the first electronic device; determining a target IP address of the second electronic equipment in the distributed wireless network according to the identification information of the second electronic equipment; generating a second heartbeat message according to the IP address and the first heartbeat message; and sending a second heartbeat message to the second electronic equipment. In the above technical solution, the second heartbeat message to be sent is determined by the obtained first heartbeat message and the target IP address of the second electronic device in the distributed wireless network, and the second heartbeat message is sent by the second electronic device, so that when the electronic devices in the distributed wireless network communicate with each other, the electronic devices can send the second heartbeat message in a targeted manner, thereby effectively avoiding excessive occupation of normal communication channel resources and improving normal communication quality between the electronic devices in the distributed wireless network.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 8 is a block diagram of an electronic device 800, according to an example embodiment. As shown in fig. 8, the electronic device 800 may include: a processor 801, a memory 802. The electronic device 800 may also include one or more of a multimedia component 803, an input/output (I/O) interface 804, and a communication component 805.
Wherein the processor 801 is configured to control the overall operation of the electronic device 800 to perform all or part of the steps of the distributed wireless network communication method described above. The memory 802 is used to store various types of data to support operation at the electronic device 800, which may include, for example, instructions for any application or method operating on the electronic device 800, as well as application-related data, such as contact data, messages sent and received, pictures, audio, video, and so forth. The Memory 802 may be implemented by any type or combination of volatile or non-volatile Memory devices, such as static random access Memory (Static Random Access Memory, SRAM for short), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM for short), programmable Read-Only Memory (Programmable Read-Only Memory, PROM for short), read-Only Memory (ROM for short), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia component 803 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen, the audio component being for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 802 or transmitted through the communication component 805. The audio assembly further comprises at least one speaker for outputting audio signals. The I/O interface 804 provides an interface between the processor 801 and other interface modules, which may be a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the electronic device 800 and other devices. Wireless communication, such as Wi-Fi, bluetooth, near field communication (Near Field Communication, NFC for short), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or a combination of more of them, is not limited herein. The corresponding communication component 805 may thus comprise: wi-Fi module, bluetooth module, NFC module, etc.
In an exemplary embodiment, the electronic device 800 can be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated ASIC), digital signal processor (Digital Signal Processor, abbreviated DSP), digital signal processing device (Digital Signal Processing Device, abbreviated DSPD), programmable logic device (Programmable Logic Device, abbreviated PLD), field programmable gate array (Field Programmable Gate Array, abbreviated FPGA), controller, microcontroller, microprocessor, or other electronic components for performing the distributed wireless network communication method described above.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the distributed wireless network communication method described above is also provided. For example, the computer readable storage medium may be the memory 802 described above including program instructions executable by the processor 801 of the electronic device 800 to perform the distributed wireless network communication method described above.
Fig. 9 is a block diagram of an electronic device 900, according to an example embodiment. For example, the electronic device 900 may be provided as a server. Referring to fig. 9, the electronic device 900 includes a processor 922, which may be one or more in number, and a memory 932 for storing computer programs executable by the processor 922. The computer program stored in memory 932 may include one or more modules each corresponding to a set of instructions. Further, the processor 922 may be configured to execute the computer program to perform the distributed wireless network communication method described above.
In addition, the electronic device 900 may further include a power supply component 926 and a communication component 950, the power supply component 926 may be configured to perform power management of the electronic device 900, and the communication component 950 may be configured to enable communication of the electronic device 900, e.g., wired or wireless communication. In addition, the electronic device 900 may also include an input/output (I/O) interface 958. The electronic device 900 may operate based on an operating system stored in the memory 932.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the distributed wireless network communication method described above is also provided. For example, the non-transitory computer readable storage medium may be the memory 932 including program instructions described above that are executable by the processor 922 of the electronic device 900 to perform the distributed wireless network communication method described above.
In another exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-described distributed wireless network communication method when executed by the programmable apparatus.
The preferred embodiments of the present disclosure have been described in detail above with reference to the accompanying drawings, but the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solutions of the present disclosure within the scope of the technical concept of the present disclosure, and all the simple modifications belong to the protection scope of the present disclosure.
In addition, the specific features described in the foregoing embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, the present disclosure does not further describe various possible combinations.
Moreover, any combination between the various embodiments of the present disclosure is possible as long as it does not depart from the spirit of the present disclosure, which should also be construed as the disclosure of the present disclosure.

Claims (10)

1. A method of communication for a distributed wireless network, applied to a first electronic device, the method comprising:
acquiring a first heartbeat message to be sent to second electronic equipment by the first electronic equipment; the first electronic device is any electronic device in the distributed wireless network, and the second electronic device is any electronic device except the first electronic device in the distributed wireless network;
determining a target IP address of the second electronic equipment in the distributed wireless network according to the identification information of the second electronic equipment;
generating a second heartbeat message according to the IP address and the first heartbeat message;
and sending the second heartbeat message to the second electronic equipment.
2. The method of claim 1, wherein the determining the target IP address of the second electronic device in the distributed wireless network according to the identification information of the second electronic device comprises:
acquiring an IP address corresponding to the identification information of the second electronic equipment in an IP address lookup table according to the identification information of the second electronic equipment to obtain the target IP address;
the IP address lookup table is generated by a master device in the distributed wireless network after the distributed wireless network networking is completed and is broadcasted to other electronic devices in the distributed wireless network.
3. The method of claim 2, wherein the obtaining the IP address corresponding to the identification information of the second electronic device in the IP address lookup table according to the identification information of the second electronic device, includes:
inquiring an IP address corresponding to the identification information of the second electronic equipment in an IP address lookup table according to the identification information of the second electronic equipment;
when the IP address corresponding to the identification information of the second electronic equipment exists in the IP address lookup table, determining the IP address corresponding to the identification information of the second electronic equipment as the target IP address;
and when the IP address corresponding to the identification information of the second electronic equipment does not exist in the IP address lookup table, acquiring the IP address of the second electronic equipment from the second electronic equipment as the target IP address.
4. The method of claim 3, wherein the obtaining the IP address of the second electronic device from the second electronic device when the IP address corresponding to the identification information of the second electronic device does not exist in the IP address lookup table comprises:
when the IP address corresponding to the identification information of the second electronic equipment does not exist in the IP address lookup table, a request for acquiring the IP address of the second electronic equipment is sent to the second electronic equipment;
and receiving the IP address of the second electronic device fed back by the second electronic device aiming at the request.
5. A method according to claim 3, wherein after said obtaining the IP address of the second electronic device from the second electronic device, the method comprises:
updating the IP address lookup table stored on the first electronic device based on the IP address of the second electronic device acquired from the second electronic device, and obtaining an updated IP address lookup table;
broadcasting the updated IP address lookup table in the distributed wireless network.
6. The method according to claim 2, wherein the method further comprises:
deleting the identification information and the IP address of the second electronic equipment from the IP address lookup table when the response information of the second electronic equipment for the second heartbeat message is not received within the preset time after the second heartbeat message is sent to the second electronic equipment, so as to obtain an updated IP address lookup table;
broadcasting the updated IP address lookup table in the distributed wireless network.
7. The method according to any one of claims 1-6, wherein the sending the second heartbeat message to the second electronic device includes:
acquiring state information of the second electronic equipment;
determining the resource occupancy rate of the second electronic equipment according to the state information;
and when the resource occupancy rate is smaller than a set threshold value, sending the second heartbeat message to the second electronic equipment.
8. A distributed wireless network communication apparatus, comprising:
the acquisition module is used for acquiring a first heartbeat message to be sent to the second electronic equipment by the first electronic equipment; the first electronic device is any electronic device in the distributed wireless network, and the second electronic device is any electronic device except the first electronic device in the distributed wireless network;
a determining module, configured to determine a target IP address of the second electronic device in the distributed wireless network according to the identification information of the second electronic device;
the generation module is used for generating a second heartbeat message according to the IP address and the first heartbeat message;
and the sending module is used for sending the second heartbeat message to the second electronic equipment.
9. A non-transitory computer readable storage medium having stored thereon a computer program, characterized in that the program when executed by a processor realizes the steps of the method according to any of claims 1-7.
10. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of claims 1-7.
CN202311301422.8A 2023-10-09 2023-10-09 Distributed wireless network communication method, device, storage medium and electronic equipment Pending CN117614872A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311301422.8A CN117614872A (en) 2023-10-09 2023-10-09 Distributed wireless network communication method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311301422.8A CN117614872A (en) 2023-10-09 2023-10-09 Distributed wireless network communication method, device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117614872A true CN117614872A (en) 2024-02-27

Family

ID=89946768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311301422.8A Pending CN117614872A (en) 2023-10-09 2023-10-09 Distributed wireless network communication method, device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117614872A (en)

Similar Documents

Publication Publication Date Title
US11240159B2 (en) Service link selection control method and device
US10637794B2 (en) Resource subscription method, resource subscription apparatus, and resource subscription system
CN106921578B (en) Method and device for generating forwarding table item
WO2015188440A1 (en) Resource subscription processing method and device
CN113542128B (en) Method and device for sending routing information
US20220141311A1 (en) Resource subscription method, device and server, and computer storage medium
US20220312309A1 (en) Method and Apparatus for Reporting User Plane Function Information, Storage Medium, and Electronic Apparatus
CN110752998B (en) ARP message processing method and related device
EP3261299A1 (en) Method and apparatus for establishing network service instance
CN107204924B (en) Link discovery method and device
US10764724B2 (en) Method and apparatus for implementing member resource processing
CN115529266B (en) Routing method, device and equipment
CN117614872A (en) Distributed wireless network communication method, device, storage medium and electronic equipment
CN110856213A (en) Method and device for switching data transmission modes, storage medium and electronic equipment
CN108574637B (en) Address self-learning method and device and switch
CN112511440B (en) Message forwarding method, system, storage medium and electronic equipment
CN110719178A (en) Network topology acquisition method and device
US11575601B2 (en) Network device and packet processing method using same
US10659938B2 (en) Registration method and communication method for application dedicated node (ADN), and nodes
WO2016074455A1 (en) Group resource update processing method, device and system, and cse
CN112804716B (en) Configuration method and device of data limit value and storage medium
US10404652B2 (en) Communication device, communication method, and program
US11870672B2 (en) Self-election processes in managed subnets implementing modified swim protocols
CN113852572B (en) Message processing method and device
CN110430268B (en) Static resource routing method and device based on distributed service

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