Kuidas Windows kinnitab Wi-Fi juurdepääsu ja kas hetkeolukorra autentimine on vajalik?

Sisukord:

Kuidas Windows kinnitab Wi-Fi juurdepääsu ja kas hetkeolukorra autentimine on vajalik?
Kuidas Windows kinnitab Wi-Fi juurdepääsu ja kas hetkeolukorra autentimine on vajalik?

Video: Kuidas Windows kinnitab Wi-Fi juurdepääsu ja kas hetkeolukorra autentimine on vajalik?

Video: Kuidas Windows kinnitab Wi-Fi juurdepääsu ja kas hetkeolukorra autentimine on vajalik?
Video: CS50 2015 - Week 6 - YouTube 2024, Aprill
Anonim
Windows on üsna otstarbekas öelda, kas teil on korralikult toimiv Interneti-ühendus, kuid kuidas täpselt seda teha? Uurides, kuidas Windows probleemidega tegeleb, saate teavet Windowsi ühenduvusfailide kohta.
Windows on üsna otstarbekas öelda, kas teil on korralikult toimiv Interneti-ühendus, kuid kuidas täpselt seda teha? Uurides, kuidas Windows probleemidega tegeleb, saate teavet Windowsi ühenduvusfailide kohta.

Tänane küsimuste ja vastuste seanss tuleb meile viisakalt SuperUseriga, mis on Q & A veebisaitide kogukonna juhtimisgruppide Stack Exchange osakond.

Küsimus

SuperUseri lugeja N. Hinkle esitab järgmise küsimuse Windowsi Interneti-kontrollimise ja autentimise protsessi kohta:

In Windows 7, the notification area networking icon will show an error indicator if there is no internet access

, and the error icon goes away once there is a successful connection to the internet
, and the error icon goes away once there is a successful connection to the internet
. Sometimes, if the WiFi connection requires an in-browser authentication step, like on many guest networks in hotels or universities, then the following pop-up bubble appears, saying as much:
. Sometimes, if the WiFi connection requires an in-browser authentication step, like on many guest networks in hotels or universities, then the following pop-up bubble appears, saying as much:
Image
Image

How does Windows know whether or not it has a successful internet connection?

Presumably it is checking some online Microsoft service to see whether it has a successful connection, gets redirected to some other page, or doesn’t get any response at all, but I haven’t seen anywhere that this process or the services used are documented. Can anybody explain how this works?

Sellised kontrollid on üks paljudest asjadest, mida me tänapäeva operatsioonisüsteemi kasutades enesestmõistetavaks peetakse, kuid ka kasutajakogemuse kõige paremini tõestatud elementide aluseks on mehhanism. Kuidas Windows ütleb meile, kas on olemas Interneti-ühendus ja kas peame sisse logima Wi-Fi autentimise portaaliga?

Vastus

SuperUseri kaastöötaja Tobias Plutat pakub ülevaadet protsessist:

After some digging (the sheer number of network and Internet related services in Windows is astonishing), I think I found it. Windows Vista and 7 have a variety of Network Awareness features, one of which is the Network Connectivity Status Indicator that performs connectivity tests that in turn are used by the network systray icon. The test for internet connectivity is simple:

  1. NCSI tries to load a specific page via HTTP (more precisely: a text document) and tests whether it can be retrieved.
  2. If that is not successful, Windows reports “No Internet access”.

The mechanism also checks whether the domain the document is hosted on resolves to the expected IP address. So, it might also assume proper internet access if this test is successful but the document can’t be retrieved.

The reason it reports “No Internet Access” when you haven’t authenticated on a Hotspot yet lies in the way a Hotspot works. It blocks all ports besides 80 and 443 (for HTTP and HTTPS, respectively), which get redirected to the Hotspot’s authentication server and might mess with DNS requests in one way or another. Thus, NCSI can neither resolve the domain its test file is hosted on, and even if it could it wouldn’t reach the actual file because HTTP traffic is redirected to the Authentication server.

Teine kaasautor Jeff Atwood tõstab esile mõned dokumendi Tobiase viited:

Here are the details of the connection status determination process:

The following list describes how NCSI might communicate with a Web site to determine whether a network has Internet connectivity:

  1. A request for DNS name resolution of

    dns.msftncsi.com

  2. HTTP-taotlus

    https://www.msftncsi.com/ncsi.txt

    tagastab 200 OK ja teksti

    Microsoft NCSI

  3. Seda saab registratsiooniseadistusega keelata. Kui määrate:

    HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Teenused NlaSvc Parameters Internet EnableActiveProbing

    et

    0

    Windows ei otsi enam Interneti-ühenduse jaoks.

    Apple teeb iOS-s midagi väga sarnast, et tuvastada Interneti-ühenduvus ja võimalikud hotelli sisselogimise WiFi-lehed jne.

    Kuigi see kogu protsess on lõpptarbijatele tavaliselt 100% läbipaistev, võib mõnikord pärast Wi-Fi kohapealse veebiportaali autentimist leida end NSCSI.txti tegeliku sisu järgi. Kui jõudsite sellele, et otsite mitteseksti tekstidokumenti, selle asemel, et veebileht, mida proovisite laadida, pole enam mõistatuslik, kui see on seotud eelmise vastusega sellele teemale.

    Kas teil on seletamiseks midagi lisada? Helistage kommentaarides. Kas soovite lugeda rohkem vastuseid teistelt tech-savvy Stack Exchange'i kasutajatelt? Tutvu täieliku arutelu teemaga siit.

Soovitan: