In college, I learned the network communication this piece, but has returned to the teacher, heaven spared who, should pick up to see learning or to learn, the first simple understanding of this knowledge, follow-up will continue to enrich this knowledge through reading.
Mobile phone network is the bottom of the mobile phone to implement the TCP/IP protocol, can make the mobile phone through the wireless network to establish a TCP connection, the TCP protocol can provide interface to the upper network, so that the transmission of the upper network data based on a non-differentiated network. Establishing a TCP connection requires a "three-time handshake" for the first time: The client sends the SYN packet to the server and waits for the service to confirm. Second: The server receives the SYN packet, confirms the customer's SYN, and sends a own SYN, namely the Syn+ack packet the third time: the customer receives the server's Syn+ack package, sends the acknowledgment packet ack to the servers, this packet sends completes three times the handshake. Handshake process in the packet is not included in the data, three handshake is completed before the official transfer of data, TCP connection once established, before either side of the communication between the two sides actively shut down the connection, the TCP connection will be maintained, the disconnection requires four handshake.  TCP/IP Protocol family (OSI layer seven protocol model and TCP/IP four layer model) top down: Application layer: The application layer determines the activities to provide the user with application services, the TCP/IP protocol family has stored various types of application services, FTP file Transfer Protocol, DNS Domain Name System protocol, the HTTP protocol is also located at this layer Transport layer: Provides data transfer between two computers that are in a network connection. TCP Transmission Control Protocol and UDP user datagram protocols. Network layer: Used to process packets flowing on the network. A packet is a unit of data transmitted over a network. Data Link layer: Used to handle the hardware part of the network connection, including the operating system, hardware device drivers, network adapters, and so on socket: Also known as sockets, the application makes requests to the network via sockets or responds to network requests. Socket is the cornerstone of communication, is the basic operating unit of network communication supporting TCP/IP protocol, it is an abstract representation of endpoint in network communication, it contains the information that must be used in network communication: The protocol of the local host, the protocol port of the local process, the IP of the remote host, and the protocol port of the far process. When the application layer communicates with the transport layer, TCP may encounter problems that provide concurrent services to multiple applications at the same time. Multiple TCP connections or multiple application processes may require the same TCP protocol port to transmit data, in order to differentiate between these TCP connections or applications, the application layer and the transport layer are distinguished by the socket interface. Establishing a socket connection requires at least a pair of sockets, client Clientsocket, and ServerSocket on the server side. The connection between sockets is divided into three steps: 1. Server monitoring 2. Client Request 3. Connection Confirmation The socket is actually the encapsulation of the TCP/IP protocol, the socket itself is not a protocol, just a calling interface
Tcp/ip,http,socket First Knowledge