CN113452567A - Networking method and device, computing equipment and storage medium - Google Patents

Networking method and device, computing equipment and storage medium Download PDF

Info

Publication number
CN113452567A
CN113452567A CN202110774239.4A CN202110774239A CN113452567A CN 113452567 A CN113452567 A CN 113452567A CN 202110774239 A CN202110774239 A CN 202110774239A CN 113452567 A CN113452567 A CN 113452567A
Authority
CN
China
Prior art keywords
networking
network
simulated
information
topology
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
CN202110774239.4A
Other languages
Chinese (zh)
Other versions
CN113452567B (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.)
Antiy Technology Group Co Ltd
Original Assignee
Antiy Technology Group 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 Antiy Technology Group Co Ltd filed Critical Antiy Technology Group Co Ltd
Priority to CN202110774239.4A priority Critical patent/CN113452567B/en
Publication of CN113452567A publication Critical patent/CN113452567A/en
Application granted granted Critical
Publication of CN113452567B publication Critical patent/CN113452567B/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/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • 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/12Discovery or management of network topologies

Landscapes

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

Abstract

The invention provides a networking method, a networking device, computing equipment and a storage medium, wherein the method comprises the following steps: determining a networking scheme required to be realized by a plurality of network devices; the plurality of network devices comprise at least one switch; acquiring a simulated network topology corresponding to the networking scheme; the simulation network topology comprises simulation connection relations among the plurality of network devices and networking information of each network device; generating a networking password according to the simulated connection relation and networking information of each network device in the simulated network topology; sending the networking password to the at least one switch, so that the at least one switch executes the networking password, and networking an entity network topology formed by the plurality of network devices according to the networking scheme; the physical connection relationship among the plurality of network devices in the physical network topology is the same as the simulated connection relationship. According to the scheme, networking efficiency can be improved.

Description

Networking method and device, computing equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of networking, in particular to a networking method, a networking device, computing equipment and a storage medium.
Background
In a network environment, in order to facilitate management of network devices, it is necessary to divide a plurality of network devices into different virtual local area networks. In the related art, after a networking scheme is determined, a networking password is manually input to a switch connected with a plurality of network devices to complete networking configuration.
Disclosure of Invention
Based on the problem of low networking efficiency, an embodiment of the invention provides a networking method, a networking device, computing equipment and a storage medium, which can improve the networking efficiency.
In a first aspect, an embodiment of the present invention provides a networking method, including:
determining a networking scheme required to be realized by a plurality of network devices; the plurality of network devices comprise at least one switch;
acquiring a simulated network topology corresponding to the networking scheme; the simulation network topology comprises simulation connection relations among the plurality of network devices and networking information of each network device;
generating a networking password according to the simulated connection relation and networking information of each network device in the simulated network topology;
sending the networking password to the at least one switch so that the at least one switch executes the networking password to network a physical network topology formed by the plurality of network devices according to the networking scheme; and the entity connection relation among the plurality of network devices in the entity network topology is the same as the simulated connection relation.
Preferably, the acquiring a simulated network topology corresponding to the networking scheme includes:
determining whether a simulated network topology corresponding to the networking scheme exists in a pre-generated simulated network topology library; if not, generating a simulated network topology corresponding to the networking scheme.
Preferably, the generating a simulated network topology corresponding to the networking scheme includes:
obtaining device packages respectively corresponding to the plurality of network devices on a pre-created topology editing page, and connecting the device packages to obtain a simulated connection relationship between the network devices; wherein the device package comprises graphical elements for characterizing the corresponding network devices and/or interface elements for characterizing the interfaces comprised by the corresponding network devices; the simulated connection relation comprises any one or more of the following connection relations: the connection relation between the graphic elements and the graphic elements, the connection relation between the graphic elements and the interface elements and the connection relation between the interface elements and the interface elements;
configuring networking information for each equipment package on the topology editing page according to the information of the virtual local area network to which each network equipment is divided in the networking scheme;
and determining the network topology formed on the topology editing page as a simulated network topology corresponding to the networking scheme.
Preferably, the configuring, according to the information of the virtual local area networks to which the network devices respectively partition in the networking scheme, networking information of each device package on the topology editing page includes:
creating a boundary frame corresponding to the virtual local area network on the topology editing page;
and when the target equipment package is detected to be positioned in the boundary frame, configuring networking information for the target equipment package according to the information of the virtual local area network corresponding to the boundary frame.
Preferably, after the generating the simulated network topology corresponding to the networking scheme, the method further includes: and storing the generated simulated network topology corresponding to the networking scheme into the simulated network topology library.
Preferably, the generating a networking password according to the simulated connection relationship included in the simulated network topology and networking information of each network device includes:
determining at least one network device connected with a target switch in the at least one switch according to the simulated connection relation, and determining information of an interface between the target switch and the at least one network device;
according to the networking information of each network device, determining the attribute information of the target switch and the information of the virtual local area network to which the at least one network device belongs;
determining the password type which can be identified by the target switch according to the attribute information of the target switch;
generating a networking password corresponding to the target switch according to the information of the interface between the target switch and the at least one network device, the information of the virtual local area network to which the at least one network device belongs and the password type which can be identified by the target switch;
the sending the networking password to the at least one switch comprises: and sending the networking password of the corresponding switch to the corresponding switch.
Preferably, the types of network devices include physical network devices and/or virtual network devices.
In a second aspect, an embodiment of the present invention further provides a networking apparatus, including:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a networking scheme required to be realized by a plurality of network devices; the plurality of network devices comprise at least one switch;
the acquisition unit is used for acquiring the simulated network topology corresponding to the networking scheme; the simulation network topology comprises simulation connection relations among the plurality of network devices and networking information of each network device;
the generating unit is used for generating a networking password according to the simulated connection relation included in the simulated network topology and networking information of each network device;
the networking unit is used for sending the networking password to the at least one switch so that the at least one switch executes the networking password to perform networking on an entity network topology formed by the plurality of network devices according to the networking scheme; and the entity connection relation among the plurality of network devices in the entity network topology is the same as the simulated connection relation.
In a third aspect, an embodiment of the present invention further provides a computing device, including a memory and a processor, where the memory stores a computer program, and the processor, when executing the computer program, implements the method according to any embodiment of this specification.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed in a computer, causes the computer to perform the method according to any one of the embodiments of the present description.
An embodiment of the present invention provides a networking method, an apparatus, a computing device, and a storage medium, which can implement a simulated connection relationship among a plurality of network devices in a simulated network topology, where the simulated connection relationship is the same as an entity connection relationship of the plurality of network devices in an entity network topology, and the obtained simulated network topology can include networking information of each network device, so that a networking password can be automatically generated according to the simulated network topology and issued to at least one switch to implement networking. According to the scheme, the switch is not required to be manually configured, networking of the entity network topology can be rapidly realized according to the simulated network topology, and therefore networking efficiency is improved.
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 introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a networking method according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for acquiring a simulated network topology according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for acquiring a simulated network topology according to an embodiment of the present invention;
FIG. 4 is a diagram of a hardware architecture of a computing device according to an embodiment of the present invention;
fig. 5 is a block diagram of a networking device according to an embodiment of the present invention;
fig. 6 is a structural diagram of another networking device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As described above, in the related art, a plurality of Network devices need to be divided into different Virtual Local Area Networks (VLANs) to facilitate management of the Network devices. For example, an enterprise may include 20 hosts, 2 for financial, 3 for administrative, and 15 for research and development. The 20 hosts can be divided into different virtual local area networks according to different work types for networking, such as VLAN1, VLAN2 and VLAN 3. In implementing networking, the hosts may connect to at least one switch, and then enter a networking password into the switch, which implements partitioning of the plurality of network devices. However, in the related art, when the networking password is input in the switch, the operation and maintenance personnel are required to manually input the networking password, so that the error rate is high, and the efficiency is low.
If the networking efficiency is to be improved, it can be considered that when the networking password is input in the switch, the networking password is automatically generated and sent to the switch, and the premise of automatically generating the networking password is that the networking scheme can be known. In this embodiment, a networking scheme of the entity network topology is simulated in a manner of simulating the network topology, and then a networking password is automatically generated according to the simulated network topology and sent to the switch, so as to improve networking efficiency.
Specific implementations of the above concepts are described below.
Referring to fig. 1, an embodiment of the present invention provides a networking method, including:
step 100, determining a networking scheme required to be realized by a plurality of network devices; the plurality of network devices includes at least one switch.
102, acquiring a simulated network topology corresponding to the networking scheme; the simulated network topology includes simulated connection relationships among the plurality of network devices and networking information of each network device.
And 104, generating a networking password according to the simulated connection relation included in the simulated network topology and networking information of each network device.
Step 106, sending the networking password to the at least one switch, so that the at least one switch executes the networking password, and networking an entity network topology formed by the plurality of network devices according to the networking scheme; the physical connection relationship among the plurality of network devices in the physical network topology is the same as the simulated connection relationship.
In the embodiment of the invention, the simulated connection relation among a plurality of network devices can be realized in the simulated network topology, the simulated connection relation is the same as the entity connection relation of the plurality of network devices in the entity network topology, and the obtained simulated network topology can comprise networking information of each network device, so that a networking password can be automatically generated according to the simulated network topology and is issued to at least one switch to realize networking. According to the scheme, the switch is not required to be manually configured, networking of the entity network topology can be rapidly realized according to the simulated network topology, and therefore networking efficiency is improved.
The manner in which the various steps shown in fig. 1 are performed is described below.
Firstly, aiming at step 100, determining a networking scheme required to be realized by a plurality of network devices; the plurality of network devices includes at least one switch.
A network device is a physical entity connected to the network, such as a computer, hub, router, switch, firewall, bridge, gateway, printer, camera, etc.
Networking is a network construction technology, and a plurality of network devices can be divided into different VLANs. For example, in the networking scheme, 10 hosts are divided into 3 VLANs, wherein hosts 1 to 3 are divided into VLAN1, hosts 4 to 6 are divided into VLAN2, and hosts 7 to 10 are divided into VLAN 3. These hosts are all connected to a switch, which may be one switch or a plurality of switches. When VLAN partitioning is performed, it needs to be performed by at least one switch connecting these hosts.
Then, aiming at the step 102, acquiring a simulated network topology corresponding to the networking scheme; the simulated network topology includes simulated connection relationships among the plurality of network devices and networking information of each network device.
For the purpose of describing the present embodiment, two concepts are introduced here:
entity network topology: the network topology is a network topology formed by physically connecting the plurality of network devices after networking. In the physical network topology, the connection relationship among the plurality of network devices is referred to as a physical connection relationship.
Simulating a network topology: the network topology is formed by adding the plurality of network devices to a topology editing page of drawing software in a corresponding graph mode in drawing software which can be used for drawing a topology graph, and then connecting the graphs of the network devices by using connecting lines. In the simulated network topology, the connection relationship between the plurality of network devices is referred to as a simulated connection relationship.
In this step, when obtaining the simulated network topology corresponding to the networking scheme, the following two situations are included:
in the first case: there is no physical network topology at this time.
In the second case: there is now a physical network topology.
The requirements for simulating the network topology are different when the different situations are met.
In the case of the first case, since there is no physical network topology, it indicates that the network device has not been physically connected. At this time, a connection relation can be obtained for the plurality of network devices according to the networking scheme, so that a connection mode of physical connection is simple, and a simulation connection relation in the simulation network topology is formed. After obtaining the simulated connection relationship in the simulated network topology, the plurality of physical devices need to be physically connected according to the simulated connection relationship to form the physical network topology.
When the second case is used, the entity network topology exists at this time, and the entity network topology may include two cases: in the case A, the entity network topology already networks the network equipment, but the networking scheme is different from the networking scheme required to be realized at this time, namely the networking scheme needs to be changed; and in case B, the entity network topology does not carry out networking on the network equipment. However, in case a or case B, the entity connection relationship of the entity network topology does not need to be changed, and when networking is performed or networking is changed, a networking scheme to be implemented needs to be completed by using the switch. Therefore, in response to the second case, the simulated network topology needs to connect the plurality of network devices on the topology editing page according to the entity connection relationship in the entity network topology to form the simulated connection relationship in the simulated network topology.
In summary, whether the first case or the second case is used, it needs to be ensured that the simulated connection relationship in the simulated network topology is the same as the entity connection relationship in the entity network topology.
In an embodiment of the present invention, the manner of obtaining the simulated network topology corresponding to the networking scheme at least includes the following two ways:
the first mode is as follows: the simulated network topology is newly drawn.
The second mode is as follows: and obtaining the simulated network topology by utilizing the stored template.
The following describes the above two modes, respectively.
This step 102 uses the first approach to obtain a simulated network topology.
Referring to fig. 2, the present step may include:
step 200, obtaining device packages respectively corresponding to a plurality of network devices on a pre-created topology editing page, and connecting the device packages to obtain a simulated connection relationship among the plurality of network devices.
In one embodiment of the present invention, the mapping software may provide a topology editing function, and in response to an operation instruction input by a user, the mapping software may obtain a plurality of device packages on a topology editing page, and connect the device packages to obtain a simulated connection relationship between a plurality of network devices.
Wherein the device package is used to characterize a feature set of the corresponding network device. The device package may include graphical elements and textual elements, and may also include interface elements.
The graphic elements are used for representing the graphs of the corresponding network devices, different types of network devices can use different graphic elements, and a user can determine the type of the network device corresponding to the device package according to the graphic elements of the device package displayed on the topology editing page. For example, the network device is of the type desktop, laptop, router, switch, firewall, camera, etc. The created graphic elements may be stored in a graphic library.
The Interface elements are used to represent each Interface included in the network device, for example, the network device includes a console Interface, an optical port, a USB Interface, a Type-C Interface, a Universal Asynchronous Receiver/Transmitter (UART) Interface, a High-Definition Multimedia Interface (HDMI), a Serial Peripheral Interface (SPI), and the like. In this embodiment, the interface element may be edited, for example, by adding a delete or change interface. The created interface elements may be stored in an interface library.
In an embodiment of the present invention, the interface element may also be displayed on a topology editing page, the interface element and a graphic element of a corresponding device may form an integral, when an interface element is used to generate a device package corresponding to a network device, a graphic element corresponding to the network device needs to be selected from a graphic library first, and then the interface element is added to the graphic element, and the interface element may be exported from the interface library.
When the device package includes an interface element, the device package is connected to other device packages through the interface element; when a device package does not include an interface element, the device package is connected to other device packages through a graphic element. Therefore, the simulated connection relationship obtained on the topology editing page includes any one or more of the following connection relationships: the connection relationship between the graphic elements and the graphic elements, the connection relationship between the graphic elements and the interface elements, and the connection relationship between the interface elements and the interface elements.
The text element is used for recording the packaging information of the network device, and the packaging information may include: hardware information and software information. The hardware information may include: device type, device identifier, interface type, interface identifier, device self parameter information (such as processor model, frequency, hard disk capacity, memory size, etc.), operating system information, etc., and the software information may include: IP address, MAC address, vendor information, vendor ID, network device login information, etc. All the text description information of the network equipment corresponding to the equipment package can be stored in the package information through the edited text elements, and the package information is a part of the equipment package and can be displayed or hidden on a topology editing page according to different configurations. For example, when the packaged information is not viewed or edited, the packaged information is in a hidden state, and when viewing or editing is required, the packaged information can be displayed. The display mode can include: and displaying in a display window form or copying the packaging information to other video display units for displaying and the like.
The device package may be a package for one network device, or may be a package for connection relationships between a plurality of network devices.
Device packages may be pre-generated and stored in a package library. The packaging library can perform import, export, selection, editing, calling, deleting and other operations through the data interface.
In the embodiment of the invention, the graphic elements, the interface elements and the character elements of the network equipment are packaged together in an equipment packaging mode, so that the information in the equipment packaging is richer and more comprehensive, and when the simulated connection relation among a plurality of network equipment is drawn on the topology editing page, the graphic elements, the interface elements and the character elements in the equipment packaging can be quickly edited, thereby improving the editing speed of the network topology.
In this step, the manner of obtaining device packages corresponding to the plurality of network devices on the topology editing page may include at least the following three manners: 1. importing from a packaging library; 2. editing or creating on the topology editing page; 3. and copying and pasting the device package obtained on the topology editing page.
And the device package can be deleted, moved, rotated and the like on the topology editing page. The operations such as moving and rotating may be performed in a two-dimensional coordinate manner on the topology editing page.
In this step 200, the device packages are connected, specifically: the connection of the device packages may be accomplished using a connection element. The connection elements can be straight lines, curved lines, straight lines with arrows, curved lines with arrows and the like, and when the connection elements correspond to different types, the connection elements can be used for representing different types of links.
In an embodiment of the present invention, when the device packages are connected by using the connection element, the correspondence between the device packages and the connection element may be stored, which facilitates subsequent identification of the simulated connection relationship between the network devices. The method includes deploying a detection script in an equipment package in advance for detecting whether a connection element is connected with the equipment package, acquiring identification information of the connection element when the connection element is detected to be packaged in the equipment package and connected with the equipment package, determining a target element for the connection between the equipment package and the connection element, and storing a corresponding relation between the identification information of the target element and the identification information of the connection element.
When the device package does not include an interface element, the target element is a graphical element of the device package. For example, if the identification information of the graphic element is S01 and the identification information of the connection element is L001, the correspondence relationship between S01 and L001 is stored.
When the device package includes interface elements, the target element is one of the interface elements of the device package. For example, the device package includes two interface elements, the identification information of the two interface elements is S01001 and S01002, the identification information of the connection element is L001, and the target element establishing connection with the connection element is the interface element S01001, so that the corresponding relationship between S01001 and L001 is stored.
In storing, the correspondence may be stored in package information of the device package.
Step 202, configuring networking information for each device package on the topology editing page according to the information of the virtual local area network to which each network device is divided in the networking scheme.
In this step 202, the configuration manner of networking information for each device package may at least include the following two manners:
mode a, manually configuring networking information on the device package.
And B, automatically packaging and configuring networking information for the equipment.
Taking the example that the plurality of network devices includes a switch and 10 hosts, the 10 hosts are all connected to the switch. The information of the virtual lan may be VLAN numbers, for example, the 10 hosts are divided into VLAN1, VLAN2 and VLAN3, respectively.
In the method a, the networking information may be configured for the device package by editing the text elements of the device package. The networking information may include a VLAN number, an IP address assigned to the VLAN number, and the like.
Then, in the mode B, the step may specifically include: creating a boundary frame corresponding to the virtual local area network on the topology editing page; and when the target equipment package is detected to be positioned in the boundary frame, configuring networking information for the target equipment package according to the information of the virtual local area network corresponding to the boundary frame.
The created bounding box may be a closed box, and the bounding box may be configured to correspond to a virtual local area network. For example, the bounding box is configured to correspond to VLAN1, and when it is detected that a target device package is moved into the bounding box, text elements of the target device package may be automatically edited according to the information VLAN1 of the virtual local area network corresponding to the bounding box, so as to implement configuring networking information for the target device package.
By using the mode B, the device encapsulation of the network device belonging to the same VLAN can be rapidly moved to the boundary frame corresponding to the VLAN, and the configuration of networking information is automatically carried out on the device encapsulation of the network device belonging to the same VLAN, so that not only can the networking scheme required to be realized by a plurality of network devices be visually shown, but also the configuration speed of the networking information can be improved when more network devices are used for networking.
And step 204, determining the network topology formed on the topology editing page as a simulated network topology corresponding to the networking scheme.
In one embodiment of the present invention, after step 204, the generated simulated network topology corresponding to the networking scheme may be stored in a simulated network topology library for subsequent use.
This step 102 uses a second approach to obtain a simulated network topology.
The simulated network topology obtained in the first way may be stored, for example, in a simulated network topology library, and then a plurality of simulated network topologies may be included in the simulated network topology library for selection.
Referring to fig. 3, the step 102 may include:
step 300, determining whether a simulated network topology corresponding to the networking scheme exists in a pre-generated simulated network topology library, and if so, executing step 302; if not, go to step 304.
In an embodiment of the present invention, when the simulated network topology is stored in the simulated network topology library, networking schemes corresponding to the simulated network topology may be stored together. For example, the number, type, networking division condition, etc. of the network devices in the storage networking scheme. So that the user can quickly know whether the required simulated network topology exists in the simulated network topology.
If networking needs to be changed frequently in an enterprise, and the change range comprises several fixed networking schemes, the simulated network topology of each networking scheme can be stored in the simulated network topology library. When the networking scheme is changed, the simulation network topology corresponding to the networking scheme can be directly derived from the simulation network topology library, so that not only can the networking change efficiency be improved, but also the networking change cost can be saved.
Step 302, deriving the simulated network topology corresponding to the networking scheme from the simulated network topology library.
Step 304, generating a simulated network topology corresponding to the networking scheme.
This step 304 generates a simulated network topology corresponding to the networking scheme, which is the same as the first method described above and is not described herein again.
Next, in step 104, a networking password is generated according to the simulated connection relationship included in the simulated network topology and networking information of each network device.
In the embodiment of the invention, after the simulated network topology is formed, a user can initiate an instruction for mapping the simulated network topology to the entity network topology, after the system receives the instruction, the system can identify the simulated network topology, identify the contents related to the simulated network topology, such as the simulated connection relationship, networking information of each network device and the like, and then generate the networking password which can be identified by the switch according to the identified contents.
In an embodiment of the present invention, the identification manner of the networking information of the network device may include: directly obtaining the character elements of the equipment package, and extracting networking information of the network equipment corresponding to the equipment package from the character elements.
In an embodiment of the present invention, the identification manner of the simulated connection relationship may include: acquiring the corresponding relation between each equipment package and each connecting element; determining the connection relation among a plurality of equipment packages according to the corresponding relation; determining a connection relationship between the plurality of device packages as the simulated connection relationship.
For example, if the device package S01001 interface has a corresponding relationship with the connection element L001 and the device package S02001 interface also has a corresponding relationship with the connection element L001, it may be determined that the device package S01001 interface has a connection relationship with the device package S02001 interface according to the connection element L001.
When the corresponding relationship between each device package and the connection element is obtained, the corresponding relationship may be directly obtained from the package information of the device package (the corresponding relationship is stored in the package information in step 200). The device package may also be detected by using the detection method in step 200, so as to obtain the corresponding relationship between the device package and the connection element.
An example of a portion of the identifying content is given below:
the device type: switch
Identification information of the device: s01
Identification information of interface 1: s01001
Identification information of the device to which interface 1 is connected: d01001
Type of device to which interface 1 is connected: computer with a memory card
Type of interface of the device to which interface 1 is connected: net mouth
Identification information of interface 2: s01002
Identification information of the device to which the interface 2 is connected: d02001
Type of device to which interface 2 is connected: computer with a memory card
Type of interface of the device to which interface 2 is connected: net mouth
The device type: computer with a memory card
Identification information of the device: d01
Identification information of the device to which interface 1 is connected: s01001
Type of device to which interface 1 is connected: switch
Type of interface of the device to which interface 1 is connected: light port
VLAN information to which the device belongs: VLAN1
IP address of device: 168.192.0.1
The login account of the device: 111111
Login password of device: 222222
……
In an embodiment of the present invention, since the recognizable networking passwords are different when the models of the switches are different, different networking passwords need to be generated for different switches when generating the networking passwords. Specifically, this step 104 may include:
s1: and determining at least one network device connected with a target switch in the at least one switch according to the simulated connection relation, and determining information of an interface of the target switch connected with the at least one network device.
For example, the switch S01, the network devices connected thereto include device D01 and device D02, and device D01 is connected using the S01001 interface of the switch and device D02 is connected using the S01002 interface of the switch.
S2: and determining the attribute information of the target switch and the information of the virtual local area network to which the at least one network device belongs according to the networking information of each network device.
The attribute information of the target switch may include vendor information, model information, and the like.
When determining the information of the virtual local area network to which the at least one network device belongs, it may be determined from the networking information of the network devices, for example, the information of the virtual local area network to which the device D01 belongs is VLAN1, and the information of the virtual local area network to which the device D02 belongs is VLAN 2.
S3: and determining the password type which can be identified by the target switch according to the attribute information of the target switch.
In S2, after the attribute information of the target switch is determined, the password type that can be recognized by the target switch can be determined directly according to the corresponding relationship.
S4: and generating a networking password corresponding to the target switch according to the information of the interface of the target switch and the at least one network device, the information of the virtual local area network to which the at least one network device belongs and the password type which can be identified by the target switch.
After the networking scheme is determined, the generation of the networking password for the switch may be implemented by an existing scheme, which is not described in detail herein.
In the embodiment of the invention, the password types which can be possibly identified by different exchangers are considered to be different, and the password types which can be identified by the exchangers can be determined according to the attribute information of the exchangers so as to generate the networking passwords which can be identified by the interaction machine, thereby ensuring the successful networking.
When two or more switches are included in the plurality of network devices, the generated networking password corresponding to the switch may be transmitted to the corresponding switch.
After the switch receives the networking password, the networking password can be executed, so that networking is completed.
In an embodiment of the present invention, the types of the network devices may include: a physical network device and/or a virtual network device.
The physical network topology may be formed by only physical network devices, may be formed by only virtual network devices, or may include both physical network devices and virtual network devices.
As shown in fig. 4 and 5, an embodiment of the present invention provides a networking device. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. From a hardware aspect, as shown in fig. 4, for a hardware architecture diagram of a computing device in which a networking device according to an embodiment of the present invention is located, in addition to the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 4, the computing device in which the networking device is located in the embodiment may also include other hardware, such as a forwarding chip responsible for processing a packet. Taking a software implementation as an example, as shown in fig. 5, as a logical means, the device is formed by reading a corresponding computer program in a non-volatile memory into a memory by a CPU of a computing device where the device is located and running the computer program. The networking device provided by the embodiment comprises:
a determining unit 501, configured to determine a networking scheme that needs to be implemented by multiple network devices; the plurality of network devices comprise at least one switch;
an obtaining unit 502, configured to obtain a simulated network topology corresponding to the networking scheme; the simulation network topology comprises simulation connection relations among the plurality of network devices and networking information of each network device;
a generating unit 503, configured to generate a networking password according to the simulated connection relationship included in the simulated network topology and networking information of each network device;
a networking unit 504, configured to send the networking password to the at least one switch, so that the at least one switch executes the networking password, so as to perform networking on an entity network topology formed by the plurality of network devices according to the networking scheme; and the entity connection relation among the plurality of network devices in the entity network topology is the same as the simulated connection relation.
In an embodiment of the present invention, the obtaining unit 502 specifically includes: determining whether a simulated network topology corresponding to the networking scheme exists in a pre-generated simulated network topology library; if not, generating a simulated network topology corresponding to the networking scheme.
In an embodiment of the present invention, when the obtaining unit 502 executes the generating of the simulated network topology corresponding to the networking scheme, specifically, the generating includes: obtaining device packages respectively corresponding to the plurality of network devices on a pre-created topology editing page, and connecting the device packages to obtain a simulated connection relationship between the network devices; wherein the device package comprises graphical elements for characterizing the corresponding network devices and/or interface elements for characterizing the interfaces comprised by the corresponding network devices; the simulated connection relation comprises any one or more of the following connection relations: the connection relation between the graphic elements and the graphic elements, the connection relation between the graphic elements and the interface elements and the connection relation between the interface elements and the interface elements; configuring networking information for each equipment package on the topology editing page according to the information of the virtual local area network to which each network equipment is divided in the networking scheme; and determining the network topology formed on the topology editing page as a simulated network topology corresponding to the networking scheme.
In an embodiment of the present invention, when the obtaining unit 502 executes the configuration of networking information for encapsulating each device on the topology editing page according to the information of the virtual local area network to which each network device is respectively divided in the networking scheme, specifically, the configuration includes: creating a boundary frame corresponding to the virtual local area network on the topology editing page; and when the target equipment package is detected to be positioned in the boundary frame, configuring networking information for the target equipment package according to the information of the virtual local area network corresponding to the boundary frame.
In an embodiment of the present invention, referring to fig. 6, the networking device may further include:
a storage unit 505, configured to store the generated simulated network topology corresponding to the networking scheme in the simulated network topology library.
In an embodiment of the present invention, the generating unit 503 is specifically configured to determine, according to the simulated connection relationship, at least one network device connected to a target switch in the at least one switch, and information of an interface where the target switch is connected to the at least one network device; according to the networking information of each network device, determining the attribute information of the target switch and the information of the virtual local area network to which the at least one network device belongs; determining the password type which can be identified by the target switch according to the attribute information of the target switch; and generating a networking password corresponding to the target switch according to the information of the interface between the target switch and the at least one network device, the information of the virtual local area network to which the at least one network device belongs and the password type which can be identified by the target switch.
The networking unit 504 is specifically configured to send the networking password of the corresponding switch to the corresponding switch when the networking unit executes sending the networking password to the at least one switch.
In one embodiment of the invention, the types of network devices include physical network devices and/or virtual network devices.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit a networking device. In other embodiments of the invention, a networking device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Because the content of information interaction, execution process, and the like among the modules in the device is based on the same concept as the method embodiment of the present invention, specific content can be referred to the description in the method embodiment of the present invention, and is not described herein again.
The embodiment of the present invention further provides a computing device, which includes a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, a networking method in any embodiment of the present invention is implemented.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program causes the processor to execute a networking method in any embodiment of the present invention.
Specifically, a system or an apparatus equipped with a storage medium on which software program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the program code read out from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then causes a CPU or the like mounted on the expansion board or the expansion module to perform part or all of the actual operations based on instructions of the program code, thereby realizing the functions of any of the above-described embodiments.
The embodiments of the invention have at least the following advantages:
1. in an embodiment of the present invention, a simulated connection relationship among a plurality of network devices can be realized in a simulated network topology, the simulated connection relationship is the same as an entity connection relationship among the plurality of network devices in an entity network topology, and the obtained simulated network topology can include networking information of each network device, so that a networking password can be automatically generated according to the simulated network topology and sent to at least one switch to realize networking. According to the scheme, the switch is not required to be manually configured, networking of the entity network topology can be rapidly realized according to the simulated network topology, and therefore networking efficiency is improved.
2. In one embodiment of the invention, the graphic elements, the interface elements and the text elements of the network equipment are packaged together in an equipment packaging mode, so that the information in the equipment packaging is richer and more comprehensive, when the simulated connection relation among a plurality of network equipment is drawn on a topology editing page, the graphic elements, the interface elements and the text elements in the equipment packaging can be quickly edited, and the editing speed of the network topology is improved.
3. In an embodiment of the present invention, a mode of automatically encapsulating and configuring networking information for devices by using a boundary frame is utilized, so that the device encapsulation of the network device belonging to the same VLAN can be quickly moved to the boundary frame corresponding to the VLAN, and the configuration of the networking information is automatically performed for the device encapsulation of the network device belonging to the same VLAN.
4. In an embodiment of the present invention, after the simulated network topology is generated, the simulated network topology may be stored in the simulated network topology library, when the simulated network topology needs to be generated, whether the required simulated network topology exists may be first searched from the simulated network topology library, and when the required simulated network topology is stored in the simulated network topology library, the simulated network topology may be quickly obtained, thereby increasing the speed of obtaining the simulated network topology and reducing the time cost.
5. In an embodiment of the present invention, since different switches may have different password types that can be identified, according to the attribute information of the switch, the password type that the switch can identify can be determined, so as to generate an identifiable networking password for the interactive machine, thereby ensuring smooth networking.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other similar elements in a process, method, article, or apparatus that comprises the element.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A networking method, comprising:
determining a networking scheme required to be realized by a plurality of network devices; the plurality of network devices comprise at least one switch;
acquiring a simulated network topology corresponding to the networking scheme; the simulation network topology comprises simulation connection relations among the plurality of network devices and networking information of each network device;
generating a networking password according to the simulated connection relation and networking information of each network device in the simulated network topology;
sending the networking password to the at least one switch so that the at least one switch executes the networking password to network a physical network topology formed by the plurality of network devices according to the networking scheme; and the entity connection relation among the plurality of network devices in the entity network topology is the same as the simulated connection relation.
2. The method of claim 1, wherein obtaining a simulated network topology corresponding to the networking scheme comprises:
determining whether a simulated network topology corresponding to the networking scheme exists in a pre-generated simulated network topology library; if not, generating a simulated network topology corresponding to the networking scheme.
3. The method of claim 2, wherein generating the simulated network topology corresponding to the networking scheme comprises:
obtaining device packages respectively corresponding to the plurality of network devices on a pre-created topology editing page, and connecting the device packages to obtain a simulated connection relationship between the network devices; wherein the device package comprises graphical elements for characterizing the corresponding network devices and/or interface elements for characterizing the interfaces comprised by the corresponding network devices; the simulated connection relation comprises any one or more of the following connection relations: the connection relation between the graphic elements and the graphic elements, the connection relation between the graphic elements and the interface elements and the connection relation between the interface elements and the interface elements;
configuring networking information for each equipment package on the topology editing page according to the information of the virtual local area network to which each network equipment is divided in the networking scheme;
and determining the network topology formed on the topology editing page as a simulated network topology corresponding to the networking scheme.
4. The method according to claim 3, wherein configuring networking information for each device package on the topology editing page according to the information of the virtual local area network to which each network device is divided in the networking scheme includes:
creating a boundary frame corresponding to the virtual local area network on the topology editing page;
and when the target equipment package is detected to be positioned in the boundary frame, configuring networking information for the target equipment package according to the information of the virtual local area network corresponding to the boundary frame.
5. The method of claim 3, further comprising, after said generating the simulated network topology corresponding to the networking scheme: and storing the generated simulated network topology corresponding to the networking scheme into the simulated network topology library.
6. The method of claim 1,
generating a networking password according to the simulated connection relation and networking information of each network device included in the simulated network topology, including:
determining at least one network device connected with a target switch in the at least one switch according to the simulated connection relation, and determining information of an interface between the target switch and the at least one network device;
according to the networking information of each network device, determining the attribute information of the target switch and the information of the virtual local area network to which the at least one network device belongs;
determining the password type which can be identified by the target switch according to the attribute information of the target switch;
generating a networking password corresponding to the target switch according to the information of the interface between the target switch and the at least one network device, the information of the virtual local area network to which the at least one network device belongs and the password type which can be identified by the target switch;
the sending the networking password to the at least one switch comprises: and sending the networking password of the corresponding switch to the corresponding switch.
7. The method according to any of claims 1-6, wherein the type of network device comprises a physical network device and/or a virtual network device.
8. A networking device, comprising:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a networking scheme required to be realized by a plurality of network devices; the plurality of network devices comprise at least one switch;
the acquisition unit is used for acquiring the simulated network topology corresponding to the networking scheme; the simulation network topology comprises simulation connection relations among the plurality of network devices and networking information of each network device;
the generating unit is used for generating a networking password according to the simulated connection relation included in the simulated network topology and networking information of each network device;
the networking unit is used for sending the networking password to the at least one switch so that the at least one switch executes the networking password to perform networking on an entity network topology formed by the plurality of network devices according to the networking scheme; and the entity connection relation among the plurality of network devices in the entity network topology is the same as the simulated connection relation.
9. A computing device comprising a memory having stored therein a computer program and a processor that, when executing the computer program, implements the method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when executed in a computer, causes the computer to carry out the method of any one of claims 1-7.
CN202110774239.4A 2021-07-08 2021-07-08 Networking method and device, computing equipment and storage medium Active CN113452567B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110774239.4A CN113452567B (en) 2021-07-08 2021-07-08 Networking method and device, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110774239.4A CN113452567B (en) 2021-07-08 2021-07-08 Networking method and device, computing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113452567A true CN113452567A (en) 2021-09-28
CN113452567B CN113452567B (en) 2022-08-23

Family

ID=77815563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110774239.4A Active CN113452567B (en) 2021-07-08 2021-07-08 Networking method and device, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113452567B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116112368A (en) * 2022-11-23 2023-05-12 深圳市汇川技术股份有限公司 Method, device, equipment and storage medium for network topology configuration of graphical equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5751967A (en) * 1994-07-25 1998-05-12 Bay Networks Group, Inc. Method and apparatus for automatically configuring a network device to support a virtual network
CN101729353A (en) * 2008-11-03 2010-06-09 华为技术有限公司 Method, device and system of network topology layout
CN103188102A (en) * 2011-12-29 2013-07-03 中国移动通信集团广东有限公司 Method, device and system achieving communication equipment networking
CN104468219A (en) * 2014-12-11 2015-03-25 杭州华三通信技术有限公司 Virtual networking network topology discovery method and device
CN105227375A (en) * 2015-10-23 2016-01-06 上海斐讯数据通信技术有限公司 A kind of method and system building virtual switch network
CN106470142A (en) * 2015-08-14 2017-03-01 中国电信股份有限公司 The self-service generation method of virtual network topology and system
CN109474482A (en) * 2018-12-28 2019-03-15 北京邮电大学 A kind of network establishing method and system of actual situation extension
CN110365552A (en) * 2019-07-09 2019-10-22 山石网科通信技术股份有限公司 Test method, device, storage medium and processor
CN111934922A (en) * 2020-07-29 2020-11-13 深信服科技股份有限公司 Method, device, equipment and storage medium for constructing network topology
US10887183B1 (en) * 2019-09-18 2021-01-05 Virtustream Ip Holding Company Llc System and method for topological redundancy
CN112333011A (en) * 2020-10-23 2021-02-05 苏州浪潮智能科技有限公司 Network topological graph generation method and device, electronic equipment and storage medium
CN113037545A (en) * 2021-02-26 2021-06-25 中电数据服务有限公司 Network simulation method, device, equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5751967A (en) * 1994-07-25 1998-05-12 Bay Networks Group, Inc. Method and apparatus for automatically configuring a network device to support a virtual network
CN101729353A (en) * 2008-11-03 2010-06-09 华为技术有限公司 Method, device and system of network topology layout
CN103188102A (en) * 2011-12-29 2013-07-03 中国移动通信集团广东有限公司 Method, device and system achieving communication equipment networking
CN104468219A (en) * 2014-12-11 2015-03-25 杭州华三通信技术有限公司 Virtual networking network topology discovery method and device
CN106470142A (en) * 2015-08-14 2017-03-01 中国电信股份有限公司 The self-service generation method of virtual network topology and system
CN105227375A (en) * 2015-10-23 2016-01-06 上海斐讯数据通信技术有限公司 A kind of method and system building virtual switch network
CN109474482A (en) * 2018-12-28 2019-03-15 北京邮电大学 A kind of network establishing method and system of actual situation extension
CN110365552A (en) * 2019-07-09 2019-10-22 山石网科通信技术股份有限公司 Test method, device, storage medium and processor
US10887183B1 (en) * 2019-09-18 2021-01-05 Virtustream Ip Holding Company Llc System and method for topological redundancy
CN111934922A (en) * 2020-07-29 2020-11-13 深信服科技股份有限公司 Method, device, equipment and storage medium for constructing network topology
CN112333011A (en) * 2020-10-23 2021-02-05 苏州浪潮智能科技有限公司 Network topological graph generation method and device, electronic equipment and storage medium
CN113037545A (en) * 2021-02-26 2021-06-25 中电数据服务有限公司 Network simulation method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BAGUS JATI SANTOSO等: "Docker-based Network Functions Virtualization as a Learning Tool in Computer Network Course", 《2019 12TH INTERNATIONAL CONFERENCE ON INFORMATION & COMMUNICATION TECHNOLOGY AND SYSTEM (ICTS)》 *
邱霜玲: "基于IPv6的校园网组网设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116112368A (en) * 2022-11-23 2023-05-12 深圳市汇川技术股份有限公司 Method, device, equipment and storage medium for network topology configuration of graphical equipment

Also Published As

Publication number Publication date
CN113452567B (en) 2022-08-23

Similar Documents

Publication Publication Date Title
US20220103452A1 (en) Tracing logical network packets through physical network
US10680961B2 (en) Using headerspace analysis to identify flow entry reachability
CN104718723B (en) For the networking in virtual network and the frame of security service
CN107455000A (en) The supply network service in the data center of software definition
CN107170474A (en) Expansible the storage box, computer implemented method and computer readable storage means
CN103036703A (en) Configuration management method of logical topology in virtual network and management server
CN115225508B (en) Internet shooting range scene construction method
CN110855457B (en) Method and equipment for generating network model and configuring network
CN113452567B (en) Networking method and device, computing equipment and storage medium
US11824715B2 (en) Configuration method, related apparatus, and system
CN108206750A (en) The configuration method and device of virtual machine network interface card
CN101764696B (en) Distributed routing exchange equipment and implementation method thereof
CN113507398B (en) Network topology state detection method, device, computing equipment and storage medium
US9716631B2 (en) End host physical connection on a switch port using multiple ethernet frames
CN109787938A (en) Realize the method, apparatus and computer readable storage medium of access virtual private cloud
CN117155875A (en) Method and device for applying virtual switch based on Openstack
CN113328897B (en) Method, device, equipment and medium for acquiring running state of network equipment
CN110324186A (en) Network collocating method, device, server and computer readable storage medium
CN112019361A (en) Migration method and device of access control list, storage medium and electronic equipment
CN108768807A (en) A kind of method and device of cloud platform actual situation interconnection
CN113468700A (en) Topology information identification method and device, computing equipment and storage medium
US9900175B2 (en) Display apparatus, display method, and display program
US20240007364A1 (en) Method, Apparatus, and System for Deploying Service
US11182181B2 (en) Virtual environments generator
US11928422B1 (en) Explanatory configuration function annotation

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