[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN116032858B - 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
CN116032858B
CN116032858B CN202211739249.5A CN202211739249A CN116032858B CN 116032858 B CN116032858 B CN 116032858B CN 202211739249 A CN202211739249 A CN 202211739249A CN 116032858 B CN116032858 B CN 116032858B
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.)
Active
Application number
CN202211739249.5A
Other languages
Chinese (zh)
Other versions
CN116032858A (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.)
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/CN116032858B/en
Publication of CN116032858A publication Critical patent/CN116032858A/en
Application granted granted Critical
Publication of CN116032858B publication Critical patent/CN116032858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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, a iNOF switch and a readable storage medium, which are applied to a iNOF switch, wherein the method 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 the 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, a iNOF switch, and a readable storage medium.
Background
INOF (INTELLIGENT LOSSLESS NVME OVER FABRIC, intelligent lossless storage network) is a common technology of integration of ethernet and storage network, and is specifically used in cooperation with LLDP (LINK LAYER Discovery Protocol ), so that all devices in iNOF can automatically sense state changes of all devices in the first time, and corresponding devices can flexibly and intelligently adjust relevant configuration, and finally realize packet loss-free and high-throughput transmission of storage traffic in ethernet.
The iNOF network (hereinafter referred to as network) includes iNOF host and iNOF switch, hereinafter referred to as host and switch, referring to the schematic diagram of the existing iNOF network architecture of fig. 1, the host includes a disk device and a server, and is accessed into the network through an access port provided by the iNOF switch, and different hosts can be distinguished by IP addresses. The host notifies the switch to which it has access to go on-line by sending an LLDP message that uses CHASSISID and PortID to uniquely identify a host. In the iNOF-related standard, CHASSIS ID typically employs 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.
Currently, under the condition that a large number of hosts are connected to one iNOF switch, when the state of any one host changes, the switch needs to send state notification messages of the hosts with the state changes to other hosts connected to the switch one by one and receive acknowledgement messages from other online hosts, so that the sending of the state notification messages and the receiving of the acknowledgement messages are 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 impacts 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, a iNOF switch and a readable storage medium which can be used in the 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 iNOF switches, 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 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, applied to a iNOF switch, 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 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 a iNOF switch, 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 iNOF switches, 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 iNOF switch at present; 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 conventional 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 iNOF (INTELLIGENT LOSSLESS NVME OVER FABRIC, intelligent lossless storage network) where there are a large number of hosts, once the state of the host changes or a new host is added to 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 confirm messages) are generated between the host and the switch in a short time.
It should be noted that, the message formats of the existing iNOF status notification message and iNOF acknowledgement message are as follows:
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, where a status notification corresponds to a status change notification of one host to another host, and information of a status notification is carried by a TLV message in the status notification message, and a data portion of the 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 the one iNOF status notification message is 48-303 bytes.
Also, one iNOF acknowledgement message may contain a plurality of acknowledgements, one acknowledgement corresponding to an acknowledgement that one host received a state change notification of another host, the information of one acknowledgement message being carried by one TLV message in the acknowledgement message, the data portion of one TLV message containing the following 3 sub-TLVs (IPv 4 for example) for a total length of 24 bytes.
Example 1
Referring to fig. 2, an embodiment of the present invention provides an information synchronization method applied to iNOF switches, 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 iNOF networks, 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 iNOF networks, 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 iNOF switches.
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 iNOF switch.
Illustratively, three different access ports in the iNOF switch are port1, port2 and port3, respectively, where the access port1 may be connected to 1 on-line host, the access port2 may be connected to 2 on-line hosts, the 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 message interaction amount is reduced to a certain extent. If the access ports of the currently accessed 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 currently accessed online hosts in the iNOF switch, 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 a 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), if the access port4 still exists in the iNOF switch, but the currently accessed port4 does not have the access of the online hosts, and therefore, 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 of access ports port1, port2 and port3 in the iNOF switch are connected with online hosts, but port4 is not accessed to an online host, so that the number of access ports currently accessing to the online hosts 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.
And iNOF, the switch informs the online host of the state change of the target 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:
Therefore, by the information synchronization method in this embodiment, each time a target host is added to the iNOF network, only 4 bytes (the data portion of the 6 th sub TLV in the TLV message in the iNOF state 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 iNOF switches that send the first status notification message receive and process the first acknowledgement message, and other switches in the same lan do not 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:
It can be known that, every time an online host to be advertised is added in the iNOF network, the sub-TLV data carried by the first acknowledgement message only needs to be added by 4 bytes. When a large number of hosts are deployed, the iNOF switch is started or the iNOF switch is restarted, the state of each host is changed, that is, the hosts are on line one by one, and the number of generated state notification messages and confirmation messages is continuously increased, so that the message interaction is greatly reduced by adopting the information synchronization method of the embodiment, and the data impact of the iNOF host and the iNOF switch is relieved.
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 sent repeatedly, 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 iNOF switch receives the second acknowledgement message, the target host that receives the second status notification message needs to copy all the IP addresses of the online hosts and the IP addresses of the target 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 the 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 the present embodiment, so that the details are not repeated here.
The embodiment of the invention also provides a iNOF switch, the computer device includes a memory and a processor, the memory stores a computer program, and the computer program implements the information synchronization method described 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 the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. 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 application. 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 usb 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 (8)

1. An information synchronization method, applied to iNOF switches, 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 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;
Receiving a first confirmation message responding to the first state notification message, wherein the first confirmation message carries at least one IP address of an online host which successfully updates the state information of the target host;
wherein the generating the first status notification message corresponding to the number of different status notification messages 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.
2. 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.
3. The method of claim 2, 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.
4. An information synchronization device, applied to iNOF switches, 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 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;
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 an online host which is used for successfully updating the state information of the target host;
The generating module is further configured to traverse each access port currently accessed by the online hosts, write the IP addresses of all online hosts accessed to the same access port into the same first status notification message, and thereby generate different first status notification messages corresponding to the number.
5. The information synchronization device according to claim 4, 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.
6. The information synchronization device according to claim 5, 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.
7. A iNOF switch comprising a processor and a memory, wherein the memory stores a computer program executable by the processor, the processor being executable by the computer program to implement the information synchronization method of any one of claims 1 to 3.
8. 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 3.
CN202211739249.5A 2022-12-30 2022-12-30 Information synchronization method, device, iNOF switch and readable storage medium Active CN116032858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211739249.5A CN116032858B (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 CN116032858B (en) 2022-12-30 2022-12-30 Information synchronization method, device, iNOF switch and readable storage medium

Publications (2)

Publication Number Publication Date
CN116032858A CN116032858A (en) 2023-04-28
CN116032858B true CN116032858B (en) 2024-07-05

Family

ID=86071980

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN116032858B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7856599B2 (en) * 2001-12-19 2010-12-21 Alcatel-Lucent Canada Inc. Method and system for IP link management
KR100460141B1 (en) * 2002-07-08 2004-12-03 삼성전자주식회사 Dual port static memory cell and semiconductor memory device comprising the cell
CN103856417B (en) * 2012-11-30 2018-01-23 中兴通讯股份有限公司 software defined network message forwarding method and system
CN110581803B (en) * 2019-10-09 2022-01-28 中国联合网络通信集团有限公司 Message forwarding method and device based on SDN
CN115514719B (en) * 2022-10-20 2023-12-19 迈普通信技术股份有限公司 Message sending method, device, switch and readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN116032858A (en) 2023-04-28

Similar Documents

Publication Publication Date Title
JP7154399B2 (en) DATA TRANSMISSION METHOD, APPARATUS, COMPUTER-READABLE MEDIUM AND ELECTRONIC DEVICE
CN109379291B (en) Method and device for processing service request in networking
CN111711941B (en) Data transmission method, related equipment and device
CN113794618B (en) Redundant network communication method and device based on virtual network card and terminal equipment
US11683257B1 (en) Method and device for improving link aggregation protocol timeout
CN111343019B (en) Reconnection method, reconnection device and storage medium
CN112887209B (en) Entry establishment method and related equipment for data transmission
US9166904B2 (en) Method and apparatus for transferring BGP state information during asynchronous startup
CN112822646A (en) Message processing method and device, electronic equipment and computer readable storage medium
CN110337137B (en) Data packet filtering method, device and system
CN116032858B (en) Information synchronization method, device, iNOF switch and readable storage medium
CN113055193B (en) Data multicast transmission method, device, equipment and storage medium
CN111083016B (en) Polling table processing method and device, storage medium and equipment
CN109413142B (en) Method for realizing iSCSI virtual agent under L inux
EP3726801A1 (en) Methods for dynamically controlling transmission control protocol push functionality and devices thereof
CN110830381B (en) Congestion control method and related equipment
CN114449051B (en) Data packet transmission method and communication equipment
CN106230747B (en) Method, device and system for recovering TCP connection sequence number
CN116614485A (en) Communication method, device and electronic equipment between client and service
CN114006910A (en) Information synchronization method and device
WO2004071027A1 (en) Methods and systems for non-disruptive physical address resolution
CN112187902A (en) DNS proxy method, device, storage medium and terminal equipment under IPv6 tunnel mode
CN110890989A (en) Channel connection method and device
CN115150363B (en) IP address updating method, gateway device, gateway down-hanging device and storage medium
CN109561019B (en) Method for establishing session, graceful restart communication device and storage medium

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