Skip to content

vpp bond with active-backup mode faliure #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
BurlyLuo opened this issue Nov 5, 2021 · 1 comment
Open

vpp bond with active-backup mode faliure #1

BurlyLuo opened this issue Nov 5, 2021 · 1 comment

Comments

@BurlyLuo
Copy link

BurlyLuo commented Nov 5, 2021

vpp# show bond                                                                                                                                                          
interface name   sw_if_index  mode          load balance  active members members
BondEthernet0    3            active-backup active-backup 1              2

vpp# show hardware-interfaces 
              Name                Idx   Link  Hardware
BondEthernet0                      3     up   BondEthernet0
  Link speed: unknown
  Ethernet address 00:0c:29:ff:91:df
ens192                             1     up   ens192
  Link speed: 10 Gbps
  RX Queues:
    queue thread         mode      
    0     vpp_wk_0 (1)   polling   
  Ethernet address 00:0c:29:ff:91:df
  VMware VMXNET3
    carrier up full duplex mtu 9206 
    flags: admin-up pmd maybe-multiseg
    Devargs: 
    rx: queues 1 (max 16), desc 1024 (min 128 max 4096 align 1)
    tx: queues 3 (max 8), desc 1024 (min 512 max 4096 align 1)
    pci: device 15ad:07b0 subsystem 15ad:07b0 address 0000:0b:00.00 numa 0
    max rx packet len: 16384
    promiscuous: unicast off all-multicast on
    vlan offload: strip off filter off qinq off
    rx offload avail:  vlan-strip udp-cksum tcp-cksum tcp-lro vlan-filter 
                       jumbo-frame scatter rss-hash 
    rx offload active: jumbo-frame scatter 
    tx offload avail:  vlan-insert udp-cksum tcp-cksum tcp-tso multi-segs 
    tx offload active: multi-segs 
    rss avail:         ipv4-tcp ipv4 ipv6-tcp ipv6 
    rss active:        none
    tx burst function: vmxnet3_xmit_pkts
    rx burst function: vmxnet3_recv_pkts

    tx frames ok                                        1512
    tx bytes ok                                       159464
    rx frames ok                                       33986
    rx bytes ok                                      7977019
    extended stats:
      rx_good_packets                                  33986
      tx_good_packets                                   1512
      rx_good_bytes                                  7977019
      tx_good_bytes                                   159464
      rx_q0_packets                                    33986
      rx_q0_bytes                                    7977019
      tx_q0_packets                                     1053
      tx_q0_bytes                                     125956                                                                                                            
      tx_q1_packets                                      307
      tx_q1_bytes                                      22330
      tx_q2_packets                                      152
      tx_q2_bytes                                      11178
ens224                             2    down  ens224
  Link speed: 10 Gbps
  RX Queues:
    queue thread         mode      
    0     vpp_wk_1 (2)   polling   
  Ethernet address 00:0c:29:ff:91:df
  VMware VMXNET3
    carrier down 
    flags: pmd maybe-multiseg
    Devargs: 
    rx: queues 1 (max 16), desc 1024 (min 128 max 4096 align 1)
    tx: queues 3 (max 8), desc 1024 (min 512 max 4096 align 1)
    pci: device 15ad:07b0 subsystem 15ad:07b0 address 0000:13:00.00 numa 0
    max rx packet len: 16384
    promiscuous: unicast off all-multicast off
    vlan offload: strip off filter off qinq off
    rx offload avail:  vlan-strip udp-cksum tcp-cksum tcp-lro vlan-filter 
                       jumbo-frame scatter rss-hash 
    rx offload active: jumbo-frame scatter 
    tx offload avail:  vlan-insert udp-cksum tcp-cksum tcp-tso multi-segs 
    tx offload active: multi-segs 
    rss avail:         ipv4-tcp ipv4 ipv6-tcp ipv6 
    rss active:        none
    tx burst function: vmxnet3_xmit_pkts
    rx burst function: vmxnet3_recv_pkts

    tx frames ok                                         971
    tx bytes ok                                       110252
    rx frames ok                                       33636
    rx bytes ok                                      7904315
    extended stats:
      rx_good_packets                                  33636
      tx_good_packets                                    971
      rx_good_bytes                                  7904315
      tx_good_bytes                                   110252
      rx_q0_packets                                    33636
      rx_q0_bytes                                    7904315
      tx_q0_packets                                      797                                                                                                            
      tx_q0_bytes                                      97618
      tx_q1_packets                                        1
      tx_q1_bytes                                         60
      tx_q2_packets                                      173
      tx_q2_bytes                                      12574
local0                             0    down  local0
  Link speed: unknown
  local

all the bond members have the same mac address.
so, the bond can't work well.

@jinshaohui
Copy link
Contributor

mode:active-backup。此模式使用主备策略(热备)。在所有bond的物理网卡中,同一时刻只有一张网卡被激活,当且仅当活动网卡失效时才会激活其他的网卡。这种模式下做bond的两张或多张网卡的MAC地址和Bond虚拟网卡的MAC地址相同,而Bond的MAC地址是Bond创建启动后活动网卡(Active Slave)的MAC地址。这种模式要求主备网卡能快速的切换,即当主网卡出现故障后能迅速地切换至备用网卡。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants