CN113472635A - Method and system for realizing dual-port Active-Active redundancy protection - Google Patents

Method and system for realizing dual-port Active-Active redundancy protection Download PDF

Info

Publication number
CN113472635A
CN113472635A CN202110600215.7A CN202110600215A CN113472635A CN 113472635 A CN113472635 A CN 113472635A CN 202110600215 A CN202110600215 A CN 202110600215A CN 113472635 A CN113472635 A CN 113472635A
Authority
CN
China
Prior art keywords
port
network
active
physical
ports
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110600215.7A
Other languages
Chinese (zh)
Inventor
李建辉
吴炎
陈栋
罗春
魏兴华
张文件
李春
臧冰凌
杨禹航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Woqu Technology Co ltd
Original Assignee
Hangzhou Woqu 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 Hangzhou Woqu Technology Co ltd filed Critical Hangzhou Woqu Technology Co ltd
Priority to CN202110600215.7A priority Critical patent/CN113472635A/en
Publication of CN113472635A publication Critical patent/CN113472635A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the Linux technology and discloses a dual-port Active-Active redundancy protection method and a dual-port Active-Active redundancy protection system; physical ports corresponding to the Infiniband network card are mlx0 and mlx1 respectively, virtual interfaces ib0 and ib1 are set for the physical ports through an SR-IOV technology, and virtual interfaces ib2 and ib3 are set for ml 1; forming virtual interfaces ib0 and ib2 into a bond0 port and forming virtual interfaces ib1 and ib3 into a bond1 port by using a bonding technology; setting a network port, namely setting the formed bond port as a different network port; at least one of the physical ports in different states is active, and then both the two corresponding network ports are active. The invention ensures the continuity of network I/O and the continuity of service and provides higher network bandwidth.

Description

Method and system for realizing dual-port Active-Active redundancy protection
Technical Field
The invention relates to the Linux technology, in particular to a method and a system for realizing dual-port Active-Active redundancy protection based on an Infiniband network.
Background
In the current market, the Linux technology can only provide an active-standby scheme for redundancy of an Infiniband network; therefore, the utilization rate of the network bandwidth is low, and the continuity of the network and the continuity of the service cannot be well guaranteed.
Increasing bandwidth of an Infiniband network does not improve individual Infiniband network utilization by interworking the Infiniband network with the interconnect ahead of the Ethernet network.
The patent names are: the vNIC binding method of multiple Infiniband gateways has the following application numbers: CN201310349336.4, application date: 2013-08-12, the patent application discloses a vNIC binding method for multiple Infiniband gateways, which distinguishes different vNICs virtualized by multiple Infiniband gateways by using identification information of the gateways, binds the distinguished vNICs with specific IP information, and enables different IP sections to be transmitted through the determined gateways, thereby realizing bandwidth multiplication between an Infiniband network and an Ethernet network, breaking through the bottleneck between the Infiniband network and the Ethernet network, realizing high-speed data exchange between different types of networks, selecting an IP network section and the passed Infiniband gateway according to different machine names corresponding to different IP network sections in application, realizing load balance of the multiple Infiniband gateways, and particularly having more obvious effect in large data application environments such as seismic data processing and the like.
The patent name: a method and device for automatically configuring Linux network card binding are disclosed, the application number is: CN201810940862.0, filed as follows: 2018-08-17, the patent application discloses that different parameters can be configured for different network card types by automatically bonding an ethernet card.
The prior art provides interconnection and intercommunication between an Infiniband network and an Ethernet network to increase bandwidth, and configures parameters for different network cards through a bonding technology; physical ports are guaranteed to be in an active state, and the utilization rate of the individual Infiniband network is not improved.
Disclosure of Invention
Aiming at the prior art, the invention provides interconnection and intercommunication between an Infiniband network and an Ethernet network so as to increase the bandwidth, and the parameters are configured aiming at different network cards through the bonding technology; the physical port is ensured to be in an Active state, the problem of improving the utilization rate of an independent Infiniband network is solved, and a method and a system for realizing dual-port Active-Active redundancy protection are provided.
In order to solve the technical problem, the invention is solved by the following technical scheme:
a method for realizing dual-port Active-Active redundancy protection comprises the following steps,
the physical ports of the Infiniband network card are arranged, the physical ports of the dual-port Infiniband network card on the server are mlx0 and mlx1 respectively;
setting virtual interfaces, namely setting virtual interfaces ib0 and ib1 by an SR-IOV technology aiming at a physical port mlx0, and setting virtual interfaces ib2 and ib3 by the SR-IOV technology aiming at mlx 1;
forming a Bond port, forming virtual interfaces ib0 and ib2 into a Bond0 port by using a bonding technology, and forming virtual interfaces ib1 and ib3 into a Bond1 port by using the bonding technology;
setting a network port, namely setting the formed bond port as a different network port; and judging the state of the network ports, wherein the state of the network port of at least one physical port is an active state, and the states of the network ports corresponding to the two physical ports of the Infiniband network card are both active states.
Preferably, the two physical ports comprise one card of the two physical ports or two cards of the one physical port.
The redundancy protection is carried out on the two Infiniband ports, the high-availability switching capability is provided, and meanwhile, the states of the two physical ports are both active-active states instead of active-standby states, and the network bandwidth of the active-active states is doubled compared with that of the active-standby states.
Preferably, the network port states of the physical ports include that the network port states of the two physical ports are both active states or one physical port is in an active state and the other physical port is in a standby state;
the network port states of the two physical ports are active states, and the network transmission of the network ports is transmitted through the network ports corresponding to the physical ports respectively;
one physical port is in an active state, and the other physical port is in a standby state, so that network transmission of the network ports is transmitted through the physical port of which the physical port network port state is in the active state.
Preferably, the method further comprises recovering the physical port in the network port standby state, and when the physical port in the network port standby state is recovered to the active state, the network transmission of the network port is recovered to the physical port for transmission.
Preferably, 2 Infiniband network cards are included on 1 server.
Preferably, the network ports include data network ports and traffic network ports.
A redundant protection system for realizing dual-port Active-Active comprises servers, wherein each server is provided with 2 Infiniband network cards, one of the Infiniband network cards is respectively mlx0 corresponding to a physical port, and the other Infiniband network card is respectively mlx1 corresponding to a physical port;
the virtual interface setting module sets a virtual port for each network card through an SR-IOV technology; the physical port ml0 sets virtual interfaces ib0 and ib1 through an SR-IOV technology, and the ml1 sets virtual interfaces ib2 and ib3 through the SR-IOV technology;
a bond port forming module, which forms virtual interfaces ib0 and ib2 into a bond0 port by using bonding technology, and forms virtual interfaces ib1 and ib3 into a bond1 port by using bonding technology;
the network port setting module is used for respectively setting the formed bond port as a service network port and a data network port;
in the network switching module, one physical port is in an active state, and the other physical port is in a standby state, so that network transmission of the network ports is transmitted through the physical port of which the physical port network port state is in the active state.
Preferably, the system further comprises a network recovery module, and when the physical port status of the network port standby status is recovered to active status, the network transmission of the network port is recovered to the physical port for transmission.
SR-IOV is a network card direct-through technology, is a virtualization solution based on hardware, and can improve performance and scalability. The SR-IOV virtualizes one Infiniband network card into multiple virtual ports, and each virtual port is directly allocated to one virtual machine, allowing efficient sharing of virtual ports between virtual machines, and is implemented by hardware.
The binding technology is realized on the kernel level of the linux system, and n physical ports on the server are abstractly bound into a logical network card on the basis of the network card binding technology under the linux system, so that the network throughput is improved, and the network redundancy and load are realized.
Due to the adoption of the technical scheme, the invention has the remarkable technical effects that: the invention realizes the Active-Active redundant protection and high-availability protection of two Infiniband network ports by combining the SRIOV technology and the bonding technology, ensures the network I/O continuity and the service continuity, provides higher network bandwidth and improves the economic benefit of enterprises.
Drawings
FIG. 1 is a flow chart of the present invention.
Fig. 2 is a system diagram of embodiment 3 of the present invention.
Fig. 3 is a system diagram of embodiment 4 of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Example 1
A method for realizing dual-port Active-Active redundancy protection comprises the following steps,
the physical ports of the Infiniband network card are arranged, the physical ports of the dual-port Infiniband network card on the server are mlx0 and mlx1 respectively;
setting a virtual interface; setting virtual interfaces ib0 and ib1 for a physical port mlx0 through an SR-IOV technology, and setting virtual interfaces ib2 and ib3 for mlx1 through the SR-IOV technology;
forming a Bond port; virtual interfaces ib0 and ib2 form a bond0 port by using a bonding technology, and virtual interfaces ib1 and ib3 form a bond1 port by using the bonding technology;
setting a network port, namely setting the formed bond port as a different network port; and judging the state of the network ports, wherein the state of the network port of at least one physical port is an active state, and the states of the network ports corresponding to the two physical ports of the Infiniband network card are both active states.
The two physical ports include one card of the two physical ports or two cards of the one physical port.
The redundancy protection is carried out on the two Infiniband ports, the high-availability switching capability is provided, and meanwhile, the states of the two physical ports are both active-active states instead of active-standby states, and the network bandwidth of the active-active states is doubled compared with that of the active-standby states.
The network port states of the physical ports comprise that the network port states of the two physical ports are both active states or one physical port is in an active state and the other physical port is in a standby state;
the network port states of the two physical ports are active states, and the network transmission of the network ports is transmitted through the network ports corresponding to the physical ports respectively;
one physical port is in an active state, and the other physical port is in a standby state, so that network transmission of the network ports is transmitted through the physical port of which the physical port network port state is in the active state.
The 1 server includes 2 Infiniband network cards.
The network ports include data network ports and traffic network ports.
SR-IOV is a network card direct-through technology, is a virtualization solution based on hardware, and can improve performance and scalability. The SR-IOV virtualizes one Infiniband network card into multiple virtual ports, and each virtual port is directly allocated to one virtual machine, allowing efficient sharing of virtual ports between virtual machines, and is implemented by hardware.
The binding technology is realized on the kernel level of the linux system, and n physical ports on the server are abstractly bound into a logical network card on the basis of the network card binding technology under the linux system, so that the network throughput is improved, and the network redundancy and load are realized.
Example 2
On the basis of embodiment 1, this embodiment further includes that when the physical port in the standby state is restored to the active state, the network transmission of the network port is restored to the original physical port for transmission.
The physical port mlx0 is in a standby state, the physical port mlx1 is in an active state, and when the physical port mlx0 transmits, the transmission is performed through the physical port mlx 1; when the physical port mlx0 returns to active state, it returns to the physical port mlx0 for transmission.
Example 3
On the basis of embodiment 1, a system for realizing a dual-port Active-Active redundancy protection method based on embodiment 1 is realized, and the system is
The system comprises servers, wherein each server is provided with 2 Infiniband network cards, the physical ports corresponding to one Infiniband network card are mlx0 respectively, and the physical ports corresponding to the other Infiniband network card are mlx1 respectively, and the system is characterized by further comprising a virtual interface setting module, a bond port forming module, a network port setting module and a network switching module;
the virtual interface setting module sets a virtual port for each network card through an SR-IOV technology; the physical port ml0 sets virtual interfaces ib0 and ib1 through an SR-IOV technology, and the ml1 sets virtual interfaces ib2 and ib3 through the SR-IOV technology;
a bond port forming module, which forms virtual interfaces ib0 and ib2 into a bond0 port by using bonding technology, and forms virtual interfaces ib1 and ib3 into a bond1 port by using bonding technology;
the network port setting module is used for respectively setting the formed bond port as a service network port and a data network port;
in the network switching module, one physical port is in an active state, and the other physical port is in a standby state, so that network transmission of the network ports is transmitted through the physical port of which the physical port network port state is in the active state. .
Example 4
In the network switching module of this embodiment based on embodiment 3, if one physical port is in an active state and the other physical port is in a standby state, network transmission of the network ports is transmitted through the physical port of which the physical port network port state is in the active state.

Claims (7)

1. A method for realizing dual-port Active-Active redundancy protection is characterized by comprising the following steps:
the physical ports of the Infiniband network card are arranged, the physical ports of the dual-port Infiniband network card on the server are mlx0 and mlx1 respectively;
setting a virtual interface; setting virtual interfaces ib0 and ib1 for a physical port mlx0 through an SR-IOV technology, and setting virtual interfaces ib2 and ib3 for mlx1 through the SR-IOV technology;
forming a Bond port; virtual interfaces ib0 and ib2 form a bond0 port by using a bonding technology, and virtual interfaces ib1 and ib3 form a bond1 port by using the bonding technology;
setting a network port, namely setting the formed bond port as a different network port; and judging the state of the network ports, wherein the state of the network port of at least one physical port is an active state, and the states of the network ports corresponding to the two physical ports of the Infiniband network card are both active states.
2. The method according to claim 1, wherein the network port status of the physical port includes that the network port status of the two physical ports are both Active status or one physical port is Active status and the other physical port is standby status;
the network port states of the two physical ports are active states, and the network transmission of the network ports is transmitted through the network ports corresponding to the physical ports respectively;
one physical port is in an active state, and the other physical port is in a standby state, so that network transmission of the network ports is transmitted through the physical port of which the physical port network port state is in the active state.
3. The method according to claim 1, further comprising recovering a physical port in a network port standby state, wherein when the physical port in the network port standby state is recovered to an Active state, the network transmission of the network port is recovered to the physical port for transmission.
4. The method for implementing dual-port Active-Active redundancy protection according to claim 1, wherein the server comprises 2 Infiniband network cards.
5. The method of claim 1, wherein the network ports include a data network port and a service network port.
6. A redundant protection system for realizing dual-port Active-Active comprises servers, wherein each server is provided with 2 Infiniband network cards, the physical ports corresponding to one Infiniband network card are mlx0 respectively, and the physical ports corresponding to the other Infiniband network card are mlx1 respectively, and the redundant protection system is characterized by further comprising a virtual interface setting module, a bond port forming module, a network port setting module and a network switching module;
the virtual interface setting module sets a virtual port for each network card through an SR-IOV technology; the physical port ml0 sets virtual interfaces ib0 and ib1 through an SR-IOV technology, and the ml1 sets virtual interfaces ib2 and ib3 through the SR-IOV technology;
a bond port forming module, which forms virtual interfaces ib0 and ib2 into a bond0 port by using bonding technology, and forms virtual interfaces ib1 and ib3 into a bond1 port by using bonding technology;
the network port setting module is used for respectively setting the formed bond port as a service network port and a data network port;
in the network switching module, one physical port is in an active state, and the other physical port is in a standby state, so that network transmission of the network ports is transmitted through the physical port of which the physical port network port state is in the active state.
7. A redundant protection system for realizing dual-port Active-Active is characterized by further comprising a network recovery module, wherein when the state of a physical port network port in a network port standby state is recovered to an Active state, the network transmission of the network port is recovered to the physical port for transmission.
CN202110600215.7A 2021-05-31 2021-05-31 Method and system for realizing dual-port Active-Active redundancy protection Pending CN113472635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110600215.7A CN113472635A (en) 2021-05-31 2021-05-31 Method and system for realizing dual-port Active-Active redundancy protection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110600215.7A CN113472635A (en) 2021-05-31 2021-05-31 Method and system for realizing dual-port Active-Active redundancy protection

Publications (1)

Publication Number Publication Date
CN113472635A true CN113472635A (en) 2021-10-01

Family

ID=77871921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110600215.7A Pending CN113472635A (en) 2021-05-31 2021-05-31 Method and system for realizing dual-port Active-Active redundancy protection

Country Status (1)

Country Link
CN (1) CN113472635A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314367A (en) * 2022-07-20 2022-11-08 杭州熠芯科技有限公司 Network card hot standby method for double-network-port double-host-machine interface

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011072536A1 (en) * 2009-12-17 2011-06-23 研祥智能科技股份有限公司 Dual redundant device and system of multiple netword cards under vxworks system
CN102833237A (en) * 2012-08-14 2012-12-19 南京斯坦德通信股份有限公司 InfiniBand protocol conversion method and system based on bridging
CN104602285A (en) * 2014-12-31 2015-05-06 华为技术有限公司 Disaster recovery method and equipment
CN105790991A (en) * 2014-12-24 2016-07-20 中兴通讯股份有限公司 Link aggregation method and system for virtualization server and intelligent network adapter thereof
US9537798B1 (en) * 2016-01-19 2017-01-03 International Business Machines Corporation Ethernet link aggregation with shared physical ports
US9628374B1 (en) * 2016-01-19 2017-04-18 International Business Machines Corporation Ethernet link aggregation with shared physical ports
CN107181679A (en) * 2016-03-09 2017-09-19 中兴通讯股份有限公司 A kind of port binding implementation method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011072536A1 (en) * 2009-12-17 2011-06-23 研祥智能科技股份有限公司 Dual redundant device and system of multiple netword cards under vxworks system
CN102833237A (en) * 2012-08-14 2012-12-19 南京斯坦德通信股份有限公司 InfiniBand protocol conversion method and system based on bridging
CN105790991A (en) * 2014-12-24 2016-07-20 中兴通讯股份有限公司 Link aggregation method and system for virtualization server and intelligent network adapter thereof
CN104602285A (en) * 2014-12-31 2015-05-06 华为技术有限公司 Disaster recovery method and equipment
US9537798B1 (en) * 2016-01-19 2017-01-03 International Business Machines Corporation Ethernet link aggregation with shared physical ports
US9628374B1 (en) * 2016-01-19 2017-04-18 International Business Machines Corporation Ethernet link aggregation with shared physical ports
CN107181679A (en) * 2016-03-09 2017-09-19 中兴通讯股份有限公司 A kind of port binding implementation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹连刚等: "Linux下双网卡绑定技术的实现", 《甘肃科技》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314367A (en) * 2022-07-20 2022-11-08 杭州熠芯科技有限公司 Network card hot standby method for double-network-port double-host-machine interface
CN115314367B (en) * 2022-07-20 2024-06-21 杭州熠芯科技有限公司 Network card hot standby method with double network ports and double host interfaces

Similar Documents

Publication Publication Date Title
US11695591B2 (en) In-band management interface with user space datapath
CN103201721B (en) The system and method for live migration of virtual machine
EP2912805B1 (en) Network virtualization over infiniband
EP2640013B1 (en) Method And Apparatus Providing Network Redundancy And High Availability To Remote Network Nodes
US9083645B2 (en) Systems and methods providing reverse path forwarding compliance for a multihoming virtual routing bridge
Grun Introduction to infiniband for end users
JP5529251B2 (en) Method and system for providing a logical network layer for transmitting input / output data
US8176204B2 (en) System and method for multi-host sharing of a single-host device
US11392995B2 (en) Efficient translation and load balancing of OpenRTB and header bidding requests
US11637773B2 (en) Scaled-out transport as connection proxy for device-to-device communications
US10560283B2 (en) System and method for a multi-tenant datacenter with layer 2 interconnection and cloud storage
CN114157533B (en) Message cross-board multicast replication forwarding method and system based on CLOS architecture
US20120314715A1 (en) Method and system for implementing a multi-chassis link aggregation group in a network
US12072823B2 (en) Flexible high-availability computing with parallel configurable fabrics
CN118266203A (en) Intelligent NIC grouping
US20090150563A1 (en) Control path I/O virtualisation
US10541842B2 (en) Methods and apparatus for enhancing virtual switch capabilities in a direct-access configured network interface card
US20170109824A1 (en) Stock trading system
CN113472635A (en) Method and system for realizing dual-port Active-Active redundancy protection
CN103825815B (en) Method, equipment and the system of redundancy backup are carried out between network virtual edge device
CN109412980B (en) BRAS backup method and device
JP2024108163A (en) Cross-card link aggregation method, device, and medium for data processor virtual port
CN110943939B (en) Network card unit, distributed network switch system and networking method
CN116455836A (en) Intelligent network card, cloud server and traffic forwarding method
CN104933001A (en) Double-controller data communication method based on RapidIO technology

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211001

RJ01 Rejection of invention patent application after publication