CN111585791B - Data synchronization configuration method, system and storage medium - Google Patents

Data synchronization configuration method, system and storage medium Download PDF

Info

Publication number
CN111585791B
CN111585791B CN202010288906.3A CN202010288906A CN111585791B CN 111585791 B CN111585791 B CN 111585791B CN 202010288906 A CN202010288906 A CN 202010288906A CN 111585791 B CN111585791 B CN 111585791B
Authority
CN
China
Prior art keywords
vlan
ethernet switch
interconnected
ports
configuration
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
CN202010288906.3A
Other languages
Chinese (zh)
Other versions
CN111585791A (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.)
Shenzhen Genew Technologies Co Ltd
Original Assignee
Shenzhen Genew 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 Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN202010288906.3A priority Critical patent/CN111585791B/en
Publication of CN111585791A publication Critical patent/CN111585791A/en
Application granted granted Critical
Publication of CN111585791B publication Critical patent/CN111585791B/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
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The invention discloses a data synchronization configuration method, a system and a storage medium, wherein the method comprises the following steps: after connecting the two Ethernet switches, entering a forwarding working state; sending VLAN tag configuration data packets carrying VLAN ID configuration information of a local terminal to each other between ports interconnected by two Ethernet switches; VLAN ID configuration information of the Ethernet switches which are controlled to be interconnected is completely consistent, and the interconnected ports mutually forward VLAN tag data packets of VLAN IDs corresponding to VLAN groups added into the two interconnected ports. The invention configures the same VLAN ID configuration information for the two Ethernet switches, so that the ports of the two Ethernet switches can mutually forward VLAN tag data packets of VLAN IDs corresponding to VLAN groups added by the two interconnected ports under the condition of no manual operation configuration, and the workload of network communication management and maintenance is reduced.

Description

Data synchronization configuration method, system and storage medium
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method, a system, and a storage medium for data synchronization configuration.
Background
The Ethernet switch is a switch for transmitting data based on Ethernet, and the Ethernet adopts a local area network of a shared bus type transmission medium mode. The ethernet switch is configured such that each port is directly connected to the host and typically operates in full duplex mode. The Ethernet switch can simultaneously connect a plurality of pairs of ports, so that each pair of mutually communicated hosts can transmit data without conflict like exclusive communication media.
The ports provided by the Ethernet switch can be plugged and used normally, and the two ports of the link can automatically negotiate configuration information such as a consistent working rate (usually 10M/100M/1000M/10000M), a duplex mode and the like, so that the connected ports can enter a forwarding working state without manual configuration.
At present, VLAN tag technology is widely applied to the exchanger, and the VLAN tag supports 4094 VLAN IDs (ID value range is 1-4094); the packet may carry a VLAN tag of a certain VLAN ID. The port of the Ethernet exchanger in the forwarding working state must be added into the VLAN ID group to forward the data packet carrying the VLAN tag; one port may be added to multiple VLAN ID groups. Each port is in the group with the VLAN ID equal to 1 by default, so after the ports connected by the switch automatically negotiate and enter a forwarding working state, only the VLAN tag packet carrying the VLAN ID equal to 1 can be forwarded in general.
The interconnected ports lack the function of automatically synchronizing VLAN ID configuration data, and often the VLAN tag data packet carrying the VLAN ID which is not equal to 1 can be forwarded only after the VLAN ID is configured to be consistent through manual intervention; because the interconnected ports belong to two ethernet switches respectively, and they are usually independent and unrelated in configuration, the two ports need to be configured by a network administrator to join the same VLAN group, so that the two ports can forward the data packet of the VLAN tag corresponding to the VLAN ID; relying on manual operational configuration increases the workload of network communication management maintenance.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention mainly aims to provide a data synchronization configuration method, a data synchronization configuration system and a storage medium, and aims to solve the problem that in the prior art, a function of automatically synchronizing VLAN ID configuration data is lacked between interconnected ports, and a VLAN tag data packet carrying a VLAN ID which is not equal to 1 can be forwarded only after the VLAN ID is configured into a consistent VLAN ID through manual intervention.
In order to achieve the above object, the present invention provides a data synchronization configuration method, which includes the following steps:
after connecting the two Ethernet switches, entering a forwarding working state;
sending VLAN tag configuration data packets carrying VLAN ID configuration information of a local terminal to each other between ports interconnected by two Ethernet switches;
VLAN ID configuration information of the Ethernet switches which are controlled to be interconnected is completely consistent, and the interconnected ports mutually forward VLAN tag data packets of VLAN IDs corresponding to VLAN groups added into the two interconnected ports.
Optionally, in the data synchronization configuration method, the VLAN ID configuration information is used to control the ports that are interconnected to join in the same VLAN group.
Optionally, in the data synchronization configuration method, the VLAN tag configuration packet uses 01:80: C2:00:00: AA as a destination MAC address, and the destination MAC address reserves an unused MAC address for ethernet;
and when the Ethernet switch receives the data packet of the destination MAC address, the data packet is considered as a VLAN tag configuration data packet.
Optionally, in the data synchronization configuration method, the VLAN tag configuration packet uses a MAC address of a switch that sends out the VLAN tag configuration packet as a source MAC address.
Optionally, the data synchronization configuration method, where sending a VLAN tag configuration packet carrying local VLAN ID configuration information between ports interconnected by two ethernet switches, specifically includes:
VLAN ID configuration data of the Ethernet switch of the local terminal are collected once every preset time to form a corresponding VLAN tag configuration data packet, and the VLAN tag configuration data packet is sent to the port of the Ethernet switch of the opposite terminal;
when the port of the Ethernet switch at the home terminal sends the VLAN tag configuration data packet, the VLAN tag configuration data packet sent by the port of the Ethernet switch at the opposite terminal is synchronously monitored and received.
Optionally, in the data synchronization configuration method, in the VLAN tag configuration packet sent by the port of the local ethernet switch and the VLAN tag configuration packet sent by the port of the opposite ethernet switch, the source MAC address and the VLAN ID configuration information are different.
Optionally, the data synchronization configuration method, where the VLAN ID configuration information of the ethernet switches controlling interconnection is completely consistent, and the interconnected ports mutually forward VLAN tag packets of VLAN IDs corresponding to a VLAN group to which two interconnected ports join includes:
the Ethernet switch analyzes a VLAN tag configuration data packet sent by a port of an opposite Ethernet switch;
if the VLAN tag configuration data packet indicates that the opposite end Ethernet switch is added with certain VLAN IDs and the local end Ethernet switch is not added, controlling the port of the local end Ethernet switch to be added into the VLAN IDs added by the opposite end Ethernet switch;
if the VLAN tag configuration data packet indicates that the opposite end Ethernet switch exits certain VLAN IDs and the local end Ethernet switch learns to join the VLAN IDs from the opposite end, controlling the port of the local end Ethernet switch to exit the VLAN IDs;
when the configuration information of the VLAN IDs of the Ethernet switches of the local terminal and the opposite terminal are completely consistent, the ports interconnected by the Ethernet switches of the local terminal and the opposite terminal mutually forward VLAN tag data packets of the VLAN IDs corresponding to the VLAN group added by the two interconnected ports.
Optionally, in the data synchronization configuration method, the interconnected ports mutually forward VLAN tag packets carrying a VLAN ID unequal to 1.
In addition, to achieve the above object, the present invention further provides a data synchronization configuration system, wherein the data synchronization configuration system includes: the two Ethernet switches are respectively a home terminal Ethernet switch and an opposite terminal Ethernet switch which are interconnected through ports;
the local end Ethernet switch and the opposite end Ethernet switch are connected and then enter a forwarding working state;
VLAN tag configuration data packets carrying VLAN ID configuration information of the local end Ethernet switch and the opposite end Ethernet switch are mutually sent between the ports which are interconnected with each other;
VLAN ID configuration information of a local end Ethernet switch and an opposite end Ethernet switch which are controlled to be interconnected is completely consistent, and ports which are interconnected with the local end Ethernet switch and the opposite end Ethernet switch mutually forward VLAN tag data packets of VLAN IDs corresponding to VLAN groups which are added into two interconnected ports.
In addition, to achieve the above object, the present invention further provides a storage medium, wherein the storage medium stores a data synchronization configuration program, and the data synchronization configuration program implements the steps of the data synchronization configuration method when executed by a processor.
In the invention, two Ethernet switches are connected and then enter a forwarding working state; sending VLAN tag configuration data packets carrying VLAN ID configuration information of a local terminal to each other between ports interconnected by two Ethernet switches; VLAN ID configuration information of the Ethernet switches which are controlled to be interconnected is completely consistent, and the interconnected ports mutually forward VLAN tag data packets of VLAN IDs corresponding to VLAN groups added into the two interconnected ports. According to the invention, the two Ethernet switches are configured with the same VLAN ID configuration information, so that under the condition of no need of manual operation configuration, the ports of the two Ethernet switches can mutually forward VLAN tag data packets of VLAN IDs corresponding to VLAN groups added by the two interconnected ports, and the workload of network communication management and maintenance is reduced.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of a data synchronization configuration method of the present invention;
FIG. 2 is a schematic diagram of a data synchronization configuration system according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, the data synchronization configuration method according to the preferred embodiment of the present invention includes the following steps:
step S10, the two Ethernet switches are connected and then enter a forwarding working state;
step S20, sending VLAN tag configuration data packet carrying VLAN ID configuration information of home terminal between the ports interconnected by two Ethernet switches;
step S30, controlling that the VLAN ID configuration information of the interconnected ethernet switches is completely consistent, and the interconnected ports mutually forward VLAN tag packets of VLAN IDs corresponding to the VLAN group to which the two interconnected ports join.
Specifically, the VLAN tag configuration packet is defined as follows:
the VLAN tag configuration data packet takes 01:80: C2:00:00: AA as a destination MAC address, and the destination MAC address is an unused MAC address reserved by the Ethernet; when receiving the data packet of the destination MAC address, the ethernet switch considers that the data packet is a VLAN tag configuration data packet, carries a VLAN tag whose VLAN ID is 1, and also carries information of a VLAN group to which a port that issued the data packet joins.
The VLAN tag configures the packet with the switch sender's MAC address as the source MAC address.
The VLAN tag configuration packet carries a VLAN tag with a VLAN ID of 1, because after two ports are interconnected, only a packet with a VLAN ID of 1 can be forwarded and received.
The VLAN tag configuration packet carries a list of all VLAN IDs (not including the default VLAN ID of 1) joined by the sender switch port, which is defined as follows:
Figure BDA0002449638140000071
the VLAN ID AMOUNT records how many VLAN IDs are carried by the data packet, and the value range is 0 to 4093. VLAN ID1, VLAN ID2, VLAN ID3,. VLANIDn is (VLAN ID AMOUNT) VLAN ID values, each value ranges from 2 to 4094, but each value is not equal.
In the VLAN technology, a station is a VLAN forwarding group when viewed from a switch, a station is a VLAN tag when viewed from a packet, the VLAN tag is four bytes of data appended to a source MAC in the packet, and the most important information in the VLAN is a VLAN ID (1-4094).
The characteristics of the VLAN group include VLAN ID (range 1-4094, where each VLAN group has a different ID) and port members of the VLAN group (which ports belong to the VLAN group, and the port members of different VLAN groups may be the same). Packets specifying a VLAN ID can only be forwarded between port members of the VLAN group corresponding to the VLAN ID.
After the ports of the two Ethernet switches are connected, the Ethernet switches enter a forwarding working state; VLAN ID configuration data of the port are collected once every 10 seconds (namely, preset time), a corresponding VLAN tag configuration data packet is formed, and the VLAN tag configuration data packet is sent to the opposite port. The switch port sends the VLAN tag configuration data packet and monitors and receives the VLAN tag configuration data packet sent by the opposite port.
The definition, format and packet sending purpose of the VLAN tag configuration data packet sent by the opposite party are completely the same as those of the VLAN tag configuration data packet sent by the own party, but the specific data values in the VLAN tag configuration data packet are different, for example, the source MAC addresses are different (respectively, the MAC addresses of the two switches), and the VLAN ID configuration information is different (because the VLAN groups added to the two ports are different).
For example, port 1 is connected with port 2, and port 1 is added with VLAN 2 and VLAN 3; adding VLAN 3 and VLAN 4 into the port 2; then a packet with VLAN ID3 in VLAN tag can be forwarded between port 1 and port 2, but a packet with VLAN ID2 or 4 in VLAN tag cannot be forwarded.
And then the Ethernet switch analyzes the VLAN tag configuration data packet sent by the port of the opposite side, and if the data packet indicates that the opposite side is added with certain VLAN IDs but the local side is not added, the port of the local side is controlled to be also added with the VLAN IDs. If the data packet indicates that the opposite end exits certain VLAN IDs and the local end learns from the opposite end and also adds the VLAN IDs, controlling the port of the local end to exit the VLAN IDs; the premise of quitting VLAN IDs is that the VLAN ID groups added by the local end are not originally configured by the local end, but are added after automatic synchronous learning, if the VLAN ID groups added by the local end are originally configured by the local end, the VLAN IDs do not quit, the VLAN IDs are sent to an opposite end port, and the VLAN IDs are added to the opposite end port.
Repeating the above steps until the switch port is unplugged from the forwarding working state, and then, also withdrawing all the VLAN IDs which are learned and added from the opposite end (when the connection with the opposite end port is unplugged, the connection is possibly changed to another port next time, so that the VLAN IDs which are learned and added before are all withdrawn).
The invention mutually sends the data packet carrying the VLAN ID configuration information of the local terminal between the ports interconnected by the switch, and the data packet is called as a VLAN tag configuration data packet, thereby sharing and maintaining the consistent VLAN ID configuration information and ensuring that two ports can mutually transmit the VLAN tag data packet carrying the VLAN ID which is not equal to 1 under the condition of no manual operation configuration.
For example, when the device operates between two ports (port 1 and port 2) interconnected by two Ethernet switches, the port 1 sends the information of the VLAN group added by the device to the port 2; after knowing the VLAN group added by port 1, port 2 finds out some VLAN groups added by port 1 but does not add itself, and then controls itself to add to these VLAN groups. Meanwhile, the port 2 also sends the information of the VLAN group added by the port to the port 1; after knowing the VLAN group added by port 2, port 1 finds out some VLAN groups added by port 2 but does not add itself, and then controls itself to add to these VLAN groups. And finally, the automatic configuration of the two interconnected ports into the same VLAN group is realized.
Further, as shown in fig. 2, based on the above data synchronization configuration method, the present invention also provides a data synchronization configuration system, wherein the data synchronization configuration system includes:
the two Ethernet switches are respectively a home terminal Ethernet switch and an opposite terminal Ethernet switch which are interconnected through ports;
the local end Ethernet switch and the opposite end Ethernet switch are connected and then enter a forwarding working state;
VLAN tag configuration data packets carrying VLAN ID configuration information of the local end Ethernet switch and the opposite end Ethernet switch are mutually sent between the ports which are interconnected with each other;
VLAN ID configuration information of a local end Ethernet switch and an opposite end Ethernet switch which are controlled to be interconnected is completely consistent, and ports which are interconnected with the local end Ethernet switch and the opposite end Ethernet switch mutually forward VLAN tag data packets of VLAN IDs corresponding to VLAN groups which are added into two interconnected ports.
Wherein the VLAN ID configuration information is used for controlling the ports of the interconnection to be added into the same VLAN group. The VLAN tag configuration data packet takes 01:80: C2:00:00: AA as a destination MAC address, and the destination MAC address reserves an unused MAC address for Ethernet; and when the Ethernet switch receives the data packet of the destination MAC address, the data packet is considered as a VLAN tag configuration data packet.
The VLAN tag configuration packet has the MAC address of the switch that issued the VLAN tag configuration packet as the source MAC address.
VLAN ID configuration data of the Ethernet switch of the local terminal are collected once every preset time to form a corresponding VLAN tag configuration data packet, and the VLAN tag configuration data packet is sent to the port of the Ethernet switch of the opposite terminal; when the port of the Ethernet switch at the home terminal sends the VLAN tag configuration data packet, the VLAN tag configuration data packet sent by the port of the Ethernet switch at the opposite terminal is synchronously monitored and received. The VLAN tag configuration data packet sent by the port of the Ethernet switch at the home terminal is different from the VLAN tag configuration data packet sent by the port of the Ethernet switch at the opposite terminal in source MAC address and VLAN ID configuration information.
The Ethernet switch analyzes a VLAN tag configuration data packet sent by a port of an opposite Ethernet switch; if the VLAN tag configuration data packet indicates that the opposite end Ethernet switch is added with certain VLAN IDs and the local end Ethernet switch is not added, controlling the port of the local end Ethernet switch to be added into the VLAN IDs added by the opposite end Ethernet switch; if the VLAN tag configuration data packet indicates that the opposite end Ethernet switch exits certain VLAN IDs and the local end Ethernet switch learns to join the VLAN IDs from the opposite end, controlling the port of the local end Ethernet switch to exit the VLAN IDs; when the configuration information of the VLAN IDs of the Ethernet switches of the local terminal and the opposite terminal are completely consistent, the ports interconnected by the Ethernet switches of the local terminal and the opposite terminal mutually forward VLAN tag data packets of the VLAN IDs corresponding to the VLAN group added by the two interconnected ports. For example, the interconnected ports forward VLAN tag packets carrying VLAN IDs unequal to 1 to each other.
The present invention also provides a storage medium, wherein the storage medium stores a data synchronization configuration program, and the data synchronization configuration program implements the steps of the data synchronization configuration method when executed by a processor.
In summary, the present invention provides a method, a system and a storage medium for data synchronization configuration, where the method includes: after connecting the two Ethernet switches, entering a forwarding working state; sending VLAN tag configuration data packets carrying VLAN ID configuration information of a local terminal to each other between ports interconnected by two Ethernet switches; VLAN ID configuration information of the Ethernet switches which are controlled to be interconnected is completely consistent, and the interconnected ports mutually forward VLAN tag data packets of VLAN IDs corresponding to VLAN groups added into the two interconnected ports. According to the invention, the two Ethernet switches are configured with the same VLAN ID configuration information, so that under the condition of no need of manual operation configuration, the ports of the two Ethernet switches can mutually forward VLAN tag data packets of VLAN IDs corresponding to VLAN groups added by the two interconnected ports, and the workload of network communication management and maintenance is reduced.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (7)

1. A data synchronization configuration method is characterized in that the data synchronization configuration method comprises the following steps:
after connecting the two Ethernet switches, entering a forwarding working state;
sending VLAN tag configuration data packets carrying VLAN ID configuration information of a local terminal to each other between ports interconnected by two Ethernet switches;
the VLAN tag configuration data packet takes 01:80: C2:00:00: AA as a destination MAC address, and the destination MAC address reserves an unused MAC address for Ethernet;
when the Ethernet switch receives the data packet of the destination MAC address, the data packet is considered as a VLAN tag configuration data packet;
the VLAN tag configuration data packet takes the MAC address of the switch which sends the VLAN tag configuration data packet as a source MAC address;
controlling the VLAN ID configuration information of the interconnected Ethernet switches to be completely consistent, and mutually forwarding VLAN tag data packets of VLAN IDs corresponding to VLAN groups added by two interconnected ports by the interconnected ports;
the controlling of the configuration information of the VLAN IDs of the interconnected ethernet switches is completely consistent, and the interconnected ports mutually forward VLAN tag packets of VLAN IDs corresponding to VLAN groups to which the two interconnected ports are added, and the controlling of the interconnected ethernet switches specifically includes:
the Ethernet switch analyzes a VLAN tag configuration data packet sent by a port of an opposite Ethernet switch;
if the VLAN tag configuration data packet indicates that the opposite end Ethernet switch is added with certain VLAN IDs and the local end Ethernet switch is not added, controlling the port of the local end Ethernet switch to be added into the VLAN IDs added by the opposite end Ethernet switch;
if the VLAN tag configuration data packet indicates that the opposite end Ethernet switch exits certain VLAN IDs and the local end Ethernet switch learns to join the VLAN IDs from the opposite end, controlling the port of the local end Ethernet switch to exit the VLAN IDs;
when the VLAN ID configuration information of the Ethernet switches controlling the home terminal and the opposite terminal is completely consistent, the ports interconnected by the Ethernet switches of the home terminal and the opposite terminal mutually forward VLAN tag data packets of VLAN IDs corresponding to VLAN groups added by two interconnected ports;
by configuring the two Ethernet switches with the same VLAN ID configuration information, the ports of the two Ethernet switches can mutually forward VLAN tag data packets of VLAN IDs corresponding to VLAN groups added by the two interconnected ports under the condition of no need of manual operation configuration.
2. The data synchronization configuration method according to claim 1, wherein the VLAN ID configuration information is used to control the ports of the interconnection to join into the identical VLAN group.
3. The method according to claim 1, wherein the sending of the VLAN tag configuration packet carrying the VLAN ID configuration information of the local end between the ports interconnected by the two ethernet switches includes:
collecting VLAN ID configuration data of the Ethernet switch of the local terminal once every preset time to form a corresponding VLAN tag configuration data packet, and sending the VLAN tag configuration data packet to a port of the Ethernet switch of the opposite terminal;
when the port of the Ethernet switch at the home terminal sends the VLAN tag configuration data packet, the VLAN tag configuration data packet sent by the port of the Ethernet switch at the opposite terminal is synchronously monitored and received.
4. The data synchronization configuration method according to claim 3, wherein the VLAN tag configuration packet sent by the port of the local ethernet switch is different from the VLAN tag configuration packet sent by the port of the opposite ethernet switch in source MAC address and VLAN ID configuration information.
5. The data synchronization configuration method according to claim 1, wherein the interconnected ports mutually forward VLAN tag packets carrying VLAN IDs unequal to 1.
6. A data synchronization configuration system, characterized in that the data synchronization configuration system comprises: the two Ethernet switches are respectively a home terminal Ethernet switch and an opposite terminal Ethernet switch which are interconnected through ports;
the local end Ethernet switch and the opposite end Ethernet switch are connected and then enter a forwarding working state;
VLAN tag configuration data packets carrying VLAN ID configuration information of the local end Ethernet switch and the opposite end Ethernet switch are mutually sent between the ports which are interconnected with each other;
the VLAN tag configuration data packet takes 01:80: C2:00:00: AA as a destination MAC address, and the destination MAC address reserves an unused MAC address for Ethernet;
when the Ethernet switch receives the data packet of the destination MAC address, the data packet is considered as a VLAN tag configuration data packet;
the VLAN tag configuration data packet takes the MAC address of the switch which sends the VLAN tag configuration data packet as a source MAC address;
controlling the VLAN ID configuration information of the home end Ethernet switch and the opposite end Ethernet switch which are interconnected to be completely consistent, wherein the ports which are interconnected with the home end Ethernet switch and the opposite end Ethernet switch mutually transmit VLAN tag data packets of VLAN IDs corresponding to VLAN groups which are added into two interconnected ports;
the Ethernet switch analyzes a VLAN tag configuration data packet sent by a port of an opposite Ethernet switch;
if the VLAN tag configuration data packet indicates that the opposite end Ethernet switch is added with certain VLAN IDs and the local end Ethernet switch is not added, controlling the port of the local end Ethernet switch to be added into the VLAN IDs added by the opposite end Ethernet switch;
if the VLAN tag configuration data packet indicates that the opposite end Ethernet switch exits certain VLAN IDs and the local end Ethernet switch learns to join the VLAN IDs from the opposite end, controlling the port of the local end Ethernet switch to exit the VLAN IDs;
when the VLAN ID configuration information of the Ethernet switches controlling the home terminal and the opposite terminal is completely consistent, the ports interconnected by the Ethernet switches of the home terminal and the opposite terminal mutually forward VLAN tag data packets of VLAN IDs corresponding to VLAN groups added by two interconnected ports;
by configuring the two Ethernet switches with the same VLAN ID configuration information, the ports of the two Ethernet switches can mutually forward VLAN tag data packets of VLAN IDs corresponding to VLAN groups added by the two interconnected ports under the condition of no need of manual operation configuration.
7. A storage medium, characterized in that the storage medium stores a data synchronization configuration program, and the data synchronization configuration program, when executed by a processor, implements the steps of the data synchronization configuration method according to any one of claims 1 to 5.
CN202010288906.3A 2020-04-14 2020-04-14 Data synchronization configuration method, system and storage medium Active CN111585791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010288906.3A CN111585791B (en) 2020-04-14 2020-04-14 Data synchronization configuration method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010288906.3A CN111585791B (en) 2020-04-14 2020-04-14 Data synchronization configuration method, system and storage medium

Publications (2)

Publication Number Publication Date
CN111585791A CN111585791A (en) 2020-08-25
CN111585791B true CN111585791B (en) 2022-09-20

Family

ID=72126427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010288906.3A Active CN111585791B (en) 2020-04-14 2020-04-14 Data synchronization configuration method, system and storage medium

Country Status (1)

Country Link
CN (1) CN111585791B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021056094A1 (en) * 2019-09-24 2021-04-01 Genetec Inc. Intermediary device for daisy chain and tree configuration in hybrid data/power connection
US11770155B2 (en) 2020-05-19 2023-09-26 Genetec Inc. Power distribution and data routing in a network of devices interconnected by hybrid data/power links

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820383A (en) * 2010-01-27 2010-09-01 中兴通讯股份有限公司 Method and device for restricting remote access of switcher
CN102957619A (en) * 2011-08-25 2013-03-06 清华大学 Virtual routing system and method
CN105471651A (en) * 2015-12-04 2016-04-06 武汉烽火网络有限责任公司 VLAN synchronization method in two-layer network, local switch and remote switch

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820383A (en) * 2010-01-27 2010-09-01 中兴通讯股份有限公司 Method and device for restricting remote access of switcher
CN102957619A (en) * 2011-08-25 2013-03-06 清华大学 Virtual routing system and method
CN105471651A (en) * 2015-12-04 2016-04-06 武汉烽火网络有限责任公司 VLAN synchronization method in two-layer network, local switch and remote switch

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
浅谈VLAN在AIMS系统维护中的应用;刘冲;《数字技术与应用》;20100210(第02期);全文 *

Also Published As

Publication number Publication date
CN111585791A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN101325497B (en) Autonegotiation over an interface for which no autonegotiation standard exists
CN101964713B (en) Network method and system
US10374895B2 (en) Configuration of communication interfaces for link aggregation
US20100192218A1 (en) Method and system for packet filtering for local host-management controller pass-through communication via network controller
CN111585791B (en) Data synchronization configuration method, system and storage medium
CN105656645A (en) Decision making method and device for fault processing of stacking system
CN104836753A (en) Software-defined networking (SDN) data plane strip state exchange device, SDN exchange system and SDN data plane strip state forwarding and processing method
WO2012105051A1 (en) Communication system, communication method, and communication device
CN105450779A (en) Method for achieving connection between one household electric appliance and multiple servers
CN109067633B (en) Power management system and method based on Ethernet daisy chain communication network topology
EP2717532B1 (en) High-speed link self-negotiation method and single board
US6484213B1 (en) Adapting networking device for enhancing performance of a hybrid networking system
CN101150478B (en) A method, system and router for establishing master/slave link
US9705823B2 (en) Port status synchronization method, related device, and system
CN111526042B (en) Port aggregation method, system and storage medium based on rate
Cisco Configuring the CDDI/FDDI Module
Cisco Configuring the CDDI/FDDI Module
Cisco Configuring the CDDI/FDDI Module
Cisco Configuring Interfaces and Circuits
Cisco Configuring the CDDI/FDDI Module
Cisco Configuring the CDDI/FDDI Module
Cisco Configuring the CDDI/FDDI Module
Cisco Configuring the CDDI/FDDI Module
EP4094421A2 (en) Pce controlled network reliability
CN100512212C (en) Ethernet bridge apparatus, data transmission method and application based on Ethernet bridge apparatus

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