CN113014409B - Networking equipment configuration method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN113014409B
CN113014409B CN201911320089.9A CN201911320089A CN113014409B CN 113014409 B CN113014409 B CN 113014409B CN 201911320089 A CN201911320089 A CN 201911320089A CN 113014409 B CN113014409 B CN 113014409B
Authority
CN
China
Prior art keywords
equipment
networking
configuration
subordinate
host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911320089.9A
Other languages
Chinese (zh)
Other versions
CN113014409A (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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201911320089.9A priority Critical patent/CN113014409B/en
Publication of CN113014409A publication Critical patent/CN113014409A/en
Application granted granted Critical
Publication of CN113014409B publication Critical patent/CN113014409B/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/0803Configuration setting
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for configuring networking equipment. The method is executed by a host device in a networking and comprises the following steps: determining subordinate equipment according to the networking topological graph, sending the networking topological graph to the subordinate equipment, and enabling the subordinate equipment to determine a configuration relation between the subordinate equipment and the host equipment according to the networking topological graph; the networking topological graph comprises structure configuration information of each node in a networking and IP address configuration information of each node; the lower level device comprises at least one of a slave device and a standby device; and finishing networking configuration of the host equipment and the subordinate equipment according to the configuration relation confirmation information sent by the subordinate equipment. The device configuration information is searched from the networking topological graph, the networking topological graph is sent to the subordinate device, the relationship between the devices is determined according to confirmation of the subordinate device on the configuration relationship, repeated operation of manually importing the configuration information into the devices is avoided, and device configuration efficiency is improved.

Description

Networking equipment configuration method, device, equipment and storage medium
Technical Field
Embodiments of the present invention relate to computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for configuring networking devices.
Background
With the development of the information age, in a network of a data center area, the network is generally composed of a plurality of network devices, and the association relation between the devices needs to be determined, so that the ordered storage and calling of data are ensured.
In the prior art, each time a device logs in, a configuration file of the device needs to be manually imported to configure the association relationship of the device in the network, and if the configuration of the device needs to be modified, the configuration file of the device needs to be separately modified and then imported again. Or switch port connections, to connect the device to a particular port of the switch.
However, manually revising and importing the configuration file to each device respectively is cumbersome in configuration process, and the configuration file is complicated to modify, which is likely to cause configuration file errors. Networking is performed through the ports of the switch, equipment and port wiring need to be in one-to-one correspondence, and equipment configuration efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for configuring networking equipment, which are used for searching configuration information of the equipment from a networking topological graph, sending the networking topological graph to lower-level equipment, determining an incidence relation among the equipment according to confirmation of the lower-level equipment on the configuration relation, avoiding repeated operation of manually importing the configuration information into the equipment and improving the configuration efficiency of the equipment.
In a first aspect, an embodiment of the present invention provides a method for configuring a networking device, where the method is performed by a host device in a networking, and the method includes:
determining subordinate equipment according to the networking topological graph, sending the networking topological graph to the subordinate equipment, and determining a configuration relation between the subordinate equipment and the host equipment by the subordinate equipment according to the networking topological graph; the networking topological graph comprises structure configuration information of each node in a networking and IP address configuration information of each node; the subordinate device comprises at least one of a slave device and a standby device;
and finishing networking configuration of the host equipment and the subordinate equipment according to the configuration relationship confirmation information sent by the subordinate equipment.
In a second aspect, an embodiment of the present invention further provides a method for configuring a networking device, where the method is executed by a lower device in networking, and the method includes:
determining a configuration relationship between the lower-level equipment and the host equipment according to the received networking topological graph;
and sending configuration relationship confirmation information to the host equipment to complete networking configuration of the host equipment and the lower-level equipment.
In a third aspect, an embodiment of the present invention further provides a networking device configuration apparatus, where the apparatus is configured on a host device in a networking, and the apparatus includes:
the networking topological graph sending module is used for determining subordinate equipment according to a networking topological graph, sending the networking topological graph to the subordinate equipment and determining the configuration relation between the subordinate equipment and the host equipment according to the networking topological graph by the subordinate equipment; the networking topological graph comprises structure configuration information of each node in a networking and IP address configuration information of each node; the lower level device comprises at least one of a slave device and a standby device;
and the networking configuration completion module is used for completing the networking configuration of the host equipment and the subordinate equipment according to the configuration relation confirmation information sent by the subordinate equipment.
In a fourth aspect, an embodiment of the present invention further provides an apparatus for configuring a networking device, where the apparatus is configured on a lower device in a networking, and the apparatus includes:
the configuration relation determining module is used for determining the configuration relation between the lower-level equipment and the host equipment according to the received networking topological graph;
and the confirmation information sending module is used for sending configuration relationship confirmation information to the host equipment so as to complete networking configuration of the host equipment and the lower-level equipment.
In a fifth aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor, when executing the program, implements the networking device configuration method according to the first aspect or the second aspect of the present invention.
In a sixth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the networking device configuration method according to the embodiments of the first aspect or the second aspect of the present invention.
According to the embodiment of the invention, the lower level equipment is determined through the configuration information of each equipment in the networking topological graph, the networking topological graph is sent to the lower level equipment, and the incidence relation between the equipment is determined according to the confirmation of the lower level equipment on the configuration relation, so that the problem that the configuration information needs to be imported into each equipment repeatedly by manpower in the prior art is solved, information errors caused when the configuration information is modified manually can be avoided by drawing the networking topological graph, the operation steps of configuration are reduced, the manpower and the time are saved, and the equipment configuration efficiency is improved.
Drawings
Fig. 1 is a flowchart illustrating a method for configuring a networking device according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a networking topology diagram in the first embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for configuring a networking device according to a second embodiment of the present invention;
fig. 4 is a block diagram of a configuration apparatus of a networking device in a third embodiment of the present invention;
fig. 5 is a block diagram of a configuration apparatus of a networking device according to a fourth embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a computer apparatus according to a fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a computer device in the sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart illustrating a method for configuring networking equipment according to an embodiment of the present invention, where the embodiment is applicable to configuring networking equipment, and the method may be executed by a networking equipment configuration device on a host device in networking. As shown in fig. 1, the method specifically includes the following steps:
s110, determining subordinate equipment according to the networking topological graph, sending the networking topological graph to the subordinate equipment, and determining a configuration relationship between the subordinate equipment and host equipment by the subordinate equipment according to the networking topological graph; the networking topological graph comprises structure configuration information of each node in a networking and IP address configuration information of each node; the lower level device includes at least one of a slave device and a standby device.
The user imports a networking topological graph drawn in advance into the host device, the networking topological graph comprises structure configuration information of each node in networking and IP (Internet Protocol) address configuration information of each node, and configuration identities and association relations among the devices in the networking can be expressed. The configuration information of each node is a configuration identity of a device at each node in a networking, for example, the configuration identity may be a host device, a slave device, a standby device, or an IPC (Internet Protocol Camera). The IP address configuration information of each node is the IP address of the equipment at each node. The networking topological graph at least comprises host equipment and subordinate equipment, and the subordinate equipment can comprise slave equipment, standby equipment, IPC and other equipment. Fig. 2 is a schematic structural diagram of a networking topology diagram in an embodiment of the present invention. Fig. 2 shows configuration identities of devices where IP addresses of the devices in the network are located, where the configuration identities include a host, a slave, a standby, and an IPC, and shows an association relationship between the devices. For example, IPCs associated with slave 1 in fig. 2 include IPC1 and IPC2. When configuring the devices in the networking, the user only needs to send the networking topological graph to the host device once. The host device receives the networking topological graph, reads the networking program from the networking topological graph, traverses the networking program, searches the IP address appearing in the networking topological graph, and sends the networking topological graph to the subordinate device IP address under the IP address of the host device. The configuration identity of the device to which the IP address belongs can be determined according to the node where the IP address is located. And if the configuration identity is the slave equipment, the master equipment sends the networking topological graph to the slave equipment corresponding to the IP address of the slave equipment. The host device may also send the networking topology map to the standby device, and if the configuration identity of the device is the standby device, the host device sends the networking topology map to the standby device corresponding to the IP address of the standby device. Networking configuration is carried out on each device according to the information in the imported networking topological graph, configuration information does not need to be imported into each device respectively, wiring of the devices and ports of a switch does not need to be carried out one by one, and accuracy and efficiency of device configuration are improved.
Optionally, before determining the subordinate device according to the networking topology map and sending the networking topology map to the subordinate device, the method further includes: determining an IP address of the host equipment; a subordinate device IP address under the host device IP address is looked up.
Specifically, the IP address of the host device is obtained according to the predetermined host device. And (3) importing a networking topological graph into the host equipment, and searching the node where the IP address of the host equipment is located from a networking program of the networking topological graph by the host equipment. After the IP address of the host device in the networking topological graph is determined, other lower-level device IP addresses associated with the IP address of the host device are searched from the IP address of the host device, and the lower-level device IP addresses may include an IP address of a slave device, an IP address of a standby device, and the like. The method has the advantages that the subordinate device under the host device is searched according to the host device, and the problem of device configuration error caused by the fact that the subordinate device and the host device do not belong to the same networking environment is solved.
Optionally, before determining the subordinate device according to the networking topology map and sending the networking topology map to the subordinate device, the method further includes: determining the configuration relationship between the subordinate device and the host device according to the structural configuration information of the node where the IP address of any subordinate device is located; the configuration relationship comprises at least one of a master-slave relationship and a master-slave relationship.
Specifically, the host device is preset with structure configuration information of different devices, the preset structure configuration information is an identity judgment identifier of a device in the networking, and if the networking program has structure configuration information consistent with the preset structure configuration information, the device to which the IP address on the structure configuration information node belongs is a device identity corresponding to the preset structure configuration information. For example, the preset identities stored in the host device are "right", "left", and "IPC", where "right" represents the slave device, "left" represents the standby device, and "IPC" represents the IPC device.
The partial networking program is represented as:
<map version="1.0.0">
<!--To view this file,download free mind mapping software FreeMind from http://freemind.sourceforge.net-->
<node CREATED="1573612082566"ID="ID_1897490552"MODIFIED="1573613035034"TEXT="VMS:192.168.0.2">
<node CREATED="1573612862720"ID="ID_1879061605"MODIFIED="1573613061669"POSITION="right"TEXT="VMS1:192.168.0.4">
<icon BUILTIN="back"/>
<node CREATED="1573613078982"ID="ID_946488434"MODIFIED="1573613090704"TEXT="IPC1:192.168.0.6"/>
<node CREATED="1573613094311"ID="ID_577817880"MODIFIED="1573613102943"TEXT="IPC2:192.168.0.7"/>
</node>
<node CREATED="1573612900657"ID="ID_1246837784"MODIFIED="1573613074268"POSITION="right"TEXT="VMS2:192.168.0.5">
<icon BUILTIN="back"/>
<node CREATED="1573613114747"ID="ID_1170840793"MODIFIED="1573613153051"TEXT="IPC3:192.168.0.8"/>
<node CREATED="1573613128470"ID="ID_1663242637"MODIFIED="1573613167244"TEXT="IPC4:192.168.0.9"/>
</node>
<node CREATED="1573612949697"ID="ID_1143716094"MODIFIED="1573613007709"POSITION="left"TEXT="VMS:192.168.0.3">
<icon BUILTIN="forward"/>
</node>
</node>
</map>
when the host device detects the keyword node of the structural configuration information of right when traversing the networking program, the IP address on the node is the IP address of the slave device, and further, the device where the IP address is located is determined to be the slave device, and the relationship between the slave device and the host device is the master-slave relationship. When a left key word node is detected, the IP address on the node is the IP address of the standby equipment, the equipment where the IP address is located is determined to be the standby equipment, and the relationship between the standby equipment and the host equipment is the main-standby relationship, so that the configuration of the host equipment is completed. If the IPC key node is detected under the right key node, the IPC device on the IPC key node is determined to be the IPC device under the slave device on the right key node by the host device, the association relationship between the slave device and the IPC device is further determined, and the IPC device is divided into the slave device by the host device. The method has the advantages that the slave equipment and the standby equipment which are associated with the host equipment and the IPC equipment under the slave equipment can be determined, the disorder of the relation among the equipment is avoided, and the equipment configuration efficiency is improved.
Optionally, the sending the networking topology map to the subordinate device includes: and sending the networking topological graph to the subordinate device where the IP address of the subordinate device is located according to the IP address of the subordinate device.
Specifically, after the IP address of the subordinate device is determined, the host device sends the networking topology map to the subordinate device where the IP address of the subordinate device is located, and the host device may send the networking topology map to the slave device and the standby device. The method has the advantages that the host equipment sends the networking topological graph, so that the operation of manually and independently importing the configuration information into each equipment is reduced, the labor and the time are saved, and the equipment configuration efficiency is improved.
After the host device reads the networking topological graph, determining the association relationship among the devices in the networking topological graph, generating the configuration of the host device, and associating the devices in the networking with the host device. And sending the networking topological graph to subordinate equipment of the host equipment, wherein the subordinate equipment comprises at least one of slave equipment and standby equipment. For example, the master device sends the networking topological graph to the slave device, and after receiving the networking topological graph, the slave device traverses the networking program in the networking topological graph and determines the configuration relationship between the master device and the slave device according to the structural configuration information of each node and the IP address configuration information of each node. The host device may also send the networking topology map to the standby device, and the standby device determines a configuration relationship between the host device and the standby device. The preset structure configuration information in the slave device and the standby device is consistent with the preset structure configuration information in the host device, so that the slave device and the standby device can make clear the configuration identity of the slave device and the standby device in the networking environment and search other devices associated with the slave device and the standby device. For example, the slave device may search its own host device and IPC device, and the standby device may search the host device.
And S120, completing networking configuration of the host equipment and the lower equipment according to the configuration relation confirmation information sent by the lower equipment.
After determining the configuration relationship of the device in the networking, the subordinate device generates the configuration of the subordinate device and determines the host device of the subordinate device. If the lower level device is a slave device, the IPC device associated with the lower level device can also be determined. And sending the configuration relationship confirmation information to the host equipment, and after receiving the configuration relationship confirmation information, determining that the host equipment and the lower-level equipment both confirm the configuration relationship of the equipment in networking so as to complete networking configuration. If the subordinate device does not complete the configuration, the communication between the host device and the subordinate device cannot be performed. If the configurations of the host equipment and the lower level equipment are inconsistent, an error occurs in the configuration process, and reconfiguration is carried out. The host equipment and the subordinate equipment are both configured, so that the problem that the whole networking configuration is wrong due to the fact that the single party performs wrong configuration can be solved, the problem that the subordinate equipment cannot respond when the host equipment initiates a request to the subordinate equipment after the host equipment is configured can be solved, and the accuracy of the equipment configuration is improved.
According to the technical scheme of the embodiment, the subordinate device is determined through the configuration information of each device in the networking topological graph, the networking topological graph is sent to the subordinate device, and the association relation among the devices is determined according to the confirmation of the subordinate device on the configuration relation. The problem that configuration information needs to be imported manually and repeatedly for each device in the prior art is solved, information errors caused by manual modification of the configuration information can be avoided by drawing a networking topological graph, operation steps of configuration are reduced, configuration errors are avoided by confirmation of a host device and a subordinate device, and manpower and time are saved. The embodiment of the invention does not depend on port configuration of the switch, and can automatically generate configuration on each device by importing the pre-drawn topological graph file under the condition of network connection, so that the network connection is free, the construction is more convenient, and the device configuration efficiency is improved.
Example two
Fig. 3 is a schematic flowchart of a method for configuring networking equipment according to a second embodiment of the present invention, where this embodiment is applicable to a case of configuring equipment in networking, and the method may be executed by a networking equipment configuration device on a lower level device in networking. As shown in fig. 3, the method specifically includes the following steps:
s310, determining the configuration relationship between the lower-level equipment and the host equipment according to the received networking topological graph.
The lower device receives the networking topological graph sent by the host device, reads a networking program in the networking topological graph, traverses the networking program, and searches the configuration relationship between the lower device and the host device from the networking program.
Optionally, determining a configuration relationship between the subordinate device and the host device according to the received networking topology map includes: determining host equipment to which the lower-level equipment belongs according to the IP address of the host equipment corresponding to the node where the IP address of the lower-level equipment is located in the networking topological graph; and determining the configuration relationship between the subordinate device and the host device according to the structural configuration information on the node where the IP address of the subordinate device in the networking topological graph is located.
Specifically, a node where a lower level device IP address is located is searched from a networking program, and a host device IP address to which the lower level device IP address belongs is determined, that is, the host device of the lower level device is determined. Reading the structure configuration information at the IP address node of the subordinate device, comparing the structure configuration information with the preset structure configuration information in the subordinate device, and determining the identity of the subordinate device, thereby obtaining the configuration relationship between the subordinate device and the host device. And the preset structure configuration information in the lower-level equipment is consistent with the preset structure configuration information in the host equipment. If the lower-level equipment is slave equipment, in the process of traversing the networking program, if at least one IPC equipment IP address exists under the slave equipment IP address, the at least one IPC equipment is divided into the slave equipment, a channel between the slave equipment and the IPC equipment is determined, and the slave equipment completes the overall configuration in the networking.
If the host equipment sends the networking topological graph to the standby equipment, the standby equipment traverses the networking program, searches the host equipment of the standby equipment, determines the configuration relationship between the standby equipment and the host equipment, and completes the configuration by the standby equipment.
And S320, sending the configuration relationship confirmation information to the host equipment to complete the networking configuration of the host equipment and the subordinate equipment.
The lower device determines the configuration relationship of itself in the networking, and then sends configuration relationship confirmation information to the host device, the host device receives the configuration relationship confirmation information, and determines that both the host device and the lower device perform device configuration, the host device can initiate a request to the lower device, the lower device can also respond to the request of the host device, and the networking configuration is completed.
The embodiment of the invention receives the networking topological graph sent by the host equipment, the lower level equipment determines the configuration relation between the host equipment and the lower level equipment, and the lower level equipment and the host equipment complete the equipment configuration of the networking environment after configuration. The problem of among the prior art, each equipment is carried out the configuration respectively to the manual work is solved, realized the automatic configuration of subordinate's equipment, reduced the operation of configuration process, practice thrift manpower and time, improve the efficiency of equipment configuration.
EXAMPLE III
Fig. 4 is a block diagram of a configuration apparatus for networking devices, configured on a host device in a networking system, for executing a configuration method for networking devices provided in any embodiment of the present invention, and having functional modules and beneficial effects corresponding to the execution method. As shown in fig. 4, the apparatus specifically includes:
a networking topological graph sending module 401, configured to determine a subordinate device according to a networking topological graph, and send the networking topological graph to the subordinate device, so that the subordinate device determines a configuration relationship between the subordinate device and a host device according to the networking topological graph; the networking topological graph comprises structure configuration information of each node in a networking and IP address configuration information of each node; the lower level device includes at least one of a slave device and a standby device.
A networking configuration completing module 402, configured to complete networking configuration on the host device and the subordinate device according to the configuration relationship confirmation information sent by the subordinate device.
Optionally, the apparatus further comprises:
the host equipment IP address determining module is used for determining the IP address of the host equipment;
and the lower-level equipment IP address searching module is used for searching the lower-level equipment IP address under the host equipment IP address.
Optionally, the apparatus further comprises:
a configuration relation determining module, configured to determine a configuration relation between the subordinate device and the host device according to the configuration information of the structure on the node where any subordinate device IP address is located; the configuration relationship comprises at least one of a master-slave relationship and a master-slave relationship.
Optionally, the networking topology map sending module 401 is specifically configured to:
and sending the networking topological graph to the subordinate device where the IP address of the subordinate device is located according to the IP address of the subordinate device.
The embodiment of the invention determines the subordinate equipment through the configuration information of each equipment in the networking topological graph, sends the networking topological graph to the subordinate equipment, and determines the association relation between each equipment according to the confirmation of the subordinate equipment on the configuration relation. The problem of in the prior art, need artifical each equipment repetition configuration information import is solved, information error that causes when can avoid artifical modification configuration information through drawing the network deployment topological graph reduces the operation step of configuration, and through the confirmation of host computer equipment and subordinate's equipment both sides to the configuration, avoid the configuration error, practices thrift manpower and time, improves equipment configuration efficiency.
Example four
Fig. 5 is a block diagram of a configuration apparatus for networking devices, configured on a lower device in networking, that is capable of executing a configuration method for networking devices provided in any embodiment of the present invention, and having functional modules and beneficial effects corresponding to the execution method. As shown in fig. 5, the apparatus specifically includes:
a configuration relationship determining module 501, configured to determine a configuration relationship between a subordinate device and a host device according to the received networking topology map;
a confirmation information sending module 502, configured to send configuration relationship confirmation information to the host device, so as to complete networking configuration of the host device and the lower level device.
Optionally, the configuration relationship determining module 501 is specifically configured to:
determining host equipment to which the lower-level equipment belongs according to the IP address of the host equipment corresponding to the node where the IP address of the lower-level equipment is located in the networking topological graph;
and determining the configuration relation between the lower-level equipment and the host equipment according to the structural configuration information on the node where the IP address of the lower-level equipment is located in the networking topological graph.
The embodiment of the invention receives the networking topological graph sent by the host equipment, the lower level equipment determines the configuration relation between the host equipment and the lower level equipment, and the lower level equipment and the host equipment complete the equipment configuration of the networking environment after configuration. The problem of among the prior art, each equipment is carried out the configuration respectively to the manual work is solved, realized the automatic configuration of subordinate's equipment, reduced the operation of configuration process, practice thrift manpower and time, improve the efficiency of equipment configuration.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary computer device 600 suitable for use in implementing embodiments one and three of the present invention. The computer device 600 shown in fig. 6 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in fig. 6, computer device 600 is in the form of a general purpose computing device. The components of computer device 600 may include, but are not limited to: one or more processors or processing units 601, a system memory 602, and a bus 603 that couples various system components including the system memory 602 and the processing unit 601.
Bus 603 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 600 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 600 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 602 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 604 and/or cache memory 605. The computer device 600 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 606 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 603 by one or more data media interfaces. Memory 602 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments one and three of the invention.
A program/utility 608 having a set (at least one) of program modules 607 may be stored, for instance, in the memory 602, such program modules 607 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination of which may comprise an implementation of a network environment. The program modules 607 generally perform the functions and/or methods of the first and third embodiments of the invention described herein.
The computer device 600 may also communicate with one or more external devices 609 (e.g., keyboard, pointing device, display 610, etc.), with one or more devices that enable a user to interact with the computer device 600, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 611. Moreover, the computer device 600 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 612. As shown, a network adapter 612 communicates with the other modules of the computer device 600 via the bus 603. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 601 executes various functional applications and data processing by running the program stored in the system memory 602, for example, implementing the networking device configuration method provided by the first and third embodiments of the present invention, including:
determining subordinate equipment according to the networking topological graph, sending the networking topological graph to the subordinate equipment, and enabling the subordinate equipment to determine a configuration relation between the subordinate equipment and the host equipment according to the networking topological graph; the networking topological graph comprises structure configuration information of each node in a networking and IP address configuration information of each node; the lower level equipment comprises at least one of slave equipment and standby equipment;
and finishing networking configuration of the host equipment and the subordinate equipment according to the configuration relation confirmation information sent by the subordinate equipment.
EXAMPLE six
Fig. 7 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention. Fig. 7 illustrates a block diagram of an exemplary computer device 700 suitable for use in implementing embodiments two and four of the present invention. The computer device 700 shown in fig. 7 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present invention.
As shown in fig. 7, the computer device 700 is in the form of a general purpose computing device. The components of the computer device 700 may include, but are not limited to: one or more processors or processing units 701, a system memory 702, and a bus 703 that couples various system components including the system memory 702 and the processing unit 701.
Bus 703 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 700 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 700 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 702 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 704 and/or cache memory 705. The computer device 700 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, the storage system 706 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 703 through one or more data media interfaces. Memory 702 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments two and four of the present invention.
A program/utility 708 having a set (at least one) of program modules 707 may be stored, for example, in the memory 702, such program modules 707 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination of which may comprise an implementation of a network environment. The program modules 707 generally carry out the functions and/or methodologies of the second and fourth embodiments of the invention as described herein.
The computer device 700 may also communicate with one or more external devices 709 (e.g., keyboard, pointing device, display 710, etc.), with one or more devices that enable a user to interact with the computer device 700, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 700 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 711. Moreover, computer device 700 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network such as the Internet) via network adapter 712. As shown, the network adapter 712 communicates with the other modules of the computer device 700 over a bus 703. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, to name a few.
The processing unit 701 executes various functional applications and data processing by running the program stored in the system memory 702, for example, to implement the networking device configuration methods provided by the second and fourth embodiments of the present invention, including:
determining a configuration relationship between the lower-level equipment and the host equipment according to the received networking topological graph;
and sending the configuration relation confirmation information to the host equipment to complete the networking configuration of the host equipment and the lower-level equipment.
EXAMPLE seven
A seventh embodiment of the present invention further provides a storage medium containing computer-executable instructions, where a computer program is stored thereon, and when the program is executed by a processor, the method for configuring a networking device according to the first, third, and fifth embodiments of the present invention is implemented, where the method includes:
determining subordinate equipment according to the networking topological graph, sending the networking topological graph to the subordinate equipment, and enabling the subordinate equipment to determine a configuration relation between the subordinate equipment and the host equipment according to the networking topological graph; the networking topological graph comprises structure configuration information of each node in the networking and IP address configuration information of each node; the lower level equipment comprises at least one of slave equipment and standby equipment;
and finishing networking configuration of the host equipment and the subordinate equipment according to the configuration relation confirmation information sent by the subordinate equipment.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Example eight
An eighth embodiment of the present invention further provides a storage medium containing computer-executable instructions, where a computer program is stored thereon, and when the computer program is executed by a processor, the method for configuring a networking device according to the second, fourth, and sixth embodiments of the present invention is implemented, where the method includes:
determining a configuration relationship between the subordinate device and the host device according to the received networking topological graph;
and sending the configuration relation confirmation information to the host equipment to complete the networking configuration of the host equipment and the subordinate equipment.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A networking device configuration method, performed by a host device in a networking, the method comprising:
determining subordinate equipment according to the networking topological graph, sending the networking topological graph to the subordinate equipment, and enabling the subordinate equipment to determine a configuration relationship between the subordinate equipment and the host equipment according to the networking topological graph; the networking topological graph comprises structure configuration information of each node in a networking and IP address configuration information of each node; the structural configuration information of each node is the configuration identity of equipment at each node in the networking, and the configuration identity comprises host equipment, slave equipment, standby equipment or a network camera; the lower level device comprises at least one of a slave device and a standby device;
if the subordinate device is a slave device, the networking topological graph is further used for the slave device to determine a configuration relationship between the slave device and at least one network camera;
and finishing networking configuration of the host equipment and the subordinate equipment according to the configuration relationship confirmation information sent by the subordinate equipment.
2. The method of claim 1, wherein before determining the subordinate device according to the networking topology map and sending the networking topology map to the subordinate device, the method further comprises:
determining the IP address of the host equipment;
and searching a lower-level device IP address under the host device IP address.
3. The method of claim 1, wherein prior to determining a subordinate device from a networking topology and sending the networking topology to the subordinate device, further comprising:
determining the configuration relationship between the subordinate device and the host device according to the structure configuration information of the node where any subordinate device IP address is located; the configuration relationship comprises at least one of a master-slave relationship and a master-slave relationship.
4. The method of claim 1, wherein sending the networking topology to the subordinate device comprises:
and sending the networking topological graph to the lower equipment where the IP address of the lower equipment is located according to the IP address of the lower equipment.
5. A networking device configuration method, wherein the method is performed by a lower device in networking, and the method comprises:
determining a configuration relationship between the lower-level equipment and the host equipment according to the received networking topological graph;
if the subordinate equipment is slave equipment, determining a configuration relationship between the slave equipment and at least one network camera according to the networking topological graph;
and sending configuration relationship confirmation information to the host equipment to complete networking configuration of the host equipment and the subordinate equipment.
6. The method of claim 5, wherein determining a configuration relationship between the subordinate device and the host device according to the received networking topology map comprises:
determining host equipment to which lower-level equipment belongs according to a host equipment IP address corresponding to a node where the lower-level equipment IP address is located in a networking topological graph;
and determining the configuration relationship between the subordinate device and the host device according to the structural configuration information on the node where the IP address of the subordinate device in the networking topological graph is located.
7. A networking device configuration apparatus configured to be configured on a host device in a networking, the apparatus comprising:
the networking topological graph sending module is used for determining subordinate equipment according to a networking topological graph, sending the networking topological graph to the subordinate equipment and determining the configuration relationship between the subordinate equipment and the host equipment according to the networking topological graph by the subordinate equipment; the networking topological graph comprises structure configuration information of each node in a networking and IP address configuration information of each node; the structural configuration information of each node is the configuration identity of equipment at each node in the networking, and the configuration identity comprises host equipment, slave equipment, standby equipment or a network camera; the lower level device comprises at least one of a slave device and a standby device;
the networking topological graph is further used for enabling the slave device to determine the configuration relationship between the slave device and at least one network camera when the lower-level device is the slave device;
and the networking configuration completion module is used for completing the networking configuration of the host equipment and the subordinate equipment according to the configuration relationship confirmation information sent by the subordinate equipment.
8. A networking device configuring apparatus, wherein the apparatus is configured on a lower device in a networking, the apparatus comprising:
the configuration relation determining module is used for determining the configuration relation between the lower-level equipment and the host equipment according to the received networking topological graph;
the configuration relationship determining module is further configured to determine, if the subordinate device is a slave device, a configuration relationship between the slave device and at least one network camera according to the networking topology map;
and the confirmation information sending module is used for sending configuration relationship confirmation information to the host equipment so as to complete networking configuration of the host equipment and the subordinate equipment.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the networking device configuration method of any of claims 1-4 or 5-6.
10. A storage medium containing computer-executable instructions for performing the networking device configuration method of any of claims 1-4 or 5-6 when executed by a computer processor.
CN201911320089.9A 2019-12-19 2019-12-19 Networking equipment configuration method, device, equipment and storage medium Active CN113014409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911320089.9A CN113014409B (en) 2019-12-19 2019-12-19 Networking equipment configuration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911320089.9A CN113014409B (en) 2019-12-19 2019-12-19 Networking equipment configuration method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113014409A CN113014409A (en) 2021-06-22
CN113014409B true CN113014409B (en) 2023-02-28

Family

ID=76382275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911320089.9A Active CN113014409B (en) 2019-12-19 2019-12-19 Networking equipment configuration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113014409B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7706300B2 (en) * 2002-03-04 2010-04-27 Netsocket, Inc. Method for providing topology awareness information within an IP network
CN101764827A (en) * 2010-02-02 2010-06-30 中国电子科技集团公司第三十研究所 Method for realizing apparatus concatenation and increasing user quantity
CN109144695A (en) * 2018-08-30 2019-01-04 百度在线网络技术(北京)有限公司 A kind of processing method, device, equipment and the medium of task topological relation
CN109309583A (en) * 2018-08-30 2019-02-05 百度在线网络技术(北京)有限公司 Information acquisition method, device, electronic equipment and medium based on distributed system
CN109450697A (en) * 2018-11-30 2019-03-08 四川安迪科技实业有限公司 The topological relation and link information methods of exhibiting of Satellite Networking
CN109474508A (en) * 2018-12-28 2019-03-15 深信服科技股份有限公司 A kind of VPN network-building method, system, VPN host node device and medium
CN109818796A (en) * 2019-02-11 2019-05-28 南方科技大学 Data center's construction method, device, electronic equipment and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7706300B2 (en) * 2002-03-04 2010-04-27 Netsocket, Inc. Method for providing topology awareness information within an IP network
CN101764827A (en) * 2010-02-02 2010-06-30 中国电子科技集团公司第三十研究所 Method for realizing apparatus concatenation and increasing user quantity
CN109144695A (en) * 2018-08-30 2019-01-04 百度在线网络技术(北京)有限公司 A kind of processing method, device, equipment and the medium of task topological relation
CN109309583A (en) * 2018-08-30 2019-02-05 百度在线网络技术(北京)有限公司 Information acquisition method, device, electronic equipment and medium based on distributed system
CN109450697A (en) * 2018-11-30 2019-03-08 四川安迪科技实业有限公司 The topological relation and link information methods of exhibiting of Satellite Networking
CN109474508A (en) * 2018-12-28 2019-03-15 深信服科技股份有限公司 A kind of VPN network-building method, system, VPN host node device and medium
CN109818796A (en) * 2019-02-11 2019-05-28 南方科技大学 Data center's construction method, device, electronic equipment and medium

Also Published As

Publication number Publication date
CN113014409A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN108537543B (en) Parallel processing method, device, equipment and storage medium for blockchain data
CN109474467B (en) Network automation management method and device, storage medium and electronic equipment
CN107666493B (en) Database configuration method and equipment thereof
CN113766042A (en) Container address configuration method, system, device, equipment and medium
CN111061740A (en) Data synchronization method, equipment and storage medium
CN107817962B (en) Remote control method, device, control server and storage medium
CN111064786B (en) Account identifier management method and device
CN112463256A (en) Method, system, electronic device and storage medium for determining configuration file
CN109151033B (en) Communication method and device based on distributed system, electronic equipment and storage medium
CN108874441A (en) A kind of board configuration method, device, server and storage medium
CN109033456B (en) Condition query method and device, electronic equipment and storage medium
US9032063B2 (en) Dynamic port naming in a chassis
US10129204B2 (en) Network client ID from external management host via management network
WO2024113778A1 (en) Holder determination method, apparatus and device for field replace unit device
CN110096543B (en) Data operation method, device, server and medium of application program
CN113014409B (en) Networking equipment configuration method, device, equipment and storage medium
CN111352664A (en) Distributed machine learning task starting method, system, equipment and storage medium
CN113986995A (en) Request distribution method and device, storage medium and electronic equipment
CN112073505B (en) Method for unloading on cloud server, control device and storage medium
CN114036218A (en) Data model switching method and device, server and storage medium
CN104407846B (en) Information processing method and device
CN112364268A (en) Resource acquisition method and device, electronic equipment and storage medium
CN114385734A (en) Initialization method, device, equipment and medium for relational database routing middleware
CN109150612B (en) Detection method based on distributed system for unmanned vehicle and electronic equipment
CN112711602A (en) Running method and device of storage process, database system and storage medium

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