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

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.

主站蜘蛛池模板: 平塘县| 佛坪县| 柳河县| 张家港市| 额尔古纳市| 麻城市| 新蔡县| 武夷山市| 上高县| 建阳市| 乡宁县| 安平县| 广平县| 雷山县| 太仓市| 冕宁县| 绥芬河市| 道孚县| 定襄县| 车险| 湖北省| 青神县| 博罗县| 河曲县| 遂溪县| 茌平县| 阳原县| 舟曲县| 恩平市| 南投市| 磴口县| 大石桥市| 大埔县| 广南县| 平乐县| 元谋县| 静宁县| 巴楚县| 平潭县| 饶平县| 峡江县|