CN114006910B - Information synchronization method and device - Google Patents

Information synchronization method and device Download PDF

Info

Publication number
CN114006910B
CN114006910B CN202111246969.3A CN202111246969A CN114006910B CN 114006910 B CN114006910 B CN 114006910B CN 202111246969 A CN202111246969 A CN 202111246969A CN 114006910 B CN114006910 B CN 114006910B
Authority
CN
China
Prior art keywords
attribute information
endpoint device
edge switch
lldp
auxiliary
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
CN202111246969.3A
Other languages
Chinese (zh)
Other versions
CN114006910A (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.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security 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 New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202111246969.3A priority Critical patent/CN114006910B/en
Publication of CN114006910A publication Critical patent/CN114006910A/en
Application granted granted Critical
Publication of CN114006910B publication Critical patent/CN114006910B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • 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 endpoint equipment; adding basic attribute information and auxiliary attribute information of the first endpoint equipment locally; and sending 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 equipment, so that the first core switch locally adds the basic attribute information and the auxiliary attribute information of the first end point equipment, and sends the first BGP message to the second edge switch, and further enables the second edge switch to locally add the basic attribute information and the auxiliary attribute information of the second end point equipment, and sends a second LLDP message to the second end point equipment, and the second LLDP message comprises the basic attribute information and the auxiliary attribute information of the first end point equipment.

Description

Information synchronization method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for information synchronization.
Background
Currently, the traditional storage area network (english: storage Area Network, abbreviated: SAN) includes two main technologies: one is mesh Channel (FC) technology and the other is ethernet technology.
FC technology has long been a major share of SAN due to its advantages in terms of performance, reliability, etc. However, with the popularity of full flash storage and the consequent Non-volatile memory management host system controllers are based on the converged ethernet based RDMA (Non-Volatile Memory express over RDMA over Converged Ethernet, abbreviated as NVMe over RoCE) technology via interface specifications, the situation is changing.
NVMe over RoCE technology means fast nonvolatile storage based on remote memory access running on converged ethernet. The technology combines the latest technology of storage media NVMe and the latest technology of network field remote direct data access (English: remote Direct Memory Access, RDMA for short), and the crystallization of the two technologies creates a highway from high-performance storage to high-performance computing power.
However, in order to store a large amount of data, a storage system often needs to manage a huge number of hosts, and there are cases where new hosts sequentially 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 quick control of an access host, and the technology of integrating the calculation and the storage network is realized. By rapidly controlling the access host, a management module in the intelligent lossless network can acquire the newly accessed host at the first time, intelligently adjust the relevant configuration of the intelligent lossless network, and notify the host information to the storage system, so that the storage system can be assisted in managing the host.
Current NVMe over RoCE and lossless network solutions are increasingly advantageous in data centers, but also face the following problems: the storage equipment in the storage system is added and withdrawn, and the host is added and withdrawn, so that the configuration and intervention of management personnel are required, the usability is poor, and the work tasks of the management personnel are increased.
Disclosure of Invention
In view of this, the application provides a method and a device for synchronizing information, which are used for solving the problems that in the existing scheme, the configuration and the intervention of management personnel are required for the joining and the exiting of storage equipment and the joining and the exiting of a host computer in a storage system, the usability is poor, and the work tasks of the management personnel are increased.
In a first aspect, the present application provides a method for information synchronization, where the method is applied to a first edge switch, where 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 terminal device, wherein the first LLDP message comprises basic attribute information and auxiliary attribute information of the first terminal device;
adding the basic attribute information and the accessory attribute information of the first endpoint equipment locally;
and sending 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 locally adds the basic attribute information and the auxiliary attribute information of the first end point 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 auxiliary attribute information of the second end point device, and sends a second LLDP message to the second end point device, and the second LLDP message comprises the basic attribute information and the auxiliary attribute information of the first end point device.
In a second aspect, the present application provides an apparatus for information synchronization, where the apparatus is applied to a first edge switch, where 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, where 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 auxiliary attribute information of the first endpoint device;
an adding unit, configured to locally add the basic attribute information and the accessory attribute information of the first endpoint device;
a sending unit, configured to send a first BGP packet to the first core switch, where the first BGP packet includes basic attribute information and auxiliary attribute information of the first endpoint device, so that the first core switch adds the basic attribute information and the auxiliary attribute information of the first endpoint device locally, and sends the first BGP packet to the second edge switch, so that the second edge switch adds the basic attribute information and the auxiliary attribute information of the second endpoint device locally, and sends a second LLDP packet to the second endpoint device, where the second LLDP packet includes the basic attribute information and the auxiliary attribute information of the first endpoint device.
In a third aspect, the application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor to cause the processor to perform the method provided by the first aspect of the application.
Therefore, by applying the method and the device for information synchronization provided by the application, the first edge switch receives the first LLDP message sent by the first endpoint device, and the first LLDP message comprises the basic attribute information and the accessory attribute information of the first endpoint device; the first edge switch adds the basic attribute information and the accessory attribute information of the first end point equipment locally; 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 locally adds the basic attribute information and the auxiliary attribute information of the first end point device, and sends the first BGP message to the second edge switch, and further the second edge switch locally adds the basic attribute information and the auxiliary attribute information of the second end point device, and sends a second LLDP message to the second end point device, and 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 endpoint device exchange the information of the endpoint device through the LLDP protocol, and the edge switch and the core switch transfer and exchange the information of the endpoint device through the BGP protocol, so that the information interaction in the whole network is completed, the endpoint device in the NVMe over RoCEv2 network is better managed and controlled, and the problems that in the existing scheme, the configuration and the intervention of management personnel are required for the joining and the exiting of storage devices in a storage system and the joining and the exiting of a host are poor in usability, and the work task of the management personnel is increased are solved.
Drawings
FIG. 1 is a flowchart of a method for synchronizing information according to an embodiment of the present application;
fig. 2 is a networking schematic diagram of an NVMe over RoCE network according to an embodiment of the present application;
FIG. 3 is a diagram illustrating a device for information synchronization according to an embodiment of the present application;
fig. 4 is a hardware structure of a network device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to 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 aspects of the application as detailed in the accompanying 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 specification 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 will also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the corresponding listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by 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 application. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
The method for synchronizing information provided by the embodiment of the application is described in detail below. Referring to fig. 1, fig. 1 is a flowchart of a method for synchronizing information 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.
Step 110, periodically receiving a first LLDP packet sent by the first endpoint device, where the first LLDP packet includes basic attribute information and auxiliary attribute information of the first endpoint device.
Specifically, in the NVMe over RoCE network, three roles are mainly included: an initiator (also referred to as a host), a switch, and a target (also referred to as a storage endpoint). The initiator and target may also be referred to as endpoint devices.
The host and the storage endpoint transmit own information in the network; the exchanger is used as a network core to realize the IP service domain management function and the information synchronization of the endpoint equipment for transmitting joining and exiting; the storage endpoint provides high performance storage services.
The switch comprises a plurality of edge switches and a plurality of core switches. Each edge switch is connected with a host and a storage endpoint. Each core switch is fully connected with each edge switch respectively.
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, the network includes two core switches, two edge switches, and a plurality of endpoint devices. The end point device configures and enables a link layer discovery protocol (English: link Layer Discovery Protocol, abbreviated: LLDP) with the edge switch, and configures and enables a border gateway protocol (Border Gateway Protocol, abbreviated: BGP) with the core switch.
When newly added endpoint equipment exists in the network, the newly added endpoint equipment automatically establishes LLDP neighbors with the accessed edge switch; when a newly added edge switch exists in the network, the newly added edge switch automatically establishes BGP neighbors with the core switch.
When the first end point device starts and accesses the network, the first end point device establishes an LLDP neighbor with the accessed first edge switch, and acquires own basic attribute information and accessory attribute information. The first endpoint device generates a first LLDP message that includes base attribute information and auxiliary attribute information of the first endpoint device.
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 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 an LLDP protocol. The first edge switch receives the first LLDP message and obtains basic attribute information and accessory attribute information of the first endpoint device from the first LLDP message.
It should be noted that, after the first endpoint device sends the first LLDP packet, the first endpoint device may send the first LLDP packet 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 message to the first edge switch according to the foregoing sending manner. It can be appreciated that the first LLDP message includes updated basic attribute information and auxiliary attribute information of the first endpoint device.
If the first endpoint device fails or the current network fails, the first endpoint device does not need to send the first LLDP message to the first edge switch. It can be understood that, after the first endpoint device recovers from the failure or the current network recovers from the failure, the first endpoint device sends the first LLDP message to the first edge switch again.
If the port of the first end point device accessed to 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 the first LLDP message to the corresponding member port in the first interface.
And step 120, adding the basic attribute information and the accessory attribute information of the first end point device locally.
Specifically, according to the description of step 110, the first edge switch obtains the basic attribute information and the auxiliary attribute information of the first endpoint device from the first LLDP packet, and adds the basic attribute information and the auxiliary attribute information of the first endpoint device locally.
That is, the first edge switch locally stores the base attribute information and the attached attribute information of the first endpoint device. It will be appreciated that the first edge switch also stores, during the storing, 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.
Step 130, a first BGP message is sent to the first core switch, where the first BGP message includes basic attribute information and auxiliary attribute information of the first endpoint device, so that the first core switch adds the basic attribute information and the auxiliary 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 auxiliary 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 auxiliary attribute information of the first endpoint device.
Specifically, according to the description of step 120, after the first edge switch locally adds the basic attribute information and the auxiliary attribute information of the first endpoint device, the first edge switch generates a first BGP message, where the first BGP message includes the basic attribute information and the auxiliary attribute information of the first endpoint device.
The first edge switch comprises an LLDP module and a BGP module, wherein the LLDP module obtains and locally adds the basic attribute information and the auxiliary attribute information of the first end point device, and then transmits the basic attribute information and the auxiliary attribute information of the first end point device to the BGP module. The BGP module extends an address family within the BGP protocol, where the address family is configured to carry basic attribute information and auxiliary attribute information of the first endpoint device. The BGP module generates a first BGP message.
The first edge switch automatically establishes BGP neighbors with the first core switch when accessing the network. 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 the basic attribute information and the accessory attribute information of the first end point device from the first BGP message.
The first core switch adds the basic attribute information and the accessory attribute information of the first end point 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 establishes BGP neighbors with the first core switch in addition to the first edge switch.
And after the second edge switch receives the first BGP message, basic attribute information and accessory attribute information of the first end point device are acquired from the first BGP message. The second edge switch adds the basic attribute information and the auxiliary attribute information of the first endpoint device locally, and meanwhile, the second edge switch generates a second LLDP message, wherein the second LLDP message comprises the basic attribute information and the auxiliary attribute information of the first endpoint device.
The second edge switch also includes an LLDP module and a BGP module, where the BGP module obtains and locally adds the basic attribute information and the accessory attribute information of the first endpoint device, and then transfers the basic attribute information and the accessory attribute information of the first endpoint device to the LLDP module. The LLDP module generates a second LLDP message.
The second edge switch sends a second LLDP message to the second endpoint device. The second endpoint device is an endpoint device that accesses in addition to the first endpoint device and establishes LLDP neighbors with the second edge switch.
And after the second endpoint device receives the second LLDP message, basic attribute information and auxiliary attribute information of the first endpoint device are acquired from the second LLDP message. The second endpoint device locally adds the base attribute information and the auxiliary attribute information of the first endpoint device.
The first core switch, the second edge switch and the second endpoint device also store the identification of the first endpoint device in the process of locally adding the basic attribute information and the accessory attribute information of the first endpoint device.
So far, the basic attribute information and the auxiliary attribute information of the first end point device are synchronized to all devices in the whole network, and all the devices in the whole network determine that the first end point device has been added into the NVMe over RoCE network.
Further, in fig. 2, a primary-standby relationship is formed between the first core switch and the second core switch, where the first core switch acts as a primary core switch and as a reflector, and reflects the received basic attribute information and the received accessory 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 the main core switch and serves as a reflector.
Therefore, by applying the information synchronization method provided by the application, the first edge switch receives the first LLDP message sent by the first endpoint device, and the first LLDP message comprises the basic attribute information and the accessory attribute information of the first endpoint device; the first edge switch adds the basic attribute information and the accessory attribute information of the first end point equipment locally; 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 locally adds the basic attribute information and the auxiliary attribute information of the first end point device, and sends the first BGP message to the second edge switch, and further the second edge switch locally adds the basic attribute information and the auxiliary attribute information of the second end point device, and sends a second LLDP message to the second end point device, and 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 endpoint device exchange the information of the endpoint device through the LLDP protocol, and the edge switch and the core switch transfer and exchange the information of the endpoint device through the BGP protocol, so that the information interaction in the whole network is completed, the endpoint device in the NVMe over RoCEv2 network is better managed and controlled, and the problems that in the existing scheme, the configuration and the intervention of management personnel are required for the joining and the exiting of storage devices in a storage system and the joining and the exiting of a host are poor in usability, and the work task of the management personnel is increased are solved.
Optionally, in the embodiment of the present application, the method further includes a process that the first edge switch sends the second BGP message when the first edge switch does not receive the first LLDP message within a preset time.
Specifically, if the first LLDP packet sent by the first endpoint device is not received within a preset time (for example, within 45 seconds in one aging period), the first edge switch locally deletes the basic attribute information and the auxiliary attribute information of the first endpoint device.
Meanwhile, the first edge switch generates a second BGP message, wherein the second BGP message comprises a deletion mark and an identifier of the first end point device. And the first edge switch sends a second BGP message to the first core switch through a BGP protocol.
The first core switch receives the second BGP message and obtains the delete marker and the identity of the first endpoint device from the second BGP message. According to the identification 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 the second edge switch receives the second BGP message, acquiring the deletion mark and the identification of the first end point device from the second BGP message. And the second edge switch locally acquires and deletes the basic attribute information and the auxiliary attribute information of the first end point device according to the identification of the first end point device.
Meanwhile, the second edge switch generates a third LLDP message, where the third LLDP message includes a delete flag and an identification of the first endpoint device. The second edge switch sends a third LLDP message to the second endpoint device.
And the second endpoint device acquires the deletion mark and the identification of the first endpoint device from the third LLDP message after receiving the third LLDP message. And the second endpoint device acquires and deletes the basic attribute information and the auxiliary attribute information of the first endpoint device locally according to the identification of the first endpoint device.
So far, each device in the whole network has deleted the basic attribute information and the accessory attribute information of the first end point device locally, and each device determines that the first end point device has left the NVMe over RoCE network.
It will be appreciated that in embodiments of the present application, the second edge switch may also act as the first edge switch and perform the steps 110-130, optional steps described above. Similarly, the first edge switch may also be used as a second edge switch, and perform the steps, and optional steps, performed by the second edge switch in steps 110-130.
Since the processes performed after the role switching of the first edge switch and the second edge switch 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 block diagram of an apparatus for information synchronization according to an embodiment of the present application. 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 310, configured to receive a first LLDP packet sent by the first endpoint device, where the first LLDP packet includes basic attribute information and auxiliary attribute information of the first endpoint device;
a storage unit 320, configured to locally add the basic attribute information and the auxiliary attribute information of the first endpoint device;
the sending unit 330 is configured to send a first BGP packet to the first core switch, where the first BGP packet includes basic attribute information and auxiliary attribute information of the first endpoint device, so that the first core switch adds the basic attribute information and the auxiliary attribute information of the first endpoint device locally, and sends the first BGP packet to the second edge switch, so that the second edge switch adds the basic attribute information and the auxiliary attribute information of the second endpoint device locally, and sends a second LLDP packet to the second endpoint device, where the second LLDP packet includes the basic attribute information and the auxiliary 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 auxiliary 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 packet to the first core switch, where the second BGP packet includes a delete flag and an identifier of the first endpoint device, so that the first core switch deletes the basic attribute information and the accessory attribute information of the first endpoint device locally, and sends the second BGP packet to the second edge switch, so that the second edge switch deletes the basic attribute information and the accessory attribute information of the first endpoint device locally, and sends a third LLDP packet to the second endpoint device, where the third LLDP packet includes the delete 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 the 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 specifically a host or a storage endpoint.
Therefore, by applying the information synchronization device provided by the application, the first edge switch receives the first LLDP message sent by the first endpoint device, and the first LLDP message comprises the basic attribute information and the accessory attribute information of the first endpoint device; the first edge switch adds the basic attribute information and the accessory attribute information of the first end point equipment locally; 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 locally adds the basic attribute information and the auxiliary attribute information of the first end point device, and sends the first BGP message to the second edge switch, and further the second edge switch locally adds the basic attribute information and the auxiliary attribute information of the second end point device, and sends a second LLDP message to the second end point device, and 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 endpoint device exchange the information of the endpoint device through the LLDP protocol, and the edge switch and the core switch transfer and exchange the information of the endpoint device through the BGP protocol, so that the information interaction in the whole network is completed, the endpoint device in the NVMe over RoCEv2 network is better managed and controlled, and the problems that in the existing scheme, the configuration and the intervention of management personnel are required for the joining and the exiting of storage devices in a storage system and the joining and the exiting of a host are poor in usability, and the work task of the management personnel is increased are solved.
Based on the same inventive concept, the embodiment of the present application also 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 synchronizing information provided by the embodiment of the present application. The device for synchronizing information shown in fig. 3 may 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 (in english: random Access Memory, abbreviated as RAM) or a nonvolatile Memory (in english: non-volatile Memory, abbreviated as NVM), such as at least one magnetic disk Memory. Optionally, the computer readable storage medium 430 may also be at least one storage device located remotely from the aforementioned processor 410.
The processor 410 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (English: digital Signal Processor; DSP; for short), an application specific integrated circuit (English: application Specific Integrated Circuit; ASIC; for short), a Field programmable gate array (English: field-Programmable Gate Array; FPGA; for short), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In an embodiment of the present application, processor 410 is enabled by reading machine-executable instructions stored in machine-readable storage medium 430, which cause processor 410 itself and call transceiver 420 to perform the method of information synchronization described in the previous embodiments of the present application.
Additionally, embodiments of the present application provide a machine-readable storage medium 430, the machine-readable storage medium 430 storing machine-executable instructions that, when invoked and executed by the processor 410, cause the processor 410 itself and the invoking transceiver 420 to perform the data batching method described in the previous embodiments of the present application.
The implementation process of the functions and roles of each unit in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present application. Those of ordinary skill in the art will understand and implement the present application without undue burden.
For the information synchronization apparatus and machine-readable storage medium embodiments, since the method content involved is substantially similar to the method embodiments described above, the description is relatively simple, and reference will only be made to the description of some of the method embodiments for relevant points.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather to enable any modification, equivalent replacement, improvement or the like to be made within the spirit and principles of the application.

Claims (10)

1. A method of information synchronization, the method being applied to a first edge switch, the first edge switch being within 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 method comprising:
receiving a first LLDP message sent by the first terminal device, wherein the first LLDP message comprises basic attribute information and auxiliary attribute information of the first terminal device;
adding the basic attribute information and the accessory attribute information of the first endpoint equipment locally;
and sending 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 locally adds the basic attribute information and the auxiliary attribute information of the first end point 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 auxiliary attribute information of the second end point device, and sends a second LLDP message to the second end point device, and the second LLDP message comprises the basic attribute information and the auxiliary attribute information of the first end point device.
2. The method according to claim 1, wherein the method further comprises:
if the first LLDP message sent by the first terminal equipment is not received within the preset time, deleting the basic attribute information and the auxiliary attribute information of the first terminal equipment locally;
and sending a second BGP message to the first core switch, wherein the second BGP message comprises a deletion mark and an identifier of the first end point device, so that the first core switch locally deletes the basic attribute information and the auxiliary attribute information of the first end point 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 auxiliary attribute information of the first end point device, and sends a third LLDP message to the second end point device, and the third LLDP message comprises the deletion mark and the identifier of the first end point device.
3. The method of claim 1, wherein the first edge switch comprises a first interface, the first endpoint device comprises a second interface, and the first interface and the second interface belong to the same aggregation group;
the receiving the first LLDP message sent by the first endpoint device specifically includes:
each member port in the first interface receives the first LLDP message sent by the corresponding member port in the second interface.
4. A method according to any of claims 1-3, wherein the base 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 embodied as 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 comprising 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 auxiliary attribute information of the first endpoint device;
a storage unit, configured to locally add basic attribute information and auxiliary attribute information of the first endpoint device;
a sending unit, configured to send a first BGP packet to the first core switch, where the first BGP packet includes basic attribute information and auxiliary attribute information of the first endpoint device, so that the first core switch adds the basic attribute information and the auxiliary attribute information of the first endpoint device locally, and sends the first BGP packet to the second edge switch, so that the second edge switch adds the basic attribute information and the auxiliary attribute information of the second endpoint device locally, and sends a second LLDP packet to the second endpoint device, where the second LLDP packet includes the basic attribute information and the auxiliary attribute information of the first endpoint device.
7. The apparatus of claim 6, wherein the apparatus further comprises:
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 packet sent by the first endpoint device is not received within a preset time;
the sending unit is further configured to send a second BGP packet to the first core switch, where the second BGP packet includes a delete flag and an identifier of the first endpoint device, so that the first core switch deletes, locally, basic attribute information and auxiliary attribute information of the first endpoint device, and sends the second BGP packet to the second edge switch, and further, the second edge switch deletes, locally, basic attribute information and auxiliary attribute information of the first endpoint device, and sends, to the second endpoint device, a third LLDP packet, where the third LLDP packet includes the delete flag and the identifier of the first endpoint device.
8. The apparatus of claim 7, wherein the first edge switch comprises a first interface, the first endpoint device comprises a second interface, and the first interface and the second interface belong to the 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 the corresponding member port in the second interface.
9. The apparatus according to any of claims 6-8, wherein the base 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 embodied as a host or a storage endpoint.
CN202111246969.3A 2021-10-26 2021-10-26 Information synchronization method and device Active CN114006910B (en)

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 CN114006910A (en) 2022-02-01
CN114006910B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426258B (en) * 2022-08-23 2023-10-24 迈普通信技术股份有限公司 Information configuration method, device, switch and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
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
CN111740961A (en) * 2020-05-26 2020-10-02 北京华三通信技术有限公司 Communication method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8737395B2 (en) * 2012-01-23 2014-05-27 Adva Optical Networking Se Method for accessing a network and network access device

Patent Citations (2)

* Cited by examiner, † Cited by third party
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
CN111740961A (en) * 2020-05-26 2020-10-02 北京华三通信技术有限公司 Communication method and device

Also Published As

Publication number Publication date
CN114006910A (en) 2022-02-01

Similar Documents

Publication Publication Date Title
US8127003B2 (en) Method of operating a network subnet manager
CN113596191B (en) Data processing method, network element equipment and readable storage medium
CN106789526B (en) method and device for connecting multiple system networks
US10924518B2 (en) UPF programming over enhanced N9 interface
EP3905598A1 (en) Message processing method and apparatus, control plane device, and computer storage medium
US7366945B2 (en) Method of setting backup of home location register
WO2023005747A1 (en) Data transmission methods and apparatuses, and distributed storage system
CN110275680B (en) Double-control double-active storage system
CN114885443B (en) Multi-mode network control system and method supporting mobile access of terminal
US20130132499A1 (en) Method and system for auto-configuartion, and network node
CN114006910B (en) Information synchronization method and device
US11533604B2 (en) Method and system for controlling ID identifier network mobility based on programmable switch
US10193748B2 (en) Enabling configuration in networks
CN109951388B (en) Routing uninterrupted method and main control board
RU2542933C1 (en) Method (versions), apparatus (versions) and system for controlling access
US11973824B2 (en) Method for data transmission of audio and video in end-to-end system
US10798195B2 (en) Fast roaming with shared services in enterprise fabric based networks
WO2022116767A1 (en) Data transmission method, user equipment, and storage medium
WO2022042393A1 (en) Configuration error information transmission method and device
KR101740456B1 (en) Fowarding scheme of packet in software defined network based internet of tings
CN112152942B (en) ZTP backup method and equipment
WO2016177135A1 (en) Resource management method, device, and control terminal
CN108418709B (en) Port aggregation method and device
US20200341968A1 (en) Differential Update of Local Cache from Central Database
CN115623018B (en) Sharing system based on multiple equipment nodes

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