CN113132164B - Method, device and equipment for generating network equipment wiring table - Google Patents

Method, device and equipment for generating network equipment wiring table Download PDF

Info

Publication number
CN113132164B
CN113132164B CN202110430354.XA CN202110430354A CN113132164B CN 113132164 B CN113132164 B CN 113132164B CN 202110430354 A CN202110430354 A CN 202110430354A CN 113132164 B CN113132164 B CN 113132164B
Authority
CN
China
Prior art keywords
network
target
network device
wiring
network model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110430354.XA
Other languages
Chinese (zh)
Other versions
CN113132164A (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202110430354.XA priority Critical patent/CN113132164B/en
Publication of CN113132164A publication Critical patent/CN113132164A/en
Application granted granted Critical
Publication of CN113132164B publication Critical patent/CN113132164B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network

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 discloses a method, a device and equipment for generating a network equipment wiring table, wherein the method comprises the steps of firstly, acquiring the name of network equipment needing to establish the wiring table and the function type of the network equipment corresponding to the network equipment, and establishing the corresponding relation between the name of the network equipment and the function type of the network equipment; then, determining an instruction by using the acquired network model to determine a target network model; and finally, establishing a routing table corresponding to the network equipment by using the corresponding relation and the target network model. Because the target network model is a standard network model, the generated wiring table is relatively standard, personal differences caused by manually writing the wiring table can be avoided, and the subsequent setting and implementation of network equipment by utilizing the wiring table are facilitated. And, through establishing the wiring table automatically, can reduce the cost that the manual work drafts and consume, improve the efficiency of establishing of wiring table.

Description

Method, device and equipment for generating network equipment wiring table
Technical Field
The present application relates to the field of network device management, and in particular, to a method, an apparatus, and a device for generating a network device wiring table.
Background
In the process of establishing a network, each network device forms a hardware structure of the network by being connected with each other. In order to facilitate determining the connection relationship between the network devices, the routing table needs to be determined according to the connection relationship of the network devices. The connection relation between the network devices can be clarified by the staff through the wiring table, so that the network structure can be conveniently established and the problem of network connection can be conveniently checked based on the wiring table.
Currently, wiring schedules for network devices are written manually. Manual writing takes a lot of time and there may be errors in obtaining a wiring schedule. Moreover, the wiring tables made by different workers may be different, and differences exist among the wiring tables, which affects the use of the wiring tables by other workers in the follow-up process. Therefore, how to efficiently establish a standardized routing table is an urgent problem to be solved.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, and a device for generating a network device wiring table, which can automatically generate a standardized wiring table, and improve the generation efficiency and accuracy of the wiring table.
In order to solve the above problem, the technical solution provided by the embodiment of the present application is as follows:
in a first aspect, the present application provides a method for generating a routing table of a network device, where the method includes:
acquiring the name of network equipment and the corresponding function type of the network equipment, and establishing the corresponding relation between the name of the network equipment and the function type of the network equipment;
acquiring a network model determining instruction, and determining a target network model according to the network model determining instruction; the target network model comprises a target composition structure and a preset port planning table corresponding to the function type of each target network device; the target composition structure comprises the target network equipment function type and the connection relation between the target network equipment function types, wherein the target network model comprises the target network equipment function types, and the preset port planning table comprises the corresponding port information of the target network equipment function type;
generating a wiring table of the network equipment based on the target network model and the corresponding relation between the name of the network equipment and the function type of the network equipment; the wiring table of the network device is composed of the name of the network device, the connection relation between the network devices and the port information of the network device.
In one possible implementation, the network model determination instruction is a network model selection instruction; the determining a target network model according to the network model determination instruction includes:
and selecting a target network model from preset network models according to the network model selection instruction.
In a possible implementation manner, the network model determining instruction is a network model new-building instruction; the determining a target network model according to the network model determination instruction includes:
determining a target composition structure according to the network model new building instruction;
acquiring a preset port planning table corresponding to the function type of each target network device;
and forming a target network model by using the target composition structure and a preset port planning table corresponding to each function type of the target network equipment.
In one possible implementation, the method further includes:
acquiring the connection relation between the network devices in the wiring table of the network devices;
if the network equipment corresponding to the target connection relation is the same as the network equipment corresponding to other connection relations, deleting the target connection relation from the wiring table; the target connection relation is each of the connection relations between the network devices in the routing table.
In one possible implementation, the method further includes:
obtaining the wiring information of the network equipment, and checking whether the wiring table has wiring errors or not according to the wiring information of the network equipment; the network device wiring information comprises one or more of standard port information of the network device function type, a network device standard name and network device standard connection relation information.
In one possible implementation, the method further includes:
acquiring a routing table query request, and determining a target routing table according to the routing table query request;
and displaying the target wiring table.
In one possible implementation, the method further includes:
acquiring a wiring table adjustment request, and determining a target wiring table according to the wiring table adjustment request;
and adjusting the target wiring table according to the wiring table adjustment request.
In a second aspect, the present application provides an apparatus for generating a routing table of a network device, where the apparatus includes:
the first acquisition unit is used for acquiring the name of the network equipment and the corresponding network equipment function type and establishing the corresponding relation between the name of the network equipment and the network equipment function type;
the second acquisition unit is used for acquiring a network model determining instruction and determining a target network model according to the network model determining instruction; the target network model comprises a target composition structure and a preset port planning table corresponding to the function type of each target network device; the target composition structure comprises the target network equipment function type and the connection relation between the target network equipment function types, wherein the target network model comprises the target network equipment function types, and the preset port planning table comprises the corresponding port information of the target network equipment function type;
a generating unit, configured to generate a routing table of the network device based on the target network model and a correspondence between the name of the network device and the function type of the network device; the wiring table of the network device is composed of the name of the network device, the connection relation between the network devices and the port information of the network device.
In one possible implementation, the network model determination instruction is a network model selection instruction; the second obtaining unit is specifically configured to select a target network model from preset network models according to the network model selection instruction.
In a possible implementation manner, the network model determining instruction is a network model new-building instruction; the second obtaining unit is specifically configured to determine a target composition structure according to the network model new establishment instruction; acquiring a preset port planning table corresponding to the function type of each target network device; and forming a target network model by using the target composition structure and a preset port planning table corresponding to each function type of the target network equipment.
In one possible implementation, the apparatus further includes:
a third obtaining unit, configured to obtain a connection relationship between the network devices in a wiring table of the network device;
a deleting unit, configured to delete the target connection relationship from the routing table if the network device corresponding to the target connection relationship is the same as the network devices corresponding to the other connection relationships; the target connection relation is each of the connection relations between the network devices in the routing table.
In one possible implementation, the apparatus further includes:
a fourth obtaining unit, configured to obtain network device wiring information, and check whether a wiring error exists in the wiring table according to the network device wiring information; the network device wiring information comprises one or more of standard port information of the network device function type, a network device standard name and network device standard connection relation information.
In one possible implementation, the apparatus further includes:
a fifth obtaining unit, configured to obtain a routing table query request, and determine a target routing table according to the routing table query request;
and the display unit is used for displaying the target wiring table.
In one possible implementation, the apparatus further includes:
a sixth obtaining unit, configured to obtain a routing table adjustment request, and determine a target routing table according to the routing table adjustment request;
and adjusting the target wiring table according to the wiring table adjustment request.
In a third aspect, a device for generating a routing table of a network device includes: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is configured to store one or more programs, the one or more programs comprising instructions, which when executed by the processor, cause the processor to perform the method of any of the embodiments described above.
In a fourth aspect, a computer-readable storage medium has instructions stored therein, which when run on a terminal device, cause the terminal device to perform the method of any of the above embodiments.
Therefore, the embodiment of the application has the following beneficial effects:
according to the method, the device and the equipment for generating the network equipment wiring table, the name of the network equipment needing to establish the wiring table and the function type of the network equipment corresponding to the network equipment are obtained, and the corresponding relation between the name of the network equipment and the function type of the network equipment is established; then, determining an instruction by using the acquired network model to determine a target network model; the target network model is provided with a target composition structure and a preset port planning table corresponding to the function type of each target network device; and finally, establishing a routing table corresponding to the network equipment by using the corresponding relation and the target network model. The target composition structure in the target network model comprises the function types of the target network equipment and the connection relation between the function types of the target network equipment. Based on the target network model and the network device function type corresponding to the network device, the structure position of each network device in the target network model and the connection relationship between each network device can be determined. And according to a preset port planning table corresponding to the function type of each target network device, determining the port information of each network device. Finally, a routing table including names of the network devices, connection relationships between the network devices, and port information of the network devices may be obtained. Because the target network model is a standard network model, the generated wiring table is relatively standard, personal differences caused by manually writing the wiring table can be avoided, and the subsequent setting and adjustment of network equipment by using the wiring table are facilitated. And, through establishing the wiring table automatically, can reduce the cost that the manual work drafts and consume, improve the efficiency of establishing of wiring table.
Drawings
Fig. 1 is a flowchart of a method for generating a routing table of a network device according to an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a target structure provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a device for generating a network device wiring table according to an embodiment of the present application.
Detailed Description
In order to facilitate understanding and explaining the technical solutions provided by the embodiments of the present application, the following description will first describe the background art of the present application.
After studying a traditional method for generating a wiring table, the inventor finds that the current network device wiring table is made manually, and a worker designs a form item and fills in the form content. Manually written wiring lists are prone to problems when large numbers of network devices are involved in interconnecting. Moreover, the wiring tables made by different workers may have differences, which is inconvenient for other workers to use the wiring tables for subsequent work.
Based on this, according to the method, the apparatus, and the device for generating a network device wiring table provided in the embodiment of the present application, a corresponding relationship between a name of a network device and a function type of the network device is established by acquiring the name of the network device that needs to establish the wiring table and the function type of the network device corresponding to the network device; then, determining an instruction by using the acquired network model to determine a target network model; the target network model is provided with a target composition structure and a preset port planning table corresponding to the function type of each target network device; and finally, establishing a routing table corresponding to the network equipment by using the corresponding relation and the target network model. The target composition structure in the target network model comprises the function types of the target network equipment and the connection relation between the function types of the target network equipment. Based on the target network model and the network device function type corresponding to the network device, the structure position of each network device in the target network model and the connection relationship between each network device can be determined. And according to a preset port planning table corresponding to the function type of each target network device, determining the port information of each network device. Finally, a routing table including names of the network devices, connection relationships between the network devices, and port information of the network devices may be obtained. The wiring table generated based on the target network model is relatively standard, personal writing difference caused by manual wiring table writing can be avoided, and the subsequent wiring table is conveniently utilized to set and adjust network equipment. And, through establishing the wiring table automatically, can reduce the cost that the manual work drafts and consume, improve the efficiency of establishing of wiring table.
In order to facilitate understanding of the technical solutions provided in the embodiments of the present application, a method for generating a network device wiring table provided in the embodiments of the present application is described below with reference to the accompanying drawings.
Referring to fig. 1, the figure is a flowchart of a method for generating a network device wiring table according to an embodiment of the present application, where the method includes steps S101 to S103.
S101: the method comprises the steps of obtaining the name of the network equipment and the corresponding function type of the network equipment, and establishing the corresponding relation between the name of the network equipment and the function type of the network equipment.
A network device is a related device for establishing a network connection. It is understood that, in order to implement the establishment of the routing table, there may be a plurality of network devices in the embodiment of the present application. The network device has a name for determining a specific network device, and a corresponding network device function type. The network device function type specifically refers to a type to which the network device belongs in a network connection structure. It should be noted that, in the embodiments of the present application, the dividing manner of the network device function types is not limited, and the network device function types may be determined according to a specific network device connection manner and the functions implemented by each network device. For example, a network structure with a hierarchical architecture and according to the functions of network devices, the network may be divided into a core layer, a convergence layer, and an access layer. Correspondingly, the network device function types may be core, aggregation, and access, respectively. Different network device function types belong to different levels, and different functions are realized in the network.
In a possible implementation manner, the name of the network device and the corresponding function type of the network device can be obtained through the related information of the network device input by a user; in another possible implementation manner, related information of the network device may also be detected, and the name of the network device and the corresponding function type of the network device may be automatically obtained.
According to the name of the network equipment and the corresponding function type of the network equipment, the corresponding relation between the name of the network equipment and the function type of the network equipment can be established, and the subsequent wiring table of the network equipment can be conveniently determined based on a target network model.
S102: acquiring a network model determining instruction, and determining a target network model according to the network model determining instruction; the target network model comprises a target composition structure and a preset port planning table corresponding to the function type of each target network device; the target composition structure comprises the target network device function types included in the target network model and the connection relation between the target network device function types, and the preset port planning table comprises the corresponding port information of the target network device function types.
The network model determination instruction is used for determining the network model on which the wiring table is built at this time. A network model is a pre-established model representing the basic configuration of a network connection structure and associated network devices. The network model comprises a network composition structure and a preset port planning table corresponding to each network equipment function type. The network structure may specifically include the network device function types included in the network model, and the connection relationship between the network device function types. The network device function types refer to types of network devices in the network model, and the connection relationship between the network device function types refers to whether the network device function types are connected or not and the connection bandwidth. It should be noted that, in one network model, the network device function types may be various. And each network device function type may include multiple nodes. Each node may correspond to a particular network device.
Each network equipment function type in the network model has a corresponding preset port planning table, and the preset port planning table is information of a port which is defined in advance and is related to the corresponding network equipment function type. Specifically, the preset port planning table may include port information related to a port, such as a port number of a network device function type, a network device function type of an opposite node, a port rate, and a cable type. In a possible implementation manner, the preset port planning table corresponding to the function type of the network device may specifically be a preset port planning table corresponding to each node of the function type of the network device.
The network model determination instruction may be input by a user, or may be generated by triggering a preset condition. From the obtained network model determination instructions, a target network model for building a routing table can be determined. The target network model comprises a target composition structure and a preset port planning table corresponding to the function type of each target network device. The target composition structure comprises a target network device function type included in the target network model and a connection relation between the target network device function types, and the preset port planning table comprises port information of the corresponding target network device function type
As an example, refer to fig. 2, which is a schematic structural diagram of a target composition structure provided in an embodiment of the present application. The target composition structure comprises three target network equipment function types of 'core', 'convergence' and 'access'. Where the "core" has four nodes, the "aggregation" has two nodes, and the "access" has two nodes. Each core node is respectively connected with each aggregation node, each aggregation node is connected with each access node, the two aggregation nodes are interconnected, and the two access nodes are interconnected. Each target network device function type has a corresponding preset port planning table. Taking a node "aggregation-1" in "aggregation" as an example, the corresponding preset port planning table is shown in table 1:
Figure BDA0003031130180000081
TABLE 1
Taking a node in the access as the access-1 as an example, the corresponding preset port plan table is referred to
Shown in Table 2:
port number Opposite end node Port rate Cable type
10GE1/0/1 Server 1 10G 10G copper cable
10GE1/0/2 Server 2 10G 10G copper cable
10GE1/0/3 Server 3 10G 10G copper cable
10GE1/0/4 Server 4 10G 10G copper cable
10GE1/0/5 Server 5 10G 10G copper cable
10GE1/0/6 Server 6 10G 10G copper cable
10GE1/0/7 Server 7 10G 10G copper cable
10GE1/0/8 Server 8 10G 10G copper cable
10GE1/0/9 Server 9 10G 10G copper cable
10GE1/0/10 Server 10 10G 10G copper cable
10GE1/0/11 Server 11 10G 10G copper cable
10GE1/0/12 Server 12 10G 10G copper cable
10GE1/0/13 Server 13 10G 10G copper cable
10GE1/0/14 Server 14 10G 10G copper cable
10GE1/0/15 Server 15 10G 10G copper cable
10GE1/0/16 Server 16 10G 10G copper cable
40GE1/0/1 Convergence-1 40G 40GE multimode LC
40GE1/0/2 Convergence-2 40G 40GE multimode LC
40GE1/0/3 Interconnection 40G 40G high-speed cable
40GE1/0/4 Interconnection 40G 40G high-speed cable
TABLE 2
In one possible implementation, the target network model may be selected from pre-established network models; in another possible implementation, a target network model may be established. Correspondingly, the embodiments of the present application provide two specific implementations for determining the target network model according to the network model determination instruction, please refer to the following.
S103: generating a wiring table of the network equipment based on the target network model and the corresponding relation between the name of the network equipment and the function type of the network equipment; the wiring table of the network device is composed of the name of the network device, the connection relation between the network devices and the port information of the network device.
Based on the determined target network model and the corresponding relationship between the names of the network devices and the function types of the network devices, a routing table of the network devices, which is composed of the names of the network devices, the connection relationships between the network devices and the port information of the network devices, can be generated.
Specifically, based on the target network device function type included in the target composition structure in the target network model and the correspondence between the network device name and the network device function type, the target network device function type corresponding to each network device in the target network model can be determined. The connection relationship between the network devices may then be determined based on the connection relationship between the target network device function types included in the target composition structure. And based on the preset port planning table corresponding to the function type of each target network device in the target network model, the port information corresponding to each network device can be determined.
It should be noted that, when the function type of the target network device includes multiple nodes, the network device may be determined as a node in the function type of the target network device according to a preset configuration order.
In a possible implementation manner, the information in the target network model is preset information, and when the routing table is established by using the target network model, the corresponding information in the target network model may be adjusted according to a specific network connection condition.
Based on the related contents of S101 to S103, by determining the network device function type corresponding to the name of the network device, the network composition structure corresponding to the network device in the target network model and the corresponding preset port planning table can be determined, so as to determine the connection relationship and the port information of the network device. Therefore, the routing table corresponding to the network equipment can be automatically generated, and the efficiency of generating the routing table is improved. And moreover, the wiring table generated based on the target network model is relatively standard, so that the difference of the wiring table caused by manual production can be avoided, and the construction and adjustment of the connection relation of the network equipment can be conveniently carried out through the wiring table.
In a possible implementation manner, the network model may be established in advance, and when the routing table is established, the target network model is directly selected from the pre-established network models. Correspondingly, the network model determining instruction is a network model selecting instruction. The determining a target network model according to the network model determination instruction includes:
and selecting a target network model from preset network models according to the network model selection instruction.
Model information related to the target network model may be included in the network model selection instruction, and the target network model may be determined using the model information. For example, if each network model has a corresponding identifier, the network model selection instruction may include the identifier corresponding to the target network model. As another example, the network model selection instructions may include specific types of target constituent structures to determine the target network model.
According to the network model selection instruction, a target network model can be determined from preset network models. In a possible implementation manner, the network model may be pre-stored in the model database, and the target network model may be selected from the model database according to the network model selection instruction.
Based on the above, the speed of building the routing table of the network device is improved by selecting the target network model from the pre-built models. And a more standard wiring table that conforms to the network connection rules can be obtained based on the more standard target network model.
In another possible implementation, if the preset network model does not have the required target network model, or does not have the preset network model, the target network model may be established. Correspondingly, the network model determining instruction is a network model new-building instruction. Determining a target network model according to the network model determination instruction, comprising:
determining a target composition structure according to the network model new building instruction;
acquiring a preset port planning table corresponding to each function type of the target network equipment;
and forming a target network model by using the target composition structure and a preset port planning table corresponding to each function type of the target network equipment.
The network model new establishing instruction is an instruction for establishing a network model. The network model new command has relevant information for establishing the network model. Specifically, for example, the network model new command may specifically include composition structure information and network device function type information. The function type of the target network equipment can be determined according to the function type information of the network equipment, and the connection relation between the target network equipment can be determined according to the composition structure information, so that the target composition structure is determined.
And acquiring a preset port planning table corresponding to each target network equipment function type according to the determined target network equipment function type in the target composition structure. It should be noted that, in a possible implementation manner, a corresponding preset port planning table may be established in advance for different network device function types. If the determined function type of the target network device belongs to the function type of the network device in which the preset port planning table is established in advance, the preset port planning table corresponding to the function type of the target network device can be selected from the preset port planning table established in advance. In another possible implementation manner, if the function type of the target network device is a newly-built network device, or does not have a pre-established preset port planning table, the network model new-building instruction may further include port information corresponding to the function type of the target network device. And acquiring a preset port planning table corresponding to the function type of the target network equipment according to the port information included in the network model new-establishing instruction.
And forming a target network model based on the determined target composition structure and the preset port planning table corresponding to each target network equipment function type.
In the embodiment of the application, the corresponding target network model can be established by the new instruction of the network model, the target network model can be flexibly established according to the wiring requirement, the flexibility of automatically generating the wiring table is improved, and the more accurate wiring table is obtained.
It will be appreciated that the routing tables may have information indicating the same connectivity relationships based on different network devices. For example, network device a is connected to network device B, and correspondingly, the routing table may have a connection relationship between network device a and network device B for network device a; for network device B, it may have a connection relationship with network device a. Repeated connections may result in redundant wiring tables.
In view of the foregoing problems, in a possible implementation manner, an embodiment of the present application provides a method for generating a network device wiring table, where in addition to the foregoing steps, the method further includes:
acquiring the connection relation between the network devices in the wiring table of the network devices;
if the network equipment corresponding to the target connection relation is the same as the network equipment corresponding to other connection relations, deleting the target connection relation from the wiring table; the target connection relation is each of the connection relations between the network devices in the routing table.
After generating the wiring table of the network device, the connection relationship in the wiring table may be deduplicated. And acquiring the connection relation among the network devices in the wiring table of the network devices, and taking each connection relation as a target connection relation. And judging whether the network equipment corresponding to the target connection relation is the same as the network equipment corresponding to other connection relations, wherein the other connection relations are each connection relation except the target connection relation in the connection relation of the wiring table. If the network devices have the same corresponding network devices, the connection relationship established between the same network devices is repeated, and the target connection relationship is deleted from the routing table. In order to ensure the correctness of deleting the repeated connection relationship, after the deletion operation is performed on the target connection relationship, the connection relationship between the network devices in the wiring table is correspondingly updated, and the connection relationship between the network devices in the wiring table after the update is used to determine other connection relationships.
As an example, the network device wiring table has a connection relationship between network device a and network device B, a connection relationship between network device B and network device a, a connection relationship between network device B and network device C, and a connection relationship between network device C and network device B, for example. And taking the connection relation between the network equipment A and the network equipment B as a target connection relation, wherein the corresponding network equipment is the network equipment A and the network equipment B. The network devices corresponding to the other connection relations comprise a network device B and a network device A, a network device B and a network device C, and a network device C and a network device B. And deleting the target connection relation from the wiring table, and updating the connection relations of the network equipment in the wiring table to be the connection relation between the network equipment B and the network equipment A, the connection relation between the network equipment B and the network equipment C and the connection relation between the network equipment C and the network equipment B. And then, taking the connection relation between the network equipment B and the network equipment A as a target connection relation, and determining the network equipment corresponding to other connection relations, wherein the network equipment B and the network equipment C do not have the same network equipment as the network equipment C and the network equipment B. And then taking the connection relation between the network equipment B and the network equipment C as a target connection relation, and continuing to judge. Until the connection relation between each network device in the routing table is used as the target connection relation.
Based on the above, by deleting the connection relationship between the network devices having duplication in the wiring table, the connection relationship between the network devices having duplication in the wiring table can be reduced, and content redundancy can be avoided.
In one possible implementation, the generated routing table may also be checked. The embodiment of the present application provides a method for generating a routing table of a network device, where in addition to the above steps, the method may further include:
obtaining the wiring information of the network equipment, and checking whether the wiring table has wiring errors or not according to the wiring information of the network equipment; the network device wiring information comprises one or more of standard port information of the network device function type, a network device standard name and network device standard connection relation information.
The network device wiring information may be information of a standard set in advance in relation to wiring. The network device wiring information may include at least one of standard port information of a network device function type, a network device standard name, and network device standard connection relationship information. The standard port information of the network device function type is standard port information, and the port information of the network device in the wiring table can be checked through the standard port information to determine whether wiring errors of the port information exist. The standard name of the network equipment is a standard naming mode of the network equipment, and the name of the network equipment in the wiring table can be checked through the standard name of the network equipment to determine whether the wiring error of the name of the network equipment exists. The network device standard connection relation information is the connection relation between standard network devices, and the connection relation between the network devices in the wiring table can be checked through the network device standard connection relation information to determine whether wiring errors of the connection relation between the network devices exist.
In one possible implementation, if there is a wiring error in the wiring table, the specific wiring error and the corresponding network device wiring information may be displayed for the user to adjust.
In the embodiment of the application, the wiring table can be checked through the acquired network device wiring information, and the accuracy of the generated wiring table is ensured.
In one possible implementation, the generated routing table may also be queried. The embodiment of the present application provides a method for generating a routing table of a network device, where in addition to the above steps, the method may further include:
acquiring a routing table query request, and determining a target routing table according to the routing table query request;
and displaying the target wiring table.
The routing table query request may be generated for a user trigger. The routing table query request may include information associated with the routing table to be queried. Such as the identity of the routing table. Through the obtained routing table query request, the target routing table to be queried by the user can be determined, and the target routing table is displayed so that the user can browse the target routing table.
In one possible implementation, the user may also adjust the generated routing table. The embodiment of the present application provides a method for generating a routing table of a network device, where in addition to the above steps, the method may further include:
acquiring a wiring table adjustment request, and determining a target wiring table according to the wiring table adjustment request;
and adjusting the target wiring table according to the wiring table adjusting request.
The routing table adjustment request may be generated for a user trigger. The routing table tuning request may include information related to the routing table to be tuned, as well as tuning information related to the routing table tuning. The routing table related information may be, for example, an identification of the routing table or the like used to determine the routing table. The tuning information may be information used to determine what tuning is needed in the wiring table and what is to be tuned. For example, to adjust the name of the network device a in the routing table a, the routing table adjustment request may include an identifier corresponding to the routing table a, the name of the network device a, and the name of the network device a to be modified.
In one possible implementation, the tuning information associated with the routing table tuning can be a processing instruction to the routing table, such as a delete instruction to the target routing table or an add instruction to the target routing table.
And determining the wiring table to be adjusted according to the wiring table adjustment request, taking the wiring table to be adjusted as a target wiring table, and adjusting the target wiring table corresponding to the wiring table adjustment request.
As a specific application scenario, the method for generating a network device routing table provided in the embodiment of the present application may be applied to a routing table management system. The wiring table management system can comprise a model management module, a wiring table generation module, a checking module, a storage module, a query module and a management module.
The routing table generation module can be used for acquiring the name of the network device and the corresponding network device function type and establishing the corresponding relation between the name of the network device and the network device function type; acquiring a network model determining instruction, and determining a target network model through a model management module according to the network model determining instruction; and generating a wiring table of the network equipment based on the target network model and the corresponding relation between the name of the network equipment and the function type of the network equipment. And the storage module can be used for storing the generated wiring table. The model management module may be used to manage the network model. Specifically, the target network model may be selected from preset network models according to the network model selection instruction, or the target network may be newly established according to the network model new establishment instruction. The verification module can be used for verifying repeated connection relations in the wiring table, acquiring the wiring information of the network equipment, and verifying whether the wiring table has wiring errors according to the wiring information of the network equipment. And the query module can be used for acquiring a routing table query request, determining a target routing table through the storage module according to the routing table query request, and displaying the target routing table. The management module can be used for acquiring a wiring table adjustment request and determining a target wiring table through the storage module according to the wiring table adjustment request; and adjusting the target wiring table according to the wiring table adjusting request.
Based on the method for generating a network device wiring table provided by the foregoing method embodiment, an embodiment of the present application further provides a device for generating a network device wiring table, and the device for generating a network device wiring table will be described below with reference to the accompanying drawings.
Fig. 3 is a schematic structural diagram of a device for generating a network device wiring table according to an embodiment of the present application. As shown in fig. 3, the apparatus for generating a routing table of a network device includes:
a first obtaining unit 301, configured to obtain a name of a network device and a corresponding network device function type, and establish a correspondence between the name of the network device and the network device function type;
a second obtaining unit 302, configured to obtain a network model determining instruction, and determine a target network model according to the network model determining instruction; the target network model comprises a target composition structure and a preset port planning table corresponding to the function type of each target network device; the target composition structure comprises the target network equipment function type and the connection relation between the target network equipment function types, wherein the target network model comprises the target network equipment function types, and the preset port planning table comprises the corresponding port information of the target network equipment function type;
a generating unit 303, configured to generate a routing table of the network device based on the target network model and a correspondence between the name of the network device and the function type of the network device; the wiring table of the network device is composed of the name of the network device, the connection relation between the network devices and the port information of the network device.
In one possible implementation, the network model determination instruction is a network model selection instruction; the second obtaining unit 302 is specifically configured to select a target network model from preset network models according to the network model selection instruction.
In a possible implementation manner, the network model determining instruction is a network model new-building instruction; the second obtaining unit 302 is specifically configured to determine a target composition structure according to the network model new establishment instruction; acquiring a preset port planning table corresponding to the function type of each target network device; and forming a target network model by using the target composition structure and a preset port planning table corresponding to each target network equipment function type.
In one possible implementation, the apparatus further includes:
a third obtaining unit, configured to obtain a connection relationship between the network devices in a wiring table of the network device;
a deleting unit, configured to delete the target connection relationship from the routing table if the network device corresponding to the target connection relationship is the same as the network devices corresponding to the other connection relationships; the target connection relation is each of the connection relations between the network devices in the routing table.
In one possible implementation, the apparatus further includes:
a fourth obtaining unit, configured to obtain network device wiring information, and check whether the wiring table has a wiring error according to the network device wiring information; the network equipment wiring information comprises one or more of standard port information of the function type of the network equipment, standard names of the network equipment and standard connection relation information of the network equipment.
In one possible implementation, the apparatus further includes:
a fifth obtaining unit, configured to obtain a routing table query request, and determine a target routing table according to the routing table query request;
and the display unit is used for displaying the target wiring table.
In one possible implementation, the apparatus further includes:
a sixth obtaining unit, configured to obtain a routing table adjustment request, and determine a target routing table according to the routing table adjustment request;
and adjusting the target wiring table according to the wiring table adjusting request.
Based on the method for generating the routing table of the network device provided by the embodiment of the method, the application provides a device for generating the routing table of the network device, which comprises the following steps: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is configured to store one or more programs, the one or more programs comprising instructions, which when executed by the processor, cause the processor to perform the method of any of the embodiments described above.
Based on the method for generating a network device wiring table provided in the foregoing method embodiment, the present application provides a computer-readable storage medium, where an instruction is stored in the computer-readable storage medium, and when the instruction runs on a terminal device, the terminal device is caused to execute the method described in any foregoing embodiment.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the system or the device disclosed by the embodiment, the description is simple because the system or the device corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
It should be understood that, in this application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b and c may be single or plural.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. 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 application. Thus, the present application 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 a routing table of a network device, the method comprising:
acquiring the name of network equipment and the corresponding function type of the network equipment, and establishing the corresponding relation between the name of the network equipment and the function type of the network equipment;
acquiring a network model determining instruction, and determining a target network model according to the network model determining instruction; the target network model comprises a target composition structure and a preset port planning table corresponding to the function type of each target network device; the target composition structure comprises the target network equipment function type included in the target network model and the connection relation between the target network equipment function types, and the preset port planning table comprises port information of the corresponding target network equipment function type;
generating a wiring table of the network equipment based on the target network model and the corresponding relation between the name of the network equipment and the function type of the network equipment; the wiring table of the network device is composed of the name of the network device, the connection relation between the network devices and the port information of the network device.
2. The method of claim 1, wherein the network model determination instructions are network model selection instructions; the determining a target network model according to the network model determination instruction includes:
and selecting a target network model from preset network models according to the network model selection instruction.
3. The method according to claim 1, wherein the network model determination command is a network model new command; the determining a target network model according to the network model determination instruction includes:
determining a target composition structure according to the network model new building instruction;
acquiring a preset port planning table corresponding to the function type of each target network device;
and forming a target network model by using the target composition structure and a preset port planning table corresponding to each function type of the target network equipment.
4. The method of claim 1, further comprising:
acquiring the connection relation between the network devices in the wiring table of the network devices;
if the network equipment corresponding to the target connection relation is the same as the network equipment corresponding to other connection relations, deleting the target connection relation from the wiring table; the target connection relation is each of the connection relations between the network devices in the routing table.
5. The method of claim 1, further comprising:
obtaining the wiring information of the network equipment, and checking whether the wiring table has wiring errors or not according to the wiring information of the network equipment; the network device wiring information comprises one or more of standard port information of the network device function type, a network device standard name and network device standard connection relation information.
6. The method of claim 1, further comprising:
acquiring a routing table query request, and determining a target routing table according to the routing table query request;
and displaying the target wiring table.
7. The method of claim 1, further comprising:
acquiring a wiring table adjustment request, and determining a target wiring table according to the wiring table adjustment request;
and adjusting the target wiring table according to the wiring table adjustment request.
8. An apparatus for generating a routing table of a network device, the apparatus comprising:
a first obtaining unit, configured to obtain a name of a network device and a corresponding network device function type, and establish a correspondence between the name of the network device and the network device function type;
the second acquisition unit is used for acquiring a network model determination instruction and determining a target network model according to the network model determination instruction; the target network model comprises a target composition structure and a preset port planning table corresponding to the function type of each target network device; the target composition structure comprises the target network equipment function type and the connection relation between the target network equipment function types, wherein the target network model comprises the target network equipment function types, and the preset port planning table comprises the corresponding port information of the target network equipment function type;
a generating unit, configured to generate a routing table of the network device based on a correspondence between the target network model and the name of the network device and the function type of the network device; the wiring table of the network device is composed of the name of the network device, the connection relation between the network devices and the port information of the network device.
9. A device for generating a routing table of a network device, comprising: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is to store one or more programs, the one or more programs comprising instructions, which when executed by the processor, cause the processor to perform the method of any of claims 1-7.
10. A computer-readable storage medium having stored therein instructions that, when executed on a terminal device, cause the terminal device to perform the method of any one of claims 1-7.
CN202110430354.XA 2021-04-21 2021-04-21 Method, device and equipment for generating network equipment wiring table Active CN113132164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110430354.XA CN113132164B (en) 2021-04-21 2021-04-21 Method, device and equipment for generating network equipment wiring table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110430354.XA CN113132164B (en) 2021-04-21 2021-04-21 Method, device and equipment for generating network equipment wiring table

Publications (2)

Publication Number Publication Date
CN113132164A CN113132164A (en) 2021-07-16
CN113132164B true CN113132164B (en) 2022-07-12

Family

ID=76778547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110430354.XA Active CN113132164B (en) 2021-04-21 2021-04-21 Method, device and equipment for generating network equipment wiring table

Country Status (1)

Country Link
CN (1) CN113132164B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667212A (en) * 2008-09-02 2010-03-10 中国北车集团大同电力机车有限责任公司 Three dimensional wiring design method and device for electric locomotive equipment
CN105590002A (en) * 2015-12-31 2016-05-18 北京理工大学 Automatic layout method and device of branch cable
CN110110344A (en) * 2018-02-01 2019-08-09 日立金属株式会社 The design aiding method of harness
CN112329184A (en) * 2020-11-23 2021-02-05 网易(杭州)网络有限公司 Network architecture configuration information generation method and device, storage medium and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4284235B2 (en) * 2004-06-07 2009-06-24 富士通株式会社 WIRING SELECTION METHOD AND DEVICE, WIRING SELECTION PROGRAM, COMPUTER-READABLE RECORDING MEDIUM CONTAINING WIRING SELECTION PROGRAM, AND DELAY IMPROVING METHOD
FR2947925B1 (en) * 2009-07-08 2012-04-27 Airbus Operations Sas AUTOMATIC CABLING SIMULATION CREATION METHOD

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667212A (en) * 2008-09-02 2010-03-10 中国北车集团大同电力机车有限责任公司 Three dimensional wiring design method and device for electric locomotive equipment
CN105590002A (en) * 2015-12-31 2016-05-18 北京理工大学 Automatic layout method and device of branch cable
CN110110344A (en) * 2018-02-01 2019-08-09 日立金属株式会社 The design aiding method of harness
CN112329184A (en) * 2020-11-23 2021-02-05 网易(杭州)网络有限公司 Network architecture configuration information generation method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN113132164A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
US11663375B2 (en) Configuration of a digital twin for a building or other facility via BIM data extraction and asset register mapping
CN108733713B (en) Data query method and device in data warehouse
US10628449B2 (en) Method and apparatus for processing database data in distributed database system
US8285710B2 (en) Automated query path reporting in distributed databases
CN112217656B (en) Method and device for synchronizing configuration information of network equipment in SD-WAN (secure digital-to-Wide area network) system
CN111008521A (en) Method and device for generating wide table and computer storage medium
CN107391045A (en) A kind of directory space quota method and system
CN109635063A (en) Information processing method, device, electronic equipment and the storage medium of address base
CN111428095B (en) Graph data quality verification method and graph data quality verification device
CN108520019A (en) Data managing method, device, equipment and computer readable storage medium
CN112015696A (en) Data access method, data relationship setting method, data access device, data relationship setting device and storage medium
CN102868601B (en) Routing system related to network topology based on graphic configuration database businesses
CN113132164B (en) Method, device and equipment for generating network equipment wiring table
CN107146166B (en) Distribution network planning auxiliary system
US20050204290A1 (en) System and method for generating distributed application and distributed system topologies with management information in a networked environment
CN112287423B (en) Power distribution network visual planning method and terminal based on graph-model integration
CN114124977A (en) Cross-tenant data sharing method and device and electronic equipment
CN112559603A (en) Feature extraction method, device, equipment and computer-readable storage medium
WO2016023290A1 (en) Network protocol configuration method and device
CN111241347A (en) Graph database creating method, enterprise data query method and device
CN111352747A (en) Cooperative operation method and device
CN109063220B (en) House data processing method and processing device
CN113868229A (en) Metadata management method and related device for technical architecture view
CN114281836A (en) Method and device for managing general data, electronic equipment and computer storage medium
CN112685359A (en) D5000 measurement data offline integration method and system suitable for mode scheduling

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