5 ms·
I wish there were more clarity in the point where your ISP sends the packet to "your computer." The packet goes to your modem, which is plugged into some netwo
by knicholes 8y ago
I wish there were more clarity in the point where your ISP sends the packet to "your computer." The packet goes to your modem, which is plugged into some network adapter (this is the network "device," right?). Then the network adapter sends the signal to another network device? That doesn't make sense to me. Certainly the network hardware receives the signal before the OS?
- wyldfire 8y ago> The packet goes to your modem, which is plugged into some network adapter (this is the network "device," right?). From the point of view of your OS' routing table, the "network device" is the OS device that represents the local network device. Ms Evans cites three examples; one's a real hardware WLAN device (likely connected to the system via PCIe or USB-via-PCIe). The "modem" you're referring to is probably your or your ISP's "cable modem"? If so, the cable modem function of this device is (very nearly) transparent to the IP layer and we can ignore it for the sake of the routing table. I believe many/most of these modems function as a layer 2 bridge. The sequence of events when packets arrive from the ISP is: 1. packet is forwarded from ISP to your cable modem. 2. cable modem receives the packet, sees that the destination address belongs on "this side" of the bridge and forwards it. 3. Computer's NIC ("network interface card") receives a packet, copies it into memory and interrupts the processor. 4. OS interrupt service routine handles the interrupt by posting a flag and copying the incoming data to another buffer. 5. OS' network stack realizes this packet is an IP packet and starts to process it according to local rules (next layer up, etc). ...lots of details omitted from above for the sake of clarity, but I can add more if you want. Slight variations of the above occur depending on the specific deployment of router-vs-cable-modem-vs-DSL-vs-NIC-config etc.
- knicholes 8y agoAh, there it is! Okay, I know it's being pedantic, but the whole NIC aspect is what I was looking for. Taking my OS theory class at 8am was a bad choice. Thank you so much for the excellent explanation!
- kop316 8y agoI am a bit confused by your question, but I can attmpt to help. A modem is short for a "modulator demodulator". In you question, an ISP modem converts one signal (DSL, cable, fiber, etc.) to another signal (ethernet). The Ethernet signal goes into a router, and the routers job is to make sense of where it goes. The ISP side is known as a WAN (Wide Area Network) and the internal network is the LAN (local Area network). The router keeps track of traffic to understand where to put it all. that traffic then goes to your computer.