CN114374614A - Network topology configuration method and device - Google Patents

Network topology configuration method and device Download PDF

Info

Publication number
CN114374614A
CN114374614A CN202210206981.XA CN202210206981A CN114374614A CN 114374614 A CN114374614 A CN 114374614A CN 202210206981 A CN202210206981 A CN 202210206981A CN 114374614 A CN114374614 A CN 114374614A
Authority
CN
China
Prior art keywords
port
terminal
partition
data analysis
network
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
CN202210206981.XA
Other languages
Chinese (zh)
Other versions
CN114374614B (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210206981.XA priority Critical patent/CN114374614B/en
Publication of CN114374614A publication Critical patent/CN114374614A/en
Application granted granted Critical
Publication of CN114374614B publication Critical patent/CN114374614B/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/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Landscapes

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

Abstract

The embodiment of the application provides a network topology configuration method and a device, which can be used in the field of finance, and the method comprises the following steps: importing network port data and address resolution protocol data; performing data analysis on the network port data and the address resolution protocol data, performing port number matching operation according to the result of the data analysis, and establishing an incidence relation between an initial port and a terminal port; according to whether the optical fiber network identification number of the terminal is empty in the result of data analysis, executing corresponding equipment partition matching operation and establishing an incidence relation between an initial port and a terminal equipment partition; the method and the device can accurately configure the network topology relation, and improve the daily operation and maintenance working capacity.

Description

Network topology configuration method and device
Technical Field
The application relates to the field of network topology, can also be used in the financial field, and particularly relates to a network topology configuration method and device.
Background
A Network Topology (Network Topology) architecture refers to the physical layout of interconnecting various devices using a transmission medium. Refers to a particular physical, i.e., real, or logical, i.e., virtual, arrangement of members that make up a network. If the connection structure of two networks is the same, we say that the network topologies are the same, although the physical wiring and the distance between nodes in the two networks may be different.
The data volume of the existing system is increasing day by day, the correlation mode among data is more complicated due to the introduction of a new technology, the integrity and the accuracy of the network topology relation cannot be ensured even though the correlation relation is established manually by operation and maintenance personnel, and great inconvenience is caused to the management and maintenance work of a telecommunication network.
Disclosure of Invention
Aiming at the problems in the prior art, the application provides a network topology configuration method and device, which can accurately configure network topology relationship and improve daily operation and maintenance working capacity.
In order to solve at least one of the above problems, the present application provides the following technical solutions:
in a first aspect, the present application provides a network topology configuration method, including:
importing network port data and address resolution protocol data;
performing data analysis on the network port data and the address resolution protocol data, performing port number matching operation according to the result of the data analysis, and establishing an incidence relation between an initial port and a terminal port;
and according to the result of data analysis, whether the optical fiber network identification number of the terminal is empty or not is judged, corresponding equipment partition matching operation is executed, and the incidence relation between the initial port and the terminal equipment partition is established.
Further, the performing port number matching operation according to the result of data analysis and establishing an association relationship between the originating port and the terminating port includes:
judging whether the name, the port number and the port type of the starting end network equipment and the name, the port number and the port type of the terminal network equipment exist simultaneously according to the data analysis result;
if the port exists, the type of the terminal configuration item in the preset port table is updated to be the port, and the incidence relation between the initial port and the terminal port is newly increased.
Further, the executing, according to whether the fiber network identification number of the terminal in the result of the data analysis is null, a corresponding device partition matching operation and establishing an association relationship between the start port and the terminal device partition includes:
when the optical fiber network identification number of the terminal is determined not to be empty, performing equipment partition matching operation and establishing an incidence relation between an initial port and a terminal equipment partition according to a data analysis result;
and when the optical fiber network identification number of the terminal is determined to be null, performing equipment partition matching operation according to the result of data analysis and establishing an incidence relation between the initial port and the equipment partition to which the system node where the IP address of the terminal is located belongs.
Further, when it is determined that the fiber network identification number of the terminal is not empty, performing device partition matching operation and establishing an association relationship between the start port and the terminal device partition according to a result of data analysis includes:
and if the optical fiber network identification number of the terminal is not empty, updating the type of the terminal configuration item in the preset port table to be the device partition when judging that the matching record exists in the device partition table, and adding the incidence relation between the initial port and the device partition.
Further, when the fiber network identification number of the terminal is determined to be null, performing device partition matching operation and establishing an association relationship between the start port and the device partition to which the system node where the terminal IP address is located belongs according to the result of data analysis includes:
and if the optical fiber network identification number of the terminal is empty, performing data analysis on the address resolution protocol data, judging whether an IP address matching record exists in the address resolution protocol data and whether the IP address is an in-use system node and/or an in-cloud virtual machine according to the data analysis result, and if so, newly adding the incidence relation between the initial port and the equipment partition of the system node where the IP address is located in a preset port table.
In a second aspect, the present application provides a network topology configuration apparatus, including:
the input import module is used for importing network port data and address resolution protocol data;
the port matching module is used for carrying out data analysis on the network port data and the address resolution protocol data, carrying out port number matching operation according to the result of the data analysis and establishing the incidence relation between an initial port and a terminal port;
and the equipment partition matching module is used for executing corresponding equipment partition matching operation and establishing the incidence relation between the initial port and the terminal equipment partition according to whether the optical network identification number of the terminal in the data analysis result is empty.
Further, the port matching module includes:
a non-null judging unit, configured to judge whether a start-end network device name, a start-end port number, a start-end port type, a terminal network device name, a terminal port number, and a terminal port type exist at the same time according to a data analysis result;
and the port association unit is used for updating the type of the terminal configuration item in the preset port table into a port and newly increasing the association relation between the initial port and the terminal port.
Further, the device partition matching module includes:
the first equipment partition unit is used for carrying out equipment partition matching operation and establishing an incidence relation between an initial port and a terminal equipment partition according to a data analysis result when the optical network identification number of the terminal is determined not to be empty;
and the second equipment partition unit is used for performing equipment partition matching operation and establishing an incidence relation between the initial port and the equipment partition to which the system node where the IP address of the terminal is located belongs according to the result of data analysis when the optical network identification number of the terminal is determined to be null.
In a third aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the network topology configuration method.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the network topology configuration method described.
In a fifth aspect, the present application provides a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the network topology configuration method.
According to the technical scheme, the network topology configuration method and the device provided by the application can be used for establishing the incidence relation between the initial port and the terminal port as well as between the initial port and the terminal device partition by performing data analysis on the imported network port data and the imported address resolution protocol data and performing port number matching and device partition matching according to the result of the data analysis, so that the network topology relation can be accurately configured, and the daily operation and maintenance working capacity is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be 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 application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a network topology configuration method in an embodiment of the present application;
fig. 2 is a second flowchart illustrating a network topology configuration method according to an embodiment of the present application;
fig. 3 is a third schematic flowchart of a network topology configuration method in the embodiment of the present application;
fig. 4 is one of the structural diagrams of the network topology configuration apparatus in the embodiment of the present application;
fig. 5 is a second block diagram of a network topology configuration device in the embodiment of the present application;
fig. 6 is a third structural diagram of a network topology configuration apparatus in an embodiment of the present application;
FIG. 7 is a flow diagram of a network topology in an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In consideration of the increasing data volume of the existing system, the reference of a new technology makes the association mode among data more complex, and the manual establishment of the association relation by operation and maintenance personnel cannot ensure the integrity and accuracy of the network topology relation, which causes great inconvenience to the management and maintenance work of the telecommunication network, the application provides a network topology configuration method and a device.
In order to accurately configure a network topology relationship and improve daily operation and maintenance working capacity, the present application provides an embodiment of a network topology configuration method, and referring to fig. 1, the network topology configuration method specifically includes the following contents:
step S101: and importing network port data and address resolution protocol data.
Optionally, the application may acquire/import network port data and address resolution protocol data (i.e., arp data) from a network management system or other third-party systems.
Step S102: and performing data analysis on the network port data and the address resolution protocol data, performing port number matching operation according to the result of the data analysis, and establishing an incidence relation between an initial port and a terminal port.
Optionally, after the network port data and the address resolution protocol data are imported, the application may perform data resolution on the network port data and the address resolution protocol data by using the existing data resolution method to obtain a data resolution result.
In an embodiment of the present application, the port number matching operation may be performed on data subjected to data parsing, and specifically may be: firstly, judging whether the name, the port number and the port type of the initial end (namely, A end) network equipment exist, if so, further judging whether the name, the port number and the port type of the terminal end (namely, B end) network equipment exist at the same time, if both exist, updating the terminal configuration item type in the preset port table to be a port, and newly increasing the incidence relation between the initial end port and the terminal port.
Step S103: and according to the result of data analysis, whether the optical fiber network identification number of the terminal is empty or not is judged, corresponding equipment partition matching operation is executed, and the incidence relation between the initial port and the terminal equipment partition is established.
Optionally, in the step of determining whether the terminal (i.e. B-side) network device name, the terminal port number, and the terminal port type exist, if not, then it may be further determined whether the optical fiber network identification number (i.e. WWN number) of the terminal exists, so as to execute the corresponding device partition matching operation and establish the association relationship between the start-side port and the terminal device partition.
As can be seen from the above description, the network topology configuration method provided in this embodiment of the present application can establish an association relationship between the start port and the terminal port, and between the start port and the terminal device partition by performing data analysis on the imported network port data and address resolution protocol data, and performing port number matching and device partition matching operations according to the result of the data analysis, so that the network topology relationship can be accurately configured, and the daily operation and maintenance working capacity can be improved.
In order to accurately perform port number matching operation, in an embodiment of the network topology configuration method of the present application, referring to fig. 2, the step S102 may further specifically include the following steps:
step S201: and judging whether the name, the port number and the type of the initial end network equipment and the name, the port number and the type of the terminal end network equipment exist simultaneously according to the data analysis result.
Step S202: if the port exists, the type of the terminal configuration item in the preset port table is updated to be the port, and the incidence relation between the initial port and the terminal port is newly increased.
Optionally, the port number matching operation may be performed on the data subjected to the data analysis processing, and specifically may be: firstly, judging whether the name, the port number and the port type of the initial end (namely, A end) network equipment exist, if so, further judging whether the name, the port number and the port type of the terminal end (namely, B end) network equipment exist at the same time, if both exist, updating the terminal configuration item type in the preset port table to be a port, and newly increasing the incidence relation between the initial end port and the terminal port.
In order to accurately perform the device partition matching operation, in an embodiment of the network topology configuration method of the present application, referring to fig. 3, the step S103 may further specifically include the following steps:
step S301: and when the optical fiber network identification number of the terminal is determined not to be empty, performing equipment partition matching operation and establishing an incidence relation between the initial port and the terminal equipment partition according to the result of data analysis.
Optionally, if the fiber network identification number of the terminal is not empty, when it is determined that there is a matching record in the device partition table, the type of the terminal configuration item in the preset port table is updated to be a device partition, and an association relationship between the start port and the device partition is newly added.
Step S302: and when the optical fiber network identification number of the terminal is determined to be null, performing equipment partition matching operation according to the result of data analysis and establishing an incidence relation between the initial port and the equipment partition to which the system node where the IP address of the terminal is located belongs.
Optionally, if the fiber network identification number of the terminal is null, performing data analysis on the address resolution protocol data, and determining whether an IP address matching record exists in the address resolution protocol data and whether the IP address is an in-use system node and/or an in-cloud virtual machine according to the data analysis result, if so, adding an association relationship between an initial port and an equipment partition to which the system node where the IP address belongs in a preset port table.
In order to accurately perform the device partition matching operation, in an embodiment of the network topology configuration method of the present application, the step S301 may further specifically include the following steps:
and if the optical fiber network identification number of the terminal is not empty, updating the type of the terminal configuration item in the preset port table to be the device partition when judging that the matching record exists in the device partition table, and adding the incidence relation between the initial port and the device partition.
Optionally, when it is determined that the optical network identifier of the terminal exists or the optical network identifier of the terminal is not empty, the method and the device can perform device partition matching operation and establish an association relationship between the start port and the terminal device partition.
In an example, if a matching record can be found in the DEVICE partition table, the field B _ DEVICE _ TYPE in the auto discovery port analysis table may be updated to 'DEVICE', and the B-port TYPE and the B-port configuration entry field in the port table may be updated accordingly (for example, the terminal configuration entry TYPE in the preset port table is updated to be the DEVICE partition, and the association relationship between the starting port and the DEVICE partition is newly added).
In another example, if a matching record can be found in the storage resource, the field B _ DEVICE _ TYPE of the auto discovery port analysis table may be updated to 'store', and the TYPE of the B port and the field of the configuration item of the B port in the port table may be updated accordingly (for example, the TYPE of the terminal configuration item in the preset port table is updated to be the DEVICE partition, and the association relationship between the start port and the DEVICE partition is newly added).
In order to accurately perform the device partition matching operation, in an embodiment of the network topology configuration method of the present application, the step S302 may further specifically include the following steps:
and if the optical fiber network identification number of the terminal is empty, performing data analysis on the address resolution protocol data, judging whether an IP address matching record exists in the address resolution protocol data and whether the IP address is an in-use system node and/or an in-cloud virtual machine according to the data analysis result, and if so, newly adding the incidence relation between the initial port and the equipment partition of the system node where the IP address is located in a preset port table.
Optionally, when the fiber network identification number of the terminal is determined to be null, whether the name and the port number of the terminal network device exist or not may be determined at first, if yes, whether an IP address matching record exists in the address resolution protocol data and whether the IP address is an in-use system node and/or an in-cloud KVM virtual machine or not may be further determined, and if yes, an association relationship between the start port and a device partition to which the system node to which the IP address belongs is newly added in the preset port table.
In order to accurately configure a network topology relationship and improve daily operation and maintenance work capacity, the present application provides an embodiment of a network topology configuration device for implementing all or part of the contents of the network topology configuration method, and referring to fig. 4, the network topology configuration device specifically includes the following contents:
and the input import module 10 is used for importing network port data and address resolution protocol data.
And the port matching module 20 is configured to perform data analysis on the network port data and the address resolution protocol data, perform port number matching operation according to a result of the data analysis, and establish an association relationship between an initial port and a terminal port.
And the device partition matching module 30 is configured to execute a corresponding device partition matching operation and establish an association relationship between the start port and the terminal device partition according to whether the optical network identification number of the terminal in the result of data analysis is null.
As can be seen from the above description, the network topology configuration device provided in this embodiment of the present application can establish an association relationship between a start port and a terminal port, and between a terminal device partition and a terminal port by performing data analysis on imported network port data and address resolution protocol data and performing port number matching and device partition matching operations according to a result of the data analysis, so that a network topology relationship can be accurately configured, and a daily operation and maintenance working capability can be improved.
In order to accurately perform the port number matching operation, in an embodiment of the network topology configuration apparatus of the present application, referring to fig. 5, the port matching module 20 includes:
a non-null determination unit 21, configured to determine whether the originating network device name, the originating port number, the originating port type, and the terminating network device name, the terminating port number, and the terminating port type exist at the same time according to the data analysis result.
And the port association unit 22 is configured to update the type of the terminal configuration item in the preset port table to be a port, and newly add an association relationship between the initial port and the terminal port.
In order to accurately perform the device partition matching operation, in an embodiment of the network topology configuration apparatus of the present application, referring to fig. 6, the device partition matching module 30 includes:
and the first device partition unit 31 is configured to, when it is determined that the optical network identifier of the terminal is not empty, perform device partition matching operation and establish an association relationship between the start port and the terminal device partition according to a result of data analysis.
And the second device partition unit 32 is configured to, when it is determined that the optical network identifier of the terminal is empty, perform device partition matching operation according to a result of data analysis and establish an association relationship between the start port and a device partition to which the system node where the terminal IP address is located belongs.
To further illustrate the present invention, the present application further provides a specific application example of implementing a network topology configuration method by using the network topology configuration apparatus, which is shown in fig. 7 and specifically includes the following contents:
the method comprises the following steps: and importing network port data and address resolution protocol arp data from a network management system.
Step two: analyzing the network port data, executing port number matching (namely port and port connection) operation, specifically, judging whether the name of the network equipment at the A end, the port number and the port type exist, judging whether the name of the network equipment at the B end, the port number and the port type exist, if both exist, updating the configuration item fields of the B end and the B end in the port table, specifically, updating the configuration item type of the B end into a port, and adding the incidence relation between the port at the A end and the port at the B end.
Meanwhile, MAC address matching can be carried out, namely whether matching records exist in the equipment partition is judged, and if the matching records exist, the type of the B terminal and the configuration item field of the B terminal in the port table are updated.
In addition, matching of the WWN number of the fiber network identifier may also be performed, in one example, the device partition is matched, for example, there is a matching record in the device partition table; updating a field B _ DEVICE _ TYPE ═ DEVPART' in the automatic discovery port analysis table, and updating a TYPE of a terminal B and a configuration item field of the terminal B in the port table; in another example, the matching DEVICE partition has a matching record in the storage resource, and updates the field B _ DEVICE _ TYPE ═ storage' in the auto discovery port analysis table, and updates the field of the B-port TYPE and the B-port configuration entry in the port table.
Step three: analyzing the arp data of the address resolution protocol, specifically, firstly, judging whether the name + port number of the network device exists, if so, further judging whether the ip of the B end is an in-use system node and is a kvm virtual machine in the cloud, and if so, establishing a corresponding relation between a device partition and a port to which the system node where the ip belongs.
According to the method, the device and the system, the defect of configuration data in network topology is solved, production operation and maintenance personnel can obtain a complete configuration information network management topological relation, and the daily operation and maintenance working capacity is improved.
In terms of hardware, in order to accurately configure a network topology relationship and improve daily operation and maintenance work capacity, the present application provides an embodiment of an electronic device for implementing all or part of contents in the network topology configuration method, where the electronic device specifically includes the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between the network topology configuration device and relevant equipment such as a core service system, a user terminal, a relevant database and the like; the logic controller may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the logic controller may be implemented with reference to the embodiment of the network topology configuration method and the embodiment of the network topology configuration device in the embodiment, and the contents thereof are incorporated herein, and repeated descriptions are omitted.
It is understood that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), an in-vehicle device, a smart wearable device, and the like. Wherein, intelligence wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
In practical applications, part of the network topology configuration method may be executed on the electronic device side as described above, or all operations may be completed in the client device. The selection may be specifically performed according to the processing capability of the client device, the limitation of the user usage scenario, and the like. This is not a limitation of the present application. The client device may further include a processor if all operations are performed in the client device.
The client device may have a communication module (i.e., a communication unit), and may be communicatively connected to a remote server to implement data transmission with the server. The server may include a server on the task scheduling center side, and in other implementation scenarios, the server may also include a server on an intermediate platform, for example, a server on a third-party server platform that is communicatively linked to the task scheduling center server. The server may include a single computer device, or may include a server cluster formed by a plurality of servers, or a server structure of a distributed apparatus.
Fig. 8 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application. As shown in fig. 8, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this FIG. 8 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the network topology configuration method functions may be integrated into the central processor 9100. The central processor 9100 may be configured to control as follows:
step S101: and importing network port data and address resolution protocol data.
Step S102: and performing data analysis on the network port data and the address resolution protocol data, performing port number matching operation according to the result of the data analysis, and establishing an incidence relation between an initial port and a terminal port.
Step S103: and according to the result of data analysis, whether the optical fiber network identification number of the terminal is empty or not is judged, corresponding equipment partition matching operation is executed, and the incidence relation between the initial port and the terminal equipment partition is established.
As can be seen from the above description, the electronic device provided in the embodiment of the present application establishes an association relationship between the start port and the terminal port, and between the start port and the terminal device partition by performing data analysis on the imported network port data and address resolution protocol data, and performing port number matching and device partition matching operations according to the result of the data analysis, so that a network topology relationship can be accurately configured, and the daily operation and maintenance working capacity is improved.
In another embodiment, the network topology configuring apparatus may be configured separately from the central processor 9100, for example, the network topology configuring apparatus may be configured as a chip connected to the central processor 9100, and the network topology configuring method function is realized by the control of the central processor.
As shown in fig. 8, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 8; further, the electronic device 9600 may further include components not shown in fig. 8, which may be referred to in the art.
As shown in fig. 8, a central processor 9100, sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, which central processor 9100 receives input and controls the operation of the various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. Power supply 9170 is used to provide power to electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 can be a solid state memory, e.g., Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 9140 could also be some other type of device. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 being used for storing application programs and function programs or for executing a flow of operations of the electronic device 9600 by the central processor 9100.
The memory 9140 can also include a data store 9143, the data store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing ordinary telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
An embodiment of the present application further provides a computer-readable storage medium capable of implementing all the steps in the network topology configuration method in which the execution subject is the server or the client in the foregoing embodiments, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, implements all the steps in the network topology configuration method in which the execution subject is the server or the client in the foregoing embodiments, for example, when the processor executes the computer program, implements the following steps:
step S101: and importing network port data and address resolution protocol data.
Step S102: and performing data analysis on the network port data and the address resolution protocol data, performing port number matching operation according to the result of the data analysis, and establishing an incidence relation between an initial port and a terminal port.
Step S103: and according to the result of data analysis, whether the optical fiber network identification number of the terminal is empty or not is judged, corresponding equipment partition matching operation is executed, and the incidence relation between the initial port and the terminal equipment partition is established.
As can be seen from the above description, the computer-readable storage medium provided in this embodiment of the present application establishes an association relationship between a start port and a terminal port, and between the start port and the terminal device partition by performing data analysis on imported network port data and address resolution protocol data and performing port number matching and device partition matching operations according to a result of the data analysis, so that a network topology relationship can be accurately configured, and a daily operation and maintenance working capability is improved.
Embodiments of the present application further provide a computer program product capable of implementing all steps in the network topology configuration method in which the execution subject is a server or a client in the foregoing embodiments, and when executed by a processor, the computer program/instruction implements the steps of the network topology configuration method, for example, the computer program/instruction implements the following steps:
step S101: and importing network port data and address resolution protocol data.
Step S102: and performing data analysis on the network port data and the address resolution protocol data, performing port number matching operation according to the result of the data analysis, and establishing an incidence relation between an initial port and a terminal port.
Step S103: and according to the result of data analysis, whether the optical fiber network identification number of the terminal is empty or not is judged, corresponding equipment partition matching operation is executed, and the incidence relation between the initial port and the terminal equipment partition is established.
As can be seen from the above description, the computer program product provided in this embodiment of the present application establishes an association relationship between a start port and a terminal port, and between the start port and the terminal device partition by performing data analysis on imported network port data and address resolution protocol data and performing port number matching and device partition matching operations according to a result of the data analysis, so that a network topology relationship can be accurately configured, and a daily operation and maintenance working capability can be improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. A method for network topology configuration, the method comprising:
importing network port data and address resolution protocol data;
performing data analysis on the network port data and the address resolution protocol data, performing port number matching operation according to the result of the data analysis, and establishing an incidence relation between an initial port and a terminal port;
and according to the result of data analysis, whether the optical fiber network identification number of the terminal is empty or not is judged, corresponding equipment partition matching operation is executed, and the incidence relation between the initial port and the terminal equipment partition is established.
2. The method according to claim 1, wherein performing port number matching operation according to the result of data parsing and establishing an association relationship between an originating port and a terminating port comprises:
judging whether the name, the port number and the port type of the starting end network equipment and the name, the port number and the port type of the terminal network equipment exist simultaneously according to the data analysis result;
if the port exists, the type of the terminal configuration item in the preset port table is updated to be the port, and the incidence relation between the initial port and the terminal port is newly increased.
3. The method according to claim 1, wherein the performing, according to whether the fiber network identification number of the terminal is null in the result of the data analysis, a corresponding device partition matching operation and establishing an association relationship between a start port and a terminal device partition includes:
when the optical fiber network identification number of the terminal is determined not to be empty, performing equipment partition matching operation and establishing an incidence relation between an initial port and a terminal equipment partition according to a data analysis result;
and when the optical fiber network identification number of the terminal is determined to be null, performing equipment partition matching operation according to the result of data analysis and establishing an incidence relation between the initial port and the equipment partition to which the system node where the IP address of the terminal is located belongs.
4. The method according to claim 3, wherein when it is determined that the fiber network identification number of the terminal is not empty, performing device partition matching operation and establishing an association relationship between a start port and a terminal device partition according to a result of data analysis includes:
and if the optical fiber network identification number of the terminal is not empty, updating the type of the terminal configuration item in the preset port table to be the device partition when judging that the matching record exists in the device partition table, and adding the incidence relation between the initial port and the device partition.
5. The method according to claim 3, wherein when it is determined that the fiber network identification number of the terminal is null, performing device partition matching operation and establishing an association relationship between an initial port and a device partition belonging to a system node where a terminal IP address is located according to a result of data analysis includes:
and if the optical fiber network identification number of the terminal is empty, performing data analysis on the address resolution protocol data, judging whether an IP address matching record exists in the address resolution protocol data and whether the IP address is an in-use system node and/or an in-cloud virtual machine according to the data analysis result, and if so, newly adding the incidence relation between the initial port and the equipment partition of the system node where the IP address is located in a preset port table.
6. A network topology configuring apparatus, comprising:
the input import module is used for importing network port data and address resolution protocol data;
the port matching module is used for carrying out data analysis on the network port data and the address resolution protocol data, carrying out port number matching operation according to the result of the data analysis and establishing the incidence relation between an initial port and a terminal port;
and the equipment partition matching module is used for executing corresponding equipment partition matching operation and establishing the incidence relation between the initial port and the terminal equipment partition according to whether the optical network identification number of the terminal in the data analysis result is empty.
7. The network topology configuration device of claim 6, wherein the port matching module comprises:
a non-null judging unit, configured to judge whether a start-end network device name, a start-end port number, a start-end port type, a terminal network device name, a terminal port number, and a terminal port type exist at the same time according to a data analysis result;
and the port association unit is used for updating the type of the terminal configuration item in the preset port table into a port and newly increasing the association relation between the initial port and the terminal port.
8. The apparatus of claim 6, wherein the device partition matching module comprises:
the first equipment partition unit is used for carrying out equipment partition matching operation and establishing an incidence relation between an initial port and a terminal equipment partition according to a data analysis result when the optical network identification number of the terminal is determined not to be empty;
and the second equipment partition unit is used for performing equipment partition matching operation and establishing an incidence relation between the initial port and the equipment partition to which the system node where the IP address of the terminal is located belongs according to the result of data analysis when the optical network identification number of the terminal is determined to be null.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the network topology configuration method of any of claims 1 to 5 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the network topology configuration method of any of claims 1 to 5.
11. A computer program product comprising computer programs/instructions, characterized in that the computer programs/instructions, when executed by a processor, implement the steps of the network topology configuration method of any of claims 1 to 5.
CN202210206981.XA 2022-03-03 2022-03-03 Network topology configuration method and device Active CN114374614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210206981.XA CN114374614B (en) 2022-03-03 2022-03-03 Network topology configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210206981.XA CN114374614B (en) 2022-03-03 2022-03-03 Network topology configuration method and device

Publications (2)

Publication Number Publication Date
CN114374614A true CN114374614A (en) 2022-04-19
CN114374614B CN114374614B (en) 2023-12-26

Family

ID=81145836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210206981.XA Active CN114374614B (en) 2022-03-03 2022-03-03 Network topology configuration method and device

Country Status (1)

Country Link
CN (1) CN114374614B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277401A (en) * 2022-07-20 2022-11-01 浪潮思科网络科技有限公司 Equipment capacity expansion method, device, equipment and medium for established networking

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263807A (en) * 2010-05-31 2011-11-30 国际商业机器公司 Method for keeping communication path smooth in storage area network and storage area network
CN103036692A (en) * 2011-09-29 2013-04-10 中国移动通信集团江苏有限公司 Method and device for generating network topologies aimed at IT supporting networks
CN105847023A (en) * 2015-01-14 2016-08-10 北京神州泰岳信息安全技术有限公司 Service system network topology relationship obtaining method and device
CN110247784A (en) * 2018-03-07 2019-09-17 北京京东尚科信息技术有限公司 The method and apparatus for determining network topology structure

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263807A (en) * 2010-05-31 2011-11-30 国际商业机器公司 Method for keeping communication path smooth in storage area network and storage area network
CN103036692A (en) * 2011-09-29 2013-04-10 中国移动通信集团江苏有限公司 Method and device for generating network topologies aimed at IT supporting networks
CN105847023A (en) * 2015-01-14 2016-08-10 北京神州泰岳信息安全技术有限公司 Service system network topology relationship obtaining method and device
CN110247784A (en) * 2018-03-07 2019-09-17 北京京东尚科信息技术有限公司 The method and apparatus for determining network topology structure

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277401A (en) * 2022-07-20 2022-11-01 浪潮思科网络科技有限公司 Equipment capacity expansion method, device, equipment and medium for established networking
CN115277401B (en) * 2022-07-20 2024-05-14 浪潮思科网络科技有限公司 Equipment capacity expansion method, device, equipment and medium for established networking

Also Published As

Publication number Publication date
CN114374614B (en) 2023-12-26

Similar Documents

Publication Publication Date Title
CN111031058A (en) Websocket-based distributed server cluster interaction method and device
CN111786885B (en) Distributed full-link gray level routing method and device
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN112689012A (en) Cross-network proxy communication method and device
CN113034281A (en) Service data processing method based on block chain, related system and node
CN114257532B (en) Method and device for detecting state of server
CN115484158A (en) Communication configuration method and device of vehicle-mounted equipment based on eSIM card
CN114374614B (en) Network topology configuration method and device
CN103237050A (en) Method and system for intelligent voice interaction
CN112396511A (en) Distributed wind control variable data processing method, device and system
CN110300222B (en) Short message display method, system, terminal equipment and computer readable storage medium
CN113518314B (en) Quick connection method for low-power-consumption Bluetooth and low-power-consumption Bluetooth communication system
CN115562898A (en) Distributed payment system exception handling method and device
CN113791984B (en) Automatic interface testing method and device
CN115495519A (en) Report data processing method and device
CN112380411B (en) Sensitive word processing method, device, electronic equipment, system and storage medium
CN112463410B (en) Distributed message architecture management method, platform and electronic equipment
CN114697339A (en) Load balancing method and device under centralized architecture
CN113645151A (en) DUP equipment message management method and device
CN113987289A (en) Comprehensive pipe rack management method and device based on knowledge graph
CN112102058A (en) Management system parameter configuration method and device
CN111818144B (en) Message transmission method, device and system under remote service calling framework
CN113342501B (en) System fault processing method and device
CN114124678A (en) Knowledge graph display method and device
CN102891888A (en) Data access method, related apparatus and system

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