为什么 nmap 在使用 Broadcom BCM5708 进行 Debian 拉伸/测试时速度很慢?

为什么 nmap 在使用 Broadcom BCM5708 进行 Debian 拉伸/测试时速度很慢?

我刚刚为带有 Broadcom BCM5708 网卡的 HP G5 服务器安装了 Debian 测试。

Nmap 扫描的速度比在另一台具有不同网卡的 HP G5 服务器上运行的速度慢约 10 倍。

我在另一台HP G5服务器BCM5708网卡上尝试过nmap,它也很慢。

nmap参数:

nmap -T4 10.x.x.x -sV -p0-65535 -v -d

nmap 显示如下输出:

SYN Stealth Scan Timing: About 7.11% done; ETC: 21:04 (0:06:45 remaining)

Increased max_successful_tryno for 10.x.x.x to 1 (packet drop)

我更换了网线,尝试了另一个网络端口(hp g5服务器有两个broadcom网卡)。

可能是什么问题?

如果配置:

enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.x.x.x  netmask 255.255.0.0  broadcast 10.x.x.255
        inet6 fe80::221:5aff:fe4d:a928  prefixlen 64  scopeid 0x20<link>
        ether 00:21:5a:4d:a9:28  txqueuelen 1000  (Ethernet)
        RX packets 2687021  bytes 177126339 (168.9 MiB)
        RX errors 0  dropped 260  overruns 0  frame 0
        TX packets 2025533  bytes 132044871 (125.9 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

消息:

[    1.392522] bnx2: QLogic bnx2 Gigabit Ethernet Driver v2.2.6 (January 29, 2014)
[    1.872495] bnx2 0000:03:00.0 eth0: Broadcom NetXtreme II BCM5708 1000Base-T (B2) PCI-X 64-bit 133MHz found at mem f8000000, IRQ 18, node addr 00:21:5a:4d:a9:28
[    2.352441] bnx2 0000:05:00.0 eth1: Broadcom NetXtreme II BCM5708 1000Base-T (B2) PCI-X 64-bit 133MHz found at mem fa000000, IRQ 19, node addr 00:21:5a:4d:a9:2a
[    2.354702] bnx2 0000:03:00.0 enp3s0: renamed from eth0
[    2.364238] bnx2 0000:05:00.0 enp5s0: renamed from eth1
[    7.878464] bnx2 0000:03:00.0: firmware: direct-loading firmware bnx2/bnx2-mips-06-6.2.3.fw
[    7.883425] bnx2 0000:03:00.0: firmware: direct-loading firmware bnx2/bnx2-rv2p-06-6.0.15.fw
[    8.012017] bnx2 0000:03:00.0 enp3s0: using MSI
[   11.210980] bnx2 0000:03:00.0 enp3s0: NIC Copper Link is Up, 1000 Mbps full duplex

网络工具:

Settings for enp3s0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                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: No
        Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: off
        Supports Wake-on: g
        Wake-on: g
        Link detected: yes


The test result is PASS
The test extra info:
register_test (offline)  0
memory_test (offline)    0
loopback_test (offline)  0
nvram_test (online)      0
interrupt_test (online)  0
link_test (online)       0

Pause parameters for enp3s0:
Autonegotiate:  off
RX:             off
TX:             off

NIC statistics:
     rx_bytes: 195197
     rx_error_bytes: 0
     tx_bytes: 20772
     tx_error_bytes: 0
     rx_ucast_packets: 201
     rx_mcast_packets: 0
     rx_bcast_packets: 2563
     tx_ucast_packets: 139
     tx_mcast_packets: 0
     tx_bcast_packets: 0
     tx_mac_errors: 0
     tx_carrier_errors: 0
     rx_crc_errors: 0
     rx_align_errors: 0
     tx_single_collisions: 0
     tx_multi_collisions: 0
     tx_deferred: 0
     tx_excess_collisions: 0
     tx_late_collisions: 0
     tx_total_collisions: 0
     rx_fragments: 0
     rx_jabbers: 0
     rx_undersize_packets: 0
     rx_oversize_packets: 0
     rx_64_byte_packets: 2440
     rx_65_to_127_byte_packets: 285
     rx_128_to_255_byte_packets: 28
     rx_256_to_511_byte_packets: 11
     rx_512_to_1023_byte_packets: 0
     rx_1024_to_1522_byte_packets: 0
     rx_1523_to_9022_byte_packets: 0
     tx_64_byte_packets: 1
     tx_65_to_127_byte_packets: 83
     tx_128_to_255_byte_packets: 47
     tx_256_to_511_byte_packets: 8
     tx_512_to_1023_byte_packets: 0
     tx_1024_to_1522_byte_packets: 0
     tx_1523_to_9022_byte_packets: 0
     rx_xon_frames: 0
     rx_xoff_frames: 0
     tx_xon_frames: 0
     tx_xoff_frames: 0
     rx_mac_ctrl_frames: 0
     rx_filtered_packets: 123942
     rx_ftq_discards: 0
     rx_discards: 0
     rx_fw_discards: 0

网络统计-i

Kernel Interface table
Iface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
enp3s0    1500     3421      0    245 0           160      0      0      0 BMRU
lo       65536        0      0      0 0             0      0      0      0 LRU

相关内容