Skip to content

Instantly share code, notes, and snippets.

@avagin
Created February 3, 2016 02:13
Show Gist options
  • Save avagin/7e5854df28c63e5abaf3 to your computer and use it in GitHub Desktop.
Save avagin/7e5854df28c63e5abaf3 to your computer and use it in GitHub Desktop.
nf_conntrac vs tcp
04:58:30.279397 IP (tos 0x0, ttl 64, id 24922, offset 0, flags [DF], proto TCP (6), length 52)
127.0.0.1.8880 > 127.0.0.1.43814: Flags [.], cksum 0xfe28 (incorrect -> 0x7b33), seq 1081132048, ack 2965916432, win 342, options [nop,nop,TS val 404987 ecr 0], length 0
04:58:30.283197 IP (tos 0x0, ttl 64, id 61017, offset 0, flags [DF], proto TCP (6), length 52)
127.0.0.1.43814 > 127.0.0.1.8880: Flags [.], cksum 0xfe28 (incorrect -> 0x7b30), seq 2965916431, ack 1081132049, win 342, options [nop,nop,TS val 404990 ecr 0], length 0
04:58:30.285500 IP (tos 0x0, ttl 64, id 24923, offset 0, flags [DF], proto TCP (6), length 52)
127.0.0.1.8880 > 127.0.0.1.43814: Flags [.], cksum 0xfe28 (incorrect -> 0x7b28), seq 1081132049, ack 2965916432, win 342, options [nop,nop,TS val 404997 ecr 0], length 0
04:58:30.289530 IP (tos 0x0, ttl 64, id 61018, offset 0, flags [DF], proto TCP (6), length 52)
127.0.0.1.43814 > 127.0.0.1.8880: Flags [.], cksum 0xfe28 (incorrect -> 0x7b23), seq 2965916432, ack 1081132049, win 342, options [nop,nop,TS val 405002 ecr 0], length 0
04:58:40.667679 IP (tos 0x0, ttl 64, id 24924, offset 0, flags [DF], proto TCP (6), length 4148)
127.0.0.1.8880 > 127.0.0.1.43814: Flags [P.], cksum 0x0e29 (incorrect -> 0xc4fe), seq 1081132049:1081136145, ack 2965916432, win 342, options [nop,nop,TS val 415379 ecr 405002], length 4096
04:58:40.670406 IP (tos 0x0, ttl 64, id 61019, offset 0, flags [DF], proto TCP (6), length 52)
127.0.0.1.43814 > 127.0.0.1.8880: Flags [.], cksum 0xfe28 (incorrect -> 0xe7fc), seq 2965916432, ack 1081136145, win 1365, options [nop,nop,TS val 415384 ecr 415379], length 0
04:58:40.673178 IP (tos 0x0, ttl 64, id 61020, offset 0, flags [DF], proto TCP (6), length 4148)
127.0.0.1.43814 > 127.0.0.1.8880: Flags [P.], cksum 0x0e29 (incorrect -> 0x93b2), seq 2965916432:2965920528, ack 1081136145, win 1365, options [nop,nop,TS val 415387 ecr 415379], length 4096
04:58:40.675969 IP (tos 0x0, ttl 64, id 61021, offset 0, flags [DF], proto TCP (6), length 52)
127.0.0.1.43814 > 127.0.0.1.8880: Flags [F.], cksum 0xfe28 (incorrect -> 0xd7f5), seq 2965920528, ack 1081136145, win 1365, options [nop,nop,TS val 415390 ecr 415379], length 0
04:58:40.686979 IP (tos 0x0, ttl 64, id 24925, offset 0, flags [DF], proto TCP (6), length 52)
127.0.0.1.8880 > 127.0.0.1.43814: Flags [.], cksum 0xfe28 (incorrect -> 0xd7f1), seq 1081136145, ack 2965920528, win 1365, options [nop,nop,TS val 415387 ecr 415387], length 0
04:58:40.693244 IP (tos 0x0, ttl 64, id 24926, offset 0, flags [DF], proto TCP (6), length 52)
127.0.0.1.8880 > 127.0.0.1.43814: Flags [F.], cksum 0xfe28 (incorrect -> 0xd7de), seq 1081136145, ack 2965920529, win 1365, options [nop,nop,TS val 415401 ecr 415390], length 0
04:58:40.702417 IP (tos 0x0, ttl 64, id 61022, offset 0, flags [DF], proto TCP (6), length 52)
127.0.0.1.43814 > 127.0.0.1.8880: Flags [.], cksum 0xfe28 (incorrect -> 0xd7ca), seq 2965920529, ack 1081136146, win 1365, options [nop,nop,TS val 415410 ecr 415401], length 0
[ 704.578805] td_maxwin == 0
seq=1081132048 ack=2965916432+(0) sack=2965916432+(0) win=43690 end=1081132049
tcp_in_window: sender end=0 maxend=43690 maxwin=0 scale=0 receiver end=2965916432 maxend=2965916432 maxwin=43690 scale=7
[ 716.255151] device lo entered promiscuous mode
[ 735.528073] td_maxwin == 0
seq=1081132048 ack=2965916432+(0) sack=2965916432+(0) win=342 end=1081132048
tcp_in_window: sender end=0 maxend=0 maxwin=0 scale=0 receiver end=0 maxend=0 maxwin=0 scale=0
[ 735.529915] td_maxwin == 0
seq=2965916431 ack=1081132049+(0) sack=1081132049+(0) win=342 end=2965916431
tcp_in_window: sender end=2965916432 maxend=2965916774 maxwin=0 scale=0 receiver end=1081132048 maxend=1081132390 maxwin=342 scale=0
[ 735.533409] log_invalid:
seq=2965916431 ack=1081132049+(0) sack=1081132049+(0) win=342 end=2965916431
tcp_in_window: sender end=2965916431 maxend=2965916773 maxwin=342 scale=0 receiver end=1081132048 maxend=1081132390 maxwin=342 scale=0
[ 735.537651] nf_ct_tcp: ACK is over the upper bound (ACKed data not seen yet)
[ 735.541872] log_invalid:
seq=1081132048 ack=2965916432+(0) sack=2965916432+(0) win=342 end=1081132048
tcp_in_window: sender end=1081132048 maxend=1081132390 maxwin=342 scale=0 receiver end=2965916431 maxend=2965916773 maxwin=342 scale=0
[ 735.546303] nf_ct_tcp: ACK is over the upper bound (ACKed data not seen yet)
[ 735.547612] log_invalid:
seq=2965916431 ack=1081132049+(0) sack=1081132049+(0) win=342 end=2965916431
tcp_in_window: sender end=2965916431 maxend=2965916773 maxwin=342 scale=0 receiver end=1081132048 maxend=1081132390 maxwin=342 scale=0
[ 735.550803] nf_ct_tcp: ACK is over the upper bound (ACKed data not seen yet)
[ 735.551494] log_invalid:
seq=1081132049 ack=2965916432+(0) sack=2965916432+(0) win=342 end=1081132049
tcp_in_window: sender end=1081132048 maxend=1081132390 maxwin=342 scale=0 receiver end=2965916431 maxend=2965916773 maxwin=342 scale=0
[ 735.553241] nf_ct_tcp: ACK is over the upper bound (ACKed data not seen yet)
[ 735.553754] log_invalid:
seq=2965916432 ack=1081132049+(0) sack=1081132049+(0) win=342 end=2965916432
tcp_in_window: sender end=2965916431 maxend=2965916773 maxwin=342 scale=0 receiver end=1081132048 maxend=1081132390 maxwin=342 scale=0
[ 735.555745] nf_ct_tcp: ACK is over the upper bound (ACKed data not seen yet)
[ 745.933526] log_invalid:
seq=1081132049 ack=2965916432+(0) sack=2965916432+(0) win=342 end=1081136145
tcp_in_window: sender end=1081132048 maxend=1081132390 maxwin=342 scale=0 receiver end=2965916431 maxend=2965916773 maxwin=342 scale=0
[ 745.935360] nf_ct_tcp: ACK is over the upper bound (ACKed data not seen yet)
[ 745.935988] log_invalid:
seq=2965916432 ack=1081136145+(0) sack=1081136145+(0) win=1365 end=2965916432
tcp_in_window: sender end=2965916431 maxend=2965916773 maxwin=342 scale=0 receiver end=1081132048 maxend=1081132390 maxwin=342 scale=0
[ 745.937788] nf_ct_tcp: ACK is over the upper bound (ACKed data not seen yet)
[ 745.938933] log_invalid:
seq=2965916432 ack=1081136145+(0) sack=1081136145+(0) win=1365 end=2965920528
tcp_in_window: sender end=2965916431 maxend=2965916773 maxwin=342 scale=0 receiver end=1081132048 maxend=1081132390 maxwin=342 scale=0
[ 745.940868] nf_ct_tcp: ACK is over the upper bound (ACKed data not seen yet)
[ 745.941507] log_invalid:
seq=2965920528 ack=1081136145+(0) sack=1081136145+(0) win=1365 end=2965920529
tcp_in_window: sender end=2965916431 maxend=2965916773 maxwin=342 scale=0 receiver end=1081132048 maxend=1081132390 maxwin=342 scale=0
[ 745.943260] nf_ct_tcp: SEQ is over the upper bound (over the window of the receiver)
[ 745.944187] log_invalid:
seq=1081136145 ack=2965920528+(0) sack=2965920528+(0) win=1365 end=1081136145
tcp_in_window: sender end=1081132048 maxend=1081132390 maxwin=342 scale=0 receiver end=2965916431 maxend=2965916773 maxwin=342 scale=0
[ 745.953950] nf_ct_tcp: SEQ is over the upper bound (over the window of the receiver)
[ 745.955687] log_invalid:
seq=1081136145 ack=2965920529+(0) sack=2965920529+(0) win=1365 end=1081136146
tcp_in_window: sender end=1081132048 maxend=1081132390 maxwin=342 scale=0 receiver end=2965916431 maxend=2965916773 maxwin=342 scale=0
[ 745.960077] nf_ct_tcp: SEQ is over the upper bound (over the window of the receiver)
[ 745.961507] log_invalid:
seq=2965920529 ack=1081136146+(0) sack=1081136146+(0) win=1365 end=2965920529
tcp_in_window: sender end=2965916431 maxend=2965916773 maxwin=342 scale=0 receiver end=1081132048 maxend=1081132390 maxwin=342 scale=0
[ 745.965809] nf_ct_tcp: SEQ is over the upper bound (over the window of the receiver)
[ 753.945268] device lo left promiscuous mode
[root@fc22-vm criu]# ./crit show test/dump/zdtm/live/static/socket-tcp-local/75/1/tcp-stream-4114.img
{
"magic": "TCP_STREAM",
"entries": [
{
"inq_len": 0,
"inq_seq": 1081132049,
"outq_len": 0,
"outq_seq": 2965916432,
"opt_mask": "0x7",
"snd_wscale": 7,
"mss_clamp": 65495,
"rcv_wscale": 7,
"timestamp": 404977,
"unsq_len": 0,
"extra": {
"outq": "",
"inq": ""
}
}
]
}
[root@fc22-vm criu]# ./crit show test/dump/zdtm/live/static/socket-tcp-local/75/1/tcp-stream-4530.img
{
"magic": "TCP_STREAM",
"entries": [
{
"inq_len": 0,
"inq_seq": 2965916432,
"outq_len": 0,
"outq_seq": 1081132049,
"opt_mask": "0x7",
"snd_wscale": 7,
"mss_clamp": 65495,
"rcv_wscale": 7,
"timestamp": 404974,
"unsq_len": 0,
"extra": {
"outq": "",
"inq": ""
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment