CN114006910A - Information synchronization method and device - Google Patents
Information synchronization method and device Download PDFInfo
- Publication number
- CN114006910A CN114006910A CN202111246969.3A CN202111246969A CN114006910A CN 114006910 A CN114006910 A CN 114006910A CN 202111246969 A CN202111246969 A CN 202111246969A CN 114006910 A CN114006910 A CN 114006910A
- Authority
- CN
- China
- Prior art keywords
- attribute information
- endpoint device
- edge switch
- lldp
- basic attribute
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000001419 dependent effect Effects 0.000 claims description 48
- 238000012217 deletion Methods 0.000 claims description 11
- 230000037430 deletion Effects 0.000 claims description 11
- 230000002776 aggregation Effects 0.000 claims description 6
- 238000004220 aggregation Methods 0.000 claims description 6
- 238000005516 engineering process Methods 0.000 description 12
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000003999 initiator Substances 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000032683 aging Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000002425 crystallisation Methods 0.000 description 1
- 230000008025 crystallization Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 229920000638 styrene acrylonitrile Polymers 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/04—Interdomain routing, e.g. hierarchical routing
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a method and a device for information synchronization, wherein the method is applied to a first edge switch and comprises the following steps: receiving a first LLDP message sent by first end point equipment; adding the basic attribute information and the auxiliary attribute information of the first endpoint equipment locally; the method comprises the steps of sending a first BGP message to a first core switch, wherein the first BGP message comprises basic attribute information and auxiliary attribute information of first end point equipment, so that the first core switch adds the basic attribute information and the auxiliary attribute information of the first end point equipment locally, sending the first BGP message to a second edge switch, further adding the basic attribute information and the auxiliary attribute information of the second end point equipment locally by the second edge switch, and sending a second LLDP message to the second end point equipment, wherein the second LLDP message comprises the basic attribute information and the auxiliary attribute information of the first end point equipment.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for synchronizing information.
Background
At present, a conventional Storage Area Network (SAN) includes two main technologies: one is a mesh Channel (FC) technology, and the other is an ethernet technology.
FC technology has long held a vast majority of its share in SANs due to its performance, reliability, etc. advantages. However, with the popularization of the full flash Memory, and the consequent RDMA (Non-Volatile Memory over RDMA over Ethernet, NVMe over RoCE for short) technology based on the Converged Ethernet through the interface specification, the situation is changing.
NVMe over RoCE technology, meaning fast non-volatile storage based on remote memory access operating over converged Ethernet. The technology combines the latest technology NVMe of the storage medium and the latest technology Remote Direct Memory Access (RDMA) in the field of networks, and the crystallization of the two creates a highway from high-performance storage to high-performance computing.
However, in order to store a large amount of data, the storage system often needs to manage a large number of hosts, and there are cases where new hosts successively access network devices. In order to enable the intelligent lossless network technology to better serve the storage system, the intelligent lossless network is applied to the storage system through the rapid management and control of the access host, so that the technology of integrating the computing network and the storage network is realized. Through the quick management and control of the accessed host, the management module in the intelligent lossless network can know the newly accessed host at the first time, intelligently adjust the relevant configuration of the intelligent lossless network, inform the host information to the storage system and assist the storage system in managing the host.
The existing NVMe over RoCE and lossless network solutions have more and more advantages in data centers, but face the following problems: the addition and the withdrawal of the storage equipment in the storage system and the addition and the withdrawal of the host need the configuration and the intervention of management personnel, the usability is poor, and the work tasks of the management personnel are increased.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for information synchronization, so as to solve the problems that in the existing scheme, configuration and intervention of a manager are required for both adding and withdrawing storage devices and adding and withdrawing hosts in a storage system, usability is poor, and work tasks of the manager are increased.
In a first aspect, the present application provides an information synchronization method, where the method is applied to a first edge switch, the first edge switch is in an NVMe over RoCEv2 network, and the NVMe over RoCEv2 network further includes a first core switch, a first endpoint device, a second edge switch, and a second endpoint device, and the method includes:
receiving a first LLDP message sent by the first endpoint device, wherein the first LLDP message comprises basic attribute information and auxiliary attribute information of the first endpoint device;
adding the basic attribute information and the auxiliary attribute information of the first endpoint equipment locally;
sending a first BGP message to the first core switch, where the first BGP message includes basic attribute information and dependent attribute information of the first endpoint device, so that the first core switch adds the basic attribute information and the dependent attribute information of the first endpoint device locally, and sends the first BGP message to the second edge switch, so that the second edge switch adds the basic attribute information and the dependent attribute information of the second endpoint device locally, and sends a second LLDP message to the second endpoint device, where the second LLDP message includes the basic attribute information and the dependent attribute information of the first endpoint device.
In a second aspect, the present application provides an apparatus for information synchronization, where the apparatus is applied to a first edge switch, the first edge switch is in an NVMe over RoCEv2 network, and the NVMe over RoCEv2 network further includes a first core switch, a first endpoint device, a second edge switch, and a second endpoint device, and the apparatus includes:
a receiving unit, configured to receive a first LLDP packet sent by the first endpoint device, where the first LLDP packet includes basic attribute information and dependent attribute information of the first endpoint device;
an adding unit, configured to locally add basic attribute information and dependent attribute information of the first endpoint device;
a sending unit, configured to send a first BGP message to the first core switch, where the first BGP message includes basic attribute information and dependent attribute information of the first endpoint device, so that the first core switch adds the basic attribute information and the dependent attribute information of the first endpoint device locally, and sends the first BGP message to the second edge switch, so that the second edge switch adds the basic attribute information and the dependent attribute information of the second endpoint device locally, and sends a second LLDP message to the second endpoint device, where the second LLDP message includes the basic attribute information and the dependent attribute information of the first endpoint device.
In a third aspect, the present application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to perform the method provided by the first aspect of the present application.
Therefore, by applying the information synchronization method and apparatus provided by the present application, the first edge switch receives a first LLDP message sent by the first endpoint device, where the first LLDP message includes basic attribute information and dependent attribute information of the first endpoint device; the first edge switch locally adds basic attribute information and auxiliary attribute information of the first endpoint equipment; the first edge switch sends a first BGP message to the first core switch, wherein the first BGP message comprises basic attribute information and auxiliary attribute information of the first end point device, so that the first core switch adds the basic attribute information and the auxiliary attribute information of the first end point device locally, and sends the first BGP message to the second edge switch, so that the second edge switch adds the basic attribute information and the auxiliary attribute information of the second end point device locally, and sends a second LLDP message to the second end point device, wherein the second LLDP message comprises the basic attribute information and the auxiliary attribute information of the first end point device.
Therefore, the edge switch and the end point device exchange information of the end point device through the LLDP protocol, the edge switch and the core switch transmit the information of the end point device through the BGP protocol, information interaction in the whole network is completed, better management and control over the end point device in the NVMe over RoCEv2 network are achieved, and the problems that in the existing scheme, adding and quitting of storage devices in a storage system and adding and quitting of hosts need configuration and intervention of management personnel, usability is poor, and work tasks of the management personnel are increased are solved.
Drawings
Fig. 1 is a flowchart of a method for information synchronization according to an embodiment of the present application;
fig. 2 is a schematic networking diagram of an NVMe over RoCE network provided in an embodiment of the present application;
fig. 3 is a structural diagram of an apparatus for information synchronization according to an embodiment of the present disclosure;
fig. 4 is a hardware structure of a network device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the corresponding listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The method for synchronizing information provided by the embodiments of the present application is described in detail below. Referring to fig. 1, fig. 1 is a flowchart of a method for information synchronization according to an embodiment of the present application. The method is applied to a first edge switch. The method for synchronizing information provided by the embodiment of the application can comprise the following steps.
Specifically, in the NVMe over RoCE network, three types of roles are mainly included: initiators (also referred to as hosts), switches, and targets (also referred to as storage endpoints). Initiators and targets may also be referred to as endpoint devices.
The host and the storage end point transmit the information of the host and the storage end point in the network; the switch is used as a network core to realize the information synchronization of the IP service domain management function, the transfer of the added and withdrawn endpoint equipment; storage endpoints provide high performance storage services.
The switches include a plurality of edge switches and a plurality of core switches. Each edge switch is connected with the host and the storage end point. Each core switch is fully connected with each edge switch.
In the embodiment of the present application, as shown in fig. 2, fig. 2 is a networking schematic diagram of an NVMe over RoCE network provided in the embodiment of the present application. In fig. 2, two core switches, two edge switches, and a plurality of endpoint devices are included in the network. The endpoint device configures and enables a Link Layer Discovery Protocol (LLDP) with the edge switch, and configures and enables a Border Gateway Protocol (BGP) with the core switch.
When newly added endpoint equipment exists in the network, the newly added endpoint equipment automatically establishes an LLDP neighbor with an accessed edge switch; when a newly added edge switch exists in the network, the newly added edge switch automatically establishes a BGP neighbor with the core switch.
When the first end point device is started and accessed into the network, the first end point device establishes an LLDP neighbor with the accessed first edge switch, and acquires the basic attribute information and the auxiliary attribute information of the first end point device. The first end point device generates a first LLDP message, which includes basic attribute information and dependent attribute information of the first end point device.
The basic attribute information of the endpoint equipment comprises a software version, an IP type, an IP address and a service type of the endpoint equipment; the attached attribute information of the endpoint device includes a protocol role, a protocol type, a protocol version, a protocol identifier length, and a protocol identifier of the endpoint device.
The first endpoint device sends a first LLDP message to the first edge switch via the LLDP protocol. And the first edge switch receives the first LLDP message and acquires the basic attribute information and the auxiliary attribute information of the first end point device from the first LLDP message.
It should be noted that, after the first endpoint device sends the first LLDP packet, the first LLDP packet may be sent to the first edge switch periodically (for example, every 30 seconds).
If the network port information of the first endpoint device is changed, the first endpoint device still sends the first LLDP packet to the first edge switch according to the sending method. It is understood that the first LLDP message includes updated base attribute information and dependent attribute information of the first endpoint device.
If the first end point device has a fault or a current network fault, the first end point device does not need to send the first LLDP message to the first edge switch. It can be understood that, after the failure recovery of the first endpoint device or the failure recovery of the current network, the first endpoint device sends the first LLDP packet to the first edge switch again.
If the port of the first endpoint device accessing the first edge switch is an aggregation port, each member port included in the aggregation port should send a first LLDP message to the first edge switch. For example, the first edge switch includes a first interface and the first endpoint device includes a second interface. The first interface and the second interface belong to the same aggregation group. In this step, each member port in the second interface sends a first LLDP packet to a corresponding member port in the first interface.
Specifically, according to the description of step 110, the first edge switch acquires the basic attribute information and the dependent attribute information of the first endpoint device from the first LLDP packet, and locally adds the basic attribute information and the dependent attribute information of the first endpoint device.
That is, the first edge switch locally stores the base attribute information and the adjunct attribute information of the first endpoint device. It will be appreciated that the first edge switch, in the process of storing, also stores an identification of the first endpoint device, the identification being used to uniquely specify the first endpoint device. Such as the MAC address of the first endpoint device, etc.
Specifically, according to the description in step 120, after the first edge switch locally adds the basic attribute information and the dependent attribute information of the first endpoint device, a first BGP message is generated, where the first BGP message includes the basic attribute information and the dependent attribute information of the first endpoint device.
The first edge switch comprises a LLDP module and a BGP module, wherein the LLDP module obtains and locally adds basic attribute information and auxiliary attribute information of the first endpoint device, and then transmits the basic attribute information and the auxiliary attribute information of the first endpoint device to the BGP module. The BGP module extends an address family within the BGP protocol, the address family for carrying basic attribute information and dependent attribute information of the first endpoint device. The BGP module generates a first BGP message.
When the first edge switch accesses the network, it automatically establishes a BGP neighbor with the first core switch. And the first edge switch sends a first BGP message to the first core switch through a BGP protocol. The first core switch receives the first BGP message and acquires basic attribute information and auxiliary attribute information of the first end point equipment from the first BGP message.
The first core switch adds the basic attribute information and the auxiliary attribute information of the first endpoint device locally, and simultaneously, the first core switch sends a first BGP message to the second edge switch. The second edge switch is an edge switch that is in addition to the first edge switch and that establishes a BGP neighbor with the first core switch.
And after receiving the first BGP message, the second edge switch acquires the basic attribute information and the auxiliary attribute information of the first endpoint equipment. The second edge switch locally adds the basic attribute information and the attached attribute information of the first end point device, and simultaneously generates a second LLDP message, wherein the second LLDP message comprises the basic attribute information and the attached attribute information of the first end point device.
The BGP module obtains and locally adds the basic attribute information and the dependent attribute information of the first endpoint device, and then transfers the basic attribute information and the dependent attribute information of the first endpoint device to the value LLDP module. And the LLDP module generates a second LLDP message.
And the second edge switch sends a second LLDP message to the second endpoint device. The second endpoint device is an endpoint device that is accessed in addition to the first endpoint device and establishes an LLDP neighbor with the second edge switch.
And after receiving the second LLDP message, the second endpoint device acquires the basic attribute information and the attached attribute information of the first endpoint device. The second endpoint device locally adds the base attribute information and the dependent attribute information of the first endpoint device.
The first core switch, the second edge switch and the second endpoint device also store the identifier of the first endpoint device in the process of locally adding the basic attribute information and the auxiliary attribute information of the first endpoint device.
At this point, the basic attribute information and the attached attribute information of the first endpoint device are synchronized to each device in the entire network, and each device in the entire network determines that the first endpoint device has been added to the NVMe over RoCE network.
Further, in fig. 2, a master-slave relationship is formed between the first core switch and the second core switch, and the first core switch is used as a master core switch and as a reflector, which reflects the received basic attribute information and the received attached attribute information of the first endpoint device to the second edge switch. When the first core switch fails, the second core switch immediately takes over the work of the main core switch, upgrades to the main core switch, and acts as a reflector.
Therefore, by applying the information synchronization method provided by the present application, the first edge switch receives a first LLDP packet sent by the first endpoint device, where the first LLDP packet includes basic attribute information and dependent attribute information of the first endpoint device; the first edge switch locally adds basic attribute information and auxiliary attribute information of the first endpoint equipment; the first edge switch sends a first BGP message to the first core switch, wherein the first BGP message comprises basic attribute information and auxiliary attribute information of the first end point device, so that the first core switch adds the basic attribute information and the auxiliary attribute information of the first end point device locally, and sends the first BGP message to the second edge switch, so that the second edge switch adds the basic attribute information and the auxiliary attribute information of the second end point device locally, and sends a second LLDP message to the second end point device, wherein the second LLDP message comprises the basic attribute information and the auxiliary attribute information of the first end point device.
Therefore, the edge switch and the end point device exchange information of the end point device through the LLDP protocol, the edge switch and the core switch transmit the information of the end point device through the BGP protocol, information interaction in the whole network is completed, better management and control over the end point device in the NVMe over RoCEv2 network are achieved, and the problems that in the existing scheme, adding and quitting of storage devices in a storage system and adding and quitting of hosts need configuration and intervention of management personnel, usability is poor, and work tasks of the management personnel are increased are solved.
Optionally, in this embodiment of the present application, a process of the first edge switch sending the second BGP message when the first edge switch does not receive the first LLDP message within a preset time is further included.
Specifically, if the first LLDP packet sent by the first endpoint device is not received within a preset time (e.g., within an aging period, 45 seconds), the first edge switch locally deletes the basic attribute information and the dependent attribute information of the first endpoint device.
And simultaneously, the first edge switch generates a second BGP message, wherein the second BGP message comprises a deletion mark and the identifier of the first endpoint device. And the first edge switch sends a second BGP message to the first core switch through a BGP protocol.
And the first core switch receives the second BGP message and acquires the deletion mark and the identifier of the first end point device from the second BGP message. And according to the identifier of the first end point device, the first core switch locally acquires and deletes the basic attribute information and the auxiliary attribute information of the first end point device, and sends a second BGP message to the second edge switch.
And after receiving the second BGP message, the second edge switch acquires the deletion mark and the identifier of the first endpoint device. And according to the identifier of the first end point device, the second edge switch locally acquires and deletes the basic attribute information and the auxiliary attribute information of the first end point device.
And meanwhile, the second edge switch generates a third LLDP message, wherein the third LLDP message comprises a deletion mark and the identifier of the first endpoint device. And the second edge switch sends a third LLDP message to the second endpoint device.
And after receiving the third LLDP message, the second endpoint device acquires the deletion mark and the identifier of the first endpoint device. And according to the identification of the first end point equipment, the second end point equipment locally acquires and deletes the basic attribute information and the auxiliary attribute information of the first end point equipment.
So far, each device in the entire network has deleted the basic attribute information and the attached attribute information of the first endpoint device locally, and each device determines that the first endpoint device has left the NVMe over RoCE network.
It is understood that in the embodiment of the present application, the second edge switch may also serve as the first edge switch and perform the aforementioned steps 110 to 130, and optional steps. Similarly, the first edge switch may also serve as the second edge switch, and perform the steps performed by the second edge switch in the foregoing steps 110 to 130, and optionally the steps.
Since the processes performed after the roles of the first edge switch and the second edge switch are switched are described in detail in the foregoing embodiments, they will not be repeated here.
Based on the same inventive concept, the embodiment of the application also provides an information synchronization device corresponding to the information synchronization method. Referring to fig. 3, fig. 3 is a structural diagram of an apparatus for information synchronization according to an embodiment of the present disclosure. The apparatus is applied to a first edge switch, the first edge switch being in an NVMe over RoCEv2 network, the NVMe over RoCEv2 network further including a first core switch, a first endpoint device, a second edge switch, and a second endpoint device, the apparatus comprising:
a receiving unit 310, configured to receive a first LLDP packet sent by the first endpoint device, where the first LLDP packet includes basic attribute information and accessory attribute information of the first endpoint device;
a storage unit 320, configured to add the basic attribute information and the dependent attribute information of the first endpoint device locally;
a sending unit 330, configured to send a first BGP message to the first core switch, where the first BGP message includes basic attribute information and dependent attribute information of the first endpoint device, so that the first core switch locally adds the basic attribute information and the dependent attribute information of the first endpoint device, and sends the first BGP message to the second edge switch, so that the second edge switch locally adds the basic attribute information and the dependent attribute information of the second endpoint device, and sends a second LLDP message to the second endpoint device, where the second LLDP message includes the basic attribute information and the dependent attribute information of the first endpoint device.
Optionally, the apparatus further comprises: a deleting unit (not shown in the figure), configured to locally delete the basic attribute information and the accessory attribute information of the first endpoint device if the first LLDP packet sent by the first endpoint device is not received within a preset time;
the sending unit 330 is further configured to send a second BGP message to the first core switch, where the second BGP message includes a deletion flag and an identifier of the first endpoint device, so that the first core switch locally deletes basic attribute information and dependent attribute information of the first endpoint device, and sends the second BGP message to the second edge switch, so that the second edge switch locally deletes the basic attribute information and the dependent attribute information of the first endpoint device, and sends a third LLDP message to the second endpoint device, where the third LLDP message includes the deletion flag and the identifier of the first endpoint device.
Optionally, the first edge switch includes a first interface, the first endpoint device includes a second interface, and the first interface and the second interface belong to the same aggregation group;
the receiving unit 310 is specifically configured to receive, by each member port in the first interface, the first LLDP packet sent by a corresponding member port in the second interface.
Optionally, the basic attribute information of the endpoint device includes a software version, an IP type, an IP address, and a service type of the endpoint device; the accessory attribute information of the endpoint device includes a protocol role, a protocol type, a protocol version, a protocol identifier length, and a protocol identifier of the endpoint device.
Optionally, the endpoint device is embodied as a host or a storage endpoint.
Therefore, by using the information synchronization apparatus provided by the present application, the first edge switch receives a first LLDP packet sent by the first endpoint device, where the first LLDP packet includes basic attribute information and dependent attribute information of the first endpoint device; the first edge switch locally adds basic attribute information and auxiliary attribute information of the first endpoint equipment; the first edge switch sends a first BGP message to the first core switch, wherein the first BGP message comprises basic attribute information and auxiliary attribute information of the first end point device, so that the first core switch adds the basic attribute information and the auxiliary attribute information of the first end point device locally, and sends the first BGP message to the second edge switch, so that the second edge switch adds the basic attribute information and the auxiliary attribute information of the second end point device locally, and sends a second LLDP message to the second end point device, wherein the second LLDP message comprises the basic attribute information and the auxiliary attribute information of the first end point device.
Therefore, the edge switch and the end point device exchange information of the end point device through the LLDP protocol, the edge switch and the core switch transmit the information of the end point device through the BGP protocol, information interaction in the whole network is completed, better management and control over the end point device in the NVMe over RoCEv2 network are achieved, and the problems that in the existing scheme, adding and quitting of storage devices in a storage system and adding and quitting of hosts need configuration and intervention of management personnel, usability is poor, and work tasks of the management personnel are increased are solved.
Based on the same inventive concept, the present application further provides a network device, as shown in fig. 4, including a processor 410, a transceiver 420, and a machine-readable storage medium 430, where the machine-readable storage medium 430 stores machine-executable instructions capable of being executed by the processor 410, and the processor 410 is caused by the machine-executable instructions to perform the method for information synchronization provided by the present application. The aforementioned information synchronization apparatus shown in fig. 3 can be implemented by using a hardware structure of a network device as shown in fig. 4.
The computer-readable storage medium 430 may include a Random Access Memory (RAM) or a Non-volatile Memory (NVM), such as at least one disk Memory. Alternatively, the computer-readable storage medium 430 may also be at least one memory device located remotely from the processor 410.
The Processor 410 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; the Integrated Circuit can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the embodiment of the present application, the processor 410 is caused by machine executable instructions by reading the machine executable instructions stored in the machine readable storage medium 430, so as to realize the method for the processor 410 itself and the calling transceiver 420 to perform the information synchronization described in the embodiment of the present application.
Additionally, embodiments of the present application provide a machine-readable storage medium 430, where the machine-readable storage medium 430 stores machine-executable instructions, which when invoked and executed by the processor 410, cause the processor 410 itself and the invoking transceiver 420 to perform the aforementioned data batching methods described in embodiments of the present application.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and 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 modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
For the embodiments of the apparatus for information synchronization and the machine-readable storage medium, since the contents of the related methods are substantially similar to those of the foregoing embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the embodiments of the methods.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims (10)
1. A method of information synchronization, the method applied to a first edge switch, the first edge switch being in an NVMe over RoCEv2 network, the NVMe over RoCEv2 network further comprising a first core switch, a first endpoint device, a second edge switch, and a second endpoint device, the method comprising:
receiving a first LLDP message sent by the first endpoint device, wherein the first LLDP message comprises basic attribute information and auxiliary attribute information of the first endpoint device;
adding the basic attribute information and the auxiliary attribute information of the first endpoint equipment locally;
sending a first BGP message to the first core switch, where the first BGP message includes basic attribute information and dependent attribute information of the first endpoint device, so that the first core switch adds the basic attribute information and the dependent attribute information of the first endpoint device locally, and sends the first BGP message to the second edge switch, so that the second edge switch adds the basic attribute information and the dependent attribute information of the second endpoint device locally, and sends a second LLDP message to the second endpoint device, where the second LLDP message includes the basic attribute information and the dependent attribute information of the first endpoint device.
2. The method of claim 1, further comprising:
if the first LLDP message sent by the first end point equipment is not received within the preset time, deleting the basic attribute information and the auxiliary attribute information of the first end point equipment locally;
sending a second BGP message to the first core switch, where the second BGP message includes a deletion flag and an identifier of the first endpoint device, so that the first core switch locally deletes basic attribute information and accessory attribute information of the first endpoint device, and sends the second BGP message to the second edge switch, so that the second edge switch locally deletes the basic attribute information and the accessory attribute information of the first endpoint device, and sends a third LLDP message to the second endpoint device, where the third LLDP message includes the deletion flag and the identifier of the first endpoint device.
3. The method of claim 1, wherein the first edge switch comprises a first interface, wherein the first endpoint device comprises a second interface, and wherein the first interface and the second interface belong to a same aggregation group;
the receiving of the first LLDP packet sent by the first endpoint device specifically includes:
and each member port in the first interface receives the first LLDP message sent by the corresponding member port in the second interface.
4. The method according to any of claims 1-3, wherein the basic attribute information of the endpoint device comprises a software version, an IP type, an IP address, and a service type of the endpoint device; the accessory attribute information of the endpoint device includes a protocol role, a protocol type, a protocol version, a protocol identifier length, and a protocol identifier of the endpoint device.
5. The method according to claim 4, wherein the endpoint device is in particular a host or a storage endpoint.
6. An apparatus for information synchronization, the apparatus being applied to a first edge switch, the first edge switch being in an NVMe over RoCEv2 network, the NVMe over RoCEv2 network further including a first core switch, a first endpoint device, a second edge switch, and a second endpoint device, the apparatus comprising:
a receiving unit, configured to receive a first LLDP packet sent by the first endpoint device, where the first LLDP packet includes basic attribute information and dependent attribute information of the first endpoint device;
a storage unit, configured to add, locally, basic attribute information and dependent attribute information of the first endpoint device;
a sending unit, configured to send a first BGP message to the first core switch, where the first BGP message includes basic attribute information and dependent attribute information of the first endpoint device, so that the first core switch adds the basic attribute information and the dependent attribute information of the first endpoint device locally, and sends the first BGP message to the second edge switch, so that the second edge switch adds the basic attribute information and the dependent attribute information of the second endpoint device locally, and sends a second LLDP message to the second endpoint device, where the second LLDP message includes the basic attribute information and the dependent attribute information of the first endpoint device.
7. The apparatus of claim 6, further comprising:
a deleting unit, configured to locally delete the basic attribute information and the accessory attribute information of the first endpoint device if the first LLDP message sent by the first endpoint device is not received within a preset time;
the sending unit is further configured to send a second BGP message to the first core switch, where the second BGP message includes a deletion flag and an identifier of the first endpoint device, so that the first core switch locally deletes basic attribute information and dependent attribute information of the first endpoint device, and sends the second BGP message to the second edge switch, so that the second edge switch locally deletes the basic attribute information and the dependent attribute information of the first endpoint device, and sends a third LLDP message to the second endpoint device, where the third LLDP message includes the deletion flag and the identifier of the first endpoint device.
8. The apparatus of claim 7, wherein the first edge switch comprises a first interface, wherein the first endpoint device comprises a second interface, and wherein the first interface and the second interface belong to a same aggregation group;
the receiving unit is specifically configured to receive, by each member port in the first interface, the first LLDP packet sent by a corresponding member port in the second interface.
9. The apparatus according to any one of claims 6-8, wherein the basic attribute information of the endpoint device comprises a software version, an IP type, an IP address, and a service type of the endpoint device; the accessory attribute information of the endpoint device includes a protocol role, a protocol type, a protocol version, a protocol identifier length, and a protocol identifier of the endpoint device.
10. The apparatus of claim 9, wherein the endpoint device is specifically a host or a storage endpoint.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111246969.3A CN114006910B (en) | 2021-10-26 | 2021-10-26 | Information synchronization method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111246969.3A CN114006910B (en) | 2021-10-26 | 2021-10-26 | Information synchronization method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114006910A true CN114006910A (en) | 2022-02-01 |
| CN114006910B CN114006910B (en) | 2023-11-07 |
Family
ID=79924120
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111246969.3A Active CN114006910B (en) | 2021-10-26 | 2021-10-26 | Information synchronization method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114006910B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115426258A (en) * | 2022-08-23 | 2022-12-02 | 迈普通信技术股份有限公司 | Information configuration method, device, switch and readable storage medium |
| CN116032410A (en) * | 2023-01-18 | 2023-04-28 | 杭州迪普科技股份有限公司 | Method, device, equipment and storage medium for data synchronization of switches |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130188634A1 (en) * | 2012-01-23 | 2013-07-25 | Adva Ag Optical Networking | Method for accessing a network and network access device |
| US8953590B1 (en) * | 2011-03-23 | 2015-02-10 | Juniper Networks, Inc. | Layer two virtual private network having control plane address learning supporting multi-homed customer networks |
| CN111740961A (en) * | 2020-05-26 | 2020-10-02 | 北京华三通信技术有限公司 | Communication method and device |
-
2021
- 2021-10-26 CN CN202111246969.3A patent/CN114006910B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8953590B1 (en) * | 2011-03-23 | 2015-02-10 | Juniper Networks, Inc. | Layer two virtual private network having control plane address learning supporting multi-homed customer networks |
| US20130188634A1 (en) * | 2012-01-23 | 2013-07-25 | Adva Ag Optical Networking | Method for accessing a network and network access device |
| CN111740961A (en) * | 2020-05-26 | 2020-10-02 | 北京华三通信技术有限公司 | Communication method and device |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115426258A (en) * | 2022-08-23 | 2022-12-02 | 迈普通信技术股份有限公司 | Information configuration method, device, switch and readable storage medium |
| CN115426258B (en) * | 2022-08-23 | 2023-10-24 | 迈普通信技术股份有限公司 | Information configuration method, device, switch and readable storage medium |
| CN116032410A (en) * | 2023-01-18 | 2023-04-28 | 杭州迪普科技股份有限公司 | Method, device, equipment and storage medium for data synchronization of switches |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114006910B (en) | 2023-11-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3905598B1 (en) | Message processing method and apparatus, control plane device, and computer storage medium | |
| US9743367B2 (en) | Link layer discovery protocol (LLDP) on multiple nodes of a distributed fabric | |
| EP2725737B1 (en) | Network policy configuration method, management device and network management centre device | |
| EP2343867A1 (en) | System and method of reducing intranet traffic on bottleneck links in a telecommunications network | |
| CN115623018B (en) | Sharing system based on multi-device nodes | |
| CN115941493B (en) | Multi-activity distribution method and device for cloud scene NAT gateway cluster based on multicast | |
| CN106330786A (en) | MAC address synchronization method, apparatus and system | |
| CN109981329A (en) | Determine the method, equipment and system of network equipment connection relationship | |
| CN113839862A (en) | Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors | |
| CN114006910A (en) | Information synchronization method and device | |
| WO2020057445A1 (en) | Communication system, method, and device | |
| CN109951388B (en) | Routing uninterrupted method and main control board | |
| US9356861B2 (en) | Secondary lookup for scaling datapath architecture beyond integrated hardware capacity | |
| US20150281068A1 (en) | Method for determining management domain, network device, and virtual cluster | |
| CN104038566B (en) | A kind of method of virtual swap device address learning, apparatus and system | |
| CN115022180B (en) | Topology management method, device, equipment and medium based on RoCE-SAN | |
| CN109379239B (en) | Method and device for configuring access switch in OpenStack environment | |
| US20220345872A1 (en) | Method and system for controlling id identifier network mobility based on programmable switch | |
| CN109120556B (en) | Method and system for cloud host to access object storage server | |
| CN107819708A (en) | Data processing method, system and equipment based on virtual machine (vm) migration | |
| WO2016191180A1 (en) | Local object instance discovery for metric collection on network elements | |
| CN118869466B (en) | A configuration distribution method, device, equipment and storage medium | |
| CN114430310B (en) | Information processing method and device, broadband access server, and storage medium | |
| WO2023284366A1 (en) | Dbng-cp backup method and apparatus | |
| CN117009135A (en) | User data backup, user data recovery methods and database server equipment |
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 |