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

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.

主站蜘蛛池模板: 牙克石市| 甘孜县| 商南县| 八宿县| 兰溪市| 会理县| 温宿县| 朝阳市| 即墨市| 西和县| 灵石县| 鸡西市| 东乡县| 涿州市| 唐河县| 万盛区| 盐源县| 定日县| 方山县| 石台县| 四平市| 凌源市| 屯门区| 巴塘县| 内乡县| 普陀区| 濉溪县| 沈阳市| 濮阳市| 新民市| 永仁县| 安阳县| 页游| 南川市| 白山市| 牟定县| 乐安县| 海晏县| 潜江市| 肥城市| 那曲县|