网卡大小和容量的区别

Jef*_*eff 12 networking

当我跑步时,lshw -C network我得到

  *-network:1
       description: Ethernet interface
       product: Ethernet Connection (6) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: eno1
       version: 30
       serial: 1c:69:7a:0d:82:69
   --> size: 100Mbit/s         
   --> capacity: 1Gbit/s       
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.4-4 ip=192.168.30.239 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
       resources: irq:133 memory:c0b00000-c0b1ffff
Run Code Online (Sandbox Code Playgroud)

在这种情况下size和之间有什么区别capacity

Mic*_*ton 17

这些字段名称用于其他类型的硬件,将它们映射到网络接口没有多大意义。也就是说,在这种情况下,“容量”是 NIC 的最大带宽,而“大小”是当前带宽。


Mas*_*imo 15

容量是网卡的最大速度(在本例中为 1Gbit/s)。
size是当前的连接速度(在本例中为 100Mbit/s)。

来源:https : //ezix.org/src/pkg/lshw/src/branch/master/src/core/network.cc