官术网_书友最值得收藏!

Functions and Characteristics of TCP

TCP uses datagram sockets or ports to establish a host-to-host communication. The standard body called Internet Assigned Numbers Authority (IANA) designates well-known ports to indicate certain services, such as port 80 for HTTP (web) and port 25 for SMTP (mail). The server in the client-server model typically listens on one of these well-known ports in order to receive communication requests from the client. The TCP connection is managed by the operating system by the socket that represents the local endpoint for connection.

The protocol operation consist of a state machine, where the machine needs to keep track of when it is listening for incoming connection, during communication session, as well as releasing resources once the connection is closed. Each TCP connection goes through a series of states such as Listen, SYN-SENT, SYN-RECEIVED, ESTABLISHED, FIN-WAIT, CLOSE-WAIT, CLOSING, LAST-ACK, TIME-WAIT, and CLOSED.

主站蜘蛛池模板: 叙永县| 桃园县| 盖州市| 新安县| 乐陵市| 社会| 丰原市| 常宁市| 南陵县| 卢龙县| 郯城县| 佛教| 开封县| 大城县| 赤壁市| 两当县| 凌源市| 高邑县| 永清县| 正蓝旗| 德清县| 临泉县| 茌平县| 兴义市| 深水埗区| 阳高县| 平遥县| 定陶县| 嘉祥县| 漳州市| 望江县| 吴桥县| 临邑县| 朝阳市| 玉树县| 新河县| 平度市| 桐柏县| 丰台区| 石门县| 托克托县|