Method, device, equipment, storage medium and product for acquiring network topology information
By using PAD message and LLDP information splicing technology in broadband networks, the problem of not being able to obtain complete topology information in existing technologies has been solved, enabling end-to-end topology acquisition of user equipment and improving the efficiency and accuracy of network operation and maintenance.
Patent Information
- Application Number
- CN202410226432.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2044-02-28
AI Technical Summary
Existing broadband network topology generation technologies cannot fully obtain users' topology information, resulting in poor efficiency and accuracy in service activation, fault location, and service operation quality analysis during network operation and maintenance.
By acquiring PAD messages using a preset starting device in the communication network, adding access-side topology information, and combining it with LLDP information to generate second topology information at a preset ending device, the two are finally spliced together in the server to obtain complete network topology information.
It enables the acquisition of the complete topology structure starting from the user equipment end, improving the efficiency and accuracy of network operation and maintenance, reducing maintenance costs, and enhancing the real-time performance and accuracy of topology information.
Smart Images

Figure CN118827506B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of network engineering, and in particular to a method and device for obtaining network topology information, equipment, a storage medium and a product. BACKGROUND
[0002] With the improvement and development of network infrastructure, the scale of wired broadband networks is getting larger and larger, the structure is getting more and more complex, and the users involved are getting more and more. In order to do a good job in network quality and business perception, network operation is under great pressure. In the operation process of wired broadband network, business opening, user fault positioning and business running quality analysis need accurate user network topology data as support.
[0003] In the existing broadband network topology generation technology, the link layer topology generation can be realized by using the link layer discovery protocol. However, since some network devices that do not belong to the link layer and user network access devices generally do not support the link layer discovery protocol, only part of the topology relationship can be described, and the topology information of the broadband user cannot be obtained completely. SUMMARY
[0004] The present application provides a method and device for obtaining network topology information, equipment, a storage medium and a product, which can completely obtain the topology information of the broadband user.
[0005] In a first aspect, the present application provides a method for obtaining network topology information, comprising:
[0006] Obtaining a PAD packet sent by a user device through a preset starting point device in a communication network.
[0007] Adding access side topology information in the PAD packet through the preset starting point device to obtain first topology information, wherein the access side topology information is the device information of each device between the user device and the preset starting point device in the communication network.
[0008] In the case where the preset terminal device receives the first topology information sent by the preset starting point device, adding the topology information of the preset terminal device to the first topology information through the preset terminal device to obtain second topology information, wherein the topology information of the preset terminal device is obtained based on the LLDP information sent by each device in the communication network, and the topology information of the preset terminal device includes the IP address of the preset terminal device and the device information of each device between the preset starting point device and the preset terminal device in the communication network.
[0009] In a case that the server receives the second topology information sent by the preset terminal device, the device information of the user device to the preset starting device and the preset starting device to the preset terminal device is spliced to obtain the target network topology information.
[0010] The above manner of the embodiment of the application obtains the first topology information containing the device information between the user device and the preset starting device, and the second topology information containing the device information between the preset starting device and the preset terminal device in the communication network obtained through the LLDP information of each device in the communication network. The first topology information and the second topology information are spliced to obtain the complete topology information starting from the user device. The scheme uses two aspects of topology information to connect the network path of the user's online access, and then completely obtains the topology structure of the user.
[0011] In some possible implementation manners, the access side topology information includes an IP address of the preset starting device accessed by the broadband account, a preset starting device port accessed by the broadband account, a user device number accessed by the broadband account, and a user device serial number accessed by the broadband account.
[0012] The above manner of the embodiment of the application adds the IP address of the preset starting device, the preset starting device port accessed by the broadband account, the user device number accessed by the broadband account, and the user device serial number accessed by the broadband account in the access side topology information. This is helpful for associating the user broadband account with the device.
[0013] In some possible implementation manners, the topology information of the preset terminal device includes a preset terminal device port type accessed by the broadband service, a single board slot and a physical port number accessed by the broadband service, a service VLAN used by the broadband service and a VLAN of the user device.
[0014] The above manner of the embodiment of the application adds the preset terminal device port type accessed by the broadband service, the single board slot and the physical port number accessed by the broadband service, the service VLAN used by the broadband service and the VLAN of the user device in the topology information of the preset terminal device. This is helpful for determining the virtual local area network used by the user.
[0015] In some possible implementation manners, the adding, by the preset terminal device, of the topology information of the preset terminal device to the first topology information includes:
[0016] The preset terminal device extends a field of the first topology information, and writes the topology information of the preset terminal device on the extended field.
[0017] The above method of the embodiment of the present application extends the field of the first topology information at the preset end device, and writes the topology information of the preset end device on the extended field. The topology information of the preset end device is also added to the first topology information.
[0018] In some possible implementation manners, the splicing of the device information from the user device to the preset start device and from the preset start device to the preset end device to obtain the target network topology information comprises:
[0019] sending the second topology information to the asset management system through the server;
[0020] obtaining, through the asset management system, the first link topology information from the preset start device to the preset end device by traversing the device information from the preset start device to the preset end device in the second topology information;
[0021] splicing, through the asset management system, the first link topology information from the user device to the preset start device in the second topology information and the second link topology information to obtain the target network topology information.
[0022] The above method of the embodiment of the present application obtains the second topology information, traverses the device information from the preset start device to the preset end device in the second topology information to obtain the first link topology information, and then splices the first link topology information and the second link topology information to obtain the target network topology information. The topology information can be accurately spliced.
[0023] In some possible implementation manners, the traversing of the device information from the preset start device to the preset end device in the second topology information through the asset management system to obtain the first link topology information from the preset start device to the preset end device comprises:
[0024] querying, through the asset management system, the information of the opposite end device of the preset start device from the second topology information;
[0025] in the case that the opposite end device of the preset start device is a switch, querying whether the opposite end device of the switch is the preset end device;
[0026] in the case that the opposite end device of the switch is the preset end device, generating the first link topology information.
[0027] The above manner of the embodiment of the present application queries the opposite end device of the preset starting device, and in the case that the opposite end device is a switch, queries the opposite end device of the switch. In the case that the opposite end device is a preset ending device, the first link topology information is generated according to the queried information. The first link topology information can be completely generated.
[0028] In some possible implementation manners, the method further includes:
[0029] In the case that the opposite end device of the preset starting device is a preset ending device, the first link topology information is generated.
[0030] The above manner of the embodiment of the present application directly generates the first link topology information in the case that the opposite end device of the preset starting device is a preset ending device. The first link topology information can be quickly generated.
[0031] In some possible implementation manners, the splicing, by the management system, of the first link topology information from the user device to the preset starting device in the second topology information and the second link topology information to obtain the target network topology information includes:
[0032] The first link topology information from the user device to the preset starting device in the second topology information is spliced with the second link topology information by the management system to obtain third link topology information.
[0033] The broadband account and the third link topology information are associated to obtain the target network topology information.
[0034] The above manner of the embodiment of the present application associates the broadband account after the splicing of the first link topology information and the second link topology information. The topology information can be associated with the broadband account, and the corresponding topology information can be obtained through the broadband account subsequently.
[0035] In some possible implementation manners, the method further includes:
[0036] The target network topology information is stored to a topology information library by the management system.
[0037] The above manner of the embodiment of the present application stores the target network topology information to the topology information library, and the topology information can be used subsequently.
[0038] In some possible implementation manners, the method further includes:
[0039] In the case that the topology link restoration request is received, the target network topology information corresponding to the target broadband account is queried in the topology information library based on the target broadband account in the topology link restoration request.
[0040] The above manner of the embodiments of the present application can obtain the corresponding topology information through the broadband account number.
[0041] In some possible implementation manners, the topology link restoration request further includes VLAN information of the target broadband account number, and the method further includes:
[0042] Pruning the target network topology information corresponding to the target broadband account number based on the VLAN information to obtain link topology information in the target network topology information based on the VLAN information.
[0043] The above manner of the embodiments of the present application can remove the data link that will not be passed according to the target broadband account number in the topology information by pruning the target network topology information based on the VLAN information, and can simplify the topology information according to the target broadband account number.
[0044] In a second aspect, the present application provides a device for obtaining network topology information, and the device includes:
[0045] The obtaining module is configured to obtain a PAD packet sent by a user device through a preset starting point device in a communication network.
[0046] The obtaining module is further configured to add access side topology information in the PAD packet through the preset starting point device to obtain first topology information, wherein the access side topology information is device information of each device between the user device and the preset starting point device in the communication network.
[0047] The adding module is configured to add topology information of the preset ending point device to the first topology information through the preset ending point device to obtain second topology information in a case where the preset ending point device receives the first topology information sent by the preset starting point device, wherein the topology information of the preset ending point device is obtained based on LLDP information sent by each device in the communication network, and the topology information of the preset ending point device includes an IP address of the preset ending point device and device information of each device between the preset starting point device and the preset ending point device in the communication network.
[0048] The splicing module is configured to splice the device information of the user device to the preset starting point device and the device information of the preset starting point device to the preset ending point device to obtain the target network topology information in a case where a server receives the second topology information sent by the preset ending point device.
[0049] In a third aspect, an embodiment of the present application provides a device for obtaining network topology information, the device comprising: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the method for obtaining network topology information as described above.
[0050] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, the computer readable storage medium storing computer program instructions, the computer program instructions being executed by a processor to implement the method for obtaining network topology information as described above.
[0051] In a fifth aspect, an embodiment of the present application provides a computer program product, instructions in the computer program product being executed by a processor of an electronic device to cause the electronic device to perform the method for obtaining network topology information as described above.
[0052] The above manner of the embodiment of the present application obtains first topology information containing device information between the user device and the preset starting device, and second topology information containing device information between the preset starting device and the preset ending device in the communication network, which is obtained through LLDP information of each device in the communication network. The first topology information and the second topology information are spliced to obtain complete topology information starting from the user device. The present scheme uses two aspects of topology information to connect the network path of user online access, and then obtains the topology structure of the user completely. BRIEF DESCRIPTION OF DRAWINGS
[0053] The present application can be better understood from the following description of specific embodiments thereof, given by way of example and with reference to the accompanying drawings, in which:
[0054] Other characteristics, objects and advantages of the present application will become more apparent from the following detailed description of non-restrictive embodiments thereof, given by way of example and with reference to the enclosed drawings, in which the same or similar references designate the same or similar features.
[0055] Figure 1 is a flowchart of a method for obtaining network topology information provided by an embodiment of the present application;
[0056] Figure 2 is a network topology diagram provided by an embodiment of the present application;
[0057] Figure 3 is a topology splicing flowchart provided by an embodiment of the present application;
[0058] Figure 4 is a structure diagram of a device for obtaining network topology information provided by an embodiment of the present application;
[0059] Figure 5 Fig. 1 is a schematic diagram of a hardware structure of a device for acquiring network topology information according to an embodiment of the present application. DETAILED DESCRIPTION
[0060] Features and exemplary embodiments of various aspects of the present application will be described below in detail. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, it will be apparent to one skilled in the art that the present application can be practiced without some or all of these specific details. The description of the embodiments is merely intended to provide a better understanding of the present application by showing examples of the present application. The present application is in no way limited to any specific configuration and algorithm set forth below, but covers any modifications, replacements, and improvements of elements, components, and algorithms without departing from the spirit of the present application. In the accompanying drawings and the following description, well-known structures and techniques are not shown in order to avoid unnecessary obscuring of the present application.
[0061] PAD (PPPOE Active Discovery) packet: an active discovery packet used by the Ethernet-based point-to-point communication protocol.
[0062] With the improvement and development of network infrastructure, the scale of wired broadband networks is getting larger and larger, the structure is getting more and more complex, and the users involved are getting more and more. In order to do a good job in network quality and service awareness, network operation is under great pressure. In the operation process of wired broadband network, accurate user network topology data is needed to support business opening, user fault positioning, and service running quality analysis.
[0063] In the existing broadband network topology generation technology, the link layer topology generation can be implemented by using the link layer discovery protocol. However, since some network devices that do not belong to the link layer and user network access devices generally do not support the link layer discovery protocol, only part of the topology relationship can be described, and the topology information of the broadband user cannot be completely obtained.
[0064] The topology data in the existing resource management system is usually manually entered and updated, and the broadband service and the topology data are usually associated when the service is opened. When the network or service is cut off and adjusted, the resource management system data often cannot be updated synchronously, resulting in poor accuracy and real-time performance of the restored broadband user end-to-end topology, which seriously affects the efficiency and accuracy of broadband opening, fault positioning, service awareness analysis, and other applications.
[0065] Using the resource management system to manage the broadband user network topology relationship, and maintaining the relationship between the broadband users, services, and devices by manual entry, has the problems of poor real-time performance, high maintenance cost, and poor efficiency and accuracy of problem positioning, which affects the opening of the service.
[0066] The inventor has found that the existing topology restoration methods have certain limitations and cannot obtain complete topology information. By combining link layer topology generation technology and user access line identification technology, a complete network end-to-end topology can be restored, and on this basis, an end-to-end user service resource full view from the user service starting point to the service ending point, including access location information, network devices and links, can be established.
[0067] In one embodiment of the method for obtaining network topology information, the method can be implemented by referring to the device for obtaining network topology information. Figure 1 In this embodiment, the method can be executed by the device for obtaining network topology information described above, and the method includes the following steps S101-S104.
[0068] Step S101: obtaining a PAD packet sent by a user device through a preset starting device in a communication network.
[0069] The preset starting device can be a starting network device using a link layer discovery protocol, which is defined in advance.
[0070] The user device can be a device required by a user to access a network, such as a modem.
[0071] In a specific implementation, some data collectors can be deployed to obtain the PAD packet sent by the user device. These data collectors usually exist in the form of embedded devices or software applications, and can intercept and record data packets at specific positions in the network.
[0072] Step S102: adding access side topology information in the PAD packet through the preset starting device to obtain first topology information, wherein the access side topology information is device information of each device between the user device and the preset starting device in the communication network.
[0073] In a specific implementation, the format and content of the access side topology information are defined in advance. In the communication network, a plurality of devices are passed between the user device and the preset starting device, and it is necessary to define which device information is included in the access side topology information, and how to organize and represent these information. When receiving and forwarding the PAD packet, each device between the user device and the preset starting device adds its own device information into the PAD packet according to the format described above.
[0074] Step S103: In the case that the preset end device receives the first topology information sent by the preset start device, the preset end device adds topology information of the preset end device to the first topology information to obtain second topology information, wherein the topology information of the preset end device is obtained based on LLDP information sent by each device in the communication network, and the topology information of the preset end device includes an IP address of the preset end device and device information of each device between the preset start device and the preset end device in the communication network.
[0075] The preset end device can be predefined, and the network device that finally ends can use a link layer discovery protocol.
[0076] The link layer discovery protocol (LLDP) can be a protocol that enables devices in a network to discover each other and announce states and interaction information.
[0077] In a specific implementation, the topology information of the preset end device, that is, the format and content related to the link layer discovery protocol, is predefined. The topology information of the preset end device needs to include an IP address of the preset end device and device information of each device between the preset start device and the preset end device in the communication network.
[0078] When the preset end device receives the first topology information, a software module can collect topology information of related devices by using the LLDP protocol and add the topology information to the first topology information to generate second topology information. The second topology information can include device information of all devices between the preset start device and the preset end device and connection relationships and a topology structure among the devices.
[0079] Step S104: In the case that the server receives the second topology information sent by the preset end device, device information of the user device to the preset start device and device information of the preset start device to the preset end device are spliced to obtain the target network topology information.
[0080] In a specific implementation, device information of the user device to the preset start device and device information of the preset start device to the preset end device are merged to construct complete topology information of the target network.
[0081] The above manner of the embodiment of the present application obtains the first topology information containing the device information between the user equipment and the preset starting point device, and the second topology information containing the device information between the preset starting point device and the preset ending point device in the communication network obtained through the LLDP information of each device in the communication network. The first topology information and the second topology information are spliced to obtain the complete topology information starting from the user equipment. The scheme uses two aspects of topology information to connect the network path of the user online access, and then completely obtains the topology structure of the user.
[0082] In some embodiments, the access side topology information includes an IP address of the preset starting point device accessed by the broadband account, a preset starting point device port accessed by the broadband account, a user equipment number accessed by the broadband account, and a user equipment serial number accessed by the broadband account.
[0083] The above manner of the embodiment of the present application adds the IP address of the preset starting point device, the preset starting point device port accessed by the broadband account, the user equipment number accessed by the broadband account, and the user equipment serial number accessed by the broadband account in the access side topology information. This is helpful for associating the user broadband account with the device.
[0084] In some embodiments, the topology information of the preset ending point device includes a preset ending point device port type accessed by the broadband service, a single board slot and a physical port number accessed by the broadband service, a service VLAN used by the broadband service and a VLAN of the user equipment.
[0085] The above manner of the embodiment of the present application adds the preset ending point device port type accessed by the broadband service, the single board slot and the physical port number accessed by the broadband service, the service VLAN used by the broadband service and the VLAN of the user equipment in the topology information of the preset ending point device. This is helpful for determining the virtual local area network used by the user.
[0086] In some embodiments, the adding of the topology information of the preset ending point device to the first topology information by the preset ending point device includes:
[0087] The preset ending point device expands the field of the first topology information, and writes the topology information of the preset ending point device on the expanded field.
[0088] In a specific implementation, the preset ending point device receives and parses the first topology information, and adds an expansion field. The expansion field can be part of the first topology information and placed in a specific position of a data packet, such as a data packet header, a payload or other positions.
[0089] The above manner of the embodiments of the present application extends the field of the first topology information at the preset end-point device, and writes the topology information of the preset end-point device in the extended field. The topology information of the preset end-point device is also added to the first topology information.
[0090] In some embodiments, the splicing of the device information from the user device to the preset start-point device and from the preset start-point device to the preset end-point device to obtain the target network topology information comprises:
[0091] The server sends the second topology information to the asset management system.
[0092] The asset management system can be a special system for network management.
[0093] In a specific implementation, when the server receives the second topology information, the server sends the second topology information to the asset management system through the connection established with the asset management system.
[0094] The asset management system traverses the device information from the preset start-point device to the preset end-point device in the second topology information to obtain first link topology information from the preset start-point device to the preset end-point device.
[0095] In a specific implementation, according to the obtained device information, the asset management system can construct a device relationship graph for representing the connection relationship between devices. This can be represented by using a related data structure, such as an adjacency list, an adjacency matrix, etc. Specifically, using a traversal algorithm, the asset management system starts from the preset start-point device, traverses all connected devices, and stops until the preset end-point device is reached. When the traversal algorithm finds the first path from the preset start-point device to the preset end-point device, the asset management system can extract the device information on the path to form the first link topology information. This includes the unique identifier of each device on the path, connection port information, etc.
[0096] The asset management system splices the first link topology information from the user device to the preset start-point device in the second topology information and the second link topology information to obtain the target network topology information.
[0097] In a specific implementation, the splicing operation can be performed according to the parsed first link topology information and second link topology information. Specifically, the start-point device of the first link topology information can be connected with the corresponding start-point device of the second link topology information to form a complete link. Thus, the target network topology information is obtained.
[0098] The above manner of the embodiment of the application obtains second topology information, traverses device information from a preset starting device to a preset terminal device in the second topology information to obtain first link topology information, and then splices the first link topology information and second link topology information to obtain target network topology information. The topology information can be accurately spliced.
[0099] In some embodiments, by the asset management system, traversing device information from a preset starting device to a preset terminal device in the second topology information, first link topology information from the preset starting device to the preset terminal device is obtained, including:
[0100] The asset management system queries information of a peer device of the preset starting device from the second topology information.
[0101] In a specific implementation, according to a unique identifier of the preset starting device, a device directly connected to the preset starting device, that is, a peer device, can be found. When the peer device is found, the asset management system can extract detailed information of the device, including a unique identifier, a device type, connection port information, and the like.
[0102] In a case where the peer device of the preset starting device is a switch, it is queried whether a peer device of the switch is the preset terminal device.
[0103] In a specific implementation, after the peer device is found, it can be judged whether the type of the device is a switch. This can be judged by attributes or characteristics of the device, such as a device type field of the device. If the peer device is a switch, a peer device of the switch can be further queried. This can be achieved by querying connection port information of the switch to find a device connected to the switch.
[0104] In a case where the peer device of the switch is the preset terminal device, the first link topology information is generated.
[0105] In a specific implementation, if the peer device of the switch is the preset terminal device, according to device information obtained in a continuous query process, the first link topology information is generated.
[0106] The above manner of the embodiment of the application queries a peer device of a preset starting device, queries a peer device of a switch in a case where the peer device is a switch, and generates first link topology information according to the queried information in a case where the peer device is a preset terminal device. The first link topology information can be completely generated.
[0107] In some embodiments, the scheme further includes:
[0108] In a case where the peer device of the preset starting point device is a preset terminal point device, the first link topology information is generated.
[0109] In a specific implementation, after the port connection information of the preset starting point device is queried, it is determined whether the peer device of the preset starting point device is a preset terminal point device. This can be determined by comparing the unique identifier of the peer device with the unique identifier of the preset terminal point device. If the peer device of the preset starting point device is the preset terminal point device, the first link topology information can be extracted by the asset management system.
[0110] The above manner of the embodiment of the present application can quickly generate the first link topology information by directly generating the first link topology information in a case where the peer device of the preset starting point device is a preset terminal point device.
[0111] In some embodiments, the target network topology information is obtained by splicing, by the asset management system, the first link topology information from the user device to the preset starting point device in the second topology information and the second link topology information.
[0112] The third link topology information is obtained by splicing, by the asset management system, the first link topology information from the user device to the preset starting point device in the second topology information and the second link topology information.
[0113] In a specific implementation, the first link topology information from the user device to the preset starting point device and the second link topology information are extracted from the second topology information. The related parts of the first link topology information and the second link topology information are merged to form complete third link topology information.
[0114] The target network topology information is obtained by associating the broadband account and the third link topology information.
[0115] In a specific implementation, the broadband account is associated with the third link topology information. This can be achieved by matching the broadband account with some fields (such as device unique identifier, network segment, etc.) in the third link topology information. The target network topology information is generated according to the result after association.
[0116] The above manner of the embodiment of the present application can associate the topology information with the broadband account after splicing the first link topology information and the second link topology information. This can facilitate subsequent obtaining of corresponding topology information through the broadband account.
[0117] In some embodiments, the present solution further includes:
[0118] The target network topology information is stored to a topology information library by the asset management system.
[0119] In a specific implementation, the obtained target network topology information can be formatted to meet the data structure and format requirements of the topology information library. The formatted target network topology information is submitted to the asset management system, and the asset management system is instructed to store the information in the topology information library. This can call the related interfaces or services provided by the asset management system to perform data storage operations.
[0120] The above-mentioned manner of the embodiments of the present application stores the target network topology information into the topology information library, facilitating the subsequent use of the topology information.
[0121] In some embodiments, the present solution further includes:
[0122] In the case of receiving a topology link restoration request, the target network topology information corresponding to the target broadband account is queried in the topology information library based on the target broadband account in the topology link restoration request.
[0123] In a specific implementation, a topology link restoration request is required, which contains information such as a target broadband account. The topology information library is queried to find the target network topology information corresponding to the target broadband account.
[0124] The above-mentioned manner of the embodiments of the present application queries the target network topology information corresponding to the target broadband account according to the target broadband account in the restoration request after receiving the topology link restoration request. The corresponding topology information can be obtained through the broadband account.
[0125] In some embodiments, the topology link restoration request further includes VLAN information of the target broadband account, and the method further includes:
[0126] The target network topology information corresponding to the target broadband account is pruned based on the VLAN information to obtain link topology information in the target network topology information based on the VLAN information.
[0127] In a specific implementation, the VLAN information corresponding to the target broadband account is parsed. Based on the parsed VLAN information, the software can prune the target network topology information. The pruning process includes screening out links and devices matching the VLAN information and removing parts unrelated to the VLAN information. Thus, link topology information in the target network topology information based on the VLAN information is obtained.
[0128] The above-mentioned manner of the embodiments of the present application prunes the target network topology information based on the VLAN information, removes data links that will not be passed according to the target broadband account in the topology information, and can simplify the topology information according to the target broadband account.
[0129] As another implementation of the present application, the topology information of the access network is carried in the PAD message during wideband user dialing. For example, the key information such as the user access optical modem, the port of the optical modem uplink, the single board slot and the optical line terminal (OLT) IP is carried.
[0130] The optical line terminal device captures the PAD message, inserts the access side topology information carried in the PAD message, and submits the message to the broadband remote access server (BRAS). The access network topology information in the broadband dialing PAD message is parsed by the BRAS device. Then the topology information field is extended, and the BRAS related information is written. The extended information can include: the BRAS side port type of the broadband service access, the single board slot and the physical port number of the broadband service access, and the service VLAN and user VLAN used by the broadband service. The BRAS encapsulates and sends the extended topology information to the remote user dialing authentication system, and the remote user dialing authentication system associates the broadband account number, the IP address of the BRAS and the topology information, and then submits them to the management system. The management system stores them in the topology information library.
[0131] The access network OLT and the data metropolitan area network each level device use LLDP to collect the LLDP key topology information of each level device. After the collection is completed, the data is submitted to the resource management system for topology assembly. Specifically, for the OLT, the OLT system name and management IP address, all active uplink ports in the OLT, the VLAN transmitted by each uplink port, and the LLDP neighbor information corresponding to each uplink port are collected by the simple network management protocol (SNMP) method. The LLDP neighbor information mainly includes the remote device and the remote port. For the switch device, the switch device system name and management IP address, all active Ethernet ports of the switch, and the LLDP neighbor information of the Ethernet port are collected. The LLDP neighbor information mainly includes the remote device and the remote port. For the BRAS device, the BRAS device system name and management IP address, the active Ethernet port of the BRAS, and the LLDP neighbor information of the active Ethernet port are collected. The LLDP neighbor information mainly includes the remote device and the remote port.
[0132] Then, taking the access network OLT device as the starting device and the BARS as the terminal device, the topology information of the opposite device and port of each level device is recursively queried, and the topology assembly is performed hop by hop until the terminal is reached. The assembled link topology is stored in the topology information library. The topology obtained after assembly is as shown in Figure 2 .
[0133] The specific splicing process is as shown in Figure 3As shown, from OTL, the opposite device type of the network device is inquired continuously until BARS is inquired. Then, according to the device information obtained by the inquiry, the topology model is obtained.
[0134] In the topology information library, the broadband account and the corresponding topology can be inquired to obtain the user account and the topology information of the optical modem and the OLT. According to the OLT device name, the metropolitan area network switch connected to the OLT is inquired in the LLDP topology information library to obtain the topology information of the OLT device and the corresponding metropolitan area network switch. Then, according to the VLAN information corresponding to the account, the link topology is pruned, and the link topology information not passing through the VLAN is removed in the topology. According to the BRAS interface information corresponding to the account, the BRAS related topology data is inquired in the LLDP information library, and the metropolitan area network switch is associated to restore the topology. The broadband user online location positioning, the network device path concatenation and the topology restoration are completed.
[0135] Compared with the prior art, the application uses multiple technologies to discover and concatenate the network path of the user online access, and is suitable for multiple mainstream broadband networks. The broadband online access path from the user side to the BRAS can be quickly realized, and the topology discovery and restoration are completed, and the topology path is complete. The broadband user account and the network topology can be accurately associated, and the accuracy is not affected by the service / network segmentation.
[0136] Based on the method for obtaining network topology information provided in the above embodiment, the application also provides a specific implementation mode of a device for obtaining network topology information. Please refer to the following embodiments.
[0137] Firstly, referring to Figure 4 The device 400 for obtaining network topology information provided in the embodiment of the application comprises the following modules:
[0138] The obtaining module 401 is configured to obtain the PAD packet sent by the user device through the preset starting point device in the communication network.
[0139] The obtaining module 401 is further configured to add the access side topology information in the PAD packet through the preset starting point device to obtain the first topology information, wherein the access side topology information is the device information of each device between the user device and the preset starting point device in the communication network.
[0140] The adding module 402 is configured to, in a case where the preset end device receives the first topology information sent by the preset start device, add, by the preset end device, topology information of the preset end device to the first topology information to obtain second topology information, wherein the topology information of the preset end device is obtained based on LLDP information sent by each device in the communication network, and the topology information of the preset end device includes an IP address of the preset end device and device information of each device between the preset start device and the preset end device in the communication network.
[0141] The splicing module 403 is configured to, in a case where the server receives the second topology information sent by the preset end device, splice device information of the user device to the preset start device and device information of the preset start device to the preset end device to obtain the target network topology information.
[0142] The above manner of the embodiment of the present application obtains the first topology information containing device information between the user device and the preset start device, and the second topology information containing device information between the preset start device and the preset end device in the communication network, which is obtained based on LLDP information of each device in the communication network. The first topology information and the second topology information are spliced to obtain complete topology information starting from the user device. The present application uses two aspects of topology information to connect the network path of user online access, and then completely obtains the topology structure of the user.
[0143] As an implementation manner of the present application, the device 400 for obtaining network topology information further includes:
[0144] The writing module is configured to extend a field of the first topology information by the preset end device, and write the topology information of the preset end device on the extended field.
[0145] The above manner of the embodiment of the present application extends a field of the first topology information by the preset end device, and writes the topology information of the preset end device on the extended field. The topology information of the preset end device is also added to the first topology information.
[0146] As an implementation manner of the present application, the device 400 for obtaining network topology information further includes:
[0147] The sending module is configured to send the second topology information to the management system by the server.
[0148] The traversal module is configured to traverse, by the asset management system, device information from a preset starting device to a preset terminal device in the second topology information to obtain first link topology information from the preset starting device to the preset terminal device.
[0149] The splicing module is configured to splice, by the asset management system, the first link topology information from the user device to the preset starting device in the second topology information and the second link topology information to obtain the target network topology information.
[0150] The above manner of the embodiment of the present application can accurately splice topology information by obtaining the second topology information, traversing device information from a preset starting device to a preset terminal device in the second topology information to obtain first link topology information, and then splicing the first link topology information and the second link topology information to obtain target network topology information.
[0151] As an implementation manner of the present application, the device 400 for obtaining network topology information further includes:
[0152] The query module is configured to query, by the asset management system, information of a peer device of the preset starting device from the second topology information.
[0153] The query module is further configured to, in a case where the peer device of the preset starting device is a switch, query whether a peer device of the switch is the preset terminal device.
[0154] The generation module is configured to, in a case where the peer device of the switch is the preset terminal device, generate the first link topology information.
[0155] The above manner of the embodiment of the present application can completely generate the first link topology information by querying the peer device of the preset starting device, querying the peer device of the switch in a case where the peer device is a switch, and generating the first link topology information according to the queried information in a case where the queried peer device is the preset terminal device.
[0156] As an implementation manner of the present application, the device 400 for obtaining network topology information further includes:
[0157] The generation module is configured to, in a case where the peer device of the preset starting device is the preset terminal device, generate the first link topology information.
[0158] The above manner of the embodiment of the present application can quickly generate the first link topology information by directly generating the first link topology information in a case where the peer device of the preset starting device is the preset terminal device.
[0159] As an implementation manner of the present application, the device 400 for acquiring network topology information further comprises:
[0160] The splicing module is configured to splice, by the management system, first link topology information from the user equipment to the preset starting point equipment in the second topology information and the second link topology information to obtain third link topology information.
[0161] The association module is configured to associate the broadband account and the third link topology information to obtain the target network topology information.
[0162] The above manner of the present application embodiment can associate the topology information with the broadband account, and the corresponding topology information can be obtained through the broadband account subsequently.
[0163] As an implementation manner of the present application, the device 400 for acquiring network topology information further comprises:
[0164] The storage module is configured to store, by the management system, the target network topology information to a topology information library.
[0165] The above manner of the present application embodiment can facilitate the use of the topology information subsequently by storing the target network topology information to the topology information library.
[0166] As an implementation manner of the present application, the device 400 for acquiring network topology information further comprises:
[0167] The query module is configured to, in the case of receiving a topology link restoration request, query, in the topology information library, target network topology information corresponding to a target broadband account based on the target broadband account in the topology link restoration request.
[0168] The above manner of the present application embodiment can obtain the corresponding topology information through the broadband account by querying the target network topology information corresponding to the target broadband account according to the target broadband account in the restoration request after receiving the topology link restoration request.
[0169] As an implementation manner of the present application, the device 400 for acquiring network topology information further comprises:
[0170] The pruning module is configured to prune the target network topology information corresponding to the target broadband account based on the VLAN information to obtain link topology information in the target network topology information based on the VLAN information.
[0171] The above manner of the embodiments of the present application prunes the target network topology information based on the VLAN information, removes data links that will not be passed according to the target broadband account from the topology information, and can simplify the topology information according to the target broadband account.
[0172] The device for acquiring network topology information provided by the embodiments of the present application can implement each step of the method for acquiring network topology information and achieve the corresponding effects. For brevity, the details are not described herein.
[0173] Figure 5 The structure of the hardware for acquiring network topology information provided by the embodiments of the present application is shown.
[0174] The device for acquiring network topology information can include a processor 501 and a memory 502 storing computer program instructions.
[0175] Specifically, the processor 501 can include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or can be configured as one or more integrated circuits implementing the embodiments of the present application.
[0176] The memory 502 can include a mass storage for data or instructions. For example, but not limited to, the memory 502 can include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of the above. The memory 502 can include removable or non-removable (or fixed) media, as appropriate. The memory 502 can be internal or external to the integrated gateway disaster recovery device, as appropriate. In a particular embodiment, the memory 502 is a non-volatile solid state memory.
[0177] The memory can include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical / tangible memory storage devices. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions and, when the software is executed (e.g., by one or more processors), is operable to perform the operations described with reference to the method for acquiring network topology information according to any one of the embodiments of the present disclosure.
[0178] The processor 501 implements the method for acquiring network topology information in any of the above embodiments by reading and executing computer program instructions stored in the memory 502.
[0179] In one example, the device for acquiring network topology information can further include the communication interface 503 and the bus 510. Wherein, as shown in the figure, the processor 501, the memory 502, the communication interface 503 are connected through the bus 510 and complete the communication between each other. Figure 5
[0180] The communication interface 503 is mainly used to realize the communication between each module, device, unit and / or equipment in the embodiments of the present application.
[0181] The bus 510 includes hardware, software or both to couple components of the online data traffic billing device to each other. By way of example, and not limitation, the bus can include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand (IB) interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association local (VLB) bus, or another suitable bus or a combination of two or more of these. Where suitable, the bus 510 can include one or more buses. Although specific buses are described and illustrated in the embodiments of the present application, the present application contemplates any suitable bus or interconnect.
[0182] In addition, in combination with the method for acquiring network topology information in the above embodiments, the embodiments of the present application can provide a computer storage medium to realize. The computer storage medium has computer program instructions stored thereon; the computer program instructions are executed by the processor to implement any of the above embodiments of the method for acquiring network topology information.
[0183] However, it needs to be clear that the present application is not limited to the specific configurations and processes described above and shown in the figures. Moreover, for the sake of brevity, detailed descriptions of known methods and techniques are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after understanding the spirit of the present application.
[0184] The functional blocks shown in the structural block diagrams described above can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application specific integrated circuits (ASICs), appropriate firmware, plug-ins, functional cards, and the like. When implemented in software, the elements of the present application are program or code segments that are used to perform the required tasks. The program or code segments can be stored in a machine-readable medium, or transmitted through a data signal carried in a carrier wave over a transmission medium or communication link. A "machine-readable medium" includes any medium that can store or transport the information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber-optic media, radio frequency (RF) links, and the like. The code segments can be downloaded via computer networks such as the Internet, intranets, and the like.
[0185] The present application can be implemented in other specific forms without departing from the spirit and essential characteristics thereof. For example, the algorithms described in the specific embodiments can be modified without departing from the essential spirit of the present application. Thus, the current embodiments are to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the description presented above, and all changes which come within the meaning and equivalency range of the claims are intended to be embraced therein.
[0186] It will be appreciated by persons skilled in the art that the above-described embodiments are merely examples and are not limiting on the scope of the application. Different features of the different embodiments described can be combined to achieve yet further embodiments. Other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from an study of the drawings, the disclosure, and the appended claims. In the claims, the term "comprising" does not exclude other elements or steps; the indefinite article "a" or "an" does not exclude a plurality; the term "first" does not imply "second" excludes the same as "first"; the use of "one" does not exclude more than one; and the use of "at least one" does not exclude more than one. The term "about" does not exclude "exactly". Any reference signs in the claims should not be construed as limiting the scope of the claims. The functions of the different features of the aspects of the application can be performed by a single hardware or software module. The features of the different aspects of the application appearing in different dependent claims are not mutually exclusive; combinations of features of the dependent claims can be made without departing from the scope of the application.
Claims
1. A method for obtaining network topology information, characterized in that, The method includes: Obtain PAD messages sent by user equipment through a preset starting device in the communication network; The access-side topology information is added to the PAD message by the preset starting device to obtain the first topology information, wherein the access-side topology information is the device information of each device from the user equipment to the preset starting device in the communication network; When the preset endpoint device receives the first topology information sent by the preset origin device, the preset endpoint device adds its own topology information to the first topology information to obtain second topology information. The topology information of the preset endpoint device is obtained based on LLDP information sent by each device in the communication network. The topology information of the preset endpoint device includes the IP address of the preset endpoint device and the device information of each device in the communication network from the preset origin device to the preset endpoint device. When the server receives the second topology information sent by the preset endpoint device, it concatenates the device information from the user equipment to the preset starting device and from the preset starting device to the preset endpoint device to obtain the target network topology information.
2. The method for obtaining network topology information according to claim 1, characterized in that, The access-side topology information includes the IP address of the preset starting device for broadband account access, the port of the preset starting device for broadband account access, the user equipment number for broadband account access, and the serial number of the user equipment for broadband account access.
3. The method for obtaining network topology information according to claim 1, characterized in that, The topology information of the preset endpoint device includes the port type of the preset endpoint device for broadband service access, the board slot and physical port number for broadband service access, the service VLAN used by the broadband service, and the VLAN of the user equipment.
4. The method for obtaining network topology information according to claim 1, characterized in that, The step of adding the topology information of the preset endpoint device to the first topology information through the preset endpoint device includes: The fields of the first topology information are extended by the preset endpoint device, and the topology information of the preset endpoint device is written into the extended fields.
5. The method for obtaining network topology information according to any one of claims 1 to 4, characterized in that, The step of concatenating the device information from the user equipment to the preset starting device, and from the preset starting device to the preset ending device, to obtain the target network topology information includes: The second topology information is sent to the asset management system via the server; The asset management system iterates through the device information from the preset starting device to the preset ending device in the second topology information to obtain the first link topology information from the preset starting device to the preset ending device. The asset management system concatenates the first link topology information from the user equipment to the preset starting point equipment in the second topology information with the second topology information to obtain the target network topology information.
6. The method for obtaining network topology information according to claim 5, characterized in that, The step of traversing the device information from the preset starting device to the preset ending device in the second topology information through the asset management system to obtain the first link topology information from the preset starting device to the preset ending device includes: The asset management system queries the information of the peer device of the preset starting point device from the second topology information. If the peer device of the preset starting device is a switch, query whether the peer device of the switch is the preset ending device; When the peer device of the switch is a preset endpoint device, the first link topology information is generated.
7. The method for obtaining network topology information according to claim 6, characterized in that, Also includes: When the peer device of the preset starting device is the preset ending device, the first link topology information is generated.
8. The method for obtaining network topology information according to claim 5, characterized in that, The step of concatenating the first link topology information from the user equipment to the preset starting point device in the second topology information with the second topology information through the asset management system to obtain the target network topology information includes: The asset management system concatenates the first link topology information from the user equipment to the preset starting point equipment in the second topology information with the second topology information to obtain the third link topology information; The target network topology information is obtained by associating the broadband account with the third link topology information.
9. The method for obtaining network topology information according to claim 8, characterized in that, Also includes: The target network topology information is stored in the topology information database through the asset management system.
10. The method for obtaining network topology information according to claim 9, characterized in that, Also includes: Upon receiving a topology link restoration request, the target network topology information corresponding to the target broadband account is queried from the topology information database based on the target broadband account in the topology link restoration request.
11. The method for obtaining network topology information according to claim 10, characterized in that, The topology link restoration request also includes the VLAN information of the target broadband account, and the method further includes: Based on the VLAN information, the target network topology information corresponding to the target broadband account is trimmed to obtain the link topology information based on the VLAN information in the target network topology information.
12. An apparatus for acquiring network topology information, characterized in that, The device includes: The acquisition module is used to acquire PAD messages sent by user equipment through a preset starting device in the communication network; The acquisition module is further configured to add access-side topology information to the PAD message through the preset starting device to obtain first topology information, wherein the access-side topology information is the device information of each device from the user equipment to the preset starting device in the communication network; An adding module is used to add the topology information of the preset endpoint device to the first topology information when the preset endpoint device receives the first topology information sent by the preset starting device, thereby obtaining second topology information. The topology information of the preset endpoint device is obtained based on LLDP information sent from each device in the communication network. The topology information of the preset endpoint device includes the IP address of the preset endpoint device and the device information of each device in the communication network from the preset starting device to the preset endpoint device. The splicing module is used to splice the device information from the user equipment to the preset starting device and from the preset starting device to the preset ending device when the server receives the second topology information sent by the preset ending device, so as to obtain the target network topology information.
13. A device for acquiring network topology information, characterized in that, The device includes: a processor and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the method for obtaining network topology information as described in any one of claims 1-11.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the method for obtaining network topology information as described in any one of claims 1-11.
15. A computer program product, characterized in that, When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device performs the method for obtaining network topology information as described in any one of claims 1-11.
Citation Information
Patent Citations
System, method and server for obtaining network topology
CN109831318A
Model topology information generation method and device, storage medium and processor
CN115761113A