CN113114511A - Method and device for generating port description information of network equipment - Google Patents

Method and device for generating port description information of network equipment Download PDF

Info

Publication number
CN113114511A
CN113114511A CN202110436242.5A CN202110436242A CN113114511A CN 113114511 A CN113114511 A CN 113114511A CN 202110436242 A CN202110436242 A CN 202110436242A CN 113114511 A CN113114511 A CN 113114511A
Authority
CN
China
Prior art keywords
information
target
port
network equipment
generating
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
CN202110436242.5A
Other languages
Chinese (zh)
Other versions
CN113114511B (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.)
University of Science and Technology of China USTC
Original Assignee
University of Science and Technology of China USTC
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 University of Science and Technology of China USTC filed Critical University of Science and Technology of China USTC
Priority to CN202110436242.5A priority Critical patent/CN113114511B/en
Publication of CN113114511A publication Critical patent/CN113114511A/en
Application granted granted Critical
Publication of CN113114511B publication Critical patent/CN113114511B/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
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • 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
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/02Constructional details
    • H04Q1/028Subscriber network interface devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method and a device for generating port description information of network equipment, wherein the method comprises the steps of acquiring the port information of target network equipment in a target network; based on the port information, the description information matched with the port information is called in the target information table, and the port description information of the target network equipment is generated according to the description information. The target information table is a relation table of the network equipment physical port capable of being dynamically updated and the terminal information connected with the network equipment physical port, so that the invention realizes the automatic addition of the description information to the network equipment port based on the target information table, improves the efficiency of generating the port description information and further improves the network operation and maintenance efficiency.

Description

Method and device for generating port description information of network equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for generating network device description information.
Background
In a computer network, for network devices such as switches, firewalls, routers and the like serving IP (Internet Protocol) terminals (e.g., notebook computers, servers, printers, etc.), hardware of the network devices usually has many physical ports, and for example, an interactive machine is usually connected to at least one IP terminal from a box device with 8/16/32/48 ports to dozens to hundreds of ports in a frame plug-in card type, and a network administrator needs to know terminal information connected to each port so as to perform information maintenance better in network maintenance.
At present, description information is manually added to ports of network equipment, so that a network administrator can know the role of the corresponding ports. Therefore, when port description information is generated by adding to the network device manually, after the port of the network device is replaced by the server, a network manager is required to modify the description information of the corresponding port immediately, the access position of the network terminal is changed more frequently, and particularly in a campus network, the IP acquired by the terminal may change frequently, for example, a certain notebook computer may have different IP acquired in the network each time, and the manual generation of the description information of the corresponding port of the network device results in large workload, low work efficiency, and low network operation and maintenance efficiency.
Disclosure of Invention
In view of the above problems, the present invention provides a method and an apparatus for generating port description information of a network device, so as to achieve the purpose of improving network operation and maintenance efficiency.
In order to achieve the purpose, the invention provides the following technical scheme:
a method for generating port description information of network equipment comprises the following steps:
acquiring port information of target network equipment in a target network;
based on the port information, calling description information matched with the port information from a target information table, wherein the target information table is a relation table of a network equipment physical port capable of being dynamically updated and terminal information connected with the network equipment;
and generating port description information of the target network equipment according to the description information.
Optionally, the method further comprises:
generating a target information table according to the physical port of the network equipment and the terminal information connected with the network equipment, wherein the target information table comprises the following steps:
periodically acquiring an information table of network equipment in a network in a preset time period;
analyzing the information table to obtain physical ports of the network equipment and terminal information connected with each port;
and generating a target information table based on the corresponding relation between the physical port of the network equipment and the terminal information connected with each port.
Optionally, the generating the target information table further includes:
acquiring associated record information of a target system, wherein the target system comprises a network operation and maintenance management system and/or a cloud management platform;
and generating the target information table based on the associated record information, wherein the associated record information comprises terminal information connected with a port of the network equipment.
Optionally, the generating the target information table includes:
if the port of the network equipment is failed, the port failure information is updated to the target information table,
optionally, the retrieving, in the target information table, the description information matched with the port information includes:
determining a target field of the port description;
and calling the description information matched with the target field in a target information table according to the target field.
Optionally, the generating port description information of the target network device according to the description information includes:
determining a target field of the port description;
extracting target description information matched with the target field segment from the description information;
generating port description information of the target network device based on the target description information.
An apparatus for generating port description information of a network device, comprising:
an obtaining unit, configured to obtain port information of a target network device in a target network;
the calling unit is used for calling description information matched with the port information in a target information table based on the port information, and the target information table is a relation table of a physical port of the network equipment and terminal information connected with the network equipment, wherein the physical port of the network equipment can be dynamically updated;
and the generating unit is used for generating the port description information of the target network equipment according to the description information.
Optionally, the apparatus further comprises:
the information table generating unit is used for generating a target information table according to the physical port of the network equipment and the terminal information connected with the network equipment; the information table generating unit includes:
the acquisition subunit is used for periodically acquiring and obtaining an information table of the network equipment in the network in a preset time period;
the analysis subunit is used for analyzing the information table to obtain physical ports of the network equipment and terminal information connected with each port;
and the information table generating subunit is used for generating a target information table based on the corresponding relation between the physical port of the network equipment and the terminal information connected with each port.
Optionally, the information table generating unit is further configured to:
acquiring associated record information of a target system, wherein the target system comprises a network operation and maintenance management system and/or a cloud management platform; and generating the target information table based on the associated record information, wherein the associated record information comprises terminal information connected with a port of the network equipment.
Or;
if the port of the network equipment is failed, the port failure information is updated to the target information table,
optionally, the invoking unit is specifically configured to:
determining a target field of the port description;
according to the target field, calling description information matched with the target field from a target information table;
and/or;
the generating unit is specifically configured to:
determining a target field of the port description;
extracting target description information matched with the target field segment from the description information;
generating port description information of the target network device based on the target description information.
Compared with the prior art, the invention provides a method and a device for generating the port description information of the network equipment, wherein the method comprises the steps of acquiring the port information of the target network equipment in a target network; based on the port information, the description information matched with the port information is called in the target information table, and the port description information of the target network equipment is generated according to the description information. The target information table is a relation table of the network equipment physical port capable of being dynamically updated and the terminal information connected with the network equipment physical port, so that the invention realizes the automatic addition of the description information to the network equipment port based on the target information table, improves the efficiency of generating the port description information and further improves the network operation and maintenance efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for generating port description information of a network device according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a method for creating a target information table according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating information querying according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for generating port description information of a network device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second," and the like in the description and claims of the present invention and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not set forth for a listed step or element but may include steps or elements not listed.
The embodiment of the invention provides a method for generating port description information of network equipment, wherein the network equipment refers to equipment serving IP terminals, such as a switch, firewall equipment, a router and the like. In the embodiment of the present invention, a port of a network device refers to a physical port (also referred to as a physical interface) of the network device, and the port of the network device is used for plugging other devices, taking the network device as a switch as an example, and the switch can plug a notebook computer, a printer, and the like through a port on the back of a chassis thereof. Since different terminal devices need to be connected, the type, form, and number of ports of the network device are not limited in the embodiment of the present invention.
Referring to fig. 1, it shows a method for generating port description information of a network device according to an embodiment of the present invention, where the method may include the following steps:
s101, port information of target network equipment in a target network is obtained.
The target network refers to a network that needs to be monitored and analyzed, such as a network that a certain network administrator needs to perform operation and maintenance, and may specifically be a certain local area network, or a specific wireless network, and so on. Since there may be a plurality of network devices in the network, the network device that needs to be analyzed is determined as the target network device. The port information of the target network device refers to information of a port of the target network device that needs to access the terminal device, for example, the port information may represent all ports of the target network device, or may represent part of ports of the target network device, and specifically, the port information may be represented by generating identification information of each port, where the identification information of each port is different, such as a port numbered 001, a port numbered 002, and a port numbered ….
And S102, based on the port information, calling description information matched with the port information from the target information table.
The target information table is a relationship table of a network device physical port capable of being dynamically updated and terminal information connected with the network device, that is, the target information table stores a corresponding relationship between the port and the terminal information, and information in the target information table is not fixed, and related information in the target information table is updated according to connection between the port and the terminal device and updating of the information of the terminal device.
After the port information is obtained, the corresponding information in the target information table is called, so that the information is automatically written without manual writing.
And S103, generating port description information of the target network equipment according to the description information.
All information of the terminal connected with the port is recorded in the target information table, the information of the terminal in the designated field can be acquired, the information of the terminal in all fields can also be acquired, if the information of the terminal in the designated field is acquired, the information of the terminal in the designated field can be merged with the existing terminal information, namely, the existing terminal information is supplemented in an incremental mode, so that all information of the terminal is acquired, and the port description information of the port is acquired.
The invention provides a method for generating port description information of network equipment, which comprises the steps of acquiring the port information of target network equipment in a target network; based on the port information, the description information matched with the port information is called in the target information table, and the port description information of the target network equipment is generated according to the description information. The target information table is a relation table of the network equipment physical port capable of being dynamically updated and the terminal information connected with the network equipment physical port, so that the invention realizes the automatic addition of the description information to the network equipment port based on the target information table, improves the efficiency of generating the port description information and further improves the network operation and maintenance efficiency.
A detailed description of possible implementations of relevant steps in embodiments of the present invention follows.
In the embodiment of the invention, the description information of each physical port of the network equipment can be dynamically generated or updated by establishing the target information table in advance. The target information table is a dynamic relationship table of the physical port of the network device and the terminal information connected with the physical port. Specifically, the process of generating the target information table may include the following steps:
periodically acquiring an information table of network equipment in a network within a preset time period;
analyzing the information table to obtain physical ports of the network equipment and terminal information connected with each port;
and generating a target information table based on the corresponding relation between the physical port of the network equipment and the terminal information connected with each port.
In this embodiment, the address location algorithm is implemented, that is, the relevant representation of the network-wide device is periodically collected by a timer, and is calculated by a specific algorithm, and finally an entry such as a physical device, a device interface, an associated host, a host owner, a contact phone, a home service line, and the like is formed. The information of the associated host, the host owner, the contact phone and the home service line belongs to the port description information.
For example, the port description information may include the following fields:
"log _ time" [ the generation time of the piece of access information ]: 2020-06-1205: 30:05 ";
"node _ hostname" [ device name ]: "b 3.iaas. rt. lf. h 01";
"node _ IP" [ network device IP ]: "10.254.13.143";
"node _ idc" [ geographical location information of the device ]: "fertilizer mixture B3";
"node _ interface" [ interface information ]: "10 GE 1/0/16";
"node _ location" [ network device specific location information ]: "No. 2 _ E16_ 19U";
"server _ IP _ address" [ IP address ]: "172.16.60.120";
"server _ Mac _ address" [ Mac address ]: "F4-E9-D4-B9-7E-00";
"server _ admin" [ domain account ]: "fcli";
"server _ platform" [ server home department ]: "infrastructure portion" - "cloud";
"server _ location" [ server location ]: "No. 2 _ G13_ 20U";
"server _ manager" [ contact ]: "plum";
"telehone" [ contact details ]: "18000000***".
The examples show that: under the 10GE1/0/16 interface of a network device 10.254.13.143 (device name B3.iaas. rt. lf. h01) located in the No. 2 machine room E16 cabinet 19U of the fertilizer pooling B3 data center, there are 1 server with IP of 172.16.60.120 and MAC address of F4-E9-D4-B9-7E-00, the server belongs to the department as infrastructure department cloud, the name of the home service contact is li (domain account fcli), the contact phone is 18000000, and the service appliance is the No. 2 machine room G13 cabinet 20U.
In another embodiment of the present application, generating the target information table further includes:
acquiring associated record information of a target system, wherein the target system comprises a network operation and maintenance management system and/or a cloud management platform;
and generating the target information table based on the associated record information, wherein the associated record information comprises terminal information connected with a port of the network equipment.
In the embodiment, the automatic association is applied through an ITSM (IT service management), when an enterprise has an ITSM system or a cloud management platform, a user automatically carries out service online on the corresponding system, when a host applies for the application, the corresponding controller completes service release or host online, after the online is completed, the host position after the online and the corresponding switch port are reported to the ITSM system or the cloud management platform, at the moment, a corresponding association record is formed on the ITSM system or the cloud management platform, and the record table carries out automatic and dynamic deletion along with the actions of host offline and service release cancellation by the user, so that the accuracy of the record is maintained. That is, the association record information may be capable of clearly interfacing device information of the terminal.
In the embodiment of the invention, the information in the target information table can be perfected and updated in a manual entry mode, but the mode is used for supplementing the information which cannot be generated in the target information table in the mode, and the mode that the corresponding association table is manually entered by personnel can realize that the fault information can be automatically synchronized to the corresponding service line robot attribution person after a certain port fault occurs in a certain type of network. If the port of the network equipment fails, the port failure information is updated to the target information table.
In the embodiment of the present invention, mainly by using an address location algorithm, an ITSM application automatic association, and a manual entry as supplements, a target information table, that is, a relationship table between a dynamic physical port of a network device and terminal information connected thereto, is generated.
In a possible implementation manner of the present invention, the retrieving, in the target information table, the description information matched with the port information includes: determining a target field of the port description; and calling the description information matched with the target field in a target information table according to the target field.
In this implementation, since the target information table includes a plurality of fields related to the terminal devices connected to the interface, it is possible to determine a part of the target field as the final description information that needs to be added or updated according to the actual requirement, and then perform a search in the target information table based on the target field as the search field to obtain the description information matching the target field.
In another possible implementation manner, the generating port description information of the target network device according to the description information includes: determining a target field of the port description; extracting target description information matched with the target field segment from the description information; generating port description information of the target network device based on the target description information.
In this embodiment, description information of all fields of the terminal interface is obtained, then description information corresponding to a target field is extracted from the description information, and then final port description information is generated based on the description information. For example, all the description information of the interface 001 is acquired, and the relevant description information of the contact needs to be determined, information such as the name of the contact, the contact address of the contact, and the like needs to be extracted from all the description information, and the information is combined into the description information of the contact of the terminal of the interface.
Referring to fig. 3, a flowchart describing information query according to an embodiment of the present invention is shown. The description information of the terminal connected with the port can be obtained through a multitask scheduler, namely the description information of a plurality of ports can be obtained at the same time, the description is added to the interfaces of all equipment in the whole network in an incremental mode, namely the description information which is not available in the existing interfaces is supplemented, and the description information is obtained from a terminal information table connected with the physical port of the dynamic network equipment.
After the target information table is generated, the automatic task (timing or automatic/manual triggering) is used for extracting the equipment information and calling the equipment login interface, and the interface description information is written into the interface of each equipment. For example, the network administrator is most concerned with the terminal information and the owner of the terminal information connected to the interface, so that the terminal information and the owner of the terminal information are the most important key information extracted from the target information table, and the information is also most concerned by the network administrator, and actually, the fields written in the interface description can be selected according to the requirement, and the following takes the example of writing the terminal information and the owner of the terminal information as follows:
interface Ten-GigabitEthernet2/0/0;
port link-mode route;
description To_fcli_172.16.60.120。
the above example shows: linked under this interface is a terminal attributed to fcli, whose terminal IP is 172.16.60.120.
Since the written content is from the target information table, the update of the table can be triggered by the administrator manually to perform the update task; the method for writing the description is automatically carried out without manual intervention, so that a controllable, accurate and dynamically updated description relation is added under the ports of the whole network equipment, a network administrator can intuitively carry out network maintenance related operations according to the description under the interfaces, and an accurate information reference is provided for the network administrator to carry out network maintenance.
Referring to fig. 4, in an embodiment of the present invention, a device for generating port description information of a network device is further provided, including:
an obtaining unit 10, configured to obtain port information of a target network device in a target network;
the retrieving unit 20 is configured to retrieve, based on the port information, description information matched with the port information from a target information table, where the target information table is a relationship table between a physical port of a network device capable of being dynamically updated and terminal information connected to the network device;
a generating unit 30, configured to generate port description information of the target network device according to the description information.
Correspondingly, the device further comprises:
the information table generating unit is used for generating a target information table according to the physical port of the network equipment and the terminal information connected with the network equipment; the information table generating unit includes:
the acquisition subunit is used for periodically acquiring and obtaining an information table of the network equipment in the network in a preset time period;
the analysis subunit is used for analyzing the information table to obtain physical ports of the network equipment and terminal information connected with each port;
and the information table generating subunit is used for generating a target information table based on the corresponding relation between the physical port of the network equipment and the terminal information connected with each port.
Optionally, the information table generating unit is further configured to:
acquiring associated record information of a target system, wherein the target system comprises a network operation and maintenance management system and/or a cloud management platform; and generating the target information table based on the associated record information, wherein the associated record information comprises terminal information connected with a port of the network equipment.
Or;
if the port of the network equipment fails, updating the port failure information to the target information table,
on the basis of the foregoing embodiment, the invoking unit is specifically configured to:
determining a target field of the port description;
according to the target field, calling description information matched with the target field from a target information table;
and/or;
the generating unit is specifically configured to:
determining a target field of the port description;
extracting target description information matched with the target field segment from the description information;
generating port description information of the target network device based on the target description information.
The invention provides a device for generating port description information of network equipment, which is used for acquiring the port information of target network equipment in a target network; based on the port information, the description information matched with the port information is called in the target information table, and the port description information of the target network equipment is generated according to the description information. The target information table is a relation table of the network equipment physical port capable of being dynamically updated and the terminal information connected with the network equipment physical port, so that the invention realizes the automatic addition of the description information to the network equipment port based on the target information table, improves the efficiency of generating the port description information and further improves the network operation and maintenance efficiency.
Based on the foregoing embodiments, embodiments of the present application provide a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the method for generating network device port description information as described in any one of the above.
The embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and is characterized in that the processor executes the program to implement the steps of the method for generating the port description information of the network device.
The Processor or the CPU may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understood that the electronic device implementing the above-mentioned processor function may be other electronic devices, and the embodiments of the present application are not particularly limited.
The computer storage medium/Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); but may also be various terminals such as mobile phones, computers, tablet devices, personal digital assistants, etc., that include one or any combination of the above-mentioned memories.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing module, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit. Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media capable of storing program codes, such as a removable Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for generating port description information of network equipment is characterized by comprising the following steps:
acquiring port information of target network equipment in a target network;
based on the port information, calling description information matched with the port information from a target information table, wherein the target information table is a relation table of a network equipment physical port capable of being dynamically updated and terminal information connected with the network equipment;
and generating port description information of the target network equipment according to the description information.
2. The method of claim 1, further comprising:
generating a target information table according to the physical port of the network equipment and the terminal information connected with the network equipment, wherein the target information table comprises the following steps:
periodically acquiring an information table of network equipment in a network in a preset time period;
analyzing the information table to obtain physical ports of the network equipment and terminal information connected with each port;
and generating a target information table based on the corresponding relation between the physical port of the network equipment and the terminal information connected with each port.
3. The method of claim 2, wherein the generating a target information table further comprises:
acquiring associated record information of a target system, wherein the target system comprises a network operation and maintenance management system and/or a cloud management platform;
and generating the target information table based on the associated record information, wherein the associated record information comprises terminal information connected with a port of the network equipment.
4. The method of claim 2, wherein the generating a target information table comprises:
and if the port of the network equipment fails, updating the port failure information to the target information table.
5. The method of claim 1, wherein retrieving description information in a target information table that matches the port information comprises:
determining a target field of the port description;
and calling the description information matched with the target field in a target information table according to the target field.
6. The method of claim 1, wherein the generating port description information of the target network device according to the description information comprises:
determining a target field of the port description;
extracting target description information matched with the target field segment from the description information;
generating port description information of the target network device based on the target description information.
7. An apparatus for generating port description information of a network device, comprising:
an obtaining unit, configured to obtain port information of a target network device in a target network;
the calling unit is used for calling description information matched with the port information in a target information table based on the port information, and the target information table is a relation table of a physical port of the network equipment and terminal information connected with the network equipment, wherein the physical port of the network equipment can be dynamically updated;
and the generating unit is used for generating the port description information of the target network equipment according to the description information.
8. The apparatus of claim 7, further comprising:
the information table generating unit is used for generating a target information table according to the physical port of the network equipment and the terminal information connected with the network equipment; the information table generating unit includes:
the acquisition subunit is used for periodically acquiring and obtaining an information table of the network equipment in the network in a preset time period;
the analysis subunit is used for analyzing the information table to obtain physical ports of the network equipment and terminal information connected with each port;
and the information table generating subunit is used for generating a target information table based on the corresponding relation between the physical port of the network equipment and the terminal information connected with each port.
9. The apparatus of claim 8, wherein the information table generating unit is further configured to:
acquiring associated record information of a target system, wherein the target system comprises a network operation and maintenance management system and/or a cloud management platform; and generating the target information table based on the associated record information, wherein the associated record information comprises terminal information connected with a port of the network equipment.
Or;
and if the port of the network equipment fails, updating the port failure information to the target information table.
10. The apparatus according to claim 7, wherein the retrieving unit is specifically configured to:
determining a target field of the port description;
according to the target field, calling description information matched with the target field from a target information table;
and/or;
the generating unit is specifically configured to:
determining a target field of the port description;
extracting target description information matched with the target field segment from the description information;
generating port description information of the target network device based on the target description information.
CN202110436242.5A 2021-04-22 2021-04-22 Method and device for generating port description information of network equipment Active CN113114511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110436242.5A CN113114511B (en) 2021-04-22 2021-04-22 Method and device for generating port description information of network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110436242.5A CN113114511B (en) 2021-04-22 2021-04-22 Method and device for generating port description information of network equipment

Publications (2)

Publication Number Publication Date
CN113114511A true CN113114511A (en) 2021-07-13
CN113114511B CN113114511B (en) 2022-07-15

Family

ID=76719396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110436242.5A Active CN113114511B (en) 2021-04-22 2021-04-22 Method and device for generating port description information of network equipment

Country Status (1)

Country Link
CN (1) CN113114511B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794588A (en) * 2021-08-30 2021-12-14 携程旅游信息技术(上海)有限公司 Method, system, electronic device and medium for synchronizing port information of network device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954363A (en) * 2015-04-30 2015-09-30 北京嘀嘀无限科技发展有限公司 Method and device for generating interface document
CN107743155A (en) * 2017-11-10 2018-02-27 北京知道创宇信息技术有限公司 IP mask methods, device, electronic equipment and storage medium
CN110661670A (en) * 2019-10-21 2020-01-07 中国民航信息网络股份有限公司 Network equipment configuration management method and device
CN110908890A (en) * 2018-09-18 2020-03-24 亿阳信通股份有限公司 Automatic test method and device for interface
US10812988B1 (en) * 2019-06-18 2020-10-20 Verizon Patent And Licensing Inc. Method and device for mapping ports of a network device
CN112491591A (en) * 2020-11-10 2021-03-12 杭州萤石软件有限公司 Universal plug and play UPnP port mapping method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954363A (en) * 2015-04-30 2015-09-30 北京嘀嘀无限科技发展有限公司 Method and device for generating interface document
CN107743155A (en) * 2017-11-10 2018-02-27 北京知道创宇信息技术有限公司 IP mask methods, device, electronic equipment and storage medium
CN110908890A (en) * 2018-09-18 2020-03-24 亿阳信通股份有限公司 Automatic test method and device for interface
US10812988B1 (en) * 2019-06-18 2020-10-20 Verizon Patent And Licensing Inc. Method and device for mapping ports of a network device
CN110661670A (en) * 2019-10-21 2020-01-07 中国民航信息网络股份有限公司 Network equipment configuration management method and device
CN112491591A (en) * 2020-11-10 2021-03-12 杭州萤石软件有限公司 Universal plug and play UPnP port mapping method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794588A (en) * 2021-08-30 2021-12-14 携程旅游信息技术(上海)有限公司 Method, system, electronic device and medium for synchronizing port information of network device

Also Published As

Publication number Publication date
CN113114511B (en) 2022-07-15

Similar Documents

Publication Publication Date Title
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
CN111343016B (en) Cloud server cluster management method and device
CN111327647A (en) Method and device for providing service to outside by container and electronic equipment
CN111885216B (en) DNS query method, device, equipment and storage medium
CN110619226A (en) Platform-based data processing method, system, equipment and storage medium
CN110572365A (en) multi-protocol server management method, system, terminal device and storage medium
CN112230847B (en) Method, system, terminal and storage medium for monitoring K8s storage volume
CN112636985A (en) Network asset detection device based on automatic discovery algorithm
CN111353136B (en) Method and device for processing operation request
CN113114511B (en) Method and device for generating port description information of network equipment
CN107086937B (en) Monitoring method and device
CN112040016A (en) Server management method and server management device
CN108540582A (en) A kind of processing method of terminal iidentification, server and terminal
CN113114510B (en) Network fault information synchronization method and device
CN112087327B (en) Information state acquisition method and apparatus, storage medium, and electronic apparatus
CN111767481B (en) Access processing method, device, equipment and storage medium
JP6501924B2 (en) Method and server for canceling alert
CN112714010A (en) Network topology management method, device, expansion unit and storage medium
CN109361554A (en) The method and apparatus of the customized management page and default configuration
CN108282374B (en) Method, system and readable storage medium for configuring NCSI network card
CN107294989B (en) Method and device for preventing ARP gateway spoofing
JP2015200936A (en) integrated configuration management system
CN113472892A (en) Multi-terminal synchronization method and system for unread and read states of message
CN109756543B (en) Decoupling system and method for program association
CN106993036B (en) Running environment information processing method and switch

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