CN114338386A - Network configuration method and device, electronic equipment and storage medium - Google Patents

Network configuration method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114338386A
CN114338386A CN202210243734.7A CN202210243734A CN114338386A CN 114338386 A CN114338386 A CN 114338386A CN 202210243734 A CN202210243734 A CN 202210243734A CN 114338386 A CN114338386 A CN 114338386A
Authority
CN
China
Prior art keywords
management
node
nodes
management node
time 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.)
Granted
Application number
CN202210243734.7A
Other languages
Chinese (zh)
Other versions
CN114338386B (en
Inventor
姜作毅
宋长友
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Tianwei Communication Technology Co ltd
Original Assignee
Beijing Tianwei Communication Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Tianwei Communication Technology Co ltd filed Critical Beijing Tianwei Communication Technology Co ltd
Priority to CN202210243734.7A priority Critical patent/CN114338386B/en
Publication of CN114338386A publication Critical patent/CN114338386A/en
Application granted granted Critical
Publication of CN114338386B publication Critical patent/CN114338386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to the field of network communication, in particular to a network configuration method, a device, electronic equipment and a storage medium, wherein the method comprises the steps of acquiring a configuration signal, wherein the configuration signal comprises an initialization instruction or a management instruction; when the configuration signal is an initialization instruction, acquiring objective time delay between each management node and a total management node, sequencing all the management nodes from low to high based on all the objective time delays to obtain an initialization sequence table, and then initializing all the management nodes based on the initialization sequence table; when the configuration signal is a management instruction, acquiring the actual time delay between each management node and the total management node and the corresponding flow node, then determining all the nodes to be processed based on the actual time delay of all the management nodes, and then sending a connection request to each node to be processed. The method and the device can improve the network quality after the network configuration.

Description

Network configuration method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of network communications, and in particular, to a network configuration method and apparatus, an electronic device, and a storage medium.
Background
For a large network, the approximate management hierarchy of the topological structure is that a total management node belongs to a plurality of management nodes, and each management node corresponds to a plurality of flow nodes. In practice, the network needs to be configured frequently to improve the network quality and the user experience, and the manner of configuring the network includes initializing or managing the dependency relationship between the node and the traffic node. For networks with fewer nodes or networks that are not changed frequently, manual configuration is usually adopted; but for large-scale long-running networks, automatic allocation mechanisms are usually introduced for configuration.
In the related art, the mainstream scheme of the automatic allocation mechanism is a rotation mechanism or a hash mechanism, the two mechanisms are generally similar and can effectively share the resources of the management nodes, but the two mechanisms have the advantage that the undifferentiated allocation mechanism is too ideal on the premise that all the management nodes have the same response speed. When the management node and the traffic node (managed node) are located in different regions, the network delay difference between different nodes is large, or the network access speeds between different regions are completely different, even dynamically changed, which may result in poor network quality after network configuration.
Disclosure of Invention
In order to further improve the network quality after network configuration, the application provides a network configuration method, a network configuration device, an electronic device and a storage medium.
In a first aspect, the present application provides a network configuration method, which adopts the following technical solutions:
a method of configuring a network, comprising:
acquiring a configuration signal, wherein the configuration signal comprises an initialization instruction or a management instruction;
when the configuration signal is an initialization instruction, acquiring objective time delay between each management node and a total management node;
sequencing all the management nodes from low to high based on all the objective time delays to obtain an initialization sequence table;
initializing all the management nodes based on the initialization sequence table;
when the configuration signal is a management instruction, acquiring the actual time delay between each management node and the total management node and the corresponding flow node;
determining all nodes to be processed based on the actual time delay of all the management nodes, wherein the nodes to be processed are the management nodes meeting preset rules;
and sending a connection request to each node to be processed.
By adopting the technical scheme, when network configuration is carried out, whether initialization operation or management operation is needed to be carried out is judged; when the initialization operation is determined, the initialization connection is mainly carried out between the total management node and each management node, so that an initialization sequence table is generated by determining the objective time delay between the total management node and each management node, and then the initialization processing is carried out according to the initialization sequence table, so that the influence of the objective time delay on the network configuration can be reduced; when the management operation is determined, the actual time delay of each management node is obtained by obtaining objective time delay and subjective time delay, then nodes to be processed are determined through a preset rule, a connection request is sent to each node to be processed, if the determined nodes to be connected are management nodes with high network quality, tasks can be connected to the nodes to be connected, if the determined nodes to be connected are management nodes with low network quality, the nodes to be connected can be expanded or updated, and the quality of the network can be improved.
In a possible implementation manner, the obtaining an objective delay between each management node and a total management node when the configuration signal is an initialization instruction includes:
acquiring a first sending moment of sending a preset first data packet to each management node;
acquiring a first receiving time of each management node receiving the first data packet;
and determining objective time delay between each management node and a total management node based on the first receiving time and the first sending time corresponding to each management node.
By adopting the technical scheme, the objective time delay between each management node and the total management node is obtained by testing through the preset first data packet, so that the test result is more comparable, and the difference of the network quality between each management node and the total management node can be better reflected.
In a possible implementation manner, when the configuration signal is a management instruction, the obtaining an actual delay between each management node and the total management node and the corresponding traffic node includes:
acquiring objective time delay between each management node and a total management node;
acquiring subjective time delay between each management node and the corresponding flow node;
and determining the actual time delay of each management node based on the actual time delay = objective time delay + subjective time delay.
By adopting the technical scheme, data is transmitted from the total management node to the flow node through the total management node to the management node and then to the flow node, so that the objective time delay and the subjective time delay corresponding to the two ways are determined for each management node as the actual time delay of the management node, and the actual network quality of the management node can be reflected more accurately and truly.
In a possible implementation manner, the obtaining of the subjective delay between any management node and the corresponding traffic node includes:
acquiring a second sending moment when any management node sends a preset second data packet to each corresponding flow node;
acquiring a second receiving time when any management node receives the second data packet to each corresponding flow node;
obtaining network time delay between any management node and each corresponding flow node based on the second sending time and the second receiving time;
and determining the average value of all the network time delays as the subjective time delay between any management node and the corresponding flow node.
By adopting the technical scheme, the differences of the network delay between one management node and each corresponding network node have deviation and instantaneity, so the average value can represent the real situation of the network delay between any management node and each corresponding network node.
In a possible implementation manner, the determining all nodes to be processed based on the actual latency of all the management nodes includes:
sequencing the actual time delays of all the management nodes from low to high to obtain an actual time delay quality table;
and determining the management node of the front n orders as the node to be processed based on the actual time delay quality table, wherein n is a positive integer.
By adopting the technical scheme, all management nodes are sequenced from low to high according to the actual time delay, so that an actual time delay sequence table with the network quality arranged from high to low is obtained, and n management nodes are selected as the nodes to be connected from the head end of the actual experiment sequence table, namely the nodes to be connected are the management nodes with better network quality in all the management nodes.
In a possible implementation manner, the determining all nodes to be processed based on the actual latency of all the management nodes includes:
and determining all the management nodes with the actual time delay smaller than a preset threshold value as the nodes to be processed.
By adopting the technical scheme, the node to be processed is determined by the preset threshold value, and the preset threshold value can be set by a user so as to be suitable for different situations and requirements.
In a possible implementation manner, the manner of acquiring the configuration signal includes:
acquiring a configuration signal every other preset period or acquiring the configuration signal when a set event is triggered;
the setting event comprises at least one of the change of the number of the management nodes, the change of objective time delay of any management node, the change of address of any management node and the receiving of a configuration signal input by a user.
By adopting the technical scheme, a user can set/modify the preset period, namely, the configuration signal is acquired once when the preset period is passed, so that the automatic configuration of the network can be realized, and convenience is brought; meanwhile, a user can set setting events, and when any one setting event is triggered, the configuration signal can be acquired, so that the network can be configured in time when a specific condition occurs, and better network quality can be acquired.
In a second aspect, the present application provides a network configuration apparatus, which adopts the following technical solutions:
an apparatus for configuring a network, comprising:
the device comprises a configuration signal acquisition module, a configuration signal processing module and a configuration signal processing module, wherein the configuration signal acquisition module is used for acquiring a configuration signal, and the configuration signal comprises an initialization instruction or a management instruction;
the first acquisition module is used for acquiring objective time delay between each management node and the total management node when the configuration signal is an initialization instruction;
the sequencing module is used for sequencing all the management nodes from low to high based on all the objective time delays to obtain an initialization sequence table;
the initialization processing module is used for performing initialization processing on all the management nodes based on the initialization sequence table;
a second obtaining module, configured to, when the configuration signal is a management instruction, obtain an actual time delay between each of the management nodes and the total management node and the corresponding traffic node;
a to-be-processed node determining module, configured to determine all to-be-processed nodes based on actual time delays of all the management nodes, where the to-be-processed nodes are the management nodes that meet a preset rule;
and the connection request sending module is used for sending a connection request to each node to be processed.
By adopting the technical scheme, when network configuration is carried out, the device can firstly judge whether initialization operation or management operation is required to be carried out; when the initialization operation is determined, the initialization connection is mainly carried out between the total management node and each management node, so that the device generates an initialization sequence table by determining the objective time delay between the total management node and each management node, and then carries out initialization processing according to the initialization sequence table, thereby reducing the influence of the objective time delay on network configuration; when the management operation is determined, the device obtains the actual time delay of each management node by obtaining the objective time delay and the subjective time delay, then determines the nodes to be processed according to the preset rules, and sends a connection request to each node to be processed, so that the total management node can be connected to the management node with lower actual time delay, and the quality of the network can be improved.
In a possible implementation manner, when the configuration signal is an initialization instruction, the obtaining, by the first obtaining module, an objective time delay between each management node and the total management node is specifically configured to:
acquiring a first sending moment of sending a preset first data packet to each management node;
acquiring a first receiving time of each management node receiving the first data packet;
and determining objective time delay between each management node and a total management node based on the first receiving time and the first sending time corresponding to each management node.
In a possible implementation manner, when the configuration signal is a management instruction, the second obtaining module obtains an actual time delay between each management node and the total management node and the corresponding traffic node, and is specifically configured to:
acquiring objective time delay between each management node and a total management node;
acquiring subjective time delay between each management node and the corresponding flow node;
and determining the actual time delay of each management node based on the actual time delay = objective time delay + subjective time delay.
In a possible implementation manner, when the second obtaining module obtains the subjective delay between any management node and the corresponding traffic node, the method is specifically configured to:
acquiring a second sending moment when any management node sends a preset second data packet to each corresponding flow node;
acquiring a second receiving time when any management node receives the second data packet to each corresponding flow node;
obtaining network time delay between any management node and each corresponding flow node based on the second sending time and the second receiving time;
and determining the average value of all the network time delays as the subjective time delay between any management node and the corresponding flow node.
In a possible implementation manner, when the to-be-processed node determining module determines all the to-be-processed nodes based on the actual time delays of all the management nodes, the to-be-processed node determining module is specifically configured to:
sequencing the actual time delays of all the management nodes from low to high to obtain an actual time delay quality table;
and determining the management node of the front n orders as the node to be processed based on the actual time delay quality table, wherein n is a positive integer.
In a possible implementation manner, when the to-be-processed node determining module determines all the to-be-processed nodes based on the actual time delays of all the management nodes, the to-be-processed node determining module is specifically configured to:
and determining all the management nodes with the actual time delay smaller than a preset threshold value as the nodes to be processed.
In a possible implementation manner, the manner of acquiring the configuration signal by the configuration signal acquisition module includes:
acquiring a configuration signal every other preset period or acquiring the configuration signal when a set event is triggered;
the setting event comprises at least one of the change of the number of the management nodes, the change of the objective time delay of any management node, the change of the address of any management node and the reception of a configuration signal input by a user.
In a third aspect, the present application provides an electronic device, which adopts the following technical solutions:
an electronic device, comprising:
at least one processor;
a memory;
at least one application, wherein the at least one application is stored in the memory and configured to be executed by the at least one processor, the at least one application configured to: the configuration method of the network is executed.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium, comprising: a computer program is stored which can be loaded by a processor and which implements the method of configuring a network as described above.
In summary, the present application includes at least one of the following beneficial technical effects:
1. when network configuration is carried out, firstly, whether initialization operation or management operation is needed to be carried out is judged; when the initialization operation is determined, the initialization connection is mainly carried out between the total management node and each management node, so that an initialization sequence table is generated by determining the objective time delay between the total management node and each management node, and then the initialization processing is carried out according to the initialization sequence table, so that the influence of the objective time delay on the network configuration can be reduced; when the management operation is determined, the actual time delay of each management node is obtained by obtaining objective time delay and subjective time delay, then nodes to be processed are determined through a preset rule, a connection request is sent to each node to be processed, if the determined nodes to be connected are management nodes with high network quality, tasks can be connected to the nodes to be connected, if the determined nodes to be connected are management nodes with low network quality, the nodes to be connected can be expanded or updated, and the quality of the network can be improved;
2. data is transmitted from the total management node to the flow node through the total management node to the management node and then to the flow node, so that the objective time delay and the subjective time delay corresponding to the two ways are determined for each management node as the actual time delay of the management node, and the actual network quality of the management node can be reflected more accurately and truly;
3. a user can set/modify a preset period, namely, a configuration signal is acquired once when the preset period is passed, so that automatic configuration of a network can be realized, and convenience is brought; meanwhile, a user can set setting events, and when any one setting event is triggered, the configuration signal can be acquired, so that the network can be configured in time when a specific condition occurs, and better network quality can be acquired.
Drawings
Fig. 1 is a schematic structural diagram of a configuration method of a network in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a configuration device of a network in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to figures 1-3.
A person skilled in the art, after reading the present specification, may make modifications to the present embodiments as necessary without inventive contribution, but only within the scope of the claims of the present application are protected by patent laws.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
The configuration of the topology network is a main way to improve the network performance or function, where the configuration of the topology network includes initialization processing between a total management node and each management node, (which is similar to rebooting of a computer host to obtain better network quality for the entire topology network), or determining one or more management nodes, and then performing extended connection or initialization connection on the management nodes to meet personalized requirements of users.
The embodiment of the present application provides a method for networking, which is executed by an electronic device, and with reference to fig. 1, the method includes step S1O1, step S1O2, step S1O3, step S1O4, step S1O5, step S1O6, and step S1O77, where:
and step S1O1, acquiring a configuration signal, wherein the configuration signal comprises an initialization instruction or a management instruction.
In the embodiment of the present application, the configuration signal is used to trigger a network configuration operation on the topology network, and when the configuration signal is received, the configuration signal needs to be judged or identified to determine whether a configuration operation that needs to be initialized or a configuration operation that needs to be managed currently.
And step S1O2, when the configuration signal is an initialization instruction, acquiring objective time delay between each management node and the total management node.
In the embodiment of the present application, the initialization instruction is mainly used for performing initialization operation between the total management node and the management node, and therefore in the initialization operation, the network delay mainly comes from the delay between the total management node and each management node, that is, the objective delay of each management node.
S1O3, sequencing all management nodes from low to high based on all objective time delays to obtain an initialization sequence list;
step S1O4 is to perform initialization processing on all management nodes based on the initialization sequence table.
In the embodiment of the application, the lower the network delay, the higher the network quality of a link formed between two nodes is represented. All management nodes are sequenced according to the sequence from the objective time delay from bottom to top to obtain an initialization sequence table in which the network quality of the management nodes is arranged from top to bottom, the management nodes are initialized in sequence according to the sequence of the initialization sequence table, and corresponding rules are preset, for example, tasks needing high-quality transmission are preferentially matched to the management nodes with low network time delay through a total management node, and certainly, the corresponding rules can be other rules as long as a higher-quality network can be obtained after initialization operation.
And S1O5, when the configuration signal is a management instruction, acquiring the actual time delay between each management node and the total management node and the corresponding traffic node.
In the embodiment of the present application, the management instruction is mainly used to change the dependency relationship between the management node and the traffic node, and when performing management operation, in addition to considering objective delay between each management node and the total management node, subjective delay between each management node and each traffic node corresponding to each management node is also considered, that is, the actual delay of each management node is considered comprehensively.
And S1O6, determining all nodes to be processed based on the actual time delay of all the management nodes, wherein the nodes to be processed are the management nodes meeting the preset rules.
In the embodiment of the present application, the preset rule may be customized by a user to obtain a management node with lower network quality as a node to be processed, or may be customized by the user to obtain a management node with higher network quality as a node to be processed.
And step S1O7, sending a connection request to each node to be processed.
In the embodiment of the application, after the nodes to be processed are determined, a connection request is sent to each node to be processed, and a rule is preset so that a corresponding task can be connected to the nodes to be processed through the total management node, and meanwhile, network nodes corresponding to the nodes to be processed can be updated or added or deleted so as to meet the requirements of users.
Compared with the prior art, the scheme of the application judges whether the initialization operation or the management operation is needed to be carried out when the network configuration is carried out; when the initialization operation is determined, the initialization connection is mainly carried out between the total management node and each management node, so that an initialization sequence table is generated by determining the objective time delay between the total management node and each management node, and then the initialization processing is carried out according to the initialization sequence table, so that the influence of the objective time delay on the network configuration can be reduced, and the quality of the configured network is improved; when the management operation is determined, the actual time delay of each management node is obtained by obtaining objective time delay and subjective time delay, then nodes to be processed are determined through a preset rule, a connection request is sent to each node to be processed, if the determined nodes to be connected are management nodes with high network quality, tasks can be connected to the nodes to be connected, if the determined nodes to be connected are management nodes with low network quality, the nodes to be connected can be expanded or updated, and the quality of the network can be improved.
Further, in step S1O1, the manner of acquiring the configuration signal includes step S1O11 (not shown) or step S1O12 (not shown), wherein:
and S1O11, acquiring configuration signals every preset period.
Specifically, the preset period may be set by a user, for example, the preset period is 72 hours, the network acquires a pre-stored configuration signal every 72 hours, and specifically, the configuration signal acquired each time includes an initialization instruction or a rule of a management instruction, which may be set by the user, which is not limited in this embodiment of the present application.
And S1O12, acquiring a configuration signal when triggering a setting event, wherein the setting event comprises at least one of the number change of the management nodes, the objective time delay change of any management node, the address change of any management node and the received configuration signal input by a user.
Specifically, at least one preset event should be preset, and may further include other events, or may be modified by a user in a self-defined manner, and when each preset time occurs, the electronic device is triggered to acquire the pre-stored configuration signal, but when each event occurs, the configuration signal triggered by the event includes an initialization instruction or a management instruction, and the user sets the configuration instruction for each event, which is not limited in this embodiment. When the trigger preset event is a configuration signal input by a user, executing the configuration signal according to an instruction included in the configuration signal actually input by the user.
Further, step S102 may include step S1021 (not shown in the figure), step S1022 (not shown in the figure), and step S1023 (not shown in the figure), wherein:
step S1021, acquiring a first sending moment of sending a preset first data packet to each management node;
step S1022, acquiring a first receiving time at which each management node receives the first data packet;
step S1023, objective time delay between each management node and the total management node is determined based on the first receiving time and the first sending time corresponding to each management node.
Specifically, as to the specific data format of the first data packet, no limitation is made in this embodiment, as long as it is convenient to measure the objective delay between the management node and the total management node. Meanwhile, the objective time delay is obtained by subtracting the first sending time from the first receiving time.
Further, step S103 may include step S1031 (not shown in the figure), step S1032 (not shown in the figure), and step S1033 (not shown in the figure), in which:
step S1031, obtaining objective time delay between each management node and a total management node;
specifically, the method of obtaining the objective time delay refers to step S102.
Step S1032, acquiring subjective time delay between each management node and the corresponding flow node;
step S1033, determining an actual time delay of each management node based on the actual time delay = objective time delay + subjective time delay.
Specifically, compared with objective time delay, the actual time delay can better reflect the real network quality of each management node on the links between the management node and the summary point and between the management node and each network node, so that corresponding operation is conveniently carried out based on preset rules during network configuration, and the network quality after network configuration is higher.
Further, step S1O32 may include step a (not shown), step b (not shown), step c (not shown), and step d (not shown), wherein:
step a, acquiring a second sending moment when any management node sends a preset second data packet to each corresponding flow node;
and step b, acquiring a second receiving time when any management node receives the second data packet to each corresponding flow node.
Specifically, the second data packet may be the same as the first data packet to reflect the comparability of the test; the second data packet may also be different from the first data packet, and because the first data packet is used for testing the network delay between the total management node and each management node, the second data packet may be set in a targeted manner for testing the network delay between any management node and each network node corresponding to the management node, so that the tested network delay is more accurate, and the difference of test objects is reflected.
Step c, obtaining the network time delay between any management node and each corresponding flow node based on the second sending time and the second receiving time;
and d, determining the average value of all network time delays as the subjective time delay between any management node and the corresponding flow node.
Specifically, the differences of the network delays between any management node and each network node corresponding to the management node all have deviations and instantaneity, so that the average value can represent the real situation of the network delays between any management node and each network node corresponding to the management node.
Further, the node to be connected determined in step S106 may be a management node with higher network quality or a management node with lower network quality, in this embodiment of the present application, only the management node with higher network quality is determined as the node to be connected, and step S106 may include step S1061 (not shown in the figure), step S1062 (not shown in the figure), and step S1063 (not shown in the figure), where:
s1061, sequencing the actual time delays from low to high based on all the management nodes to obtain an actual time delay quality table;
and S1062, determining the front n-order management nodes as nodes to be processed based on the actual delay quality table, wherein n is a positive integer.
Specifically, the actual delay quality table is obtained by sorting all the management nodes in the order from low to high according to the actual delay, and the nodes to be connected sequentially determine n management nodes as the nodes to be connected from the head end of the actual delay quality table, that is, the management node with the lowest actual delay.
And step S1063, determining all the management nodes with the actual time delay smaller than the preset threshold value as the nodes to be processed.
Specifically, for a specific value of the preset threshold, the embodiment of the present application is not limited at all, and for example, the specific value may be 40ms or 20ms, as long as it is convenient to determine a management node with better network quality. Furthermore, if the actual time delay of no management node is smaller than the preset threshold, the management node with the lowest actual time delay should be taken as the node to be connected from all the management nodes.
The foregoing embodiments describe a network configuration method from the perspective of a method flow, and the following embodiments describe a network configuration device from the perspective of a virtual module or a virtual unit, which are described in detail in the following embodiments.
As shown in fig. 2, the configuration apparatus 200 of the network may specifically include a configuration signal obtaining module 201, a first obtaining module 202, a sorting module 203, an initialization processing module 204, a second obtaining module 205, a to-be-processed node determining module 206, and a connection request sending module 207, where:
a configuration signal obtaining module 201, configured to obtain a configuration signal, where the configuration signal includes an initialization instruction or a management instruction;
a first obtaining module 202, configured to obtain an objective delay between each management node and a total management node when the configuration signal is an initialization instruction;
the sorting module 203 is used for sorting all the management nodes from low to high based on all the objective time delays to obtain an initialization sequence table;
an initialization processing module 204, configured to perform initialization processing on all management nodes based on the initialization sequence table;
a second obtaining module 205, configured to, when the configuration signal is a management instruction, obtain an actual time delay between each management node and the total management node and the corresponding traffic node;
a to-be-processed node determining module 206, configured to determine all to-be-processed nodes based on actual time delays of all management nodes, where the to-be-processed nodes are management nodes that meet a preset rule;
a connection request sending module 207, configured to send a connection request to each node to be processed.
In a possible implementation manner, when the configuration signal is an initialization instruction, when the first obtaining module 202 obtains the objective time delay between each management node and the total management node, specifically, the objective time delay is used to:
acquiring a first sending moment of sending a preset first data packet to each management node;
acquiring a first receiving time of each management node for receiving a first data packet;
and determining objective time delay between each management node and the total management node based on the first receiving time and the first sending time corresponding to each management node.
In a possible implementation manner, when the configuration signal is a management instruction, when the second obtaining module 205 obtains an actual time delay between each management node and the total management node and the corresponding traffic node, specifically, the actual time delay is used to:
acquiring objective time delay between each management node and a total management node;
acquiring subjective time delay between each management node and the corresponding flow node;
and determining the actual time delay of each management node based on the actual time delay = objective time delay + subjective time delay.
In a possible implementation manner, when the second obtaining module 205 obtains the subjective delay between any management node and the corresponding traffic node, the method is specifically configured to:
acquiring a second sending moment when any management node sends a preset second data packet to each corresponding flow node;
acquiring a second receiving moment when any management node receives a second data packet to each corresponding flow node;
obtaining network time delay between any management node and each corresponding flow node based on the second sending time and the second receiving time;
and determining the average value of all network time delays as the subjective time delay between any management node and the corresponding flow node.
In a possible implementation manner, when the to-be-processed node determining module 206 determines all the to-be-processed nodes based on the actual time delays of all the management nodes, specifically, the to-be-processed node determining module is configured to:
sequencing the actual time delays from low to high based on all the management nodes to obtain an actual time delay quality table;
and determining the front n-order management nodes as nodes to be processed based on the actual time delay quality table, wherein n is a positive integer.
In a possible implementation manner, when the to-be-processed node determining module 206 determines all the to-be-processed nodes based on the actual time delays of all the management nodes, specifically, the to-be-processed node determining module is configured to:
and determining all management nodes with the actual time delay smaller than a preset threshold value as nodes to be processed.
In a possible implementation manner, the manner of acquiring the configuration signal by the configuration signal acquiring module 201 includes:
acquiring a configuration signal every other preset period or acquiring the configuration signal when a set event is triggered;
the setting event comprises at least one of the change of the number of the management nodes, the change of the objective time delay of any management node, the change of the address of any management node and the receiving of a configuration signal input by a user.
In an embodiment of the present application, an electronic device is provided, as shown in fig. 3, where the electronic device 300 shown in fig. 3 includes: a processor 301 and a memory 303. Wherein processor 301 is coupled to memory 303, such as via bus 302. Optionally, the electronic device 300 may also include a transceiver 304. It should be noted that the transceiver 304 is not limited to one in practical applications, and the structure of the electronic device 300 is not limited to the embodiment of the present application.
The Processor 301 may be a CPU (Central Processing Unit), a general-purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 301 may also be a combination of computing functions, e.g., comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 302 may include a path that transfers information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 302 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The Memory 303 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
The memory 303 is used for storing application program codes for executing the scheme of the application, and the processor 301 controls the execution. The processor 301 is configured to execute application program code stored in the memory 303 to implement the aspects illustrated in the foregoing method embodiments.
Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. But also a server, etc. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The present application provides a computer-readable storage medium, on which a computer program is stored, which, when running on a computer, enables the computer to execute the corresponding content in the foregoing method embodiments.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (10)

1. A method for configuring a network, comprising:
acquiring a configuration signal, wherein the configuration signal comprises an initialization instruction or a management instruction;
when the configuration signal is an initialization instruction, acquiring objective time delay between each management node and a total management node;
sequencing all the management nodes from low to high based on all the objective time delays to obtain an initialization sequence table;
initializing all the management nodes based on the initialization sequence table;
when the configuration signal is a management instruction, acquiring the actual time delay between each management node and the total management node and the corresponding flow node;
determining all nodes to be processed based on the actual time delay of all the management nodes, wherein the nodes to be processed are the management nodes meeting preset rules;
and sending a connection request to each node to be processed.
2. The method according to claim 1, wherein the obtaining the objective delay between each management node and the total management node when the configuration signal is an initialization command comprises:
acquiring a first sending moment of sending a preset first data packet to each management node;
acquiring a first receiving time of each management node receiving the first data packet;
and determining objective time delay between each management node and a total management node based on the first receiving time and the first sending time corresponding to each management node.
3. The method according to claim 1, wherein the obtaining an actual delay between each management node and the total management node and the corresponding traffic node when the configuration signal is a management command comprises:
acquiring objective time delay between each management node and a total management node;
acquiring subjective time delay between each management node and the corresponding flow node;
and determining the actual time delay of each management node based on the actual time delay = objective time delay + subjective time delay.
4. The method according to claim 3, wherein obtaining the subjective delay between any management node and the corresponding traffic node comprises:
acquiring a second sending moment when any management node sends a preset second data packet to each corresponding flow node;
acquiring a second receiving time when any management node receives the second data packet to each corresponding flow node;
obtaining network time delay between any management node and each corresponding flow node based on the second sending time and the second receiving time;
and determining the average value of all the network time delays as the subjective time delay between any management node and the corresponding flow node.
5. The method according to claim 1, wherein the determining all nodes to be processed based on the actual latency of all the management nodes comprises:
sequencing the actual time delays of all the management nodes from low to high to obtain an actual time delay quality table;
and determining the management node of the front n orders as the node to be processed based on the actual time delay quality table, wherein n is a positive integer.
6. The method according to claim 1, wherein the determining all nodes to be processed based on the actual latency of all the management nodes comprises:
and determining all the management nodes with the actual time delay smaller than a preset threshold value as the nodes to be processed.
7. The method according to claim 1, wherein the acquiring the configuration signal comprises:
acquiring a configuration signal every other preset period or acquiring the configuration signal when a set event is triggered;
the setting event comprises at least one of the change of the number of the management nodes, the change of the objective time delay of any management node, the change of the address of any management node and the reception of a configuration signal input by a user.
8. An apparatus for configuring a network, comprising:
the device comprises a configuration signal acquisition module, a configuration signal processing module and a configuration signal processing module, wherein the configuration signal acquisition module is used for acquiring a configuration signal, and the configuration signal comprises an initialization instruction or a management instruction;
the first acquisition module is used for acquiring objective time delay between each management node and the total management node when the configuration signal is an initialization instruction;
the sequencing module is used for sequencing all the management nodes from low to high based on all the objective time delays to obtain an initialization sequence table;
the initialization processing module is used for performing initialization processing on all the management nodes based on the initialization sequence table;
a second obtaining module, configured to, when the configuration signal is a management instruction, obtain an actual time delay between each of the management nodes and the total management node and the corresponding traffic node;
a to-be-processed node determining module, configured to determine all to-be-processed nodes based on actual time delays of all the management nodes, where the to-be-processed nodes are the management nodes that meet a preset rule;
and the connection request sending module is used for sending a connection request to each node to be processed.
9. An electronic device, comprising:
at least one processor;
a memory;
at least one application, wherein the at least one application is stored in the memory and configured to be executed by the at least one processor, the at least one application configured to: a method of configuring a network according to any one of claims 1 to 7.
10. A computer-readable storage medium, comprising: a computer program which can be loaded by a processor and which performs the method according to any of claims 1-7.
CN202210243734.7A 2022-03-14 2022-03-14 Network configuration method and device, electronic equipment and storage medium Active CN114338386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210243734.7A CN114338386B (en) 2022-03-14 2022-03-14 Network configuration method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210243734.7A CN114338386B (en) 2022-03-14 2022-03-14 Network configuration method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114338386A true CN114338386A (en) 2022-04-12
CN114338386B CN114338386B (en) 2022-08-05

Family

ID=81033808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210243734.7A Active CN114338386B (en) 2022-03-14 2022-03-14 Network configuration method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114338386B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114691241A (en) * 2022-04-19 2022-07-01 中煤航测遥感集团有限公司 Task execution method and device, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848797A (en) * 2005-04-15 2006-10-18 上海艾泰科技有限公司 Method for searching multi-routing optimum path and load balancing on middle and lower end router
CN102447980A (en) * 2010-09-30 2012-05-09 中兴通讯股份有限公司 Routing control method, routing control system and path computation device
US20180123918A1 (en) * 2016-10-28 2018-05-03 Linkedin Corporation Automatically detecting latency bottlenecks in asynchronous workflows
US20180332601A1 (en) * 2017-05-10 2018-11-15 Mitsubishi Electric Research Laboratories, Inc. Scheduling of Delay Sensitive Convergecast Network
US10218629B1 (en) * 2014-12-23 2019-02-26 Juniper Networks, Inc. Moving packet flows between network paths
CN110868727A (en) * 2019-10-28 2020-03-06 辽宁大学 Data transmission delay optimization method in wireless sensor network
US20200304598A1 (en) * 2019-03-19 2020-09-24 International Business Machines Corporation Instruction initialization in a dataflow architecture
US20200366592A1 (en) * 2019-05-13 2020-11-19 Cloudflare, Inc. Intelligently routing internet traffic
CN112311585A (en) * 2020-03-31 2021-02-02 北京天维信通科技有限公司 Method and device for selecting management node, equipment and storage medium thereof
CN112543145A (en) * 2020-12-08 2021-03-23 广州技象科技有限公司 Method and device for selecting communication path of equipment node for sending data
CN112583715A (en) * 2020-12-08 2021-03-30 广州技象科技有限公司 Equipment node connection adjustment method and device
CN112600753A (en) * 2020-12-08 2021-04-02 广州技象科技有限公司 Equipment node communication path selection method and device according to equipment access amount

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848797A (en) * 2005-04-15 2006-10-18 上海艾泰科技有限公司 Method for searching multi-routing optimum path and load balancing on middle and lower end router
CN102447980A (en) * 2010-09-30 2012-05-09 中兴通讯股份有限公司 Routing control method, routing control system and path computation device
US10218629B1 (en) * 2014-12-23 2019-02-26 Juniper Networks, Inc. Moving packet flows between network paths
US20180123918A1 (en) * 2016-10-28 2018-05-03 Linkedin Corporation Automatically detecting latency bottlenecks in asynchronous workflows
US20180332601A1 (en) * 2017-05-10 2018-11-15 Mitsubishi Electric Research Laboratories, Inc. Scheduling of Delay Sensitive Convergecast Network
US20200304598A1 (en) * 2019-03-19 2020-09-24 International Business Machines Corporation Instruction initialization in a dataflow architecture
US20200366592A1 (en) * 2019-05-13 2020-11-19 Cloudflare, Inc. Intelligently routing internet traffic
CN110868727A (en) * 2019-10-28 2020-03-06 辽宁大学 Data transmission delay optimization method in wireless sensor network
CN112311585A (en) * 2020-03-31 2021-02-02 北京天维信通科技有限公司 Method and device for selecting management node, equipment and storage medium thereof
CN112543145A (en) * 2020-12-08 2021-03-23 广州技象科技有限公司 Method and device for selecting communication path of equipment node for sending data
CN112583715A (en) * 2020-12-08 2021-03-30 广州技象科技有限公司 Equipment node connection adjustment method and device
CN112600753A (en) * 2020-12-08 2021-04-02 广州技象科技有限公司 Equipment node communication path selection method and device according to equipment access amount

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114691241A (en) * 2022-04-19 2022-07-01 中煤航测遥感集团有限公司 Task execution method and device, electronic equipment and storage medium
CN114691241B (en) * 2022-04-19 2024-01-19 中煤航测遥感集团有限公司 Task execution method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114338386B (en) 2022-08-05

Similar Documents

Publication Publication Date Title
CN109547286B (en) CDN node selection method, device and storage medium
CN109451002B (en) CDN node selection method and equipment
CN110798517B (en) Decentralized cluster load balancing method and system, mobile terminal and storage medium
CN110659151B (en) Data verification method and device and storage medium
KR20140014273A (en) Method and system for dynamically creating and servicing master-slave pairs within and across switch fabrics of a portable computing device
CN108959399B (en) Distributed data deletion flow control method and device, electronic equipment and storage medium
WO2020038257A1 (en) Method for link aggregation and related products
US20160203030A1 (en) Load calculation method, load calculation program, and load calculation apparatus
CN114338386B (en) Network configuration method and device, electronic equipment and storage medium
CN110784336A (en) Multi-device intelligent timing delay scene setting method and system based on Internet of things
CN109756533B (en) Mirror image acceleration method and device and server
CN114564313A (en) Load adjustment method and device, electronic equipment and storage medium
CN110677683B (en) Video storage and video access method and distributed storage and video access system
CN111026532B (en) Message queue management method for voice data
CN110113269B (en) Flow control method based on middleware and related device
CN114070755A (en) Virtual machine network flow determining method and device, electronic equipment and storage medium
CN115951845A (en) Disk management method, device, equipment and storage medium
CN115509844A (en) Method, system, device and medium for optimizing performance of NVMe hard disk based on AMD platform
US10673937B2 (en) Dynamic record-level sharing (RLS) provisioning inside a data-sharing subsystem
CN108846141B (en) Offline cache loading method and device
CN113849125A (en) Method, device and system for reading disk of CDN server
CN115904488A (en) Data transmission method, system, device and equipment
CN110474787B (en) Node fault detection method and device
CN108718285A (en) Flow control methods, device and the server of cloud computing cluster
US11656860B2 (en) Bundling data packages based on usage patterns for download control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant