TCP建连的重试机制

# TCP建连的重试机制 ## 现象 我们在telnet一个地址或端口无效的socket的时候,如果不加任何参数,默认的超时时间总是127s,如下: ```sh $ time telnet 1.1.1.1 8080 Trying 1.1.1.1... telnet: connect to address 1.1.1.1: Connection timed out telnet 1.1.1.1 8080 0.00s user 0.00s system 0% cpu

View details »

TCP三次握手

# TCP三次握手(Three-way Handshake) 一个虚拟连接的建立是通过三次握手来实现的 ## 握手步骤 1. `(B)` –> `[SYN]` –> `(A)` 假如服务器A和客户机B通讯. 当A要和B通信时,B首先向A发一个`SYN (Synchronize)` 标记的包,告诉A请求建立连接. >注意: 一个 SYN包就是仅SYN标记设为1的TCP包(参见TCP包头Resources). 认识到这点很重要,只有当A受到B发来的SYN包,才可建立

View details »

使用stunnel加密通信

## 简介 :+1: [stunnel官网](https://www.stunnel.org/index.html) 简介大概意思就是可以对任意TCP链接使用OpenSSL组件进行ssl或者tls加密封装,并且可以跨平台。 >What’s Stunnel The Stunnel program is designed to work as an SSL encryption wrapper between remote client and local (inetd

View details »

Is it safe to disable co

# The short answer Usually you will only need connection tracking for outbound connections. If any local device makes a connection to the Internet, the firewall records that this specific IP and port tried to make a connection to the other

View details »


















© 2017 - JISHUBOKE.COM - 京ICP备16020435号   Powered by Markdown Editor & Flask & Express