CN112751760A - Automatic routing method and system based on two-layer multi-service path - Google Patents

Automatic routing method and system based on two-layer multi-service path Download PDF

Info

Publication number
CN112751760A
CN112751760A CN201911034719.6A CN201911034719A CN112751760A CN 112751760 A CN112751760 A CN 112751760A CN 201911034719 A CN201911034719 A CN 201911034719A CN 112751760 A CN112751760 A CN 112751760A
Authority
CN
China
Prior art keywords
information
equipment
path
uplink
access
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
CN201911034719.6A
Other languages
Chinese (zh)
Other versions
CN112751760B (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.)
Zhongying Youchuang Information Technology Co Ltd
Original Assignee
Zhongying Youchuang Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongying Youchuang Information Technology Co Ltd filed Critical Zhongying Youchuang Information Technology Co Ltd
Priority to CN201911034719.6A priority Critical patent/CN112751760B/en
Publication of CN112751760A publication Critical patent/CN112751760A/en
Application granted granted Critical
Publication of CN112751760B publication Critical patent/CN112751760B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's
    • 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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery

Abstract

The invention provides an automatic routing method and system based on a two-layer multi-service path, wherein the method comprises the following steps: inquiring the uplink equipment associated with the access equipment based on the two-layer topological relation according to the parameter information of the equipment; circularly inquiring the uplink equipment corresponding to the uplink equipment until the terminal equipment meeting the preset condition is inquired or the maximum hop count is exceeded; and if the terminal equipment meeting the preset conditions is inquired, obtaining the path information from the access equipment to the terminal equipment according to the path information from the access equipment, the corresponding uplink equipment and the terminal equipment. The method and the system can automatically select the service path meeting the requirements, reduce the manual operation steps of operators, greatly reduce the labor cost, provide convenience for the operators, avoid certain errors caused by manual operation, provide effective technical support for the service opening and maintenance of special lines of the metropolitan area network Internet and the like, and improve the fine management of the operator network.

Description

Automatic routing method and system based on two-layer multi-service path
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an automatic routing method and system based on two-layer multi-service paths.
Background
As the demand of users for network service intellectualization and automation is increasing, the development of private line business faces many problems.
In the prior art, a telecommunication operator mainly depends on manual selection of a service path of an access device during the service provisioning of a special fiber access line, which is not only cumbersome, but also may have some errors caused by manual operation.
Therefore, a technical scheme which is efficient, convenient and fast and can automatically complete path selection is urgently needed, and the defects of the existing manual routing mode are overcome.
Disclosure of Invention
In order to solve the problems, the invention provides an automatic routing method and system based on a two-layer multi-service path, the method and system are based on an automatic routing mechanism of the two-layer multi-service path, and the method and system superpose the two-layer network topology automatic analysis to determine the service path of the access equipment according to the known attributes of the access equipment, SVLAN and terminating equipment of the optical fiber access private line service, and automatically select the service path meeting the requirements; the whole process does not need to be manually selected by an operator, so that the labor cost is greatly reduced, convenience is provided for the operator, and certain errors caused by manual operation are avoided.
In an embodiment of the present invention, an automatic routing method based on a two-layer multi-service path is provided, which includes:
acquiring parameter information of equipment;
inquiring the uplink equipment associated with the access equipment based on the two-layer topological relation according to the parameter information;
circularly inquiring the upper connection equipment corresponding to the upper connection equipment;
and when the terminal equipment meeting the preset conditions is inquired, obtaining the path information from the access equipment to the terminal equipment according to the path information from the access equipment, the corresponding uplink equipment and the terminal equipment.
In an embodiment of the present invention, an automatic routing system based on two-layer multi-service paths is further provided, and the system includes:
the parameter information acquisition module is used for acquiring the parameter information of the equipment;
the upper connection equipment query module is used for querying the upper connection equipment associated with the access equipment based on the two-layer topological relation according to the parameter information; circularly inquiring the upper connection equipment corresponding to the upper connection equipment;
and the automatic routing module is used for obtaining the path information from the access equipment to the terminal equipment according to the access equipment, the corresponding uplink equipment and the path information from the access equipment to the terminal equipment under the condition that the terminal equipment meeting the preset condition is inquired.
In an embodiment of the present invention, a computer device is further provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements an automatic routing method based on two-layer multi-service paths.
In an embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program for executing an automatic routing method based on a two-layer multi-service path is stored.
The automatic routing method and the system based on the two-layer multi-service path can automatically analyze and determine the service path of the access equipment by overlapping the two-layer network topology according to the known attributes of the access equipment, the SVLAN, the terminating equipment and the like of the optical fiber access special line service, automatically select the service path meeting the requirements, reduce the manual operation steps of operators in the whole process, avoid independently inquiring respective path information, greatly reduce the labor cost, provide convenience for the operators, avoid errors caused by manual operation, can quickly and accurately obtain the path information of the access equipment, provide effective technical support for the opening and maintenance of the services of the metropolitan area network Internet special line and the like, and improve the fine management of an operator network.
Drawings
Fig. 1 is a flowchart of an automatic routing method based on two-layer multi-service paths according to an embodiment of the present invention.
FIG. 2 is a schematic view of an SVLAN analysis process according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a query result of an uplink device according to an embodiment of the present invention.
Fig. 4 is a diagram illustrating a query result of a terminating device according to an embodiment of the present invention.
Fig. 5 is a port description diagram of the 9312 switch of an embodiment of the present invention.
Fig. 6 is a diagram of ADEVICEID field and dowport field tag for the 9312 switch of an embodiment of the present invention.
Fig. 7 is a schematic diagram of BDEVICEID and UPPORT field labels of SL-LDL-BAS-3.man. me60 devices according to an embodiment of the invention.
FIG. 8 is a schematic diagram of an embodiment of an automatic routing system based on two-layer multi-service paths.
Fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to the embodiment of the invention, the method and the system for automatically selecting the route based on the two-layer multi-service path are provided, and the method and the system can automatically determine the service path of the access equipment through the two-layer topology according to the known information such as the attributes of the access equipment, the SVLAN and the terminating equipment, thereby greatly reducing the labor cost and providing convenience for operators.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Fig. 1 is a flowchart of an automatic routing method based on two-layer multi-service paths according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step S101, acquiring parameter information of the equipment.
Firstly, parameter information of the device is acquired, and the parameter information comprises: attribute information of the access device, SVLAN (this parameter may be null, if null, SVLAN service path analysis in fig. 2 is not performed), attribute information of the terminating device, maximum hop count (maximum hop count for two-tier topology inquiry), and other known parameter information.
And step S102, inquiring the uplink equipment associated with the access equipment based on the two-layer topological relation according to the parameter information.
The two-layer topological relation is pre-loaded in a two-layer topological relation table (l2topo table), and the two-layer topological relation table stores the topological relation between the devices of each hop.
According to the attribute information of the access device, the bdeviceiid field corresponding to the two-layer topology table can be found in the two-layer topology relationship, and the corresponding ADEVICEID (i.e., the uplink device) is found through the self-association of the two-layer topology relationship, so as to obtain the ID and the port information of the first uplink device.
And step S103, circularly inquiring the uplink equipment corresponding to the uplink equipment until the terminal equipment meeting the preset condition is inquired on the premise that the maximum hop count is not exceeded, or inquiring the maximum hop count.
Taking the ID of the first uplink device as BDEVICEID, inquiring in the two-layer topological relation, and searching for corresponding ADEVICEID to obtain the ID and port information of the corresponding second uplink device; that is, based on the queried uplink device, the uplink device corresponding to the uplink device is queried;
repeating the query steps until the terminal equipment meeting the preset conditions or the maximum hop count is queried;
setting a preset condition according to the attribute information of the terminal equipment, and when the inquired attribute information of a certain uplink equipment conforms to the attribute information of the terminal equipment, indicating that the preset condition is met; in addition, if the inquiry does not exceed the maximum hop count, the uplink equipment is terminal equipment;
for example, the contents of the DEVICEPROPCODE field are set as: and when the queried device attribute information DEVICEPROPCODE is "PRP 004", the PRP004 indicates that the corresponding device is the terminating device, and continues to execute step S104.
The maximum hop count is generally set to 3, and the specific setting can be adjusted according to actual conditions. And if the maximum hop count information is set in the preset condition, the maximum hop count information in the preset condition is used as a standard.
Step S104, when the Nth uplink device meeting the preset conditions is found, stopping the query and using the Nth uplink device as the terminating device, wherein the process can be actually understood as that the terminating device is queried after N hops are passed, and N is less than or equal to the maximum hop count, namely the maximum hop count is not exceeded; and then according to the access equipment, the corresponding uplink equipment and the path information from the access equipment to the terminal equipment, obtaining the path information from the access equipment to the terminal equipment.
Step S105, if the query exceeds the maximum hop count, that is, if the query exceeds the maximum hop count, the uplink device meeting the preset condition cannot be queried, the routing is ended, and the path selection needs to be performed manually.
For the fact that the two-Layer topology of the binding port is not found, but the physical port is found by LLDP (Link Layer Discovery Protocol), and for the reason of the client, the mac cannot find the abnormal situation, the port in the l2topo table query process needs to be processed.
There are two possible causes for this problem: firstly, some binding ports cannot find the two-layer topology, but the physical ports below the binding ports can be found, so the physical ports are reserved, and the physical ports below the binding ports are removed. Secondly, the physical ports under the binding ports cannot use the SVLAN for screening, and the SVLAN comparison screening shown in FIG. 2 can be carried out only by replacing the physical ports with the binding ports.
The specific treatment measures are as follows:
in the l2topo table query process, if a port of portextinfo.
And if the port of the portextinfo.
In an embodiment, if the SVLAN is not empty in the parameter information acquired in step S101, the SVLAN service path analysis may be performed after the path information is obtained in step S104.
Since the path information acquired in step S104 may be multiple pieces, the SVLAN information may be used to filter the pieces of path information, so as to select more accurate path information.
When SVLAN service path analysis is performed, whether an access device is an OLT device must be judged;
if the judgment result is that the network management equipment is OLT equipment, whether the network management equipment has a VLAN (whether the collected VLAN is judged, but not whether the SVLAN is collected) collected by the OLT equipment is continuously judged;
if the SVLAN analysis is acquired, the SVLAN analysis is directly started from the uplink port of the OLT equipment (parameter equipment).
If the data can not be acquired, starting from a lower connection port of an upper connection device (switchboard) of an input parameter device (OLT)
And (6) SVLAN analysis.
If the equipment is not OLT equipment, SVLAN analysis is directly carried out.
The process is mainly to exclude the situation that part of the provincial access OLT equipment does not collect the VLAN.
Fig. 2 may be referred to for specific processes, and fig. 2 is a schematic view illustrating an SVLAN analysis flow according to an embodiment of the present invention. As shown in fig. 2, the method includes:
step S1, according to the obtained path information, determine whether the access device in each piece of path information is an OLT device.
Step S2, if the access device is an OLT device, the access device is queried in a preset VLAN port information table (VLAN table) according to the attribute information and SVLAN information of the access device.
And step S21, if the corresponding record is inquired, selecting the corresponding path information as the final path.
Step S22, if the corresponding record is not inquired, the screening is started from the lower port of the upper connection device of the OLT device, and according to the SVLAN information, the information of the upper connection device and the port information of the upper connection device, the screening is carried out on the upper connection device
Querying in a VLAN port information table; and if the corresponding record is inquired, selecting the corresponding path information as the final path.
Step S3, if the access device is not OLT device, SVLAN analysis is carried out to all the experienced switch port information including the uplink port of the access device, and according to the attribute information of the access device, the uplink port of the access device, SVLAN information, the information of the uplink device and the port information of the uplink device, the query is carried out in VLAN port information table; and if the corresponding record is inquired, selecting the corresponding path information as the final path.
If no corresponding record is found in step S22 or step S3, any of the path information is used as the final path.
In an embodiment, after the filtering of the foregoing step S1, step S2 (step S21, step S22) and step S3, if a path is not found, the data of step S104 is directly used to return flag to 0 (which represents that the automatically selected path is not precisely located); if only one path can be queried, then the return flag is 1 (representing that the automatically selected path is a precise location).
Through the above processes of analysis, automatic routing, etc., path information can be finally obtained, such as:
path: access device-access device upper connection port-switch 1 lower connection port-switch 1 upper connection port-switch 2 lower connection port-switch 2 upper connection port-terminating device.
It should be noted that although the operations of the method of the present invention have been described in the above embodiments and the accompanying drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the operations shown must be performed, to achieve the desired results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
For a clearer explanation of the above automatic routing method based on two-layer multi-service paths, a specific embodiment is described below, but it should be noted that the embodiment is only for better explaining the present invention and is not to be construed as an undue limitation to the present invention.
Taking an access switch with a dedicated line as an example, and combining fig. 1 and fig. 2, the path information of the access device is obtained by using an automatic routing method based on a two-layer multi-service path, and the process is as follows:
firstly, in conjunction with step S101, an access switch with a dedicated line is found, and the information of the access device is as follows:
DEV0057w wideland S930010.9.8.226
interface XGigabitEthernet3/0/0
description TO_anjiamenjingzhunfupin
port link-type access
port default vlan 2865
traffic-policy wangzhan inbound
It can be seen that the name of the access device: broad plateau S9300; IP address: 10.9.8.226, respectively; port information: XGigabitEthernet 3/0/0; SVLAN: 2865.
attribute information of terminating device (DEVICEPROPCODE): PRP 004.
The maximum number of hops is set to 3.
And step S102, searching for the uplink equipment, searching for a corresponding BDEVICEID field in the two-layer topological relation according to the attribute information of the access equipment, and searching for corresponding ADEVICEID through self association of the two-layer topological relation to obtain that the uplink equipment is a '9312 switch'. The execution procedure is as follows:
select AD.DEVICENAME,AD.LOOPADDRESS,A.*
from l2topo a,device ad,device bd
where bd.loopaddress='10.9.8.226'
and a.adeviceid=ad.deviceid
and a.bdeviceid=bd.deviceid
fig. 3 is a schematic diagram of a query result of an uplink device according to an embodiment. As can be seen from fig. 3, the device name (DEVICENAME) of the uplink device is shanyang S9312;
the IP for the cyclic address (LOOPADDRESS) is 10.9.8.250;
connection ID (LINKID) is SX-SL 669;
ADEVICEID field is DEV005a9, namely ID corresponding to the uplink device "Shanyang S9312";
the lower port (DOWNPORT) is XGigabitEthernet 11/0/3;
the bdeviceiid field is DEV0057w, which is the ID of the access device in step S101;
the upper port (UPPORT) is XGigabitEthernet 3/0/0.
And step S103, circularly searching the uplink equipment of the uplink equipment according to the attribute information of the uplink equipment.
Because the attribute information (DEVICEPROPCODE) PRP004 of the terminating device, the preset condition is that "PRP 004" is queried for DEVICEPROPCODE.
If the uplink device "shanyang S9312" found in step S102 does not match, the uplink device continues to find, and the uplink device that can obtain the "9312 switch" has 3 devices, and the 3 devices are the terminating devices. The execution procedure is as follows:
select AD.DEVICENAME,AD.LOOPADDRESS,ad.devicepropcode,A.*
from l2topo a,device ad,device bd
where bd.loopaddress='10.9.8.250'
and a.adeviceid=ad.deviceid
and a.bdeviceid=bd.deviceid
fig. 4 is a schematic diagram of a query result of the terminating device according to a specific embodiment.
As can be seen from fig. 4, 4 query results are obtained through the query, and DEVICEPROPCODE of the 4 results is "PRP 004", and the query hop count is 2, and does not exceed the maximum hop count of 3, which indicates that the corresponding device is the terminating device.
The terminating device names (DEVICENAME) are:
SL-SY-MSE-1.MAN.M6000、
SL-SY-MSE-2.MAN.M6000、
SL-LDL-BAS-3.MAN.ME60;
the IPs are 219.145.240.233, 219.145.240.232, 219.145.240.245, respectively.
Thus, 3 pieces of path information can be acquired:
"broad terrace S9300" - "9312 switch" - "SL-SY-MSE-1. man.m 6000"
"broad terrace S9300" - "9312 switch" - "SL-SY-MSE-2. man.m 6000"
"broad band S9300" - "9312 switch" - "SL-LDL-BAS-3. man. me60"
Further, in combination with the SVLAN analysis process of fig. 2, the SVLAN service path analysis (mainly, port information of the screening device) is performed according to the three pieces of path information obtained in the previous step, and the port of the aggregation switch can be found in the VLAN transparently transmitted through the interface of the aggregation switch through the VLAN.
The execution procedure is as follows:
select*from VLANPORT WHERE DEVICEID='DEV005a9'AND VLANID='2865'
as shown in figures 5, 6 and 7,
figure 5 is a port description schematic of the 9312 switch embodiment,
figure 6 is a diagram of one embodiment of ADEVICEID field and dowport field tag for the 9312 switch,
fig. 7 is a schematic diagram of the BDEVICEID and UPPORT field labels of SL-LDL-BAS-3.man. me60, according to an embodiment.
As can be seen from fig. 5 to 7, the device ID (deviceid) of the "9312 switch" is DEV005a9, the VLAN ID is 2865, and the type Conversion (CHANGETYPE) is 0; the port information (PORTDESCR) in FIG. 5 includes Eth-Trunk1, Eth-Trunk2, Eth-Trunk6, XGdiabtite Ethernet 11/0/3.
In fig. 6 and 7, as can be seen from the label boxes 601 and 701, the ports Eth-Trunk1 and xgigabit ethernet11/0/3 of the "9312 switch" exist in the path information, and therefore the final path is:
"widelane S9300" - "9312 switch" - "SL-LDL-BAS-3. man. me60".
Having described the method of the exemplary embodiment of the present invention, the automatic routing system based on two-layer multi-service paths of the exemplary embodiment of the present invention will be described with reference to fig. 8.
The implementation of the automatic routing system based on the two-layer multi-service path can refer to the implementation of the above method, and repeated details are not repeated. The term "module" or "unit" used hereinafter may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Based on the same inventive concept, the present invention also provides an automatic routing system based on two-layer multi-service path, as shown in fig. 8, the system includes:
a parameter information obtaining module 810, configured to obtain parameter information of a device;
an uplink device query module 820, configured to query, according to the parameter information, an uplink device associated with the access device itself based on the two-layer topology relationship; circularly inquiring the uplink equipment corresponding to the uplink equipment until terminal equipment meeting preset conditions or the maximum hop count is inquired;
the automatic routing module 830 is configured to, when a terminating device meeting a preset condition is found, obtain path information from the access device to the terminating device according to the path information of the access device, the corresponding uplink device, and the path information from the access device to the terminating device; and if the maximum hop count is exceeded and the terminating equipment is not found, ending the route selection.
It should be noted that although several modules of the two-layer multi-traffic path based automatic routing system are mentioned in the above detailed description, such partitioning is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the modules described above may be embodied in one module according to embodiments of the invention. Conversely, the features and functions of one module described above may be further divided into embodiments by a plurality of modules.
Based on the same inventive concept, as shown in fig. 9, the present invention further provides a computer apparatus 900, which includes a memory 910, a processor 920, and a computer program 930 stored in the memory 910 and operable on the processor 920, wherein the processor 920 executes the computer program 930 to implement an automatic routing method based on two-layer multi-service paths.
Based on the same inventive concept, the present invention also provides a computer-readable storage medium storing a computer program for executing the automatic routing method based on the two-layer multi-service path and the two-layer multi-service path.
The automatic routing method and the system based on the two-layer multi-service path can automatically analyze and determine the service path of the access equipment by overlapping the two-layer network topology according to the known attributes of the access equipment, the SVLAN and the terminating equipment of the optical fiber access special line service, and automatically select the service path meeting the requirements, thereby reducing the operation steps of operators in the whole process, avoiding the need of independently inquiring the respective path information, greatly reducing the labor cost, providing convenience for the operators, avoiding the errors caused by manual operation, quickly and accurately obtaining the path information of the access equipment by the method and the system, providing effective technical support for the opening and maintenance of the services of the special line of the metropolitan area network internet, and improving the fine management of the operator network.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (11)

1. An automatic routing method based on two-layer multi-service path is characterized in that the method comprises the following steps:
acquiring parameter information of equipment;
inquiring the uplink equipment associated with the access equipment based on the two-layer topological relation according to the parameter information;
circularly inquiring the upper connection equipment corresponding to the upper connection equipment;
and when the terminal equipment meeting the preset conditions is inquired, obtaining the path information from the access equipment to the terminal equipment according to the path information from the access equipment, the corresponding uplink equipment and the terminal equipment.
2. The method of claim 1, wherein obtaining parameter information of the device comprises: attribute information of the access device, attribute information of the terminating device and maximum hop count information.
3. The method of claim 1, wherein the two-layer topology relationship is pre-loaded in a two-layer topology relationship table, and the two-layer topology relationship table stores the topology relationship between devices of each hop.
4. The method according to claim 2, wherein querying the access device associated with the uplink device based on the two-layer topology relationship according to the parameter information comprises:
according to the attribute information of the access equipment, searching a corresponding BDEVICEID in the two-layer topological relation;
and according to the BDEVICEID corresponding to the access equipment, searching for corresponding ADEVICEID through self association of the two-layer topological relation, and obtaining the ID and port information of the first uplink equipment.
5. The method according to claim 4, wherein the circularly querying the upstream device corresponding to the upstream device comprises:
taking the ID of the first uplink device as BDEVICEID, inquiring in the two-layer topological relation, and searching for corresponding ADEVICEID to obtain the ID and port information of the corresponding second uplink device;
repeating the query step, if the maximum hop count is not exceeded, searching the Nth uplink device meeting the preset conditions, stopping querying, taking the Nth uplink device as the terminal device, and obtaining the path information from the access device to the terminal device according to the path information of the access device, the corresponding uplink device and the path information from the access device to the terminal device;
if the inquiry exceeds the maximum hop count, the automatic routing is finished, and the routing is manually performed.
6. The method of claim 5, wherein obtaining the parameter information of the device further comprises: SVLAN information.
7. The method of claim 6, further comprising, after obtaining the path information from the access device to the terminating device:
and performing SVLAN analysis on the obtained path information by using the SVLAN information to obtain a final path.
8. The method of claim 7, wherein the SVLAN analysis is performed on the obtained path information using SVLAN information to obtain a final path, further comprising:
s1, judging whether the access equipment in each piece of path information is OLT equipment or not according to the obtained path information;
s2, if the access device is OLT device, according to the attribute information of the access device and SVLAN information, inquiring in the preset VLAN port information table;
s21, if the corresponding record is inquired, selecting the corresponding path information as the final path;
s22, if the corresponding record is not inquired, screening from the lower port of the upper device of the OLT device, and inquiring in the VLAN port information table according to the SVLAN information, the information of the upper device and the port information of the upper device; if the corresponding record is inquired, selecting corresponding path information as a final path;
s3, if the access device is not OLT device, SVLAN analysis is carried out to all the experienced switch port information including the uplink port of the access device, and according to the attribute information of the access device, the uplink port of the access device, SVLAN information, the information of the uplink device and the port information of the uplink device, the information is inquired in the VLAN port information table; if the corresponding record is inquired, selecting corresponding path information as a final path;
if the corresponding record is not queried in both S22 and S3, any one of the path information is taken as the final path.
9. An automatic routing system based on two-layer multi-service paths, the system comprising:
the parameter information acquisition module is used for acquiring the parameter information of the equipment;
the upper connection equipment query module is used for querying the upper connection equipment associated with the access equipment based on the two-layer topological relation according to the parameter information; circularly inquiring the upper connection equipment corresponding to the upper connection equipment;
and the automatic routing module is used for obtaining the path information from the access equipment to the terminal equipment according to the access equipment, the corresponding uplink equipment and the path information from the access equipment to the terminal equipment under the condition that the terminal equipment meeting the preset condition is inquired.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 8 when executing the computer program.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 8.
CN201911034719.6A 2019-10-29 2019-10-29 Automatic routing method and system based on two-layer multi-service path Active CN112751760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911034719.6A CN112751760B (en) 2019-10-29 2019-10-29 Automatic routing method and system based on two-layer multi-service path

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911034719.6A CN112751760B (en) 2019-10-29 2019-10-29 Automatic routing method and system based on two-layer multi-service path

Publications (2)

Publication Number Publication Date
CN112751760A true CN112751760A (en) 2021-05-04
CN112751760B CN112751760B (en) 2023-03-31

Family

ID=75640089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911034719.6A Active CN112751760B (en) 2019-10-29 2019-10-29 Automatic routing method and system based on two-layer multi-service path

Country Status (1)

Country Link
CN (1) CN112751760B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6944130B1 (en) * 2000-05-31 2005-09-13 Cisco Technology, Inc. Method and apparatus for determining a layer 2 path in a switched network
US20060050866A1 (en) * 2004-09-08 2006-03-09 Sewall Patrick M Handset cradle
US7567564B2 (en) * 2005-08-25 2009-07-28 Nec Corporation Optical access network apparatus and data signal sending method therefor
CN101640610A (en) * 2009-09-02 2010-02-03 中兴通讯股份有限公司 Method and system for automatic discovery of Ethernet link
CN102082717A (en) * 2010-12-22 2011-06-01 大唐软件技术股份有限公司 Method and configuration for identifying topologic connection relationship between access network and metropolitan area network
CN103346979A (en) * 2013-06-21 2013-10-09 杭州华三通信技术有限公司 Flow distribution method and equipment in SPBM network
CN104604182A (en) * 2013-08-13 2015-05-06 华为技术有限公司 Service channel configuration method, optical line terminal and passive optical network
CN104662850A (en) * 2012-09-28 2015-05-27 阿尔卡特朗讯公司 Method and apparatus for communication path selection
US20160065386A1 (en) * 2014-08-29 2016-03-03 Alcatel -Lucent Usa, Inc. Scalable virutal networks in sdn-based ethernet networks using vlans
CN106302158A (en) * 2015-05-29 2017-01-04 华为技术有限公司 A kind of network topology selects the method and device in transmission path
CN108880840A (en) * 2017-05-10 2018-11-23 中兴通讯股份有限公司 The method and apparatus for obtaining access path
CN109951321A (en) * 2019-02-25 2019-06-28 贵州电网有限责任公司 A kind of substation's station level network topology analytical method, device and storage medium
CN110380964A (en) * 2018-04-12 2019-10-25 中兴通讯股份有限公司 Multi-service method for routing, device and equipment, computer readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6944130B1 (en) * 2000-05-31 2005-09-13 Cisco Technology, Inc. Method and apparatus for determining a layer 2 path in a switched network
US20060050866A1 (en) * 2004-09-08 2006-03-09 Sewall Patrick M Handset cradle
US7567564B2 (en) * 2005-08-25 2009-07-28 Nec Corporation Optical access network apparatus and data signal sending method therefor
CN101640610A (en) * 2009-09-02 2010-02-03 中兴通讯股份有限公司 Method and system for automatic discovery of Ethernet link
CN102082717A (en) * 2010-12-22 2011-06-01 大唐软件技术股份有限公司 Method and configuration for identifying topologic connection relationship between access network and metropolitan area network
CN104662850A (en) * 2012-09-28 2015-05-27 阿尔卡特朗讯公司 Method and apparatus for communication path selection
CN103346979A (en) * 2013-06-21 2013-10-09 杭州华三通信技术有限公司 Flow distribution method and equipment in SPBM network
CN104604182A (en) * 2013-08-13 2015-05-06 华为技术有限公司 Service channel configuration method, optical line terminal and passive optical network
US20160065386A1 (en) * 2014-08-29 2016-03-03 Alcatel -Lucent Usa, Inc. Scalable virutal networks in sdn-based ethernet networks using vlans
CN106302158A (en) * 2015-05-29 2017-01-04 华为技术有限公司 A kind of network topology selects the method and device in transmission path
CN108880840A (en) * 2017-05-10 2018-11-23 中兴通讯股份有限公司 The method and apparatus for obtaining access path
CN110380964A (en) * 2018-04-12 2019-10-25 中兴通讯股份有限公司 Multi-service method for routing, device and equipment, computer readable storage medium
CN109951321A (en) * 2019-02-25 2019-06-28 贵州电网有限责任公司 A kind of substation's station level network topology analytical method, device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
GHASEM MIRJALILY;: "Best Multiple Spanning Tree in Metro Ethernet Networks", 《2009 SECOND INTERNATIONAL CONFERENCE ON COMPUTER AND ELECTRICAL ENGINEERING》 *
李永娜: "三层交换机中VLAN间的路由通信的应用", 《佳木斯职业学院学报》 *

Also Published As

Publication number Publication date
CN112751760B (en) 2023-03-31

Similar Documents

Publication Publication Date Title
US8588236B2 (en) Virtual network management server and network system
US8681658B2 (en) System and method to provision an MPLS/VPN network
US8040822B2 (en) Configuring communication services using policy groups
US8203962B2 (en) Network monitoring device, network monitoring method, and network monitoring program
US8089897B2 (en) VPN intelligent route service control point trouble diagnostics
CN107994942B (en) Method for discovering topology of service resource tree of optical broadband access network
CA2697769A1 (en) System and method for managing virtual local area networks
CN108650177B (en) Method and system for performing cross-domain service configuration on SPTN (shortest Path bridging) equipment
WO2016150300A1 (en) Method and apparatus for distributing optical network unit service information and optical line terminal
CN111327531B (en) VDC-based routing configuration method, device, equipment and readable storage medium
CN109040178B (en) Configuration information sending method and device
CN107733713B (en) Method, system, device and storage medium for acquiring network topology in hybrid network
CN104283802A (en) Neighbor discovery method and device
CN111106970A (en) Data monitoring method and device, electronic equipment and readable storage medium
CN112751760B (en) Automatic routing method and system based on two-layer multi-service path
CN114157715A (en) Network information management method and system of backbone network controller
CN114301818A (en) Service flow detection method, device, system, terminal and storage medium
US9838218B2 (en) Method for providing overlay network interworking with underlay network and system performing same
CN112953740A (en) Method and device for monitoring routing information
KR102291440B1 (en) Automated method and apparatus of line openning service
US8134923B2 (en) Discovery of virtual private networks
CN111355599B (en) Hybrid network topology discovery method and device
JP6270041B2 (en) Network management apparatus and method
CN115802211A (en) Automatic association method and device for network logical link
CN112448847A (en) Method and device for determining network asset position information

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
CP02 Change in the address of a patent holder

Address after: Room 702-2, No. 4811, Cao'an Highway, Jiading District, Shanghai

Patentee after: CHINA UNITECHS

Address before: 100872 5th floor, Renmin culture building, 59 Zhongguancun Street, Haidian District, Beijing

Patentee before: CHINA UNITECHS

CP02 Change in the address of a patent holder