CN112714010A - Network topology management method, device, expansion unit and storage medium - Google Patents

Network topology management method, device, expansion unit and storage medium Download PDF

Info

Publication number
CN112714010A
CN112714010A CN202011418789.4A CN202011418789A CN112714010A CN 112714010 A CN112714010 A CN 112714010A CN 202011418789 A CN202011418789 A CN 202011418789A CN 112714010 A CN112714010 A CN 112714010A
Authority
CN
China
Prior art keywords
unit
information
control word
word information
remote unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011418789.4A
Other languages
Chinese (zh)
Other versions
CN112714010B (en
Inventor
秦海滨
李中海
刘力群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dalian Gongjin Technology Co ltd
Original Assignee
Dalian Gongjin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dalian Gongjin Technology Co ltd filed Critical Dalian Gongjin Technology Co ltd
Priority to CN202011418789.4A priority Critical patent/CN112714010B/en
Publication of CN112714010A publication Critical patent/CN112714010A/en
Application granted granted Critical
Publication of CN112714010B publication Critical patent/CN112714010B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application is applicable to the technical field of network management, and provides a network topology management method, a device, an expansion unit and a storage medium. In the embodiment of the application, first control word information sent by a distributed unit is periodically acquired at intervals of a first preset time, and corresponding first address information is determined according to the first control word information; acquiring device information corresponding to the expansion unit, and changing the first control word information according to the device information corresponding to the expansion unit by a preset rule to obtain second control word information; sending the second control word information to a remote unit so that the remote unit determines corresponding second address information according to the second control word information; and constructing a topological structure according to the first address information and the second address information, thereby improving the efficiency of a network administrator for managing the problem equipment.

Description

Network topology management method, device, expansion unit and storage medium
Technical Field
The present application relates to the field of network management technologies, and in particular, to a method, an apparatus, an expansion unit, and a storage medium for managing a network topology.
Background
With the development of network technology, networks are more and more common in people's lives. To fully utilize resources, the ora alliance often manages the network system in a distributed manner, and for this reason, the ora alliance proposes to use a DHCP method to assign an IP to a remote unit. Therefore, how to facilitate the network administrator to manage the problem devices and improve the management efficiency of the network administrator becomes the central focus.
Disclosure of Invention
The embodiment of the application provides a network topology management method, a network topology management device, an expansion unit and a storage medium, which can solve the problem of low efficiency of a network administrator in managing problem equipment.
In a first aspect, an embodiment of the present application provides a network topology management method, which is applied to an expansion unit, and includes:
periodically acquiring first control word information sent by a distributed unit by taking first preset time as an interval, and determining corresponding first address information according to the first control word information;
acquiring device information corresponding to the expansion unit, and changing the first control word information according to the device information corresponding to the expansion unit by a preset rule to obtain second control word information;
sending the second control word information to a remote unit so that the remote unit determines corresponding second address information according to the second control word information;
and constructing a topological structure according to the first address information and the second address information.
In a second aspect, an embodiment of the present application provides a network topology management method, applied to a distributed unit, including:
periodically acquiring heartbeat information by taking second preset time as an interval;
and if the current topological structure does not have the remote unit corresponding to the heartbeat information, constructing the remote unit into the topological structure, and alarming and reminding.
In a third aspect, an embodiment of the present application provides a network topology management apparatus, including:
the first acquisition module is used for periodically acquiring first control word information sent by a distributed unit by taking first preset time as an interval and determining corresponding first address information according to the first control word information;
the first changing module is used for obtaining the equipment information corresponding to the expansion unit and changing the first control word information according to the equipment information corresponding to the expansion unit by a preset rule to obtain second control word information;
a first determining module, configured to send the second control word information to a remote unit, so that the remote unit determines corresponding second address information according to the second control word information;
and the constructing module is used for constructing a topological structure according to the first address information and the second address information.
In a fourth aspect, an embodiment of the present application provides an expansion unit, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any one of the network topology management methods in the first aspect when executing the computer program.
In a fifth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and when executed by a processor, the computer program implements the steps of any one of the network topology management methods in the first aspect.
In a sixth aspect, an embodiment of the present application provides a computer program product, which, when running on an expansion unit, causes the expansion unit to execute any one of the network topology management methods in the first aspect.
In the embodiment of the application, first control word information sent by a distributed unit is periodically acquired at intervals of a first preset time, and corresponding first address information is determined according to the first control word information; acquiring device information corresponding to the expansion unit, and changing the first control word information according to the device information corresponding to the expansion unit by a preset rule to obtain second control word information; sending the second control word information to a remote unit so that the remote unit determines corresponding second address information according to the second control word information; and constructing a topological structure according to the first address information and the second address information, determining corresponding address information by using the control words, and setting step by step to further form the topological structure, so that when the equipment has problems, a network administrator can accurately position the problem equipment through the corresponding control words, and the efficiency of the network administrator in managing the problem equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a first flowchart illustrating a network topology management method according to an embodiment of the present application;
fig. 2 is a topology structure diagram of a network topology management method according to an embodiment of the present application;
fig. 3 is a second flowchart of a network topology management method according to an embodiment of the present application;
fig. 4 is a third flowchart illustrating a network topology management method according to an embodiment of the present application;
fig. 5 is a fourth flowchart illustrating a network topology management method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a network topology management apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a network topology management apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an expansion unit provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
The first embodiment is as follows:
fig. 1 is a first flowchart illustrating a network topology management method according to an embodiment of the present application, where an execution subject of the method may be an expansion unit, and as shown in fig. 1, the network topology management method may include the following steps:
step S101, periodically acquiring first control word information sent by a distributed unit by taking first preset time as an interval, and determining corresponding first address information according to the first control word information.
In this embodiment, because the Remote Unit (RU) is allocated with an IP in a DHCP manner, which is not capable of locating a problem device, a control word may be used to determine corresponding address information, the Distributed Unit (DU) may obtain a device currently connected to the Distributed Unit and its own device information at a predetermined time interval, generate corresponding control word information according to the device information according to a predetermined rule, and the control word information is set up according to the device, so that the control word information generated between different devices is different, so that the control word information may be used as identity information of the device to be connected, that is, identity information of the extension Unit, that is, an ID of the extension Unit, and periodically send the obtained identity information to the extension Unit FHM RU, thereby prompting the extension Unit to periodically read the identity information, i.e. the control word information, to determine the address information corresponding to the extension unit, i.e. the first address information, i.e. the IP address of the extension unit. Wherein the extension unit can adopt a Fronthaul Multiplexer (FHM); the first preset time can be set according to the user requirement, and is generally set to be 1 second.
Specifically, the device information includes configuration information, a port number of a distributed unit, a cascade number of an expansion unit, current device identification information, and a device number of a remote unit, and the configuration information includes a basic configuration item and reservation information. It will be appreciated that the remote unit is numbered 0, since the connection between the distributed unit and the expansion unit described above does not involve a remote unit. The port number of the distributed unit is a port number of the current equipment connection, the distributed unit can support 7 ports, a topology structure is generally established by adopting 4 ports, and the port number can be set to be 1 to 7; the cascade number of the expansion unit is the cascade number of a certain expansion unit which is currently connected with the distributed unit, each port of the distributed unit can support 15 expansion units, one port of a general distributed unit corresponds to 4 expansion units, and the cascade number is 1 to 15; the current device identification information is used for identifying a device currently connected, for example, the identifier 1 is an extension unit, and the identifier 0 is a remote unit; the remote unit device number is a device number of a certain remote unit currently connected with an expansion unit, each expansion unit can support 15 remote units, a common expansion unit adopts 8 ports to connect the remote units, and the device number of the remote unit can be set to 1-15. The configuration information is configuration information when devices are connected, a basic configuration item included in the configuration information is corresponding configuration obtained by determining that a number of a certain unit adopts automatic configuration, or corresponding configuration adopting a fixed number, because the numbers of certain batches of devices used for the same purpose are the same, a fixed number represents each device of the batch, and the numbers corresponding to the basic configuration items are generally set to be configured for carrying out automatic configuration numbers, for example, an identifier 1 is an automatic configuration number, and an identifier 0 is a fixed number; the reserved information included in the configuration information is information that can be extended and supplemented when the device is connected, and if no information can be supplemented currently, the information needs to be reserved for subsequent additional extension, and the number is 0 when no information needs to be supplemented generally. If the control word information is a 16BIT value, the presentation manner of the control word information may be as shown in the following table:
Figure BDA0002821318770000061
the above table shows that the format of the control word information can be [ basic configuration item ] - [ distributed unit port number ] - [ extended unit cascade number ] - [ reserved information ] - [ current equipment identification information ] - [ remote unit equipment number ]; if the distributed unit is [0] - [000] - [0000] [000] - [0] - [0000], and the distributed unit is connected with the expansion unit, the first control word information generated by the port 1 of the distributed unit connected with the expansion unit with the cascade number of 1 is [0] - [001] - [0001] [000] - [1] - [0000 ]; if the extension unit with the cascade number of 1 is connected with the port 2, the first control word information generated by the port 2 of the distributed unit connected with the extension unit with the cascade number of 1 is [0] [002] [0001] [000] [1] [0000 ]. After the expansion unit receives the control word information sent by the distributed unit, the control word information can be used as the identity information of the expansion unit.
Optionally, after the device of the remote unit is powered on, a 32-bit ID number may be automatically generated according to its own identity information, where the device information according to the identity information may specifically correspond to that ID [31:24] corresponds to a port number of a distributed unit, and is generally arranged from 1; ID [23:16] corresponds to the cascade number of the expansion unit and is arranged from 1; ID [15:8] corresponds to the remote unit device number, starting with 1, and for the expansion unit itself, this field may be 0; ID [7:0] corresponds to the reservation information; the address of the above distributed unit is generally fixed to 0x 00000000.
Optionally, step S101 includes: acquiring an expansion unit cascade number and a distributed unit port number from the first control word information; and processing the port number of the distributed unit, and determining the first address information according to the cascade number of the expansion unit and the port number of the processed distributed unit.
Optionally, the processing the port number of the distributed unit includes: determining the cascade number of expansion units corresponding to one port of the distributed unit; calculating a product of the number of cascades and the distributed unit port number.
In this embodiment, the expansion unit cascade number and the distributed unit port number may be obtained from the first control word information, and the distributed unit port number is subjected to the most significant processing, that is, a maximum value is selected from all possible values of the expansion unit cascade number, a product of the selected maximum value and the distributed unit port number is calculated, a sum of the obtained distributed unit port number subjected to the most significant processing and the expansion unit cascade number is calculated, so that only one value representing the expansion unit may be obtained, and the first address information is determined by using the value, so as to obtain an address representing the expansion unit.
It can be understood that, considering that the address information is the only address information currently representing each unit, the address of each unit needs to be determined according to the unit connected with the unit and the address information itself, and the first control word information determination only relates to the connection between the distributed unit and the expansion unit, and does not determine whether there is a remote unit connected subsequently, and there may be a new connection of the remote unit, so the address of the expansion unit can be determined according to the distributed unit, the expansion unit and the related device information, and if the port number of the distributed unit and the cascade number of the expansion unit are calculated separately, the same value may appear, for example, the port of the port number 1 of the distributed unit is connected with the expansion unit of the cascade number 2 of the expansion unit, the port of the port number 2 of the distributed unit is connected with the expansion unit of the cascade number 1 of the expansion unit, the values obtained after the connection between the two units are consistent, which results in consistent address information of the two units, and therefore, the port numbers of the distributed units need to be subjected to the most valued processing.
As a specific example and not by way of limitation, if the IP of the current distributed unit is "192.168.0.3" and the subnet mask is "255.255.0.0", the last two fields of the IP of the extended unit may be changed, and the current distributed unit port number is a, the extended unit cascade number is B, and the maximum value of the current distributed unit port number is 15, then the above means is used to calculate the formula S being a × 15+ B, and the result S is placed in the third field of the IP of the extended unit. Since the current device identification information in the first control word information can be known as the expansion unit of the currently determined address information, the current overall structure does not consider the remote unit, so that the fourth field of the IP of the current expansion unit does not need to consider the remote unit, the fourth field of the IP of the expansion unit can be set according to the user requirement, for example, 16, and when the fourth field of the IP of the expansion unit takes the value of 16, the IP of the processed expansion unit is 192.168. s.16. For example, if the first control word information received by the current expansion unit is [0] [001] [0001] [000] [1] [0000], the IP of the corresponding expansion unit is "192.168.16.16".
Step S102, obtaining the device information corresponding to the expansion unit, and changing the first control word information according to the device information corresponding to the expansion unit by a preset rule to obtain second control word information.
In this embodiment, the extension unit may obtain the device information corresponding to the connection between the remote unit and the current extension unit, so as to change some information, which does not conform to the connection between the current devices, in the first control word information according to the obtained device information by using a preset rule, thereby obtaining the second control word information, that is, the identity information of the remote unit to which the current extension unit is connected.
It can be understood that, since the extension unit needs to acquire the current device information connected to the remote unit to change the first control word information, it needs to acquire the device number of the remote unit, and change the current device identification information in the device information to generate the corresponding second control word information, which corresponds to the remote unit.
As a specific example and not by way of limitation, it can be seen from the foregoing embodiment that the format of the control word information is [ basic configuration item ] - [ distributed unit port number ] - [ extended unit cascade number ] - [ reserved information ] - [ current device identification information ] - [ remote unit device number ]; if the first control word information received by the expansion unit is [0] - [001] - [0001] - [000] - [1] - [0000], and the number of the remote unit equipment connected with the expansion unit is 1, the second control word information is [0] - [001] - [0001] - [000] - [0] - [0001 ]; if the remote unit device number connected to it is 2, the second control word information is [0] - [001] - [0001] - [000] - [0] - [0002]. After the remote unit receives the control word information sent by the expansion unit, the control word information can be used as the identity information of the remote unit.
Step S103, sending the second control word information to a remote unit, so that the remote unit determines corresponding second address information according to the second control word information.
In this embodiment, after the distributed unit processes the second control word information, the second control word information is sent to the remote unit connected to the distributed unit, where the second control word information is identity information of the remote unit, so as to prompt the remote unit to periodically read the second control word information, and further determine corresponding address information, that is, the second address information, that is, an IP address of the remote unit, according to the second control word information.
It can be understood that, since the second control word information is determined based on the connection between the distributed unit and the expansion unit, the device information corresponding to the remote unit is determined, so that the port number of the distributed unit, the cascade number of the expansion unit, and the device number of the remote unit need to be obtained from the second control word information, and the second address information is determined according to the obtained information.
As a specific example and not by way of limitation, if the IP of the current distributed unit is "192.168.0.3" and the subnet mask is "255.255.0.0", the last two fields of the IP of the extended unit may be modified, and if the port number of the current distributed unit is a, the cascade number of the extended unit is B, the device number of the remote unit is C, and the maximum value of the port number of the current distributed unit is 15, then the third field of the IP of the remote unit is obtained according to the formula S × 15+ B. Since it can be known from the current device identification information in the second control word information that the current address information is determined to be the remote unit, the fourth field of the IP of the current extension unit needs to consider the remote unit, and can be set according to the device number C of the remote unit, so the IP of the processed extension unit is "192.168. s.c". If the second control word information received by the current remote unit is [0] - [001] - [0001] - [000] - [0] - [0001], the IP of the corresponding remote unit is "192.168.16.1"; if the second control word information received by the current remote unit is [0] [001] [0001] [000] [0] [0002], the IP of the corresponding remote unit is "192.168.16.2".
Optionally, the extension unit may send the second control word information to a sub-extension unit connected thereto, so that the sub-extension unit determines corresponding second address information according to the second control word information, for example, if the first control word information received by the extension unit is [0] [001] [0001] [000] [1] [0000], and the extension unit device number connected thereto is 2, the second control word information is [0] [001] [0002] [000] [1] [0000], and the IP of the corresponding extension unit is "192.168.17.16". The expansion unit and the sub-expansion unit are only used for distinguishing descriptions.
And step S104, constructing a topological structure according to the first address information and the second address information.
In this embodiment, by setting address information step by step between the above-mentioned devices, address information of each unit directly or indirectly connected to the distributed unit at present may be determined, and then a topology structure currently including connection statuses of all the devices may be constructed according to the address information of each step of unit, as shown in fig. 2, fig. 2 is a topology structure diagram of the network topology management method provided in this embodiment, where the topology structure diagram includes a distributed unit DU, an extended unit or extended subunit FHM RU, and a remote unit RU.
Optionally, step S104 includes: and periodically sending heartbeat information to the distributed units at intervals of second preset time so that the distributed units construct the expansion units into the topological structure according to the first address information in the heartbeat information.
In this embodiment, after determining the corresponding first address information, the extension unit sends heartbeat information to the distributed unit periodically at intervals of a second preset time, and after receiving the heartbeat information, the distributed unit forms a topology tree according to the first address information carried in the heartbeat information, that is, the corresponding extension unit is built into the topology structure. Wherein, the second preset time may be set to 2 seconds.
Optionally, the heartbeat information includes identity information of a corresponding expansion unit.
Optionally, a User Datagram Protocol (UDP) Server is established in the distributed unit, the UDP Server may monitor a specific port and address information of a distributed unit, the specific port is configured to receive data information sent by an extension unit or a remote unit connected to the distributed unit, and a monitoring module UDP Client is established in each extension unit and remote unit connected to the distributed unit, so as to perform the heartbeat mechanism. When the physical connection port is changed, the address information will be changed, and the established UDP Client will also be changed, and the UDP Client will perform the operations of deleting and re-establishing.
Optionally, as shown in fig. 3, fig. 3 is a second flowchart of the network topology management method provided in the embodiment of the present application, and includes:
step S301, if there is a connection operation performed by the current remote unit, acquiring device information corresponding to the current remote unit.
Step S302, changing the first control word information according to the equipment information corresponding to the current remote unit by a preset rule to obtain third control word information.
Step S303, sending the third control word information to the current remote unit, so that the current remote unit determines corresponding third address information according to the third control word information.
In this embodiment, if there is a connection operation performed by the current remote unit, which indicates that a new device is currently inserted, the device information corresponding to the current remote unit is obtained, so that the extension unit modifies the first control word information according to the corresponding device information to obtain third control word information, and sends the third control word information to the current remote unit, so that the current remote unit determines corresponding third address information according to the third control word information, and establishes a monitoring module UDP Client, so as to periodically send heartbeat information to the distributed unit at intervals of a second preset time, when the distributed unit first obtains heartbeat information sent by the current remote unit, the distributed unit constructs the current remote unit into a topology structure according to the third address information in the heartbeat information, records the time when the current remote unit sends the heartbeat information, and performs an alarm prompt, and the network staff is reminded to judge whether the requirement is met by newly added equipment in the current topological structure.
In the embodiment of the application, first control word information sent by a distributed unit is periodically acquired at intervals of a first preset time, and corresponding first address information is determined according to the first control word information; acquiring device information corresponding to the expansion unit, and changing the first control word information according to the device information corresponding to the expansion unit by a preset rule to obtain second control word information; sending the second control word information to a remote unit so that the remote unit determines corresponding second address information according to the second control word information; and constructing a topological structure according to the first address information and the second address information, determining corresponding address information by using the control words, and setting step by step to further form the topological structure, so that when the equipment has problems, a network administrator can accurately position the problem equipment through the corresponding control words, and the efficiency of the network administrator in managing the problem equipment is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example two:
fig. 4 is a schematic diagram illustrating a third flow of a network topology management method according to an embodiment of the present application, where an execution subject of the method may be a distributed unit, and as shown in fig. 4, the network topology management method may include the following steps:
step S401, periodically acquiring heartbeat information at intervals of a second preset time.
Step S402, if the current topological structure does not have the remote unit corresponding to the heartbeat information, the remote unit is built into the topological structure, and alarm reminding is carried out.
In this embodiment, after periodically acquiring heartbeat information sent by a remote unit at intervals of second preset time, a distributed unit searches for the remote unit corresponding to the heartbeat information, and if the corresponding remote unit is found in the current topological structure, records the time when the heartbeat information is received to a corresponding position of the topological structure, and updates the time, so as to update the time stamp of the corresponding unit in the topological structure to the current recording time; if the corresponding remote unit is not found in the current topological structure, the remote unit which is not found is built into the topological structure, the time of receiving the heartbeat message is recorded to the corresponding position of the topological structure, and alarm reminding is carried out to remind network staff and newly added equipment in the current topological structure to judge whether the requirement is met. Wherein the second preset time is 2 seconds.
Optionally, the distributed unit may further obtain heartbeat information of the expansion unit or the sub-expansion unit periodically at intervals of a second preset time; and if the current topological structure does not have the expansion unit or the sub-expansion unit corresponding to the heartbeat information, constructing the expansion unit or the sub-expansion unit into the topological structure, and alarming and reminding.
Optionally, as shown in fig. 5, fig. 5 is a fourth flowchart illustrating a network topology management method provided in the embodiment of the present application, where the fourth flowchart includes:
step S501, periodically acquiring time stamps of all remote units in the topological structure at intervals of third preset time; the timestamp is the time when the heartbeat information sent by the remote unit for the last time is received.
Step S502, obtaining the current time, and calculating the time difference between the timestamp and the current time.
And S503, when the time difference is larger than a preset time threshold, deleting the corresponding remote unit in the topological structure, and alarming and reminding.
In this embodiment, since there is a possibility that a certain remote device is suddenly powered off, a network is dropped, or removed, the distributed unit sets a detection mechanism, that is, the timestamp of each remote unit in the topology structure is periodically obtained at intervals of a third preset time, where the timestamp is a time when the remote unit receives the last heartbeat information sent by the remote unit. If the remote units have problems or are removed, the corresponding heartbeat messages cannot be sent to the distributed units, so that judgment is carried out according to the time when each remote unit sends the heartbeat messages for the last time, the time difference value between the current detection moment and the timestamp is calculated, if the time difference value is larger than a preset time threshold value, the current remote equipment has problems or is removed, the corresponding remote units in the topological structure are deleted, and alarm reminding is carried out, so that network workers can confirm the remote equipment. Wherein the third preset time is 0.5 second, and the time threshold is 3 seconds.
Optionally, the distributed unit may further detect a timestamp of the expansion unit or the sub-expansion unit by using a detection mechanism, and perform a relevant judgment, so as to determine a relevant problem of the expansion unit or the sub-expansion unit and update the topology structure in time.
In the embodiment of the application, heartbeat information is periodically acquired at intervals of second preset time; and if the current topological structure does not have the remote unit corresponding to the heartbeat information, constructing the remote unit into the topological structure, and alarming and reminding. The distributed unit periodically acquires heartbeat information of the current topological structure to update the topological structure, and simultaneously carries out alarm reminding to remind network workers, new equipment appears in the current topological structure, and therefore the efficiency of a network administrator in managing problem equipment is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example three:
corresponding to the network topology management method in the first embodiment, fig. 6 is a schematic view of a first structure of a network topology management device according to an embodiment of the present application, and as shown in fig. 6, the network topology management device may include:
the first obtaining module 601 is configured to periodically obtain first control word information sent by a distributed unit at intervals of a first preset time, and determine corresponding first address information according to the first control word information.
A first changing module 602, configured to obtain device information corresponding to an expansion unit, and change the first control word information according to the device information corresponding to the expansion unit by using a preset rule, so as to obtain second control word information.
A first determining module 603, configured to send the second control word information to a remote unit, so that the remote unit determines corresponding second address information according to the second control word information.
A constructing module 604, configured to construct a topology according to the first address information and the second address information.
Optionally, the network topology management apparatus may further include:
and the second acquisition module is used for acquiring the equipment information corresponding to the current remote unit if the current remote unit performs the connection operation.
And the second changing module is used for changing the first control word information according to the equipment information corresponding to the current remote unit by a preset rule to obtain third control word information.
A second determining module, configured to send the third control word information to the current remote unit, so that the current remote unit determines, according to the third control word information, corresponding third address information.
Optionally, the building module 604 may include:
the building unit is used for periodically sending heartbeat information to the distributed units at intervals of second preset time so that the distributed units build the expansion units into the topological structure according to the first address information in the heartbeat information.
Optionally, the first obtaining module 601 may include:
and the acquisition unit is used for acquiring the cascade number of the expansion unit and the port number of the distributed unit from the first control word information.
And the processing unit is used for processing the port number of the distributed unit and determining the first address information according to the cascade number of the expansion unit and the port number of the processed distributed unit.
Optionally, the processing unit may include:
and the determining subunit is used for determining the cascade number of the expansion units corresponding to one port of the distributed unit.
A calculating subunit, configured to calculate a product of the cascade number and the port number of the distributed unit.
In the embodiment of the application, first control word information sent by a distributed unit is periodically acquired at intervals of a first preset time, and corresponding first address information is determined according to the first control word information; acquiring device information corresponding to the expansion unit, and changing the first control word information according to the device information corresponding to the expansion unit by a preset rule to obtain second control word information; sending the second control word information to a remote unit so that the remote unit determines corresponding second address information according to the second control word information; and constructing a topological structure according to the first address information and the second address information, determining corresponding address information by using the control words, and setting step by step to further form the topological structure, so that when the equipment has problems, a network administrator can accurately position the problem equipment through the corresponding control words, and the efficiency of the network administrator in managing the problem equipment is improved.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus and the module described above may refer to corresponding processes in the foregoing system embodiments and method embodiments, and are not described herein again.
Example four:
corresponding to the network topology management method described in the second embodiment, fig. 7 is a schematic diagram of a second structure of the network topology management device provided in the embodiment of the present application, and as shown in fig. 7, the network topology management device may include:
a third obtaining module 701, configured to periodically obtain heartbeat information at intervals of a second preset time.
And an alarm module 702, configured to build the remote unit into the topology structure and perform alarm reminding if the current topology structure does not have a remote unit corresponding to the heartbeat information.
Optionally, the network topology management apparatus may further include:
a fourth obtaining module, configured to periodically obtain, at intervals of a third preset time, timestamps of each remote unit in the topology structure; the timestamp is the time when the heartbeat information sent by the remote unit for the last time is received.
And the calculation module is used for acquiring the current time and calculating the time difference between the timestamp and the current time.
And the deleting module is used for deleting the corresponding remote unit in the topological structure and carrying out alarm reminding when the time difference value is greater than a preset time threshold value.
In the embodiment of the application, heartbeat information is periodically acquired at intervals of second preset time; and if the current topological structure does not have the remote unit corresponding to the heartbeat information, constructing the remote unit into the topological structure, and alarming and reminding. The distributed unit periodically acquires heartbeat information of the current topological structure to update the topological structure, and simultaneously carries out alarm reminding to remind network workers, new equipment appears in the current topological structure, and therefore the efficiency of a network administrator in managing problem equipment is improved.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus and the module described above may refer to corresponding processes in the foregoing system embodiments and method embodiments, and are not described herein again.
Example five:
fig. 8 is a schematic structural diagram of an expansion unit provided in an embodiment of the present application. For convenience of explanation, only portions related to the embodiments of the present application are shown.
As shown in fig. 8, the expansion unit 8 of this embodiment includes: at least one processor 800 (only one shown in fig. 8), a memory 801 connected to the processor 800, and a computer program 802, such as a network topology management program, stored in the memory 801 and executable on the at least one processor 800. The processor 800 implements the steps in the above-described network topology management method embodiments, such as the steps S101 to S104 shown in fig. 1, when executing the computer program 802. Alternatively, the processor 800, when executing the computer program 802, implements the functions of the modules in the above device embodiments, for example, the functions of the modules 601 to 604 shown in fig. 6.
Illustratively, the computer program 802 may be partitioned into one or more modules that are stored in the memory 801 and executed by the processor 800 to accomplish the present application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 802 in the expansion unit 8. For example, the computer program 802 may be divided into a first obtaining module 601, a first changing module 602, a first determining module 603, and a constructing module 604, and the specific functions of each module are as follows:
a first obtaining module 601, configured to periodically obtain first control word information sent by a distributed unit at intervals of a first preset time, and determine corresponding first address information according to the first control word information;
a first changing module 602, configured to obtain device information corresponding to an expansion unit, and change the first control word information according to the device information corresponding to the expansion unit by using a preset rule to obtain second control word information;
a first determining module 603, configured to send the second control word information to a remote unit, so that the remote unit determines corresponding second address information according to the second control word information;
a constructing module 604, configured to construct a topology according to the first address information and the second address information.
The expansion unit 8 may include, but is not limited to, a processor 800 and a memory 801. Those skilled in the art will appreciate that fig. 8 is only an example of the expansion unit 8, and does not constitute a limitation to the expansion unit 8, and may include more or less components than those shown, or combine some components, or different components, such as an input/output device, a network access device, a bus, and the like.
The Processor 800 may be a Central Processing Unit (CPU), and the Processor 800 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 801 may in some embodiments be an internal storage unit of the expansion unit 8, such as a hard disk or a memory of the expansion unit 8. In other embodiments, the memory 801 may also be an external storage device of the expansion unit 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the expansion unit 8. Further, the memory 801 may also include both an internal storage unit and an external storage device of the expansion unit 8. The memory 801 is used for storing an operating system, an application program, a Boot Loader (Boot Loader), data, and other programs, such as program codes of the computer programs. The memory 801 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/expansion unit and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/expansion unit are merely illustrative, and for example, the division of the module or unit is only one logical division, and there may be other divisions when the actual implementation is performed, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/extension unit, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A network topology management method is applied to an expansion unit and comprises the following steps:
periodically acquiring first control word information sent by a distributed unit by taking first preset time as an interval, and determining corresponding first address information according to the first control word information;
acquiring device information corresponding to the expansion unit, and changing the first control word information according to the device information corresponding to the expansion unit by a preset rule to obtain second control word information;
sending the second control word information to a remote unit so that the remote unit determines corresponding second address information according to the second control word information;
and constructing a topological structure according to the first address information and the second address information.
2. The method for managing a network topology according to claim 1, comprising:
if the current remote unit carries out connection operation, acquiring equipment information corresponding to the current remote unit;
changing the first control word information according to the equipment information corresponding to the current remote unit by a preset rule to obtain third control word information;
and sending the third control word information to the current remote unit so that the current remote unit determines corresponding third address information according to the third control word information.
3. The method for managing a network topology according to claim 1, wherein said constructing a topology from said first address information and said second address information comprises:
and periodically sending heartbeat information to the distributed units at intervals of second preset time so that the distributed units construct the expansion units into the topological structure according to the first address information in the heartbeat information.
4. The method for managing network topology according to any of claims 1 to 3, wherein said determining corresponding first address information according to said first control word information comprises:
acquiring an expansion unit cascade number and a distributed unit port number from the first control word information;
and processing the port number of the distributed unit, and determining the first address information according to the cascade number of the expansion unit and the port number of the processed distributed unit.
5. The method for managing a network topology of claim 4, wherein said processing said distributed element port number comprises:
determining the cascade number of expansion units corresponding to one port of the distributed unit;
calculating a product of the number of cascades and the distributed unit port number.
6. A network topology management method is applied to distributed units and comprises the following steps:
periodically acquiring heartbeat information by taking second preset time as an interval;
and if the current topological structure does not have the remote unit corresponding to the heartbeat information, constructing the remote unit into the topological structure, and alarming and reminding.
7. The method for managing a network topology according to claim 6, comprising:
periodically acquiring the time stamp of each remote unit in the topological structure by taking third preset time as an interval; the time stamp is the time when the remote unit receives the heartbeat information sent last time;
acquiring the current time, and calculating the time difference between the timestamp and the current time;
and when the time difference is larger than a preset time threshold, deleting the corresponding remote unit in the topological structure, and alarming and reminding.
8. A network topology management apparatus, comprising:
the first acquisition module is used for periodically acquiring first control word information sent by a distributed unit by taking first preset time as an interval and determining corresponding first address information according to the first control word information;
the first changing module is used for obtaining the equipment information corresponding to the expansion unit and changing the first control word information according to the equipment information corresponding to the expansion unit by a preset rule to obtain second control word information;
a first determining module, configured to send the second control word information to a remote unit, so that the remote unit determines corresponding second address information according to the second control word information;
and the constructing module is used for constructing a topological structure according to the first address information and the second address information.
9. A propagation unit comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor, when executing said computer program, implements the steps of a network topology management method according to any of claims 1 to 5.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of a network topology management method according to one of the claims 1 to 5 or according to one of the claims 6 to 7.
CN202011418789.4A 2020-12-07 2020-12-07 Network topology management method and device, expansion unit and storage medium Active CN112714010B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011418789.4A CN112714010B (en) 2020-12-07 2020-12-07 Network topology management method and device, expansion unit and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011418789.4A CN112714010B (en) 2020-12-07 2020-12-07 Network topology management method and device, expansion unit and storage medium

Publications (2)

Publication Number Publication Date
CN112714010A true CN112714010A (en) 2021-04-27
CN112714010B CN112714010B (en) 2023-09-05

Family

ID=75542645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011418789.4A Active CN112714010B (en) 2020-12-07 2020-12-07 Network topology management method and device, expansion unit and storage medium

Country Status (1)

Country Link
CN (1) CN112714010B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114465935A (en) * 2022-01-11 2022-05-10 深圳绿米联创科技有限公司 Method for generating network topological graph for network system and related equipment
CN117389789A (en) * 2023-12-08 2024-01-12 四川恒湾科技有限公司 Power-down information storage and reporting method and system for O-RU equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731743A (en) * 2005-09-06 2006-02-08 杭州华为三康技术有限公司 Method for managing network device
CN103516824A (en) * 2012-06-30 2014-01-15 华为技术有限公司 Network topology identification method based on IP layer and devices
CN103763172A (en) * 2013-12-31 2014-04-30 江苏宁克传感器科技有限公司 Network topology building method
CN104378770A (en) * 2014-11-18 2015-02-25 合肥工业大学 Wireless networking method suitable for tree topology structure
US20180375735A1 (en) * 2017-06-26 2018-12-27 Charter Communications Operating, Llc Device discovery in a network environment
CN111953507A (en) * 2019-05-17 2020-11-17 中移(苏州)软件技术有限公司 Network topology discovery method and device and computer storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731743A (en) * 2005-09-06 2006-02-08 杭州华为三康技术有限公司 Method for managing network device
CN103516824A (en) * 2012-06-30 2014-01-15 华为技术有限公司 Network topology identification method based on IP layer and devices
CN103763172A (en) * 2013-12-31 2014-04-30 江苏宁克传感器科技有限公司 Network topology building method
CN104378770A (en) * 2014-11-18 2015-02-25 合肥工业大学 Wireless networking method suitable for tree topology structure
US20180375735A1 (en) * 2017-06-26 2018-12-27 Charter Communications Operating, Llc Device discovery in a network environment
CN111953507A (en) * 2019-05-17 2020-11-17 中移(苏州)软件技术有限公司 Network topology discovery method and device and computer storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
白华利;陈鸣;赵洪华;: "IP层网络拓扑发现技术及其进展" *
荆栋;肖刚;: "网络拓扑发现算法" *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114465935A (en) * 2022-01-11 2022-05-10 深圳绿米联创科技有限公司 Method for generating network topological graph for network system and related equipment
CN114465935B (en) * 2022-01-11 2024-05-14 深圳绿米联创科技有限公司 Method for generating network topological graph for network system and related equipment
CN117389789A (en) * 2023-12-08 2024-01-12 四川恒湾科技有限公司 Power-down information storage and reporting method and system for O-RU equipment
CN117389789B (en) * 2023-12-08 2024-03-08 四川恒湾科技有限公司 Power-down information storage and reporting method and system for O-RU equipment

Also Published As

Publication number Publication date
CN112714010B (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN110489391B (en) Data processing method and related equipment
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
WO2020015115A1 (en) Fault alarm method and terminal device
CN112714010A (en) Network topology management method, device, expansion unit and storage medium
CN109618174B (en) Live broadcast data transmission method, device, system and storage medium
CN112333249B (en) Business service system and method
CN112328448A (en) Zookeeper-based monitoring method, monitoring device, equipment and storage medium
CN109167819B (en) Data synchronization system, method, device and storage medium
CN111510326A (en) Master-slave equipment configuration information synchronization method, system, terminal equipment and storage medium
CN110968356A (en) Method and device for acquiring configuration information
CN110928681A (en) Data processing method and device, storage medium and electronic device
CN112199447A (en) Database synchronization method, device and system and electronic equipment
WO2016074412A1 (en) Compatibility administration method based on network configuration protocol, storage medium and device
JP6501924B2 (en) Method and server for canceling alert
CN108920323B (en) Application data statistical method and device and mobile terminal
CN111309693A (en) Data synchronization method, device and system, electronic equipment and storage medium
JP2009206731A (en) Monitoring system, monitoring device, monitoring method, and program
CN110704198B (en) Data operation method, device, storage medium and processor
CN109525621B (en) Data synchronization method, equipment and system based on ZigBee binding
CN106789304B (en) Network equipment configuration synchronization method and device
CN115037654A (en) Flow statistical method and device, electronic equipment and readable storage medium
CN108924013B (en) Network flow accurate acquisition method and device
CN113839991A (en) Method and device for confirming equipment information, storage medium and electronic device
CN107113557A (en) A kind of information processing method and device
CN113542775A (en) Live broadcast keep-alive service system, live broadcast keep-alive management method, server and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant