CN115086152B - Domain-based rapid protection network data mirroring system for power distribution network - Google Patents

Domain-based rapid protection network data mirroring system for power distribution network Download PDF

Info

Publication number
CN115086152B
CN115086152B CN202210874656.0A CN202210874656A CN115086152B CN 115086152 B CN115086152 B CN 115086152B CN 202210874656 A CN202210874656 A CN 202210874656A CN 115086152 B CN115086152 B CN 115086152B
Authority
CN
China
Prior art keywords
mirror image
message
data
ethernet
mirroring
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
CN202210874656.0A
Other languages
Chinese (zh)
Other versions
CN115086152A (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.)
Foshan Power Supply Bureau of Guangdong Power Grid Corp
Original Assignee
Foshan Power Supply Bureau of Guangdong Power Grid Corp
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 Foshan Power Supply Bureau of Guangdong Power Grid Corp filed Critical Foshan Power Supply Bureau of Guangdong Power Grid Corp
Priority to CN202210874656.0A priority Critical patent/CN115086152B/en
Publication of CN115086152A publication Critical patent/CN115086152A/en
Application granted granted Critical
Publication of CN115086152B publication Critical patent/CN115086152B/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/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • H04L49/208Port mirroring
    • 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
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S20/00Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
    • Y04S20/20End-user application control systems

Landscapes

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

Abstract

The application discloses network data mirror image system of distribution website territory formula quick protection includes: a primary mirroring switch and a number of secondary mirroring switches. The main mirror image switch consists of a first data forwarding component, a first mirror image decision component, a mirror image configuration component and a mirror image unpacking component; the sub-mirror image switch is composed of a second data forwarding component, a second mirror image decision component and a mirror image packaging component. The system realizes the domain-based fast protection global accurate data mirroring of the power distribution network, so that the data backup device of the domain-based fast protection system of the power distribution network can acquire the mirror data of the local switch and the mirror data of other switches through one mirror port, and the deployment difficulty and the cost of the data mirroring system are greatly reduced. And the mirror image target based on the MAC address is more accurate compared with the mirror image based on the port. The technical problem that port data of other switches cannot be mirrored in the prior art is solved.

Description

Domain-based rapid protection network data mirroring system for power distribution network
Technical Field
The application relates to the technical field of switches, in particular to a power distribution website domain type fast protection network data mirroring system.
Background
The power distribution network domain type rapid protection system has high requirements on the reliability and safety of data, communication data are sent to one or more data backup devices in a mirror image mode by a communication network besides the data communication between the protection devices, and the data backup devices carry out whole-process backup on the communication data between the protection devices, so that after the system sends a fault, the backup data are utilized to carry out problem positioning and tracing. The domain type data redundancy sending framework of the rapid protection system of the power distribution network comprises: the system comprises a power distribution network domain type rapid protection device, a power distribution network domain type protection data mirror image switch and a data backup device.
In port mirroring of a conventional switch, data that can be mirrored by a mirroring port is other ports of the switch, for example, in fig. 4, mirroring port 1 can only mirror a port on switch a. 1 port can be mirrored, as well as multiple ports. But mirroring port 1 cannot mirror port data on other switches. If the data of a plurality of devices in the whole system needs to be backed up, the switches connected with the devices need a mirror port, and the data backup device also needs to be provided with a corresponding number of interfaces to connect all the mirror ports. If the distance between the switches is long, the connection between each mirror image port and the data backup device is also quite difficult, which is extremely inconvenient and increases the difficulty of system deployment.
Secondly, the mirroring principle is to mirror the port, for example, mirroring the data of the port 1, the mirroring port will copy all the data of the port 1, and it is not possible to select which specific data in the port 1 needs mirroring, and the data that does not need to be backed up will also be mirrored out, and a data backup device is required to perform data cleaning, which results in waste of resources for calculation, storage, and screening.
Disclosure of Invention
The application provides a power distribution website domain type fast protection network data mirroring system which is used for solving the technical problem that port data of other switches cannot be mirrored in the prior art.
In view of the above, a first aspect of the present application provides a power distribution network domain type fast protection network data mirroring system, where the system includes: the system comprises a main mirror image switch and a plurality of sub mirror image switches;
wherein, the primary mirroring switch comprises:
a first mirror configuration component to:
generating a mirror image address table containing a plurality of groups of destination MAC addresses and source MAC addresses, and sending the mirror image address table to a first mirror image decision component;
a first mirroring decision component to:
generating a mirror image rule message according to the mirror image address table and the IP of the main mirror image switch;
judging whether the Ethernet message forwarded by the first data forwarding component needs mirroring, if so, sending the Ethernet message to a protection device connected with a primary mirroring switch, and meanwhile, directly sending the Ethernet message to a data backup device connected with the primary mirroring switch after copying the Ethernet message, otherwise, sending the Ethernet message to the protection device connected with the primary mirroring switch;
receiving an Ethernet message of a protection device connected with the primary mirroring switch and sending the Ethernet message to a first data forwarding component;
a first data forwarding component to:
sending a mirror rule message to a sub-mirror switch;
receiving Ethernet messages forwarded by other mirror image switches, and sending the Ethernet messages to a first mirror image decision component according to the destination MAC of the Ethernet messages, or forwarding the Ethernet messages to other mirror image switches;
receiving the Ethernet message forwarded by the first mirror image decision component, and forwarding the Ethernet message to other mirror image switches according to the MAC address forwarding table;
a mirror decapsulation component to:
and decapsulating the mirror image data messages forwarded by other mirror image switches into original Ethernet messages, and sending the original Ethernet messages to the data backup device.
The sub-mirror switch includes:
a second data forwarding component to:
receiving a mirror image rule message, sending the mirror image rule message to a second mirror image decision component, and forwarding the mirror image rule message to other mirror image switches;
receiving Ethernet messages forwarded by other mirror image switches, and sending the Ethernet messages to a second mirror image decision component according to the destination MAC of the Ethernet messages, or forwarding the Ethernet messages to other mirror image switches;
receiving a mirror image data message sent by a mirror image packaging assembly and sending the mirror image data message to a main mirror image switch;
a second mirroring decision component to:
converting the mirror rule message into a mirror address table and an IP of a main mirror switch, and sending the mirror address table and the IP to a mirror packaging assembly;
receiving an Ethernet message sent by a second data forwarding component, judging whether the Ethernet message needs mirroring, if so, sending the Ethernet message to a protection device connected with a sub-mirroring switch, copying an Ethernet broadcast message and then sending the Ethernet message to a mirroring packaging component, and otherwise, sending the Ethernet message to the protection device connected with the sub-mirroring switch;
a mirror package assembly to:
saving the mirror image address table and the IP of the primary mirror image switch;
according to the mirror image address table and the IP of the main mirror image switch, the Ethernet message is packaged to obtain a mirror image data message, and the mirror image data message is sent to the second data forwarding component;
optionally, the first mirror image configuration component is specifically configured to:
the method comprises the steps of setting MAC addresses of any two protection devices needing mirroring communication data in a system as a destination MAC address and a source MAC address respectively, generating a mirroring address table containing multiple groups of destination MAC addresses and source MAC addresses, and sending the mirroring address table to a first mirroring decision component.
Optionally, the first mirroring decision component is specifically configured to:
generating a mirror image rule message according to the mirror image address table and the IP of the main mirror image switch;
when the MAC information of the Ethernet message sent by the first data forwarding component exists in the mirror image address table and the target MAC of the Ethernet message is a protection device connected with the main mirror image switch, the Ethernet message is sent to a protection device of a self equipment interface, and is simultaneously copied and then directly sent to a data backup device connected with the main mirror image switch;
and receiving an Ethernet message of the protection device connected with the primary mirroring switch and sending the Ethernet message to the first data forwarding component.
Optionally, the first data forwarding component is specifically configured to:
sending a mirror rule message to a sub-mirror switch;
receiving Ethernet messages forwarded by other mirror image switches, judging whether a target MAC of the Ethernet messages is the MAC of a protection device connected with a main mirror image switch or not according to a preset MAC address forwarding table, if so, sending the Ethernet messages to a first mirror image decision component, and otherwise, forwarding the Ethernet messages to other mirror image switches;
and receiving the Ethernet message forwarded by the first mirror image decision component, and forwarding the Ethernet message to other mirror image switches according to the MAC address forwarding table.
Optionally, the first mirror image decapsulation component is specifically configured to:
when the mirror image data is a mirror image data message encapsulated by other mirror image switches, decapsulating the mirror image data message to obtain an original Ethernet message, and sending the original Ethernet message to a data backup device;
and when the mirror image data is the data of the protection device connected with the main mirror image switch, directly sending the mirror image data to the data backup device.
Optionally, the second data forwarding component is specifically configured to:
receiving a mirror image rule message, sending the mirror image rule message to a second mirror image decision component, and forwarding the mirror image rule message to other mirror image switches;
receiving Ethernet messages forwarded by other mirror image switches, judging whether a target MAC of the Ethernet messages is an access device of a device interface of the Ethernet messages according to a preset MAC address forwarding table, if so, sending the Ethernet messages to a second mirror image decision component, and otherwise, forwarding the Ethernet messages to other mirror image switches;
and receiving a mirror image data message sent by the mirror image packaging assembly, and sending the mirror image data message to the primary mirror image switch according to a preset MAC address forwarding table.
Optionally, the second mirror decision component is specifically configured to:
converting the mirror rule message into a mirror address table and an IP of a main mirror switch, and sending the mirror address table and the IP to a mirror packaging assembly;
when the MAC information of the Ethernet message sent by the second data forwarding component exists in the mirror image address table and the target MAC of the Ethernet message is the protection device connected with the sub-mirror image switch, the Ethernet message is sent to the protection device of the equipment interface of the second data forwarding component, the Ethernet message is copied and then directly sent to the mirror image packaging component, and when the MAC information of the Ethernet message sent by the second data forwarding component does not exist in the mirror image address table, the Ethernet message is directly sent to the protection device connected with the sub-mirror image switch.
According to the technical scheme, the method has the following advantages:
the application provides a network data mirror image system of distribution network site territory formula quick protection realizes the accurate data mirror image of the universe of distribution network site territory formula quick protection, makes a mirror image port of distribution network site territory formula quick protection system's data backup device accessible, both can acquire the mirror image data of local switch, also can acquire the mirror image data of other switches, greatly reduced data mirror image system's the deployment degree of difficulty and cost. Further, the MAC address based mirroring target is more accurate than port based mirroring. The resource utilization of calculation, storage and screening of the data backup device is improved. Therefore, the technical problem that port data of other switches cannot be mirrored in the prior art is solved.
Drawings
Fig. 1 is a system block diagram of a power distribution website domain type fast protection network data mirroring system provided in an embodiment of the present application;
fig. 2 is an architecture diagram of a primary mirroring switch provided in an embodiment of the present application;
fig. 3 is an architecture diagram of a sub-mirror switch provided in an embodiment of the present application;
fig. 4 is a schematic port mirror diagram of a conventional switch provided in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, 2 and 3, an embodiment of the present application provides a power distribution network domain type fast protection network data mirroring system, including: the system comprises a main mirror image switch and a plurality of sub mirror image switches;
as shown in fig. 2, the main mirror switch in this embodiment is composed of two network side interfaces a/B, 1 or more than 1 device interface, a mirror port, a first data forwarding component, a first mirror decision component, a mirror configuration component, and a mirror decapsulation component.
A network side interface: interfaces interconnecting the switches;
and (3) equipment interface: an interface for connecting the protection device and other Ethernet equipment;
mirror image interface: an interface that transmits mirrored data to the data backup apparatus (the mirrored interface does not receive data);
wherein, the primary mirroring switch comprises:
a first mirror configuration component to:
generating a mirror image address table containing a plurality of groups of destination MAC addresses and source MAC addresses, and sending the mirror image address table to a first mirror image decision component;
it should be noted that the ethernet data frame includes a destination MAC address and a source MAC address, and communication data between any two protection devices that need to be mirrored in the entire system is configured in a mirror MAC configuration component to generate a mirror address table with two MACs as a group. E.g., MAC 1< - > MAC 2; MAC 1< - > MAC 3; MAC N < - > MAC 2, and the like. A group of two MACs in the mirror address table corresponds to a destination MAC address and a source MAC address in an ethernet data frame. The mirror MAC configuration component passes the generated mirror address table to the first mirror decision component.
A first mirroring decision component to:
generating a mirror image rule message according to the mirror image address table and the IP of the main mirror image switch;
judging whether the Ethernet message forwarded by the first data forwarding component needs mirroring, if so, sending the Ethernet message to a protection device connected with a primary mirroring switch, and meanwhile, directly sending the Ethernet message to a data backup device connected with the primary mirroring switch after copying the Ethernet message, otherwise, sending the Ethernet message to the protection device connected with the primary mirroring switch;
receiving an Ethernet message of a protection device connected with a primary mirroring switch, and sending the Ethernet message to a first data forwarding component;
it should be noted that the first mirroring decision component has three functions, which are 1) generating a mirroring rule message, 2) determining whether the ethernet message needs mirroring, and 3) receiving the ethernet message of the protection device connected thereto.
Specifically, the method comprises the following steps:
1) The first mirroring decision component of the main mirroring switch generates a mirroring rule message, and the mirroring rule message is an Ethernet broadcast message of a destination address FF: FF: FF: FF: FF. The mirror image rule message contains information of all mirror image address tables and the IP address of the main mirror image switch, and the first data forwarding component sends the information to other mirror image switches from the network side interface.
2) When the first mirroring decision module receives the ethernet message forwarded by the first data forwarding module, the first mirroring decision module compares an MAC address forwarding table (a protection device accessed to an equipment interface of the switch, and the switch can learn MAC) preset by a mirroring switch with the mirroring address table to determine whether a destination MAC address and a source MAC address of the ethernet message sent by the first data forwarding module need mirroring. If the mirror image address table does not have the MAC information of the Ethernet message, the first mirror image decision component directly sends the Ethernet message to a protection device connected with the first mirror image decision component through an equipment interface (all switches for copying communication data to form mirror image messages are necessarily switches accessed by destination MAC of original data). If the mirror image address table matches the MAC information of the data and the destination MAC of the Ethernet message is the MAC of the protection device of the equipment interface, the Ethernet message is sent from the equipment interface to the protection device connected with the equipment interface, and the whole Ethernet message is copied, passes through the first mirror image decapsulation component and is sent from the mirror image port to the data backup device.
3) And receiving an Ethernet message of the protection device connected with the primary mirroring switch (the protection device connected with the primary mirroring switch can generate the Ethernet message), and sending the Ethernet message to the first data forwarding component (so that the first data forwarding component forwards the Ethernet message to other mirroring switches).
A first data forwarding component to:
sending a mirror rule message to a sub-mirror switch;
receiving Ethernet messages forwarded by other mirror image switches, and sending the Ethernet messages to a first mirror image decision component according to the target MAC of the Ethernet messages, or forwarding the Ethernet messages to other mirror image switches;
receiving an Ethernet message forwarded by a first mirror image decision component, and forwarding the Ethernet message to other mirror image switches according to an MAC address forwarding table;
it should be noted that the first data forwarding component has three functions, namely 1) sending the mirror image rule message to other mirror image switches, and 2) receiving or forwarding the ethernet messages of other mirror image switches; 3) Receiving and forwarding the Ethernet message forwarded by the first mirroring decision component (of the self device).
Specifically, the method comprises the following steps:
1) After the first data forwarding component receives the mirror image rule message of the first mirror image decision component, the data forwarding component sends the mirror image rule message to other mirror image switches from the network side interface A/B.
2) After receiving the ethernet message sent by other image switches from a network side interface, the first data forwarding component judges whether the destination MAC of the ethernet message is the access device (the protection device connected with the primary image switch) of its own device interface according to the preset MAC address forwarding table, and forwards the ethernet message to the first image decision component if the destination MAC is itself. And if the destination is not the mirror image switch, forwarding the Ethernet message to other mirror image switches from another network side interface.
3) And after receiving the Ethernet message forwarded by the first mirroring decision component, the first data forwarding component forwards the Ethernet message to other mirroring switches according to an MAC address forwarding table preset by the first primary mirroring switch.
A mirror decapsulation component to:
and decapsulating the mirror image data messages forwarded by other mirror image switches into original Ethernet messages, and sending the original Ethernet messages to the data backup device.
It should be noted that the mirror decapsulation component of the master mirror switch does not perform encapsulation of the mirror rule packet, but only has a decapsulation function. When the mirror image data is data of an equipment interface of the main mirror image switch (an Ethernet message generated by a protection device connected with the main mirror image switch), the data entering the mirror image decapsulation component is an original Ethernet message, is directly transmitted through (through the mirror image decapsulation component), and is sent to the data backup device from the mirror image port. When the mirror image data is the mirror image data message encapsulated by other mirror image switches, the mirror image decapsulation component decapsulates the mirror image data message, restores the mirror image data message to the original Ethernet message, and sends the original Ethernet message to the data backup device from the mirror image port.
As shown in fig. 3, the sub-mirror switch in this embodiment is composed of two network side interfaces a/B, 1 or more than 1 device interface, a second data forwarding component, a second mirror decision component, and a mirror encapsulation component.
A network side interface: interfaces interconnecting the switches;
and (3) equipment interface: an interface for connecting the protection device and other Ethernet equipment;
the sub-mirror switch includes:
a second data forwarding component to:
receiving a mirror image rule message, sending the mirror image rule message to a second mirror image decision component, and forwarding the mirror image rule message to other mirror image switches;
receiving Ethernet messages forwarded by other mirror image switches, and sending the Ethernet messages to a second mirror image decision component according to the destination MAC of the Ethernet messages, or forwarding the Ethernet messages to other mirror image switches;
receiving a mirror image data message sent by a mirror image packaging assembly and sending the mirror image data message to a main mirror image switch;
it should be noted that the second data forwarding component has three functions, which are 1) receiving and forwarding the mirror rule packet sent by the primary mirror image switch, 2) receiving or forwarding the ethernet packet sent by another mirror image switch, and 3) sending the encapsulated mirror image data packet to the primary mirror image switch.
Specifically, the method comprises the following steps:
1) After receiving the mirror image rule message of the main switch from one network side interface, the second data forwarding component forwards the mirror image rule message to the second mirror image decision component, and simultaneously forwards the mirror image rule message from the other network side interface, so that the other mirror image switches acquire the mirror image rule message;
2) After receiving the ethernet message sent by other mirror image switches from a network side interface, the second data forwarding component judges whether the destination MAC of the ethernet message is the access device (connected with the protection device) of its own device interface according to a preset MAC address forwarding table, and forwards the ethernet message to the second mirror image decision component if the destination is itself. If the destination is not the self, the message is forwarded to other mirror image switches from another network side interface;
3) And after receiving the mirror image UDP message (mirror image data message) forwarded by the mirror image packaging component, the second data forwarding component sends the mirror image UDP message to the main mirror image switch from the network side interface according to a preset MAC address forwarding table.
A second mirroring decision component to:
converting the mirror rule message into a mirror address table and an IP of a main mirror switch, and sending the mirror address table and the IP to a mirror packaging assembly;
receiving an Ethernet message sent by a second data forwarding component, judging whether the Ethernet message needs mirroring or not, if so, sending the Ethernet message to a protection device connected with a sub-mirroring switch, and meanwhile, copying an Ethernet broadcast message and then sending the Ethernet message to a mirroring packaging component, otherwise, sending the Ethernet message to the protection device connected with the sub-mirroring switch;
it should be noted that the second mirroring decision component has two functions, which are 1) to convert the mirroring rule packet sent by the primary mirroring switch, and 2) to determine whether the ethernet packet sent by the other mirroring switches needs to be mirrored.
Specifically, the method comprises the following steps:
1) Receiving a mirror image rule message sent by a main mirror image switch from a network side interface, storing mirror image rule information in the mirror image rule message, and generating a mirror image address table; and simultaneously, the IP and MAC address information of the master switch is sent to the mirror image packaging component for storage.
2) When the mirror image decision component receives the Ethernet message of the protection device connected with the sub mirror image switch, the mirror image address table is used for comparing an MAC address forwarding table (the protection device is accessed to the switch equipment interface, and the switch can learn MAC) preset by the sub mirror image switch, and whether the destination MAC address and the source MAC address of the Ethernet message sent by the second data forwarding component need to be mirrored or not is judged. If the mirror image address table does not have the MAC information of the Ethernet message, the second mirror image decision component directly sends the Ethernet message to the protection device through the equipment interface. If the mirror image address table is matched with the MAC information of the Ethernet message and the target MAC of the Ethernet message is the MAC of the protection device of the equipment interface, the Ethernet message is sent from the equipment interface to the protection device connected with the equipment interface, the whole Ethernet message is copied, the Ethernet message is transferred to a mirror image packaging assembly, and the mirror image message is packaged.
A mirror package assembly for:
saving the mirror image address table and the IP of the primary mirror image switch;
and according to the mirror image address table and the IP of the main mirror image switch, packaging the Ethernet message to obtain a mirror image data message, and sending the mirror image data message to the second data forwarding component.
It should be noted that the ethernet packet transferred from the second mirroring decision component is encapsulated in the mirroring packet format. And encapsulating the mirror image message into a UDP message format, wherein the target MAC is a main mirror image switch MAC, the target IP is a main mirror image switch IP, and a data area in the UDP message is a complete original Ethernet message (containing all information of the target MAC, the source MAC, the type, the VLAN, the data and the like of the original Ethernet message).
The terms "first," "second," "third," "fourth," and the like in the description of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the application described herein may be implemented, for example, in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present application.

Claims (7)

1. A network data mirroring system for power distribution network domain type fast protection is characterized by comprising: the system comprises a main mirror image switch and a plurality of sub mirror image switches;
wherein, the primary mirror image switch includes:
a first mirror configuration component to:
generating a mirror image address table containing a plurality of groups of destination MAC addresses and source MAC addresses, and sending the mirror image address table to a first mirror image decision component;
a first mirroring decision component to:
generating a mirror image rule message according to the mirror image address table and the IP of the main mirror image switch;
judging whether the Ethernet message forwarded by the first data forwarding component needs mirroring, if so, sending the Ethernet message to a protection device connected with a primary mirroring switch, and meanwhile, directly sending the Ethernet message to a data backup device connected with the primary mirroring switch after copying the Ethernet message, otherwise, sending the Ethernet message to the protection device connected with the primary mirroring switch;
receiving an Ethernet message of a protection device connected with the primary mirroring switch and sending the Ethernet message to a first data forwarding component;
a first data forwarding component to:
sending a mirror rule message to a sub-mirror switch;
receiving Ethernet messages forwarded by other mirror image switches, and sending the Ethernet messages to a first mirror image decision component according to the destination MAC of the Ethernet messages, or forwarding the Ethernet messages to other mirror image switches;
receiving the Ethernet message forwarded by the first mirror image decision component, and forwarding the Ethernet message to other mirror image switches according to the MAC address forwarding table;
a mirror decapsulation component to:
decapsulating the mirror image data messages forwarded by other mirror image switches into original Ethernet messages, and sending the original Ethernet messages to a data backup device;
the sub-mirror switch includes:
a second data forwarding component to:
receiving a mirror image rule message, sending the mirror image rule message to a second mirror image decision component, and forwarding the mirror image rule message to other mirror image switches;
receiving Ethernet messages forwarded by other mirror image switches, and sending the Ethernet messages to a second mirror image decision component according to the target MAC of the Ethernet messages, or forwarding the Ethernet messages to other mirror image switches;
receiving a mirror image data message sent by a mirror image packaging assembly and sending the mirror image data message to a main mirror image switch;
a second mirroring decision component to:
converting the mirror image rule message into a mirror image address table and an IP (Internet protocol) of a main mirror image switch, and sending the mirror image address table and the IP to a mirror image packaging assembly;
receiving an Ethernet message sent by a second data forwarding component, judging whether the Ethernet message needs mirroring or not, if so, sending the Ethernet message to a protection device connected with a sub-mirroring switch, and meanwhile, copying an Ethernet broadcast message and then sending the Ethernet message to a mirroring packaging component, otherwise, sending the Ethernet message to the protection device connected with the sub-mirroring switch;
a mirror package assembly for:
saving a mirror image address table and an IP of a primary mirror image switch;
and according to the mirror image address table and the IP of the main mirror image switch, packaging the Ethernet message to obtain a mirror image data message, and sending the mirror image data message to the second data forwarding component.
2. The power distribution website domain-based fast protection network data mirroring system of claim 1, wherein the first mirroring configuration component is specifically configured to:
the method comprises the steps of setting MAC addresses of any two protection devices needing mirroring communication data in a system as a destination MAC address and a source MAC address respectively, generating a mirroring address table containing multiple groups of destination MAC addresses and source MAC addresses, and sending the mirroring address table to a first mirroring decision component.
3. The power distribution website domain-based fast protection network data mirroring system of claim 1, wherein the first mirroring decision component is specifically configured to:
generating a mirror image rule message according to the mirror image address table and the IP of the main mirror image switch;
when the MAC information of the Ethernet message sent by the first data forwarding component exists in the mirror image address table and the target MAC of the Ethernet message is a protection device connected with the main mirror image switch, the Ethernet message is sent to a protection device of a self equipment interface, and is simultaneously copied and then directly sent to a data backup device connected with the main mirror image switch;
and receiving an Ethernet message of the protection device connected with the primary mirroring switch and sending the Ethernet message to the first data forwarding component.
4. The power distribution website domain-based fast protection network data mirroring system of claim 1, wherein the first data forwarding component is specifically configured to:
sending a mirror rule message to a sub-mirror switch;
receiving Ethernet messages forwarded by other mirror image switches, judging whether a target MAC of the Ethernet messages is the MAC of a protection device connected with a main mirror image switch or not according to a preset MAC address forwarding table, if so, sending the Ethernet messages to a first mirror image decision component, and otherwise, forwarding the Ethernet messages to other mirror image switches;
and receiving the Ethernet message forwarded by the first mirror image decision component, and forwarding the Ethernet message to other mirror image switches according to the MAC address forwarding table.
5. The power distribution website domain-type fast protection network data mirroring system of claim 1, wherein the first mirror decapsulation component is specifically configured to:
when the mirror image data is a mirror image data message encapsulated by other mirror image switches, decapsulating the mirror image data message to obtain an original Ethernet message, and sending the original Ethernet message to a data backup device;
when the mirror image data is data of a protection device connected to the primary mirror image switch, the mirror image data is directly transmitted to the data backup device.
6. The power distribution website domain-based fast protection network data mirroring system of claim 1, wherein the second data forwarding component is specifically configured to:
receiving a mirror image rule message, sending the mirror image rule message to a second mirror image decision component, and forwarding the mirror image rule message to other mirror image switches;
receiving Ethernet messages forwarded by other mirror image switches, judging whether a target MAC of the Ethernet message is an access device of a self device interface according to a preset MAC address forwarding table, if so, sending the Ethernet message to a second mirror image decision component, and otherwise, forwarding the Ethernet message to other mirror image switches;
and receiving a mirror image data message sent by the mirror image packaging assembly, and sending the mirror image data message to the primary mirror image switch according to a preset MAC address forwarding table.
7. The power distribution website domain-based fast protection network data mirroring system of claim 1, wherein the second mirroring decision component is specifically configured to:
converting the mirror rule message into a mirror address table and an IP of a main mirror switch, and sending the mirror address table and the IP to a mirror packaging assembly;
when the MAC information of the Ethernet message sent by the second data forwarding component exists in the mirror image address table and the target MAC of the Ethernet message is the protection device connected with the sub-mirror image switch, the Ethernet message is sent to the protection device of the equipment interface of the second data forwarding component, the Ethernet message is copied and then directly sent to the mirror image packaging component, and when the MAC information of the Ethernet message sent by the second data forwarding component does not exist in the mirror image address table, the Ethernet message is directly sent to the protection device connected with the sub-mirror image switch.
CN202210874656.0A 2022-07-25 2022-07-25 Domain-based rapid protection network data mirroring system for power distribution network Active CN115086152B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210874656.0A CN115086152B (en) 2022-07-25 2022-07-25 Domain-based rapid protection network data mirroring system for power distribution network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210874656.0A CN115086152B (en) 2022-07-25 2022-07-25 Domain-based rapid protection network data mirroring system for power distribution network

Publications (2)

Publication Number Publication Date
CN115086152A CN115086152A (en) 2022-09-20
CN115086152B true CN115086152B (en) 2023-01-03

Family

ID=83242268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210874656.0A Active CN115086152B (en) 2022-07-25 2022-07-25 Domain-based rapid protection network data mirroring system for power distribution network

Country Status (1)

Country Link
CN (1) CN115086152B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218248A (en) * 2013-03-25 2013-07-24 华为技术有限公司 Virtual machine mirror image updating method, server and desktop cloud system
CN104618194A (en) * 2015-02-15 2015-05-13 杭州华三通信技术有限公司 Software definition network message monitoring method, SDN controller and switching devices
WO2015100637A1 (en) * 2013-12-31 2015-07-09 华为技术有限公司 Method and switching device for link alternation
CN109039956A (en) * 2018-08-09 2018-12-18 新华三云计算技术有限公司 Port Mirroring method, apparatus, host and storage medium
CN109120492A (en) * 2017-06-26 2019-01-01 中兴通讯股份有限公司 A kind of storage unit, source interchanger, message forwarding method and mirror-image system
CN111478862A (en) * 2020-03-09 2020-07-31 邦彦技术股份有限公司 Remote data mirroring system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140010096A1 (en) * 2012-07-09 2014-01-09 International Business Machines Corporation Port mirroring in distributed switching systems

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218248A (en) * 2013-03-25 2013-07-24 华为技术有限公司 Virtual machine mirror image updating method, server and desktop cloud system
WO2015100637A1 (en) * 2013-12-31 2015-07-09 华为技术有限公司 Method and switching device for link alternation
CN104618194A (en) * 2015-02-15 2015-05-13 杭州华三通信技术有限公司 Software definition network message monitoring method, SDN controller and switching devices
CN109120492A (en) * 2017-06-26 2019-01-01 中兴通讯股份有限公司 A kind of storage unit, source interchanger, message forwarding method and mirror-image system
CN109039956A (en) * 2018-08-09 2018-12-18 新华三云计算技术有限公司 Port Mirroring method, apparatus, host and storage medium
CN111478862A (en) * 2020-03-09 2020-07-31 邦彦技术股份有限公司 Remote data mirroring system and method

Also Published As

Publication number Publication date
CN115086152A (en) 2022-09-20

Similar Documents

Publication Publication Date Title
CN101772918B (en) Operation, administration and maintenance (OAM) for chains of services
US9608841B2 (en) Method for real-time synchronization of ARP record in RSMLT cluster
CN105939239B (en) Data transmission method and device of virtual network card
CN107317752B (en) Method and device for forwarding data message
CN109639552B (en) Three-layer forwarding method and device
US20110110372A1 (en) Systems and methods to perform hybrid switching and routing functions
US20230208760A1 (en) Entry generation method, packet sending method, device, and system
CN111614580B (en) Data forwarding method, device and equipment
KR102547681B1 (en) Service flow processing method and device
CN110677337A (en) Data forwarding method and device, network equipment and computer readable storage medium
CN114640557A (en) Gateway and cloud network system
CN114978988A (en) Method and device for realizing table entry backup
CN115086152B (en) Domain-based rapid protection network data mirroring system for power distribution network
CN112187584B (en) Path fault detection method, system, server and storage medium
CN107454132B (en) Method and device for supporting multi-tenant network transmission
CN109412851B (en) Link layer path detection method, device and system
CN114157632B (en) Network isolation method, device, equipment and storage medium
US8094564B2 (en) Communication system, method and apparatus for providing mirroring service in the communication system
US8036218B2 (en) Technique for achieving connectivity between telecommunication stations
CN105634839A (en) Method and device for acquiring accessible address space of network
US20230421499A1 (en) Packet transmission method and apparatus
EP1921804B1 (en) Method and system for transmitting connectivity fault management messages in ethernet, and a node device
GB2236234A (en) Message routing check system.
JP2585843B2 (en) Local area network interconnection device and station device
CN117997561A (en) Communication method and device

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Qu Weichao

Inventor after: Cao Xiaodong

Inventor after: Liu Zhicong

Inventor after: Liao Feng

Inventor after: Chen Jinrong

Inventor after: Li Yonghao

Inventor after: Wang Yueqiang

Inventor after: Huang Guoping

Inventor after: Li Gaoming

Inventor after: Lu Ying

Inventor after: OuYang Weinian

Inventor before: Qu Weichao

Inventor before: Cao Xiaodong

Inventor before: Liu Zhicong

Inventor before: Liao Feng

Inventor before: Chen Jinrong

Inventor before: Li Yonghao

Inventor before: Wang Yueqiang

Inventor before: Huang Guoping

Inventor before: Li Gaoming

Inventor before: Lu Ying

Inventor before: OuYang Weinian