Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Network card bonding

2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

There are 7 bonding modes for Linux payment:

Check whether Linux supports Nic bonding mode:

[root@yhj02node156236 network-scripts] # modinfo bonding

Filename: / lib/modules/2.6.32-504.23.4.el6.centos.plus.x86_64/kernel/drivers/net/bonding/bonding.ko

Author: Thomas Davis, tadavis@lbl.gov and many others

Description: Ethernet Channel Bonding Driver, v3.6.0

Version: 3.6.0

License: GPL

Srcversion: 653FCC4D7CEFA2879B28255

Depends: ipv6

Vermagic: 2.6.32-504.23.4.el6.centos.plus.x86_64 SMP mod_unload modversions

Parm: max_bonds:Max number of bonded devices (int)

Parm: tx_queues:Max number of transmit queues (default = 16) (int)

Parm: num_grat_arp:Number of gratuitous ARP packets to send on failover event (int)

Parm: num_unsol_na:Number of unsolicited IPv6 Neighbor Advertisements packets to send on failover event (int)

Parm: miimon:Link check interval in milliseconds (int)

Parm: updelay:Delay before considering link up, in milliseconds (int)

Parm: downdelay:Delay before considering link down, in milliseconds (int)

Parm: use_carrier:Use netif_carrier_ok (vs MII ioctls) in miimon; 0 for off, 1 for on (default) (int)

Parm: mode:Mode of operation; 0 for balance-rr, 1 for active-backup, 2 for balance-xor, 3 for broadcast, 4 for 802.3ad, 5 for balance-tlb, 6 for balance-alb (charp)

Parm:

Mode=0 balance load balancer + fault tolerance:

Link load balancing, increase bandwidth, support fault tolerance, a link failure will automatically switch the normal link. The switch needs to be configured with access port, static aggregation port, and Cisco is called port channel.

Features: the package sequence of transmitting data packets is transmitted sequentially (that is, the first package goes eth0, the next package goes eth2. . This mode provides load balancing, increased bandwidth and fault tolerance, but we know that if a connection or session's package is sent from different interfaces and passes through different links midway, the problem of packet disorderly arrival is likely to occur on the client side, and disorderly packets need to be re-requested to be sent, so the network throughput will decline.

Mode=1 active-backup

In the active / standby mode, only one network card is active, and the other is a standby standby. All traffic is processed on the active link. If the switch is configured with bundling, it will not work, because the switch sends packets to two network cards, and half of the packets are discarded.

Features: only one device is active, when one goes down and the other is immediately switched to the primary device by backup. The mac address is externally visible, and from the outside, the MAC address of the bond is unique to avoid confusion in the switch (switch).

This mode only provides fault tolerance; thus it can be seen that the advantage of this algorithm is that it can provide high availability of network connections, but its resource utilization is low, only one interface is working, and when there are N network interfaces, the resource utilization rate is 1max N

Mode=3 broadcast

This means that all packets are sent from all network interfaces, which is uneven, only redundant, but too wasteful of resources. This model applies to the financial industry because they need highly reliable networks and do not allow any problems. It is necessary to cooperate with the aggregation of the switch in a non-negotiated manner (static aggregation).

Features: transmitting each packet on each slave interface, this mode provides fault tolerance

Mode=4 802.3ad dynamic Link aggregation LACP

Indicates that it supports the 802.3ad protocol and cooperates with the aggregate LACP mode of the switch (requires xmit_hash_policy). The standard requires all devices to aggregate at the same rate and duplex mode, and, like other bonding load balancing modes except balance-rr mode, no connection can use the bandwidth of more than one interface.

=

Port aggregation:

We can bundle multiple physical ports on the switch to form a logical port, which we call Aggregate Port (hereinafter referred to as AP).

Link aggregation is divided into dynamic link aggregation and static link aggregation.

1) in static aggregation mode, no protocol negotiation is enabled on each member port in the aggregation group, and the port status (join and leave) takes effect directly according to the manual method.

2) in dynamic aggregation (LACP) mode, LACP protocol is enabled on all member ports in the aggregation group, and its port status (join and leave) is automatically maintained by this protocol.

Static and LACP aggregation can be understood as the difference between static routing and dynamic OSPF routing. One is to force it into effect according to the way configured by the administrator, and the other is to negotiate with neighbors through protocol messages to dynamically maintain neighbor relations and route entries.

Dynamic aggregation can dynamically find link failures and avoid the exception caused by the failure of a single member line in static aggregation (for example, the switch port is up, but it can no longer communicate due to intermediate fiber problems). Dynamic aggregation is recommended when users have high requirements for reliability and the switching speed of dynamic joining and leaving of member ports is fast.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report