CN116032858A - Information synchronization method, device, iNOF switch and readable storage medium - Google Patents

Information synchronization method, device, iNOF switch and readable storage medium Download PDF

Info

Publication number
CN116032858A
CN116032858A CN202211739249.5A CN202211739249A CN116032858A CN 116032858 A CN116032858 A CN 116032858A CN 202211739249 A CN202211739249 A CN 202211739249A CN 116032858 A CN116032858 A CN 116032858A
Authority
CN
China
Prior art keywords
host
online
notification message
state
target host
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.)
Pending
Application number
CN202211739249.5A
Other languages
Chinese (zh)
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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN202211739249.5A priority Critical patent/CN116032858A/en
Publication of CN116032858A publication Critical patent/CN116032858A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the field of data communication, and provides an information synchronization method, an information synchronization device, an iNOF switch and a readable storage medium, wherein the information synchronization method is applied to the iNOF switch and comprises the following steps: if the state of the target host changes, acquiring the IP address of each online host; generating a plurality of different first state notification messages according to the number of access ports accessed with an online host in the iNOF switch; sending a first state notification message to the target host through the access port, wherein the first state notification message carries the IP addresses of all online hosts accessed to the same access port; and receiving a first confirmation message responding to the first state notification message, wherein the first confirmation message carries at least one IP address of the online host which successfully updates the state information of the target host. By sending a state notification message to an access port, the message interaction amount is reduced, and the synchronous data is reduced by multiplexing the information in the state notification message and the confirmation message.

Description

Information synchronization method, device, iNOF switch and readable storage medium
Technical Field
The present invention relates to the field of data communications, and in particular, to an information synchronization method, an apparatus, an iNOF switch, and a readable storage medium.
Background
The iNOF (Intelligent Lossless NVMe over Fabric, intelligent lossless storage network) is a common technology of integration of the Ethernet and the storage network, and is particularly used by being matched with the LLDP (Link Layer Discovery Protocol ), so that all devices in the iNOF can automatically sense the state change of each device in the first time, the corresponding devices can flexibly and intelligently adjust related configuration, and finally, the non-packet loss and high-throughput transmission of storage flow in the Ethernet is realized.
The irofnetwork (hereinafter referred to as network) includes irofhost and irofswitch, hereinafter referred to as host and switch, please refer to the prior art irofnetwork architecture schematic diagram of fig. 1, the host includes a disk device and a server, the host is accessed into the network through an access port provided by the irofswitch, and different hosts can be distinguished by IP addresses. The host informs the switch to which the host accesses to be on line by sending an LLDP message, and the LLDP notification message adopts a passisid and a PortID to uniquely identify a host. In the iNOF related standard, chassis ID typically uses the MAC address of the host access port (e.g., 0800-271a-494 f). When the switch senses that the network state of the host changes, the switch sends a state notification to other online hosts accessing the switch, and the hosts respond to an Acknowledgement (ACK) message after receiving the state notification.
At present, when a large number of hosts are connected to an iNOF switch, when the state of any one of the hosts changes, the switch needs to send state notification messages of the hosts with the changed state to other hosts connected to the switch one by one and receive acknowledgement messages from other online hosts, so that the sending of the large number of state notification messages and the receiving of the large number of acknowledgement messages can be instantaneously generated, that is, a large number of messages are instantaneously generated on a line connected between the iNOF switch and the host, which occupies line bandwidth and can generate impact to both the host and the iNOF switch.
Disclosure of Invention
Aiming at the problems existing in the prior art, the invention provides an information synchronization method, an information synchronization device, an iNOF switch and a readable storage medium which can be used in data communication or other related fields, so as to reduce the number of message interactions and improve the information synchronization efficiency.
In a first aspect, an embodiment of the present invention provides an information synchronization method, applied to an iNOF switch, including:
if the state of the target host changes, the IP address of each online host is acquired;
generating different first state notification messages corresponding to the number of access ports of the online host according to the number of access ports of the current iNOF switch;
the first state notification message is sent to the target host through the corresponding access port respectively, wherein the first state notification message carries the IP address of each online host accessed to the same access port, and the first state notification message is used for synchronizing the state information of the target host to each online host accessed to the corresponding access port;
and receiving a first confirmation message responding to the first state notification message, wherein the first confirmation message carries at least one IP address of the online host which successfully updates the state information of the target host.
In one embodiment, the generating the first status notification message corresponding to the number of differences includes:
traversing each access port currently accessed with the online host, and writing the IP addresses of all the online hosts accessed to the same access port into the same first state notification message, thereby generating different first state notification messages corresponding to the number.
In one embodiment, the state change of the target host includes a down line and an up line, and further includes:
when the state of the target host changes to be online, acquiring an IP address of the target host and generating a second state notification message;
sending the second state notification message to the target host, wherein the second state notification message carries an IP address of the target host, and the second state notification message is used for synchronizing state information of each online host to the target host;
and receiving a second confirmation message responding to the second state notification message to confirm that the target host successfully updates the state information of each online host, wherein the second confirmation message carries the IP address of each online host and the IP address of the target host.
In one embodiment, the generating a second status notification message includes:
and writing all the IP addresses of the online hosts and the auxiliary information of the online hosts into the second state notification message, and setting the destination MAC address of the second state notification message as the MAC address of the target host.
In a second aspect, an embodiment of the present invention provides an information synchronization apparatus, which is applied to an irofswitch, including:
the acquisition module is used for acquiring the IP addresses of all the online hosts if the state of the target host changes;
the generation module is used for generating different first state notification messages corresponding to the number of access ports of the online host according to the number of access ports of the current iNOF switch;
the sending module is used for sending the first state notification message to the target host through the corresponding access port respectively, wherein the first state notification message carries the IP address of each online host accessed to the same access port, and the first state notification message is used for synchronizing the state information of the target host to each online host accessed to the corresponding access port;
and the receiving module is used for receiving a first confirmation message responding to the first state notification message, wherein the first confirmation message carries at least one IP address of the online host which is used for successfully updating the state information of the target host.
In one embodiment, the generating module is further configured to traverse each access port currently accessed by the online hosts, and write the IP addresses of all online hosts accessed by the same access port into the same first status notification message, so as to generate different first status notification messages corresponding to the number.
In one embodiment, the state change of the target host includes down and up; the acquisition module is further used for acquiring the IP address of the target host and generating a second state notification message when the state of the target host is changed to be online;
the sending module is further configured to send the second status notification packet to the target host, where the second status notification packet carries an IP address of the target host, and the second status notification packet is used to synchronize status information of each online host to the target host;
the receiving module is further configured to receive a second confirmation message in response to the second status notification message, so as to confirm that the target host successfully updates the status information of each online host, where the second confirmation message carries the IP address of each online host and the IP address of the target host.
In one embodiment, the obtaining module is further configured to write all the IP addresses of the online hosts and the auxiliary information of the online hosts into the second status notification packet, and set a destination MAC address of the second status notification packet to be a MAC address of the target host.
In a third aspect, an embodiment of the present invention provides an irofswitch, including a memory and a processor, where the memory stores a computer program, and the computer program executes the information synchronization method according to the first aspect when running on the processor.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement the information synchronization method according to the first aspect.
The invention provides an information synchronization method, a device, a switch and a readable storage medium, which are applied to an iNOF switch, wherein the method comprises the following steps: if the state of the target host changes, the IP address of each online host is acquired; generating different first state notification messages consistent with the corresponding number according to the number of access ports accessed with the online host in the current iNOF switch; the first state notification message is sent to the target host through the corresponding access port respectively, wherein the first state notification message carries the IP address of each online host accessed to the same access port, and the first state notification message is used for synchronizing the state information of the target host to each online host accessed to the corresponding access port; and receiving a first confirmation message responding to the first state notification message, wherein the first confirmation message carries at least one IP address of the online host which successfully updates the state information of the target host. Compared with the prior art, the embodiment of the invention reduces the number of message sending by sending only one state notification message to one access port and carrying the IP address of each online host accessed to the access port in the state notification message, and realizes the reduction of synchronous data by multiplexing the information in the state notification message and the confirmation message.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are required for the embodiments will be briefly described, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope of the present invention. Like elements are numbered alike in the various figures.
FIG. 1 is a schematic diagram of a prior art iNOF network architecture;
fig. 2 is a schematic flow chart of an information synchronization method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another information synchronization method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an information synchronization device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments.
The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present invention.
The terms "comprises," "comprising," "including," or any other variation thereof, are intended to cover a specific feature, number, step, operation, element, component, or combination of the foregoing, which may be used in various embodiments of the present invention, and are not intended to first exclude the presence of or increase the likelihood of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the invention belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is the same as the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in connection with the various embodiments of the invention.
In the iNOF (Intelligent Lossless NVMe over Fabric, intelligent lossless storage network) with a large number of hosts, once the state of the host changes or a new host is added into the iNOF network, a large amount of information synchronization is performed between the host and the switch, so that a large amount of messages (iNOF state notification messages and iNOF confirmation messages) can be generated between the host and the switch in a short time.
It should be noted that, the message formats of the existing irofstate notification message and irofconfirmation message are as follows:
Figure BDA0004032280220000081
the format of the TLV message in the message format is as follows:
TLV type (1 byte) TLV length (2 bytes) TLV data (variable length)
A status notification message may contain a plurality of status notifications, one corresponding to notifying another host of a status change of one host, and information of one status notification is carried by one TLV message in the status notification message, and a data portion of one TLV message includes the following 6 sub-TLVs (for example, IPv 4), where a data portion of the 6 th sub-TLV is of a length longer, so that a total length of TLV messages of one iNOF status notification message is 48-303 bytes.
Figure BDA0004032280220000082
/>
Figure BDA0004032280220000091
Also, an iNOF acknowledgment message may contain a plurality of acknowledgements, one corresponding to an acknowledgement that one host receives notification of a state change of another host, and the information of one acknowledgement message is carried by one TLV message in the acknowledgement message, and the data portion of one TLV message contains the following 3 sub-TLVs (for example, IPv 4), with a total length of 24 bytes.
Figure BDA0004032280220000092
/>
Figure BDA0004032280220000101
Example 1
Referring to fig. 2, an embodiment of the present invention provides an information synchronization method applied to an irofswitch, which specifically includes the following steps:
step S110: if the state of the target host changes, the IP address of each online host is acquired.
It can be understood that the target host and the online host are both in the irofnetwork, the target host and the online host comprise disk devices and servers, the target host is a host with a finger state change, wherein the state change of the target host comprises offline and online, and the state change of the target host can be changed from online to offline, namely offline; the target host may also be newly added to the iNOF network, i.e., online. When a state of a host changes, the host can be considered a target host. Each on-line host has a unique IP address and multiple on-line hosts may be connected to the same access port of the iNOF switch.
Step S120: and generating different first state notification messages corresponding to the number according to the number of access ports accessed with the online host in the current iNOF switch.
Illustratively, three different access ports in the irofe switch are port1, port2 and port3, respectively, where access port1 may be connected to 1 on-line host, access port2 may be connected to 2 on-line hosts, and access port3 may be connected to 3 on-line hosts, and no matter how many on-line hosts the port is connected to, only one first state notification message needs to be sent to one port, so that the amount of message interaction is reduced to a certain extent. If the access ports of the current access online hosts are different, a corresponding first state notification message needs to be sent to the different access ports, so according to the number of the access ports of the current iNOF switch, which are accessed by the online hosts, different first state notification messages corresponding to the number are generated, for example, all the access ports port1, port2 and port3 in the iNOF switch are connected with the online hosts, then one first state notification message needs to be sent to the three access ports port1, port2 and port3 respectively (note that the three first state notification messages sent at the moment are different because of different IP addresses of the carried online hosts), and if the iNOF switch still has an access port4, but the current access port4 does not have an access of the online hosts, the corresponding first state notification message does not need to be sent to the access port 4.
Further, in an embodiment, the generating the first status notification message corresponding to the number in the step S120 includes:
traversing each access port currently accessed with the online host, and writing the IP addresses of all the online hosts accessed to the same access port into the same first state notification message, thereby generating different first state notification messages corresponding to the number.
Specifically, by writing the IP addresses of all online hosts accessing to the same access port into the same first state notification message, each first state notification message carries the IP addresses of all online hosts accessing to the corresponding access port, so that the number of generated first state notification messages is consistent with the number of access ports currently accessing to the online hosts, for example, all access ports port1, port2 and port3 in the iNOF switch are connected with online hosts, but access port4 is not accessed to an online host, so that the number of access ports currently accessing to the online host is 3, then the number of generated first state notification messages is also 3 correspondingly, and the IP addresses of the online hosts carried in the 3 first state notification messages are different. Because the first state notification message is a two-layer message, after the first state notification message is sent out through the access port, all online hosts accessed through the access port can receive the first state notification message, so that batch synchronization of information is realized.
Step S130: and sending the first state notification message to the target host through the corresponding access port, wherein the first state notification message carries the IP address of each online host accessed to the same access port, and the first state notification message is used for synchronizing the state information of the target host to each online host corresponding to the access port.
Specifically, the first status notification message includes an IP address of the target host, a message sequence number, a status after change, a cause of the status change, and auxiliary information of the target host. For example, if the target host changes from an offline state to an online state, the state of the changed target host is online, the reason for the state change is 0, the auxiliary information of the target host includes, but is not limited to, a protocol role, a protocol type, a protocol version, and the like, the message sequence number refers to the number of the first state notification message, and the message sequence number is used to indicate that a certain online host is specifically notified of the state change of a certain target host for the first time, so as to distinguish the number of state notifications, so in this embodiment, the first state notification message may distinguish the state notifications by carrying the message sequence number, and in addition, the first state notification message in this embodiment may also only carry relevant state data of the target host.
The iNOF switch informs the state change of the target host to the online host by sending the first state notification message, so that the state information of the target host is synchronized to the online host, and the synchronous data volume in the first state notification message is reduced.
Further, one status notification message may include a plurality of status notifications, where one status notification corresponds to notifying a status change of one host to another host, and a TLV message in the status notification message carries information of the status notification, where the TLV refers to a structure body composed of a Type of data, a Length of the data, and a Value of the data, and almost any data Type may be described.
Specifically, the first state notification message carries IP addresses of a plurality of online hosts, which can be specifically implemented by the following manner: multiplexing the current sub-TLV type, dynamically determining the value of the sub-TLV length as a multiple of 4 or 16 according to the number of the carried on-line hosts, wherein the content of the sub-TLV data is a plurality of IPv4 addresses or a plurality of IPv6 addresses, and the number of the carried on-line hosts is determined by the on-line hosts according to the value of the sub-TLV length.
The second way is: the sub-TLV type is newly defined, so that the sub-TLV type is distinguished from a single online host, the value of the sub-TLV length is dynamically determined to be a multiple of 4 or 16 according to the number of the carried online hosts, and the content of sub-TLV data is a plurality of IPv4 addresses or a plurality of IPv6 addresses.
Third mode: the present embodiment also contemplates that if the IP address of the online host is reasonably planned, very regular, such as: 10.0.0.1-10.0.0.255, then the sub-TLV type may be redefined, the value of the sub-TLV length fills the number of IP addresses or the mask length, and the contents of the sub-TLV data fill the starting IP address or IP prefix.
Specifically, a first status notification packet carries auxiliary information of multiple target hosts, and specifically may adopt the following several modes, where the first mode is: multiplexing the current sub-TLV type, carrying a plurality of sub-TLVs in a state notification, wherein the plurality of sub-TLVs are all encapsulated at the tail end of a TLV message data part, and determining the number of auxiliary information of the target host by the online host according to the number of the target hosts determined by the sub-TLVs of the target host.
The second way is: the sub-TLV type is newly defined so as to be distinguished from the single target host auxiliary information, a plurality of sub-TLVs are carried in a first state notification message, the plurality of sub-TLVs are all encapsulated at the tail end of a TLV message data part, and the on-line host determines the number of the target hosts according to the sub-TLVs of the target host, so that the number of the target host auxiliary information is determined.
Third mode: the sub-TLV type is newly defined, but the sub-TLV is re-nested in the sub-TLV to carry the attached information of multiple target hosts.
When the state change of one target host needs to be announced to n online hosts, the data part of the TLV message in the first state notification message is composed as follows:
Figure BDA0004032280220000141
Figure BDA0004032280220000151
therefore, by the information synchronization method in this embodiment, each time a target host is added to the irofnetwork, only 4 bytes (the data portion of the 6 th sub TLV in the TLV message in the irofstate notification message) of the sub TLV data carried in the first state notification message need to be added, so that bandwidth occupation is greatly reduced.
Step S140: and receiving a first confirmation message responding to the first state notification message, wherein the first confirmation message carries at least one IP address of the online host which successfully updates the state information of the target host.
Only the iNOF switch that sent the first status notification message receives and processes the first acknowledgement message, and no other switches in the same lan need to process. Typically in data communications, an acknowledgement message is used to indicate that the receiving party has acknowledged receipt of the transmitted data. Corresponding to the first state notification message, the data part of the TLV message in the confirmation message from the corresponding online host comprises the following components:
Figure BDA0004032280220000152
Figure BDA0004032280220000161
it can be known that, every time an online host to be advertised is added to the irofnetwork, the sub-TLV data carried by the first acknowledgement packet only needs to be added by 4 bytes. When a large number of hosts are deployed, after the iNOF switch is started or restarted, the states of the hosts are changed, namely, the hosts are on line one by one, and the number of generated state notification messages and confirmation messages is continuously increased.
In this embodiment, the access port that sends the first status notification message is also used to receive a first acknowledgement message that responds to the first status notification message, where the first acknowledgement message carries the IP address of each online host that accesses the access port. Therefore, the embodiment reduces the number of message interactions and improves the information synchronization efficiency by synchronizing information in batches, multiplexing the same content in the state notification message and reducing the synchronous data.
Specifically, under the access port of the iNOF switch, there may be a case that a plurality of online hosts belong to the same host (server), and before receiving the first acknowledgement message, the host is required to write the IP address of each online host into the first acknowledgement message, and set the destination MAC address of the acknowledgement message of the online host as the source MAC address of the first status notification message.
The destination MAC address refers to the MAC address of the other party during communication, and the source MAC address is the MAC address of the other party during communication, which can be understood that the address to be sent by the first acknowledgement packet is the address of the access port itself that sends the first status notification packet. Specifically, the implementation manner of carrying the IP addresses of the plurality of online hosts in the first acknowledgement packet is the same as the implementation manner of carrying the IP addresses of the plurality of online hosts in the first status notification packet, so that the description thereof is omitted herein.
Further, before each online host is confirmed to successfully update the state of the target host, the IP addresses of all the online hosts in the first confirmation message can be analyzed through the iNOF switch, so that the online hosts which have not successfully sent the first state notification message are confirmed according to the IP addresses of the online hosts, the online hosts which have not successfully sent the first state notification message can be resent, and if the online hosts are sent, the online hosts which have successfully sent the first state notification about the target host are confirmed to be sent, so that the online hosts are not resent, invalid processing is avoided, and processing efficiency is improved.
Referring to fig. 3, in one embodiment, the state change of the target host includes offline and online, and the information synchronization method further includes:
step S150: when the state of the target host changes to be online, acquiring an IP address of the target host and generating a second state notification message;
step S160: sending the second state notification message to the target host, wherein the second state notification message carries an IP address of the target host, and the second state notification message is used for synchronizing state information of each online host to the target host;
step S170: and receiving a second confirmation message responding to the second state notification message to confirm that the target host successfully updates the state information of each online host, wherein the second confirmation message carries the IP address of each online host and the IP address of the target host.
It will be appreciated that when a host is offline, other hosts need to be informed of the state of the offline host, and the host need not receive state information of other hosts, but when a host is online, not only is other hosts need to be informed of the state of the online host, but the online host needs to receive and update state information of other hosts. Therefore, considering various situations of host state change, a second state notification message needs to be sent to the target host.
Specifically, the implementation method for carrying the IP addresses of the plurality of target hosts with state changes in the second state notification packet includes the following steps: multiplexing the current sub-TLV type, wherein the value of the sub-TLV length is dynamically determined to be a multiple of 4 or 16 according to the number of the carried target hosts, the content of the sub-TLV data is a plurality of IPv4 addresses or a plurality of IPv6 addresses, and the number of the carried target hosts is determined according to the value of the sub-TLV length.
The second way is: the sub-TLV type is newly defined to be distinguished from a single target host, and the value of the sub-TLV length and the contents of the sub-TLV data are the same as in the first manner described above.
Third mode: if the IP address of the target host is reasonably planned, very regular, such as: the IP address of the target host is 10.0.0.1-10.0.0.255, the sub-TLV type can be newly defined, the value of the sub-TLV length fills the number of IP addresses or the mask length, and the content of the sub-TLV data fills the initial IP address or the IP prefix.
In one embodiment, generating a second status notification message further comprises:
and writing all the IP addresses of the online hosts and the auxiliary information of the online hosts into the second state notification message, and setting the destination MAC address of the second state notification message as the MAC address of the target host.
Specifically, the IP address of the online host and the auxiliary information of the online host are all written into the second status notification message, so that after the target host receives the second status notification message, the status information of the online host can be updated according to the IP address of each online host. And setting the destination MAC address of the second state notification message as the MAC address of the target host access port, thereby reducing invalid processing. Only the target host needs to process the second state notification message, and other hosts in the same local area network do not need to process, so that a large amount of processing resources are saved.
Specifically, before the irofer receives the second acknowledgement message, the destination host that receives the second status notification message needs to copy all the IP addresses of the on-line hosts and the IP addresses of the destination host in the second status notification message to the second acknowledgement message, and set the destination MAC address of the second acknowledgement message as the source MAC address of the second status notification message. The second status notification message includes an IP address of the online host, a message sequence number, and auxiliary information of the online host. Therefore, the reduction and multiplexing of the synchronous data can be realized by multiplexing the IP address, the message sequence number, the changed state and the reason of the state change of the target host in the second state notification message, and the information synchronization efficiency is improved.
Example 2
With reference to fig. 4, fig. 4 is a schematic structural diagram of an information synchronization device 100 according to an embodiment of the present invention, and specifically, the information synchronization device 100 includes: the device comprises an acquisition module 110, a generation module 120, a sending module 130 and a receiving module 140.
The acquiring module 110 is configured to acquire an IP address of each online host if the state of the target host changes;
the generating module 120 is configured to generate, according to the number of access ports to which the online host is currently connected in the iNOF switch, different first status notification messages corresponding to the number;
a sending module 130, configured to send the first status notification messages to the target hosts through corresponding access ports, where the first status notification messages carry IP addresses of the online hosts accessing the same access port, and the first status notification messages are used to synchronize status information of the target hosts to the online hosts accessing the corresponding access ports;
and a receiving module 140, configured to receive a first acknowledgement message in response to the first status notification message, where the first acknowledgement message carries at least one IP address of an online host that successfully updates the status information of the target host.
Optionally, the generating module 120 is specifically further configured to traverse each access port currently accessed by the online host, and write the IP addresses of all online hosts accessed by the same access port into the same first status notification message, thereby generating different first status notification messages corresponding to the number.
Optionally, the state change of the target host includes offline and online; the obtaining module 110 is specifically further configured to obtain an IP address of the target host and generate a second status notification message when the status of the target host changes to online;
the sending module 130 is specifically further configured to send the second status notification packet to the target host, where the second status notification packet carries an IP address of the target host, and the second status notification packet is used to synchronize status information of each online host to the target host;
the receiving module 140 is specifically further configured to receive a second confirmation message in response to the second status notification message, so as to confirm that the target host successfully updates the status information of each online host, where the second confirmation message carries the IP address of each online host and the IP address of the target host.
Optionally, the obtaining module 110 is specifically further configured to write all the IP addresses of the online hosts and the auxiliary information of the online hosts into the second status notification message, and set the destination MAC address of the second status notification message as the MAC address of the target host.
The information synchronization device provided in this embodiment of the present application corresponds to each step of the information synchronization method in the above embodiment 1, and the options in the above embodiment 1 are also applicable to this embodiment, so that the details are not repeated here.
The embodiment of the invention also provides an iNOF switch, the computer equipment comprises a memory and a processor, the memory stores a computer program, and the computer program realizes the information synchronization method in the embodiment 1 when the processor executes the computer program.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the information synchronization method described in embodiment 1.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, of the flow diagrams and block diagrams in the figures, which illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules or units in various embodiments of the invention may be integrated together to form a single part, or the modules may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a smart phone, a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention.

Claims (10)

1. An information synchronization method, applied to an iNOF switch, comprising:
if the state of the target host changes, the IP address of each online host is acquired;
generating different first state notification messages corresponding to the number of access ports of the online host according to the number of access ports of the current iNOF switch;
the first state notification message is sent to the target host through the corresponding access port respectively, wherein the first state notification message carries the IP address of each online host accessed to the same access port, and the first state notification message is used for synchronizing the state information of the target host to each online host accessed to the corresponding access port;
and receiving a first confirmation message responding to the first state notification message, wherein the first confirmation message carries at least one IP address of the online host which successfully updates the state information of the target host.
2. The method of claim 1, wherein generating the first status notification messages corresponding to the number of differences comprises:
traversing each access port currently accessed with the online host, and writing the IP addresses of all the online hosts accessed to the same access port into the same first state notification message, thereby generating different first state notification messages corresponding to the number.
3. The information synchronization method according to claim 1, wherein the state change of the target host includes a down line and an up line, further comprising:
when the state of the target host changes to be online, acquiring an IP address of the target host and generating a second state notification message;
sending the second state notification message to the target host, wherein the second state notification message carries an IP address of the target host, and the second state notification message is used for synchronizing state information of each online host to the target host;
and receiving a second confirmation message responding to the second state notification message to confirm that the target host successfully updates the state information of each online host, wherein the second confirmation message carries the IP address of each online host and the IP address of the target host.
4. The method of claim 3, wherein generating a second status notification message comprises:
and writing all the IP addresses of the online hosts and the auxiliary information of the online hosts into the second state notification message, and setting the destination MAC address of the second state notification message as the MAC address of the target host.
5. An information synchronization device, applied to an iNOF switch, comprising:
the acquisition module is used for acquiring the IP addresses of all the online hosts if the state of the target host changes;
the generation module is used for generating different first state notification messages corresponding to the number of access ports of the online host according to the number of access ports of the current iNOF switch;
the sending module is used for sending the first state notification message to the target host through the corresponding access port respectively, wherein the first state notification message carries the IP address of each online host accessed to the same access port, and the first state notification message is used for synchronizing the state information of the target host to each online host accessed to the corresponding access port;
and the receiving module is used for receiving a first confirmation message responding to the first state notification message, wherein the first confirmation message carries at least one IP address of the online host which is used for successfully updating the state information of the target host.
6. The information synchronization device according to claim 5, wherein the generating module is further configured to traverse each access port currently accessed by the online hosts, write IP addresses of all online hosts accessed to a same access port into a same first status notification message, and thereby generate different first status notification messages corresponding to the number.
7. The information synchronization device according to claim 5, wherein the state change of the target host includes a down line and an up line, and the obtaining module is further configured to obtain an IP address of the target host and generate a second state notification message when the state change of the target host is up line;
the sending module is further configured to send the second status notification packet to the target host, where the second status notification packet carries an IP address of the target host, and the second status notification packet is used to synchronize status information of each online host to the target host;
the receiving module is further configured to receive a second confirmation message in response to the second status notification message, so as to confirm that the target host successfully updates the status information of each online host, where the second confirmation message carries the IP address of each online host and the IP address of the target host.
8. The information synchronization device according to claim 7, wherein the obtaining module is further configured to write all IP addresses of the on-line hosts and the auxiliary information of the on-line hosts into the second status notification message, and set a destination MAC address of the second status notification message to a MAC address of the target host.
9. An iNOF switch comprising a processor and a memory, wherein the memory stores a computer program executable by the processor, the processor being executable to implement the information synchronization method of any one of claims 1 to 4.
10. A readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, implements the information synchronization method according to any of claims 1 to 4.
CN202211739249.5A 2022-12-30 2022-12-30 Information synchronization method, device, iNOF switch and readable storage medium Pending CN116032858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211739249.5A CN116032858A (en) 2022-12-30 2022-12-30 Information synchronization method, device, iNOF switch and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211739249.5A CN116032858A (en) 2022-12-30 2022-12-30 Information synchronization method, device, iNOF switch and readable storage medium

Publications (1)

Publication Number Publication Date
CN116032858A true CN116032858A (en) 2023-04-28

Family

ID=86071980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211739249.5A Pending CN116032858A (en) 2022-12-30 2022-12-30 Information synchronization method, device, iNOF switch and readable storage medium

Country Status (1)

Country Link
CN (1) CN116032858A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030137532A1 (en) * 2001-12-19 2003-07-24 Alcatel Canada Inc. Method and system for IP link management
US20040004898A1 (en) * 2002-07-08 2004-01-08 Samsung Electronics Co., Ltd. Dual port static memory cell and semiconductor memory device having the same
CN113411264A (en) * 2021-06-30 2021-09-17 中国工商银行股份有限公司 Network queue monitoring method and device, computer equipment and storage medium
CN115426258A (en) * 2022-08-23 2022-12-02 迈普通信技术股份有限公司 Information configuration method, device, switch and readable storage medium
CN115514719A (en) * 2022-10-20 2022-12-23 迈普通信技术股份有限公司 Message sending method, device, switch and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030137532A1 (en) * 2001-12-19 2003-07-24 Alcatel Canada Inc. Method and system for IP link management
US20040004898A1 (en) * 2002-07-08 2004-01-08 Samsung Electronics Co., Ltd. Dual port static memory cell and semiconductor memory device having the same
CN113411264A (en) * 2021-06-30 2021-09-17 中国工商银行股份有限公司 Network queue monitoring method and device, computer equipment and storage medium
CN115426258A (en) * 2022-08-23 2022-12-02 迈普通信技术股份有限公司 Information configuration method, device, switch and readable storage medium
CN115514719A (en) * 2022-10-20 2022-12-23 迈普通信技术股份有限公司 Message sending method, device, switch and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"智能无损网络技术白皮书", Retrieved from the Internet <URL:https://www.h3c.com/cn/Service/Document_Software/Document_Center/Home/Public/00-Public/Learn_Technologies/White_Paper/H3C-4103/> *
邢维巍;彭振江;樊尚春;: "硅微谐振式压力传感器中的单端口静电激励-电容检测方法研究", 计测技术, no. 1, 10 September 2012 (2012-09-10) *

Similar Documents

Publication Publication Date Title
US9166904B2 (en) Method and apparatus for transferring BGP state information during asynchronous startup
CN111343019B (en) Reconnection method, reconnection device and storage medium
EP2597818A1 (en) Cluster management system and method
CN114095415B (en) Route determination method, device, gateway equipment and storage medium
US20230198881A1 (en) Method and device for improving link aggregation protocol timeout
CN116032858A (en) Information synchronization method, device, iNOF switch and readable storage medium
EP3726801A1 (en) Methods for dynamically controlling transmission control protocol push functionality and devices thereof
CN109413142B (en) Method for realizing iSCSI virtual agent under L inux
CN110830381B (en) Congestion control method and related equipment
KR100473490B1 (en) Method of Pacing the Synchronization of Routing Information in a Data Switching Environment
CN106230747B (en) Method, device and system for recovering TCP connection sequence number
CN114449051B (en) Data packet transmission method and communication equipment
CN114172841B (en) Message forwarding method and device, electronic equipment and read storage medium
CN111083016B (en) Polling table processing method and device, storage medium and equipment
CN112491810B (en) Data connection method and mobile terminal
CN112866133B (en) Method and device for acquiring MSS (maximum segment size)
CN110337137B (en) Data packet filtering method, device and system
CN114006910A (en) Information synchronization method and device
CN110890989A (en) Channel connection method and device
CN115150363B (en) IP address updating method, gateway device, gateway down-hanging device and storage medium
WO2004071027A1 (en) Methods and systems for non-disruptive physical address resolution
CN104580512A (en) Data processing method and device and distributed file system
CN108924200B (en) Message processing method and device
CN111464579A (en) Message processing method and server
CN114745281B (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination