CN117354816A - Device networking method, device, computer device and storage medium - Google Patents

Device networking method, device, computer device and storage medium Download PDF

Info

Publication number
CN117354816A
CN117354816A CN202311327895.5A CN202311327895A CN117354816A CN 117354816 A CN117354816 A CN 117354816A CN 202311327895 A CN202311327895 A CN 202311327895A CN 117354816 A CN117354816 A CN 117354816A
Authority
CN
China
Prior art keywords
networking
target
equipment
connection number
delay
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
CN202311327895.5A
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.)
China Telecom Technology Innovation Center
China Telecom Corp Ltd
Original Assignee
China Telecom Technology Innovation Center
China Telecom Corp 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 China Telecom Technology Innovation Center, China Telecom Corp Ltd filed Critical China Telecom Technology Innovation Center
Priority to CN202311327895.5A priority Critical patent/CN117354816A/en
Publication of CN117354816A publication Critical patent/CN117354816A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a device networking method, a device networking device, computer equipment and a storage medium. The method comprises the following steps: under the condition of receiving a networking update identifier representing networking update issued by a near-field network platform, acquiring the current connection number and the target connection number of target equipment; the networking update identifier is generated by a near-field network platform according to the networking total errors of all networking target devices in the current networking, and the networking total errors are obtained based on the networking information of all networking target devices; obtaining delay information of target equipment according to the current connection number and the target connection number, and writing the delay information into service information of the target equipment to break up networking; under the condition that the target equipment is not gateway equipment, acquiring the target access equipment from the candidate access equipment according to delay information and signal strength in the acquired service information of the candidate access equipment, and accessing the target equipment into the target access equipment; by adopting the method, the networking delay can be reduced.

Description

Device networking method, device, computer device and storage medium
Technical Field
The present invention relates to the field of wireless communications and terminal technologies, and in particular, to a device networking method, an apparatus, a computer device, a storage medium, and a computer program product.
Background
With the development of wireless communication and terminal field technologies, a near-field multi-hop networking technology appears, and the communication quality of network coverage blind areas and user hot spots is greatly improved. However, the multi-hop network puts higher demands on the quality of service index, especially when the network scale increases, the network traffic may generate a lot of data backlog, thereby bringing the consequences of increasing the bit error rate and greatly increasing the time delay, and even causing the link to break when serious. As more relays are involved in the communication link, i.e. as more devices are connected to each device, the latency increases significantly, and thus there is a need for a method of device networking that reduces latency.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a device networking method, apparatus, computer device, computer readable storage medium, and computer program product that can reduce latency.
In a first aspect, the present application provides a device networking method, applied to a networked target device, including:
under the condition of receiving a networking update identifier representing networking update issued by a near-field network platform, acquiring the current connection number and the target connection number of target equipment; the networking update identifier is generated by a near-field network platform according to the networking total errors of all networking target devices in the current networking, and the networking total errors are obtained based on the networking information of all networking target devices;
Obtaining delay information of target equipment according to the current connection number and the target connection number, and writing the delay information into service information of the target equipment to break up networking;
under the condition that the target equipment is not gateway equipment, acquiring the target access equipment from the candidate access equipment according to delay information and signal strength in the acquired service information of the candidate access equipment, and accessing the target equipment into the target access equipment; the candidate access devices include node devices that have been re-networked after de-networking.
In one embodiment, obtaining the current connection number of the target device and the target connection number includes:
acquiring the current connection number of the target equipment and the connection number of each node equipment accessed to the target equipment;
and obtaining the target connection number according to the connection number of each node device and the current connection number.
In one embodiment, obtaining delay information of the target device according to the current connection number and the target connection number includes:
when the current connection number is smaller than the target connection number, reducing a preset delay value based on the initial delay of the target equipment to obtain delay information of the target equipment;
and under the condition that the current connection number is larger than the target connection number, increasing a preset delay value based on the initial delay of the target equipment to obtain delay information of the target equipment.
In one embodiment, in a case that the target device is not a gateway device, according to delay information and signal strength in the acquired service information of the candidate access device, the method includes:
transmitting a probe request frame to all channels when the target device is not a gateway device, and taking the device which returns the probe response frame as a candidate access device when receiving the probe response frame which is returned based on the probe request frame;
sending a service discovery request to the candidate access equipment and receiving service information returned by the candidate access equipment based on the service discovery request;
and obtaining delay information and signal strength of the candidate access equipment according to the service information.
In one embodiment, before the target device is not the gateway device, according to the delay information and the signal strength in the acquired service information of the candidate access device, the method further includes:
acquiring the cellular signal strength of the target equipment;
determining that the target device is not a gateway device in the case that the cellular signal strength is below a set threshold;
and under the condition that the cellular signal strength is higher than a set threshold value, determining the target equipment as gateway equipment, and establishing a networking and a base station for data transmission.
In one embodiment, the method sends a probe request frame to all channels, and in case of receiving a probe response frame returned based on the probe request frame, includes:
in the case that the probe request frame is transmitted to all channels but the probe response frame is not received, the step of transmitting the probe request frame to all channels is performed back until the probe response frame is received.
In one embodiment, obtaining the target access device from the candidate access devices includes:
acquiring a delay weight coefficient and a signal strength weight coefficient;
obtaining service quality benefit values corresponding to the candidate access devices according to the delay information and the signal intensity of the candidate access devices, and the delay weight coefficient and the signal intensity weight coefficient;
and taking the candidate access device with the largest service quality benefit value as the target access device.
In a second aspect, the present application provides a device networking method, applied to a near-field network platform, including:
obtaining the total networking error of the current networking according to the networking information of each networking target device under the current networking;
obtaining a networking update identifier according to the total networking error;
transmitting the networking update identifier to each networking target device; the networking update identifier is used for instructing each target device to generate corresponding service information according to delay information of each target device and then to break up networking under the condition that the networking update identifier characterizes networking update, and instructing each target device to determine a target access device according to the delay information and signal strength in the service information of the candidate access device to access the target access device under the condition that each target device is determined not to be a gateway device; delay information is obtained by each networking device according to the current connection number and the target connection number; the candidate access devices include node devices that have been re-networked after de-networking.
In one embodiment, obtaining the networking update identifier according to the total networking error includes:
obtaining a networking update identifier representing that networking is not updated under the condition that the total networking error is smaller than a preset target networking error;
and obtaining a networking update identifier representing networking update under the condition that the total networking error is larger than a preset target networking error.
In one embodiment, obtaining a total networking error of the current networking according to networking information of each networking device under the current networking includes:
obtaining the current connection number and the current hop number of each networking target device according to the networking information of each networking target device;
obtaining the target connection number of each networking target device based on the current connection number and the current hop count;
and obtaining the total networking error of the current networking according to the current connection number and the target connection number.
In one embodiment, obtaining the target connection number of each networked device based on the current connection number and the current hop count includes:
based on the current connection number and the current hop count, obtaining an initial networking total time delay mathematical model through a pre-constructed networking total time delay mathematical model;
Based on the initial networking total time delay mathematical model, obtaining networking total time delay mathematical models with different total time delays by utilizing a multivariate particle swarm optimization algorithm, determining the networking total time delay mathematical model with the smallest total time delay as a target networking total time delay mathematical model, and obtaining the current connection number of each networking device in the target networking total time delay mathematical model as the target connection number of each networking device.
In one embodiment, the constructing step of the networking total delay mathematical model includes:
acquiring the subcarrier bandwidth and the data transmission rate of a single-hop link of target equipment, and obtaining the minimum single-hop transmission delay of the target equipment;
obtaining the average single-hop transmission wheel times of the target equipment according to the number of the target equipment and the current connection number of the target equipment;
obtaining single-hop time delay of the target equipment according to the average single-hop transmission wheel times and the minimum single-hop transmission time delay;
obtaining the transmission delay of the target equipment according to the single-hop delay and the current hop count;
and acquiring the transmission delay of each target device, and constructing a networking total delay mathematical model of the current networking.
In one embodiment, after sending the networking update identifier to each networking device, the method further comprises;
After a preset period, resetting the networking update identifier, acquiring the optimization times of the current networking, acquiring networking information of each networking device under the newly-built networking under the condition that the optimization times are smaller than the preset maximum times, and returning to execute the step of obtaining the networking error according to the networking information to further obtain the networking update identifier until the total networking error is smaller than the preset target networking error or the optimization times are larger than or equal to the preset maximum times.
In a third aspect, the present application further provides an apparatus for device networking, which is applied to a networked target device, including:
the acquisition module is used for acquiring the current connection number and the target connection number of the target equipment under the condition of receiving a networking update identifier representing networking update issued by the near-field network platform; the networking update identifier is generated by a near-field network platform according to the networking total errors of all networking target devices in the current networking, and the networking total errors are obtained based on the networking information of all networking target devices;
the writing module is used for obtaining delay information of the target equipment according to the current connection number and the target connection number, writing the delay information into service information of the target equipment, and then disassembling networking;
The access module is used for acquiring the target access equipment from the candidate access equipment according to the delay information and the signal strength in the acquired service information of the candidate access equipment under the condition that the target equipment is not gateway equipment, and accessing the target equipment into the target access equipment; the candidate access devices include node devices that have been re-networked after de-networking.
In a fourth aspect, the present application further provides an apparatus networking device, applied to a near domain network platform, including:
the calculation module is used for obtaining the total networking error of the current networking according to the networking information of each networking target device under the current networking;
the generating module is used for obtaining a networking update identifier according to the total networking error;
the sending module is used for sending the networking update identifier to each networking target device; the networking update identifier is used for instructing each target device to generate corresponding service information according to delay information of each target device and then to break up networking under the condition that the networking update identifier characterizes networking update, and instructing each target device to determine a target access device according to the delay information and signal strength in the service information of the candidate access device to access the target access device under the condition that each target device is determined not to be a gateway device; delay information is obtained by each networking device according to the current connection number and the target connection number; the candidate access devices include node devices that have been re-networked after de-networking.
In a fifth aspect, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the above method steps when executing the computer program.
In a sixth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the above-mentioned method steps.
In a seventh aspect, the present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the above-mentioned method steps.
The device networking method, the device, the computer device, the storage medium and the computer program product, wherein the near-field network platform obtains the total networking error according to the networking information of each networking target device, generates a networking update identifier according to the total networking error, and issues the update identifier to each networking target device; under the condition that the total networking error exceeds the expected value, the networking update identifier characterizes that the networking needs to be updated; after each target device receives a networking update identifier representing networking update, the current connection number and the target connection number are obtained, so that delay information is obtained, and the delay information is written into corresponding service information to break up networking; and then, under the condition that the target equipment is not gateway equipment, acquiring delay information and signal strength in service information of other node equipment which is re-networked, determining target access equipment according to the delay information and the signal strength, and accessing the target equipment. According to the method, whether networking is required to be updated or not is judged according to the total networking error obtained by networking information, if the networking is required to be updated, networking update identifiers are sent to all target devices, delay information is obtained through the current connection number and the target connection number of each target device before the networking is updated, the connection performance of each target device is expressed by the delay information, target access devices are determined among the devices in the subsequent networking process through the delay information and the signal strength, the method is equivalent to selecting optimal access node devices, networking can be performed again by the method, overall optimization is further performed, the total networking error is reduced, overall time delay is further reduced, networking service performance is improved, and resource loss is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for a person having ordinary skill in the art.
FIG. 1 is an application environment diagram of a device networking method in one embodiment;
FIG. 2 is a flow diagram of a method of networking devices in one embodiment;
FIG. 3 is a flow diagram of determining a target access device in one embodiment;
FIG. 4 is a flow chart of a method for networking devices according to another embodiment;
FIG. 5 is a flow chart of obtaining total errors of a network in one embodiment;
FIG. 6 is a general system flow diagram of a method of networking devices in one embodiment;
FIG. 7 is a flow diagram of a networking optimization scheme of a near-field network platform in one embodiment;
FIG. 8 is a flow diagram of a networking optimization scheme of a networked device in one embodiment;
fig. 9 is a flow chart of a networking optimization scheme of a device to be accessed in one embodiment;
FIG. 10 is a block diagram of an apparatus networking device in one embodiment;
FIG. 11 is a block diagram of a device networking apparatus in another embodiment;
fig. 12 is an internal structural view of the computer terminal device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The device networking method provided by the embodiment of the application can be applied to a WiFi Direct (wireless Direct technology) -based multi-hop near-field network, namely an application environment shown in figure 1. Each target device may be connected to other targets in a networking manner through a wireless network and communicate with each other, and a part of target devices, serving as gateway devices, may perform network communication and data transmission with the base station 104 through its own cellular network, so that other devices with network requirements may be indirectly connected to the network after accessing the networking. The near domain network platform 102 may be all node devices connected to the network by a communication network; a unified network infrastructure (such as one built using WiFi Direct technology) may be provided so that devices and nodes can be interconnected and communicate to thereby be networked; it should be understood that after each target device may be interconnected by WiFi Direct technology to establish a network, each target device corresponds to a plurality of node devices in the network. The near domain network platform 102 may also provide network management functions including monitoring network status, managing devices and nodes, configuring network parameters, and the like. The near-field network platform 102 obtains the total networking error according to the networking information of each networking target device, generates a networking update identifier according to the total networking error, and the near-field network platform 102 issues the update identifier to each networking target device; under the condition that the total networking error exceeds the expected value, the networking update identifier characterizes that the networking needs to be updated; after each target device receives a networking update identifier representing networking update, the current connection number and the target connection number are obtained, so that delay information is obtained, and the delay information is written into corresponding service information to break up networking; and then under the condition that the target equipment is not gateway equipment, the target equipment acquires delay information and signal strength in service information of other node equipment which is re-networked, and determines target access equipment according to the delay information and the signal strength, and accesses the target equipment, so that the aim of re-networking is achieved. The target device may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The near domain network platform 102 may be implemented as a stand-alone server or as a cluster of servers.
In an exemplary embodiment, as shown in fig. 2, there is provided a device networking method, which is described by taking as an example that the method is applied to the networked target device in fig. 1, and includes:
step S202, under the condition that a networking update identifier representing networking update issued by a near-field network platform is received, the current connection number of the target device and the target connection number are obtained.
The networking update identifier is generated by a near domain network platform according to the networking total errors of all the networking target devices in the current networking, and the networking total errors are obtained based on the networking information of all the networking target devices.
Wherein the networking update identifier may be a unique identifier that may be used to identify a particular update operation; it may be a number, string or other form of identifier, and the specific format and rules may be defined according to the actual needs and application scenario. The current connection number may refer to the number of other devices to which the target device is connected in the network. The target connection number may be a desired connection number obtained according to the connection condition of the target device and the connection condition of the node device connected to the target device. The networking information may include node information such as an identifier, location information, status information, etc. of each node device, and may also include a connection relationship between the node devices, etc. Illustratively, the networking information may include the number of connections of each target device and the number of hops indirectly connected with the base station. The total error of networking may be obtained by summing the absolute values of the differences between the number of connections of each of all the networked target devices in the networking and the number of desired connections. Illustratively, when the networking update identifier=1, the characterizing networking needs to be updated, and the device receiving the networking update identifier needs to perform a networking update operation. When the networking update identifier=0, that is, the networking does not need to be updated, the device receiving the networking update identifier does not need to perform networking update operation. Illustratively, when the total networking error is greater than the expected value, the networking update identifier=1 generated by the near domain network platform characterizes that the networking needs to be updated; when the total networking error is smaller than the expected value, the networking update identifier=0 generated by the near domain network platform characterizes that networking does not need to be updated.
Step S204, obtaining delay information of the target equipment according to the current connection number and the target connection number, and after writing the delay information into service information of the target equipment, the network is broken.
The delay information can be used for representing the connectivity of the target equipment, and can be obtained by adaptively adjusting the delay information representing the connectivity of the target equipment on the basis of initial delay information according to the magnitude relation between the current connection number and the target connection number; the service information may refer to information related to the networking of the device, which is transmitted to the other device after responding to a service discovery request of the other device, and may include information of delay information, signal strength, network rate, channel bandwidth, and the like of the target device. Each target device obtains respective delay information through respective current connection number and target connection number, and writes the delay information into respective service information, namely, the respective service information is updated, so that the connection condition of the current networking is recorded, the connection condition of the current networking is adaptively adjusted in the networking when the next networking is performed after the networking is released, and the total networking error is reduced.
Step S206, obtaining the target access equipment from the candidate access equipment according to the delay information and the signal strength in the obtained service information of the candidate access equipment under the condition that the target equipment is not gateway equipment, and accessing the target equipment into the target access equipment; the candidate access devices include node devices that have been re-networked after de-networking.
As shown in fig. 1, the gateway device may be a target device directly connected to the base station in the network, the gateway device may be connected to the base station through its own cellular network, and perform data transmission, network communication, etc. with the base station, the non-gateway device in the network may be connected to the gateway device to form a relay device, and after the device having network requirements accesses the relay device, the network communication and data transmission requirements may be achieved through a path from the relay device to the gateway device to the base station. The target device may determine whether it may become a gateway device by determining its own network signal strength, thereby establishing a networking with the identity of the gateway device or accessing a networking with the identity of a non-gateway device. The target device of the non-gateway device takes the node device which is re-networked as a candidate access device so as to send a service discovery request to the node device to acquire service information, and the connectivity of each candidate access device is judged through delay information and signal strength in the service information so as to select the target access device, and connection is established with the target access device, so that the node device is accessed into the network. The signal strength of the candidate access device may refer to the wireless signal strength between the target device and the candidate device, and may represent the stability of the channel of the target device if the target device is directly connected with the candidate access device.
In the device networking method, the near-field network platform judges whether networking needs to be updated or not through the networking total error obtained according to networking information, if so, the networking updating identifier is sent to each target device, before the target devices update networking, delay information is obtained through the current connection number and the target connection number, the connection performance of the target devices is expressed through the delay information, in the subsequent networking process, the target access devices are determined through the delay information and the signal strength among the devices, which is equivalent to selecting the optimal access node devices.
In one exemplary embodiment, obtaining the current connection number of the target device and the target connection number includes: acquiring the current connection number of the target equipment and the connection number of each node equipment accessed to the target equipment; and obtaining the target connection number according to the connection number of each node device and the current connection number.
The number of connections of each node device accessing the target device may be the sum of the numbers of respective connection devices of all node devices connected to the target device. The target equipment can obtain the target connection number of the target equipment according to the current connection number and the connection number of each node equipment accessed to the target equipment; specifically, it can be obtained from the following formula:
The target connection number R (i) of the target device i may be obtained by dividing the sum of the connection numbers R' (j) of j node devices accessing the target device i by the current connection number R (i) of the target device i.
In this embodiment, the number of target connections of the target device is obtained by accessing the number of connections of each node device of the target device and the current number of connections of the target device, so that the number of target connections is reasonably determined, resources can be fully utilized, load balancing is realized, scalability is improved, and therefore, performance, stability and availability of the system are improved.
In an exemplary embodiment, obtaining delay information of the target device according to the current connection number and the target connection number includes: when the current connection number is smaller than the target connection number, reducing a preset delay value based on the initial delay of the target equipment to obtain delay information of the target equipment; and under the condition that the current connection number is larger than the target connection number, increasing a preset delay value based on the initial delay of the target equipment to obtain delay information of the target equipment.
The initial delay may be an initial delay value set by the near-field network platform according to the networking scale or the networking target performance during networking, and the initial delay value may be configured to each target device as an initial basic parameter, so that the near-field network platform is not required to be reconfigured after initializing the device information. The preset delay value may be a fixed value set according to the networking scale and the actual optimization requirements, and it should be understood that the preset delay value is smaller than the initial delay value. It should be understood that in the case where the current connection number is smaller than the target connection number, the target device may increase the connection number, that is, may reconnect the device to fully exert the performance, so that the initial delay is reduced by the preset delay value as delay information of the target device; otherwise, the preset delay value is increased.
In this embodiment, when the current connection number is smaller than the target connection number, the initial delay is reduced by a preset delay value to be used as delay information of the target device, otherwise, the preset delay value is increased, so that the delay information of the target device can be adaptively adjusted according to the connection condition of the target device in the current networking, and the efficiency and the networking quality of the next networking are improved.
In an exemplary embodiment, in a case where the target device is not a gateway device, according to delay information and signal strength in the acquired service information of the candidate access device, the method includes: transmitting a probe request frame to all channels when the target device is not a gateway device, and taking the device which returns the probe response frame as a candidate access device when receiving the probe response frame which is returned based on the probe request frame; sending a service discovery request to the candidate access equipment and receiving service information returned by the candidate access equipment based on the service discovery request; and obtaining delay information and signal strength of the candidate access equipment according to the service information.
The channel refers to a specific frequency range or frequency band used for transmitting data in wireless communication, different wireless communication technologies and standards use different channels for data transmission, and in practical application, the used channel needs to be determined according to specific wireless communication technologies and equipment requirements. The probe request frame may be used to probe whether there are connectable node devices in the network in all channels, and the probe response frame may be used to characterize the responding device as a node device in the network, and may provide connection to access the network. After the target device sends the probe request frames to all channels, it receives part of the probe response frames and uses the response devices as candidate access devices, and sends service discovery requests to the candidate access devices, so as to obtain service information returned by the candidate access devices, and obtain delay information and signal strength belonging to the candidate access devices according to the service information.
In this embodiment, the candidate access device is determined by sending a probe request frame to all channels, and the service information is obtained by sending a service discovery request to the candidate access device, so that the corresponding delay information and signal strength are further obtained, and the service information of the candidate access device can be obtained efficiently and quickly, thereby determining the delay information and the signal strength.
In an exemplary embodiment, in a case that the target device is not a gateway device, before the step of obtaining delay information and signal strength in the service information of the candidate access device, the method further includes: acquiring the cellular signal strength of the target equipment; determining that the target device is not a gateway device in the case that the cellular signal strength is below a set threshold; and under the condition that the cellular signal strength is higher than a set threshold value, determining the target equipment as gateway equipment, and establishing a networking and a base station for data transmission.
The cellular signal strength refers to the strength of a cellular network signal received by a mobile phone or other wireless devices in mobile communication, and the stronger signal strength can indicate that the distance between the device and a cellular base station is closer, the signal quality is better, and the communication quality is higher. And under the condition that the cellular signal strength of the target equipment is lower than the set threshold value, the target equipment is not used as gateway equipment, and the influence on the data transmission performance of networking is avoided.
In an exemplary embodiment, the method includes transmitting a probe request frame to all channels, and in case of receiving a probe response frame returned based on the probe request frame, including: in the case that the probe request frame is transmitted to all channels but the probe response frame is not received, the step of transmitting the probe request frame to all channels is performed back until the probe response frame is received.
In this embodiment, when the probe request frame is sent to all channels but the probe response frame is not received, the step of sending the probe request frame to all channels is performed by returning until the probe response frame is received, so that the target device is ensured to execute the networking process, the situation that the candidate access device is not detected and is idle and does not participate in the networking is avoided, and the reliability of establishing the networking is improved.
In an exemplary embodiment, as shown in fig. 3, obtaining a target access device from candidate access devices includes:
step S302, a delay weight coefficient and a signal strength weight coefficient are obtained.
Step S304, according to the delay information and signal intensity of each candidate access device, the corresponding service quality benefit value of each candidate access device is obtained with the delay weight coefficient and the signal intensity weight coefficient.
And step S306, taking the candidate access device with the largest service quality benefit value as the target access device.
Wherein the quality of service benefit value may be determined by the following formula:
Q(j)=a1D(j)+a2L(j)
wherein Q (j) represents a quality of service benefit value of the candidate access device j, a1 represents a signal strength weight coefficient, a2 represents a delay weight coefficient, D (j) represents a signal strength of the device j, and L (j) represents delay information of the device j.
In this embodiment, the sum of different weights is used to express the quality of service benefit value by the signal strength and the delay information, so that the service performance of the candidate access device in the network can be accurately expressed, and the high quality of service of the newly-built network can be ensured by connecting the candidate access device with the largest quality of service benefit value.
In an exemplary embodiment, as shown in fig. 4, a device networking method is provided, where the method is applied to the application environment shown in fig. 1, and is illustrated by taking a near-field network platform 102 as an example, and includes:
step S402, obtaining the total networking error of the current networking according to the networking information of each networking target device under the current networking.
The networking information may refer to information reported by the networking device to the near domain network platform periodically, for example, information such as electric quantity, signal strength, networking connection number, networking hop number, connection number of next hop relay node device, etc. of each device in the networking. The total networking error can be obtained by the sum of absolute values of differences between the respective connection numbers of all the networking target devices in the networking and the expected connection numbers, and can be used for expressing the error condition of the total networking connection numbers and the total networking expected connection numbers.
Step S404, obtaining the networking update identifier according to the total networking error.
Step S406, the networking update identifier is sent to each networking target device.
The networking update identifier is used for indicating each target device to generate corresponding service information according to delay information of each target device and then to break up networking under the condition that the networking update identifier characterizes networking update, and indicating each target device to determine the target access device according to the delay information and signal strength in the service information of the candidate access device to access the target access device under the condition that the target device is determined not to be a gateway device; delay information is obtained by each networking device according to the current connection number and the target connection number; the candidate access devices include node devices that have been re-networked after de-networking.
After the networking update identifier is obtained through the total networking error, the networking update identifier is sent to all target devices under the current networking.
In the device networking method, the near-field network platform judges whether networking needs to be updated or not through the networking total error obtained according to networking information, if so, the networking updating identifier is sent to each target device, before the target devices update networking, delay information is obtained through the current connection number and the target connection number, the connection performance of the target devices is expressed through the delay information, in the subsequent networking process, the target access devices are determined through the delay information and the signal strength among the devices, which is equivalent to selecting the optimal access node devices.
In an exemplary embodiment, obtaining the networking update identifier according to the total networking error includes: obtaining a networking update identifier representing that networking is not updated under the condition that the total networking error is smaller than a preset target networking error; and obtaining a networking update identifier representing networking update under the condition that the total networking error is larger than a preset target networking error.
The preset target networking error may be determined by combining the networking scale and the historical networking parameters.
In this embodiment, the networking update identifiers with different meanings are generated by judging the total networking error and the preset target networking error, so as to indicate whether the networking is updated, and whether the networking is updated can be flexibly determined according to the real networking situation.
In an exemplary embodiment, as shown in fig. 5, according to the networking information of each networking device under the current networking, obtaining the total networking error of the current networking includes:
step S502, according to the networking information of each networking target device, the current connection number and the current hop number of each networking target device are obtained.
Step S504, based on the current connection number and the current hop count, the target connection number of each networking target device is obtained.
Step S506, obtaining the total networking error of the current networking according to the current connection number and the target connection number.
The current connection number and the current hop number of the target equipment can be obtained according to the networking connection number and the networking hop number in the networking information of the target equipment; the target connection number of each networking target device can construct a mathematical model according to networking parameters such as the current connection number, the current hop number and the like, and the networking structure is optimized and calculated by utilizing the mathematical model, so that the target connection number of the target device is obtained. The total networking error can be obtained by the sum of absolute values of differences between current connection numbers and target connection numbers of all networking target devices in the networking, and can be used for expressing the error condition of the total networking connection numbers and the total networking target connection numbers.
In this embodiment, the total networking error of the current networking is obtained through the current connection numbers and the target connection numbers of all the target devices under the current networking, so that the error condition between the networking and the target can be truly expressed, and reliable and accurate data support is provided for the updating judgment of the networking.
In an exemplary embodiment, obtaining the target connection number of each networked device based on the current connection number and the current hop count includes: based on the current connection number and the current hop count, obtaining an initial networking total time delay mathematical model through a pre-constructed networking total time delay mathematical model; based on the initial networking total time delay mathematical model, obtaining networking total time delay mathematical models with different total time delays by utilizing a multivariate particle swarm optimization algorithm, determining the networking total time delay mathematical model with the smallest total time delay as a target networking total time delay mathematical model, and obtaining the current connection number of each networking device in the target networking total time delay mathematical model as the target connection number of each networking device.
Specifically, the construction step of the networking total time delay mathematical model comprises the following steps:
acquiring the subcarrier bandwidth and the data transmission rate of a single-hop link of target equipment, and obtaining the minimum single-hop transmission delay of the target equipment; target device u n To target device u k Minimum single hop transmission delay tau of (1) n,k Can be determined by the following formula:
τ n,k =(C n,k ) -1 =(ΔBR n,k ) -1
wherein C is n,k Is the link capacity, Δb is the subcarrier bandwidth, R n,k Is the data transmission rate.
Obtaining the average single-hop transmission wheel times of the target equipment according to the number of the target equipment and the current connection number of the target equipment; on the basis of the formula, the average single-hop transmission round numberIs determined by the following formula:
wherein epsilon is the destination device u of the data packet from the transmitting end n (the current hop count is h n ) Turn to another target device at the receiving end. Target device u n The probability of successful transmission is:
obtaining single-hop time delay of the target equipment according to the average single-hop transmission wheel times and the minimum single-hop transmission time delay; based on the above formula, single-hop delay T n,k Can be determined by the following formula:
the end-to-end delay consists of four parts, namely transmission delay, propagation delay, queuing delay and processing delay; propagation delay is short compared with other time, and is ignored; the processing delay is not considered here as a fixed overhead. Since queuing delay is related to network capacity and collision, when the target device detects that the channel is busy, the target device automatically withdraws, and the average queuing delay is T w =(1+N cw )T slot 2, wherein N cw : time slot length of back-off window, T slot : a back-off window.
Obtaining the transmission delay of the target equipment according to the single-hop delay and the current hop count; on the basis of the above formula, the target device u n Transmission delay T to base station gNB total Can be determined by the following formula:
and acquiring the transmission delay of each target device, and constructing a networking total delay mathematical model of the current networking. Based on the above formula, the mathematical model can be expressed as:
s.t.:1≤h n ≤H,
/>
wherein H is the maximum hop count value set by networking; gamma ray hn Is the current target device u n Maximum number of connections; u is a target device set in the networking; n (N) u Is the number of target devices in the network; r is R T Is the link minimum transmission rate; c (C) n,k Is the capacity of the link and,is user u n Is connected to the set of devices.
In order to obtain networking with low networking total time delay, a multivariate particle swarm optimization algorithm is utilized to obtain networking total time delay mathematical models with different total time delays, the networking total time delay mathematical model with the smallest total time delay is determined to be a target networking total time delay mathematical model, and the current connection number of each networking device in the target networking total time delay mathematical model is obtained to serve as the target connection number of each networking device.
In the above embodiment, a total networking delay mathematical model is constructed based on networking information, a total networking delay mathematical model with different total delays is obtained by using a multivariate particle swarm optimization algorithm, the total networking delay mathematical model with the smallest total delay is determined as a target total networking delay mathematical model, the current connection number of each networking device in the target total networking delay mathematical model is obtained as the target connection number of each networking device, the target connection number of each networking device under the current networking is reasonably determined, and reliable data support is provided for reconstructing networking for improving service quality.
In an exemplary embodiment, after sending the networking update identifier to each networking device, further comprising; after a preset period, resetting the networking update identifier, acquiring the optimization times of the current networking, acquiring networking information of each networking device under the newly-built networking under the condition that the optimization times are smaller than the preset maximum times, and returning to execute the step of obtaining the networking error according to the networking information to further obtain the networking update identifier until the total networking error is smaller than the preset target networking error or the optimization times are larger than or equal to the preset maximum times.
The preset period may be determined according to the time established by each networking in the history record, or may be determined according to the networking requirements in different environments. Resetting the networking update identifier may refer to initializing the networking update identifier without any impact on the devices under the networking. The near domain network platform may set the initial optimization number to 0 times, when the networking first issues the networking update identifier=1, increase the initial optimization number by 1 time, reset the networking update identifier after the networking update identifier is sent to each of the networking devices for a preset period, and then obtain the current networking optimization number (i.e. 1 time), and set the maximum preset number to 6 times, for example, so that the current optimization number is 1 time less than the maximum preset number of 6 times, obtain networking information of each of the networking devices under the newly built networking, and return to perform the step of obtaining the networking error according to the networking information to further obtain the networking update identifier until the total networking error is less than the preset target networking error or the optimization number is greater than or equal to the preset maximum number of 6 times.
In this embodiment, the total error calculation of newly built networking is performed again after the preset period of networking is broken, meanwhile, the current optimization times of networking are obtained, and when the total error of networking is smaller than the preset target networking error or the optimization times are greater than or equal to the preset maximum times, the information obtaining of networking is stopped to judge whether to generate the networking update identifier for updating networking, so that the endless updating of networking is avoided, network resources are saved, and the networking optimized in the preset maximum times is ensured to have lower time delay, thereby ensuring the service quality of networking.
In an exemplary embodiment, an overall system flow chart of a device networking method may be shown in fig. 6, where, specifically, a network optimization scheme of a near-domain network platform group may be shown in fig. 7, including:
(1) System initialization, setting target networking error R e Maximum optimization times T m (maximum preset times), initializing networking update identifier=0, and optimizing time t=0.
(2) The system collects information such as the electric quantity, the signal intensity, the networking connection number, the networking hop number, the connection number of the next hop relay and the like of each terminal device.
(3) Calculating the total networking error r of the current networking e : and summing absolute values of differences between the current connection numbers R (i) of all the terminals i and the target connection numbers R (i) of the networking to obtain a total networking error.
The networking target connection number R (i) can be obtained by a networking optimization algorithm through a near domain network platform. Total error r of networking e Can be determined by the following formula:
(4) Determining the total error r of the current networking e Whether or not it is smaller than the target networking error R e . If yes, turning to the step (6); otherwise, the update networking update flag is set to 1, and the optimization counter t=t+1.
(5) After a preset period, judging whether the current optimization times T is smaller than the maximum optimization times T m . If the maximum times are not reached, the step (2) is carried out, and the route optimization step is repeated until the network networking error is smaller than the set range or the current times exceed the maximum optimization times; otherwise, the networking update identifier=0 is reset, and the step (6) is carried out.
(6) And the platform issues control instructions to all devices in the group and updates the networking update identifier. Ending the flow.
Specifically, as shown in fig. 8, the networking update scheme, i.e., sub-flow (1), of the terminal-side networking device may include:
1) Initializing equipment information and networking information by the terminal m accessed to the networking: the weight factors a1 and a2 are set, information such as the equipment electric quantity E, the connection number r, the hop number h, the next hop relay connection number r' and the like is collected, and the initialization delay information is initial delay.
2) And judging whether the current networking update identifier is equal to 1, if the current networking update identifier is equal to 1, turning to the step 3), otherwise turning to the step 7.
3) The current target connection number R (m) of the terminal node is calculated, and the calculation method is as follows: r (m) =sum of terminal m child node n connection number R' (n) and/terminal own connection number R (m). Terminal u m The target connection number R (m) of (c) may be determined by the following formula:
4) Judging the relation between the connection number R (m) of the current terminal and the target connection number R (m), if R < R, decreasing the delay information L (m) by a preset delay value delta L, and if R > R, increasing the delay information L (m) by the preset delay value delta L.
5) The device updates delay information L (m) in the service discovery query information (SD query, service Device Query) of the global broadcast.
6) And (5) the existing networking is released, and the sub-process (2) is carried out to re-networking.
7) Ending the sub-flow (1).
Specifically, as shown in fig. 9, the networking update scheme, i.e., sub-flow (2), of the device to be accessed at the terminal side may include:
(1) And (5) judging gateway equipment. If the cellular signal strength of the equipment to be accessed is higher than the set threshold value, the equipment becomes gateway equipment and jumps to the step (5); otherwise, go to step (2).
(2) The terminal performs a device discovery process: periodic scanning is performed on all channels and Probe Request frames (Probe requests) are sent for device discovery and service discovery.
(3) If the terminal scans Probe Response frames (Probe responses) from other terminals j (candidate access devices), service discovery query information (SD query) is sent to perform service discovery. And analyzing the delay information L (j) and the signal strength D (j) of GO in the service information (SD Response) of the service discovery query Response, and constructing a quality of service (QoS, quality of Service) benefit function Q (j). And (5) the terminal selects a Service Set Identifier (SSID) with the best service quality benefit value GO to establish a group for the target access equipment (last hop), marks itself as a relay GO, and goes to the step (5). Otherwise, go to step (4). Wherein GO (Group Owner) is a group manager in the networking. The quality of service benefit function Q (j) may be determined by the following formula:
Q(j)=a1D(j)+a2L(j)
(4) If the terminal does not receive the Probe Response frame or Beacon frame after scanning all channels, repeating the step (3) until the scanning period timer is over or other GO Probe Response frames are scanned.
(5) And (3) the terminal equipment is built, data transmission is carried out between the LC (Legacy Client) identity and the base station, and the sub-flow (2) is ended.
Specifically, the networking optimization algorithm may include:
the near field network platform obtains networking information, and obtains the minimum single-hop transmission delay of the target equipment through the subcarrier bandwidth and the data transmission rate of the single-hop link of the target equipment in the networking information; target device u n To target device u k Minimum single hop transmission delay tau of (1) n,k Can be determined by the following formula:
τ n,k =(C n,k ) -1 =(ΔBR n,k ) -1
wherein C is n,k Is the link capacity, Δb is the subcarrier bandwidth, R n,k Is the data transmission rate.
Obtaining the average single-hop transmission wheel times of the target equipment according to the number of the target equipment in the networking and the current connection number of the target equipment; on the basis of the formula, the average single-hop transmission round numberIs determined by the following formula:
Wherein epsilon is the destination device u of the data packet from the transmitting end n (the current hop count is h n ) Turn to another target device at the receiving end. Target device u n The probability of successful transmission is:
obtaining single-hop time delay of the target equipment according to the average single-hop transmission wheel times and the minimum single-hop transmission time delay; based on the above formula, single-hop delay T n,k Can be determined by the following formula:
the end-to-end delay consists of four parts, namely transmission delay, propagation delay, queuing delay and processing delay; propagation delay is short compared with other time, and is ignored; the processing delay is not considered here as a fixed overhead. Since queuing delay is related to network capacity and collision, when the target device detects that the channel is busy, the target device automatically withdraws, and the average queuing delay is T w =(1+N cw )T slot 2, wherein N cw : time slot length of back-off window, T slot : a back-off window.
Obtaining the transmission delay of the target equipment according to the single-hop delay and the current hop count; on the basis of the above formula, the target device u n Transmission delay T to base station gNB total Can be determined by the following formula:
and acquiring the transmission delay of each target device, and constructing a networking total delay mathematical model of the current networking. Based on the above formula, the mathematical model can be expressed as:
s.t.:1≤h n ≤H,
/>
wherein H is the maximum hop count value set by networking; gamma ray hn Is the current target device u n Maximum number of connections; u is a target device set in the networking; n (N) u Is the number of target devices in the network; r is R T Is the link minimum transmission rate; c (C) n,k Is the capacity of the link and,is user u n Is connected to the set of devices.
In order to obtain networking with low networking total time delay, a multivariate particle swarm optimization algorithm is utilized to obtain networking total time delay mathematical models with different total time delays, the networking total time delay mathematical model with the smallest total time delay is determined to be a target networking total time delay mathematical model, and the current connection number of each networking device in the target networking total time delay mathematical model is obtained to serve as the target connection number of each networking device.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a device networking device for realizing the above related device networking method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of one or more device networking devices provided below may refer to the limitation of the device networking method described above, and will not be repeated herein.
In an exemplary embodiment, as shown in fig. 10, there is provided a device networking apparatus 800 applied to a networked target device, including: an acquisition module 801, a writing module 802, and an access module 803, wherein:
an obtaining module 801, configured to obtain a current connection number of a target device and a target connection number when a networking update identifier for characterizing a networking update issued by a near-field network platform is received; the networking update identifier is generated by the near domain network platform according to the networking total errors of all the networking target devices in the current networking, and the networking total errors are obtained based on the networking information of all the networking target devices.
And the writing module 802 is configured to obtain delay information of the target device according to the current connection number and the target connection number, and write the delay information into service information of the target device to break up networking.
An access module 803, configured to obtain, if the target device is not a gateway device, the target access device from the candidate access devices according to delay information and signal strength in the obtained service information of the candidate access devices, and access the target device to the target access device; the candidate access devices include node devices that have been re-networked after de-networking.
In an exemplary embodiment, the obtaining module 801 is further configured to obtain a current connection number of the target device and a connection number of each node device accessing the target device; and obtaining the target connection number according to the connection number of each node device and the current connection number.
In an exemplary embodiment, the writing module 802 is further configured to, in a case where the current connection number is smaller than the target connection number, reduce the preset delay value based on the initial delay of the target device, and obtain delay information of the target device; and under the condition that the current connection number is larger than the target connection number, increasing a preset delay value based on the initial delay of the target equipment to obtain delay information of the target equipment.
In an exemplary embodiment, the above access module 803 is further configured to send a probe request frame to all channels in a case where the target device is not a gateway device, and in a case where a probe response frame returned based on the probe request frame is received, take a device that returns the probe response frame as a candidate access device; sending a service discovery request to the candidate access equipment and receiving service information returned by the candidate access equipment based on the service discovery request; and obtaining delay information and signal strength of the candidate access equipment according to the service information.
In an exemplary embodiment, the access module 803 is further configured to obtain a cellular signal strength of the target device; determining that the target device is not a gateway device in the case that the cellular signal strength is below a set threshold; and under the condition that the cellular signal strength is higher than a set threshold value, determining the target equipment as gateway equipment, and establishing a networking and a base station for data transmission.
In an exemplary embodiment, the above access module 803 is further configured to, in a case where a probe request frame is sent to all channels but a probe response frame is not received, return to performing the step of sending the probe request frame to all channels until the probe response frame is received.
In an exemplary embodiment, the access module 803 is further configured to obtain a delay weight coefficient and a signal strength weight coefficient; obtaining service quality benefit values corresponding to the candidate access devices according to the delay information and the signal intensity of the candidate access devices, and the delay weight coefficient and the signal intensity weight coefficient; and taking the candidate access device with the largest service quality benefit value as the target access device.
In an exemplary embodiment, as shown in fig. 11, there is provided a device networking apparatus 900, applied to a near-field network platform, including: a calculation module 901, a generation module 902 and a transmission module 903, wherein:
The calculation module 901 is configured to obtain a total networking error of the current networking according to networking information of each networking target device under the current networking.
And a generating module 902, configured to obtain a networking update identifier according to the total networking error.
A sending module 903, configured to send a networking update identifier to each networking target device; the networking update identifier is used for instructing each target device to generate corresponding service information according to delay information of each target device and then to break up networking under the condition that the networking update identifier characterizes networking update, and instructing each target device to determine a target access device according to the delay information and signal strength in the service information of the candidate access device to access the target access device under the condition that each target device is determined not to be a gateway device; delay information is obtained by each networking device according to the current connection number and the target connection number; the candidate access devices include node devices that have been re-networked after de-networking.
In an exemplary embodiment, the generating module 902 is further configured to obtain a networking update identifier that characterizes that networking is not updated when a total networking error is less than a preset target networking error; and obtaining a networking update identifier representing networking update under the condition that the total networking error is larger than a preset target networking error.
In an exemplary embodiment, the calculating module 901 is further configured to obtain a current connection number and a current hop number of each networked target device according to networking information of each networked target device; obtaining the target connection number of each networking target device based on the current connection number and the current hop count; and obtaining the total networking error of the current networking according to the current connection number and the target connection number.
In an exemplary embodiment, the calculating module 901 is further configured to obtain an initial networking total delay mathematical model based on the current connection number and the current hop count through a pre-constructed networking total delay mathematical model; based on the initial networking total time delay mathematical model, obtaining networking total time delay mathematical models with different total time delays by utilizing a multivariate particle swarm optimization algorithm, determining the networking total time delay mathematical model with the smallest total time delay as a target networking total time delay mathematical model, and obtaining the current connection number of each networking device in the target networking total time delay mathematical model as the target connection number of each networking device.
In an exemplary embodiment, the sending module 903 is further configured to reset the networking update identifier after a preset period, obtain the number of optimizations of the current networking, obtain networking information of each networking device under the newly-built networking when the number of optimizations is less than a preset maximum number, and return to execute the step of obtaining a networking error according to the networking information to further obtain the networking update identifier until the total networking error is less than a preset target networking error or the number of optimizations is greater than or equal to the preset maximum number.
The modules in the device networking apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In an exemplary embodiment, a computer device, which may be a terminal, is provided, and an internal structure thereof may be as shown in fig. 12. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a device networking method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 12 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use, and processing of the related data are required to meet the related regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above 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 only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (18)

1. A method of networking devices, applied to a networked target device, the method comprising:
under the condition of receiving a networking update identifier representing networking update issued by a near-field network platform, acquiring the current connection number and the target connection number of the target equipment; the networking update identifier is generated by the near field network platform according to the networking total errors of all networking target devices in the current networking, and the networking total errors are obtained based on the networking information of all networking target devices;
Obtaining delay information of the target equipment according to the current connection number and the target connection number, and writing the delay information into service information of the target equipment to break up networking;
acquiring target access equipment from candidate access equipment according to delay information and signal strength in the acquired service information of the candidate access equipment under the condition that the target equipment is not gateway equipment, and accessing the target equipment into the target access equipment; the candidate access equipment comprises node equipment which is re-networked after the network is disconnected.
2. The method of claim 1, wherein the obtaining the current connection number of the target device and the target connection number comprises:
acquiring the current connection number of the target equipment and the connection number of each node equipment accessed to the target equipment;
and obtaining the target connection number according to the connection number of each node device and the current connection number.
3. The method according to claim 2, wherein the obtaining delay information of the target device according to the current connection number and the target connection number includes:
When the current connection number is smaller than the target connection number, reducing a preset delay value based on the initial delay of the target equipment to obtain delay information of the target equipment;
and under the condition that the current connection number is larger than the target connection number, increasing the preset delay value based on the initial delay of the target equipment to obtain delay information of the target equipment.
4. The method according to claim 1, wherein, in the case that the target device is not a gateway device, according to delay information and signal strength in the acquired service information of the candidate access device, the method comprises:
transmitting a probe request frame to all channels in the case that the target device is not a gateway device, and taking a device returning the probe response frame as a candidate access device in the case that a probe response frame returned based on the probe request frame is received;
sending a service discovery request to the candidate access equipment and receiving service information returned by the candidate access equipment based on the service discovery request;
and obtaining the delay information and the signal strength of the candidate access equipment according to the service information.
5. The method according to claim 4, wherein, in the case that the target device is not a gateway device, before the step of obtaining delay information and signal strength in service information of the candidate access device, the method further comprises:
acquiring the cellular signal strength of the target equipment;
determining that the target device is not a gateway device if the cellular signal strength is below a set threshold;
and under the condition that the cellular signal strength is higher than a set threshold value, determining the target equipment as gateway equipment, and establishing networking and base station for data transmission.
6. The method of claim 4, wherein the transmitting a probe request frame to all channels and, in the case of receiving a probe response frame returned based on the probe request frame, comprises:
in the case that the probe request frame is transmitted to all channels but the probe response frame is not received, the step of transmitting the probe request frame to all channels is performed back until the probe response frame is received.
7. The method of claim 1, wherein the obtaining the target access device from the candidate access devices comprises:
Acquiring a delay weight coefficient and a signal strength weight coefficient;
obtaining a service quality benefit value corresponding to each candidate access device according to the delay information and the signal strength of each candidate access device and the delay weight coefficient and the signal strength weight coefficient;
and taking the candidate access equipment with the largest service quality benefit value as the target access equipment.
8. A method for networking devices, applied to a near-field network platform, the method comprising:
obtaining the total networking error of the current networking according to the networking information of each networking target device under the current networking;
obtaining a networking update identifier according to the networking total error;
transmitting the networking update identifier to each networking target device; the networking update identifier is used for indicating each target device to generate corresponding service information according to delay information of each target device and then to break up networking under the condition that the networking update identifier represents networking update, and indicating each target device to determine a target access device according to the delay information and signal strength in the service information of the candidate access device to access the target access device under the condition that the target device is determined not to be a gateway device; the delay information is obtained by each networking device according to the current connection number and the target connection number; the candidate access equipment comprises node equipment which is re-networked after the network is disconnected.
9. The method of claim 8, wherein the obtaining a networking update identifier according to the networking total error comprises:
obtaining a networking update identifier representing that networking is not updated under the condition that the total networking error is smaller than a preset target networking error;
and obtaining a networking update identifier representing networking update under the condition that the total networking error is larger than a preset target networking error.
10. The method according to claim 9, wherein the obtaining the total networking error of the current networking according to the networking information of each networking device under the current networking includes:
obtaining the current connection number and the current hop number of each networking target device according to the networking information of each networking target device;
obtaining the target connection number of each networking target device based on the current connection number and the current hop count;
and obtaining the total networking error of the current networking according to the current connection number and the target connection number.
11. The method of claim 10, wherein the obtaining the target connection number for each of the networked devices based on the current connection number and the current hop count comprises:
Based on the current connection number and the current hop count, obtaining an initial networking total time delay mathematical model through a pre-constructed networking total time delay mathematical model;
based on the initial networking total time delay mathematical model, obtaining networking total time delay mathematical models with different total time delays by utilizing a multivariate particle swarm optimization algorithm, determining the networking total time delay mathematical model with the smallest total time delay as a target networking total time delay mathematical model, and obtaining the current connection number of each networking device in the target networking total time delay mathematical model as the target connection number of each networking device.
12. The method of claim 11, wherein the step of constructing the net total delay mathematical model comprises:
acquiring the subcarrier bandwidth and the data transmission rate of the single-hop link of the target equipment, and obtaining the minimum single-hop transmission delay of the target equipment;
obtaining the average single-hop transmission wheel times of the target equipment according to the number of the target equipment and the current connection number of the target equipment;
obtaining single-hop delay of the target equipment according to the average single-hop transmission wheel times and the minimum single-hop transmission delay;
Obtaining the transmission delay of the target equipment according to the single-hop delay and the current hop count;
and acquiring the transmission delay of each target device, and constructing a networking total delay mathematical model of the current networking.
13. The method of claim 12, wherein after said sending the networking update identifier to each of the networked devices, further comprising;
resetting a networking update identifier after a preset period, acquiring the optimization times of the current networking, acquiring networking information of each networking device under a newly-built networking under the condition that the optimization times are smaller than a preset maximum times, and returning to execute the step of obtaining the networking error according to the networking information to further obtain the networking update identifier until the total networking error is smaller than the preset target networking error or the optimization times are larger than or equal to the preset maximum times.
14. A device networking apparatus for application to a networked target device, the apparatus comprising:
the acquisition module is used for acquiring the current connection number and the target connection number of the target equipment under the condition of receiving a networking update identifier representing networking update issued by the near-field network platform; the networking update identifier is generated by the near field network platform according to the networking total errors of all networking target devices in the current networking, and the networking total errors are obtained based on the networking information of all networking target devices;
The writing module is used for obtaining delay information of the target equipment according to the current connection number and the target connection number, writing the delay information into service information of the target equipment, and then disassembling networking;
the access module is used for acquiring target access equipment from the candidate access equipment according to delay information and signal strength in the acquired service information of the candidate access equipment under the condition that the target equipment is not gateway equipment, and accessing the target equipment into the target access equipment; the candidate access equipment comprises node equipment which is re-networked after the network is disconnected.
15. A device networking apparatus, for use with a near-field network platform, the apparatus comprising:
the calculation module is used for obtaining the total networking error of the current networking according to the networking information of each networking target device under the current networking;
the generating module is used for obtaining a networking update identifier according to the networking total error;
the sending module is used for sending the networking update identifier to each networking target device; the networking update identifier is used for indicating each target device to generate corresponding service information according to delay information of each target device and then to break up networking under the condition that the networking update identifier represents networking update, and indicating each target device to determine a target access device according to the delay information and signal strength in the service information of the candidate access device to access the target access device under the condition that the target device is determined not to be a gateway device; the delay information is obtained by each networking device according to the current connection number and the target connection number; the candidate access equipment comprises node equipment which is re-networked after the network is disconnected.
16. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 13 when the computer program is executed.
17. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 13.
18. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 13.
CN202311327895.5A 2023-10-13 2023-10-13 Device networking method, device, computer device and storage medium Pending CN117354816A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311327895.5A CN117354816A (en) 2023-10-13 2023-10-13 Device networking method, device, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311327895.5A CN117354816A (en) 2023-10-13 2023-10-13 Device networking method, device, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN117354816A true CN117354816A (en) 2024-01-05

Family

ID=89366260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311327895.5A Pending CN117354816A (en) 2023-10-13 2023-10-13 Device networking method, device, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN117354816A (en)

Similar Documents

Publication Publication Date Title
US10637753B1 (en) Managing a 5G network using extension information
US11601367B2 (en) Systems and methods for dynamic network function resource allocation through the network repository function
US11018972B2 (en) Method and apparatus for nomination of data transmission sink in network of gateways
CN109890069A (en) Method for connecting network, terminal, base station and computer storage medium
KR101769114B1 (en) Sending node and buffer status reporting method
CN106664219A (en) Network node availability prediction based on past history data
WO2023197671A1 (en) Multi-hop networking method and apparatus, and device, medium and program product
CN115552933A (en) Federal learning in a telecommunications system
Bernaschi et al. A CAPWAP-based solution for frequency planning in large scale networks of WiFi Hot-Spots
CN113727331A (en) 5G base station deployment method and device
Shi et al. OppNet: Enabling citizen-centric urban IoT data collection through opportunistic connectivity service
CN108540305A (en) Pre-Association Service Discovery
US11003508B2 (en) Apparatus and methods for load balancing across a network of nodes
CN117354816A (en) Device networking method, device, computer device and storage medium
US20220286365A1 (en) Methods for data model sharing for a radio access network and related infrastructure
CN112153679A (en) Network switching method and device
Liu et al. Optimization of network-based caching and forwarding using mobile edge computing
KR20190027023A (en) Method and apparatus of transmitting by using wireless caching for multi-hop device-to-device networks
CN116708532B (en) Local area network connection method, device, computer equipment and readable storage medium
WO2023202206A1 (en) Communication method and apparatus
CN116916417A (en) Networking method, networking device, computer equipment and storage medium
CN116761206B (en) Data transmission method, apparatus, communication device, medium, and program product
JP7427836B1 (en) Communication control method and communication control system
WO2023186014A1 (en) Signal sending method, signal receiving method, and communication device
WO2024099016A1 (en) Communication method and apparatus

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