CN111541569A - Network node configuration method and device - Google Patents

Network node configuration method and device Download PDF

Info

Publication number
CN111541569A
CN111541569A CN202010321201.7A CN202010321201A CN111541569A CN 111541569 A CN111541569 A CN 111541569A CN 202010321201 A CN202010321201 A CN 202010321201A CN 111541569 A CN111541569 A CN 111541569A
Authority
CN
China
Prior art keywords
network
mode
subnet
configuration
range
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
CN202010321201.7A
Other languages
Chinese (zh)
Other versions
CN111541569B (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.)
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Information and Telecommunication 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 State Grid Corp of China SGCC, State Grid Information and Telecommunication Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202010321201.7A priority Critical patent/CN111541569B/en
Publication of CN111541569A publication Critical patent/CN111541569A/en
Application granted granted Critical
Publication of CN111541569B publication Critical patent/CN111541569B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a network node configuration method, which comprises the following steps: acquiring the network topology of a target virtual network; resolving the target virtual network based on the network topology; calculating to obtain a subnet network range, a subnet network segment and a subnet usable range of the network topology based on the analysis result; acquiring a preset network configuration mode matched with a user input instruction; in the subnet network range, the subnet network segment and the subnet usable range, carrying out IP network allocation and routing calculation of a network topology structure on the nodes of the network topology based on the preset network configuration mode to obtain a network configuration file and a routing file which are matched with the network configuration mode; and constructing a virtual network based on the network configuration file and the routing file, and providing an efficient network node distribution scheme.

Description

Network node configuration method and device
Technical Field
The invention relates to the technical field of computer networks, in particular to a network node configuration method and device.
Background
With the increasing scale of virtual networks, the number of network nodes is increasing, and the efficiency requirement for network configuration of various nodes in the virtual network is high.
In the prior art, when the virtual network performs IP allocation on various network nodes, only a single network configuration can be performed, and this configuration mode wastes a lot of time and is not suitable for a large-scale virtual network.
Therefore, a network node allocation method with high allocation efficiency is urgently needed.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for configuring a network node.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a network node configuration method, comprising:
acquiring the network topology of a target virtual network;
resolving the target virtual network based on the network topology;
calculating to obtain a subnet network range, a subnet network segment and a subnet usable range of the network topology based on the analysis result;
acquiring a preset network configuration mode matched with a user input instruction;
in the subnet network range, the subnet network segment and the subnet usable range, carrying out IP network allocation and routing calculation of a network topology structure on the nodes of the network topology based on the preset network configuration mode to obtain a network configuration file and a routing file which are matched with the network configuration mode;
and constructing a virtual network based on the network configuration file and the routing file.
Optionally, in the network node configuration method, the preset network configuration mode includes, but is not limited to, a full-automatic allocation mode, a host self-definition mode, a host full-definition mode, a network self-definition mode, and a range allocation mode.
A network node configuration apparatus comprising:
the network topology acquisition unit is used for acquiring the network topology of the target virtual network by using the invalid service;
a network analyzing unit, configured to analyze the target virtual network based on the network topology; calculating to obtain a subnet network range, a subnet network segment and a subnet usable range of the network topology based on the analysis result;
the configuration mode selection unit is used for acquiring a preset network configuration mode matched with a user input instruction;
the network construction unit is used for carrying out IP network allocation and routing calculation of a network topology structure on the nodes of the network topology based on the preset network configuration mode within the subnet network range, the subnet network segment and the subnet usable range to obtain a network configuration file and a routing file which are matched with the network configuration mode; and constructing a virtual network based on the network configuration file and the routing file.
Optionally, in the foregoing network node configuring apparatus, the preset network configuration mode includes, but is not limited to, a full-automatic allocation mode, a host self-definition mode, a host full-definition mode, a network self-definition mode, and a range allocation mode.
According to the technical scheme provided by the embodiment of the invention, the selection of a proper network configuration mode based on different network configuration requirements is realized, and an efficient network node distribution method is provided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a network node configuration method disclosed in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a network node configuration device disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
A fast, convenient and accurate network configuration technology needs to be found, so that a user can select different interface modes to perform network configuration allocation according to actual requirements, simulate a large-scale virtual network, realize various network behaviors required by the virtual network and communication behaviors among nodes, and further increase flexibility of network configuration allocation.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Because the real network structure is extremely complex, a single network address allocation mode cannot meet the requirements of some network structures. Therefore, the present invention aims to provide a method for configuring a destination network node, which can implement various network allocation modes. The technology mainly adopts different configurations for network topology to realize network configuration among various simulation network structure environment nodes.
The application discloses a network node configuration method, referring to fig. 1, the method includes:
step S101: acquiring the network topology of a target virtual network;
the method and the device can pre-construct the link information of the virtual network, and further construct a target virtual network needing network node configuration;
step S102: resolving the target virtual network based on the network topology;
after the network topology of the target virtual network is constructed, analyzing the target virtual network based on the network topology, and calculating the network topology of the target virtual network based on the basic rules of the network topology structure and the basic rules of the network connection to obtain the subnet network range, the subnet network segment, the subnet usable range or other data parameter information described by the network topology of the target virtual network;
step S103: acquiring a preset network configuration mode matched with a user input instruction;
in this embodiment, the user may set different network matching rules in each mode according to a plurality of preset different types of network configuration modes, for example, in this embodiment, these network configuration modes include but are not limited to: the system comprises a full-automatic distribution mode, a host self-defining mode, a host full-definition mode, a network self-defining mode and a range distribution mode.
In the full-automatic distribution mode, a user does not need to carry out any setting about network configuration, and the system automatically distributes network configuration information for nodes in the network topology and automatically calculates routing information.
In the host full definition mode, the system allows the network configuration of each host in the network to be fully defined, and a user can completely control the network configuration information of the nodes in the network, but all the network configuration information is input by the user, so that errors may occur in routing calculation, and the situation that IP addresses in subnets are not in the same network segment may occur, and meanwhile, the routing calculation is complicated.
The host self-defining mode is similar to the host full-defining mode, and the difference between the host self-defining mode and the host full-defining mode is that a user defines part of hosts in the network topology, the defined content is the same, other hosts in other network topologies carry out automatic completion configuration on the basis of the network topology defined by the user, and route information is calculated on the completed network topology.
In the network full definition mode, a user is allowed to fully define the configuration information in the network, and the system performs network construction work according to the network information configured by the user.
In the network self-defining mode, the user is allowed to partially define the configuration information in the network, and the system completes the rest completion according to the network information configured by the user and completes the construction work.
In the range allocation mode, a user is allowed to define a range for a certain area in the network topology and perform network configuration allocation, and the system performs information completion according to the network information configured by the user and completes the construction work.
Step S104: in the subnet network range, the subnet network segment and the subnet usable range, carrying out IP network allocation and routing calculation of a network topology structure on the nodes of the network topology based on the preset network configuration mode to obtain a network configuration file and a routing file which are matched with the network configuration mode;
in this step, after the subnet network range, the subnet network segment, and the subnet usable range of the target virtual network are determined, the network configuration mode used in the network layout is selected according to the selection of the user, in this scheme, the network configuration mode used this time may be selected from a plurality of preset network configuration modes by identifying a selection instruction issued by the user, or the network configuration mode used this time may be selected by judging the currently used network interface.
Step S105: constructing a virtual network based on the network configuration file and the routing file;
in this step, after the subnet network range, the subnet network segment, and the subnet usable range are calculated based on the preset network configuration mode, corresponding network configuration files and routing files are obtained, and then a virtual network is constructed based on the network configuration files and the routing files.
Therefore, the technical scheme disclosed by the embodiment of the application realizes selection of a proper network configuration mode based on different network configuration requirements, and provides an efficient network node distribution method.
Corresponding to the foregoing network node configuration method, the present application also discloses a network node configuration device, and the working manner of each unit in the device can refer to the introduction of the foregoing method, and refer to fig. 2, the device can:
a network topology acquisition unit 100 configured to acquire a network topology of a target virtual network using an emergency;
a network analyzing unit 200, configured to analyze the target virtual network based on the network topology; calculating to obtain a subnet network range, a subnet network segment and a subnet usable range of the network topology based on the analysis result;
a configuration mode selection unit 300, configured to acquire a preset network configuration mode matched with a user input instruction;
a network construction unit 400, configured to perform IP network allocation and routing calculation on nodes of the network topology based on the preset network configuration mode within the subnet network range, the subnet network segment, and the subnet usable range, so as to obtain a network configuration file and a routing file that are matched with the network configuration mode; and constructing a virtual network based on the network configuration file and the routing file.
Corresponding to the method, the preset network configuration mode in the device includes, but is not limited to, a full-automatic allocation mode, a host self-definition mode, a host full-definition mode, a network self-definition mode, and a range allocation mode.
The technical solution of the present application is explained below by way of example:
example one: fully automatic allocation mode
The full-automatic allocation mode is used for allocating usable network addresses based on preset network segments, and the real network environment is achieved.
Input topology network profile:
Figure BDA0002461473150000051
Figure BDA0002461473150000061
Figure BDA0002461473150000071
the method comprises the steps that id _ range is the id range of a network topology node, router is the type of a router node, switch is the type of a switch node, host is the type of a host computer node, interface is the description of a node boundary in a network, id represents the number of the node boundary, link is the node of a connecting end of the node, type is the type of the node connected with the end, label content is the id of the node connected with the end, ip is the ip of a network card corresponding to the boundary, netmask is a subnet mask, and gateway is a gateway;
the configuration file output after the network topology is processed by adopting a full distribution mode is as follows:
Figure BDA0002461473150000072
Figure BDA0002461473150000081
Figure BDA0002461473150000091
example two: range allocation pattern
The range allocation mode functions in a similar manner to a fully automatic allocation, specifying the network segments used throughout the network.
Input topology network profile:
Figure BDA0002461473150000092
Figure BDA0002461473150000101
Figure BDA0002461473150000111
the configuration file output after the network topology is processed by adopting the range allocation mode is as follows:
Figure BDA0002461473150000112
Figure BDA0002461473150000121
Figure BDA0002461473150000131
example three: host full definition mode
The role of the host full definition mode is to set network addresses to all nodes to construct a network structure according to the user requirements.
Input topology network profile:
Figure BDA0002461473150000132
Figure BDA0002461473150000141
Figure BDA0002461473150000151
the configuration file output after the network topology is processed by adopting the host full definition mode is as follows:
Figure BDA0002461473150000152
Figure BDA0002461473150000161
Figure BDA0002461473150000171
example four: host custom mode
The host self-defining mode has the similar function as the host full definition, and can specify the network addresses of part of nodes, and the network addresses of other nodes are automatically derived and generated by a program.
Input topology network profile:
Figure BDA0002461473150000172
Figure BDA0002461473150000181
Figure BDA0002461473150000191
adopting a host self-defining mode to carry out post-output configuration files on the network topology:
Figure BDA0002461473150000192
Figure BDA0002461473150000201
Figure BDA0002461473150000211
example five: network full definition mode
The network full definition mode has the function of setting all routing points in the network structure to meet the required network structure and all used network segments, and the purpose of reducing configuration time is achieved.
Input topology network profile:
Figure BDA0002461473150000212
Figure BDA0002461473150000221
Figure BDA0002461473150000231
adopting a network self-defining mode to carry out the network self-defining mode on the network topology and then outputting a configuration file:
Figure BDA0002461473150000232
Figure BDA0002461473150000241
Figure BDA0002461473150000251
Figure BDA0002461473150000261
the embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (4)

1. A method for configuring a network node, comprising:
acquiring the network topology of a target virtual network;
resolving the target virtual network based on the network topology;
calculating to obtain a subnet network range, a subnet network segment and a subnet usable range of the network topology based on the analysis result;
acquiring a preset network configuration mode matched with a user input instruction;
in the subnet network range, the subnet network segment and the subnet usable range, carrying out IP network allocation and routing calculation of a network topology structure on the nodes of the network topology based on the preset network configuration mode to obtain a network configuration file and a routing file which are matched with the network configuration mode;
and constructing a virtual network based on the network configuration file and the routing file.
2. The method according to claim 1, wherein the preset network configuration modes include but are not limited to a full automatic allocation based mode, a host custom mode, a host full definition mode, a network custom mode, and a range allocation mode.
3. A network node configuration apparatus, comprising:
the network topology acquisition unit is used for acquiring the network topology of the target virtual network by using the invalid service;
a network analyzing unit, configured to analyze the target virtual network based on the network topology; calculating to obtain a subnet network range, a subnet network segment and a subnet usable range of the network topology based on the analysis result;
the configuration mode selection unit is used for acquiring a preset network configuration mode matched with a user input instruction;
the network construction unit is used for carrying out IP network allocation and routing calculation of a network topology structure on the nodes of the network topology based on the preset network configuration mode within the subnet network range, the subnet network segment and the subnet usable range to obtain a network configuration file and a routing file which are matched with the network configuration mode; and constructing a virtual network based on the network configuration file and the routing file.
4. The network node configuration apparatus of claim 2, wherein the preset network configuration modes include but are not limited to a full automatic allocation based mode, a host custom mode, a host full definition mode, a network custom mode, and a range allocation mode.
CN202010321201.7A 2020-04-22 2020-04-22 Network node configuration method and device Active CN111541569B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010321201.7A CN111541569B (en) 2020-04-22 2020-04-22 Network node configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010321201.7A CN111541569B (en) 2020-04-22 2020-04-22 Network node configuration method and device

Publications (2)

Publication Number Publication Date
CN111541569A true CN111541569A (en) 2020-08-14
CN111541569B CN111541569B (en) 2022-10-11

Family

ID=71979453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010321201.7A Active CN111541569B (en) 2020-04-22 2020-04-22 Network node configuration method and device

Country Status (1)

Country Link
CN (1) CN111541569B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291097A (en) * 2020-10-30 2021-01-29 绿盟科技集团股份有限公司 Virtual network topology generation method and device
CN114338410A (en) * 2021-12-09 2022-04-12 海光信息技术股份有限公司 Method, device and system for generating routing path file and related equipment
CN115277428A (en) * 2022-07-27 2022-11-01 京东科技信息技术有限公司 Method and apparatus for configuring a network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090122718A1 (en) * 2007-11-09 2009-05-14 Klessig Robert W Global auto-configuration of network devices connected to multipoint virtual connections
CN102307249A (en) * 2011-09-28 2012-01-04 北京东土科技股份有限公司 IP address automatic configuration method based on link layer topology
US20160182279A1 (en) * 2014-12-19 2016-06-23 Vmware, Inc. Automatically configuring data center networks with neighbor discovery protocol support
CN110708178A (en) * 2018-07-09 2020-01-17 中兴通讯股份有限公司 Network deployment method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090122718A1 (en) * 2007-11-09 2009-05-14 Klessig Robert W Global auto-configuration of network devices connected to multipoint virtual connections
CN102307249A (en) * 2011-09-28 2012-01-04 北京东土科技股份有限公司 IP address automatic configuration method based on link layer topology
US20160182279A1 (en) * 2014-12-19 2016-06-23 Vmware, Inc. Automatically configuring data center networks with neighbor discovery protocol support
CN110708178A (en) * 2018-07-09 2020-01-17 中兴通讯股份有限公司 Network deployment method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291097A (en) * 2020-10-30 2021-01-29 绿盟科技集团股份有限公司 Virtual network topology generation method and device
CN112291097B (en) * 2020-10-30 2023-03-24 绿盟科技集团股份有限公司 Virtual network topology generation method and device
CN114338410A (en) * 2021-12-09 2022-04-12 海光信息技术股份有限公司 Method, device and system for generating routing path file and related equipment
CN115277428A (en) * 2022-07-27 2022-11-01 京东科技信息技术有限公司 Method and apparatus for configuring a network

Also Published As

Publication number Publication date
CN111541569B (en) 2022-10-11

Similar Documents

Publication Publication Date Title
CN111541569B (en) Network node configuration method and device
US10057131B1 (en) System and method for topology-aware configuration generation
CN113055232B (en) Network configuration deployment method, device and equipment
CN106452891B (en) VLAN method of automatic configuration, device and interchanger based on SCD file
CN113347059B (en) In-band network telemetering optimal detection path planning method based on fixed probe position
CN114553752B (en) Network performance test method and device based on simulation software and computer equipment
CN110474960B (en) Method and device for service deployment in virtual network
CN104683190A (en) Webmaster managed network simulation system and webmaster managed network simulation method
CN106878095B (en) Network configuration method based on scenario distributed simulation
CN114422010A (en) Protocol testing method of satellite communication simulation platform based on network virtualization
CN114024859A (en) Network topology generation method based on equipment and link discovery, storage medium and terminal
CN113162816B (en) Testing method and testing system for OSPFv3 protocol of switch
CN114629767A (en) Power dispatching network simulation method and device, computer equipment and storage medium
CN103312765A (en) Reachability validation of nodes of a network of an industrial automation and control system
CN117201365A (en) Flow determination method, device, electronic equipment and storage medium
CN102461068A (en) Modelling apparatus and method
CN102461069A (en) Modelling apparatus and method
CN109687985B (en) Automatic configuration method and system for process level network of transformer substation
CN110661873A (en) Internet of things platform parameter conversion method, device, equipment, medium and system
CN114004050B (en) Blueprint configuration tool software for Rapidio network topology design
CN109756381A (en) Data center's Fault Locating Method, device, electronic equipment and medium
CN102075364B (en) Method and equipment for determining direct link
CN111355599B (en) Hybrid network topology discovery method and device
CN112698951A (en) Method for performing automatic performance acquisition configuration based on resources in cloud computing environment
CN102638368B (en) Network optimizing method and network optimizing device

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