Warum sehe ich das Ethernet II-Protokoll in drahtloser Verbindung?

1794
Pioneerhfy

Ich habe ein kleines Netzwerk in meinem Zuhause, das aus einem Netzwerkgerät namens airties rt-205 und Clients besteht. Clients stellen eine drahtlose Verbindung zu diesem Gerät her und senden ihr Paket über dieses Gerät an das Internet.

Ich weiß, dass das 802.11x-Protokoll für die drahtlose Verbindung und das Ethernet-Protokoll für die drahtgebundene Verbindung verwendet wird. Wenn dies nicht der Fall ist, lass es mich wissen.

Die Frage ist, warum sehe ich das "Ethernet II" -Protokoll auf Layer 2 in Wireshark, wenn eine drahtlose Verbindung verwendet wird . Sollte 802.11n (a, b, g, ab ... welche Technologie auch immer verwendet werden) anstelle von Ethernet II in Schicht 2 auf Draht 2 sein?

Ich spreche nicht vom Überwachungsmodus und vom verwalteten Modus. Dies unterscheidet sich vom Modus der WLAN-Karte. Ich denke, ich sollte Daten sehen, die von meinem airties rt-205-Gerät nur über eine drahtlose Verbindung an mich gesendet wurden, in wireshark als 802.11-Protokoll auf Schicht 2.

Danke im Voraus

2

1 Antwort auf die Frage

2
Spiff

It really is about monitor mode. Read on.

802.11 was designed to be "wireless Ethernet", and 802.11 interfaces have traditionally presented themselves to the OS as Ethernet interfaces so the OS only sees the packets after they've been translated back into familiar Ethernet II or 802.3 frames. This was necessary to make 802.11 work without requiring OSes to add a lot of code to understand all the new complexity that came with 802.11.

So on many systems, when you capture packets from an 802.11 interface that's operating normally, associated to an AP and passing traffic, you won't see 802.11 headers or 802.11-specific frames. You'll only see data frames after they've been translated back into wired Ethernet frames (Ethernet II or 802.3).

Depending on your sniffer, OS, and wireless drivers, you may be able to tell your sniffer to tell your wireless interface that you want to capture the packets in 802.11 format instead of Ethernet format. Look for a way to change the interface Data Link Type (DLT) from "EN10MB" to "IEEE802_11".

I know that on macOS, the 802.11-specific DLTs are not exposed unless you put the interface into 802.11 monitor mode. I suspect the same is true of other environments.

So it really may come down to monitor mode. Not because you want to see traffic from other BSSes on the same channel, but because some implementations hide those DLTs unless they are in monitor mode.

Siehe auch: https://wiki.wireshark.org/CaptureSetup/WLAN Christopher Maynard vor 6 Jahren 0