CN113992507B - Method, device, server and storage medium for determining default parameter values - Google Patents
Method, device, server and storage medium for determining default parameter values Download PDFInfo
- Publication number
- CN113992507B CN113992507B CN202111183858.2A CN202111183858A CN113992507B CN 113992507 B CN113992507 B CN 113992507B CN 202111183858 A CN202111183858 A CN 202111183858A CN 113992507 B CN113992507 B CN 113992507B
- Authority
- CN
- China
- Prior art keywords
- parameter
- network
- value
- file
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 239000000523 sample Substances 0.000 claims description 28
- 238000004458 analytical method Methods 0.000 claims description 22
- 230000015556 catabolic process Effects 0.000 claims description 14
- 238000006731 degradation reaction Methods 0.000 claims description 14
- 238000005206 flow analysis Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 6
- 230000006855 networking Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 238000002360 preparation method Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000000926 separation method Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0889—Techniques to speed-up the configuration process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
- H04L41/0883—Semiautomatic configuration, e.g. proposals from system
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/12—Network monitoring probes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/18—Protocol analysers
Abstract
The embodiment of the disclosure provides a method, a device, a server and a storage medium for determining default parameter values, wherein the method is applied to a network server in a distributed network topology, network node equipment in the network topology also comprises network routing equipment, and the method comprises the following steps: receiving a configuration request sent by target network node equipment, wherein the configuration request comprises a parameter type of a default parameter item; searching a parameter file in a configuration file database to obtain a target parameter file matched with the parameter type, wherein the parameter file is generated by analyzing network traffic in the network topology, and each parameter file comprises the parameter type and a parameter value; and determining the parameter value in the target parameter file as the default parameter value of the default parameter item. The embodiment of the disclosure can improve the configuration accuracy of the default parameter value, and meanwhile, a user does not need to carry out a large amount of manual checking work, so that the configuration efficiency of the default parameter value is improved.
Description
Technical Field
The present disclosure relates to the field of network communication technologies, and in particular, to a method, an apparatus, a server, and a storage medium for determining default parameter values.
Background
When configuring various software parameters on the network node device, some parameter items in the configuration interface will display default parameter values, which are typically parameter values when the user was last configured. However, because the user environment and the networking environment may change at any time, the default parameter values in the configuration mode often do not coincide with the parameter values actually required by the user at this time, so that the user still needs to verify the default parameter values one by one and reconfigure the parameter values which do not match with the actual requirements when configuring each time.
Therefore, the default parameter value generated in the existing mode is low in accuracy, and a user is still required to perform a large amount of manual checking work, so that the configuration efficiency is low.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide at least a method, apparatus, server, and storage medium for determining default parameter values.
In a first aspect, a method of determining a default parameter value is provided, the method being applied on a network server in a distributed network topology, the network node device in the network topology further comprising a network routing device, the method comprising:
Receiving a configuration request sent by target network node equipment, wherein the configuration request comprises a parameter type of a default parameter item;
searching a parameter file in a configuration file database to obtain a target parameter file matched with the parameter type, wherein the parameter file is generated by analyzing network traffic in the network topology, and each parameter file comprises the parameter type and a parameter value;
and determining the parameter value in the target parameter file as the default parameter value of the default parameter item.
In a second aspect, there is provided an apparatus for determining a default parameter value, the apparatus being for use on a network server in a distributed network topology, a network node device in the network topology further comprising a network routing device, the apparatus comprising:
a receiving unit, configured to receive a configuration request sent by a target network node device, where the configuration request includes a parameter type of a default parameter item;
the searching unit is used for searching parameter files in the configuration file database to obtain target parameter files matched with the parameter types, wherein the parameter files are generated by analyzing network traffic in the network topology, and each parameter file comprises the parameter types and the parameter values;
And the determining unit is used for determining the parameter value in the target parameter file as the default parameter value of the default parameter item.
In a third aspect, a network server is provided, the network server being a network node device in a distributed network topology, the network server comprising: a memory and a processor;
the memory for storing machine readable instructions;
the processor is configured to execute the foregoing method by invoking the machine readable instructions.
In a fourth aspect, a computer readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the aforementioned method.
In the embodiment provided by the disclosure, by analyzing network traffic of different protocols in the distributed network topology, parameter files for different protocols are generated, and each parameter file includes a parameter type and a parameter value, so when a network server receives a configuration request of a parameter type including a default parameter item, the network server can match the parameter files to target parameter files with consistent parameter types, thereby determining the parameter value in the target parameter file as the default parameter value of the default parameter item. Compared with the prior art that the default parameter value is determined only based on the historical configuration of the network node equipment, the embodiment of the disclosure determines the default parameter value to be configured from the parameter values obtained after the network flow in the distributed network topology is fully analyzed, and the parameter values obtained through the analysis can reflect the changes of the user environment, the networking environment and the like, so that the method has higher timeliness, can improve the configuration accuracy of the default parameter value, and simultaneously, does not need a great amount of manual checking work of a user, so that the configuration efficiency of the default parameter value is improved.
Drawings
In order to more clearly illustrate the technical solutions of one or more embodiments of the present disclosure or related technologies, the following description will briefly describe the drawings that are required to be used in the embodiments or related technology descriptions, and it is apparent that the drawings in the following description are only some embodiments described in one or more embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort to those of ordinary skill in the art.
FIG. 1A illustrates a distributed network topology diagram of an embodiment of the present disclosure;
FIG. 1B is a schematic diagram illustrating the configuration service module of FIG. 1A determining default parameter values;
FIG. 2 illustrates a flow chart of a method of determining default parameter values provided by one embodiment of the present disclosure;
FIG. 3 illustrates a flow chart of a method of determining default parameter values provided by another embodiment of the present disclosure;
FIG. 4 illustrates a schematic diagram of an apparatus for determining default parameter values provided by one embodiment of the present disclosure;
FIG. 5 illustrates a schematic diagram of an apparatus for determining default parameter values provided by another embodiment of the present disclosure;
fig. 6 shows a schematic structural diagram of a network server according to an embodiment of the present disclosure.
Detailed Description
In order that those skilled in the art will better understand the technical solutions in one or more embodiments of the present disclosure, the technical solutions in one or more embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in one or more embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, not all embodiments. All other embodiments, which may be made by one of ordinary skill in the art based on one or more embodiments of the present disclosure without inventive faculty, are intended to be within the scope of the present disclosure.
Referring to fig. 1A, a schematic diagram of a distributed network topology according to an embodiment of the disclosure is shown:
in the distributed network topology of fig. 1A, several network node devices are provided, which may include: the network routing device may include a first type router, a first type switch, a second type router, and a second type switch as shown in fig. 1A. The first type router and the first type switch may refer to network routing devices manufactured or operated by a specific manufacturer, and the second type router and the second type switch may refer to other general network routing devices manufactured or operated by a specific manufacturer. Wherein each network node device or software running thereon may trigger a configuration request for a default parameter item.
With reference to fig. 1A, a configuration service module may be integrated on a network server, where the configuration service module may be an independently set functional module, or may be a functional component integrated on a management platform operated by the network server by a specified manufacturer;
corresponding to the configuration service module, for the first type router and the first type switch, a probe module may be integrated thereon, for example, the probe module may be a functional module of a designated operating system platform running on the first type router and the first type switch; the probe device may be separately provided for the second type router and the second type switch, for example, the probe device may be a separately provided single portal network device.
The probe module and the probe device can monitor network traffic flowing through each router and each switch and report the network traffic to the configuration service module. In the embodiment of the disclosure, the network traffic reported to the configuration service module may be the network traffic of a specified protocol filtered by the probe module or the probe device; alternatively, the probe module and the probe device may report unfiltered network traffic directly to the configuration service module, which filters out network traffic of a specified protocol. Wherein a specified protocol mainly means that a traffic analysis manner has been defined for network traffic of the protocol, and valid parameter values of default parameter items that can be used for configuring the protocol can be obtained based on the analysis result. For example, the network traffic of the specified protocol may include ARP (Address Resolution Protocol ) response message, ARP free message, OSPF (Open Shortest Path First ) Hello message, DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol) unicast message, and the like, and the probe module and the probe device report the filtered network traffic of the specified protocol to the configuration service module for analysis.
Accordingly, the configuration service module may include the following functions:
the first function is to analyze the network traffic of the designated protocol to generate parameter files for different protocols and store the parameter files in a configuration file database, wherein each parameter file may include: protocol type, parameter value, etc.;
and the second function is to obtain a target parameter file matched with the parameter type by searching the parameter file in the configuration file database after receiving the configuration request containing the parameter type, and determine the parameter value in the target parameter file as the default parameter value of the default parameter item to be configured.
Referring to FIG. 1B, a schematic diagram of the configuration service module of FIG. 1A determining default parameter values is shown:
in fig. 1B, according to different functions implemented by the configuration service module, the configuration preparation phase and the configuration application phase may be divided, where the configuration preparation phase corresponds to implementation of the first function of the configuration service module, and the configuration application phase corresponds to implementation of the second function of the configuration service module.
Referring to fig. 1B, the configuration service module may include: a traffic analysis engine module, a profile database, and a configuration selector module. The traffic analysis engine module may include: traffic resolvers and protocol analyzers developed for different protocols, it is assumed in the disclosed embodiments that ARP, DHCP, and OSPF analyzers as shown in fig. 1B have been developed. It should be noted that, the implementation process of the embodiments of the present disclosure is described above by taking only a few specific protocols as examples, and network traffic of a network protocol that is not illustrated may also be analyzed and corresponding default parameter values determined by applying the principles and modes shown in the embodiments of the present disclosure, which are not limited to the embodiments of the present disclosure.
In the configuration preparation stage, assuming that the probe module and the probe device report the network traffic of the specified protocol to the traffic decomposer, the traffic decomposer can decode the reported network traffic of the specified protocol, and separate to obtain network traffic of different protocols, for example, obtain specified ARP traffic, DHCP traffic and OSPF traffic respectively; the flow decomposer sends the separated network flow to different protocol analyzers according to the corresponding protocol, for example, ARP flow is sent to an ARP analyzer, DHCP flow is sent to a DHCP analyzer, OSPF is sent to an OSPF analyzer and the like; the different protocol analyzers analyze the received network traffic, extract predefined effective parameters from the network traffic, generate a parameter file of a corresponding protocol based on the extracted effective parameters, store the parameter file in a configuration file database, take an ARP analyzer as an example, analyze the received ARP response message and/or ARP free message, extract a MAC address and an IP address from the ARP response message and/or ARP free message, and if a plurality of IP addresses are analyzed to point to the same MAC address, determine that the MAC address is a gateway address, thereby generating a parameter file of an ARP protocol, and send the parameter file to the configuration file database for storage. The parameter file may include the following information: source (protocol type), update (parameter update time), type (parameter type), value (parameter value), agent (parameter source address, i.e. the address of the probe module or probe device that detects the corresponding network traffic).
In the configuration application stage, when a user configures software parameters through a configuration interface of the network node device, the network node device may send a parameter type of the default parameter item to a configuration selector module, and the configuration selector module may filter one or more target parameter files matched with the parameter type from a configuration file database, determine default parameter values from the target parameter files, and output the default parameter values to the configuration interface for display.
As can be seen from the foregoing description, compared with the prior art in which the default parameter value is determined only based on the historical configuration of the network node device, the embodiment of the present disclosure determines the default parameter value to be configured based on the parameter value obtained by fully analyzing the network traffic in the distributed network topology, and the parameter value obtained by the analysis can embody the real-time changes of the user environment, the networking environment, and the like in the whole network topology, so that the present disclosure has higher timeliness, not only can improve the configuration accuracy of the default parameter value, but also does not require a great amount of manual checking work by the user, and simultaneously improves the configuration efficiency of the default parameter value.
Embodiments of the present disclosure for determining default parameter values are described in detail below in conjunction with the foregoing fig. 1A and 1B.
Referring to fig. 2, a flowchart of a method for determining default parameter values is provided for one embodiment of the present disclosure, which may be applied to a web server as shown in fig. 1A, and may include:
step 201: and receiving a configuration request sent by the target network node equipment, wherein the configuration request comprises the parameter type of the default parameter item.
In a distributed network topology, if a certain network node device needs to perform parameter configuration on its own device or on running software, embodiments of the present disclosure refer to that network node device as a target network node device. In the parameter configuration interface, a plurality of parameter items are displayed, wherein some parameter items need to be manually input and configured by a user, and other parameter items serve as default parameter items, so that the default configuration can be realized by applying the embodiment.
In this embodiment, the target network node device may send the parameter type (type) of the default parameter item to the network server through the configuration request. For example, the parameter type of the default parameter item may be "IPv4 gateway", and accordingly, the default parameter value to be configured may be the MAC address of the IPv4 gateway.
Step 202: searching parameter files in a configuration file database to obtain target parameter files matched with the parameter types, wherein the parameter files are generated by analyzing network traffic in network topology, and each parameter file comprises the parameter types and the parameter values.
As can be seen from the foregoing description of fig. 1A and fig. 1B, the configuration preparation process for generating the parameter file and the configuration application process for determining the default parameter value in the embodiment of the present disclosure may be two processes that are executed in parallel. That is, the network server can perform flow analysis on network flows of different protocols in real time, generate parameter files for different protocols and store the parameter files in the configuration file database; on the other hand, in the flow analysis process, a configuration request is received and a default parameter value is determined.
In one example, the parameter file may include: source (protocol type, e.g. ARP), update (parameter update time, e.g. 2019/9/9 14:02:03), type (parameter type, e.g. ipv4_gateway), value (parameter value, e.g. 10.152.1.1), agent (parameter source address, i.e. the address of the probe module or probe device that detects the corresponding network traffic, e.g. 10.152.1.1).
After receiving the configuration request, the network server can search the file database, match the parameter types of the parameter files in the configuration file database one by using the parameter types of the default parameter items in the configuration request, and when the parameter types are consistent with each other, determine the matched parameter files as target parameter files.
Step 203: the parameter values in the target parameter file are determined as default parameter values for the default parameter items.
In this embodiment, when a target file is matched, the parameter value in the target parameter file may be determined as a default parameter value; when the configuration priority is matched with the plurality of target parameter files, the parameter value with the highest configuration priority can be determined as the default parameter value from the plurality of target parameter files according to a preset priority rule.
In one example, a segment priority weight value for a parameter source address in each target parameter file may be determined, and a protocol priority weight value for a protocol type in each target parameter file may be determined, then the products of the segment priority weight values and the protocol priority weight values are ordered, and the parameter value in the target parameter file with the largest product value is determined as a default parameter value, which may also be referred to as a default parameter value.
It should be noted that, in the above example, in addition to the default parameter values that have been determined, a certain number of alternative default parameter values may be determined from the remaining parameter values, so that when the default parameter values do not meet the requirements, the alternative default parameter values are sequentially output to implement automatic configuration. For example, for each remaining parameter value, a weight value corresponding to the number of times the parameter value is filled in by the user may be summed with a product value obtained by the parameter value through the foregoing calculation priority, and after the summed values are reordered, a parameter value with a previous summed value may be taken as an alternative default parameter value.
As can be seen from the above embodiments, the default parameter value to be configured is determined from the parameter values obtained after the network traffic in the distributed network topology is fully analyzed, and the parameter values obtained by the analysis can reflect changes of the user environment, the networking environment and the like, so that the method has higher timeliness, not only can improve the configuration accuracy of the default parameter value, but also does not need to perform a large amount of manual checking work by a user, and meanwhile, improves the configuration efficiency of the default parameter value.
Referring to fig. 3, a flowchart of a method for determining default parameter values provided for another embodiment of the present disclosure may be applied to a web server as shown in fig. 1A, which may include:
step 301: network traffic of a plurality of specified protocols forwarded by the network routing device is obtained.
In the distributed network topology, network traffic of multiple protocols is transmitted therein, and in order to obtain a default parameter item closest to actual requirements when configuring the default parameter item, the embodiment of the disclosure may analyze network traffic of a specified protocol of the multiple protocols, and as can be known from fig. 1A, the network traffic of the specified protocol may be reported to a network server by a set probe module or a probe device.
In one example, network traffic specifying a protocol may include: ARP response messages, ARP free messages, OSPF Hello messages, DHCP unicast messages, etc.
Step 302: and respectively carrying out flow analysis on network flows of different protocols to generate parameter files aiming at the different protocols, wherein each parameter file comprises a protocol type, a parameter type and a parameter value.
As can be seen from the foregoing description of fig. 1B, the network server may decode the received network traffic of a plurality of specified protocols, separate the network traffic according to the protocol types, call the protocol analyzer of each protocol, analyze the network traffic of the corresponding protocol type, extract the predefined effective parameters from the network traffic, and then generate the parameter file of the corresponding protocol according to the effective parameters of each protocol. Each parameter file may include the following information: source (protocol type), update (parameter update time), type (parameter type), value (parameter value), agent (parameter source address, i.e. the address of the probe module or probe device that detects the corresponding network traffic). It should be noted that, in the foregoing general examples of the information included in the parameter file, in practical application, for different protocols, the corresponding parameter file may include different parameter values according to default configuration requirements, which is not limited in this embodiment.
The following examples are made in connection with several specified protocols:
1. network traffic of a specified protocol is ARP messages
The ARP analyzer can extract the MAC address and the IP address from the ARP response message and the ARP free message, and if a plurality of IP addresses point to the same MAC address, the MAC address can be analyzed to be a gateway address, so that a parameter file of an ARP protocol is generated, and the parameter value in the parameter file contains the gateway address.
2. Network traffic of a specified protocol is DHCP unicast messages
The DHCP analyzer may extract an IP address, a MAC address, a network segment where a current network is located, a subnet mask, a current gateway IP address, a DNS server address, etc. of the DHCP server from the DHCP unicast message; if a plurality of gateway IP addresses all point to the same network node equipment A, a plurality of DNS server addresses all point to the same network node equipment B, so that a parameter file of a DHCP protocol is generated, wherein the parameter value in the parameter file comprises the gateway equipment which is the network node equipment A and the DNS server which is the network node equipment B.
3. The network flow of the designated protocol is OSPF Hello message
The OSPF analyzer may extract the following parameters from the OSPF Hello message:
in general, when the default configuration of the OSPF protocol is performed, parameters such as the Area ID, hello Interval, and IP address of DR need to be configured, so that the extracted valid parameters can be saved in a parameter file.
Step 303: and saving the parameter file into a configuration file database.
Examples of data structures for three parameter files in the profile database are shown below:
it should be noted that, the above description is only given by taking the parameter file of one data structure of ARP and DHCP as an example, in practical application, the parameter file different from the data structure of the above example may be used to save the parameter value according to the default parameter configuration requirement of different types of protocols, which is not limited in this embodiment.
Step 304: and receiving a configuration request sent by the target network node equipment, wherein the configuration request comprises the parameter type of the default parameter item.
Step 305: and searching the parameter files in the configuration file database to obtain a target parameter file matched with the parameter type.
In this embodiment, it is assumed that the parameter type (type) of the default parameter item in the configuration request is "IPv4 gateway", and correspondingly, the default parameter value to be configured may be the MAC address of the IPv4 gateway; the network server looks up the profile database as exemplified in step 303 based on the parameter type "IPv4 gateway" and can find three target parameter files.
Step 306: judging whether the target parameter file is one, if so, executing step 307; otherwise, step 308 is performed.
Step 307: and determining the parameter value in the target parameter file as a default parameter value, and ending the current flow.
Step 308: and determining the parameter value in the target parameter file with the highest configuration priority as a default parameter value from a plurality of target parameter files according to a preset priority rule, and ending the current flow.
In this step, the network server may determine a network segment priority weight value of the parameter source address in each target parameter file, determine a protocol priority weight value of the protocol type in each target parameter file, then sort products of the network segment priority weight value and the protocol priority weight value, and determine a parameter value in a target parameter file with the largest product as a parameter value with the highest priority, and determine the parameter value as a default parameter value.
The priority setting rule described above can be expressed by the following formula:
configuration item parameter priority = network segment priority weight value x (protocol priority weight value-time degradation value)
In combination with the above formula, in an example of determining the network segment priority weight value of the parameter source address, the network segment address of the target network node device may be obtained, then the network segment address is compared with each parameter source address, and a preset network segment priority configuration table is searched according to the number of coincident bits of the network segment address and each parameter source address, so as to obtain the network segment priority weight value corresponding to the number of coincident bits. An example of a segment priority configuration table is as follows:
In combination with the above formula, in an example of determining the protocol priority weight value of the protocol type in each target parameter file, a time difference between the current time and the parameter update time may be calculated, and a time degradation value corresponding to the time difference is obtained, where the time difference is in a proportional relationship with the time degradation value, and then the difference between the initial priority value of the protocol type and the time degradation value is determined as the protocol priority weight value.
In one example, it may be assumed that the parameter files in the profile database can be saved for 4 hours, and since the parameter update time is saved in each parameter file, the time when the parameter file is currently saved, i.e., the instant difference value, may be calculated accordingly; assume a time degradation rule of: if the time difference is less than 30 minutes, the time degradation value is 0, and if the time difference exceeds 30 minutes, the time degradation value is increased by 1 every 10 minutes on a 30 minute basis.
The following is an example of an initial priority value for one protocol type:
in connection with the above table example, the initial priority value of a protocol type may be set according to the following rules:
if the parameter value of a certain parameter type can only be obtained by analysis from the network traffic of a specific protocol, only the initial priority value of the protocol type corresponding to the parameter type is set, for example, the subnet mask in the above table can only be obtained by analysis of the DHCP traffic, and if the parameter type of the default parameter item is the subnet mask, the initial priority value is extracted from the above table to be 40;
If the parameter value of a certain parameter type can be obtained by analysis from the network traffic of two specified protocols, the initial priority value of the protocol type corresponding to the parameter type can be respectively set, for example, the gateway MAC in the table can be obtained by analysis of ARP traffic and DHCP traffic, the initial priority value can be respectively set to 40 and 30, wherein the initial priority value of ARP is higher than DHCP;
if the parameter value of a certain parameter type can be obtained by analysis from network traffic of three or more specified protocols, the initial priority value of the protocol type corresponding to the parameter type can be set respectively, for example, the gateway IP in the table can be obtained by analysis of ARP traffic, ICMP traffic and DHCP traffic, and the initial priority value can be set to 30, 30 and 50 respectively; in one example, if the parameter values of the gateway IP address are the same in the target parameter file, the parameter file with the protocol type ARP, and the parameter file with the protocol type ICMP, the value 60 of the initial priority values of the two protocol types may be added as the initial priority value of the protocol type.
In combination with the above example, in one example, assuming that the initial priority value of the gateway MAC is 40, after 1 hour, the time degradation value is 3, and the corresponding protocol priority weight value is: 40-3=37.
It should be noted that the above priority rule is only described as an example, and the priority rule may be adjusted to adapt to a change of a network environment during actual development and application, but no matter what priority rule is set, the purpose of the priority rule is to reasonably determine an optimal default parameter value from a plurality of parameter values, so the example of the priority rule should not be construed as limiting the disclosure.
As can be seen from the above embodiments, the default parameter value to be configured is determined from the parameter values obtained after the network traffic in the distributed network topology is fully analyzed, and the parameter values obtained by the analysis can reflect changes of the user environment, the networking environment and the like, so that the method has higher timeliness, not only can improve the configuration accuracy of the default parameter value, but also does not need to perform a large amount of manual checking work by a user, and meanwhile, improves the configuration efficiency of the default parameter value.
Corresponding to embodiments of the method of determining a default parameter value in the present disclosure, the present disclosure also provides embodiments of the apparatus for determining a default parameter value, and embodiments of the web server.
As shown in fig. 4, a schematic diagram of an apparatus for determining default parameter values, where the apparatus is applied to a network server in a distributed network topology, and a network node device in the network topology further includes a network routing device, according to an embodiment of the present disclosure, where the apparatus includes: a receiving unit 410, a finding unit 420 and a determining unit 430.
The receiving unit 410 is configured to receive a configuration request sent by the target network node device, where the configuration request includes a parameter type of a default parameter item;
a searching unit 420, configured to search a parameter file in a configuration file database, and obtain a target parameter file matched with the parameter type, where the parameter file is generated by analyzing network traffic in the network topology, and each parameter file includes a parameter type and a parameter value;
a determining unit 430, configured to determine a parameter value in the target parameter file as a default parameter value of the default parameter item.
As shown in fig. 5, a schematic diagram of an apparatus for determining default parameter values according to another embodiment of the present disclosure, where the apparatus is applied to a network server in a distributed network topology, and a network node device in the network topology further includes a network routing device, where the apparatus includes: an acquisition unit 510, an analysis unit 520, a saving unit 530, a receiving unit 540, a search unit 550, and a determination unit 560.
The acquiring unit 510 is configured to acquire network traffic of a plurality of specified protocols forwarded by the network routing device;
the analysis unit 520 is configured to perform flow analysis on network flows of different protocols, and generate parameter files for different protocols, where each parameter file includes a protocol type, a parameter type, and a parameter value;
A saving unit 530 for saving the parameter file into the configuration file database
A receiving unit 540, configured to receive a configuration request sent by a target network node device, where the configuration request includes a parameter type of a default parameter item;
a searching unit 550, configured to search the parameter files in the configuration file database, and obtain a target parameter file matched with the parameter type;
a determining unit 560, configured to determine a parameter value in the target parameter file as a default parameter value of the default parameter item.
In an alternative implementation, the analysis unit 520 may include (not shown in fig. 5):
the flow separation subunit is used for decoding the network flows of the plurality of designated protocols and separating to obtain the network flows of different protocols;
a protocol analysis subunit, configured to invoke a protocol analyzer of each protocol, and extract a predefined valid parameter from a network traffic of a corresponding protocol type by analyzing the network traffic;
and the file generation subunit is used for generating a parameter file of the corresponding protocol according to the effective parameters of each protocol.
In another alternative implementation, the determining unit 560 may specifically be configured to: when the target parameter file is one, determining a parameter value in the target parameter file as the default parameter value;
And when the target parameter files are multiple, determining the parameter value in the target parameter file with the highest configuration priority from the multiple target parameter files as the default parameter value according to a preset priority rule.
In another alternative implementation, the network traffic in the network topology is detected by a probe module; each parameter file further comprises: a parameter source address, which is an address of a probe module that detects the corresponding network traffic, the determining unit 560 may include (not shown in fig. 5):
a network segment priority determining subunit, configured to determine a network segment priority weight value of the parameter source address in each target parameter file;
a protocol priority determining subunit, configured to determine a protocol priority weight value of a protocol type in each target parameter file;
and the default parameter value determining subunit is used for sequencing the products of the network segment priority weight values and the protocol priority weight values, and determining the parameter value in the target parameter file with the largest product value as the default parameter value.
Optionally, the network segment priority determining subunit may be specifically configured to obtain a network segment address of the target network node device, compare the network segment address with each parameter source address, search a preset network segment priority configuration table according to the number of overlapping bits of the network segment address and each parameter source address, and obtain a network segment priority weight value corresponding to the number of overlapping bits.
Optionally, each parameter file may further include a number of update times; the protocol priority determining subunit may be specifically configured to calculate a time difference between a current time and the parameter update time, and obtain a time degradation value corresponding to the time difference, where the time difference is in a proportional relationship with the time degradation value; and determining the difference value between the initial priority value of the protocol type and the time degradation value as the protocol priority weight value.
As shown in fig. 6, a block diagram of a network server according to an embodiment of the present disclosure is provided, where the network server is a network node device in a distributed network topology, and the network server includes: a memory 610 and a processor 620;
the memory 610 for storing machine-readable instructions;
the processor 620 is configured to execute the method embodiments of determining default parameter values as described above by invoking the machine readable instructions.
The present disclosure also provides an embodiment of a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method embodiments of determining default parameter values as described previously.
As can be seen from the above embodiments, by analyzing network traffic of different protocols in the distributed network topology, parameter files for different protocols are generated, and each parameter file includes a parameter type and a parameter value, so that when the network server receives a configuration request of a parameter type including a default parameter item, the network server can match the parameter files to target parameter files with consistent parameter types, thereby determining the parameter values in the target parameter files as default parameter values of the default parameter item. Compared with the prior art that the default parameter value is determined only based on the historical configuration of the network node equipment, the embodiment of the disclosure determines the default parameter value to be configured from the parameter values obtained after the network flow in the distributed network topology is fully analyzed, and the parameter values obtained through the analysis can reflect the changes of the user environment, the networking environment and the like, so that the method has higher timeliness, can improve the configuration accuracy of the default parameter value, and simultaneously does not need a great amount of manual checking work of a user, and improves the configuration efficiency of the default parameter value.
The various embodiments in this disclosure are described in a progressive manner, and identical and similar parts of the various embodiments are all referred to each other, and each embodiment is mainly described as different from other embodiments. In particular, for data processing apparatus embodiments, the description is relatively simple, as it is substantially similar to method embodiments, with reference to the description of method embodiments in part.
The foregoing has described certain embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the acts or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Although this disclosure contains many specific implementation details, these should not be construed as limiting the scope of any disclosure or the scope of what is claimed, but rather as primarily describing features of particular embodiments of the particular disclosure. Certain features that are described in this disclosure in the context of separate embodiments can also be implemented in combination in a single embodiment. On the other hand, the various features described in the individual embodiments may also be implemented separately in the various embodiments or in any suitable subcombination. Furthermore, although features may be acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
The foregoing description of the preferred embodiment(s) of the present disclosure is merely intended to illustrate the embodiment(s) of the present disclosure, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the embodiment(s) of the present disclosure are intended to be included within the scope of the present disclosure.
Claims (8)
1. A method of determining default parameter values, the method being applied on a network server in a distributed network topology, the network node devices in the network topology further comprising network routing devices, the method comprising:
Receiving a configuration request sent by target network node equipment, wherein the configuration request comprises a parameter type of a default parameter item;
searching a parameter file in a configuration file database to obtain a target parameter file matched with the parameter type, wherein the parameter file is generated by analyzing network traffic in the network topology, and each parameter file comprises the parameter type and a parameter value;
determining a parameter value in the target parameter file as a default parameter value of the default parameter item;
the determining the parameter value in the target parameter file as the default parameter value of the default parameter item comprises:
when the target parameter file is one, determining a parameter value in the target parameter file as the default parameter value;
when the target parameter files are multiple, determining the parameter value in the target parameter file with the highest configuration priority from the multiple target parameter files as the default parameter value according to a preset priority rule;
network traffic in the network topology is detected by a probe module; each parameter file further comprises: a parameter source address, wherein the parameter source address is the address of the probe module which detects the corresponding network traffic;
And determining, according to a preset priority rule, a parameter value in a target parameter file with the highest configuration priority as the default parameter value from the plurality of target parameter files, including:
determining a network segment priority weight value of a parameter source address in each target parameter file;
determining a protocol priority weight value of a protocol type in each target parameter file;
sorting the products of the network segment priority weight values and the protocol priority weight values, and determining the parameter value in the target parameter file with the maximum product value as a default parameter value;
the determining the network segment priority weight value of the parameter source address in each target parameter file comprises the following steps:
acquiring a network segment address of the target network node equipment;
and comparing the network segment address with each parameter source address, and searching a preset network segment priority configuration table according to the coincident bit quantity of the network segment address and each parameter source address to obtain a network segment priority weight value corresponding to the coincident quantity.
2. The method according to claim 1, wherein the method further comprises:
acquiring network traffic of a plurality of designated protocols forwarded by the network routing equipment;
respectively carrying out flow analysis on network flows of different protocols to generate parameter files aiming at the different protocols, wherein each parameter file also comprises a protocol type;
And saving the parameter file into the configuration file database.
3. The method according to claim 2, wherein the performing traffic analysis on the network traffic of the different protocols, respectively, generates a parameter file for the different protocols, includes:
decoding the network traffic of the plurality of designated protocols, and separating to obtain network traffic of different protocols;
invoking a protocol analyzer of each protocol, and extracting predefined effective parameters from network traffic of a corresponding protocol type by analyzing the network traffic;
and generating a parameter file of the corresponding protocol according to the effective parameters of each protocol.
4. The method of claim 1, wherein each parameter file further comprises: parameter updating time;
the determining the protocol priority weight value of the protocol type in each target parameter file includes:
calculating a time difference value between the current time and the parameter updating time, and obtaining a time degradation value corresponding to the time difference value, wherein the time difference value and the time degradation value are in a direct proportion relation;
and determining the difference value between the initial priority value of the protocol type and the time degradation value as the protocol priority weight value.
5. An apparatus for determining default parameter values, the apparatus being for use on a network server in a distributed network topology, a network node device in the network topology further comprising a network routing device, the apparatus comprising:
a receiving unit, configured to receive a configuration request sent by a target network node device, where the configuration request includes a parameter type of a default parameter item;
the searching unit is used for searching parameter files in the configuration file database to obtain target parameter files matched with the parameter types, wherein the parameter files are generated by analyzing network traffic in the network topology, and each parameter file comprises the parameter types and the parameter values;
a determining unit configured to determine a parameter value in the target parameter file as a default parameter value of the default parameter item;
the determining unit is configured to determine a parameter value in the target parameter file as a default parameter value of the default parameter item, where the determining unit is configured to:
when the target parameter file is one, determining a parameter value in the target parameter file as the default parameter value;
when the target parameter files are multiple, determining the parameter value in the target parameter file with the highest configuration priority from the multiple target parameter files as the default parameter value according to a preset priority rule;
Network traffic in the network topology is detected by a probe module; each parameter file further comprises: a parameter source address, wherein the parameter source address is the address of the probe module which detects the corresponding network traffic;
and determining, according to a preset priority rule, that a parameter value in a target parameter file with the highest configuration priority is the default parameter value from the plurality of target parameter files, where the determining unit is configured to:
determining a network segment priority weight value of a parameter source address in each target parameter file;
determining a protocol priority weight value of a protocol type in each target parameter file;
sorting the products of the network segment priority weight values and the protocol priority weight values, and determining the parameter value in the target parameter file with the maximum product value as a default parameter value;
the determining unit is configured to determine a segment priority weight value of a parameter source address in each target parameter file:
acquiring a network segment address of the target network node equipment;
and comparing the network segment address with each parameter source address, and searching a preset network segment priority configuration table according to the coincident bit quantity of the network segment address and each parameter source address to obtain a network segment priority weight value corresponding to the coincident quantity.
6. The apparatus of claim 5, wherein the apparatus further comprises:
an obtaining unit, configured to obtain network traffic of a plurality of specified protocols forwarded by the network routing device;
the analysis unit is used for respectively carrying out flow analysis on network flows of different protocols and generating parameter files aiming at the different protocols, and each parameter file also comprises a protocol type;
and the storage unit is used for storing the parameter file into the configuration file database.
7. A network server, wherein the network server is a network node device in a distributed network topology, the network server comprising: a memory and a processor;
the memory for storing machine readable instructions;
the processor is configured to perform the method of any of claims 1 to 4 by invoking the machine readable instructions.
8. A computer readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, implements the method according to any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111183858.2A CN113992507B (en) | 2021-10-11 | 2021-10-11 | Method, device, server and storage medium for determining default parameter values |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111183858.2A CN113992507B (en) | 2021-10-11 | 2021-10-11 | Method, device, server and storage medium for determining default parameter values |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113992507A CN113992507A (en) | 2022-01-28 |
CN113992507B true CN113992507B (en) | 2023-10-27 |
Family
ID=79738147
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111183858.2A Active CN113992507B (en) | 2021-10-11 | 2021-10-11 | Method, device, server and storage medium for determining default parameter values |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113992507B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115065627B (en) * | 2022-05-20 | 2024-04-12 | 北京奇艺世纪科技有限公司 | Parameter modification method and device, electronic equipment and storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5557748A (en) * | 1995-02-03 | 1996-09-17 | Intel Corporation | Dynamic network configuration |
KR20050048886A (en) * | 2003-11-20 | 2005-05-25 | 엘지전자 주식회사 | Method for setting up data default value of switching system |
CN1725695A (en) * | 2004-11-25 | 2006-01-25 | 杭州华为三康技术有限公司 | Exchange configuration method and system |
JP2006040159A (en) * | 2004-07-29 | 2006-02-09 | Sharp Corp | Device, method and program for determining design default value and computer readable program which records design initial value determination program |
US7702732B1 (en) * | 1999-09-29 | 2010-04-20 | Nortel Networks Limited | Methods for auto-configuring a router on an IP subnet |
CN107733708A (en) * | 2017-10-16 | 2018-02-23 | 平安科技(深圳)有限公司 | Device parameter collocation method, device, computer equipment and storage medium |
WO2020082899A1 (en) * | 2018-10-26 | 2020-04-30 | 华为技术有限公司 | Configuration parameter update method and apparatus |
CN111385131A (en) * | 2018-12-29 | 2020-07-07 | 华为技术有限公司 | Configuration method, device, equipment and system of network equipment |
WO2021052162A1 (en) * | 2019-09-17 | 2021-03-25 | 华为技术有限公司 | Network parameter configuration method and apparatus, computer device, and storage medium |
WO2021164330A1 (en) * | 2020-02-19 | 2021-08-26 | 华为技术有限公司 | Key value configuration-based control request sending method, apparatus and system |
CN113392607A (en) * | 2020-03-12 | 2021-09-14 | 华为技术有限公司 | Method for determining configuration parameters and related equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7389333B2 (en) * | 2003-07-02 | 2008-06-17 | Fujitsu Limited | Provisioning a network element using custom defaults |
-
2021
- 2021-10-11 CN CN202111183858.2A patent/CN113992507B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5557748A (en) * | 1995-02-03 | 1996-09-17 | Intel Corporation | Dynamic network configuration |
US7702732B1 (en) * | 1999-09-29 | 2010-04-20 | Nortel Networks Limited | Methods for auto-configuring a router on an IP subnet |
KR20050048886A (en) * | 2003-11-20 | 2005-05-25 | 엘지전자 주식회사 | Method for setting up data default value of switching system |
JP2006040159A (en) * | 2004-07-29 | 2006-02-09 | Sharp Corp | Device, method and program for determining design default value and computer readable program which records design initial value determination program |
CN1725695A (en) * | 2004-11-25 | 2006-01-25 | 杭州华为三康技术有限公司 | Exchange configuration method and system |
CN107733708A (en) * | 2017-10-16 | 2018-02-23 | 平安科技(深圳)有限公司 | Device parameter collocation method, device, computer equipment and storage medium |
WO2020082899A1 (en) * | 2018-10-26 | 2020-04-30 | 华为技术有限公司 | Configuration parameter update method and apparatus |
CN111385131A (en) * | 2018-12-29 | 2020-07-07 | 华为技术有限公司 | Configuration method, device, equipment and system of network equipment |
WO2021052162A1 (en) * | 2019-09-17 | 2021-03-25 | 华为技术有限公司 | Network parameter configuration method and apparatus, computer device, and storage medium |
WO2021164330A1 (en) * | 2020-02-19 | 2021-08-26 | 华为技术有限公司 | Key value configuration-based control request sending method, apparatus and system |
CN113392607A (en) * | 2020-03-12 | 2021-09-14 | 华为技术有限公司 | Method for determining configuration parameters and related equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113992507A (en) | 2022-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110661669B (en) | Network topology automatic discovery method of network equipment based on ICMP, TCP and UDP protocols | |
US8724494B2 (en) | Network multi-path discovery | |
US8751642B2 (en) | Method and system for management of sampled traffic data | |
CN107197059B (en) | DNS (Domain name Server) analysis method and device | |
CN105991334A (en) | Network topology self-discovering method and device | |
CN103339887A (en) | Method for optimizing a network prefix-list search | |
EP3222003B1 (en) | Inline packet tracing in data center fabric networks | |
CN109672562B (en) | Data processing method and device, electronic equipment and storage medium | |
JP5234544B2 (en) | Network configuration information acquisition method and apparatus | |
CN113992507B (en) | Method, device, server and storage medium for determining default parameter values | |
CN106790059A (en) | Intelligent television Launcher cloud systems service calling method and system | |
EP2775676A1 (en) | Policy based routing method and device | |
US8782092B2 (en) | Method and apparatus for streaming netflow data analysis | |
CN103581020B (en) | The method of a kind of message forwarding, Apparatus and system | |
CN112350844B (en) | Method and device for data transmission | |
CN115766252A (en) | Flow abnormity detection method and device, electronic equipment and storage medium | |
CN115174414A (en) | Method, system and electronic device for automatically identifying devices and device paths in session | |
CN114244763A (en) | Dynamic network topology management method and system based on rule engine | |
CN105207904A (en) | Message processing method, device and router | |
CA2497553A1 (en) | Procedure and system for the analysis and the evaluation of the conditions for accessing data communication networks, and relative computer program product | |
CN101616092B (en) | Method and device for routing discovery | |
CN114826978B (en) | Link quality testing method, equipment and storage medium | |
CN112995025B (en) | Path tracking method, device, equipment and computer readable storage medium | |
JP6859794B2 (en) | Communication system setting method, communication system setting device and communication system setting program | |
CN112448847B (en) | Method and device for determining network asset location information |
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 |