心血来潮,小水一篇!
loopback 在维基百科上有一段这样的解释:Loopback (also written loop-back) is the routing of electronic signals or digital data streams back to their source without intentional processing or modification. It is primarily a means of testing the communications infrastructure.
通熟的说就是将由“源”发送出去的数据路由回“源”。
tcpdump 和 Wireshark 是最常用的网络抓包和分析工具,作为经常和网络打交道的划水选手,怎么能不了解下呢?补篇博文回顾下相关操作。这里以 example.com 的一次 GET 请求为例,先使用 tcpdump 抓个包,再使用 Wireshark 看下 TCP 的握手。
操作环境:WSL2(Ubuntu 20.04 LTS) + Windows 10
最近读了波网络 I/O 相关的文章,做下总结、摘录。(未完)
阻塞式 I/O(blocking I/O)
非阻塞式 I/O(non-blocking I/O)
I/O 多路复用(I/O multiplexing)
信号驱动式 I/O(signal driven I/O)
异步 I/O(asynchronous I/O)
对于阻塞式 I/O,以套接字(Socket)的输入操作为例。