When I connect to a network for the first time and then open an HTTPS website, the following happens:
First, when I connect the network cable, the device is in the Physical Layer.
Then I don't know the IP or MAC Address of any device in the network.
I go all the way to the Application Layerand use the DHCP protocol to get an IP address.
The device broadcasts to all devices on the network using the UDPprotocol.
which means the data goes from the Application Layer to the Transport Layer.
Then it goes down to the Network Layer, where the IP address is written as 0.0.0.0.0
This is not a real IP, it is just an identification that the device does not have an IP at all.
Then it goes down to the Data Link Layerand adds the MAC Address of my device as the Source.
and use MAC Broadcast as Destination.
Finally, it goes to the Physical Layer, tracking packets as signals to all devices in the network.
The DHCP server responds with a **DHCP Offer,**which contains
The device is now IP-enabled and ready to access the Internet.