B
B
bychok3002017-03-15 12:46:12
Programming
bychok300, 2017-03-15 12:46:12

What happens when the network card receives the last piece of HTML?

tell us in as much detail as possible what happens from the moment when the network card received a packet with the last piece of the HTML page, and until the moment when the browser redraws the image on the screen

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pfg21, 2017-03-15
@bychok300

The network card hardware module receives the packet into an internal buffer and signals to the software driver that there is a new data packet.
The driver reads the CRC of the packet and compares it with the number in the MAC header of the packet, if the packet is not correctly requested again.
It also compares the MAC address of the destination from the headers with the MAC address of the given network port, if it does not match, the packet is deleted (this can be disabled).
Next, the packet's MAC header is "cut off" and the TCP / IP network drivers are signaled that there is a new packet.
the network driver passes the packet through the "millstones" of the firewall - let's say everything is ok.
by the recipient port number in the IP header, it is selected where the data is to be transmitted further.
the IP packet headers are truncated and the data is poured into the TCP socket cache.
From there, the browser takes it and mocks it further.
The explanation is given in a clumsy language on unwashed fingers, please don’t spit too much :) it’s
smarter to look for example here

E
Eugene Khrustalev, 2017-03-15
@eugenehr

What's going on... with what? with whom? With a network card? Or in general in the world?
Fans are spinning, electrons are running through the wires. Holland is already full of tulips, the French, as always, drink wine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question