Method and apparatus for acquiring connection topology of optical line terminal and broadband access server
By obtaining the mapping relationship between the OLT device ID and the user's optical modem MAC address, and the BRAS device ID and the user's optical modem IP address, and combining ARP resolution and cache deduplication processing, the problem of obtaining the topology relationship between the OLT and BRAS devices was solved, achieving efficient management and network optimization.
Patent Information
- Application Number
- CN202310653688.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-02
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2043-06-02
AI Technical Summary
Existing technologies cannot effectively obtain the connection topology between the optical line terminal (OLT) and the broadband access server (BRAS), leading to difficulties in operation and maintenance.
By obtaining the mapping relationship between the OLT device ID and the user's optical modem MAC address, and the mapping relationship between the BRAS device ID and the user's optical modem IP address, and by using ARP to resolve the IP address to the MAC address, combined with caching mechanism and deduplication processing, the connection topology relationship between the OLT and BRAS devices is established.
Without affecting existing business operations, it enables flexible and efficient management of OLT and BRAS equipment, saves labor costs, optimizes network architecture, and enhances operator competitiveness.
Smart Images

Figure CN116567461B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication technology, in particular to a method and device for acquiring the connection topology between an optical line terminal (OLT) and a broadband remote access server (BRAS). BACKGROUND
[0002] In the field of communication, the optical line terminal (OLT) and the broadband remote access server (BRAS) belong to two different professional devices, the optical line terminal (OLT) belongs to a two-layer network device, which is generally managed by the transmission professional, while the broadband remote access server (BRAS) belongs to a three-layer network device, which is generally managed by the data professional. Therefore, the two devices cannot be associated by a simple IP address.
[0003] If the connection topology relationship between the optical line terminal (OLT) and the broadband remote access server (BRAS) cannot be effectively acquired, the operating personnel and maintenance personnel cannot understand the access network situation, causing difficulties in operation and maintenance. Therefore, how to associate the two different levels of network devices and acquire the connection topology relationship between the optical line terminal (OLT) and the broadband remote access server (BRAS) has become a problem to be solved. SUMMARY
[0004] The technical problem to be solved by the present application is to solve the above-mentioned deficiencies of the prior art, and to provide a method and device for acquiring the connection topology between an optical line terminal (OLT) and a broadband remote access server (BRAS), which can acquire the connection topology relationship between the optical line terminal (OLT) and the broadband remote access server (BRAS) without affecting the existing services, so as to flexibly and efficiently manage the two types of devices, greatly save the labor cost, optimize the network architecture, and thus improve the competitiveness.
[0005] In a first aspect, the present application provides a method for acquiring the connection topology between an optical line terminal (OLT) and a broadband remote access server (BRAS), which comprises the following steps:
[0006] S1: acquiring the correspondence between the OLT device ID and the user optical modem MAC address; wherein one OLT device ID corresponds to a plurality of user optical modem MAC addresses;
[0007] S2: acquiring the correspondence between the BRAS device ID and the user optical modem IP address; wherein one BRAS device ID corresponds to a plurality of user optical modem IP addresses;
[0008] S3: resolving the user optical modem IP address into the user optical modem MAC address to obtain a one-to-one correspondence between the user optical modem IP address and the user optical modem MAC address;
[0009] S4: According to the one-to-one correspondence between the user optical CAT IP address and the user optical CAT MAC address, the connection topology of the BRAS device ID and the OLT device ID is converted.
[0010] Further, the step S1 specifically comprises the steps of:
[0011] S11: The topology connection of the OLT device ID and the user optical CAT MAC address is acquired for the first time, and the first topology relationship of the OLT device ID and the user optical CAT MAC address is obtained.
[0012] S12: After obtaining the first topology of the OLT device ID and the user optical CAT MAC address, the first cache topology relationship of the OLT device ID and the user optical CAT MAC address is automatically accumulated by the cache every second set time, and the second set time is the unconnected network time length of the OLT device automatically clearing the MAC address information of the user optical CAT.
[0013] S13: After obtaining the topology connection of the OLT device ID and the user optical CAT MAC address for the first time, the topology connection of the OLT device ID and the user optical CAT MAC address is acquired for the second time after the first set time, and the second topology relationship of the OLT device ID and the user optical CAT MAC address is obtained. Wherein, the first set time is greater than the second set time.
[0014] S14: The second topology relationship of the OLT device ID and the user optical CAT MAC address is analyzed according to the first cache topology relationship, so as to update the topology connection of the OLT device ID and the user optical CAT MAC address, and the corresponding relationship of the OLT device ID and the user optical CAT MAC address is obtained.
[0015] Further, the step S14 specifically comprises:
[0016] It is judged whether the OLT device ID in the first cache topology relationship and the OLT device ID in the second topology relationship are the same, and whether the MAC address corresponding to the OLT device ID in the first cache topology relationship and the MAC address corresponding to the OLT device ID in the second topology relationship are the same:
[0017] When it is determined that the OLT device ID in the first cache topology relationship and the OLT device ID in the second topology relationship are the same, and the MAC address corresponding to the OLT device ID in the first cache topology relationship and the MAC address corresponding to the OLT device ID in the second topology relationship are the same, the topology connection of the OLT device ID and the user optical CAT MAC address is not updated.
[0018] Or,
[0019] When it is determined that the OLT device ID in the first cached topological relationship is not the same as the OLT device ID in the second topological relationship, and the MAC address corresponding to the OLT device ID in the first cached topological relationship is not the same as the MAC address corresponding to the OLT device ID in the second topological relationship, the topological connection between the OLT device ID and the user optical modem MAC address is updated according to the second topological relationship;
[0020] Or,
[0021] When it is determined that the OLT device ID in the first cached topological relationship is not the same as the OLT device ID in the second topological relationship, and the MAC address corresponding to the OLT device ID in the first cached topological relationship is not the same as the MAC address corresponding to the OLT device ID in the second topological relationship, the topological connection between the OLT device ID and the user optical modem MAC address is updated according to the second topological relationship;
[0022] Or,
[0023] When it is determined that the OLT device ID in the first cached topological relationship is not the same as the OLT device ID in the second topological relationship, and the MAC address corresponding to the OLT device ID in the first cached topological relationship is not the same as the MAC address corresponding to the OLT device ID in the second topological relationship, the topological connection between the OLT device ID and the user optical modem MAC address is updated according to the second topological relationship; wherein: the user optical modem target MAC address in the first cached topological relationship is the user optical modem MAC address corresponding to the user ID last cached in the first topological relationship.
[0024] Further, in the step S2, the BRAS device ID and user optical modem IP address correspondence relationship is obtained by finding the BRAS device ID and user optical modem IP address correspondence relationship through the AAA system.
[0025] Further, in the step S3, the user optical modem IP address is resolved into a user optical modem MAC address by resolving the user optical modem IP address into a user optical modem MAC address through ARP.
[0026] Further, after the step S4, the method further comprises a repeated connection topological relationship between the BRAS device ID and the OLT device ID.
[0027] In a second aspect, the present application provides an optical line terminal and a broadband access server connection topology acquisition device, which comprises:
[0028] A first acquisition unit is configured to acquire the correspondence relationship between the OLT device ID and the user optical modem MAC address; wherein: one OLT device ID corresponds to a plurality of user optical modem MAC addresses;
[0029] The second obtaining unit is configured to obtain a correspondence between a BRAS device ID and a user optical modem IP address; wherein one BRAS device ID corresponds to a plurality of user optical modem IP addresses.
[0030] The first analyzing unit is configured to analyze the user optical modem IP address into a user optical modem MAC address, and obtain a one-to-one correspondence between the user optical modem IP address and the user optical modem MAC address.
[0031] The first converting unit is connected with the first obtaining unit, the second obtaining unit and the first analyzing unit respectively, and is configured to convert a connection topology between the BRAS device ID and the OLT device ID according to the one-to-one correspondence between the user optical modem IP address and the user optical modem MAC address.
[0032] Further, the first obtaining unit comprises:
[0033] The first obtaining module is configured to obtain a topology connection between the OLT device ID and the user optical modem MAC address for the first time, and obtain a first topology relationship between the OLT device ID and the user optical modem MAC address.
[0034] The first cache module is connected with the first obtaining module, and is configured to automatically accumulate and record the first topology relationship between the OLT device ID and the user optical modem MAC address by caching every second set time after obtaining the first topology relationship between the OLT device ID and the user optical modem MAC address, and obtain a first cache topology relationship; the second set time is a network disconnection time length of the OLT device automatically clearing the MAC address information of the user optical modem.
[0035] The second obtaining module is connected with the first obtaining module, and is configured to obtain the topology connection between the OLT device ID and the user optical modem MAC address after a first set time after obtaining the topology connection between the OLT device ID and the user optical modem MAC address for the first time, and obtain a second topology relationship between the OLT device ID and the user optical modem MAC address; wherein the first set time is greater than the second set time.
[0036] The analysis updating module is connected with the first cache module and the second obtaining module, and is configured to analyze the second topology relationship between the OLT device ID and the user optical modem MAC address according to the first cache topology relationship, and update the topology connection between the OLT device ID and the user optical modem MAC address, so as to obtain a correspondence between the OLT device ID and the user optical modem MAC address.
[0037] Further, the analysis updating module comprises a judgment submodule and an updating submodule,
[0038] The determination sub-module is configured to determine whether the OLT device ID in the first cache topology relationship is same as the OLT device ID in the second topology relationship, and determine whether the MAC address corresponding to the OLT device ID in the first cache topology relationship is same as the MAC address corresponding to the OLT device ID in the second topology relationship.
[0039] The update sub-module is connected with the determination sub-module, and is configured to determine whether to update the topology connection between the OLT device ID and the user optical modem MAC address according to the determination result of the determination sub-module, and specifically includes:
[0040] When it is determined that the OLT device ID in the first cache topology relationship is same as the OLT device ID in the second topology relationship, and the MAC address corresponding to the OLT device ID in the first cache topology relationship is same as the MAC address corresponding to the OLT device ID in the second topology relationship, the topology connection between the OLT device ID and the user optical modem MAC address is not updated.
[0041] Or,
[0042] When it is determined that the OLT device ID in the first cache topology relationship is not same as the OLT device ID in the second topology relationship, and the MAC address corresponding to the OLT device ID in the first cache topology relationship is not same as the MAC address corresponding to the OLT device ID in the second topology relationship, the topology connection between the OLT device ID and the user optical modem MAC address is updated according to the second topology relationship.
[0043] Or,
[0044] When it is determined that the OLT device ID in the first cache topology relationship is not same as the OLT device ID in the second topology relationship, and the MAC address corresponding to the OLT device ID in the first cache topology relationship is same as the MAC address corresponding to the OLT device ID in the second topology relationship, the topology connection between the OLT device ID and the user optical modem MAC address is updated according to the second topology relationship.
[0045] Or,
[0046] When it is determined that the OLT device ID in the first cache topology relationship is same as the OLT device ID in the second topology relationship, and the MAC address corresponding to the OLT device ID in the first cache topology relationship is not same as the MAC address corresponding to the OLT device ID in the second topology relationship, the topology connection between the OLT device ID and the user optical modem MAC address is updated according to the second topology relationship, wherein the user optical modem target MAC address in the first cache topology relationship is the user optical modem MAC address corresponding to the user ID last cached in the first topology relationship.
[0047] Further, the first conversion unit further comprises a first deduplication module, which is connected with the first acquisition unit, the second acquisition unit and the first analysis unit respectively, and is configured to perform deduplication processing on the repeated connection topology of the BRAS device ID and the OLT device ID.
[0048] The present application has the following beneficial effects:
[0049] The present application provides a method and device for acquiring the connection topology between an optical line terminal and a broadband access server, which associates the two-layer device with the three-layer device through the information of broadband user online authentication, reasonably utilizes the known information of the devices in the existing network, and realizes the association between the OLT and the BRAS without affecting the existing services, and acquires the topology connection relationship between the OLT and the BRAS. The operator can flexibly and efficiently manage the two types of devices without affecting the customer experience, greatly save the labor cost, optimize the network architecture, and thus improve the competitiveness. BRIEF DESCRIPTION OF DRAWINGS
[0050] Figure 1 The present application provides a method and device for acquiring the connection topology between an optical line terminal and a broadband access server, which associates the two-layer device with the three-layer device through the information of broadband user online authentication, reasonably utilizes the known information of the devices in the existing network, and realizes the association between the OLT and the BRAS without affecting the existing services, and acquires the topology connection relationship between the OLT and the BRAS. The operator can flexibly and efficiently manage the two types of devices without affecting the customer experience, greatly save the labor cost, optimize the network architecture, and thus improve the competitiveness.
[0051] Figure 2 The present application provides a method and device for acquiring the connection topology between an optical line terminal and a broadband access server, which associates the two-layer device with the three-layer device through the information of broadband user online authentication, reasonably utilizes the known information of the devices in the existing network, and realizes the association between the OLT and the BRAS without affecting the existing services, and acquires the topology connection relationship between the OLT and the BRAS. The operator can flexibly and efficiently manage the two types of devices without affecting the customer experience, greatly save the labor cost, optimize the network architecture, and thus improve the competitiveness.
[0052] Figure 3 The present application provides a method and device for acquiring the connection topology between an optical line terminal and a broadband access server, which associates the two-layer device with the three-layer device through the information of broadband user online authentication, reasonably utilizes the known information of the devices in the existing network, and realizes the association between the OLT and the BRAS without affecting the existing services, and acquires the topology connection relationship between the OLT and the BRAS. The operator can flexibly and efficiently manage the two types of devices without affecting the customer experience, greatly save the labor cost, optimize the network architecture, and thus improve the competitiveness.
[0053] Among them: 10, the first acquisition unit, 20, the second acquisition unit, 30, the first analysis unit, 40, the first conversion unit. DETAILED DESCRIPTION
[0054] In order to make the skilled in the art better understand the technical scheme of the present application, the embodiments of the present application will be further described in detail below with reference to the drawings.
[0055] It can be understood that the specific embodiments and drawings described herein are only used to explain the present application, not to limit the present application.
[0056] It can be understood that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0057] It can be understood that, for the convenience of description, only the parts related to the present application are shown in the drawings of the present application, and the parts unrelated to the present application are not shown in the drawings.
[0058] It can be understood that each unit and module involved in the embodiments of the present application can correspond to only one entity structure, or can be composed of multiple entity structures, or multiple units and modules can be integrated into one entity structure.
[0059] It can be understood that the functions and steps marked in the flowcharts and block diagrams of the present application can occur in an order different from that marked in the accompanying drawings, without conflict.
[0060] It can be understood that the flowcharts and block diagrams of the present application show the possible implementation architecture, functions and operations of the system, device, equipment and method according to the embodiments of the present application. Each block in the flowchart or block diagram can represent a unit, module, program segment, code, which contains executable instructions for implementing the specified functions. Moreover, each block or combination of blocks in the block diagram and flowchart can be implemented by a hardware-based system for implementing the specified functions, or by a combination of hardware and computer instructions.
[0061] It can be understood that the units and modules involved in the embodiments of the present application can be implemented in software or hardware, for example, the units and modules can be located in a processor.
[0062] Embodiment 1:
[0063] As shown in Figure 1 and Figure 3 The present application provides a method for obtaining the connection topology of an optical line terminal and a broadband access server, which comprises the following steps:
[0064] S1: obtaining the correspondence between the OLT device ID and the user optical modem MAC address; wherein one OLT device ID corresponds to a plurality of user optical modem MAC addresses;
[0065] The full name of OLT is Optical Line Termination, that is, fiber line terminal. The OLT device refers to the fiber line terminal, or optical line terminal, or optical transceiver.
[0066] S2: obtaining the correspondence between the BRAS device ID and the user optical modem IP address; wherein one BRAS device ID corresponds to a plurality of user optical modem IP addresses;
[0067] S3: resolving the user optical modem IP address into the user optical modem MAC address to obtain the one-to-one correspondence between the user optical modem IP address and the user optical modem MAC address;
[0068] S4: converting the connection topology of the BRAS device ID and the OLT device ID according to the one-to-one correspondence between the user optical modem IP address and the user optical modem MAC address.
[0069] BRAS is the abbreviation of Broadband Remote Access Server, which is a broadband access server.
[0070] Specifically, step S1 specifically comprises steps of:
[0071] S11: obtaining the topology connection of the OLT device ID and the user optical modem MAC address for the first time, to obtain the first topology relationship of the OLT device ID and the user optical modem MAC address;
[0072] S12: after obtaining the first topology of the OLT device ID and the user optical modem MAC address, automatically accumulating the first topology relationship of the OLT device ID and the user optical modem MAC address by buffering every second set time, to obtain the first cache topology relationship; the second set time is the unconnected network time length of the OLT device automatically clearing the MAC address information of the user optical modem;
[0073] S13: after obtaining the topology connection of the OLT device ID and the user optical modem MAC address for the first time, obtaining the topology connection of the OLT device ID and the user optical modem MAC address for the second time after the first set time, to obtain the second topology relationship of the OLT device ID and the user optical modem MAC address; wherein, the first set time is greater than the second set time;
[0074] S14: according to the first cache topology relationship, analyzing the second topology relationship of the OLT device ID and the user optical modem MAC address, to update the topology connection of the OLT device ID and the user optical modem MAC address, so as to obtain the corresponding relationship of the OLT device ID and the user optical modem MAC address.
[0075] Specifically, step S14 specifically comprises:
[0076] determining whether the OLT device ID in the first cache topology relationship is same as the OLT device ID in the second topology relationship, and determining whether the MAC address corresponding to the OLT device ID in the first cache topology relationship is same as the MAC address corresponding to the OLT device ID in the second topology relationship:
[0077] when it is determined that the OLT device ID in the first cache topology relationship is same as the OLT device ID in the second topology relationship, and the MAC address corresponding to the OLT device ID in the first cache topology relationship is same as the MAC address corresponding to the OLT device ID in the second topology relationship, the topology connection of the OLT device ID and the user optical modem MAC address is not updated;
[0078] or,
[0079] When it is determined that the OLT device ID in the first cached topological relationship is not the same as the OLT device ID in the second topological relationship, and the MAC address corresponding to the OLT device ID in the first cached topological relationship is not the same as the MAC address corresponding to the OLT device ID in the second topological relationship, the topological connection between the OLT device ID and the user optical modem MAC address is updated according to the second topological relationship;
[0080] Or,
[0081] When it is determined that the OLT device ID in the first cached topological relationship is not the same as the OLT device ID in the second topological relationship, and the MAC address corresponding to the OLT device ID in the first cached topological relationship is the same as the MAC address corresponding to the OLT device ID in the second topological relationship, the topological connection between the OLT device ID and the user optical modem MAC address is updated according to the second topological relationship.
[0082] Or,
[0083] When it is determined that the OLT device ID in the first cached topological relationship is the same as the OLT device ID in the second topological relationship, and the MAC address corresponding to the OLT device ID in the first cached topological relationship is not the same as the MAC address corresponding to the OLT device ID in the second topological relationship, the topological connection between the OLT device ID and the user optical modem MAC address is updated according to the second topological relationship; wherein the user optical modem target MAC address in the first cached topological relationship is the user optical modem MAC address corresponding to the user ID last cached in the first topological relationship.
[0084] Specifically, in step S2, the BRAS device ID and user optical modem IP address correspondence relationship is obtained by finding the BRAS device ID and user optical modem IP address correspondence relationship through the AAA system.
[0085] The AAA system is a security management mechanism for access control in network security, and provides three security services of authentication, authorization and accounting.
[0086] Specifically, in step S3, the user optical modem IP address is resolved into a user optical modem MAC address, which is obtained by resolving the user optical modem IP address into a user optical modem MAC address through ARP.
[0087] Specifically, after step S4, the method further includes de-duplication processing on the repeated connection topologies of the BRAS device ID and the OLT device ID.
[0088] The specific implementation process is as follows:
[0089] Assuming the current time is January 1, 2022 0:00, store all OLT device ID and user optical modem MAC address (including user ID) correspondence tables exported in OLT network management by caching every 24 hours until January 15, 2022 0:00, a total of 15 times (January 15, 2022 can first automatically generate topology relationship, January 30, 2022 can secondly automatically generate topology relationship……).
[0090] The 15-day OLT device ID and user optical modem MAC address (including user ID) correspondence table stored in the cache is shown in Table 1 (for convenience, only the information stored at 0:00 on January 2, 0:00 on January 3, and 0:00 on January 15 is displayed).
[0091]
[0092]
[0093] Table 1: Connection relationship between OLT and BRAS in the current network
[0094] The user records with the same OLT device ID and user optical modem MAC address are de-duplicated, and only the last record is kept. Then, for the records corresponding to two or more user optical modem MAC addresses for the same user ID, only the most recent one is kept. Finally, for the records corresponding to two or more OLT device IDs for the same user optical modem MAC address, only the most recent one is kept. Finally, the OLT device ID and user optical modem MAC address correspondence table is obtained,
[0095]
[0096]
[0097] Table 2: OLT device ID and user optical modem MAC address correspondence table
[0098] The BRAS device ID and user optical modem IP address correspondence table is found through the AAA system (when the AAA system exports this table, it will automatically de-duplicate and only keep the latest correspondence record), as shown in the following table:
[0099]
[0100] Table 3: BRAS device ID and user optical modem IP address correspondence table
[0101]
[0102]
[0103] The above three tables are associated by the user optical modem MAC address, as shown in the following table:
[0104] User ONU MAC address OLT device ID BRAS device ID ABC1 OLT1 BRAS1 ABC2 OLT4 BRAS3 ABC3 OLT2 BRAS1 ABC4 OLT2 BRAS1 ABC5 OLT2 BRAS1 ABC6 OLT3 BRAS2 ABC7 OLT3 BRAS2 ABC8 OLT4 BRAS3 ABC9 OLT4 BRAS3 ABCA OLT5 BRAS3
[0105] Finally, the connection relationship between the OLT and the BRAS is obtained after deduplication, as shown in the following table:
[0106] OLT device ID BRAS device ID OLT1 BRAS1 OLT2 BRAS1 OLT3 BRAS2 OLT4 BRAS3 OLT5 BRAS3
[0107] The method for obtaining the optical line terminal and broadband access server connection topology of the embodiment associates the layer 2 device and the layer 3 device through the information of broadband user online authentication, reasonably utilizes the known information of the device in the existing network, can realize the association of the OLT and the BRAS without affecting the existing service, can obtain the topology connection relationship between the OLT and the BRAS, and the operator can flexibly and efficiently manage the two types of devices without affecting the customer experience, greatly saves the labor cost, optimizes the network architecture, and thus improves the competitiveness.
[0108] Embodiment 2:
[0109] As shown in Figure 2 and Figure 3 The application provides an optical line terminal and broadband access server connection topology obtaining device, which comprises:
[0110] A first obtaining unit 10 is configured to obtain the correspondence between the OLT device ID and the user optical modem MAC address; wherein one OLT device ID corresponds to a plurality of user optical modem MAC addresses.
[0111] A second obtaining unit 20 is configured to obtain the correspondence between the BRAS device ID and the user optical modem IP address; wherein one BRAS device ID corresponds to a plurality of user optical modem IP addresses.
[0112] A first analyzing unit 30 is configured to analyze the user optical modem IP address into the user optical modem MAC address, and obtain the one-to-one correspondence between the user optical modem IP address and the user optical modem MAC address.
[0113] A first converting unit 40 is connected with the first obtaining unit 10, the second obtaining unit 20 and the first analyzing unit 30, respectively, and is configured to convert the connection topology of the BRAS device ID and the OLT device ID according to the one-to-one correspondence between the user optical modem IP address and the user optical modem MAC address.
[0114] Specifically, the first obtaining unit 10 comprises:
[0115] The first obtaining module is configured to obtain the topology connection between the OLT device ID and the user optical modem MAC address for the first time, and obtain the first topology relationship between the OLT device ID and the user optical modem MAC address.
[0116] The first cache module is connected with the first obtaining module, and is configured to automatically accumulate and record the first topology relationship between the OLT device ID and the user optical modem MAC address by caching every second second set time after obtaining the first topology relationship between the OLT device ID and the user optical modem MAC address, and obtain the first cache topology relationship; the second set time is the unconnected network time length of the OLT device automatically clearing the MAC address information of the user optical modem.
[0117] The second obtaining module is connected with the first obtaining module, and is configured to obtain the topology connection between the OLT device ID and the user optical modem MAC address after the first set time after obtaining the topology connection between the OLT device ID and the user optical modem MAC address for the first time, and obtain the second topology relationship between the OLT device ID and the user optical modem MAC address; wherein the first set time is greater than the second set time.
[0118] The analysis updating module is connected with the first cache module and the second obtaining module, and is configured to analyze the second topology relationship between the OLT device ID and the user optical modem MAC address according to the first cache topology relationship, to update the topology connection between the OLT device ID and the user optical modem MAC address, and to obtain the corresponding relationship between the OLT device ID and the user optical modem MAC address.
[0119] Specifically, the analysis updating module includes a determination submodule and an updating submodule,
[0120] The determination submodule is configured to determine whether the OLT device ID in the first cache topology relationship is the same as the OLT device ID in the second topology relationship, and determine whether the MAC address corresponding to the OLT device ID in the first cache topology relationship is the same as the MAC address corresponding to the OLT device ID in the second topology relationship.
[0121] The updating submodule is connected with the determination submodule, and is configured to determine whether to update the topology connection between the OLT device ID and the user optical modem MAC address according to the determination result of the determination submodule, and specifically includes:
[0122] When the OLT device ID in the first cache topology relationship is the same as the OLT device ID in the second topology relationship, and the MAC address corresponding to the OLT device ID in the first cache topology relationship is the same as the MAC address corresponding to the OLT device ID in the second topology relationship, the topology connection between the OLT device ID and the user optical modem MAC address is not updated.
[0123] Or,
[0124] When it is determined that the OLT device ID in the first cached topological relationship is not the same as the OLT device ID in the second topological relationship, and the MAC address corresponding to the OLT device ID in the first cached topological relationship is not the same as the MAC address corresponding to the OLT device ID in the second topological relationship, the topological connection between the OLT device ID and the user optical modem MAC address is updated according to the second topological relationship;
[0125] Or,
[0126] When it is determined that the OLT device ID in the first cached topological relationship is not the same as the OLT device ID in the second topological relationship, and the MAC address corresponding to the OLT device ID in the first cached topological relationship is the same as the MAC address corresponding to the OLT device ID in the second topological relationship, the topological connection between the OLT device ID and the user optical modem MAC address is updated according to the second topological relationship.
[0127] Or,
[0128] When it is determined that the OLT device ID in the first cached topological relationship is the same as the OLT device ID in the second topological relationship, and the MAC address corresponding to the OLT device ID in the first cached topological relationship is not the same as the MAC address corresponding to the OLT device ID in the second topological relationship, the topological connection between the OLT device ID and the user optical modem MAC address is updated according to the second topological relationship; wherein the target user optical modem MAC address in the first cached topological relationship is the user optical modem MAC address corresponding to the user ID last cached in the first topological relationship.
[0129] Specifically, the first conversion unit 40 further comprises a first deduplication module connected with the first acquisition unit, the second acquisition unit and the first analysis unit, respectively, for deduplicating the repeated connection topologies of the BRAS device ID and the OLT device ID.
[0130] The optical line terminal and the broadband access server connection topological relationship acquisition device of the embodiment associates the layer 2 device and the layer 3 device through the information of the broadband user online authentication, reasonably utilizes the known information of the devices in the existing network, can realize the association of the OLT and the BRAS without affecting the existing services, can acquire the topological connection relationship between the OLT and the BRAS, and the operator can flexibly and efficiently manage the two types of devices without affecting the customer experience, greatly saves the labor cost, optimizes the network architecture, and thus improves the competitiveness.
[0131] It is understood that the above embodiments are only exemplary for illustrating the principles of the present application, and the present application is not limited thereto. Various modifications and improvements can be made by those skilled in the art without departing from the spirit and scope of the present application, and these modifications and improvements are also considered as the protection scope of the present application.
Claims
1. A method for obtaining the connection topology between an optical line terminal and a broadband access server, characterized in that, The method includes the following steps: S1: Obtain the mapping relationship between OLT device ID and user optical modem MAC address; where: one OLT device ID corresponds to several user optical modem MAC addresses; Among them, the AAA system is used to find the table of correspondence between BRAS device IDs and user optical modem IP addresses; S2: Obtain the mapping relationship between BRAS device ID and user optical modem IP address; where: one BRAS device ID corresponds to several user optical modem IP addresses; S3: Resolve the user's optical modem IP address into the user's optical modem MAC address to obtain a one-to-one correspondence between the user's optical modem IP address and the user's optical modem MAC address; Among them, the AAA system is used to find the table of correspondence between BRAS device IDs and user optical modem IP addresses; S4: Based on the one-to-one correspondence between the user's optical modem IP address and the user's optical modem MAC address, convert the connection topology of BRAS device ID and OLT device ID.
2. The method for obtaining the connection topology between the optical line terminal and the broadband access server according to claim 1, characterized in that, Step S1 specifically includes the following steps: S11: Obtain the topology connection between the OLT device ID and the user's optical modem MAC address for the first time, and obtain the first topology relationship between the OLT device ID and the user's optical modem MAC address; S12: After obtaining the first topology of OLT device ID and user optical modem MAC address, the first topology relationship of OLT device ID and user optical modem MAC address is automatically accumulated and recorded through the cache every second set time to obtain the first cached topology relationship; the second set time is the inactive network duration for which the OLT device automatically clears the MAC address information of the user optical modem. S13: After obtaining the topology connection between the OLT device ID and the user's optical modem MAC address for the first time, after a first set time, obtain the topology connection between the OLT device ID and the user's optical modem MAC address for the second time, and obtain the second topology relationship between the OLT device ID and the user's optical modem MAC address; wherein, the first set time is longer than the second set time; S14: Based on the first cache topology relationship, the second topology relationship between the OLT device ID and the user's optical modem MAC address is parsed to update the topology connection between the OLT device ID and the user's optical modem MAC address, thereby obtaining the correspondence between the OLT device ID and the user's optical modem MAC address.
3. The method for obtaining the connection topology between the optical line terminal and the broadband access server according to claim 2, characterized in that, Step S14 specifically includes: Determine whether the OLT device ID in the first cache topology relationship is the same as the OLT device ID in the second topology relationship, and determine whether the MAC address corresponding to the OLT device ID in the first cache topology relationship is the same as the MAC address corresponding to the OLT device ID in the second topology relationship: If it is determined that the OLT device ID in the first cache topology relationship is the same as the OLT device ID in the second topology relationship, and the MAC address corresponding to the OLT device ID in the first cache topology relationship is the same as the MAC address corresponding to the OLT device ID in the second topology relationship, then the topology connection between the OLT device ID and the user's optical modem MAC address will not be updated. or, When it is determined that the OLT device ID in the first cache topology relationship is different from the OLT device ID in the second topology relationship, and the MAC address corresponding to the OLT device ID in the first cache topology relationship is different from the MAC address corresponding to the OLT device ID in the second topology relationship, the topology connection between the OLT device ID and the user's optical modem MAC address is updated according to the second topology relationship. or, When it is determined that the OLT device ID in the first cache topology relationship is different from the OLT device ID in the second topology relationship, and the MAC address corresponding to the OLT device ID in the first cache topology relationship is the same as the MAC address corresponding to the OLT device ID in the second topology relationship, then the topology connection between the OLT device ID and the user's optical modem MAC address is updated according to the second topology relationship. or, When it is determined that the OLT device ID in the first cache topology relationship is the same as the OLT device ID in the second topology relationship, and the MAC address corresponding to the OLT device ID in the first cache topology relationship is different from the MAC address corresponding to the OLT device ID in the second topology relationship, then the topology connection between the OLT device ID and the user optical modem MAC address is updated according to the second topology relationship; wherein: the target MAC address of the user optical modem in the first cache topology relationship is the MAC address of the user optical modem corresponding to the last cached user ID in the first topology relationship.
4. The method for obtaining the connection topology between the optical line terminal and the broadband access server according to any one of claims 1 to 3, characterized in that, After step S4, the method further includes: performing deduplication processing on the duplicate connection topologies of BRAS device ID and OLT device ID.
5. A device for acquiring the connection topology between an optical line terminal and a broadband access server, characterized in that, include: The first acquisition unit is used to acquire the correspondence between OLT device ID and user optical modem MAC address; wherein: one OLT device ID corresponds to several user optical modem MAC addresses; The system uses an AAA system to find the mapping table between BRAS device IDs and user optical modem IP addresses; the second acquisition unit is used to acquire the mapping relationship between BRAS device IDs and user optical modem IP addresses; wherein: one BRAS device ID corresponds to several user optical modem IP addresses; The first parsing unit is used to resolve the user's optical modem IP address into the user's optical modem MAC address, and obtain a one-to-one correspondence between the user's optical modem IP address and the user's optical modem MAC address. Specifically, ARP is used to resolve the user's optical modem IP address to the user's optical modem MAC address; The first conversion unit is connected to the first acquisition unit, the second acquisition unit, and the first parsing unit, respectively, and is used to convert the connection topology of BRAS device ID and OLT device ID according to the one-to-one correspondence between the user's optical modem IP address and the user's optical modem MAC address.
6. The device for obtaining the connection topology between the optical line terminal and the broadband access server according to claim 5, characterized in that, The first acquisition unit includes: The first acquisition module is used to acquire the topological connection between the OLT device ID and the user's optical modem MAC address for the first time, and obtain the first topological relationship between the OLT device ID and the user's optical modem MAC address. The first cache module, connected to the first acquisition module, is used to automatically accumulate and record the first topology relationship between the OLT device ID and the user's optical modem MAC address through the cache every second set time after obtaining the first topology relationship between the OLT device ID and the user's optical modem MAC address, so as to obtain the first cache topology relationship; the second set time is the unconnected network duration for which the OLT device automatically clears the MAC address information of the user's optical modem. The second acquisition module, connected to the first acquisition module, is used to acquire the topological connection between the OLT device ID and the user's optical modem MAC address for the first time, and after a first set time, acquire the topological connection between the OLT device ID and the user's optical modem MAC address to obtain the second topological relationship between the OLT device ID and the user's optical modem MAC address; wherein, the first set time is longer than the second set time. The parsing and updating module, connected to the first caching module and the second acquisition module, is used to parse the second topology relationship between the OLT device ID and the user's optical modem MAC address according to the first caching topology relationship, so as to update the topology connection between the OLT device ID and the user's optical modem MAC address, thereby obtaining the correspondence between the OLT device ID and the user's optical modem MAC address.
7. The apparatus for obtaining the connection topology between the optical line terminal and the broadband access server according to claim 6, characterized in that, The parsing and updating module includes a determination submodule and an update submodule. The determination submodule is used to determine whether the OLT device ID in the first cache topology relationship is the same as the OLT device ID in the second topology relationship, and to determine whether the MAC address corresponding to the OLT device ID in the first cache topology relationship is the same as the MAC address corresponding to the OLT device ID in the second topology relationship: The update submodule is connected to the determination submodule and is used to determine whether to update the topology connection between the OLT device ID and the user's optical modem MAC address based on the determination result of the determination submodule. Specifically, it includes: If it is determined that the OLT device ID in the first cache topology relationship is the same as the OLT device ID in the second topology relationship, and the MAC address corresponding to the OLT device ID in the first cache topology relationship is the same as the MAC address corresponding to the OLT device ID in the second topology relationship, then the topology connection between the OLT device ID and the user's optical modem MAC address will not be updated. or, When it is determined that the OLT device ID in the first cache topology relationship is different from the OLT device ID in the second topology relationship, and the MAC address corresponding to the OLT device ID in the first cache topology relationship is different from the MAC address corresponding to the OLT device ID in the second topology relationship, the topology connection between the OLT device ID and the user's optical modem MAC address is updated according to the second topology relationship. or, When it is determined that the OLT device ID in the first cache topology relationship is different from the OLT device ID in the second topology relationship, and the MAC address corresponding to the OLT device ID in the first cache topology relationship is the same as the MAC address corresponding to the OLT device ID in the second topology relationship, then the topology connection between the OLT device ID and the user's optical modem MAC address is updated according to the second topology relationship. or, When it is determined that the OLT device ID in the first cache topology relationship is the same as the OLT device ID in the second topology relationship, and the MAC address corresponding to the OLT device ID in the first cache topology relationship is different from the MAC address corresponding to the OLT device ID in the second topology relationship, then the topology connection between the OLT device ID and the user optical modem MAC address is updated according to the second topology relationship; wherein: the target MAC address of the user optical modem in the first cache topology relationship is the MAC address of the user optical modem corresponding to the last cached user ID in the first topology relationship.
8. The apparatus for obtaining the connection topology between an optical line terminal and a broadband access server according to any one of claims 5 to 7, characterized in that, The first conversion unit further includes a first deduplication module, which is connected to the first acquisition unit, the second acquisition unit and the first parsing unit respectively, and is used to deduplicate the duplicate connection topology of BRAS device ID and OLT device ID.
Citation Information
Patent Citations
IPTV end-to-end topology network establishment method and device
CN113472613A