随笔分类 -  TCP/IP

摘要:Retransmission TCP sets a timer when it sends data, and if the data is not acknowledged when the timer expires, a timeout or timer-based retransmissio 阅读全文
posted @ 2020-05-12 18:30 ToRapture 阅读(129) 评论(0) 推荐(0)
摘要:Reset In general, a reset is sent by TCP whenever a segment arrives that does not appear to be correct for the referenced connection. The reset segmen 阅读全文
posted @ 2020-05-12 17:48 ToRapture 阅读(143) 评论(0) 推荐(0)
摘要:Timestamp option http://www.networksorcery.com/enp/protocol/tcp/option008.htm Timestamp Value (TSval). 32 bits. This field contains the current value 阅读全文
posted @ 2020-05-12 17:19 ToRapture 阅读(143) 评论(0) 推荐(0)
摘要:Headers Connection Management State Tansition Diagram Sequence Diagram Normal Simultaneous Open Simultaneous Close Half Close Normal with State Exampl 阅读全文
posted @ 2020-05-09 17:48 ToRapture 阅读(190) 评论(0) 推荐(0)
摘要:Docs and Articles Manpage of TCPDUMP Manpage of PCAP-FILTER Examples of using tcpdump on the command line tcpdump命令详解 Capture of tcp 阅读全文
posted @ 2020-05-09 15:00 ToRapture 阅读(101) 评论(0) 推荐(0)
摘要:Do some experiment about UDP by Python3 and netstat. Code # coding: utf-8 import socket from IPython import embed def main(): sock = socket.socket(soc 阅读全文
posted @ 2020-04-28 12:49 ToRapture 阅读(172) 评论(0) 推荐(0)
摘要:Find max packet size # coding: utf-8 import socket def find_max_udp_packet_size(): sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) max_sz = 0 阅读全文
posted @ 2020-04-27 18:30 ToRapture 阅读(145) 评论(0) 推荐(0)
摘要:UDP headers Headers for computing checksum The checksum computation is similar to the Internet checksum computation. #include <bits/stdc++.h> #define 阅读全文
posted @ 2020-04-27 14:03 ToRapture 阅读(332) 评论(0) 推荐(0)
摘要:From: TCP/IP Illustrated, Volume 1: The Protocols. IHL The Internet Header Length (IHL) field is the number of 32-bit words in the IPv4 header, includ 阅读全文
posted @ 2020-04-24 17:13 ToRapture 阅读(296) 评论(0) 推荐(0)
摘要:ifconfig https://linux.die.net/man/8/ifconfig Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up 阅读全文
posted @ 2020-04-24 16:47 ToRapture 阅读(177) 评论(0) 推荐(0)
摘要:To do an experiment, first capture an IP packet, as we can see the checksum is 0xCAD7. Then we set the checksum field to 0, and calculate the checksum 阅读全文
posted @ 2020-04-23 14:22 ToRapture 阅读(263) 评论(0) 推荐(0)