CN113115133B - Method and system for discovering topology of expansion subframe - Google Patents

Method and system for discovering topology of expansion subframe Download PDF

Info

Publication number
CN113115133B
CN113115133B CN202110260147.4A CN202110260147A CN113115133B CN 113115133 B CN113115133 B CN 113115133B CN 202110260147 A CN202110260147 A CN 202110260147A CN 113115133 B CN113115133 B CN 113115133B
Authority
CN
China
Prior art keywords
frame
main frame
neighbor relation
subframe
data
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
CN202110260147.4A
Other languages
Chinese (zh)
Other versions
CN113115133A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN202110260147.4A priority Critical patent/CN113115133B/en
Publication of CN113115133A publication Critical patent/CN113115133A/en
Application granted granted Critical
Publication of CN113115133B publication Critical patent/CN113115133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0005Switch and router aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/009Topology aspects
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method and a system for discovering an extended subframe topology, which relate to the technical field of optical network communication, and comprise the following steps: the main frame and the sub frame are respectively interconnected through the HUB, so that messages with different functions are transmitted in the frames and among the frames in a direct-to-target mode; neighbor discovery is carried out on the main frame and the sub frame, the information message of the main frame and the received information message of the adjacent frame are assembled into neighbor relation data, and the sub frame also sends the neighbor relation data to the FMC module of the main frame; the main frame FMC module calculates and generates a global topological table according to the neighbor relation data of the main frame and the sub frames and sends the global topological table to all the sub frames; all subframes synchronize the global topology table. The method in the invention can make the whole link topology discovery process more efficient and reliable, and reduce resource consumption.

Description

Method and system for discovering topology of extended subframe
Technical Field
The invention relates to the technical field of optical network communication, in particular to a method and a system for discovering an expansion subframe topology.
Background
With the multiple growth of mobile terminals and user data, the scale of the internet is increasingly enlarged, the number of network elements of an operator network and the switching capacity of a single network element are also rapidly increased, and an increasingly serious challenge is brought to the daily management of the network elements. By adding the extension subframe in a single network element, the switching capacity of the single network element can be flexibly increased, and the pressure of the over-fast increase of the number of the network elements can be effectively relieved.
The topology discovery and maintenance of the extension subframe in the network element have two implementation modes: the method comprises the following steps of firstly, pre-configuring a network manager; and in the second mode, the topology discovery and maintenance are automatically completed through a private protocol. The network management pre-configuration mode needs to be planned in advance, the frame ID/frame type of the subframe expansion and subframe connection topology need to be manually set and operated, and the configuration needs to be modified again when the topology is changed, so that engineering maintenance is not facilitated; and in the second mode, the topology discovery is automatically completed through a private protocol without manual participation, and the whole topology discovery process and updating and maintenance are realized between the main frame and the sub frame through protocol signaling message interaction and calculation of a frame control management module FMC.
For the second proprietary Protocol, the existing method generally improves protocols such as Link Layer Discovery Protocol (LLDP), Spanning Tree Protocol (STP), and the like, and adds notifications of box type, box ID, and out-of-band management port information, but the existing method has problems of slow topology convergence speed, limited port connection between main and sub-boxes, and no support for topology ring protection.
Disclosure of Invention
In view of the defects in the prior art, the first aspect of the present invention provides a method for discovering an extension subframe topology, which can make the entire link topology discovery process more efficient and reliable and reduce resource consumption.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
an extension subframe topology discovery method, the method comprising the steps of:
the main frame and the sub frame are respectively interconnected through the HUB, so that messages with different functions are transmitted in the frames and among the frames in a direct destination mode;
neighbor discovery is carried out on the main frame and the sub frame, the information message of the main frame and the received information message of the adjacent frame are assembled into neighbor relation data, and the sub frame also sends the neighbor relation data to the FMC module of the main frame;
the main frame FMC module calculates and generates a global topological table according to the neighbor relation data of the main frame and the sub frames and sends the global topological table to all the sub frames;
all subframes synchronize the global topology table.
In some embodiments, the main frame and the sub-frame are interconnected through a HUB, so that messages with different functions are transmitted in a direct-to-destination manner in and among the frames, including:
and adding different VLAN domains into each port of the HUB switching chip on the main frame and the sub frame, which is connected with the adjacent frame and the single disk in the frame, so that the messages with different functions carry the corresponding VLAN to be transmitted in the frame and between the frames in a direct-to-target mode.
In some embodiments, the method further comprises:
when the information message of the frame leaves the port of the HUB exchange chip of the frame, stripping the VLAN of the information message of the frame;
and when reaching the port of the HUB exchange chip of the adjacent frame, adding the corresponding PVID, so that the information message of the frame is sent to the adjacent frame through the corresponding VLAN channel.
In some embodiments, after the master frame FMC module calculates and generates the global topology table, the method further includes:
judging whether topological looping is performed;
if the topology is in a ring, setting a port, used for a topology link, of the HUB switching chip on the main frame into a block mode;
if the topology ring is not formed, keeping the port of the HUB exchange chip on the main frame for the topology link in forward mode.
In some embodiments, the neighbor discovery is performed by the main frame and the subframe, the neighbor relation data is assembled by the information packet of the main frame and the received information packet of the neighbor frame, and the subframe further sends the neighbor relation data to the FMC module of the main frame, including:
s21, the main frame and the sub frame send the frame information message to respective frame control disks;
s22, when receiving an adjacent frame information message sent by an adjacent frame, the main frame and the sub frame carry out analysis, and the adjacent frame information message and data in the frame information message are assembled into neighbor relation data;
s23, judging whether data exist in the neighbor relation storage table or not, if no data exist, storing the assembled neighbor relation data into the neighbor relation storage table, starting an aging timer, and executing the step S26;
s24, if data exist, comparing the assembled neighbor relation data with the data in the neighbor relation storage table, if the data are the same, clearing 0 the aging timer, restarting aging, and if the data are different, executing the step S25;
s25, deleting the data in the neighbor relation storage table, writing the assembled neighbor relation data, restarting the aging timer, and executing the step S26;
and S26, the sub-frame sends the data in the neighbor relation storage table to the main frame FMC module.
In some embodiments, the step of the main frame FMC module generating a global topology table according to the neighbor relation data of the main frame and the sub frame, and sending the global topology table to the sub frame includes:
s31, when receiving the neighbor relation data sent by the subframe, the main frame FMC module judges whether the neighbor relation data of the subframe exists in a neighbor relation storage table of the main frame or not;
s32, if the neighbor relation data does not exist, writing the received neighbor relation data into a neighbor relation storage table, starting an aging timer, and executing the step S35;
s33, if yes, comparing whether the received neighbor relation data is consistent with the neighbor relation data of the subframe in the neighbor relation storage table, if yes, clearing 0 the aging timer, restarting aging, and if not, executing the step S34;
s34, deleting the neighbor relation data of the subframe in the neighbor relation storage table, writing the newly received neighbor relation data of the subframe, restarting the aging timer, and executing the step S35;
s35, the main frame FMC module calculates the global topology according to all data in the neighbor relation storage table, generates a global topology table and broadcasts the global topology table to all the sub frames.
In some embodiments, after the step S35, the method further includes:
starting a timer, and judging whether neighbor relation data in a neighbor relation storage table changes or not by a main frame FMC module every other preset cycle time;
if the global topology table is changed, returning to the step S35, if the global topology table is not changed, the main frame FMC module broadcasts the original generated global topology table to all the sub frames.
The second aspect of the present invention provides an extended subframe topology discovery system that can make the entire link topology discovery process more efficient and reliable and reduce resource consumption.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
an extended subframe topology discovery system, comprising:
the main frame and the sub frames are respectively interconnected through a HUB (head office bus) so that messages with different functions are transmitted in the frame and among the frames in a direct-to-target mode, the main frame comprises a main frame FMC module, the main frame and all the sub frames comprise assembly modules, the assembly modules are used for assembling the information messages of the main frame and the received adjacent frame information messages into neighbor relation data when the main frame and the sub frames perform neighbor discovery, and the sub frames are also used for sending the neighbor relation data to the main frame FMC module;
and the main frame FMC module calculates and generates a global topology table according to the neighbor relation data of the main frame and the sub frames and sends the global topology table to the sub frames so that all the sub frames can synchronize the global topology table.
In some embodiments, the main frame and the sub-frame are configured to:
different VLAN domains are added to ports of the HUB switching chips on the main frame and the sub frame, which are connected with the adjacent frame and the single disk in the frame, so that messages with different functions carry corresponding VLANs to be transmitted in a direct-to-target mode in the frame and between the frames.
In some embodiments, the main frame and the sub-frame are further configured to:
when the information message of the frame leaves the port of the HUB exchange chip of the frame, stripping the VLAN of the information message of the frame;
and when reaching the port of the HUB exchange chip of the adjacent frame, adding the corresponding PVID so as to send the information message of the frame to the adjacent frame through the corresponding VLAN channel.
Compared with the prior art, the invention has the advantages that:
according to the method for discovering the topology of the extended subframe, the subframe only needs to perform neighbor discovery, only the FMC module of the main frame performs global topology discovery calculation, the subframe does not need to be performed independently, the automatic discovery process of the whole link topology is more efficient and reliable, and the software resource consumption of the whole system is less. Moreover, different VLAN domains are added to the ports of the HUB switching chips on the main frame and the sub frame, so that messages with different functions carry corresponding VLANs to be transmitted in the frames and among the frames, and the waste of bandwidth of a signaling channel and the consumption of other software module resources is avoided.
In addition, when the information message of the frame leaves the port of the HUB exchange chip of the frame, the VLAN of the information message of the frame is stripped. And when reaching the port of the HUB exchange chip of the adjacent frame, adding the corresponding PVID, so that the information message of the frame is sent to the adjacent frame through the corresponding VLAN channel. The problem of limitation of ETH1 and ETH2 port connection between the main frame and the subframe is solved, the subframe nodes are flexibly added or deleted, and the subframes can be flexibly added or deleted at any node of a link and a ring network according to needs. And through setting the ETH1 or ETH2 port, the problem of risk of signaling broadcast storm during ring network networking is solved, and all nodes can still keep communicating the upper pipe when a certain link is interrupted.
Drawings
FIG. 1 is a flowchart of a method for discovering an extended subframe topology according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a single-cell extended subframe chain connection topology according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a ring connection topology of a single-cell expansion subframe according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a HUB switch chip port connection according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a data format of a neighbor relation storage table according to an embodiment of the present invention;
FIG. 6 is a flow chart of the transmission of neighbor discovery messages between a main frame and a subframe in the embodiment of the present invention;
FIG. 7 is a flowchart of step S2 according to an embodiment of the present invention;
FIG. 8 is a flowchart of step S3 according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a global topology discovery process in the embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples.
Referring to fig. 1, an embodiment of the present invention provides an extended subframe topology discovery method, including the following steps:
s1, the main frame and the sub frame are respectively interconnected through a HUB, so that messages with different functions are transmitted in the frames and among the frames in a direct-to-target mode.
S2, the main frame and the sub frame conduct neighbor discovery, the information message of the main frame and the received information message of the neighbor frame are assembled into neighbor relation data, and the sub frame further sends the neighbor relation data to the FMC module of the main frame.
It should be noted that there is only one main frame and several sub-frames in a single network element, and each frame must be uniquely identified and the unique main frame must be confirmed when topology discovery is performed.
Therefore, in the embodiment, globally unique SN numbers and MAC addresses of management ports are burned in the back boards eeproms of the main frame and the sub frame, where the SN numbers are unique marks for the frames, and it is ensured that the marks for the frames are not repeated even when the sub frame is removed from one network element to another network element. The back plates of all the frames are provided with hardware dial switches, the dial switches of the main frame must be dialed to be 0, the dial switches of the subframe must be dialed to be non-0 (the dial values can be the same, the dial values are not used as frame IDs, the frame IDs are the only dial values of the main frame after topology discovery and are uniquely distributed to the main frame and stored in a configuration file of a control panel of the subframe frame), the fact that the main frame or the subframe is determined according to reading of the dial values when the frames are powered on and the fact that only one frame back plate is dialed to be 0.
After the unique marks of all the frames and the confirmation of the main frame are completed, the main frame and the subframe can carry out neighbor discovery. Referring to fig. 2 and 3, the topology of the extension sub-frame has two types, namely a link-row connection (fig. 2) and a ring connection (fig. 3), and all sub-frames of the extension sub-frame are internet management through a main frame and appear as a single network element to the outside. Wherein the ring connection may provide an uplink protection function when the extension sub-frame intermediate link is broken, and the link connection may cause a loss of the following topology when the intermediate link is broken. The connection between the main frame and the extended sub-frame is an out-of-band connection, all single disks (such as frame control disks and service disks) in the frame are connected with the adjacent sub-frames through HUB (HUB) switching chips on the main control disk (frame control disk), and the connection mode of the HUB switching chips is shown in fig. 4.
Each main frame and the subframe will send its own frame information message to the neighboring frame through the port for the topology link on the HUB switch chip, which is represented in fig. 2 and fig. 3 as ETH1 and ETH 2. Meanwhile, the main frame and the subframe also assemble the information message of the frame and the received adjacent frame information message into neighbor relation data, and the subframe also sends the neighbor relation data to a main frame FMC module of a main frame control panel.
In this embodiment, the frame information message mainly includes the frame ID, the sending port number ETHx (the value of x is 1 and 2), and the management port MAC address (globally unique, burned in the backplane eeprom), and it can be understood that the adjacent frame information message is the frame information message for the adjacent frame. The format of the assembly into neighbor relation data can be seen in fig. 5.
And S3, calculating and generating a global topology table by the main frame FMC module according to the neighbor relation data of the main frame and the sub frames, and sending the global topology table to all the sub frames.
The main frame FMC module calculates and generates a global topology table according to the neighbor relation data of the main frame and the sub frames, the calculation process is that the neighbor relation data of the main frame ETH1 are traversed one by one from the receiving port of the main frame ETH1, topology information is stored, and finally the global topology table is generated.
It is worth noting that in this embodiment, the sub-frame only needs to perform neighbor discovery, only the main frame FMC module performs global topology discovery calculation, and the sub-frame does not need to be performed independently, so that the whole link topology automatic discovery process is more efficient and reliable, and the software resource consumption of the whole system is less.
And S4, synchronizing the global topology table by all the subframes.
And after the master frame FMC module generates the global topology table and sends the global topology table to all the sub frames, all the sub frames can synchronize the global topology table, so that the whole topology discovery process is completed.
As a preferred embodiment, in step S1, the main box and the sub-box are respectively interconnected by HUB, so that messages with different roles are transmitted in a direct-to-destination manner within and between boxes, including:
and adding different VLAN domains into each port of the HUB switching chip on the main frame and the sub frame, which is connected with the adjacent frame and the single disk in the frame, so that the messages with different functions carry the corresponding VLAN to be transmitted in the frame and between the frames in a direct-to-target mode.
Specific implementations can be seen in table 1 below:
TABLE 1
Figure BDA0002969608510000091
It will be appreciated that 1025- > 4094 for VLAN ID as an extension is for ethernet VLANs only, and may be selected as desired. In table 1, for messages with different functions, three domains are correspondingly divided: domain 0, domain 1 and domain 2, each domain being divided by a corresponding VLAN ID.
After the HUB switching chip is configured with the VLAN domain, a static MAC address table is configured for the HUB switching chip according to the MAC plans of different frames and ports, and a dynamic MAC address learning function is started. Therefore, signaling messages with different functions can be forwarded and configured according to the VLAN channel and the port MAC to reach the slot single disk of the target frame directly. Without broadcasting or passing to other single disks to avoid wasting bandwidth of the signaling channel and consumption of other software module resources. If the signaling message in the frame only needs to be transmitted between the frame control disks and the service disks in the frame, the topology link discovery message only needs to be transmitted between the frame control disks of the main frame and all the subframe, and the messages of service configuration management, state, performance, alarm, upgrade and the like need to be transmitted between all the single disks of the main frame and the subframe.
In addition, when the frame information packet containing the frame information for the topology is sent from the inter-frame ETH1 or ETH2 port to the adjacent frame FMC module, the source port information needs to be carried so as to facilitate the calculation of the whole topology. Usually, the source port number can notify the unique mapping acquisition of the VLAN value carried in the packet, so the topology information packets sent up through the ETH1 and ETH2 ports must carry different VLANs. Because the values of the VLAN4081 belonging to the ETH1 and the VLAN4082 belonging to the ETH2 are different, the ports of the ETH1 and the ETH2 cannot be mixed when the main frame and the subframe are connected.
In order to solve the above problem, in some embodiments, when the frame information message leaves the port of the HUB switch chip of the frame, the VLAN of the frame information message is stripped. And when reaching the Port of the HUB exchange chip of the adjacent frame, adding the corresponding PVID (Port-base Vlan ID), so that the information message of the frame is sent to the adjacent frame through the corresponding VLAN channel.
Specifically, the method can be implemented by configuring an output port EHT1 of VLAN4081 and an output port ETH2 of VLAN4082 of the HUB switch chip to be in an untag mode, setting PVID of an input port ETH1 to be 4081, and setting PVID of an EHT2 to be 4082, and a specific forwarding process can be shown in fig. 6.
Furthermore, in order to solve the problem of topology looping, in some embodiments, after the master frame FMC module calculates and generates the global topology table, the method further includes the following steps:
and judging whether the topology is a ring or not, and if the topology is the ring, setting a port for a topology link of the HUB exchange chip on the main frame into a block mode. If not, keeping the port of the HUB exchange chip on the main frame for the topological link in forward mode.
The block is a blocking mode, and except for a specific message (which can be selectively set according to a destination MAC), other messages cannot be sent out from the port. forward is a forwarding mode, a port can normally receive and transmit various data, and the default is the forwarding mode.
In specific implementation, a timer is started, a main frame polls neighbor subframes in sequence from a panel ETH1 (or ETH2) port every M seconds at intervals according to a latest global topology table, if the neighbor subframes can return to the main frame again through ETH2 (or ETH1) at last, a topology ring is described, at this time, an ETH2 port of a HUB switching chip is set to a block mode, so that neighbor relation BPDU messages except VLAN4081, VLAN4082 and VLAN4083 can be normally received and sent, and data messages such as management, performance and alarm of all VLAN 4091 are blocked at the port (all subframe data are communicated through an ETH1 port of the HUB switching chip).
If the host frame can not be returned through the ETH2 (or ETH1) finally, the ETH2 port of the HUB switching chip is set to a forward mode, and all VLAN sub-interface data messages are normally transmitted at the ETH2 port.
Referring to fig. 7, based on the above description, step S2 is further described in the following specific implementation, where step S2 specifically includes:
and S21, the main frame and the sub frame send the information message of the main frame to respective frame control disks.
Before that, firstly, the single disks of the main frame and the subframe frame are electrified to complete the configuration initialization of the HUB exchange chip, and the initialization of the FMC frame control management module is completed. The data of the neighbor relation storage table is set to be null by default, and the fast sending period of the neighbor relation sending message is set to be M seconds (which can be actually adjusted according to the requirement). And assembling the frame information message, and encapsulating the SN number of the frame, the ID of the frame, the port number ETHx of the sending terminal and the MAC address of the management port in the message according to the agreed format.
Then, a switch of the frame information message sending module is turned on, a timer is started, and the frame information message which is assembled through initialization is sent to the frame control panel CPU ETH0.4081 and ETH0.4082 VLAN sub-interfaces every period of M seconds (when the frame information message is sent to ETH0.4081, the frame information message sending port number is set to EHT1, and when the frame information message is sent to ETH0.4082, the frame information message sending port number is set to EHT 2).
It is understood that ETH0 refers to a physical port, ETH0.4081 refers to a VLAN subinterface on the physical port, and multiple VLAN subinterfaces may be configured under the same physical port.
And S22, when the main frame and the subframe receive the adjacent frame information message sent by the adjacent frame, analyzing the adjacent frame information message, and assembling the adjacent frame information message and data in the current frame information message into neighbor relation data.
And opening a neighbor relation message receiving module switch, monitoring the sub-interfaces of the CPU ETH0.4081 and ETH0.4082 VLAN in real time to receive the local frame information message sent by the neighbor frame, if the message is received, analyzing the original message into neighbor data, and adding the SN number of the local frame, the ID of the local frame and the EHTx of the source port number of the packet to assemble the neighbor relation data, wherein the format is shown in FIG. 4.
S23, judging whether data exist in the neighbor relation storage table or not, if no data exist, storing the assembled neighbor relation data into the neighbor relation storage table, starting an aging timer, and executing the step S26.
During specific operation, automatic aging of data in the neighbor relation message storage table can be set within three periods if the neighbor relation message storage table is not received any more.
S24, if data exist, comparing the assembled neighbor relation data with the data in the neighbor relation storage table, if the data are the same, clearing 0 the aging timer, restarting aging, and if the data are different, executing the step S25.
S25, deleting the data in the neighbor relation storage table, writing the assembled neighbor relation data, restarting the aging timer, and executing the step S26.
And S26, the sub-frame sends the data in the neighbor relation storage table to the main frame FMC module.
Referring to fig. 8, based on the above description, step S3 is further described in the following specific implementation, where step S3 specifically includes:
s31, when receiving the neighbor relation data sent by the sub-frame, the main frame FMC module judges whether the neighbor relation data of the sub-frame exists in the neighbor relation storage table of the main frame.
Specifically, the FMC module of the main frame monitors the CPU ETH0.4083 VLAN sub-interface in real time, and if the neighbor relation data sent by the sub-frame is received, determines whether the neighbor relation data of the sub-frame exists in the neighbor relation storage table of the main frame, and if no action is received.
And S32, if the neighbor relation data does not exist, writing the received neighbor relation data into a neighbor relation storage table, starting an aging timer, and executing the step S35.
During specific operation, if the data in the neighbor relation message storage table is not received any more in three periods, automatic aging can be set.
And S33, if yes, comparing whether the received neighbor relation data is consistent with the neighbor relation data of the subframe in the neighbor relation storage table, clearing 0 the aging timer if the received neighbor relation data is consistent with the neighbor relation data of the subframe in the neighbor relation storage table, restarting aging, and if not, executing the step S34.
S34, deleting the neighbor relation data of the subframe in the neighbor relation storage table, writing the newly received neighbor relation data of the subframe, restarting the aging timer, and executing the step S35.
S35, the main frame FMC module calculates the global topology according to all data in the neighbor relation storage table, generates a global topology table and broadcasts the global topology table to all the sub frames.
In specific operation, broadcast to all the subboxes may be through the CPU ETH0.4083 VLAN subinterface.
In some embodiments, after the step S35, the method further includes the following steps:
and starting a timer, and judging whether the neighbor relation data in the neighbor relation storage table changes or not by the main frame FMC module every other preset cycle time. If the global topology table is changed, returning to the step S35, if the global topology table is not changed, the main frame FMC module broadcasts the original generated global topology table to all the sub frames.
And then, all the sub-frames can synchronize the global topology table, specifically, the FMC module of the sub-frame monitors the CPU ETH0.4083 VLAN sub-interface in real time, and if the global topology table sent by the main frame is not received, no action is taken. If the global topology table sent by the main frame is received, whether the received global topology message is changed or not is judged, if yes, the global topology graph is resynchronized, and if no action exists, no action exists.
Referring to fig. 9, the following describes the global topology discovery process of the main frame FMC module:
s3501, neighbor relation data of which the receiving port with the frame ID of 0 is ETH1 is searched.
It is understood that the present frame ID is 0, i.e., refers to the main frame.
S3502, judging whether neighbor relation data is found, if yes, executing a step S3503, and if not, executing a step S3508.
S2503, storing the port topology information of the frame, and recording the SN number SN of the adjacent frame X And a sending port number ETHA.
Among them, it is worth mentioning SN X X in (2) refers to the total number of main and sub frames, see fig. 2 and 3, where X is 6. The value of A in the ETHA is 1 or 2.
S3504, searching the frame SN with SN number SN X And transmitting neighbor relation data having a port number of ETH (3-A).
It should be noted that, since the value of a is 1 or 2, the corresponding value of 3-a is 1 or 2, that is, if the sending port number in step S3503 is ETH1, the sending port number in step S3503 is ETH2, and vice versa.
S3505, judging whether neighbor data is found, if so, executing a step S3506, and if not, executing a step S3508.
S3506, determine whether the neighboring frame ID is 0, if yes, go to step S3507, otherwise, go back to step S3503.
It should be noted that when the ID of the adjacent frame is 0, it means that the topology discovery returns to the main frame, so the whole process is finished after the relevant information is saved.
S3507, storing the global topology port information and ending.
S3508, neighbor relation data of which the receiving port with the frame ID of 0 is ETH2 is searched.
S3509, judging whether neighbor data is found, if so, executing a step S3510, and if not, ending.
S3510, storing the topology information of the port of the frame and recording the SN number SN of the adjacent frame Y And a sending port number ETHB.
The definition of Y, B is consistent with that of X, A and will not be repeated here.
S3511, the SN number of the frame is searched to be SN Y And transmitting the neighbor relation data with the port number ETH (3-B).
S3512, whether neighbor data are found is judged, if yes, the step S3510 is returned, and if not, the step S3507 is executed.
In summary, in the method for discovering the topology of the extended subframe, the subframe only needs to perform neighbor discovery, only the FMC module of the main frame performs global topology discovery calculation, the subframe does not need to be performed independently, the whole process of automatically discovering the link topology is more efficient and reliable, and the software resource consumption of the whole system is less. Moreover, different VLAN domains are added to the ports of the HUB switching chips on the main frame and the sub frame, so that messages with different functions carry corresponding VLANs to be transmitted in the frames and among the frames, and the waste of bandwidth of a signaling channel and the consumption of other software module resources is avoided.
In addition, when the information message of the frame leaves the port of the HUB exchange chip of the frame, the VLAN of the information message of the frame is stripped. And when reaching the port of the HUB exchange chip of the adjacent frame, adding the corresponding PVID, so that the information message of the frame is sent to the adjacent frame through the corresponding VLAN channel. The problem of limitation of ETH1 and ETH2 port connection between the main frame and the subframe is solved, the subframe nodes are flexibly added or deleted, and the subframes can be flexibly added or deleted at any node of a link and a ring network according to needs. And by setting the ETH1 or ETH2 port, the problem of signaling broadcast storm risk during ring network networking is solved, and all nodes can still keep communicating the upper tube when a certain link in the middle is interrupted.
Correspondingly, the invention also provides an extended subframe topology discovery system which comprises a main frame and a plurality of subframes.
The main frame and the sub frames are respectively interconnected through the HUB, so that messages with different functions are transmitted in the frame and among the frames in a direct-to-target mode, the main frame comprises a main frame FMC module, the main frame and all the sub frames comprise assembly modules, the assembly modules are used for assembling the information messages of the main frame and the received adjacent frame information messages into neighbor relation data when the main frame and the sub frames carry out neighbor discovery, and the sub frames are also used for sending the neighbor relation data to the main frame FMC module.
And the main frame FMC module calculates and generates a global topology table according to the neighbor relation data of the main frame and the sub frames and sends the global topology table to the sub frames so that all the sub frames synchronize the global topology table.
Further, the main frame and the subframe are configured to:
different VLAN domains are added to ports of the HUB switching chips on the main frame and the sub frame, which are connected with the adjacent frame and the single disk in the frame, so that messages with different functions carry corresponding VLANs to be transmitted in a direct-to-target mode in the frame and between the frames.
Further, the configuration module main frame and sub-frame are further configured to:
and when the frame information message leaves the port of the HUB exchange chip of the frame, stripping the VLAN of the frame information message. And when reaching the port of the HUB exchange chip of the adjacent frame, adding the corresponding PVID so as to send the information message of the frame to the adjacent frame through the corresponding VLAN channel.
Further, after the main frame FMC module calculates and generates the global topology table, the main frame FMC module is further configured to determine whether to form a ring by topology. If the topology is in a ring, one port of the HUB switching chip on the main frame for the topology link is set to be in a block mode. If the topology ring is not formed, keeping the port of the HUB exchange chip on the main frame for the topology link in forward mode.
Further, the main frame and the subframe perform neighbor discovery, assemble the information message of the main frame and the received information message of the neighbor frame into neighbor relation data, and the subframe further sends the neighbor relation data to the FMC module of the main frame, which specifically comprises the following steps:
s21, the main frame and the sub frame send information messages of the main frame and the sub frame to respective frame control disks;
s22, when receiving an adjacent frame information message sent by an adjacent frame, the main frame and the sub frame carry out analysis, and the adjacent frame information message and data in the frame information message are assembled into neighbor relation data;
s23, judging whether data exist in the neighbor relation storage table or not, if no data exist, storing the assembled neighbor relation data into the neighbor relation storage table, starting an aging timer, and executing the step S26;
s24, if the data exist, comparing the assembled neighbor relation data with the data in the neighbor relation storage table, if the data are the same, clearing 0 the aging timer, restarting aging, and if the data are different, executing the step S25;
s25, deleting the data in the neighbor relation storage table, writing the assembled neighbor relation data, restarting the aging timer, and executing the step S26;
and S26, the sub-frame sends the data in the neighbor relation storage table to the main frame FMC module.
Further, the main frame FMC module calculates and generates a global topology table according to neighbor relation data of the main frame and the subframe, and sends the global topology table to the subframe, and the method specifically includes the following steps:
s31, when receiving the neighbor relation data sent by the sub-frame, the main frame FMC module judges whether the neighbor relation data of the sub-frame exists in the neighbor relation storage table of the main frame.
And S32, if the neighbor relation data does not exist, writing the received neighbor relation data into a neighbor relation storage table, starting an aging timer, and executing the step S35.
And S33, if yes, comparing whether the received neighbor relation data are consistent with the neighbor relation data of the subframe in the neighbor relation storage table, if yes, clearing 0 the aging timer, restarting aging, and if not, executing the step S34.
S34, deleting the neighbor relation data of the subframe in the neighbor relation storage table, writing the newly received neighbor relation data of the subframe, restarting the aging timer, and executing the step S35.
S35, the main frame FMC module calculates the global topology according to all data in the neighbor relation storage table, generates a global topology table and broadcasts the global topology table to all the sub frames.
Further, after step S35, the main frame FMC module is further configured to:
starting a timer, and judging whether neighbor relation data in a neighbor relation storage table changes or not by a main frame FMC module every other preset cycle time;
if the global topology table is changed, returning to the step S35, if the global topology table is not changed, the main frame FMC module broadcasts the original generated global topology table to all the sub frames.
In summary, in the extended subframe topology discovery system of the present invention, the subframe only needs to perform neighbor discovery, only the main frame FMC module performs global topology discovery calculation, and the subframe does not need to perform independent discovery, so that the whole link topology automatic discovery process is more efficient and reliable, and the software resource consumption of the whole system is less. Moreover, different VLAN domains are added to the ports of the HUB switching chips on the main frame and the sub frame, so that messages with different functions carry corresponding VLANs to be transmitted in the frames and among the frames, and the waste of bandwidth of a signaling channel and the consumption of other software module resources is avoided.
In addition, when the information message of the frame leaves the port of the HUB exchange chip of the frame, the VLAN of the information message of the frame is stripped. And when reaching the port of the HUB exchange chip of the adjacent frame, adding the corresponding PVID, so that the information message of the frame is sent to the adjacent frame through the corresponding VLAN channel. The problem of limitation of ETH1 and ETH2 port connection between the main frame and the subframe is solved, the subframe nodes are added or deleted flexibly, and the subframes can be added or deleted flexibly at any node of a link and a ring network according to the requirement. And by setting the ETH1 or ETH2 port, the problem of signaling broadcast storm risk during ring network networking is solved, and all nodes can still keep communicating the upper tube when a certain link in the middle is interrupted.
The present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.

Claims (8)

1. An extended subframe topology discovery method, comprising the steps of:
the main frame and the sub frame are respectively interconnected through the HUB, so that messages with different functions are transmitted in the frames and among the frames in a direct destination mode;
neighbor discovery is carried out on the main frame and the subframe, the information message of the main frame and the received information message of the neighbor frame are assembled into neighbor relation data, and the subframe also sends the neighbor relation data to the FMC module;
the main frame FMC module calculates and generates a global topological table according to the neighbor relation data of the main frame and the sub frames and sends the global topological table to all the sub frames;
all subframes synchronize the global topology table;
the main frame and the sub frame are interconnected through the HUB respectively, so that messages with different functions are transmitted in the frame and among the frames in a direct destination mode, and the method comprises the following steps:
and adding different VLAN domains into each port of the HUB switching chip on the main frame and the sub frame, which is connected with the adjacent frame and the single disk in the frame, so that the messages with different functions carry the corresponding VLAN to be transmitted in the frame and between the frames in a direct-to-target mode.
2. The extended subframe topology discovery method of claim 1, wherein said method further comprises:
when the information message of the frame leaves the port of the HUB exchange chip of the frame, stripping the VLAN of the information message of the frame;
and when reaching the port of the HUB exchange chip of the adjacent frame, adding the corresponding PVID, so that the information message of the frame is sent to the adjacent frame through the corresponding VLAN channel.
3. The method for discovering the extended subframe topology according to claim 1, wherein after the master frame FMC module computationally generates the global topology table, the method further comprises:
judging whether topological looping is performed;
if the topology is a ring, setting a port of a HUB exchange chip on the main frame, which is used for a topology link, into a block mode;
if not, keeping the port of the HUB exchange chip on the main frame for the topological link in forward mode.
4. The method for discovering the topology of the extended subframe according to claim 1, wherein the main frame and the subframe perform neighbor discovery, and assemble the information packet of the main frame and the received information packet of the neighbor frame into neighbor relation data, and the subframe further sends the neighbor relation data to the FMC module of the main frame, including:
s21, the main frame and the sub frame send information messages of the main frame and the sub frame to respective frame control disks;
s22, when receiving an adjacent frame information message sent by an adjacent frame, the main frame and the sub frame carry out analysis, and the adjacent frame information message and data in the frame information message are assembled into neighbor relation data;
s23, judging whether data exist in the neighbor relation storage table or not, if no data exist, storing the assembled neighbor relation data into the neighbor relation storage table, starting an aging timer, and executing the step S26;
s24, if data exist, comparing the assembled neighbor relation data with the data in the neighbor relation storage table, if the data are the same, clearing 0 the aging timer, restarting aging, and if the data are different, executing the step S25;
s25, deleting the data in the neighbor relation storage table, writing the assembled neighbor relation data, restarting the aging timer, and executing the step S26;
and S26, the sub-frame sends the data in the neighbor relation storage table to the main frame FMC module.
5. The extended subframe topology discovery method according to claim 1, wherein said master frame FMC module computationally generates a global topology table from neighbor relation data of master and subframe and sends to said subframe comprises:
s31, when receiving the neighbor relation data sent by the subframe, the main frame FMC module judges whether the neighbor relation data of the subframe exists in a neighbor relation storage table of the main frame or not;
s32, if the neighbor relation data does not exist, writing the received neighbor relation data into a neighbor relation storage table, starting an aging timer, and executing the step S35;
s33, if yes, comparing whether the received neighbor relation data is consistent with the neighbor relation data of the subframe in the neighbor relation storage table, if yes, clearing 0 the aging timer, restarting aging, and if not, executing the step S34;
s34, deleting the neighbor relation data of the subframe in the neighbor relation storage table, writing the newly received neighbor relation data of the subframe, restarting the aging timer, and executing the step S35;
s35, the main frame FMC module calculates the global topology according to all data in the neighbor relation storage table, generates a global topology table and broadcasts the global topology table to all the sub frames.
6. The extended subframe topology discovery method of claim 5, wherein after said step S35, said method further comprises:
starting a timer, and judging whether neighbor relation data in a neighbor relation storage table changes or not by a main frame FMC module every other preset cycle time;
if the global topology table changes, the step S35 is returned to, and if the global topology table does not change, the main frame FMC module broadcasts the original generated global topology table to all the sub frames.
7. An extended subframe topology discovery system, comprising:
the main frame and the sub frames are respectively interconnected through a HUB (head office bus) so that messages with different functions are transmitted in the frame and among the frames in a direct-to-target mode, the main frame comprises a main frame control management FMC (failure management center) module, the main frame and all the sub frames comprise assembly modules, the assembly modules are used for assembling the information messages of the main frame and the received adjacent frame information messages into neighbor relation data when the main frame and the sub frames perform neighbor discovery, and the sub frames are also used for sending the neighbor relation data to the main frame FMC module;
the main frame FMC module calculates and generates a global topology table according to neighbor relation data of a main frame and a subframe and sends the global topology table to the subframe so that all subframes can synchronize the global topology table;
wherein the main frame and subframe are configured to:
different VLAN domains are added to ports of the HUB switching chips on the main frame and the sub frame, which are connected with the adjacent frame and the single disk in the frame, so that messages with different functions carry corresponding VLANs to be transmitted in a direct-to-target mode in the frame and between the frames.
8. The extended subframe topology discovery system of claim 7, wherein the main frame and subframe are further configured to:
when the information message of the frame leaves the port of the HUB exchange chip of the frame, stripping the VLAN of the information message of the frame;
and when reaching the port of the HUB exchange chip of the adjacent frame, adding the corresponding PVID so as to send the information message of the frame to the adjacent frame through the corresponding VLAN channel.
CN202110260147.4A 2021-03-10 2021-03-10 Method and system for discovering topology of expansion subframe Active CN113115133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110260147.4A CN113115133B (en) 2021-03-10 2021-03-10 Method and system for discovering topology of expansion subframe

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110260147.4A CN113115133B (en) 2021-03-10 2021-03-10 Method and system for discovering topology of expansion subframe

Publications (2)

Publication Number Publication Date
CN113115133A CN113115133A (en) 2021-07-13
CN113115133B true CN113115133B (en) 2022-08-30

Family

ID=76712172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110260147.4A Active CN113115133B (en) 2021-03-10 2021-03-10 Method and system for discovering topology of expansion subframe

Country Status (1)

Country Link
CN (1) CN113115133B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103580917A (en) * 2013-10-23 2014-02-12 华为技术有限公司 Method for achieving network topology, provider edges and customer edges

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060190587A1 (en) * 2000-06-30 2006-08-24 Mikael Sylvest Network topology management
CN100384169C (en) * 2005-10-19 2008-04-23 华为技术有限公司 Master and slave frame cascade system in cut-in device
CN100574240C (en) * 2007-04-30 2009-12-23 华为技术有限公司 Access device and principal and subordinate's frame communication means thereof based on industry ethernet
CN102143006B (en) * 2011-04-18 2013-09-18 福建星网锐捷网络有限公司 Interface topology control method, system and device for communication equipment
EP2621130B1 (en) * 2011-05-25 2015-02-18 Huawei Technologies Co., Ltd. Route calculation method and master node device in virtual network element
WO2020212997A1 (en) * 2019-04-16 2020-10-22 Telefonaktiebolaget Lm Ericsson (Publ) Generating and utilizing topology information for an ethernet ring to support network management
CN111835543B (en) * 2019-04-19 2022-08-30 烽火通信科技股份有限公司 Method and device for configuring and managing remote equipment in transmission network management system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103580917A (en) * 2013-10-23 2014-02-12 华为技术有限公司 Method for achieving network topology, provider edges and customer edges

Also Published As

Publication number Publication date
CN113115133A (en) 2021-07-13

Similar Documents

Publication Publication Date Title
US8140654B2 (en) Verifying management virtual local area network identifier provisioning consistency
US7548540B2 (en) Dynamic discovery of ISO layer-2 topology
CN102223278B (en) Realization method and system for enabling LLDP function on non-Ethernet link
US7898965B2 (en) IP network and performance monitoring using ethernet OAM
US8380828B1 (en) System and method for locating offending network device and maintaining network integrity
CN103312546B (en) A kind of method automatically configuring management ZigBee-network
US7061876B2 (en) Switch and bridged network
EP2033377B1 (en) Forced medium access control (MAC) learning in bridged ethernet networks
US8443065B1 (en) System and method for locating, identifying and provisioning newly deployed network devices
CN103703723A (en) Packet broadcast mechanism in a split architecture network
CN102801623B (en) Multi-access data transmitting method and device
WO2001078278A1 (en) Radio network routing apparatus
CN109743211B (en) SDN-based IP network and optical network collaborative path opening system and method
CN101453413A (en) Method and apparatus for automatic topology discovery and resource management in PBB network
CN110545194B (en) Network topology generation method and device
US20060153213A1 (en) Ethernet wide area network and method
CN109428766A (en) Software defined network system with switch automatically deployed and method thereof
CN110545239A (en) Wireless mesh network wide area networking method
CN109474970A (en) A kind of method for routing suitable for cordless communication network
US20050083964A1 (en) Method and system for the centralized collection of link state routing protocol data
CN113115133B (en) Method and system for discovering topology of expansion subframe
CN112995038B (en) Access method of PROFINET protocol in industrial SDN
CN102857415B (en) Routing bridge and device and method for controlling media access control address study
CN111163003A (en) Topology discovery method of wireless multi-control-domain SDN
CN114430390B (en) Method and device for acquiring cross-domain link

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