Wie erkennt mein Betriebssystem meine verfügbaren Netzwerkverbindungen?

385
pnongrata

Plötzlich dämmerte mir, dass ich eine (scheinbar) sehr einfache Vernetzungsfrage nicht beantworten konnte!

Wenn ein Computer in einem Gebiet mit mutiple LAN - Verbindungen ist zur Auswahl, wie funktioniert es auch zu sehen, diese Netzwerke an erster Stelle (ohne sie verbunden ist)?!?

Verfügt die kabellose Karte in meinem PC über einen "Discovery" -Dienst, der es ermöglicht, Geräte (?) Für Computernetzwerke zu pingen?

Dies ist nur ein Beispiel für eine Funktion, die ich (als Verbraucher) seit Jahren verwendet habe und nie zwei Gedanken dazu gemacht habe!

Danke im Voraus!

2

2 Antworten auf die Frage

3
Spiff

Most of the time, an 802.11 ("Wi-Fi") card will find networks by doing what's known as an "active scan". In an active scan, it tunes its radio to each channel it supports and transmits an 802.11 "Probe Request" packet, then stays on the channel for a few more milliseconds to receive "Probe Response" packets from any APs (Access Points -- the technical name for what most people call "wireless routers") on that channel. Because you can usually expect to receive all the Probe Responses you're going to receive within 40ms, cards can scan multiple channels very quickly.

In some cases, a card may choose to do a "passive scan" where it tunes to each channel and doesn't transmit anything, just listens for any Beacon frame transmissions from any APs on each channel. Listening for beacons can be time consuming because beacons are usually spaced 100ms apart, and could be even farther apart. So it can take more than twice as long to do a passive scan than to do an active scan.

In some regulatory environments, some channels have to be handled specially because they are not allowed to be used for Wi-Fi if there is a local radar installation using that channel. On those "radar channels", you must at least start out passively listening, but as soon as you see a Wi-Fi beacon from any AP on the channel you can assume there's no radar present and switch to an active scan.

Contrary to popular belief, passive scans are not the primary kind of scans (active scans are far more common). So although beacons also happen to be what make the AP findable in passive scans, the primary purpose of beacons is to coordinate timers between the AP and the clients, and to notify clients in power save mode that the AP has queued up packets for them (or that the AP is about to transmit queued up multicast/broadcast packets).

Vielleicht kennen Sie auch die Methoden, die Bluetooth verwendet? Ich konnte keine gute Dokumentation dazu finden und es würde immer noch zu dieser Frage passen. grawity vor 12 Jahren 0
2
grawity

Bei drahtlosen 802.11-Netzwerken ("Wi-Fi") senden die Zugangspunkte (AP) einfach alle paar Sekunden ein Ankündigungspaket (SSID) und beschreiben das drahtlose Netzwerk, zu dem sie Zugriff haben.

Danke grawity - welche Komponente (auf meinem Laptop) nimmt diese Sendung tatsächlich auf? Die NIC? Etwas anderes? pnongrata vor 12 Jahren 0
Die drahtlose Netzwerkkarte empfängt sie und wird von der Software für die drahtlose Konfiguration angewiesen, zu scannen, die Ergebnisse zu sammeln und Ihnen anzuzeigen. David Schwartz vor 12 Jahren 1
@Adam: Die NIC. Das Beacon und die Daten-Frames haben das gleiche äußere Format, die Beacons werden nur von der Netzwerkkarte verbraucht. Einige drahtlose Netzwerkkarten können in den Überwachungsmodus versetzt werden, in dem sie alles weiterleiten, was sie empfangen, einschließlich Beacon-Frames sowie Daten von * beliebigen * umliegenden Netzwerken (auch denen, mit denen Sie nicht verbunden sind). Die Wireshark-Website enthält einige Dokumentationen. grawity vor 12 Jahren 0
Das Ankündigungspaket wird als Beacon bezeichnet, nicht als SSID. Beacons werden in der Regel etwa zehnmal pro Sekunde übertragen, nicht alle paar Sekunden, und passives Hören auf Beacons ist * nicht * die primäre Art und Weise, wie 802.11-Clients ihre APs finden. Spiff vor 12 Jahren 1
@Spiff: Danke für die Korrekturen. grawity vor 12 Jahren 0