PHP Advanced-Basic concepts of network programming

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.