A method and device for restoring topology of a video-oriented private line
Patent Information
- Application Number
- CN202510738327.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-04
- Publication Date
- 2026-08-18
- Estimated Expiration
- 2045-06-04
AI Technical Summary
[0005]本申请实施例提供一种面向视频专线的拓扑还原方法及装置,以解决传统拓扑还原方法准确性低的问题
[0016] As can be seen from the above, this application provides a method and apparatus for topology restoration of video leased lines. The method includes: selecting any video acquisition terminal in the video leased line as the target terminal for the video leased line whose topology relationship needs to be restored; determining the uplink and downlink relationships corresponding to the target terminal through target methods; wherein, the uplink relationship refers to the connection relationship between the target terminal and its uplink Broadband Remote Access Unit (BRAS), Optical Line Terminal (OLT), and Optical Network Unit (ONU); the downlink relationship refers to the connection relationship between the ONU connected to the target terminal and its downlink associated terminals; the associated terminals are other video acquisition terminals connected to the ONU connected to the target terminal in the video leased line, excluding the target terminal; the target methods include one or more of the following: filtering by location, filtering by physical address, instruction query, message parsing, traversing terminal status, and restarting the ONU by instruction; and concatenating based on the uplink and downlink relationships to obtain the video leased line topology. The method provided by this application can automatically organize, automatically associate, and automatically construct network topology data between BRAS-OLT-PON port-ONU-video acquisition terminal without manual data filtering, and the topology accuracy is high.
Smart Images

Figure CN120416054B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technology, and in particular to a method and apparatus for topology restoration of video leased lines. Background Technology
[0002] Broadband leased line service refers to providing users with dedicated, fixed-bandwidth, stable, and high-performance network connection services, typically used for the communication needs of government and enterprises. Unlike ordinary home broadband access, leased line service provides users with an independent and dedicated network channel, i.e., a dedicated transmission line, avoiding the sharing of bandwidth with other users, thereby ensuring higher network stability, bandwidth guarantee, and low latency.
[0003] As government and enterprise business increases, their usage frequency of leased transmission lines is rising, and their requirements for network stability and user experience are also increasing. These high service quality requirements depend on the accuracy of the underlying resource topology of the leased transmission lines. Currently, methods for restoring the underlying resource topology of leased transmission lines mainly include manual compilation and borrowing PPPoE+ or PON network management data.
[0004] However, manual data organization is time-consuming and labor-intensive, and the accuracy of the topology is greatly affected by human factors. Using PPPoE+ or PON network management data, on the other hand, can lead to complex PPPoE+ or PON network management data due to the existence of various modes, such as optical line terminals (OLTs) carrying both personal services (e.g., home broadband) and leased line services, or one OLT carrying only personal services while another carries only leased line services. This can result in data omissions during topology restoration, preventing comprehensive topology coverage and reducing the accuracy of the restoration. Summary of the Invention
[0005] This application provides a method and apparatus for topology restoration of video leased lines to solve the problem of low accuracy in traditional topology restoration methods.
[0006] In a first aspect, embodiments of this application provide a method for topology restoration of video leased lines. The method includes: selecting any video acquisition terminal in the video leased line as a target terminal for the video leased line whose topology relationship needs to be restored; determining the uplink and downlink relationships corresponding to the target terminal through a target method; wherein, the uplink relationship refers to the connection relationship between the target terminal and its uplink Broadband Remote Access Unit (BRAS), Optical Line Terminal (OLT), and Optical Network Unit (ONU); the downlink relationship refers to the connection relationship between the ONU connected to the target terminal and its downlink associated terminals; the associated terminals are other video acquisition terminals connected to the ONU connected to the target terminal in the video leased line, excluding the target terminal; the target method includes one or more of the following: filtering by location, filtering by physical address, instruction query, message parsing, traversing terminal status, and restarting the ONU by instruction; and concatenating based on the uplink and downlink relationships to obtain the video leased line topology.
[0007] In one possible implementation, the steps of determining the uplink and downlink relationships corresponding to the target terminal through a target-oriented approach include: determining the first latitude and longitude of the geographical location of the target terminal, and determining a first filtering range based on the first latitude and longitude; determining the second latitude and longitude of the geographical location of each OLT in the OLT set, and determining a second filtering range based on the second latitude and longitude, wherein the OLT set includes all OLTs in the target area where the video leased line is located; determining a second filtering range whose overlap with the first filtering range is greater than a preset threshold, as the target filtering range; and determining the OLTs corresponding to the target filtering range as OLTs to be filtered, thereby obtaining the OLT dataset.
[0008] In one possible implementation, after determining the OLT corresponding to the target filtering range as the OLT to be filtered and obtaining the OLT dataset, the method further includes: executing a first query instruction for each OLT to be filtered in the OLT dataset to obtain a MAC address table corresponding to each OLT to be filtered; querying each MAC address table to determine the target MAC address table where the MAC address of the target terminal is located; determining the OLT to be filtered corresponding to the target MAC address table as the target OLT, and the target terminal and the target OLT have an uplink relationship.
[0009] In one possible implementation, after determining the target OLT corresponding to the target MAC address table, the method further includes: executing a second query instruction on the target OLT to form a first ONU dataset based on the query results, the first ONU dataset including all ONUs connected to the target OLT; obtaining PPPoE+ packets related to personal services in the target area within a first preset time period, personal services including home broadband services; parsing the PPPoE+ packets to obtain OLT IP information and ONU sn information; determining the ONUs in the first ONU dataset used to carry personal services based on the OLT IP information and ONU sn information; deleting the ONUs in the first ONU dataset used to carry personal services to obtain a second ONU dataset, the second ONU dataset including the filtered ONUs.
[0010] In one possible implementation, after deleting the ONUs to be screened from the first ONU dataset used to carry personal services to obtain the second ONU dataset, the method further includes: executing a restart command for each of the screened ONUs; after the screened ONUs restart, if the target terminal's terminal state is in a first state, it is determined that the target terminal and the screened ONUs do not have an uplink relationship, the first state including the target terminal remaining online or remaining offline for a long time; if the target terminal's terminal state is in a second state, it is determined that the screened ONU is the target ONU; wherein, the target terminal and the target ONU have an uplink relationship, the second state including the target terminal's terminal state switching from online to offline, and switching from offline to online within a second preset time period.
[0011] In one possible implementation, if the target terminal's terminal state is in the second state, after determining that the filtered ONU is the target ONU, the method further includes: traversing the terminal states of all video acquisition terminals in the target area to determine the terminals to be filtered; wherein, after each filtered ONU restarts, the terminal state change pattern of the terminals to be filtered is the same as that of the target terminal; determining a third filtering range based on the first latitude and longitude, the third filtering range being smaller than the first filtering range; and determining the terminals to be filtered within the third filtering range as associated terminals, with the target ONU and the associated terminals having a downstream relationship.
[0012] In one possible implementation, if the target terminal is in the second state, after determining that the filtered ONU is the target ONU, the method further includes: executing a third query instruction on the target OLT to obtain the ONU list for each PON port of the target OLT; determining the PON port with an uplink relationship to the target ONU based on the ONU list; and after determining the OLT to be filtered corresponding to the target MAC address table as the target OLT, the method further includes: executing a fourth query instruction on the target OLT to obtain the LLDP message; and determining the target BRAS based on the LLDP message, wherein the target OLT and the target BRAS have an uplink relationship.
[0013] In one possible implementation, the method further includes: acquiring offline alarm data corresponding to alarm ONUs within a third preset time period; wherein the ONU offline alarm data is generated after the alarm ONU experiences an offline fault; for each alarm ONU, based on the offline alarm data, determining its offline time point and its corresponding fourth filtering range; identifying video acquisition terminals that are offline within the fourth preset time period after the offline time point and fall within the fourth filtering range as terminals to be updated, thus obtaining a first terminal dataset; for each alarm ONU, determining the online time point at which it recovers from an offline state to an online state; and deleting, for the first terminal dataset, terminals that remain offline within the fourth preset time period after the online time point, thus obtaining a second terminal dataset.
[0014] In one possible implementation, after deleting the terminals to be updated that remained offline within a fourth preset time period after the online time point in the first terminal dataset to obtain the second terminal dataset, the method further includes: obtaining the historical latitude and longitude of each terminal to be updated in the second terminal dataset, where the historical latitude and longitude correspond to the geographical location of each terminal to be updated in the second terminal dataset at the offline time point or the online time point; obtaining the real-time latitude and longitude of each terminal to be updated in the second terminal dataset; deleting the terminals to be updated whose historical latitude and longitude do not overlap with the real-time latitude and longitude in the second terminal dataset to obtain the third terminal dataset; and updating the video acquisition terminals connected to the alarm ONUs in the video leased line topology as terminals to be updated, thereby updating the video leased line topology.
[0015] Secondly, embodiments of this application provide a topology restoration device for video leased lines. The device includes: a terminal determination module, used to select any video acquisition terminal in the video leased line as the target terminal for the video leased line whose topology relationship needs to be restored; an association module, used to determine the uplink and downlink relationships corresponding to the target terminal through target methods; wherein, the uplink relationship refers to the connection relationship between the target terminal and its uplink Broadband Remote Access Unit (BRAS), Optical Line Terminal (OLT), and Optical Network Unit (ONU); the downlink relationship refers to the connection relationship between the ONU connected to the target terminal and its downlink associated terminals; the associated terminals are other video acquisition terminals connected to the ONU connected to the target terminal in the video leased line, excluding the target terminal; the target methods include one or more of the following: filtering by location, filtering by physical address, instruction query, message parsing, traversing terminal status, and restarting the ONU by instruction; and a topology restoration module, used to perform concatenation based on the uplink and downlink relationships to obtain the video leased line topology.
[0016] As can be seen from the above, this application provides a method and apparatus for topology restoration of video leased lines. The method includes: selecting any video acquisition terminal in the video leased line as the target terminal for the video leased line whose topology relationship needs to be restored; determining the uplink and downlink relationships corresponding to the target terminal through target methods; wherein, the uplink relationship refers to the connection relationship between the target terminal and its uplink Broadband Remote Access Unit (BRAS), Optical Line Terminal (OLT), and Optical Network Unit (ONU); the downlink relationship refers to the connection relationship between the ONU connected to the target terminal and its downlink associated terminals; the associated terminals are other video acquisition terminals connected to the ONU connected to the target terminal in the video leased line, excluding the target terminal; the target methods include one or more of the following: filtering by location, filtering by physical address, instruction query, message parsing, traversing terminal status, and restarting the ONU by instruction; and concatenating based on the uplink and downlink relationships to obtain the video leased line topology. The method provided by this application can automatically organize, automatically associate, and automatically construct network topology data between BRAS-OLT-PON port-ONU-video acquisition terminal without manual data filtering, and the topology accuracy is high. Attached Figure Description
[0017] Figure 1 A schematic diagram of the underlying resource topology for video leased lines provided in the embodiments of this application;
[0018] Figure 2 A flowchart illustrating the topology restoration method for video leased lines provided in this application embodiment;
[0019] Figure 3 This is a schematic diagram of a first process for determining a target OLT, provided in an embodiment of this application.
[0020] Figure 4 This is a schematic diagram of a second process for determining a target OLT, provided in an embodiment of this application.
[0021] Figure 5 This is a schematic diagram of a first process for determining a target ONU provided in an embodiment of this application;
[0022] Figure 6 This is a schematic diagram of a second process for determining the target ONU provided in an embodiment of this application;
[0023] Figure 7 A schematic diagram illustrating the process of updating the topology based on historical alarm data, provided in an embodiment of this application;
[0024] Figure 8 This is a schematic diagram of the topology restoration device for video leased lines provided in an embodiment of this application. Detailed Implementation
[0025] To enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of this application.
[0026] Before introducing the technical solutions of the embodiments of this application, the terminology involved in the embodiments of this application will be introduced by way of example.
[0027] 1. Video Leased Line: A dedicated communication line for transmitting video signals, providing stable, high-speed, and low-latency data transmission services to ensure smooth transmission of video signals between the sending and receiving ends; it provides a stable, high-quality transmission path to ensure the real-time performance and clarity of the video stream, avoiding the impact of bandwidth fluctuations on the ordinary Internet or public networks.
[0028] 2. Simple Network Management Protocol (SNMP): A standard protocol widely used in network management. SNMP defines a standardized communication mechanism that enables management systems to interact with managed devices. Through this protocol, management systems can remotely obtain status information of managed devices, such as device operating status, interface traffic, CPU and memory usage, in order to promptly identify problems and take appropriate measures.
[0029] 3. Optical Line Terminal (OLT): This is a core device in a fiber optic access network. OLTs are typically installed in the central office or access point of a telecommunications operator, communicating with multiple Optical Network Units (ONUs) via optical fiber. The OLT is primarily responsible for converting various service signals (such as voice, data, and video) from the upper-layer network into optical signals and distributing them to each ONU through the fiber optic distribution network.
[0030] 4. ONU: It is one of the key devices in a fiber optic access network, located near the user end, such as in a home, business, or building. The main function of the ONU is to receive optical signals from the OLT and convert them into electrical signals to provide various communication services to the user, such as high-speed Internet access, telephone service, and video transmission.
[0031] 5. PPP over Ethernet Plus (PPPoE+): This is an extension and optimization of the traditional PPPoE protocol, primarily used in broadband access scenarios such as Digital Subscriber Line (DSL) and Fiber to the Home (FTTH). PPPoE+ allows users to establish point-to-point connections with Internet Service Provider (ISP) networks via Ethernet connections.
[0032] 6. Broadband Remote Access Server (BRAS): A BRAS is a network device used to provide user authentication, authorization, and accounting (AAA) services in a broadband network. It connects multiple users to the internet or other network services and is typically located within the service provider's network, acting as a gateway for user network access. When user devices (such as computers, mobile phones, or cameras in a home) access the internet through a broadband network, they usually connect to the BRAS device first. The BRAS authenticates the user, checks their network access rights, and allocates appropriate bandwidth and resources based on the user's account information. Furthermore, the BRAS is responsible for forwarding user traffic to the core network so that users can access various resources on the internet. The BRAS plays a crucial role in broadband networks, ensuring users can access the internet securely and efficiently.
[0033] 7. Underlying Resource Topology: This refers to the structure of hardware resources in a network or computing system, as well as the connections and layouts between these resources. It describes the connection methods and interrelationships between different devices, nodes, and resources. Specifically, the underlying resource topology includes how various devices in the network (such as servers, switches, routers, storage devices, etc.) are interconnected through various physical or virtual links, and how these connections support the needs of upper-layer applications or services.
[0034] Broadband leased line services refer to providing users with dedicated, fixed-bandwidth, stable, and high-performance network connections, typically used for the communication needs of government and enterprise clients. Unlike ordinary home broadband access, leased line services provide users with independent, dedicated network channels—i.e., dedicated transmission lines—avoiding bandwidth sharing with other users, thus ensuring higher network stability, bandwidth guarantees, and low latency. Examples of dedicated transmission lines include video leased lines and APN leased lines. Video leased lines are network leased line services specifically designed for video transmission, providing stable, high-speed, and low-latency data transmission channels, and are widely used in traffic monitoring, remote card issuance in financial services, and campus monitoring. APN leased lines are dedicated channels for GPRS data transmission provided to government and enterprise customers, suitable for government agencies, large enterprises' wireless POS systems, power grid wireless meter reading, government OA systems, and enterprise emergency platforms.
[0035] As government and enterprise business increases, their frequency of using leased transmission lines is rising, and their requirements for network stability and user experience are also becoming more stringent, moving beyond simply ensuring service availability. For example, in video leased lines, government and enterprises have raised more advanced requirements regarding fault recovery time, camera video stuttering frequency, and rapid fault location. These high demands for service quality rely on the accuracy of the underlying resource topology of the leased transmission line. Currently, methods for restoring the underlying resource topology of leased transmission lines mainly include manually compiling and borrowing data from PPPoE+ or Passive Optical Network Management Systems (PON network management data).
[0036] Manual data processing requires manually organizing multi-segment, multi-level data across various devices. This process is time-consuming and labor-intensive, and the accuracy of the topology is greatly affected by human factors.
[0037] In the use of PPPoE+ or PON network management data, some cities adopt a mixed bearer mode for personal services (such as home broadband) and leased line services during network construction, while others adopt a dedicated network mode. Therefore, there are modes where optical line terminals (OLTs) carry both personal services (such as home broadband) and leased line services, and modes where one OLT carries only personal services and another OLT carries only leased line services. This results in complex PPPoE+ or PON network management data, which may lead to data omissions when restoring the topology, making it impossible to fully cover the topology and reducing the accuracy of topology restoration.
[0038] Furthermore, for terminal equipment on video leased lines, such as cameras, since they are not included in the standard network management processes of telecom operators, meaning camera data exists in silos, it can only be managed through the equipment manufacturer's Operation and Maintenance Center (OMC) network management system. Therefore, the relationship data between the camera and its upstream ONU device still requires manual maintenance. Moreover, since cameras are primarily installed within customer campuses, manually compiling data requires overcoming challenges such as long distances, difficulty accessing premises, and complex communication to obtain accurate data relationships. Over time, this results in a data update frequency of approximately monthly, indicating a slow data update rate.
[0039] Regardless of the current underlying resource association model, it is impossible to completely avoid manual intervention. This leads to data accuracy being overly dependent on the attitude and meticulousness of manual data processing, often resulting in unavoidable low data accuracy.
[0040] This application provides a topology restoration method for leased transmission lines. This method can recover the network topology from existing network data and analyze each network node and its connection relationships. The method provided in this application can automatically restore the topology by employing methods such as automatic association of multi-system data, command result parsing, and intelligent service filtering. In this way, the network topology from the data acquisition terminal deployed on the user side to the BRAS on the operator side can be obtained.
[0041] Furthermore, embodiments of this application may specifically provide a topology restoration method for video leased lines. For example, the underlying resource topology of a video leased line is as follows: Figure 1 As shown, in the underlying resource topology of the video leased line, the connection from BRAS-OLT-ONU to the video acquisition terminal (e.g., camera) is all star-shaped, which is a 1:N mode.
[0042] Figure 2 This is a flowchart illustrating the topology restoration method for video leased lines provided in an embodiment of this application.
[0043] like Figure 2 As shown, the topology restoration method for video leased lines provided in this application includes the following steps S100-S300.
[0044] S100: For video leased lines whose topology needs to be restored, select any one of the video acquisition terminals in the video leased line as the target terminal.
[0045] Furthermore, for a province or city, due to various business needs such as security monitoring, traffic management, and urban management, there are usually a large number of video leased lines. These video leased lines may cover every corner of the city. Each video leased line contains multiple video acquisition terminals, such as cameras, for capturing and transmitting video data in real time, providing critical information for various application scenarios. In the embodiments of this application,
[0046] It is understood that in a video leased line, the data acquisition terminal deployed on the user side is the video acquisition terminal. However, in an APN leased line, the data acquisition terminal can refer to IoT devices such as sensors, smart meters, and RFID readers; this application embodiment does not specifically limit this.
[0047] During the deployment and maintenance of video leased lines, video capture terminals may be added to or removed from the network due to changes in business needs, network expansion requirements, or equipment upgrades. The Enterprise Service Operations Platform (ESOP) system can accurately track and record each video capture terminal, enabling centralized management of cameras, video sources, and other devices within the video leased line. In other words, the ESOP system records data on which video capture terminals are used by the video leased line. This embodiment of the application can obtain the video capture terminal data of the video leased line whose topology needs to be restored from the ESOP system, and then select any one of the video capture terminals as the target terminal.
[0048] S200: Determine the uplink and downlink relationships corresponding to the target terminal through the target method; where, the uplink relationship refers to the connection relationship between the target terminal and its uplink Broadband Remote Access Unit (BRAS), Optical Line Terminal (OLT), and Optical Network Unit (ONU), and the downlink relationship refers to the connection relationship between the ONU connected to the target terminal and its downlink associated terminals. The associated terminals are other video acquisition terminals other than the target terminal connected to the ONU connected to the target terminal in the video leased line.
[0049] In this embodiment, the video capture terminal can be incorporated into the process of automatically restoring the network topology. The connection relationships between the video capture terminal and its upstream BRAS, OLT, and ONU are clearly defined through a target approach (i.e., the uplink relationship), and the connection relationships between the upstream ONU and its downstream associated terminals are also clearly defined (i.e., the downlink relationship). This enables the automatic organization, association, and construction of network topology data between BRAS, OLT, ONU, and the video capture terminal, eliminating data silos between video capture terminals, and achieving high data accuracy without manual intervention.
[0050] The target methods include one or more of the following: filtering by location, filtering by physical address, command query, packet parsing, traversing terminal status, and restarting the ONU via command. For example, filtering by location refers to quickly locating the target terminal and its uplink devices' connection relationships based on the geographical location information of the device deployment. Filtering by physical address refers to accurately matching and determining the connection status of the target terminal and its uplink devices using unique identifiers such as the device's MAC address or IP address. Command query refers to querying and obtaining the device's connection information by sending specific network management commands. Packet parsing refers to parsing packets in network traffic, extracting fields containing device information, and thus inferring the connection relationship. Traversing terminal status refers to indirectly inferring the connection relationship by traversing the online status of video capture terminals and combining it with the connection logic between devices. Restarting the ONU via command refers to triggering the terminal status update by restarting the ONU, thereby obtaining the latest connection information. Specific target methods will be detailed below and will not be elaborated here.
[0051] S300: Based on the upstream and downstream relationships, the video dedicated line topology is obtained by connecting them together.
[0052] After clarifying the relationship between the uplink and downlink devices of the target terminal, a complete link, namely the video leased line topology, can be formed based on the uplink devices (such as BRAS, OLT, ONU, etc.) of the target terminal and the connection relationship between the associated terminals.
[0053] In some implementations, the video leased line topology includes not only the physical connections between devices, but also information such as network traffic, fault status, and link quality. Through the video leased line topology, operations and maintenance personnel can clearly view the overall architecture of the video leased line and perform real-time monitoring, troubleshooting, and performance optimization.
[0054] In some implementations, the video leased line topology can be stored in a database, specifically a preset local database or a cloud database. This application does not specifically limit this.
[0055] As can be seen from the above, this application provides a method for topology restoration of video leased lines, including: selecting any video acquisition terminal in the video leased line as the target terminal for the video leased line whose topology relationship to be restored; determining the uplink and downlink relationships corresponding to the target terminal through target methods; wherein, the uplink relationship refers to the connection relationship between the target terminal and its uplink Broadband Remote Access Unit (BRAS), Optical Line Terminal (OLT), and Optical Network Unit (ONU); the downlink relationship refers to the connection relationship between the ONU connected to the target terminal and its downlink associated terminals; the associated terminals are other video acquisition terminals connected to the ONU connected to the target terminal in the video leased line, excluding the target terminal; the target methods include one or more of the following: filtering by location, filtering by physical address, instruction query, message parsing, traversing terminal status, and restarting the ONU by instruction; and concatenating based on the uplink and downlink relationships to obtain the video leased line topology. This application provides an automatic discovery scheme that conforms to the characteristics of transmission leased lines, especially video leased lines, enabling automatic organization, automatic association, and automatic construction of network topology data between BRAS-OLT-ONU-video acquisition terminals. No manual data screening is required, and the topology accuracy is high.
[0056] Furthermore, this application embodiment first provides a detailed description of the steps for establishing the uplink relationship between the video acquisition terminal and the target OLT.
[0057] Figure 3 This is a schematic diagram of a first process for determining a target OLT, provided in an embodiment of this application.
[0058] Figure 4 This is a schematic diagram of a second process for determining a target OLT according to an embodiment of this application. Here, "camera a" refers to the target terminal.
[0059] like Figure 3 and Figure 4 As shown, step S200 may include the following steps S201-S204.
[0060] S201: Determine the first latitude and longitude of the geographical location of the target terminal, and determine the first screening range based on the first latitude and longitude.
[0061] This application embodiment can obtain the first latitude and longitude of the target terminal's geographical location from the terminal OMC network management system. The Terminal Operation and Maintenance Center (OMC), or terminal OMC network management system for short, is a system platform used to manage and monitor video terminal devices such as cameras, for operating, maintaining, and monitoring video acquisition terminals. Specifically, the terminal OMC network management system can be a camera OMC network management system. The camera OMC network management system records camera resource data, including basic camera information such as model, configuration, and location; it also provides the camera's geographical coordinates, such as latitude and longitude, to accurately locate the camera's position; and it provides the camera's online / offline status to monitor whether the camera is online, working normally, or offline due to faults, power outages, or other reasons.
[0062] Furthermore, the specific step of determining the first screening range based on the first latitude and longitude is as follows: draw a circle with the latitude and longitude of the target terminal as the center and the first radius as the radius. The resulting circular range is the first screening range. Here, the radius of the circular range can be adjusted according to the actual situation. For example, the first radius can be equal to 2km.
[0063] S202: Determine the second latitude and longitude of the geographical location of each OLT in the OLT set, and determine the second filtering range based on the second latitude and longitude.
[0064] The OLT cluster includes all OLTs within the target area where the video leased line is located. The target area refers to the administrative division such as province, city, or district where the video leased line is located, or a specific service area set by the telecommunications operator for management convenience. The size of the target area depends on the network coverage range of the video leased line as defined by the telecommunications operator during deployment and maintenance. The number of OLTs in the OLT cluster also depends on the actual deployment; this embodiment does not impose a specific limitation on this.
[0065] This application embodiment can obtain the second latitude and longitude of the OLT's location from the Passive Optical Network (PON) network management system. Specifically, the PON network management system is used to manage various network element devices in the PON network, including OLTs, ONUs, and passive devices in the Optical Distribution Network (ODN). The PON network management system can communicate with these devices through network management protocols to achieve functions such as device configuration, monitoring, fault diagnosis, and performance management. For example, the PON network management system records resource data, configuration data, and alarm data of the OLT and ONU devices.
[0066] Furthermore, the specific step of determining the second filtering range based on the second latitude and longitude is as follows: draw a circle with the latitude and longitude of the OLT as the center and the second radius as the radius. The resulting circular range is the second filtering range. Here, the radius of the circular range can be adjusted according to the actual situation. For example, the second radius can be equal to 2km.
[0067] In some implementations, the size of the second filtering range can be the same as the size of the first filtering range, that is, the first radius can be equal to the second radius. In this way, the target terminal and the OLT can be relatively matched, reducing the difficulty of filtering.
[0068] S203: Determine a second filtering range whose overlap with the first filtering range is greater than a preset threshold, and use it as the target filtering range.
[0069] The preset threshold can be 70%, 80%, or 90%, and this application embodiment does not specifically limit it. In this application embodiment, if the first filtering range and the second filtering range largely overlap or completely overlap, it can be determined that the target terminal and the OLT are in the same range.
[0070] S204: Identify the OLTs corresponding to the target filtering range as the OLTs to be filtered, and obtain the OLT dataset B.
[0071] Based on the aforementioned steps, it is possible to determine which OLTs are within a preset radius around camera a, and record them as OLT dataset B. In this embodiment, OLT dataset B may include the name of the OLT to be filtered and its corresponding IP address, latitude and longitude, manufacturer, and model information.
[0072] Furthermore, step S204 may be followed by steps S205-S207.
[0073] S205: Execute the first query instruction one by one for the OLTs to be filtered in the OLT dataset B to obtain the MAC address table corresponding to each OLT.
[0074] In this embodiment of the application, the first query command "display macaddress all" can be executed one by one on all OLTs to be filtered in the OLT dataset B through the SNMP protocol to view their MAC address table.
[0075] In some implementations, the results of the MAC address table query command can be stored in a database, specifically a preset local database or a cloud database. This local database or cloud database can be the same database that stores the video leased line topology. This application embodiment does not specifically limit this.
[0076] S206: Perform a lookup in each MAC address table to determine the target MAC address table in which the target terminal's MAC address is located.
[0077] It's worth noting that the MAC address table is a record table maintained internally by the OLT to track the MAC addresses of devices in the network and their corresponding physical ports. When a terminal device communicates with the OLT, the OLT records and stores the MAC addresses of these terminal devices and writes them into the MAC address table.
[0078] Furthermore, the target terminal's MAC address can be obtained from the terminal's OMC network management system. This allows us to determine which MAC address table contains the target terminal's MAC address.
[0079] For example, the MAC address of camera A can be found in each MAC address.
[0080] S207: The OLT to be filtered corresponding to the target MAC address table is determined as the target OLT, and the target terminal and the target OLT have an uplink relationship.
[0081] For example, the target OLT can be recorded as OLTb. This clarifies the connection relationship between the target terminal and its upstream target OLT.
[0082] Furthermore, this application embodiment first provides a detailed description of the steps for establishing the uplink relationship between the video acquisition terminal and the target ONU.
[0083] Figure 5 This is a schematic diagram of a first process for determining the target ONU provided in an embodiment of this application.
[0084] Figure 6 This is a schematic diagram of a second process for determining the target ONU provided in an embodiment of this application.
[0085] like Figure 5 and Figure 6 As shown, the embodiments of this application may further include the following step S208.
[0086] S208: Execute the second query instruction for the target OLT, and form a first ONU dataset C based on the query results. The first ONU dataset C includes all ONUs to be filtered that are linked to the target OLT.
[0087] In this embodiment of the application, a query command can be executed on the target OLT via the SNMP protocol. The second query command is, for example, "Snmpwalk -c pubilc -v OLT Ip 1.3.6.1.4.1.2011.6.128.1.1.2.43.1.3", where "1.3.6.1.4.1.2011.6.128.1.1.2.43.1.3" is an exemplary description of the IP address of the target OLT.
[0088] In this embodiment, the query results can be stored in a database. This allows determination of which ONU devices are connected to the target OLT, forming a first ONU dataset C. For example, the first ONU dataset C may include the name of the ONU to be filtered, along with its corresponding IP address, latitude and longitude, manufacturer, and model information.
[0089] Furthermore, embodiments of this application can employ intelligent service filtering to effectively distinguish between personal services and enterprise services. The steps for filtering out ONUs (e.g., home broadband ONUs) involved in personal services are described below.
[0090] S209: Obtain PPPoE+ packets related to personal services in the target area within the first preset time period. Personal services include network services for private users such as home broadband (hereinafter referred to as "home broadband") services.
[0091] The first preset time period can be the past three days or the past week, and this application embodiment does not specifically limit it.
[0092] PPPoE+ packets are protocol data packets used to carry broadband access services. They are generated during interactions between user terminal devices (such as home routers, computers, or ONUs) and network service providers (such as operators' OLT equipment) within the network. Therefore, by capturing PPPoE+ packets, the home broadband ONU can be identified, thus distinguishing it from a leased line ONU. A home broadband ONU refers to an ONU that supports home broadband services, while a leased line ONU refers to an ONU that supports video leased line services.
[0093] It is understood that in this application embodiment, personal services are services relative to enterprise services. Personal services can include not only home broadband services but also single-user network services, and this application embodiment does not specifically limit this. Therefore, this application embodiment can obtain PPPoE+ packets related to personal services from the network in the target area, and thus understand which ONUs are carrying personal services.
[0094] In some implementations, PPPoE+ packets can be obtained from the Remote Authentication Dial-up User Service (RADIUS) system. It is understood that the RDIUS system is used to provide home broadband users with internet access authentication and information about the OLT and ONU connections they pass through.
[0095] In some implementations, when a user terminal connects to the Internet via PPPoE+, PPPoE+ packets are transmitted between the OLT and ONU. These packets can also be captured by configuring traffic mirroring or packet capture functions on network devices (such as OLT and ONU). Alternatively, packet capture tools can be used to obtain PPPoE+ packets; this application does not specifically limit the specific implementation of these methods.
[0096] S210: Parse the PPPoE+ message to obtain the OLT IP information and ONU sn information.
[0097] This application embodiment can extract two key fields from the PPPoE+ message: OLTIP information and ONU sn information. OLT IP information is the identification information of the OLT, a unique identifier for each OLT device, which allows the location of a specific OLT device. ONU sn is the unique serial number of each ONU, which identifies which specific ONU device it is.
[0098] In some implementations, step S208 can be processed in parallel with steps S209 and S210, and this application embodiment does not specifically limit this.
[0099] S211: Based on OLT IP information and ONU sn information, determine the ONUs to be screened in the first ONU dataset C that are used to carry personal services.
[0100] In this way, the ONUs to be screened in the first ONU dataset C can be distinguished based on the different services they carry.
[0101] S212: Delete the ONUs to be screened in the first ONU dataset C that are used to carry personal services, and obtain the second ONU dataset D, which includes the screened ONUs.
[0102] In practical applications, ONUs are used only to carry personal services or dedicated line services, and there is no mixed loading. That is, personal services and enterprise services cannot share ONUs. Based on the principle that personal services and enterprise services cannot share ONUs, personal ONUs and dedicated line ONUs can be effectively identified and distinguished. Therefore, this embodiment of the application can determine whether there are ONUs supporting personal services in the first ONU dataset C. If there are personal ONUs supporting personal services (such as home broadband services), these ONUs are removed, ultimately forming the second ONU dataset D. Thus, the second ONU dataset D only includes dedicated line ONUs carrying video dedicated line services.
[0103] Furthermore, step S212 may be followed by steps S213-S215.
[0104] S213: Execute the restart command for each of the selected ONUs.
[0105] This application embodiment can execute a restart command on the filtered ONUs using the SNMP protocol. The restart command is, for example, "Snmpwalk -c pubilc -v OLT Ip 1.3.6.1.4.1.2011.6.128.1.1.2.43.1.3", where "1.3.6.1.4.1.2011.6.128.1.1.2.43.1.3" is an exemplary description of the IP address of the filtered ONU. Through the restart operation, the state of each filtered ONU can be reset, allowing observation of the state change patterns of the target terminal, thereby determining whether an uplink relationship exists between the ONU and the target terminal.
[0106] S214: After the ONU is restarted, if the target terminal is in the first state, it is determined that the target terminal and the ONU do not have an uplink relationship. The first state includes the target terminal remaining online or remaining offline for a long time, that is, the target terminal remains unchanged within a preset time period.
[0107] If, after the filtered ONU restarts, the target terminal, such as camera a, remains online or remains offline for an extended period, it can be determined that the filtered ONU is not connected to camera a. "Extended offline period" can refer to remaining offline for up to two minutes. In this embodiment, the target terminal's status can be obtained from the terminal's OMC network management system.
[0108] S215: If the target terminal's terminal status is the second state, determine the filtered ONU as the target ONU; wherein, the target terminal and the target ONU have an uplink relationship, and the second state includes the target terminal's terminal status changing from online to offline, and changing from offline to online within a second preset time period.
[0109] The second preset time period can be 2 seconds, 3 seconds, or 5 seconds; this embodiment does not specifically limit this. For example, when the filtered ONU restarts, the status of camera a switches from online to offline. A few seconds later, when the restart ends, the status of camera a switches back from offline to online. This confirms that the filtered ONU is connected to camera a, and the filtered ONU can be recorded as ONU d. In this way, the target ONU connected to the target terminal can be clearly identified.
[0110] In this way, by monitoring the terminal status of the video acquisition terminal in real time, it can be determined whether the video acquisition terminal meets the characteristics of going offline first and then going online again, and the filtered ONU can be determined as an uplink ONU or a non-uplink ONU.
[0111] Furthermore, since the target ONU may be connected to multiple video capture terminals, this embodiment of the application can determine the associated terminals connected to the target ONU using the following steps S216-S218.
[0112] S216: Traverse the terminal status of all video acquisition terminals in the target area to determine the terminals to be screened; wherein, after each screened ONU restarts, the terminal status change pattern of the terminals to be screened is the same as the terminal status change pattern of the target terminals.
[0113] Understandably, the video capture terminals included in the target area can be obtained from the ESOP system, and the terminal status of the video capture terminals can be obtained from the terminal MOC network management system.
[0114] It is worth noting that the target terminal is not included in the terminal to be screened.
[0115] By traversing the terminal state changes when the target ONU restarts, other terminals with the same change pattern as the target terminal can be identified. The same terminal state change pattern can mean that the order of state changes is consistent and / or the time intervals between state changes are similar.
[0116] The sequence of state changes means that when the target terminal undergoes a second state change, the terminal to be screened should also undergo the same state change process. That is, the state of the terminal to be screened is characterized by first disconnecting and then returning to online. This process is consistent with the state change of the target terminal, indicating that the state change patterns of the two terminals are the same.
[0117] Similarity in the time interval of state changes means that during the state change process, the time interval of the state change of the terminal to be screened (such as the time from offline to online again) is equal to or similar to the time interval of the state change of the target terminal. Similarity can mean a difference of 1 second, 2 seconds or 5 seconds, which means that the state change patterns of the two are the same.
[0118] S217: Determine the third screening range based on the first latitude and longitude, and the third screening range is smaller than the first screening range.
[0119] The specific step of determining the third filtering range based on the first latitude and longitude is as follows: draw a circle with the first latitude and longitude of the target terminal as the center and a radius of 200m. The resulting circular range is the third filtering range. It is worth noting that 200m is only an example; in actual applications, the size of the third filtering range can be adjusted according to actual needs.
[0120] S218: The terminal to be screened within the third screening range is identified as the associated terminal, and the target ONU and the associated terminal have a downstream relationship.
[0121] For example, taking the latitude and longitude of camera a as the origin, it can be determined whether cameras with the same changing pattern are all within 200m. If they are, it is determined that the cameras connected to ONU d (target ONU) include camera a, camera a1, camera a2, etc. If they are not, it means that the camera is not connected to ONU d.
[0122] For example, such as Figure 1 As shown, when the target terminal is camera 2, based on the method of this application embodiment, the target OLT can be determined to be OLT 1, the target ONU to be ONU 2, and the associated terminal to be camera 3.
[0123] Furthermore, the method provided in this application embodiment can also determine the uplink relationship between the target terminal and the OLT port, so as to add the relationship information to the video leased line topology.
[0124] Specifically, step S215 may be followed by steps S219-S220.
[0125] S219: Execute the third query command for the target OLT to obtain the ONU list for each PON port of the target OLT.
[0126] In practical applications, the OLT connects to downstream ONU devices through multiple Passive Optical Network (PON) ports, forming a point-to-multipoint network topology. This embodiment of the application can execute a third query command via the SNMP protocol to retrieve and obtain information about all PON ports under the target OLT. The PON port information includes a list of ONU devices connected to each port. Furthermore, the ONU device list may include the ONU's identifier, status information, connection speed, etc.
[0127] In some implementations, embodiments of this application can also determine other PON port information, such as PON port number and geographical location, through the query result of a third query instruction. The PON port number is specifically the number or identifier of the PON port. The geographical location refers to the geographical location of the PON port on the OLT device, which may include information such as board number and slot number.
[0128] S220: Based on the ONU list, determine the PON port that has an uplink relationship with the target ONU.
[0129] Thus, the embodiments of this application can add the PON port information of the target ONU to the video leased line topology.
[0130] In some implementations, the PON ports that have an uplink relationship with the target ONU can also be determined by configuration query, for example, by viewing PON port information through the OLT's web management interface.
[0131] Furthermore, embodiments of this application can determine the uplink relationship between the video capture terminal and the BRAS.
[0132] Specifically, after step S207, the following steps S221-S222 are also included.
[0133] S221: Execute the fourth query instruction on the target OLT to obtain the LLDP message.
[0134] In this application embodiment, the BRAS relationship uplinked to the target OLT can be determined by querying the Link Layer Discovery Protocol (LLDP) command.
[0135] S222: Based on the LLDP message, determine the target BRAS. The target OLT and the target BRAS have an uplink relationship.
[0136] The LLDP message contains a detailed description of the device ports and capabilities, including the network device identifier and port number connected to the target OLT. Parsing the message reveals the BRAS information connected to the target OLT. Based on this, it can be determined which BRAS device the target OLT is connected to, further identifying the upstream network topology of the target OLT.
[0137] It is worth noting that the video leased line may include multiple ONU devices and / or multiple OLT devices. In this embodiment, other terminals can be selected as target terminals to further reconstruct the topology. These other terminals are video acquisition terminals in the video leased line other than the target terminal and associated terminals, such as camera b. Taking camera b as the starting point of analysis, the steps for determining the uplink and downlink relationships are executed, and finally, the topology data of BRAS-OLT-ONU-camera b can be determined. This step is repeated until all downlink video acquisition terminals recorded in the ESOP system of the video leased line are added to the topology, and the complete topology of the video leased line can be obtained. Specifically, this embodiment may also include the following steps:
[0138] S1: Determine whether the video leased line topology includes all video capture terminals connected to the video leased line. If it does not include all video capture terminals, proceed to steps S2-S4. If it includes all video capture terminals, determine that the video leased line topology is the full-link topology of the video leased line.
[0139] S2: Determine other terminals. Other terminals are any video acquisition terminals in the video leased line other than the target terminal and associated terminals.
[0140] S3: Identify other terminals as new target terminals, and determine the uplink and downlink relationships corresponding to the new target terminals through the target method;
[0141] S4: Connect the video leased line in series based on the uplink and downlink relationships, and then jump to step S1.
[0142] It is worth noting that the embodiments of this application can update the video leased line topology on a weekly basis. In other words, the embodiments of this application can perform the aforementioned steps once a week to ensure that the topology is updated quickly as the device status changes.
[0143] Furthermore, to avoid the impact of ONU device restarts on user experience, this application embodiment can also reduce the number of device restarts by mining historical alarm data.
[0144] Figure 7 This is a schematic diagram illustrating the process of updating the topology based on historical alarm data, as provided in an embodiment of this application.
[0145] like Figure 7 As shown, the method provided in this application embodiment may further include the following steps S401-S405.
[0146] S401: Obtain the offline alarm data corresponding to the alarm ONU within the third preset time period; wherein, the ONU offline alarm data is generated after the alarm ONU experiences an offline fault.
[0147] In this embodiment, the alarming ONU is an ONU that has experienced an offline fault. The offline fault may be caused by an ONU device malfunction, a broken or damaged fiber optic line between the ONU and the OLT, or a network configuration error or software failure. This embodiment does not specifically limit the cause. When the OLT cannot establish communication with the ONU or detects an abnormal ONU status, the OLT or its upper-layer network management terminal (e.g., PON network management system) can determine that the ONU has experienced an offline fault and generate ONU alarm data. This ONU alarm data can be stored in the PON network management system.
[0148] Furthermore, the ONU offline alarm data can be obtained from the PON network management system. The third preset time period can be the past 3 months, the past 1 month, or the past 2 months; this embodiment does not specifically limit this.
[0149] S402: For each alarm ONU, based on the offline alarm data, determine its offline time point (offline_time) and its corresponding fourth filtering range.
[0150] The fourth filtering range can be a circular range with a third radius determined based on the latitude and longitude of the alarm ONU, where the third radius can be equal to 2km. Alternatively, the fourth filtering range can be the first filtering range corresponding to a video acquisition terminal connected to the alarm ONU. Or, the fourth filtering range can be the second filtering range corresponding to the OLT connected to the alarm ONU. This application does not specifically limit this aspect.
[0151] S403: The video acquisition terminals that are offline and within the fourth preset time period after the offline time point are identified as terminals to be updated, and the first terminal dataset X is obtained.
[0152] The fourth preset time period can be 2 minutes, but this application embodiment does not specifically limit it.
[0153] This application embodiment can identify the alarm ONU based on offline alarm data, then associate and find video capture terminals in the same area as the alarm ONU that are offline within 2 minutes, i.e., terminals to be updated. The association between the two is then established, and the association between the alarm ONU and the terminal to be updated is recorded, forming a first terminal dataset X. Specifically, the first terminal dataset X can record the device identifier of the alarm ONU and the device identifier of the terminal to be updated associated with the alarm ONU. In addition, it may include other fields, such as IP address, device type, etc., which are not specifically limited in this application embodiment.
[0154] It is worth noting that there are three dimensions to consider in the process of identifying the terminal to be updated. The first is time, which is within the fourth preset time period after the offline time point. The second is the terminal status, which is offline. The third is the geographical location, which is within the fourth filtering range. Therefore, the geographical location reflects the location information under the aforementioned time dimension, rather than the real-time location information.
[0155] S404: For each alarm ONU, determine the online time point (online_time) when it recovers from offline to online status.
[0156] In this embodiment, the online time point can be obtained from the PON network management system.
[0157] S405: For the first terminal dataset, delete the terminals that remain offline within the fourth preset time period after the online time point, and obtain the second terminal dataset Y.
[0158] As can be seen, this embodiment of the application can, after the alarm ONU recovers from an offline alarm, identify the terminals in the same region as the alarm ONU that remained offline within 2 minutes and delete these terminals from the first terminal dataset. Alternatively, it can identify the terminals in the same region as the alarm ONU that recovered from offline to online within 2 minutes and retain these terminals in the first terminal dataset. This allows the formation of a second terminal dataset Y.
[0159] Furthermore, after step S405, the following steps S406-S409 may also be included.
[0160] S406: Obtain the historical latitude and longitude of each terminal to be updated in the second terminal dataset Y. The historical latitude and longitude correspond to the geographical location of each terminal to be updated in the second terminal dataset Y at the offline time point or the online time point.
[0161] This application embodiment uses the method of mining historical alarm data to determine the alarm ONU, and then determines the terminal to be updated connected to the alarm ONU. The historical latitude and longitude reflect the geographical location of the terminal to be updated within the fourth preset time period after the online time point.
[0162] In some implementations, the latitude and longitude of each device can be added to the video leased line topology, so that the historical latitude and longitude can be obtained based on the video leased line topology.
[0163] S407: Obtain the real-time latitude and longitude of each terminal to be updated in the second terminal dataset Y.
[0164] The real-time latitude and longitude can be obtained from the terminal's OMC network management system. The real-time latitude and longitude are used to reflect the current geographical location of the terminal to be updated.
[0165] S408: For the second terminal dataset Y, delete the terminals to be updated whose historical latitude and longitude do not overlap with the real-time latitude and longitude, and obtain the third terminal dataset Z.
[0166] It is understandable that if the video acquisition terminal connected to the ONU is relocated within a certain period after the ONU offline failure, the latitude and longitude of the video acquisition terminal will also change. Therefore, by comparing the geographical location, that is, comparing the latitude and longitude, it can be determined whether the terminal to be updated is still connected to the failed ONU at present.
[0167] In this embodiment, the latitude and longitude of each terminal to be updated in the second terminal dataset Y can be verified one by one. If its historical latitude and longitude are consistent with its real-time latitude and longitude, the terminal to be updated is retained; otherwise, it is deleted, thus forming the third terminal dataset Z.
[0168] S409: Based on the third terminal dataset Z, update the video acquisition terminals connected to the alarm ONUs in the video leased line topology to the terminals to be updated, so as to update the video leased line topology.
[0169] This ensures that the information in the video leased line topology is up-to-date, accurate, and consistent with the actual situation.
[0170] It is worth noting that the embodiments of this application can determine the video leased line topology by performing topology restoration weekly, that is, executing the aforementioned steps S100-S300 once a week. In step S200, an ONU restart is required. To avoid affecting the user experience, the embodiments of this application can interleave steps S401-S409 with the aforementioned step S200. For example, steps S401-S409 can be executed on a weekday, and steps S100-S300 can be executed during a non-peak business period (e.g., a non-working day). Furthermore, if the video acquisition terminal connected to the ONU is updated in steps S401-S409, an update identifier can be added to that ONU. Then, in subsequent executions of steps S100-S300, the ONU with the update identifier does not need to be restarted; that is, steps S401-S409 can be used instead of the restart operation to improve the user experience.
[0171] As can be seen from the above, this application provides a method for topology restoration of video leased lines. The method includes: selecting any video acquisition terminal in the video leased line as the target terminal for the video leased line whose topology relationship needs to be restored; determining the uplink and downlink relationships corresponding to the target terminal through target methods; wherein, the uplink relationship refers to the connection relationship between the target terminal and its uplink Broadband Remote Access Unit (BRAS), Optical Line Terminal (OLT), and Optical Network Unit (ONU); the downlink relationship refers to the connection relationship between the ONU connected to the target terminal and its downlink associated terminals; the associated terminals are other video acquisition terminals connected to the ONU connected to the target terminal in the video leased line, excluding the target terminal; the target methods include one or more of the following: filtering by location, filtering by physical address, instruction query, message parsing, traversing terminal status, and restarting the ONU by instruction; and concatenating based on the uplink and downlink relationships to obtain the video leased line topology. In summary, the method provided in this application, through device instruction results, service elimination algorithms, and correlation mining, achieves automatic organization, automatic association, and automatic construction of the underlying resource topology of video leased lines (BRAS-OLT-PON port-ONU-video acquisition terminal (e.g., camera)), enabling automatic restoration of the transmission leased line topology. Compared to the original PON network automatic discovery, it adds an algorithm for automatic discovery of camera and ONU data, eliminating the isolated mode of camera data. Simultaneously, it effectively distinguishes between personal services and enterprise services, establishing an automatic discovery scheme that conforms to the characteristics of video leased line networks. Furthermore, the method provided in this application uses PON network management data, ESOP system data, terminal OMC network management data, and Radius system data, achieving automatic association of multi-system data.
[0172] Figure 8 This is a schematic diagram of the topology restoration device for video leased lines provided in an embodiment of this application.
[0173] like Figure 8 As shown, the topology restoration device for video leased lines provided in this application embodiment includes:
[0174] The terminal determination module 1001 is used to select any video acquisition terminal in the video leased line whose topology relationship needs to be restored as the target terminal.
[0175] The association module 1002 is used to determine the uplink and downlink relationships corresponding to the target terminal through target methods. The uplink relationship refers to the connection relationship between the target terminal and its uplink Broadband Remote Access Unit (BRAS), Optical Line Terminal (OLT), and Optical Network Unit (ONU). The downlink relationship refers to the connection relationship between the ONU connected to the target terminal and its downlink associated terminals. Associated terminals are other video acquisition terminals (excluding the target terminal) connected to the ONU connected to the target terminal in the video leased line. Target methods include one or more of the following: filtering by location, filtering by physical address, command query, message parsing, traversing terminal status, and restarting the ONU via command.
[0176] The topology restoration module 1003 is used to perform serial connection based on the uplink and downlink relationships to obtain the video leased line topology.
[0177] In some implementations, the association module 1002 is specifically used to: determine the first latitude and longitude of the geographical location of the target terminal, and determine a first filtering range based on the first latitude and longitude; determine the second latitude and longitude of the geographical location of each OLT in the OLT set, and determine a second filtering range based on the second latitude and longitude, wherein the OLT set includes all OLTs in the target area where the video leased line is located; determine a second filtering range whose overlap with the first filtering range is greater than a preset threshold, and use it as the target filtering range; determine the OLTs corresponding to the target filtering range as OLTs to be filtered, and obtain the OLT dataset.
[0178] In some implementations, the association module 1002 is also used to: execute a first query instruction for each OLT to be filtered in the OLT dataset to obtain a MAC address table corresponding to each OLT to be filtered; query each MAC address table to determine the target MAC address table where the MAC address of the target terminal is located; determine the OLT to be filtered corresponding to the target MAC address table as the target OLT, and the target terminal and the target OLT have an uplink relationship.
[0179] In some implementations, the association module 1002 is further configured to: execute a second query instruction on the target OLT, form a first ONU dataset based on the query results, the first ONU dataset including all ONUs to be screened connected to the target OLT; obtain PPPoE+ packets related to personal services in the target area within a first preset time period, personal services including home broadband services; parse the PPPoE+ packets to obtain OLT IP information and ONU sn information; determine the ONUs to be screened in the first ONU dataset used to carry personal services based on the OLT IP information and ONU sn information; delete the ONUs to be screened in the first ONU dataset used to carry personal services to obtain a second ONU dataset, the second ONU dataset including the screened ONUs.
[0180] In some implementations, the association module 1002 is further configured to: execute a restart command for each of the filtered ONUs; after the filtered ONUs restart, if the target terminal's terminal status is in the first state, determine that the target terminal and the filtered ONUs do not have an uplink relationship, the first state including the target terminal remaining online or remaining offline for a long time; if the target terminal's terminal status is in the second state, determine that the filtered ONU is the target ONU; wherein, the target terminal and the target ONU have an uplink relationship, the second state including the target terminal's terminal status changing from online to offline, and changing from offline to online within a second preset time period.
[0181] In some implementations, the association module 1002 is also used to: traverse the terminal status of all video acquisition terminals in the target area to determine the terminals to be screened; wherein, after each screened ONU restarts, the terminal status change pattern of the terminals to be screened is the same as the terminal status change pattern of the target terminal; determine a third screening range based on the first latitude and longitude, the third screening range being smaller than the first screening range; and determine the terminals to be screened within the third screening range as associated terminals, with the target ONU and the associated terminals having a downstream relationship.
[0182] In some implementations, the association module 1002 is also used to: execute a third query instruction for the target OLT to obtain a list of ONUs for each PON port of the target OLT; and determine the PON ports that have an uplink relationship with the target ONU based on the ONU list.
[0183] The association module 1002 is also used to: execute a fourth query instruction on the target OLT to obtain an LLDP message; and determine the target BRAS based on the LLDP message, wherein the target OLT and the target BRAS have an uplink relationship.
[0184] In some implementations, the association module 1002 is further configured to: acquire offline alarm data corresponding to alarm ONUs within a third preset time period; wherein, the ONU offline alarm data is generated after the alarm ONU experiences an offline fault; for each alarm ONU, based on the offline alarm data, determine its offline time point and its corresponding fourth filtering range; identify video acquisition terminals that are offline within the fourth preset time period after the offline time point and are within the fourth filtering range as terminals to be updated, thereby obtaining a first terminal dataset; for each alarm ONU, determine the online time point at which it recovers from an offline state to an online state; for the first terminal dataset, delete the terminals to be updated that remain offline within the fourth preset time period after the online time point, thereby obtaining a second terminal dataset.
[0185] In some implementations, the association module 1002 is also used to: obtain the historical latitude and longitude of each terminal to be updated in the second terminal dataset, where the historical latitude and longitude correspond to the geographical location of each terminal to be updated in the second terminal dataset at the offline or online time point; obtain the real-time latitude and longitude of each terminal to be updated in the second terminal dataset; for the second terminal dataset, delete the terminals to be updated whose historical latitude and longitude do not overlap with the real-time latitude and longitude to obtain the third terminal dataset; based on the third terminal dataset, update the video acquisition terminals connected to the alarm ONU in the video leased line topology as the terminals to be updated, so as to update the video leased line topology.
[0186] In a specific implementation, the present invention also provides a computer storage medium, wherein the computer storage medium may store a program, which, when executed, may include some or all of the steps of the various embodiments of the topology restoration method for video leased lines provided by the present invention. The storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0187] It is readily understood that, based on the several embodiments provided in this application, those skilled in the art can combine, split, or reorganize the embodiments of this application to obtain other embodiments, none of which exceed the protection scope of this application.
[0188] The above detailed embodiments further illustrate the purpose, technical solution, and beneficial effects of the embodiments of this application. It should be understood that the above are merely specific embodiments of the embodiments of this application and are not intended to limit the protection scope of the embodiments of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solutions of the embodiments of this application should be included within the protection scope of the embodiments of this application.
Claims
1. A topology restoration method for video leased lines, characterized in that, The method includes: For a video leased line whose topology needs to be restored, any one of the video acquisition terminals in the video leased line is selected as the target terminal. The uplink and downlink relationships corresponding to the target terminal are determined through a target method. The uplink relationship refers to the connection between the target terminal and its uplink Broadband Remote Access Unit (BRAS), Optical Line Terminal (OLT), and Optical Network Unit (ONU). The downlink relationship refers to the connection between the ONU connected to the target terminal and its downlink associated terminals. The associated terminals are other video acquisition terminals connected to the ONU connected to the target terminal in the video leased line, excluding the target terminal itself. The target method includes one or more of the following: filtering by location, filtering by physical address, command query, message parsing, traversing terminal status, and restarting the ONU via command. The steps for determining the uplink and downlink relationships corresponding to the target terminal using a target-oriented approach include: Determine the first latitude and longitude of the geographical location of the target terminal, and determine the first filtering range based on the first latitude and longitude; Determine the second latitude and longitude of the geographical location of each OLT in the OLT set, and determine the second filtering range based on the second latitude and longitude, wherein the OLT set includes all OLTs in the target area where the video lease line is located; Determine the second filtering range whose overlap with the first filtering range is greater than a preset threshold, and use it as the target filtering range; The OLTs corresponding to the target filtering range are identified as the OLTs to be filtered, thus obtaining the OLT dataset; For each of the OLTs to be filtered in the OLT dataset, execute the first query instruction to obtain the MAC address table corresponding to each OLT to be filtered. A query is performed in each of the MAC address tables to determine the target MAC address table in which the MAC address of the target terminal is located; The OLT to be filtered corresponding to the target MAC address table is determined as the target OLT, and the target terminal has the uplink relationship with the target OLT; A second query instruction is executed for the target OLT, and a first ONU dataset is formed based on the query results. The first ONU dataset includes all ONUs to be filtered that are connected to the target OLT. Obtain PPPoE+ packets related to personal services in the target area within a first preset time period, wherein the personal services include home broadband services; The PPPoE+ message is parsed to obtain OLT IP information and ONU sn information; Based on the OLT IP information and the ONU sn information, the ONUs to be screened in the first ONU dataset used to carry personal services are determined; The ONUs to be filtered that are used to carry personal services in the first ONU dataset are deleted to obtain the second ONU dataset, which includes the filtered ONUs. Based on the aforementioned uplink and downlink relationships, a video leased line topology is obtained by connecting them together.
2. The topology restoration method for video leased lines according to claim 1, characterized in that, After deleting the ONUs to be screened from the first ONU dataset that are used to carry personal services to obtain the second ONU dataset, the process further includes: A restart command is executed for each of the selected ONUs; After the ONU after the screening is restarted, if the terminal status of the target terminal is in the first state, it is determined that the target terminal and the ONU after the screening do not have the uplink relationship. The first state includes the target terminal being online or being offline for a long time. If the target terminal's terminal state is in the second state, the filtered ONU is determined to be the target ONU; wherein, the target terminal and the target ONU have the uplink relationship, and the second state includes the target terminal's terminal state switching from online state to offline state, and switching from offline state to online state within a second preset time period.
3. The topology restoration method for video leased lines according to claim 2, characterized in that, If the target terminal's terminal state is the second state, after determining that the filtered ONU is the target ONU, the process further includes: The terminal status of all video acquisition terminals in the target area is traversed to determine the terminal to be screened; wherein, after each ONU is restarted after screening, the terminal status change pattern of the terminal to be screened is the same as the terminal status change pattern of the target terminal. A third filtering range is determined based on the first latitude and longitude, and the third filtering range is smaller than the first filtering range; The terminal to be screened within the third screening range is identified as the associated terminal, and the target ONU and the associated terminal have the downstream relationship.
4. The topology restoration method for video leased lines according to claim 2, characterized in that, If the target terminal's terminal state is the second state, after determining that the filtered ONU is the target ONU, the process further includes: Execute a third query command on the target OLT to obtain a list of ONUs for each PON port of the target OLT; Based on the ONU list, determine the PON port that has the uplink relationship with the target ONU; After determining the target OLT corresponding to the target MAC address table as the target OLT, the method further includes: The fourth query instruction is executed on the target OLT to obtain the LLDP message; Based on the LLDP message, the target BRAS is determined, and the target OLT and the target BRAS have the uplink relationship.
5. The topology restoration method for video leased lines according to claim 1, characterized in that, The method further includes: Obtain offline alarm data corresponding to the alarm ONU within a third preset time period; wherein, the offline alarm data is generated after the alarm ONU experiences an offline failure; For each alarm ONU, based on the offline alarm data, determine its offline time point and its corresponding fourth filtering range; The video acquisition terminals that are offline and within the fourth preset time period after the offline time point are identified as terminals to be updated, thus obtaining the first terminal dataset. For each alarm ONU, determine the online time point when it recovers from offline to online status; For the first terminal dataset, delete the terminals that remain offline during the fourth preset time period after the online time point to obtain the second terminal dataset.
6. The topology restoration method for video leased lines according to claim 5, characterized in that, After deleting the terminals that remain offline during the fourth preset time period after the online time point from the first terminal dataset to obtain the second terminal dataset, the method further includes: Obtain the historical latitude and longitude of each terminal to be updated in the second terminal dataset, wherein the historical latitude and longitude correspond to the geographical location of each terminal to be updated in the second terminal dataset at the offline time point or the online time point; Obtain the real-time latitude and longitude of each terminal to be updated in the second terminal dataset; For the second terminal dataset, delete the terminals to be updated whose historical latitude and longitude do not overlap with the real-time latitude and longitude, to obtain the third terminal dataset; Based on the third terminal dataset, the video acquisition terminal connected to the alarm ONU in the video leased line topology is updated to the terminal to be updated, so as to update the video leased line topology.
7. A topology restoration device for video leased lines, characterized in that, The device includes: The terminal determination module is used to select any one of the video acquisition terminals in the video leased line whose topology relationship needs to be restored as the target terminal. The association module is used to determine the uplink and downlink relationships corresponding to the target terminal through a target method. The uplink relationship refers to the connection relationship between the target terminal and its uplink Broadband Remote Access Unit (BRAS), Optical Line Terminal (OLT), and Optical Network Unit (ONU). The downlink relationship refers to the connection relationship between the ONU connected to the target terminal and its downlink associated terminals. The associated terminals are other video acquisition terminals connected to the ONU connected to the target terminal in the video leased line, excluding the target terminal itself. The target method includes one or more of the following: filtering by location, filtering by physical address, command query, message parsing, traversing terminal status, and restarting the ONU via command. The association module is specifically used to: determine the first latitude and longitude of the geographical location of the target terminal, and determine a first filtering range based on the first latitude and longitude; Determine the second latitude and longitude of the geographical location of each OLT in the OLT set, and determine the second filtering range based on the second latitude and longitude, wherein the OLT set includes all OLTs in the target area where the video lease line is located; Determine the second filtering range whose overlap with the first filtering range is greater than a preset threshold, and use it as the target filtering range; The OLTs corresponding to the target filtering range are identified as the OLTs to be filtered, thus obtaining the OLT dataset; For each of the OLTs to be filtered in the OLT dataset, execute the first query instruction to obtain the MAC address table corresponding to each OLT to be filtered. A query is performed in each of the MAC address tables to determine the target MAC address table in which the MAC address of the target terminal is located; The OLT to be filtered corresponding to the target MAC address table is determined as the target OLT, and the target terminal has the uplink relationship with the target OLT; A second query instruction is executed for the target OLT, and a first ONU dataset is formed based on the query results. The first ONU dataset includes all ONUs to be filtered that are connected to the target OLT. Obtain PPPoE+ packets related to personal services in the target area within a first preset time period, wherein the personal services include home broadband services; The PPPoE+ message is parsed to obtain OLT IP information and ONU sn information; Based on the OLT IP information and the ONU sn information, the ONUs to be screened in the first ONU dataset used to carry personal services are determined; The ONUs to be filtered that are used to carry personal services in the first ONU dataset are deleted to obtain the second ONU dataset, which includes the filtered ONUs. The topology restoration module is used to connect the upstream and downstream relationships to obtain the video leased line topology.
Citation Information
Patent Citations
Method for identifying remote ONU down-linked terminal equipment in PON system automatically
CN101534460A
Data processing method and device, and electronic equipment
CN112203164A