WO2024119751A1 - 一种多以太网交换机的信息交换方法及相关装置 - Google Patents

一种多以太网交换机的信息交换方法及相关装置 Download PDF

Info

Publication number
WO2024119751A1
WO2024119751A1 PCT/CN2023/100010 CN2023100010W WO2024119751A1 WO 2024119751 A1 WO2024119751 A1 WO 2024119751A1 CN 2023100010 W CN2023100010 W CN 2023100010W WO 2024119751 A1 WO2024119751 A1 WO 2024119751A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
switches
information exchange
control device
switch
Prior art date
Application number
PCT/CN2023/100010
Other languages
English (en)
French (fr)
Inventor
郭巍松
陈翔
Original Assignee
苏州元脑智能科技有限公司
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 苏州元脑智能科技有限公司 filed Critical 苏州元脑智能科技有限公司
Publication of WO2024119751A1 publication Critical patent/WO2024119751A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0266Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • H04L49/201Multicast operation; Broadcast operation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/354Switches specially adapted for specific applications for supporting virtual local area networks [VLAN]

Definitions

  • the present application relates to the field of computer technology, and in particular to an information exchange method for multiple Ethernet switches, another information exchange method for multiple Ethernet switches, two information exchange devices for multiple Ethernet switches, a management system, a computing device, and a non-volatile readable storage medium.
  • WEB World Wide Web
  • SNMP Simple Network Management Protocol
  • WEB operations require each network element to have its own operation interface, and the devices are quite different. In the past, it was usually only used as a common configuration method on low-end devices.
  • the SNMP protocol defines some typical MIB (Management Information Base) nodes, and uses operations such as GET (get), SET (set), and NOTIFICATION (notification) to monitor and configure network devices.
  • SET operations are very inconvenient to operate in the system, so even on some well-known open source software, SET operations are usually not supported, so SNMP is usually only set to monitoring.
  • the configuration work relies on netconf (Network Configuration Protocol) and restful (a design style and development method for network applications) to complete.
  • each device needs to be configured separately.
  • these controls can usually only achieve one-to-one control, and at most similar content is sent in batches.
  • the work of integrating the situations of multiple devices depends on complex calculations in the background. For the scenario of a large number (hundreds or thousands) of switches, even simple collection and presentation requires a huge amount of calculation for the control system. In other words, information exchange between multiple switches can only be carried out in an extremely inefficient way, which increases the cost of management and has the problem of low efficiency in information exchange between network devices.
  • the purpose of the present application is to provide an information exchange method for multiple Ethernet switches, another information exchange method for multiple Ethernet switches, two information exchange devices for multiple Ethernet switches, a computing device, and a non-volatile readable storage medium to improve the efficiency of information interaction for network devices.
  • the present application provides an information exchange method of a multi-Ethernet switch, comprising:
  • the master control device receives the information exchange instruction sent by the control terminal through the unique communication address, and performs information synchronization with other switches based on the information exchange instruction.
  • collecting the attribute information of the corresponding switch into a member database includes:
  • broadcasting a message to a corresponding switch via a virtual extended local area network includes:
  • establishing a virtual extended local area network includes:
  • broadcasting a message to other switches in the virtual extended local area network through the virtual extended local area network includes:
  • the message is broadcasted to other switches in the virtual extended LAN through the virtual link.
  • it also includes:
  • a new neighbor list is obtained from the member database; wherein the neighbor list records the attribute information of the new switch.
  • the attribute information of the switch includes priority information, local performance information, resource status information, configuration information, and neighbor information.
  • the master node selection process is performed based on the attribute information of the switch in the member database to obtain the master control device, including:
  • the attribute information of the switches in the member database is processed based on the master node selection algorithm to obtain the master control device.
  • the method further includes:
  • the attribute information of the switches in the member database is processed, and the backup master control device, calculator, and participant are also obtained.
  • it also includes:
  • a unique communication address is set for the master device so that the master device can provide data or control services to external devices.
  • the present application also provides an information exchange method for multiple Ethernet switches, comprising:
  • the master control device receives the information exchange instruction sent by the control end through a unique communication address; wherein the master control device is the master control device obtained by the control end performing master node selection processing based on the attribute information of the switch in the member database;
  • it also includes:
  • the master device provides data or control services to external devices based on a unique communication address.
  • information synchronization with other switches includes:
  • the master control device schedules all calculators to synchronize information with all participants; wherein the calculators and participants are selected based on the attribute information of the switches in the member database.
  • the present application further provides an information exchange device of a multi-Ethernet switch, comprising:
  • a data collection module configured to collect attribute information of the corresponding switch into a member database
  • a master device determination module is configured to perform master node selection processing based on attribute information of the switch in the member database to obtain a master control device;
  • the information exchange module is configured to receive an information exchange instruction sent by the control terminal through a unique communication address, and perform information synchronization with other switches based on the information exchange instruction.
  • the present application further provides an information exchange device of a multi-Ethernet switch, comprising:
  • the instruction receiving module is configured to receive the information exchange instruction sent by the control end through a unique communication address; wherein the master control device is the master control device obtained by the control end performing master node selection processing based on the attribute information of the switch in the member database;
  • the information synchronization module is configured to synchronize information with other switches based on the information exchange instruction.
  • the present application also provides a management system for multiple Ethernet switches, including:
  • the switch device is configured to collect attribute information of the corresponding switch into a member database; perform master node selection processing based on the attribute information of the switch in the member database to obtain a master control device;
  • the master device is configured to receive information exchange instructions sent by the control terminal through a unique communication address, and based on the information The switching command synchronizes information with other switches.
  • the master device is further configured to provide data or control services to the external device based on a unique communication address.
  • the switch device is configured to receive the attribute information returned by the switch; and add the attribute information to the member database.
  • the present application further provides a computing device, including:
  • a memory arranged to store a computer program
  • the processor is configured to implement the steps of the above-mentioned information exchange method of multiple Ethernet switches when executing a computer program.
  • the present application further provides a non-volatile readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned method for exchanging information of multiple Ethernet switches are implemented.
  • the present application provides an information exchange method for multiple Ethernet switches, including: collecting attribute information of corresponding switches into a member database; performing master node selection processing based on the attribute information of the switches in the member database to obtain a master control device; the master control device receives an information exchange instruction sent by a control terminal through a unique communication address, and performs information synchronization on other switches based on the information exchange instruction.
  • a master control device is obtained, that is, the master node device among multiple switches is determined, and then information synchronization and data configuration are performed on other switches based on the master control device, without the need to input information and configure operations for each switch separately, thereby improving the efficiency of switching multiple Ethernet switches.
  • the present application also provides another information exchange method for multiple Ethernet switches, two information exchange devices for multiple Ethernet switches, a management system, a computing device, and a non-volatile readable storage medium, which have the above beneficial effects and are not described in detail here.
  • FIG1 is a flow chart of an information exchange method for multiple Ethernet switches provided in an embodiment of the present application.
  • FIG2 is a schematic diagram of the structure of an information exchange device of a multi-Ethernet switch provided in an embodiment of the present application;
  • FIG3 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application.
  • the core of the present application is to provide an information exchange method for multiple Ethernet switches, another information exchange method for multiple Ethernet switches, two information exchange devices for multiple Ethernet switches, a computing device, and a non-volatile readable storage medium to improve the efficiency of information interaction for network devices.
  • each device needs to be configured separately. And these controls are usually only one-to-one control, at most similar content is sent in batches, and the work of integrating the situations of multiple devices depends on complex calculations in the background. For the scenario of a large number (hundreds or thousands) of switches, even simple collection and presentation requires a huge amount of calculation for the control system. In other words, information exchange between multiple switches can only be carried out in an extremely inefficient way, which increases the cost of management.
  • the present application provides an information exchange method for multiple Ethernet switches, which first collects the attribute information of the corresponding switches into a member database, and then performs master node selection processing based on the attribute information of the switches in the member database to obtain a master control device, that is, determines the master node device among multiple switches, and then performs information synchronization and data configuration on other switches based on the master control device, without the need to perform information input and configuration operations on each switch separately, thereby improving the efficiency of exchanging multiple Ethernet switches.
  • the following describes an information exchange method for a multi-Ethernet switch provided by the present application through an embodiment.
  • FIG. 1 is a flow chart of an information exchange method for multiple Ethernet switches provided in an embodiment of the present application.
  • the method may include:
  • This step aims to collect the attribute information of the corresponding switches into the member database, wherein the corresponding switches may refer to all switches in a certain network, switches in a specified range, or switches with the same type of identification.
  • the switch attribute information includes priority information, local performance information, resource status information, configuration information, Information and neighbor information.
  • the member database records the attribute information of multiple switches that need to be managed.
  • this step may include:
  • this optional solution mainly explains how to add attribute information to the member database.
  • a message is broadcast to the corresponding switch through the virtual extended LAN; the attribute information returned by the corresponding switch is received; and the attribute information is added to the member database. That is, the attribute information of the corresponding switch is obtained based on the virtual extended LAN of the virtual network identifier (VNI, VXLAN Network Identifier).
  • VNI virtual network identifier
  • step S1011 in the previous optional solution may include:
  • Step 1 establish a virtual extended LAN
  • Step 2 add the corresponding switch to the virtual extended LAN
  • Step 3 broadcast messages to other switches in the virtual extended LAN through the virtual extended LAN.
  • this optional solution mainly describes how to broadcast messages.
  • a virtual extended local area network is established; a switch is added to a specific VNI of the virtual extended local area network; and messages are broadcast to other switches in the virtual extended local area network through the VNI.
  • step 1 in the previous optional solution may include:
  • this optional solution mainly describes how to establish a virtual extended local area network.
  • the virtual extended local area network is mainly established through an Ethernet virtual private network system.
  • step 3 in the previous optional solution may include:
  • the switch's messages are broadcasted to other switches in the virtual extended LAN via virtual links.
  • this optional solution mainly describes how to broadcast a message.
  • the message of the switch is mainly sent to other switches in the virtual extended local area network in a broadcasting manner through a virtual link.
  • this embodiment may further include:
  • Step 1 subscribe to messages in the member database
  • Step 2 When the data in the member database changes, a new neighbor list is obtained from the member database; wherein the neighbor list records the attribute information of the new switch.
  • this option mainly explains how to update the member database in the case of subscription.
  • a message subscription is performed on the member database; when the data in the member database changes, a new neighbor list is obtained from the member database; wherein the neighbor list records the attribute information of the new switch.
  • a master node selection process is performed based on the attribute information of the switch in the member database to obtain a master control device.
  • the master node selection process can select the corresponding master control device and can also select the backup master control device, the calculator, and the participant.
  • the backup master control device is set to back up the master control device. When the master control device fails, the backup master control device takes over the operation of the master control device.
  • the calculator is set to perform computing operations.
  • the participant is the switch device that needs to be managed in the network.
  • this step may include:
  • the attribute information of the switches in the member database is processed based on the master node selection algorithm to obtain the master control device.
  • this optional solution mainly explains how to determine the master control device.
  • the attribute information of the switches in the member database is processed based on the master node selection algorithm to obtain the master control device.
  • the master control device After obtaining the master control device, it also includes:
  • the attribute information of the switches in the member database is processed, and the backup master control device, calculator, and participant are also obtained.
  • this optional solution mainly illustrates that other devices with different identities can also be obtained.
  • the attribute information of the switches in the member database is processed based on the master node selection algorithm to obtain backup master devices, calculators, and participants.
  • the main control device receives the information exchange instruction sent by the control terminal through the unique communication address, and performs information synchronization with other switches based on the information exchange instruction.
  • this step aims at the main control device receiving the information exchange instruction sent by the control terminal through the unique communication address, and performing information synchronization with other switches based on the information exchange instruction.
  • the switch device that receives the master control device identifier starts to execute the operation of the master control device to synchronize information with other switches.
  • this embodiment may further include:
  • a unique communication address is set for the master device so that the master device can provide data or control services to external devices.
  • this optional solution mainly illustrates that the main control device can also provide data and services to the outside world.
  • a unique communication address is set for the main control device so that the main control device can provide data or control services to the external device.
  • this embodiment also provides a management system for multiple Ethernet switches, including:
  • the switch device is configured to collect attribute information of the corresponding switch into a member database; the master node selection process is performed based on the attribute information of the switch in the member database to obtain a master control device; the master control device is configured to receive an information exchange instruction sent by the control terminal through a unique communication address, and synchronize information with other switches based on the information exchange instruction.
  • the main control device is also configured to provide data or control services to external devices based on a unique communication address.
  • the switch device may be configured to receive the attribute information returned by the switch and add the attribute information to the member database.
  • this embodiment first collects the attribute information of the corresponding switch into the member database, and then performs master node selection processing based on the attribute information of the switch in the member database to obtain the master control device, that is, determines the master node device among multiple switches, and then performs information synchronization and data configuration on other switches based on the master control device, without the need to input information and configure operations on each switch separately, thereby improving the efficiency of switching multiple Ethernet switches.
  • the method may include:
  • the master control device receives an information exchange instruction sent by the control end through a unique communication address; wherein the master control device is a master control device obtained by the control end performing a master node selection process based on the attribute information of the switch in the member database;
  • This step is intended for the master control device to receive the information exchange instruction sent by the control terminal through a unique communication address; wherein the master control device is obtained by performing master node selection processing based on the attribute information of the switch in the member database.
  • S202 Perform information synchronization on other switches based on the information exchange instruction.
  • this step aims to synchronize information with other switches.
  • this embodiment may further include:
  • the master device provides data or control services to external devices based on a unique communication address.
  • This option mainly explains how the master device provides services.
  • the master device provides data or control services to the external device based on a unique communication address.
  • S202 may include:
  • the master control device schedules all calculators to synchronize information with all participants; wherein the calculators and participants are selected based on the attribute information of the switches in the member database.
  • This option mainly explains how to synchronize information.
  • the master device schedules all calculators to synchronize all Participants synchronize information; wherein calculators and participants are selected based on attribute information of switches in a member database.
  • this embodiment first collects the attribute information of the corresponding switch into the member database, and then performs master node selection processing based on the attribute information of the switch in the member database to obtain the master control device, that is, determines the master node device among multiple switches, and then performs information synchronization and data configuration on other switches based on the master control device, without the need to perform information input and configuration operations on each switch separately, thereby improving the efficiency of switching multiple Ethernet switches.
  • This embodiment utilizes a large number of idle resources of switches by deploying a common protocol on each switch.
  • the original method of collecting information of each Ethernet switch separately by an external server is changed to using the switch's own resources to collect and calculate, and then centrally provide the information to the external management system, thereby providing a unified management method for the external management system, so that the external management system does not need to make special adaptations for the scenario of a large number of switches and use a large amount of computing resources.
  • this embodiment uses a protocol called SISP (Switch Information synchronize protocol) and an EVPN (Ethernet Virtual Private Network) system which is very commonly used in data center networks to complete member discovery in a larger network by joining a specific VNI, and then uses the broadcast within the VNI to inform all participating switch devices of their respective properties, including but not limited to priority, local capabilities, resource status, configuration information, neighbor information, etc., and selects a master device, a backup master device, a calculator, and a participant through a specified common algorithm.
  • SISP Switch Information synchronize protocol
  • EVPN Ethernet Virtual Private Network
  • the master device dispatches all calculators to realize the information collection, integration and calculation of all participants, and the selected master device obtains a unique reporter (communication address) address to provide data and control services to the outside in a unified manner.
  • a distributed approach can also be adopted, with the selected master device dispatching multiple calculators, virtualized as a single reporter to provide data and control services to the outside.
  • the selected master device and its designated calculators can also automatically match configuration decisions based on the collected data.
  • the backup master device becomes the selected master device, and a new backup master device is re-selected.
  • protocol and model provided in this embodiment do not involve related information collection objects, integration algorithms, supported policy configurations, etc.
  • the method may include:
  • Step 1 Enable SISP (Switch Information Synchronize Protocol) It can be activated by specifying a bridge, joining a specific VNI, and subscribing to member database changes to obtain a list of neighbors.
  • SISP Switch Information Synchronize Protocol
  • Step 2 BGP (EVPN support), automatically imports this VNI, introduces it through IMET (Inclusive Multieast Ethernet Tag), obtains all members of this VNI, issues IMET routes, and sends the routing information of this VNI to the member database.
  • IMET Inclusive Multieast Ethernet Tag
  • Step 3 Use broadcast within the VNI to notify all participating switch devices of their respective properties, including but not limited to local capabilities, resource status, neighbor information, etc.
  • Step 4 Each participant compares the obtained attribute information and selects the roles of the selected master device, backup master device, calculator, participant, etc.
  • the selected master device summarizes the information to keep the information synchronized among members.
  • the master control device is selected to obtain the dominant position, assign calculators to participate in the calculation, and synchronize relevant information to the backup master control device.
  • the master control device itself can also be a participant and calculator at the same time.
  • the selected master device can also obtain the system's unique reporter identity based on the configuration, and use the reporter address to actively transmit information to a specified location or passively open it for external devices to read information. It can configure and schedule within the switch system based on the information sent externally, and can also make automatic decisions based on the configuration strategy.
  • the backup master device can be a calculator and a participant at the same time, and obtain the information of the selected master device.
  • the selected master device fails, it takes over the system and becomes the selected master device.
  • the calculator receives the instruction of the selected master control device to participate in the specific operation and sends the result to the selected master control device for integration.
  • participant act as information providers and send their own relevant information to the calculator, including but not limited to adjacency relationships, port traffic, etc.
  • this embodiment first collects the attribute information of the corresponding switch into the member database, and then performs master node selection processing based on the attribute information of the switch in the member database to obtain the master control device, that is, determines the master node device among multiple switches, and then performs information synchronization and data configuration on other switches based on the master control device, without the need to perform information input and configuration operations on each switch separately, thereby improving the efficiency of switching multiple Ethernet switches.
  • the following is an introduction to an information exchange device of a multi-Ethernet switch provided in an embodiment of the present application.
  • the information exchange device of a multi-Ethernet switch described below and the information exchange method of a multi-Ethernet switch described above can be referred to each other.
  • FIG. 2 is a schematic diagram of the structure of an information exchange device of a multi-Ethernet switch provided in an embodiment of the present application.
  • the device may include:
  • the data collection module 100 is configured to collect attribute information of the corresponding switch into a member database
  • the master device determination module 200 is configured to perform master node selection processing based on the attribute information of the switch in the member database to obtain a master control device;
  • the information exchange module 300 is configured as a master device that receives an information exchange instruction sent by a control terminal through a unique communication address, and performs information synchronization with other switches based on the information exchange instruction.
  • the data collection module 100 may be configured to broadcast messages to the corresponding switches through a virtual extended local area network; receive attribute information returned by the corresponding switches; and add the attribute information to a member database.
  • broadcasting a message to a corresponding switch through a virtual extended local area network includes:
  • Establish a virtual extended LAN add a switch to a specific VNI of the virtual extended LAN; broadcast messages to other switches in the virtual extended LAN through the VNI.
  • the step of establishing a virtual extended local area network includes:
  • broadcasting a message to other switches in the virtual extended local area network through a specific VNI includes:
  • the message is broadcasted to other switches in the virtual extended LAN through the virtual link.
  • the apparatus may further include:
  • the message subscription module is configured to subscribe to messages on the member database; when the data in the member database changes, a new neighbor list is obtained from the member database; wherein the neighbor list records the attribute information of the new switch.
  • the attribute information of the switch includes priority information, local performance information, resource status information, configuration information, and neighbor information.
  • the master device determination module 200 may be configured to process attribute information of switches in a member database based on a master node selection algorithm to obtain a master control device.
  • the device may further include:
  • the other device determination module is configured to process the attribute information of the switches in the member database based on the master node selection algorithm, and also obtain the backup master control device, calculator, and participant.
  • the device may further include:
  • the service providing module is configured to set a unique communication address for the main control device so that the main control device can provide data or control services to the external device.
  • This embodiment also provides another information exchange device for multiple Ethernet switches, which may include:
  • the instruction receiving module is configured to receive the information exchange instruction sent by the control terminal through a unique communication address;
  • the master control device is a master control device obtained by the control end performing master node selection processing based on the attribute information of the switch in the member database;
  • the information synchronization module is configured to synchronize information with other switches based on the information exchange instruction.
  • the apparatus may further include:
  • the service providing module is configured to provide data or control services to an external device based on a unique communication address.
  • the information synchronization module may be configured to schedule all calculators to synchronize information with all participants; wherein the calculators and participants are selected based on attribute information of switches in a member database.
  • this embodiment first collects the attribute information of the corresponding switches into the member database, and then performs master node selection processing based on the attribute information of the switches in the member database to obtain the master control device, that is, determines the master node device among multiple switches, and then performs information synchronization and data configuration on other switches based on the master control device, without the need to perform information input and configuration operations on each switch separately, thereby improving the efficiency of switching multiple Ethernet switches.
  • the present application also provides a computing device. Please refer to FIG. 3 , which is a schematic diagram of a computing device provided in an embodiment of the present application.
  • the computing device may include:
  • a memory arranged to store a computer program
  • the processor is configured to implement the steps of any one of the above-mentioned information exchange methods for multiple Ethernet switches when executing a computer program.
  • FIG. 3 it is a schematic diagram of the composition structure of a computing device, which may include: a processor 10, a memory 11, a communication interface 12 and a communication bus 13.
  • the processor 10, the memory 11 and the communication interface 12 all communicate with each other through the communication bus 13.
  • the processor 10 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic devices, etc.
  • CPU central processing unit
  • application specific integrated circuit a digital signal processor
  • field programmable gate array a field programmable gate array or other programmable logic devices, etc.
  • the processor 10 may call a program stored in the memory 11.
  • the processor 10 may execute operations in an embodiment of the abnormal IP identification method.
  • the memory 11 is configured to store one or more programs, which may include program codes, which include computer operation instructions.
  • the memory 11 at least stores a program configured to implement the following functions:
  • the master device receives the information exchange instruction sent by the control terminal through the unique communication address, and Other switches synchronize information.
  • the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.
  • the memory 11 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device.
  • the communication interface 12 may be an interface of a communication module, and is configured to be connected to other devices or systems.
  • FIG. 3 does not constitute a limitation on the computing device in the embodiment of the present application.
  • the computing device may include more or fewer components than those shown in FIG. 3 , or combine certain components.
  • this embodiment first collects the attribute information of the corresponding switch into the member database, and then performs master node selection processing based on the attribute information of the switch in the member database to obtain the master control device, that is, determines the master node device among multiple switches, and then performs information synchronization and data configuration on other switches based on the master control device, without the need to perform information input and configuration operations on each switch separately, thereby improving the efficiency of switching multiple Ethernet switches.
  • the present application also provides a non-volatile readable storage medium, on which a computer program is stored.
  • a computer program is stored on which a computer program is stored.
  • the steps of any of the above-mentioned information exchange methods for multiple Ethernet switches can be implemented.
  • the non-volatile readable storage medium may include: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
  • the steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two.
  • the software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请公开了一种多以太网交换机的信息交换方法,涉及计算机技术领域,该方法包括:收集对应的交换机的属性信息到成员数据库中;基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备;主控设备通过唯一的通信地址接收到控制端发送的信息交换指令,基于信息交换指令对其他的交换机进行信息同步。通过主控设备对其他的交换机进行信息同步和数据配置,而不需要对每个交换机单独进行信息输入和配置操作,提高了对多个以太网交换机进行交换的效率。本申请还公开了另一种多以太网交换机的信息交换方法、两种多以太网交换机的信息交换装置、管理***、计算设备以及非易失性可读存储介质,具有以上有益效果。

Description

一种多以太网交换机的信息交换方法及相关装置
相关申请的交叉引用
本申请要求于2022年12月06日提交中国专利局,申请号为202211554114.1,申请名称为“一种多以太网交换机的信息交换方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,特别涉及一种多以太网交换机的信息交换方法、另一种多以太网交换机的信息交换方法、两种多以太网交换机的信息交换装置、管理***、计算设备以及非易失性可读存储介质。
背景技术
随着信息技术的不断发展,网络设备应用的数量越来越多,则需要更全面的网络设备管理技术。早期的网络管理,通常由WEB(World Wide Web,全球广域网)页面或SNMP(Simple Network Management Protocol,简单网络管理协议)协议来实现。其中WEB操作需要每个网元自带操作界面,各设备差异比较大,过往通常只在低端设备上作为常用的配置方式。SNMP协议定义了一些典型的MIB(Management Information Base,管理信息库)节点,并通过GET(获取)、SET(设置)、NOTIFICATION(通知)等操作,实现对网络设备的监控和配置,但实践上,SET操作的定义在***里操作很不方便,所以即使是在一些著名的开源软件上,通常也不支持SET操作,因而SNMP通常仅仅被设置为监控。而配置工作,则依赖netconf(Network Configuration Protocol,网络配置协议)、restful(一种网络应用程序的设计风格和开发方式)等方式来完成。
显然,相关技术中,需要对每台设备分别进行配置操作。而这些控制通常也只是能做到一对一的控制,至多是类似的内容批量下发,而把多台设备的情况综合起来的工作,则要依赖后台的复杂计算,对于大量(数百上千)交换机的场景而言,即使是单纯的采集和呈现,对控制***已经是巨大的计算量。也就是说,仅能通过极低效率的方式对多个交换机进行信息交互,增加了管理的成本,存在对网络设备进行信息交互的效率较低的问题。
发明内容
本申请的目的是提供一种多以太网交换机的信息交换方法、另一种多以太网交换机的信息交换方法、两种多以太网交换机的信息交换装置、计算设备以及非易失性可读存储介质,以提高对网络设备进行信息交互的效率。
在本申请的第一个方面,为解决上述技术问题,本申请提供一种多以太网交换机的信息交换方法,包括:
收集对应的交换机的属性信息到成员数据库中;
基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备;
主控设备通过唯一的通信地址接收到控制端发送的信息交换指令,基于信息交换指令对其他的交换机进行信息同步。
在一些实施例中,收集对应的交换机的属性信息到成员数据库中,包括:
通过虚拟扩展局域网对对应的交换机进行消息广播;
接收到对应的交换机返回的属性信息;
将属性信息加入到成员数据库中。
在一些实施例中,通过虚拟扩展局域网对对应的交换机进行消息广播,包括:
建立虚拟扩展局域网;
将对应的交换机加入至虚拟扩展局域网;
通过虚拟扩展局域网对虚拟扩展局域网中的其他交换机进行消息广播。
在一些实施例中,建立虚拟扩展局域网,包括:
通过以太网虚拟专用网络***建立虚拟扩展局域网。
在一些实施例中,通过虚拟扩展局域网对虚拟扩展局域网中的其他交换机进行消息广播,包括:
通过虚拟链路将消息以广播方式发送至虚拟扩展局域网中的其他交换机。
在一些实施例中,还包括:
对成员数据库进行消息订阅;
当成员数据库的数据发生变化时,从成员数据库获取新的邻居列表;其中,邻居列表记录有新的交换机的属性信息。
在一些实施例中,交换机的属性信息,包括优先级信息、本机性能信息、资源现状信息、配置信息、邻居信息。
在一些实施例中,基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备,包括:
基于主节点选择算法对成员数据库中的交换机的属性信息进行处理,得到主控设备。
在一些实施例中,当得到主控设备之后,还包括:
基于主节点选择算法对成员数据库中的交换机的属性信息进行处理,还得到备份主控设备、计算者、参与者。
在一些实施例中,还包括:
对主控设备设置唯一的通信地址,以便主控设备对外部设备提供数据或提供控制服务。
在本申请的第二个方面,本申请还提供一种多以太网交换机的信息交换方法,包括:
主控设备通过唯一的通信地址接收到控制端发送的信息交换指令;其中,主控设备是控制端基于成员数据库中的交换机的属性信息进行主节点选择处理,得到的主控设备;
基于信息交换指令对其他的交换机进行信息同步。
在一些实施例中,还包括:
主控设备基于唯一的通信地址对外部设备提供数据或提供控制服务。
在一些实施例中,对其他的交换机进行信息同步,包括:
主控设备调度所有计算者对所有参与者进行信息同步;其中,计算者和参与者为基于成员数据库中的交换机的属性信息进行选择得到的。
在本申请的第三个方面,本申请还提供一种多以太网交换机的信息交换装置,包括:
数据收集模块,被设置为收集对应的交换机的属性信息到成员数据库中;
主设备确定模块,被设置为基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备;
信息交换模块,被设置为通过唯一的通信地址接收到控制端发送的信息交换指令,基于信息交换指令对其他的交换机进行信息同步。
在本申请的第四个方面,本申请还提供一种多以太网交换机的信息交换装置,包括:
指令接收模块,被设置为通过唯一的通信地址接收到控制端发送的信息交换指令;其中,主控设备是控制端基于成员数据库中的交换机的属性信息进行主节点选择处理,得到的主控设备;
信息同步模块,被设置为基于信息交换指令对其他的交换机进行信息同步。
本申请还提供一种多以太网交换机的管理***,包括:
交换机设备,被设置为收集对应的交换机的属性信息到成员数据库中;基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备;
主控设备,被设置为通过唯一的通信地址接收到控制端发送的信息交换指令,基于信息 交换指令对其他的交换机进行信息同步。
在一些实施例中,主控设备,还被设置为基于唯一的通信地址对外部设备提供数据或提供控制服务。
在一些实施例中,交换机设备,被设置为接收到交换机返回的属性信息;将属性信息加入到成员数据库中。
在本申请的第五个方面,本申请还提供一种计算设备,包括:
存储器,被设置为存储计算机程序;
处理器,被设置为执行计算机程序时实现如上的多以太网交换机的信息交换方法的步骤。
在本申请的第六个方面,本申请还提供一种非易失性可读存储介质,非易失性可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上的多以太网交换机的信息交换方法的步骤。
本申请所提供的一种多以太网交换机的信息交换方法,包括:收集对应的交换机的属性信息到成员数据库中;基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备;主控设备通过唯一的通信地址接收到控制端发送的信息交换指令,基于信息交换指令对其他的交换机进行信息同步。
通过先收集对应的交换机的属性信息到成员数据库中,然后基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备,也就是确定了多个交换机中的主节点设备,然后基于该主控设备对其他的交换机进行信息同步和数据配置,而不需要对每个交换机单独进行信息输入和配置操作,提高了对多个以太网交换机进行交换的效率。
本申请还提供另一种多以太网交换机的信息交换方法、两种多以太网交换机的信息交换装置、管理***、计算设备以及非易失性可读存储介质,具有以上有益效果,在此不作赘述。
附图说明
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本申请实施例所提供的一种多以太网交换机的信息交换方法的流程图;
图2为本申请实施例所提供的一种多以太网交换机的信息交换装置的结构示意图;
图3本申请实施例所提供的一种计算设备的结构示意图。
具体实施方式
本申请的核心是提供一种多以太网交换机的信息交换方法、另一种多以太网交换机的信息交换方法、两种多以太网交换机的信息交换装置、计算设备以及非易失性可读存储介质,以提高对网络设备进行信息交互的效率。
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
显然,相关技术中,需要对每台设备分别进行配置操作。而这些控制通常也只是能做到一对一的控制,至多是类似的内容批量下发,而把多台设备的情况综合起来的工作,则要依赖后台的复杂计算,对于大量(数百上千)交换机的场景而言,即使是单纯的采集和呈现,对控制***已经是巨大的计算量。也就是说,仅能通过极低效率的方式对多个交换机进行信息交互,增加了管理的成本。
因此,本申请提供一种多以太网交换机的信息交换方法,通过先收集对应的交换机的属性信息到成员数据库中,然后基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备,也就是确定了多个交换机中的主节点设备,然后基于该主控设备对其他的交换机进行信息同步和数据配置,而不需要对每个交换机单独进行信息输入和配置操作,提高了对多个以太网交换机进行交换的效率。
以下通过一个实施例,对本申请提供的一种多以太网交换机的信息交换方法进行说明。
请参考图1,图1为本申请实施例所提供的一种多以太网交换机的信息交换方法的流程图。
本实施例,该方法可以包括:
S101,收集对应的交换机的属性信息到成员数据库中;
本步骤旨在收集对应的交换机的属性信息到成员数据库中。其中,对应的交换机可以是指某个网络中的所有交换机,也可以是指定的某个范围的交换机,还可以具有同一类标识的交换机。
其中,交换机的属性信息,包括优先级信息、本机性能信息、资源现状信息、配置信 息、邻居信息。
其中,成员数据库也就是记录了需要管理的多个交换机的属性信息。
可选的,本步骤可以包括:
S1011,通过虚拟扩展局域网对对应的交换机进行消息广播;
S1012,接收到对应的交换机返回的属性信息;
S1013,将属性信息加入到成员数据库中。
可见,本可选方案中主要是说明如何对成员数据库中加入属性信息。本可选方案中,通过虚拟扩展局域网对对应的交换机进行消息广播;接收到对应的交换机返回的属性信息;将属性信息加入到成员数据库中。也就是,在虚拟网络标识(VNI,VXLAN Network Identifier)的虚拟扩展局域网基础上获取对应的交换机的属性信息。
可选的,上一可选方案中的S1011的步骤可以包括:
步骤1,建立虚拟扩展局域网;
步骤2,将对应的交换机加入至虚拟扩展局域网;
步骤3,通过虚拟扩展局域网对虚拟扩展局域网中的其他交换机进行消息广播。
可见,本可选方案中主要是说明如何进行消息广播。本可选方案中,建立虚拟扩展局域网;将交换机加入至虚拟扩展局域网的特定VNI;通过该VNI对虚拟扩展局域网中的其他交换机进行消息广播。
可选的,上一可选方案中的步骤1可以包括:
通过以太网虚拟专用网络***建立虚拟扩展局域网。
可见,本可选方案中主要是说明如何建立虚拟扩展局域网。本可选方案中,主要是通过以太网虚拟专用网络***建立虚拟扩展局域网。
可选的,上一可选方案中的步骤3可以包括:
通过虚拟链路将交换机的消息以广播方式发送至虚拟扩展局域网中的其他交换机。
可见,本可选方案中主要是说明如何进行消息广播。本可选方案中,主要是通过虚拟链路将交换机的消息以广播方式发送至虚拟扩展局域网中的其他交换机。
可选的,本实施例还可以包括:
步骤1,对成员数据库进行消息订阅;
步骤2,当成员数据库的数据发生变化时,从成员数据库获取新的邻居列表;其中,邻居列表记录有新的交换机的属性信息。
可见,本可选方案中,主要是说明在订阅的情况下如何更新成员数据库。本可选方案 中,对成员数据库进行消息订阅;当成员数据库的数据发生变化时,从成员数据库获取新的邻居列表;其中,邻居列表记录有新的交换机的属性信息。
S102,基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备;
在S101的基础上,基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备。
其中,主节点选择处理可以选择出对应的主控设备还可以选择出备份主控设备、计算者、参与者。其中,备份主控设备被设置为对主控设备进行备份,当主控设备出现故障时,备份主控设备接替主控设备执行操作。其中,计算者被设置为进行计算操作。其中,参与者就是该网络中需要管理的交换机设备。
可选的,本步骤可以包括:
基于主节点选择算法对成员数据库中的交换机的属性信息进行处理,得到主控设备。
可见,本可选方案中主要是说明如何确定得到主控设备。本可选方案中,基于主节点选择算法对成员数据库中的交换机的属性信息进行处理,得到主控设备。
当得到主控设备之后,还包括:
基于主节点选择算法对成员数据库中的交换机的属性信息进行处理,还得到备份主控设备、计算者、参与者。
可见,本可选方案中主要是说明还可以得到其他身份的设备。本可选方案中,基于主节点选择算法对成员数据库中的交换机的属性信息进行处理,还得到备份主控设备、计算者、参与者。
S103,主控设备通过唯一的通信地址接收到控制端发送的信息交换指令,基于信息交换指令对其他的交换机进行信息同步。
在S103的基础上,本步骤旨在主控设备通过唯一的通信地址接收到控制端发送的信息交换指令,基于信息交换指令对其他的交换机进行信息同步。
其中,接收到主控设备标识的交换机设备开始执行主控设备的操作,实现对其他的交换机进行信息同步。
可选的,本实施例还可以包括:
对主控设备设置唯一的通信地址,以便主控设备对外部设备提供数据或提供控制服务。
可见,本可选方案中主要是说明该主控设备还可以对外界提供数据和服务。本可选方案中,对主控设备设置唯一的通信地址,以便主控设备对外部设备提供数据或提供控制服务。
基于上述步骤,本实施例还提供一种多以太网交换机的管理***,包括:
交换机设备,被设置为收集对应的交换机的属性信息到成员数据库中;基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备;主控设备,被设置为通过唯一的通信地址接收到控制端发送的信息交换指令,基于信息交换指令对其他的交换机进行信息同步。
其中,主控设备,还被设置为基于唯一的通信地址对外部设备提供数据或提供控制服务。
其中,交换机设备,可以被设置为接收到交换机返回的属性信息;将属性信息加入到成员数据库中。
综上,本实施例通过先收集对应的交换机的属性信息到成员数据库中,然后基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备,也就是确定了多个交换机中的主节点设备,然后基于该主控设备对其他的交换机进行信息同步和数据配置,而不需要对每个交换机单独进行信息输入和配置操作,提高了对多个以太网交换机进行交换的效率。
以下通过另一可选的实施例,对本申请提供的一种多以太网交换机的信息交换方法进行说明。
本实施例中,该方法可以包括:
S201,主控设备通过唯一的通信地址接收到控制端发送的信息交换指令;其中,主控设备是控制端基于成员数据库中的交换机的属性信息进行主节点选择处理,得到的主控设备;
本步骤旨在主控设备通过唯一的通信地址接收到控制端发送的信息交换指令;其中,主控设备是基于成员数据库中的交换机的属性信息进行主节点选择处理,得到的主控设备。
S202,基于信息交换指令对其他的交换机进行信息同步。
在S201的基础上,本步骤旨在对其他的交换机进行信息同步。
可选的,本实施例还可以包括:
主控设备基于唯一的通信地址对外部设备提供数据或提供控制服务。
本可选主要是说明如何主控设备提供服务。本可选方案中,主控设备基于唯一的通信地址对外部设备提供数据或提供控制服务。
可选的,S202可以包括:
主控设备调度所有计算者对所有参与者进行信息同步;其中,计算者和参与者为基于成员数据库中的交换机的属性信息进行选择得到的。
本可选主要是说明如何进行信息同步。本可选方案中,主控设备调度所有计算者对所有 参与者进行信息同步;其中,计算者和参与者为基于成员数据库中的交换机的属性信息进行选择得到的。
可见,本实施例通过先收集对应的交换机的属性信息到成员数据库中,然后基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备,也就是确定了多个交换机中的主节点设备,然后基于该主控设备对其他的交换机进行信息同步和数据配置,而不需要对每个交换机单独进行信息输入和配置操作,提高了对多个以太网交换机进行交换的效率。
以下通过另一可选的实施例,对本申请提供的一种多以太网交换机的信息交换方法做进行说明。
本实施例通过在各交换机上部署共同的协议,实现对交换机大量交换机闲置资源的利用,把原来由外部服务器分别采集各个以太网交换机信息的方式,改为利用交换机自有资源进行采集和运算,再集中提供给外部管理***,为外部管理***提供统一的管理方式,使得外部管理***不必为大量交换机的场景做特殊的适配和使用大量计算资源。
在一些实施例中,本实施例通过被称为SISP(Switch Information synchronize Protocol,交换机信息同步协议)的协议,借助在数据中心网络非常常用的EVPN(Ethernet Virtual Private Network,以太网虚拟专用网络)***,通过加入特定的VNI,完成在较大型网络中的成员发现,再利用VNI内的广播,在所有参与的switch设备中相互通告各自的属性,包括但不限于优先级、本机能力、资源现状、配置信息、邻居信息等,通过指定的共同的算法,选择主控设备(master)、备份主控设备(standby)、计算者(calculator)、参与者(participator)。
其中,由主控设备调度所有计算者,实现所有参与者的信息采集、整合和计算,并由选择主控设备获得唯一的reporter(通信地址)地址,统一对外部提供数据和控制服务,对于更大型的网络,也可采用分布式的方式,由选择主控设备调度多个计算者,虚拟为单一的reporter为外部提供数据和控制服务。对于获得集中式策略配置的场景,选择主控设备及其指定的计算者也可根据收集到的数据,自动匹配配置决策。在选择主控设备失效时,由备份主控设备成为选择主控设备,并重新选取新的备份主控设备。
可选的,本实施例提供的协议和模型,不涉及相关的信息收集对象、整合算法和支持的策略配置等。
本实施例中,该方法可以包括:
步骤1,SISP(Switch Information synchronize Protocol,交换机信息同步协议)启 动,指定一个网桥,加入特定的VNI,订阅成员数据库变化,以获取邻居列表。
步骤2,BGP(EVPN support,EVPN***支持),自动导入此VNI,通过IMET(Inclusive Multieast Ethernet Tag,集成组播路由)路由引入,获取所有此VNI的成员,下发IMET路由,并把此VNI的路由信息下发成员数据库。
步骤3,利用VNI内的广播,在所有参与的交换机设备中相互通告各自的属性,包括但不限于本机能力,资源现状,邻居信息等。
步骤4,各参与者通过比较获得的属性信息,选取***中的选择主控设备,备份主控设备,计算者,参与者等角色。由选择主控设备汇总以保持成员间信息的同步.
其中,选择主控设备获得主导权,分配计算者参与计算,并向备份主控设备同步相关信息,选择主控设备本身也可以同时是参与者和计算者。
可选的,选择主控设备还可以根据配置获得***的唯一reporter身份,并使用reporter地址,向指定位置主动传送信息或被动开放为外部设备读取信息,可根据外部发送的信息在交换机***内进行配置和调度,也可根据配置策略进行自动的决策。
其中,备份主控设备可以同时是计算者和参与者,并获得选择主控设备的信息,在选择主控设备出现故障时接管***,成为选择主控设备。
其中,计算者接收选择主控设备的指令参与特定的运算,并将结果交给选择主控设备综合。
其中,参与者作为信息提供者,向计算者上送自身相关信息,包括但不限于邻接关系,端口流量等。
可见,本实施例通过先收集对应的交换机的属性信息到成员数据库中,然后基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备,也就是确定了多个交换机中的主节点设备,然后基于该主控设备对其他的交换机进行信息同步和数据配置,而不需要对每个交换机单独进行信息输入和配置操作,提高了对多个以太网交换机进行交换的效率。
下面对本申请实施例提供的多以太网交换机的信息交换装置进行介绍,下文描述的多以太网交换机的信息交换装置与上文描述的多以太网交换机的信息交换方法可相互对应参照。
请参考图2,图2为本申请实施例所提供的一种多以太网交换机的信息交换装置的结构示意图。
本实施例中,该装置可以包括:
数据收集模块100,被设置为收集对应的交换机的属性信息到成员数据库中;
主设备确定模块200,被设置为基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备;
信息交换模块300,被设置为主控设备通过唯一的通信地址接收到控制端发送的信息交换指令,基于信息交换指令对其他的交换机进行信息同步。
在一些实施例中,该数据收集模块100,可以被设置为通过虚拟扩展局域网对对应的交换机进行消息广播;接收到对应的交换机返回的属性信息;将属性信息加入到成员数据库中。
在一些实施例中,该通过虚拟扩展局域网对对应的交换机进行消息广播,包括:
建立虚拟扩展局域网;将交换机加入至虚拟扩展局域网的特定VNI;通过该VNI对虚拟扩展局域网中的其他交换机进行消息广播。
在一些实施例中,该建立虚拟扩展局域网,包括:
通过以太网虚拟专用网络***建立虚拟扩展局域网。
在一些实施例中,通过特定VNI对虚拟扩展局域网中的其他交换机进行消息广播,包括:
通过虚拟链路将消息以广播方式发送至虚拟扩展局域网中的其他交换机。
在一些实施例中,该装置还可以包括:
消息订阅模块,被设置为对成员数据库进行消息订阅;当成员数据库的数据发生变化时,从成员数据库获取新的邻居列表;其中,邻居列表记录有新的交换机的属性信息。
在一些实施例中,该交换机的属性信息,包括优先级信息、本机性能信息、资源现状信息、配置信息、邻居信息。
在一些实施例中,该主设备确定模块200,可以被设置为基于主节点选择算法对成员数据库中的交换机的属性信息进行处理,得到主控设备。
在一些实施例中,该装置,还可以包括:
其他设备确定模块,被设置为基于主节点选择算法对成员数据库中的交换机的属性信息进行处理,还得到备份主控设备、计算者、参与者。
在一些实施例中,该装置,还可以包括:
服务提供模块,被设置为对主控设备设置唯一的通信地址,以便主控设备对外部设备提供数据或提供控制服务。
本实施例还提供另一种多以太网交换机的信息交换装置。可以包括:
指令接收模块,被设置为通过唯一的通信地址接收到控制端发送的信息交换指令;其 中,主控设备是控制端基于成员数据库中的交换机的属性信息进行主节点选择处理,得到的主控设备;
信息同步模块,被设置为基于信息交换指令对其他的交换机进行信息同步。
在一些实施例中,该装置还可以包括:
服务提供模块,被设置为基于唯一的通信地址对外部设备提供数据或提供控制服务。
在一些实施例中,该信息同步模块,可以被设置为调度所有计算者对所有参与者进行信息同步;其中,计算者和参与者为基于成员数据库中的交换机的属性信息进行选择得到的。
可见,本实施例通过先收集对应的交换机的属性信息到成员数据库中,然后基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备,也就是确定了多个交换机中的主节点设备,然后基于该主控设备对其他的交换机进行信息同步和数据配置,而不需要对每个交换机单独进行信息输入和配置操作,提高了对多个以太网交换机进行交换的效率。
本申请还提供了一种计算设备,请参考图3,图3本申请实施例所提供的一种计算设备的结构示意图,该计算设备可包括:
存储器,被设置为存储计算机程序;
处理器,被设置为执行计算机程序时可实现如上述任意一种多以太网交换机的信息交换方法的步骤。
如图3所示,为计算设备的组成结构示意图,计算设备可以包括:处理器10、存储器11、通信接口12和通信总线13。处理器10、存储器11、通信接口12均通过通信总线13完成相互间的通信。
在本申请实施例中,处理器10可以为中央处理器(Central Processing Unit,CPU)、特定应用集成电路、数字信号处理器、现场可编程门阵列或者其他可编程逻辑器件等。
处理器10可以调用存储器11中存储的程序,可选的,处理器10可以执行异常IP识别方法的实施例中的操作。
存储器11中被设置为存放一个或者一个以上程序,程序可以包括程序代码,程序代码包括计算机操作指令,在本申请实施例中,存储器11中至少存储有被设置为实现以下功能的程序:
收集对应的交换机的属性信息到成员数据库中;
基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备;
主控设备通过唯一的通信地址接收到控制端发送的信息交换指令,基于信息交换指令对 其他的交换机进行信息同步。
在一种可能的实现方式中,存储器11可包括存储程序区和存储数据区,其中,存储程序区可存储操作***,以及至少一个功能所需的应用程序等;存储数据区可存储使用过程中所创建的数据。
此外,存储器11可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件或其他易失性固态存储器件。
通信接口12可以为通信模块的接口,被设置为与其他设备或者***连接。
当然,需要说明的是,图3所示的结构并不构成对本申请实施例中计算设备的限定,在实际应用中计算设备可以包括比图3所示的更多或更少的部件,或者组合某些部件。
可见,本实施例通过先收集对应的交换机的属性信息到成员数据库中,然后基于成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备,也就是确定了多个交换机中的主节点设备,然后基于该主控设备对其他的交换机进行信息同步和数据配置,而不需要对每个交换机单独进行信息输入和配置操作,提高了对多个以太网交换机进行交换的效率。
本申请还提供了一种非易失性可读存储介质,该非易失性可读存储介质上存储有计算机程序,计算机程序被处理器执行时可实现如上述任意一种多以太网交换机的信息交换方法的步骤。
该非易失性可读存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
对于本申请提供的非易失性可读存储介质的介绍请参照上述方法实施例,本申请在此不做赘述。
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。
专业人员还可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每 个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
以上对本申请所提供的一种多以太网交换机的信息交换方法、另一种多以太网交换机的信息交换方法、两种多以太网交换机的信息交换装置、管理***、计算设备以及非易失性可读存储介质进行了详细介绍。本文中应用了可选个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。

Claims (20)

  1. 一种多以太网交换机的信息交换方法,其特征在于,包括:
    收集对应的交换机的属性信息到成员数据库中;
    基于所述成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备;
    所述主控设备通过唯一的通信地址接收到控制端发送的信息交换指令,基于所述信息交换指令对其他的交换机进行信息同步。
  2. 根据权利要求1所述的信息交换方法,其特征在于,收集对应的交换机的属性信息到成员数据库中,包括:
    通过虚拟扩展局域网对对应的交换机进行消息广播;
    接收到对应的交换机返回的属性信息;
    将所述属性信息加入到所述成员数据库中。
  3. 根据权利要求2所述的信息交换方法,其特征在于,通过虚拟扩展局域网对对应的交换机进行消息广播,包括:
    建立虚拟扩展局域网;
    将对应的交换机加入至所述虚拟扩展局域网;
    通过虚拟扩展局域网对所述虚拟扩展局域网中的其他交换机进行消息广播。
  4. 根据权利要求3所述的信息交换方法,其特征在于,建立虚拟扩展局域网,包括:
    通过以太网虚拟专用网络***建立所述虚拟扩展局域网。
  5. 根据权利要求3所述的信息交换方法,其特征在于,通过虚拟扩展局域网对所述虚拟扩展局域网中的其他交换机进行消息广播,包括:
    通过虚拟链路将消息以广播方式发送至所述虚拟扩展局域网中的其他交换机。
  6. 根据权利要求1所述的信息交换方法,其特征在于,还包括:
    对所述成员数据库进行消息订阅;
    当所述成员数据库的数据发生变化时,从所述成员数据库获取新的邻居列表;其中,所述邻居列表记录有新的交换机的属性信息。
  7. 根据权利要求1所述的信息交换方法,其特征在于,所述交换机的属性信息,包括优先级信息、本机性能信息、资源现状信息、配置信息、邻居信息。
  8. 根据权利要求1所述的信息交换方法,其特征在于,基于所述成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备,包括:
    基于主节点选择算法对所述成员数据库中的交换机的属性信息进行处理,得到所述主控设备。
  9. 根据权利要求8所述的信息交换方法,其特征在于,当得到所述主控设备之后,还包括:
    基于主节点选择算法对所述成员数据库中的交换机的属性信息进行处理,还得到备份主控设备、计算者、参与者。
  10. 根据权利要求1所述的信息交换方法,其特征在于,还包括:
    对所述主控设备设置唯一的通信地址,以便所述主控设备对外部设备提供数据或提供控制服务。
  11. 一种多以太网交换机的信息交换方法,其特征在于,包括:
    主控设备通过唯一的通信地址接收到控制端发送的信息交换指令;其中,所述主控设备是控制端基于成员数据库中的交换机的属性信息进行主节点选择处理,得到的所述主控设备;
    基于所述信息交换指令对其他的交换机进行信息同步。
  12. 根据权利要求11所述的信息交换方法,其特征在于,还包括:
    所述主控设备基于唯一的通信地址对外部设备提供数据或提供控制服务。
  13. 根据权利要求11所述的信息交换方法,其特征在于,对其他的交换机进行信息同步,包括:
    所述主控设备调度所有计算者对所有参与者进行信息同步;其中,所述计算者和所述参与者为基于所述成员数据库中的交换机的属性信息进行选择得到的。
  14. 一种多以太网交换机的信息交换装置,其特征在于,包括:
    数据收集模块,被设置为收集对应的交换机的属性信息到成员数据库中;
    主设备确定模块,被设置为基于所述成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备;
    信息交换模块,被设置为通过唯一的通信地址接收到控制端发送的信息交换指令,基于所述信息交换指令对其他的交换机进行信息同步。
  15. 一种多以太网交换机的信息交换装置,其特征在于,包括:
    指令接收模块,被设置为通过唯一的通信地址接收到控制端发送的信息交换指令;其中,指令接收模块是控制端基于成员数据库中的交换机的属性信息进行主节点选择处理,得到的主控设备的指令接收模块;
    信息同步模块,被设置为基于所述信息交换指令对其他的交换机进行信息同步。
  16. 一种多以太网交换机的管理***,其特征在于,包括:
    交换机设备,被设置为收集对应的交换机的属性信息到成员数据库中;基于所述成员数据库中的交换机的属性信息进行主节点选择处理,得到主控设备;
    主控设备,被设置为通过唯一的通信地址接收到控制端发送的信息交换指令,基于所述信息交换指令对其他的交换机进行信息同步。
  17. 根据权利要求16所述的管理***,其特征在于,所述主控设备,还被设置为基于唯一的通信地址对外部设备提供数据或提供控制服务。
  18. 根据权利要求16所述的管理***,其特征在于,所述交换机设备,被设置为接收到交换机返回的属性信息;将所述属性信息加入到所述成员数据库中。
  19. 一种计算设备,其特征在于,包括:
    存储器,被设置为存储计算机程序;
    处理器,被设置为执行所述计算机程序时实现如权利要求1至13任一项所述的多以太网交换机的信息交换方法的步骤。
  20. 一种非易失性可读存储介质,其特征在于,所述非易失性可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至13任一项所述的多以太网交换机的信息交换方法的步骤。
PCT/CN2023/100010 2022-12-06 2023-06-13 一种多以太网交换机的信息交换方法及相关装置 WO2024119751A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211554114.1A CN115580542B (zh) 2022-12-06 2022-12-06 一种多以太网交换机的信息交换方法及相关装置
CN202211554114.1 2022-12-06

Publications (1)

Publication Number Publication Date
WO2024119751A1 true WO2024119751A1 (zh) 2024-06-13

Family

ID=84590255

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/100010 WO2024119751A1 (zh) 2022-12-06 2023-06-13 一种多以太网交换机的信息交换方法及相关装置

Country Status (2)

Country Link
CN (1) CN115580542B (zh)
WO (1) WO2024119751A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580542B (zh) * 2022-12-06 2023-03-03 苏州浪潮智能科技有限公司 一种多以太网交换机的信息交换方法及相关装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160197853A1 (en) * 2015-01-05 2016-07-07 Brocade Communications Systems, Inc. Distributed bidirectional forwarding detection protocol (d-bfd) for cluster of interconnected switches
CN110995502A (zh) * 2019-12-18 2020-04-10 迈普通信技术股份有限公司 网络配置管理方法、装置、交换设备及可读存储介质
CN111147527A (zh) * 2020-03-09 2020-05-12 深信服科技股份有限公司 一种物联网***及其设备认证方法、装置、设备及介质
CN114362874A (zh) * 2022-03-21 2022-04-15 北京国科天迅科技有限公司 主时钟设备确定方法、装置、电子设备及存储介质
CN115150273A (zh) * 2022-06-30 2022-10-04 联想(北京)有限公司 一种升级处理方法及装置
CN115580542A (zh) * 2022-12-06 2023-01-06 苏州浪潮智能科技有限公司 一种多以太网交换机的信息交换方法及相关装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112114533B (zh) * 2020-08-26 2024-05-03 深圳奇迹智慧网络有限公司 物联网数据处理方法、装置、计算机设备和存储介质
CN114401067B (zh) * 2021-12-24 2024-06-11 浙江中控技术股份有限公司 环网通讯的时间同步方法、可编程门阵列及环网通讯***

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160197853A1 (en) * 2015-01-05 2016-07-07 Brocade Communications Systems, Inc. Distributed bidirectional forwarding detection protocol (d-bfd) for cluster of interconnected switches
CN110995502A (zh) * 2019-12-18 2020-04-10 迈普通信技术股份有限公司 网络配置管理方法、装置、交换设备及可读存储介质
CN111147527A (zh) * 2020-03-09 2020-05-12 深信服科技股份有限公司 一种物联网***及其设备认证方法、装置、设备及介质
CN114362874A (zh) * 2022-03-21 2022-04-15 北京国科天迅科技有限公司 主时钟设备确定方法、装置、电子设备及存储介质
CN115150273A (zh) * 2022-06-30 2022-10-04 联想(北京)有限公司 一种升级处理方法及装置
CN115580542A (zh) * 2022-12-06 2023-01-06 苏州浪潮智能科技有限公司 一种多以太网交换机的信息交换方法及相关装置

Also Published As

Publication number Publication date
CN115580542B (zh) 2023-03-03
CN115580542A (zh) 2023-01-06

Similar Documents

Publication Publication Date Title
JP6835444B2 (ja) ソフトウェア定義型データセンター、並びにそのためのサービスクラスタスケジューリング方法及びトラフィック監視方法
US7978631B1 (en) Method and apparatus for encoding and mapping of virtual addresses for clusters
JP4065411B2 (ja) 複製スイッチ上で取り扱われるストリームへのアクセス管理
US11445013B2 (en) Method for changing member in distributed system and distributed system
KR20060079117A (ko) 상태 동기를 갖는 클러스터에 대한 버츄얼 멀티캐스트라우팅
JP2022533238A (ja) Tsn内のコントローラ間の通信のための方法、装置、およびシステム
CN103716281B (zh) 控制方法、电子设备和服务器
US10581697B2 (en) SDN controlled PoE management system
CN109510770B (zh) 负载均衡节点之间的信息同步方法、装置和处理设备
CN105162704A (zh) Overlay网络中组播复制的方法及装置
WO2024119751A1 (zh) 一种多以太网交换机的信息交换方法及相关装置
CN108427619B (zh) 日志管理方法、装置、计算设备及存储介质
US20170302474A1 (en) Network as Service Service Cross-Domain Orchestration Method, Orchestration Device, and Control Device
WO2021170033A1 (zh) 一种网络配置方法及装置
Wang et al. A multi-domain SDN scalability architecture implementation based on the coordinate controller
GB2505230B (en) Leader node appointment
TW202103475A (zh) 終端設備管理方法、伺服器及終端設備
WO2010109767A1 (ja) データ同期システム、データ同期方法、及び同期管理サーバ
CN111541608B (zh) 一种网络通信的方法、***以及相关装置
WO2021083033A1 (zh) 一种中间会话管理功能i-smf确定方法和设备
WO2021143183A1 (zh) 一种部署虚拟机的方法及相关装置
Marandi et al. Bloom filter-based routing for dominating set-based service-centric networks
CN109587062B (zh) 负载均衡信息同步的方法、装置和处理设备
CN112003825A (zh) 一种基于sdn的虚拟网络隔离方法及sdn控制器
CN113472782B (zh) 自动变更访问控制配置方法、装置、设备及存储介质