窗口1:
    nc www.baidu.com 80
    窗口2:
    netstat -natp
    image.png
    窗口1:
    GET / http/1.0
    image.png

    image.png

    开辟资源 切换状态

    socket 通讯

    image.png

    四元组: 源ip + port 目标ip + port (绝对唯一的链接

    CS可建立的链接数量是多少

    根据四元组判断

    单网卡6w多个连接,单机服务器时,可以增加C的网卡。6+6=12w

    1. 窗口1
    2. 请求:
    3. curl www.baidu.com:80

    image.png

    1. 窗口2
    2. 先监听: eth0 要换成自己的网卡名称 ifconfig查看
    3. tcpdump -nn -i eth0 port 80

    image.png