AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-377968

Alec Fenichel's questions

Martin Hope
Alec Fenichel
Asked: 2016-10-01 20:38:36 +0800 CST

什么是预期的 TCP 重传率

  • 4

我在我的 NAS 和服务器之间建立了直接连接设置,两个千兆链路以模式 0 绑定。我还有一个从我的服务器到我的网络的千兆链路。我想测试绑定在模式 0 下的表现。

netstat -s | grep 'segments retransmited' | awk '{print $1}'-> 21983

netstat -s | grep 'segments send out' | awk '{print $1}'-> 91874454

21983/91874454 = .000239272

这算不算高?此服务器和 Internet 之间存在大量流量。

另外,有没有更好的方法来测试我的 NAS 和服务器之间的直接连接上的数据包丢失?ethtool统计信息不可用,因为不支持驱动程序。谢谢。

tcp packetloss
  • 1 个回答
  • 10494 Views
Martin Hope
Alec Fenichel
Asked: 2016-09-29 16:07:38 +0800 CST

Ubuntu 14.04 绑定 (balance-rr) 已关闭,但从站已启动

  • 0

我正在尝试在我的 Ubuntu 14.04 服务器上设置 balance-rr。我有一个 USB 3.0 双网卡适配器(eth1 和 eth2)。它直接连接到我的 NAS。它工作正常,然后我重新启动,现在它不工作。我现在似乎无法让它工作,我看不出有什么问题。以下是我认为相关的所有文件。两个从接口似乎都工作正常,但绑定已关闭。有什么我想念的吗?谢谢!

猫 /etc/模块

lp
rtc
bonding

# Chip drivers
coretemp

猫 /etc/网络/接口

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

# eth1 configuration
auto eth1
iface eth1 inet manual
bond-master bond0

# eth2 configuration
auto eth2
iface eth2 inet manual
bond-master bond0

# Bonding eth1 & eth2 to create bond0 NIC
auto bond0
iface bond0 inet static
address 172.16.0.101
netmask 255.255.255.0
bond-mode balance-rr
bond-miimon 100
bond-slaves none

cat /proc/net/bonding/bond0

Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: load balancing (round-robin)
MII Status: down
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

须藤 ethtool bond0

Settings for bond0:
        Supported ports: [ ]
        Supported link modes:   Not reported
        Supported pause frame use: No
        Supports auto-negotiation: No
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Speed: Unknown!
        Duplex: Unknown! (255)
        Port: Other
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        Link detected: no

须藤 ethtool eth1

Settings for eth1:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 3
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pg
        Wake-on: g
        Current message level: 0x00000007 (7)
                       drv probe link
        Link detected: yes

须藤 ethtool eth2

Settings for eth1:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 3
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pg
        Wake-on: g
        Current message level: 0x00000007 (7)
                       drv probe link
        Link detected: yes

dmesg | grep“eth1”

[    6.259558] ax88179_178a 2-4.1:1.0 eth1: register 'ax88179_178a' at usb-0000:00:14.0-4.1, ASIX AX88179 USB 3.0 Gigabit Ethernet, 00:0a:cd:2b:c9:14
[    6.893683] bond0: Adding slave eth1
[   10.219344] ax88179_178a 2-4.1:1.0 eth1: ax88179_178a - Link status is: 1
[   10.220703] ax88179_178a 2-4.1:1.0 eth1: Write medium type: 0x013b
[   10.221713] ax88179_178a 2-4.1:1.0 eth1: link up, 1000Mbps, full-duplex, lpa 0xCDE1

dmesg | grep “eth2”

[    6.588030] ax88179_178a 2-4.2:1.0 eth2: register 'ax88179_178a' at usb-0000:00:14.0-4.2, ASIX AX88179 USB 3.0 Gigabit Ethernet, 00:0a:cd:2b:c9:15
[    6.894174] bond0: Adding slave eth2
[   10.603356] ax88179_178a 2-4.2:1.0 eth2: ax88179_178a - Link status is: 1
[   10.604551] ax88179_178a 2-4.2:1.0 eth2: Write medium type: 0x013b
[   10.605743] ax88179_178a 2-4.2:1.0 eth2: link up, 1000Mbps, full-duplex, lpa 0xCDE1

dmesg | grep "bond0"

[    6.664913] bond0: Setting MII monitoring interval to 100
[    6.893683] bond0: Adding slave eth1
[    6.894174] bond0: Adding slave eth2
ubuntu bonding
  • 2 个回答
  • 1742 Views
Martin Hope
Alec Fenichel
Asked: 2016-09-28 15:18:46 +0800 CST

LACP NFS 性能混乱

  • 5

背景资料:

所以我有一个 Ubuntu 14.04 服务器(1 个千兆网卡)和一个 NAS(Synology DS1815+,4 个千兆网卡)。我会定期使用 Ubuntu 14.04 服务器和我的网络之间的千兆位线路。大多数(但不是全部)流量都流向 NAS。NAS 作为 NFS 共享安装在 Ubuntu 14.04 服务器上。

我刚刚购买了一个 USB 3.0 双千兆网卡适配器(尚未到货)。我的计划是将适配器连接到服务器并将两个网卡连接到 NAS。这将作为 NAS 和服务器之间的直接连接。NAS 正式支持 LACP,USB 网卡适配器也是如此。

问题:

我正在尝试了解 LACP 以及它与 NFS 的关系。我了解 LACP 不会简单地将带宽加倍,但我不确定我是否掌握平衡如何与 NFS 一起工作。关于通过专用连接在 NAS 和服务器之间进行传输,这是我的问题:

LACP 是否会为从单个 NFS 共享的单个文件传输提供任何性能优势?(从我阅读的内容来看,它似乎不会,但只是确保)

LACP 是否会为来自单个 NFS 共享的多个同时文件传输提供任何性能优势?

LACP 是否会对来自多个 NFS 共享的多个同时文件传输提供任何性能优势?(好像会)

NAS 没有正式支持 balance-rr,但如果它有效,那会是比 LACP 更好的选择吗?

另一种债券模式会更合适吗?(从我阅读的内容来看似乎不是这样,但只是确保)

感谢您的帮助!

nfs lacp
  • 1 个回答
  • 3636 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve