CN109245951B - Method for realizing networking monitoring of network optimization equipment based on web - Google Patents

Method for realizing networking monitoring of network optimization equipment based on web Download PDF

Info

Publication number
CN109245951B
CN109245951B CN201811310654.9A CN201811310654A CN109245951B CN 109245951 B CN109245951 B CN 109245951B CN 201811310654 A CN201811310654 A CN 201811310654A CN 109245951 B CN109245951 B CN 109245951B
Authority
CN
China
Prior art keywords
equipment
networking
parameters
web
node
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.)
Active
Application number
CN201811310654.9A
Other languages
Chinese (zh)
Other versions
CN109245951A (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.)
Wuhan Hongxin Technology Development Co Ltd
Original Assignee
Wuhan Hongxin Technology Development 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 Wuhan Hongxin Technology Development Co Ltd filed Critical Wuhan Hongxin Technology Development Co Ltd
Priority to CN201811310654.9A priority Critical patent/CN109245951B/en
Publication of CN109245951A publication Critical patent/CN109245951A/en
Application granted granted Critical
Publication of CN109245951B publication Critical patent/CN109245951B/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/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0253Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Abstract

The invention provides a method for realizing networking monitoring of network optimization equipment based on web, which is used for monitoring networking equipment in a digital optical fiber repeater, wherein the equipment comprises near-end equipment MU, extended equipment EU and far-end equipment RU, and is characterized in that: the MU master control acquires EU parameters, the EU acquires RU parameters, the MU master control transmits networking parameters to an MU web through a shared memory according to an equipment networking sequence, the web bottom layer performs logic processing on the networking parameters, and the equipment parameters are displayed through a topological graph according to an actual system networking mode, so that equipment networking monitoring is achieved. The technical scheme of the invention can realize a networking mode supporting the whole system of the intuitive mr, and carry out one-key access to the node equipment through the ip address displayed by the node in the topological graph; the parameter modification and debugging of the equipment are not required to be carried out on site to each station, the engineering starting time is saved, and the engineering maintenance difficulty is reduced.

Description

Method for realizing networking monitoring of network optimization equipment based on web
Technical Field
The invention relates to the field of optical fiber communication and wireless communication, in particular to a method for realizing networking monitoring of network optimization equipment based on web.
Background
With the development of society, the demand of communication networks is increasing. Networking equipment in the digital optical fiber repeater is more and more, the operation and maintenance of the system are more and more complex, and the problems of misoperation and the like are more likely to occur in the operation. At present, although a networking topological graph exists in digital optical fiber repeater equipment, certain problems exist. If the display is not visual enough, the accuracy in networking cannot be guaranteed, and the operation is not convenient and quick enough. The difficulty of engineering maintenance is still great. According to the invention, after web networking monitoring is added to the system, the networking of the equipment can be more visually displayed, the networking accuracy can be ensured, other equipment in the networking system can be accessed by one key, the equipment can be accessed more conveniently and quickly, the engineering maintenance difficulty is reduced, and the cost is reduced.
However, there are many technical difficulties in implementing Web monitoring networking, for example, how to display the networking topology map of the device information accurately and uniquely according to the actual connected networking of the device according to the MAC address and the optical port information of the device parameters acquired in the whole networking system; how to enable one-touch access to devices on a network.
Disclosure of Invention
The invention aims to overcome the technical defects and provides a method for realizing networking monitoring of network transmission equipment based on a web.
The technical scheme of the invention provides a method for realizing networking monitoring of network optimization equipment based on a web, which is used for monitoring networking equipment in a digital optical fiber repeater, wherein the equipment comprises near-end equipment MU, extended equipment EU and far-end equipment RU, the MU master control acquires parameters of the EU, the EU acquires parameters of the RU, the MU master control transmits the networking parameters to an MU web through a shared memory according to equipment networking sequence through the shared memory, the web bottom layer carries out logic processing on the networking parameters, and the equipment parameters are displayed through a topological graph according to an actual system networking mode, so that the monitoring of the equipment networking is realized; the implementation process comprises the following steps of,
step S1, EU makes parameter inquiry to RU connected to EU through datalink link, RU responds;
step S2, the MU master control inquires all EU information in the system through wired UDP broadcast, EU responds;
step S3, according to the uniqueness of the MAC address, the MU master control sequentially puts the inquired effective EU parameters into a networking structure body for storage;
step S4, the MU web inquires networking parameters through the shared memory, and determines the equipment information process and node connection mode of each node in the topological graph;
and step S5, the MU web displays the device parameters of the networking device through the topological graph, and supports the realization of one-key access operation on the device by clicking the ip address.
In step S1, the EU detects the on-position status of its optical port, and sends an RU query frame structure to perform RU parameter query using datalink according to the on-position status, where the query frame structure includes a fixed frame header and frame tail, Cyclic Redundancy Check (CRC), a forward response flag, and a port number; RU responds parameters to EU according to the query frame, EU judges whether the frame is the RU frame needing to be queried according to the frame structure, useful frames are taken out and put into a structure body to be stored, and the taken effective parameters comprise ip addresses, MAC addresses, optical port numbers and equipment numbers.
In step S2, the MU master controller broadcasts and queries EU information through the wired UDP according to the all-optical protocol frame structure, the EU responds according to the corresponding frame structure, the MU determines whether the broadcast is successful according to the optical port information, analyzes according to the frame structure in which the broadcast is successful, extracts the ip address, MAC address, optical port number, and device number of the EU required for networking, and then extracts an effective EU flag bit according to the optical port state; and giving out corresponding zone bits for judging fault information of the connecting equipment on the optical port according to the connection state of the optical module and the optical fiber.
And in step S3, determining whether the EU device of the current MAC address already exists in the networking parameter according to the MAC, if so, updating the EU parameter, and if not, storing the networking parameter of the current EU device in an idle position of the networking parameter structure as a new node in the topology map.
In step S4, the MU web reads the device parameters of the local MU through the shared memory and stores the device parameters in the corresponding array, which is used as the first node in the web networking map topology;
the Web bottom layer obtains the MAC address in the networking parameters and the MAC address of the upper level through a shared memory, and is used for judging which node of the current topological graph the current equipment should be stored on, and taking out the equipment parameters of the confirmed node position and respectively storing the equipment parameters into corresponding arrays;
and if the equipment of the node is currently determined to be EU, continuously judging whether an optical interface of the EU is connected with an RU, if the EU exists, taking out the parameters of the RU, and respectively storing the parameters into corresponding arrays until all the equipment parameters are taken out.
Furthermore, in step S5, on the topology display page of the MU web, each device is a node in the topology, where the MAC address and the parent MAC address are used for connection between nodes, and when the parent MAC address of the device is equal to the MAC address of another device, the current node is connected to the node corresponding to the parent MAC; and finishing networking the network equipment when all the connection information of all the equipment is displayed.
In step S5, the ip address is sent to each device by the MU master through DHCP broadcast, and the ip address is automatically numbered according to the current number of devices.
The method for realizing networking monitoring of the network optimization equipment based on the web can realize that the networking mode of the whole system can be intuitively known only by clicking one key at the near end, and the specific parameter state of the current node equipment can be inquired and set by carrying out one-key access on the node equipment through the ip address displayed by the node in the topological graph. Meanwhile, whether a plurality of devices, the types of the devices, the numbers of the connected light ports and faults are connected to each device can be visually seen. And because the MAC address of each device is unique, the topological graph generated by the method has good fault tolerance and uniqueness. When the engineering is opened and maintained, the equipment does not need to be modified and debugged on site at each site, and only one-key operation is needed to be carried out in the equipment at the near end of the machine room, so that the engineering opening time is saved, and the engineering maintenance difficulty is reduced.
Drawings
FIG. 1 is a networking diagram of a digital optical fiber repeater system according to an embodiment of the present invention;
fig. 2 is a basic structure diagram of system networking data acquisition according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating MU master networking parameter acquisition according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a MU web underlying implementation networking monitoring according to an embodiment of the present invention;
fig. 5 is a system networking diagram for MU web topology diagram monitoring according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a method for realizing networking monitoring of network optimization equipment based on a web, and the method is realized by sharing a memory in a data transmission mode between a web process and a master control process. The function of monitoring the device networking is realized through a web topological graph. The web topological graph is used for realizing monitoring and displaying of equipment networking, so that a system of the equipment networking looks more clear and clear, and simultaneously, real-time monitoring and parameters of the equipment look more intuitive.
The shared memory region is the fastest form of IPC. Once such memory is mapped to the address space of the processes that share it, these inter-process data transfers no longer involve the kernel, in other words the processes no longer transfer each other's data by performing system calls into the kernel. In the system, the web and the master control are two processes respectively, so that the communication is carried out in a memory sharing mode.
After networking monitoring is carried out on repeater equipment by using a web topological graph, the position of each equipment in a system can be visually seen through the web topological graph, the upper level and the lower level are respectively connected with the equipment, and each equipment is connected with a plurality of equipment and connected with optical port information of the equipment; meanwhile, the ip address of each device can be seen; numbering equipment; a device type; whether the equipment is faulty, the cause of the fault, etc. And simultaneously, one-key access can be carried out on the current equipment by clicking the ip address of the equipment seen on the topological graph. And because the topological connection between the devices by using the MAC address has uniqueness, the devices avoid topological networking errors. After the repeater networking is monitored by using the web, the networking condition of the whole system can be checked only by a pc machine at the near end, the operation is carried out, and the complicated operation is not required to be carried out at each equipment place, so that the problems of engineering maintenance, troubleshooting and the like can be reduced, the engineering maintenance difficulty is reduced, and the cost is saved.
The embodiment of the invention provides a method for realizing networking monitoring of network optimization equipment based on a web, which comprises the following steps: MU (near-end) device, EU (extended) device, RU (far-end) device, accurate MU-near-end host access unit; an EU-extension unit; RU-remote unit. The MU acquires EU parameters at a main control (application layer), the EU acquires RU parameters, the MU main control transmits networking parameters to an MU web through a shared memory according to a certain sequence (the actual cascade sequence of equipment, namely the MU is a first level, equipment connected with an MU optical port is a second level and the like, and the like), the web bottom layer performs logic processing on the networking parameters, and the equipment parameters are displayed through a topological graph according to the actual system networking mode, so that the equipment networking monitoring is realized.
According to the actual cascade sequence of the equipment, the networking parameters are filtered by the MAC address and then are sequentially stored in the structure body and then are sent.
Specifically, the method comprises the following steps:
step S1: the RU parameters ip address, MAC address, optical port number and equipment number required in networking can be obtained by a plurality of methods, but an optimal method is selected in the invention: EU carries out parameter query on RU connected to EU through datalink link, and RU responds; and meanwhile, parameter fault information required in networking is acquired through the optical port state on the equipment.
The method specifically comprises the following steps:
datalink link is a point-to-point optical communication channel. Starting EU to detect the in-place state of an optical port of the EU, and sending an RU query frame structure by using a datalink link according to the in-place state to perform RU parameter query, wherein the query frame structure comprises fixed frame header and frame tail, Cyclic Redundancy Check (CRC), forwarding response mark, port number and other fixed information; RU responds parameters to EU according to the query frame, EU judges whether the frame is the RU frame needing to be queried according to the frame structure, useful frames are taken out and stored in a structure body, and the taken effective parameters include ip addresses, MAC addresses, optical port numbers and equipment numbers. The EU judges and provides a zone bit according to the information of whether the optical port is connected with the optical fiber, the optical module is abnormal and the like by detecting the state information of the optical port of the EU, and is used for judging the most original fault information of the connecting equipment on the EU optical port, so that the fault information zone bit required by networking is obtained.
Step S2: EU parameters ip address, MAC address, upper MAC address (father MAC), optical port number, and device number required in networking can be obtained by various methods, but an optimal method is selected in the present invention: the MU master control inquires all EU information in the whole system through a wired user datagram protocol UDP broadcast, and the EU responds; and meanwhile, the fault information of the connecting equipment is judged according to the state of the optical port.
The method specifically comprises the following steps:
when the MU master controller broadcasts the inquiry through the wired UDP, the response frame is received immediately after the inquiry frame is sent out. And the MU master controller broadcasts and inquires EU information through a wired UDP according to an all-optical protocol frame structure, the EU responds according to a corresponding frame structure, the MU judges whether the broadcasting is successful according to the optical port information, analyzes according to the frame structure of the broadcasting success, and extracts an ip address, an MAC address, an optical port number and an equipment number of the EU required by the networking. Then, effective EU flag bits are taken out according to the optical port state. And giving out corresponding zone bits for judging fault information of the connecting equipment on the optical port according to the connection state of the optical module and the optical fiber.
Step S3: and filtering all EU parameters in the current system through the MAC address according to the uniqueness of the MAC address. When the MU acquires all the device parameters, the MU does not have a sequence, so the MU needs to filter the device parameters through the MAC address, and the filtered device parameters are stored according to the actual cascade sequence of the device. The MAC address of each device in the system is unique, so that when judging whether the device is a networking device or not and the storage position of the device in the networking system, the device is obtained by using the MAC address judgment mode, and the repeatability of the device in generating a topological graph can be avoided. The method comprises the steps of judging whether EU equipment of a current MAC address exists in networking parameters according to MAC, if yes, updating the EU parameters, and ensuring that topological graph parameters are updated in real time; and if the current EU equipment does not exist in the networking parameters, storing the networking parameters of the current EU equipment into an idle position of a networking parameter structure body to be used as a new node in the topological graph.
In the MU networking array of the embodiment system, a maximum number of networking devices is defined as 256. The MU application layer judges the obtained EUMAC address according to the inquired effective EU data and the maximum networking requirement, judges whether EU equipment of the current MAC address exists in networking parameters or not according to the MAC address, and updates the EU parameters if the EU equipment of the current MAC address exists in the networking parameters; and if not, storing the current EU equipment networking parameters into an idle position of the networking parameter structure.
Step S4: and determining the equipment information processing and node connection mode of each node in the topological graph at the web bottom layer. The method for determining the equipment information of each node comprises the following steps: the MU web inquires the networking parameters through the shared memory.
The method comprises the steps that parameters of EU and RU are stored by an MU application layer in a structure array mode, data are sent to the web in a shared memory mode, the web updates and reads the data in real time through the shared memory, when the MU parameters of the web are read through the shared memory and comprise ip addresses, device types and MAC addresses, the device types, the ip addresses and the MAC addresses obtained by MU main control information are stored in a new array to serve as a first node in a topological graph.
Then, the Web bottom layer obtains the MAC address in the networking parameter and the MAC address of the previous stage through the shared memory, and is used to determine which node of the current topology map the current device should be stored on. And taking out the equipment parameters of the confirmed node positions and respectively storing the equipment parameters into corresponding arrays. The method comprises the steps that the MAC address of the MU is compared with a father MAC address of the EU of the networking equipment, the position of a node connected with the EU on a topological graph at present is judged, if the node position is confirmed, parameters such as the equipment type, the ip address, the MAC address, the optical port number and the like of the EU at present are taken out and sequentially stored in a corresponding array, and then the flag bit of the fault information of the present equipment is judged and is used for displaying the color of the node of the present equipment.
If the equipment of the current confirmed node is EU, judging whether an optical interface of the EU is connected with an RU according to the optical interface information, if the RU exists, sequentially storing the equipment type, the ip address, the MAC address, the optical interface number and other parameters of the RU into a corresponding array. And then, the zone bit of the current equipment fault information is judged for displaying the color of the current equipment node. Until the optical interface information on EU is judged.
Step S5: the web topological graph displays the equipment type, equipment number, ip address and optical port number of the networking equipment; and realizing one-key access operation on the equipment by clicking the ip address. The method specifically comprises the following steps:
in specific implementation, in the MU web topological graph display page, the format, color and node size of the topological graph to be displayed can be defined through the HTML language. And querying through a query function in the embedded web server, storing a function return value into an array defined by the page, taking out character strings in the array, and displaying the character strings at the corresponding tree node position.
Each device on the web page is a node in the topological graph, wherein the MAC address and the father MAC address are used for connection between the nodes, and when the father MAC address of the device is equal to the MAC addresses of other devices, the current node is connected to the node equivalent to the father MAC; the type of the equipment and the serial number of the equipment enable a user to distinguish the equipment more intuitively; the port number is a port number that lets the user know to which port the current device is connected to the previous device. The fault information is distinguished by different colors of the current node, for example, when the current node is displayed as green to indicate that the equipment is normal, gray to indicate that the light port is abnormal, red to indicate an alarm, etc., different colors can be displayed according to different requirements, and the method is not limited to the method written in the scheme. And when all the connection information of all the equipment is displayed, networking of the network optimization equipment is completed.
The ip address is displayed on the topological graph, so that a user can access the current node equipment through one MU key; the ip address is issued to each device by the MU master through DHCP broadcast, and the ip address is automatically numbered according to the number of the current devices. Other devices broadcast the ip address and then use the ip address when the web accesses the device. Thereby enabling one-touch access in a web topology graph.
FIG. 1 is a networking diagram of a digital optical fiber repeater system provided by the present invention. As shown in fig. 1, the system mainly includes an MU (near-end host access unit), an EU (extended unit), and an RU (remote unit). The MU has 4 optical ports (SPF1, SPF2, SPF3, SPF4) mainly used to connect with EU, the EU has 8 optical ports (SPF 1-SPF 8), the 1 st optical port is used to connect with MU, the 2 nd optical port is used to cascade EU, the 3 rd to 8 th optical ports are used to connect with RU, the RU has 2 optical ports, both of which can be used to connect with EU, but the two optical ports on RU can not connect with EU at the same time, so it can be seen that the networking system is huge and the management is complex.
In the system networking of the present embodiment. Two EUs of MU direct cascade are named EU1 and EU2, EU1 is connected to port 1, and E2 is connected to port 4. EU1 is cascaded with two RUs and one EU, designated RU1, RU2 and EU3, RU1 is connected to optical port 7, RU2 is connected to optical port 8 and EU3 is connected to optical port 2. EU2 cascades two RUs and one EU, named RU3, RU3 and EU4, respectively, RU3 is connected to optical port 7 and RU4 is connected to optical port 8. EU4 is connected to optical port 2. The EU3 has two upper RUs, named RU5 and RU6, connected to the optical port 7 and the optical port 8. EU4 has three upper RU units, namely RU7, RU8 and RU9, RU7 is connected to optical port 6, RU8 is connected to optical port 7, and RU9 is connected to optical port 8. The connection of each device is through optical fiber and laser, and forms the network in the system. It should be noted that, in actual use, the number of cascades of each device is determined according to actual situations, and is not limited to the networking mode in this embodiment. It can be seen that there are many devices in practical use, and the devices cascaded under the MU are not all in the same place, so that the maintenance is very inconvenient. The scheme is provided for better operating and maintaining the equipment.
Fig. 2 is a basic structure diagram of system networking data acquisition according to an embodiment of the present invention. And the MU CPU is used for realizing MU single disk function and simultaneously communicating with EU and RU. The MUWEB realizes the display of all functions of equipment and the display of a topological graph of system networking. The MU WEB only communicates with the MU master control and does not communicate directly with other single disks. As shown in fig. 2, the MU web and the MU master communicate with each other through the shared memory to obtain required parameters; the MU master control broadcasts a query command to all EUs on the link through a wired UDP, and the EUs respond the command to the MU; EU sends query command to RU connected to it through datalink, and RU responds command to EU. The specific implementation process can be as follows:
step 1: the method comprises the steps that an MU web topological graph display page is compiled for a network element function of a topological graph tree structure through JavaScript, and mainly the connection between tree nodes and an ip access part are compiled; and then, defining and planning positions, coordinates of nodes, frame sizes, parameter numbers and the like of parameter display of the tree nodes through an HTML language. And editing a tree node parameter acquisition function, and acquiring web bottom layer return parameters through a GoAhead query function when a page is refreshed. when the web bottom layer function is called, parameters required by networking are obtained through a structure body defined in a shared memory, and the obtained parameters are returned to a web page after being processed. In the topology, the connection between the nodes is made according to the parent MAC address and the MAC address. And performing one-key access on the equipment of the current node through the ip address.
Step 2: the MU CPU sends information inquiry of EU parameters to all EUs on a link in a wired UDP broadcasting mode according to an all-optical protocol frame structure, the EUs give responses according to the frame structure, the EUs send networking information of the EUs and RUs cascaded on equipment to the MU, and the networking parameters sent to the MU by the EUs comprise ip addresses, MAC addresses, upper-stage MAC addresses, optical port numbers, equipment numbers and equipment fault information. And meanwhile, the MU numbers the EU through a broadcast sending mode, and broadcasts and sends the ip address to all the devices in the network through the DHCP. After receiving the ip address, the networking device takes the ip as the ip address accessed by the web of the device.
And step 3: the EU detects the on-position state of an optical port of the EU, and sends an RU query frame structure to perform RU parameter query by using a datalink link according to the on-position state, wherein the query frame structure comprises fixed information such as a frame header frame tail, CRC, a forwarding response mark, a port number and the like; RU responds parameters to EU according to the query frame, EU judges whether the frame is the RU frame needing to be queried according to the frame structure, useful frames are taken out and stored in a structure body, and the taken effective parameters include ip addresses, MAC addresses, optical port numbers and equipment numbers. The EU judges and provides a zone bit according to the information of whether the optical port is connected with the optical fiber, the optical module is abnormal and the like by detecting the state information of the optical port of the EU, and is used for judging the most original fault information of the connecting equipment on the EU optical port, so that the fault information zone bit required by networking is obtained.
Fig. 3 is a flowchart for acquiring MU master networking parameters according to an embodiment of the present invention. As shown in fig. 3, the MU broadcasts to query EU parameters, determine whether the optical port has EU access, and if not, do not process the EU access; if EU access exists, judging whether the optical port access data has response, if the EU access data does not have response, considering equipment failure during networking, setting a failure zone bit parameter, and storing the zone bit parameter into a structural body for displaying failure information in a topological graph of networking equipment; if so, judging whether the equipment is accessed into the networking equipment or not according to the current MAC address and the father MAC address, and if so, updating the data; if the network is not accessed, judging whether a vacancy exists in the networking array according to the maximum networking 256 devices, and if not, directly returning; if yes, storing the EU parameters into a networking structure body; and finishing all EU judgment until finishing. The MU stores the MAC address of the MU as a parent MAC address connected to the device of the MU into the networking array.
In the embodiment, two networking structures are specifically defined, and an EU parameter structure and an RU parameter structure are respectively defined.
The EU parameter structure contains the following elements:
identification bit of whether equipment fails: 1 indicates normal, 0 indicates fault; an uplink port number, which determines whether the EU device is accessed, whether currently in place or not; numbering EU equipment; a parent MAC of the EU device; an EU MAC address; EU upper level IP address; basic information of RU;
the RU parameter structure has the following elements:
identification bit of whether equipment fails: 1 indicates normal, 0 indicates fault; the number of the uplink optical interface determines whether the RU equipment is accessed or not, whether the RU equipment is in place or not; RU equipment numbering; a parent MAC of the RU device; an RU MAC address; RU upper level IP address; RU device IP address.
Fig. 4 is a flowchart of a web underlying implementation networking monitoring provided by the embodiment of the present invention, as shown in fig. 4, including the following steps,
s1: the MU web inquires parameters of the MU main control part and parameters of the equipment networking structure from the shared memory.
S2: the web bottom layer query function queries information of MU partial parameters such as ip address, MAC address, optical port number, equipment number and the like from the shared memory; storing the MAC addresses into the arrays in a character string form to serve as first nodes in the networking topological graph, and storing the MAC addresses into a new array to serve as the upper-level MAC addresses in S5 for judging whether the MAC addresses are equal or not;
s3: the web bottom function judges whether the MU has EU access according to the EU networking parameter optical port number, and if the MU has no EU access, the operation enters S4; if EU access exists, entering S5;
s4: returning to the start of the loop, S3 is repeatedly executed;
s5: judging whether the device is not taken out according to the mark of whether the device is taken out or not, judging whether the upper-level MAC address of the device is equal to the father MAC address or not, if the device is not taken out and the upper-level MAC address of the device is equal to the father MAC address, entering S7, and ensuring that each device does not carry out repeated networking through the method; if not taken out, and the MAC addresses are not equal, or else, go to S6 not to execute, and the parameters continue to be stored;
s7: taking out the equipment parameter information and respectively storing the equipment parameter information into corresponding pointers, wherein the pointer address is + 1; and storing the MAC address into an array stored by the MU MAC address in S2 as a previous MAC in S5. Then, whether the equipment has faults or not is judged according to the fault information, if the faults enter S8, no faults enter S9, and the equipment information is normally displayed;
s8: displaying the topology picture frame of the corresponding equipment node in gray due to the equipment fault, storing the fault information color identifier into a corresponding pointer, and entering S10 when the pointer address is + 1;
s9: if the equipment has no fault, displaying the topology picture frame of the corresponding equipment node in green, storing the non-fault information color identifier into a corresponding pointer, and entering S10, wherein the pointer address is + 1;
s10: after EU information is processed, judging whether the current EU is accessed to RUs or not according to optical port information, and if the current EU is accessed to RUs, entering S11; if there is no RU access, repeat S10;
s11: taking out the equipment parameter information and respectively storing the equipment parameter information into corresponding pointers, wherein the pointer address is + 1; then, judging according to the fault information, if the fault is in S12, no fault is in S13;
s12: displaying the topology picture frame of the corresponding equipment node in gray due to the equipment fault, storing the fault information color identifier into a corresponding pointer, and entering S14 when the pointer address is + 1;
s13: if the equipment has no fault, displaying the topology picture frame of the corresponding equipment node in green, storing the non-fault information color identifier into a corresponding pointer, and entering S14, wherein the pointer address is + 1;
s14, returning all the equipment parameters in the networking, wherein the total number of the equipment in the networking is MU plus EU plus RU, to the web page according to the parameter categories respectively;
in specific implementation, an automatic operation process can be realized by adopting a software technology.
Fig. 5 is a system networking diagram for web topology diagram monitoring provided by the embodiment of the present invention, as shown in fig. 5:
querying a web page by using a GoAhead query function in an embedded web server, analyzing each networking parameter returned by the query, and then taking the analyzed MAC address and the parent MAC address as a connection point between each node in a topological graph and a parent node; the device type, the optical port number, the device number ip address and the fault information are displayed. After all networking devices are connected, a topology map as shown in fig. 5 is generated. The number of nodes in the topological graph can be changed according to the number of devices in the actual networking, and the display form of the topological graph can also be changed. One-key access can be carried out on equipment on the node through an ip address in the topological graph, and all parameters of the node equipment are inquired and set. The parameter values of each device in fig. 5 are specific examples, and are not described herein again.
After the topological graph is generated, if a certain node device in the middle fails, the next-stage device of the node device does not disappear, because the connection of the device is through the MAC address, the MAC address is stored on the MU, and the IP address for accessing is broadcasted through the MU by DHCP, the IP address after being broadcasted does not change, so that the next node of the node device does not disappear under the condition that the node device in the middle fails. This is a feature of the present invention.
Compared with the graph shown in fig. 1 and fig. 5, the topological graph generated by one key looks more intuitive, and the topological graph connected by the MAC address can ensure the fault tolerance and uniqueness of the topological graph. The displayed form is clearer than the actual networking, and the problems that the equipment connection state is repeatedly searched and the workload is increased due to too many equipment in the using process are solved; the node equipment is accessed by one key through the ip address, so that convenience is brought to the operation; the engineering maintenance difficulty is reduced, and the engineering opening cost is reduced.
The above description is only exemplary of the invention and should not be taken as limiting, any modification, equivalent replacement, or improvement made within the spirit and principle of the invention should be included in the protection scope of the invention.

Claims (6)

1. A method for realizing networking monitoring of network optimization equipment based on web is used for monitoring networking equipment in a digital optical fiber repeater, wherein the equipment comprises near-end equipment MU, extended equipment EU and far-end equipment RU, and is characterized in that: the data transmission mode between the web process and the master control process is realized by sharing the memory, and the data transmission between the processes does not relate to the kernel any more; the implementation mode is that the MU acquires EU parameters at the main control, the EU acquires RU parameters, the MU main control sends networking parameters to an MU web according to the equipment networking sequence through a shared memory, the web bottom layer carries out logic processing on the networking parameters, and the equipment parameters are displayed through a topological graph according to the actual system networking mode, so that the equipment networking monitoring is realized; the implementation process comprises the following steps of,
step S1, EU makes parameter inquiry to RU connected to EU through datalink link, RU responds; meanwhile, parameter fault information required in networking is acquired through the optical port state on the equipment;
step S2, the MU master control inquires all EU information in the system through wired UDP broadcast, EU responds;
step S3, according to the uniqueness of the MAC address, the MU master control sequentially puts the inquired effective EU parameters into a networking structure body for storage;
step S4, determining the device information and node connection mode of each node in the topological graph at the web bottom layer;
the determination of the device information of each node is performed in such a manner that,
the MU web inquires networking parameters through a shared memory;
the method comprises the steps that parameters of EU and RU are stored by an MU application layer in a structure array mode, data are sent to the web in a shared memory mode, the web updates and reads the data in real time through the shared memory, when the web reads MU parameters of a local end through the shared memory, the MU parameters comprise ip addresses, device types and MAC addresses, and the device types, the ip addresses and the MAC addresses acquired by MU main control information are stored in a new array to serve as a first node in a topological graph;
then, the Web bottom layer obtains the MAC address in the networking parameters and the MAC address of the upper level through the shared memory, and is used for judging which node of the current topological graph the current equipment should be stored on; the equipment parameters of the confirmed node position are taken out and respectively stored in corresponding arrays, the MAC address of the MU is used for being compared with a father MAC address of the networking equipment EU to judge the position of the node connected with the current EU on the topological graph, if the node position is confirmed, various equipment parameters of the current EU are taken out and sequentially stored in the corresponding arrays, and then the flag bit of the fault information of the current equipment is judged to be used for displaying the color of the current equipment node;
if the equipment of the node is currently confirmed to be EU, judging whether an optical interface of the EU is connected with an RU according to optical interface information, and if the optical interface of the EU is connected with the RU, sequentially storing various equipment parameters of the RU into a corresponding array; then, the zone bit of the current equipment fault information is judged and is used for displaying the color of the current equipment node; until the optical port information on EU is judged;
and step S5, the MU web displays the device parameters of the networking device through the topological graph, and supports the realization of one-key access operation on the device by clicking the ip address.
2. The method for realizing networking monitoring of network optimization equipment based on the web according to claim 1, wherein: in step S1, the EU detects its own optical port on-site status, and sends an RU query frame structure to perform RU parameter query using datalink according to the on-site status, wherein the query frame structure includes a fixed frame header and frame tail, Cyclic Redundancy Check (CRC), forwarding response flag, and port number; RU responds parameters to EU according to the query frame, EU judges whether the frame is the RU frame needing to be queried according to the frame structure, useful frames are taken out and put into a structure body to be stored, and the taken effective parameters comprise ip addresses, MAC addresses, optical port numbers and equipment numbers.
3. The method for realizing networking monitoring of network optimization equipment based on the web according to claim 1, wherein: in step S2, the MU master controller broadcasts and queries EU information through a wired UDP according to the all-optical protocol frame structure, the EU responds according to the corresponding frame structure, the MU determines whether the broadcast is successful according to the optical port information, analyzes according to the frame structure in which the broadcast is successful, extracts an ip address, an MAC address, an optical port number, and an equipment number of the EU required for networking, and then extracts an effective EU flag bit according to the optical port state; and giving out corresponding zone bits for judging fault information of the connecting equipment on the optical port according to the connection state of the optical module and the optical fiber.
4. The method for realizing networking monitoring of network optimization equipment based on the web according to claim 1, wherein: in step S3, it is determined whether EU equipment of the current MAC address already exists in the networking parameters according to the MAC, if so, the EU parameters are updated, and if not, the networking parameters of the current EU equipment are stored in an idle position of the networking parameter structure and serve as a new node in the topology map.
5. The method for realizing networking monitoring of network optimization equipment based on the web according to claim 1, wherein: in step S5, on the display page of the topology map of the MU web, each device is a node in the topology map, where the MAC address and the parent MAC address are used for connection between nodes, and when the parent MAC address of a device is equal to the MAC address of another device, the current node is connected to the node corresponding to the parent MAC; and finishing networking the network equipment when all the connection information of all the equipment is displayed.
6. The method for realizing networking monitoring of network optimization equipment based on web according to claim 1, 2, 3, 4 or 5, wherein: in step S5, the ip address is issued to each device by the MU master through DHCP broadcast, and the ip address is automatically numbered according to the current number of devices.
CN201811310654.9A 2018-11-06 2018-11-06 Method for realizing networking monitoring of network optimization equipment based on web Active CN109245951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811310654.9A CN109245951B (en) 2018-11-06 2018-11-06 Method for realizing networking monitoring of network optimization equipment based on web

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811310654.9A CN109245951B (en) 2018-11-06 2018-11-06 Method for realizing networking monitoring of network optimization equipment based on web

Publications (2)

Publication Number Publication Date
CN109245951A CN109245951A (en) 2019-01-18
CN109245951B true CN109245951B (en) 2021-09-14

Family

ID=65076901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811310654.9A Active CN109245951B (en) 2018-11-06 2018-11-06 Method for realizing networking monitoring of network optimization equipment based on web

Country Status (1)

Country Link
CN (1) CN109245951B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111225052B (en) * 2020-01-04 2023-03-28 普联技术有限公司 Device function expanding method, device and storage medium
CN111639239A (en) * 2020-05-14 2020-09-08 新奥数能科技有限公司 Equipment running state monitoring method and system
CN112866940B (en) * 2021-01-14 2023-05-02 江苏亨鑫科技有限公司 Indoor wireless distributed system engineering quality self-detection method, equipment and system
CN113133040B (en) * 2021-05-12 2022-08-19 江苏亨鑫众联通信技术有限公司 Problem physical network port positioning method and device and readable storage medium
CN114844864B (en) * 2022-06-30 2022-10-25 深圳市爱图仕影像器材有限公司 Configuration method and device of DMX equipment information

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795573A (en) * 2014-01-26 2014-05-14 深圳市华普特科技有限公司 Network topology generation method, device and system
CN107612714A (en) * 2017-08-23 2018-01-19 武汉虹信通信技术有限责任公司 A kind of automated topology structure realization method and system
CN108306758A (en) * 2017-12-26 2018-07-20 三维通信股份有限公司 A kind of implementation method that indoor distributed antenna system intranet and extranet access

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795573A (en) * 2014-01-26 2014-05-14 深圳市华普特科技有限公司 Network topology generation method, device and system
CN107612714A (en) * 2017-08-23 2018-01-19 武汉虹信通信技术有限责任公司 A kind of automated topology structure realization method and system
CN108306758A (en) * 2017-12-26 2018-07-20 三维通信股份有限公司 A kind of implementation method that indoor distributed antenna system intranet and extranet access

Also Published As

Publication number Publication date
CN109245951A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN109245951B (en) Method for realizing networking monitoring of network optimization equipment based on web
US8370483B2 (en) Network analysis system and method
WO2021104270A1 (en) Configuration anomaly detection method, server and storage medium
CN108616506B (en) Intelligent building real-time data distributed integrated control method
CN109714221B (en) Method, device and system for determining network data packet
CN103179599A (en) Method, device and system for monitoring WLAN (Wireless Local Area Network) performance
CN111343029B (en) Monitoring platform and method based on topology monitoring of data forwarding nodes
CN104022905B (en) Meshed network monitoring method and device
JP2001320393A (en) Line concentration apparatus and network managing device using this
CN110768845A (en) Intelligent substation process level virtual connection fault positioning system
CN104219153A (en) Network topology self-discovering method and device based on MAC (Media Access Control) address orientation search
CN115314392A (en) Automatic network topology generation system and method based on network equipment resource discovery algorithm
CN113612646B (en) Neighborhood network topology visualization method based on neighbor discovery
US7631064B1 (en) Method and apparatus for determining interconnections of network devices
CN111402525B (en) Equipment on-site positioning system and method in cabinet and operation and maintenance management system and method
CN109150602A (en) A kind of method, apparatus, computer storage medium and the terminal of adaptation storage equipment
CN113660560B (en) Intelligent substation process layer switch topology real-time verification method
CN109495597A (en) System and method, the equipment on-line management method of online modification device target address
CN114221882A (en) Method, device, equipment and storage medium for detecting fault link
CN113946941A (en) Method and device for generating power distribution station room internet of things acquisition model
CN113746950A (en) Method, system, computer device and storage medium for pre-detecting IP address conflict
CN112650765A (en) Method, device and equipment for judging station faults and storage medium
CN113949628B (en) Automatic equipment adding method and system
CN110019281B (en) Identification method and device for broadcasting and television equipment
KR102169111B1 (en) Apparatus and method for searching link of access network

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
TA01 Transfer of patent application right

Effective date of registration: 20201030

Address after: 430205 No.1 tanhu 2nd Road, Canglong Island, Jiangxia Economic Development Zone, Wuhan City, Hubei Province

Applicant after: Wuhan Hongxin Technology Development Co.,Ltd.

Address before: 430073 Hubei province Wuhan Dongxin East Lake high tech Development Zone, Road No. 5

Applicant before: Wuhan Hongxin Telecommunication Technologies Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant