我的TCP/IP知识(ENG)

TCP/IP is the protocol set in our world’s communication network. TCP (Transmission Control Protocol) and IP(Internet Protocol) forms the Internet Protocol Suite. They are used in data transmission via Internet or other networks.
The TCP provides reliability by:
- TCP will consider the best size to chunk, what is different for the the UDP which will use packets. The unit of information passed by TCP to IP is called Segment
- Before sending data, TCP will establish a connection first
- TCP IP will have a signal back to confirm if the message have been sent well or if a problem occurred while the sending operation
- The probability of loosing data are lower than UDP
- TCP will keep its checksum on its header so that the recipient will be acknowledge about the quantity of data it is going to receive, if it receive more or less it will send an acknowledgment saying that the data didn’t arrive.
- TCP will discard duplicated data,
- The TCP data’s are sent as IP Datagram
- Multiplexing

Connection Establishment and Termination

The connection establishment and termination happens with two important protocols:
- Connection Establishment Protocol(three way hand-shake; or 三次握手)
This protocol is characterized by 3 steps, the first one is the client which will send the SYN segment to the server to inform which port of the server it is going to be connected to, the server will immediately send an ACK segment to acknowledge the client, but also sends an SYN segment to inform the client the Initial Sequence Number. At that time the client will immediately acknowledge the server by sending a ACK segment.

- Connection Termination Protocol(四次断开): When it is about the termination the client will send a FIN segment to inform the server that there will be no more information ( The TCP is a half-closed protocol, the Server will be closed actively), the server will send one segment which will be the SYN to close actively the client but an ACK to acknowledge the client. The last step will that the client, after receiving the SYN segment will send also an ACK segment to the server to terminate the connection.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值