在平时工作或者学习工程中,我们经常Ethernet、Eth-Trunk、trunk和E-Trunk四个名词有点模糊,有时候甚至容易混淆,虽然它们看起来很相似,但实际上这些概念/技术是完全不相关的。本文将给大家介绍一下这四种技术的概念、区别。 什么是Ethernet? 1972 年 Bob Metcalfe 设计了一个名为 ALTO ALOHA 的网络,该网络于 1973 ...
1.⽹卡收到⽹线上的packet,⾸先检查packet的CRC校验,保证完整性,然后将packet头去掉,得到frame。(⽹卡会检查MAC包内的⽬的MAC地址是否和本⽹卡的MAC地址⼀样,不⼀样则会丢弃。) 2.⽹卡将frame拷贝到预分配的ring buffer缓冲。 3.⽹卡驱动程序通知内核处理,经过TCP/IP协议栈层层解码处理。 4....
(Hex), Hash Arithmetic : profile default, Maximal BW : 20Gbps, Current BW : 0Mbps, The Maximum Frame Length is 9216 Internet protocol processing : disabled IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 003e-8c48-ec01 Current system time: 2016-07-29 19:44:53+03:...
一般拷贝 frames 的副本到自己的内核空间进行处理(deliver 到上层协议,之后的一个个 skb 就是按 skb 的指针传递方式传递,直到用户获得数据,所以,对于 ring buffer 网卡,大量拷贝发生在 frame 从 ring buffer 传递到内核控制的计算机内存里)。
网线上的 packet 首先被网卡获取,网卡会检查 packet 的 CRC 校验,保证完整性,然后将 packet 头去掉,得到 frame。网卡会检查 MAC 包内的目的 MAC 地址,如果和本网卡的 MAC 地址不一样则丢弃 (混杂模式除外)。 网卡将 frame 拷贝到网卡内部的 FIFO 缓冲区,触发硬件中断。(如有 ring buffer 的网卡,好像 frame...
Link partner advertised pause frame use: Symmetric Receive-only Link partner advertised auto-negotiation: Yes Link partner advertised FEC modes: Not reported Speed: 100Mb/s#<== 速度Duplex: Full Port: MII PHYAD: 0 Transceiver: internal Auto-negotiation: on ...
Switch Port, PVID : 1, TPID : 8100(Hex), The Maximum Frame Length is 9216 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is e468-a3a2-0ae0 Last physical up time : 2017-11-10 15:40:34 Last physical down time : 2017-11-10 15:40:31 ...
(Ethernet) # 网卡接口的MAC地址 传输队列长度 接口类型为Ethernet RX packets 5708 bytes 1061424 (1.0 MiB) # 表示开机后此接口累积 接收的报文个数,总字节数 RX errors 0 dropped 833 overruns 0 frame 0 # 表示开机后此接口累积 接收报文错误数、丢弃数、溢出数(由于速度过快而丢失的数据包数)、冲突的...
Frame 2: 124 bytes on wire (992 bits), 124 bytes captured (992 bits) on interface -, id 0 Ethernet II, Src: HuaweiTe_5e:19:4b (4c:1f:cc:5e:19:4b), Dst: Slow-Protocols (01:80:c2:00:00:02)Slow Protocols Slow Protocols subtype: LACP (0x01)Link Aggregation Control Protocol LACP...
ST: Start Frame, 启动帧. 固定为01B OP: Opcodes, 操作码. Clause22支持两种操作, Read是10B, Write是01B PHYADR: Physical Address, PHY芯片的物理地址. 5个bit, 可以最多挂32个从设备. 很多PHY芯片物理地址的选择都是通过外部硬件的硬件上下拉设定的, 在芯片上电的时候其引脚的电平会被读取到芯片内部进...