Reference content:
Http://baike.baidu.com/link?url= 6rsx0yrjy8chn4b0kflmjkdl23xutqxo6aziaxbh2ealwcxuuxmy-2ijhhciqifa8q20vg6ew9ps4ef9qrchbq#2_6 TCP/IP
TCP/IP is a shorthand for the transmission Control protocol/internet Protocol, which is the most basic protocol for the Internet, which is the transmission Protocol/Internet Protocol. TCP/IP is a generic term for this protocol family, and it takes a 4-tier hierarchy, not the sum of TCP + IP two Protocols IP
The IP protocol contains the source host address, destination host address, and TCP data information. However, the IP protocol does not do anything to confirm whether packets are sent sequentially or if packets are corrupted, so IP packets are unreliable. TCP
Connection-oriented communication protocol, through three handshake to establish a connection (socket through TCP/IP connection is 3 times handshake), communication is completed to close the connection, it is only used for end-to-end communication
The TCP protocol establishes a reliable connection through a 3-time handshake, which provides a reliable data flow service by sequencing and verifying the packets.
TCP can limit the speed of data transmission and indirectly control traffic UDP
For a non-connected communication protocol, UDP data includes the original port number information and the target port number information, it can be broadcast sent
Because UDP communication does not require the receiver to confirm, so it is unreliable transmission, may appear packet loss data format
Data frame: Frame header +ip packet + frame end
The frame header includes the source and destination host MAC address and type, and the end of the frame is the check word
IP packet: IP header +tcp Data information
IP header includes source IP address and destination host IP address
TCP Data information: TCP header + Actual data
TCP header includes source port number and target host port number, shun sequence number, confirmation number, check word network model
OSI seven-layer model
But the TCP/IP protocol family uses a four-tier structure
The protocols for each layer in the four-tier model are as follows
TCP belongs to Transport layer protocol, IP is Network layer protocol
Common protocols for application tiers are TELNET,FTP,SMTP,SNMP HTTP
HTTP is an application-level protocol, and we typically request that the network be using HTTP, without the need to directly use both TCP and IP protocols