Ethernet Protocol Diagram:
Ethernet protocol:
Send the header (Sent to MAC address, receiver MAC address), data to all connected computers in the network cable, and then each machine receives the packet is the Ethernet protocol,
Then parse the header, see if the data for their own address in the receiving, not the same throw away,
The Ethernet uses the broadcast test to transmit the data, when the subnet machine too much time, will produce the broadcast storm.
IP protocol diagram
Divide the entire computer into a single subnet, with computers in the same subnet transmitting
Two IP addresses can be calculated through the subnet mask is within the same network segment, if not on the continue to the gateway, you continue to go down
Each computer has an IP address, and the subnet mask calculates whether it is in the same subnet and is broadcasting (resolving broadcast storms)
IP protocol is packaged and dropped directly into data in the Ethernet protocol
TCP/UDP protocol
Port: Each process that needs to receive data specifies a virtual null.
Packet data is then dropped into the IP protocol data
UDP protocol: The head packaging sent directly to the Internet, do not care about the receiving process.
TCP protocol: Send the time to have a response, not receive success will continue to send.
HTTP protocol:
PHP Advanced-Basic concepts of network programming