随笔分类 - Network
摘要: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
阅读全文
摘要: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
阅读全文
摘要:Timestamp option http://www.networksorcery.com/enp/protocol/tcp/option008.htm Timestamp Value (TSval). 32 bits. This field contains the current value
阅读全文
摘要:Headers Connection Management State Tansition Diagram Sequence Diagram Normal Simultaneous Open Simultaneous Close Half Close Normal with State Exampl
阅读全文
摘要:What is endianness? Little and big endian are two ways of storing multibyte data types ( int, float, etc). In little endian machines, last byte of bin
阅读全文
摘要:Docs and Articles Manpage of TCPDUMP Manpage of PCAP-FILTER Examples of using tcpdump on the command line tcpdump命令详解 Capture of tcp
阅读全文
摘要:Headers Lables Each label can be up to 63 characters long, and an entire FQDN(fully qualified domain name) is limited to at most 255 (1-byte) characte
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:UDP headers Headers for computing checksum The checksum computation is similar to the Internet checksum computation. #include <bits/stdc++.h> #define
阅读全文
摘要:Command https://linux.die.net/man/8/traceroute This program attempts to trace the route an IP packet would follow to some internet host by launching p
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号