# 三次握手:SYN=1 Seq=0
No. Time Source Destination Protocol Length Info
50 7.055660280 127.0.0.1 127.0.0.1 TCP 74 44156 → 12345 [SYN] Seq=0 Win=65495 Len=0 MSS=65495 SACK_PERM TSval=2731439096 TSecr=0 WS=128
Frame 50: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface lo, id 0
Section number: 1
Interface id: 0 (lo)
Encapsulation type: Ethernet (1)
Arrival Time: Aug 29, 2023 08:26:32.312489778 EDT
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1693311992.312489778 seconds
[Time delta from previous captured frame: 0.004110298 seconds]
[Time delta from previous displayed frame: 0.000000000 seconds]
[Time since reference or first frame: 7.055660280 seconds]
Frame Number: 50
Frame Length: 74 bytes (592 bits)
Capture Length: 74 bytes (592 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ethertype:ip:tcp]
[Coloring Rule Name: TCP SYN/FIN]
[Coloring Rule String: tcp.flags & 0x02 || tcp.flags.fin == 1]
Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00)
Internet Protocol Version 4, Src: 127.0.0.1, Dst: 127.0.0.1
Transmission Control Protocol, Src Port: 44156, Dst Port: 12345, Seq: 0, Len: 0
# 三次握手:SYN1 ACK=1 Seq=0
No. Time Source Destination Protocol Length Info
51 7.055692471 127.0.0.1 127.0.0.1 TCP 74 12345 → 44156 [SYN, ACK] Seq=0 Ack=1 Win=65483 Len=0 MSS=65495 SACK_PERM TSval=2731439096 TSecr=2731439096 WS=128
Frame 51: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface lo, id 0
Section number: 1
Interface id: 0 (lo)
Encapsulation type: Ethernet (1)
Arrival Time: Aug 29, 2023 08:26:32.312521969 EDT
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1693311992.312521969 seconds
[Time delta from previous captured frame: 0.000032191 seconds]
[Time delta from previous displayed frame: 0.000032191 seconds]
[Time since reference or first frame: 7.055692471 seconds]
Frame Number: 51
Frame Length: 74 bytes (592 bits)
Capture Length: 74 bytes (592 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ethertype:ip:tcp]
[Coloring Rule Name: TCP SYN/FIN]
[Coloring Rule String: tcp.flags & 0x02 || tcp.flags.fin == 1]
Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00)
Internet Protocol Version 4, Src: 127.0.0.1, Dst: 127.0.0.1
Transmission Control Protocol, Src Port: 12345, Dst Port: 44156, Seq: 0, Ack: 1, Len: 0
# 三次握手:Ack=1 Seq=1
No. Time Source Destination Protocol Length Info
52 7.055725041 127.0.0.1 127.0.0.1 TCP 66 44156 → 12345 [ACK] Seq=1 Ack=1 Win=65536 Len=0 TSval=2731439096 TSecr=2731439096
Frame 52: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface lo, id 0
Section number: 1
Interface id: 0 (lo)
Encapsulation type: Ethernet (1)
Arrival Time: Aug 29, 2023 08:26:32.312554539 EDT
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1693311992.312554539 seconds
[Time delta from previous captured frame: 0.000032570 seconds]
[Time delta from previous displayed frame: 0.000032570 seconds]
[Time since reference or first frame: 7.055725041 seconds]
Frame Number: 52
Frame Length: 66 bytes (528 bits)
Capture Length: 66 bytes (528 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ethertype:ip:tcp]
[Coloring Rule Name: TCP]
[Coloring Rule String: tcp]
Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00)
Internet Protocol Version 4, Src: 127.0.0.1, Dst: 127.0.0.1
Transmission Control Protocol, Src Port: 44156, Dst Port: 12345, Seq: 1, Ack: 1, Len: 0
# 客户端发送消息 Hello, server!.
No. Time Source Destination Protocol Length Info
53 7.057834891 127.0.0.1 127.0.0.1 TCP 81 44156 → 12345 [PSH, ACK] Seq=1 Ack=1 Win=65536 Len=15 TSval=2731439098 TSecr=2731439096
Frame 53: 81 bytes on wire (648 bits), 81 bytes captured (648 bits) on interface lo, id 0
Section number: 1
Interface id: 0 (lo)
Encapsulation type: Ethernet (1)
Arrival Time: Aug 29, 2023 08:26:32.314664389 EDT
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1693311992.314664389 seconds
[Time delta from previous captured frame: 0.002109850 seconds]
[Time delta from previous displayed frame: 0.002109850 seconds]
[Time since reference or first frame: 7.057834891 seconds]
Frame Number: 53
Frame Length: 81 bytes (648 bits)
Capture Length: 81 bytes (648 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ethertype:ip:tcp:data]
[Coloring Rule Name: TCP]
[Coloring Rule String: tcp]
Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00)
Internet Protocol Version 4, Src: 127.0.0.1, Dst: 127.0.0.1
Transmission Control Protocol, Src Port: 44156, Dst Port: 12345, Seq: 1, Ack: 1, Len: 15
Data (15 bytes)
0000 48 65 6c 6c 6f 2c 20 73 65 72 76 65 72 21 0a Hello, server!.
# 服务端应答
No. Time Source Destination Protocol Length Info
54 7.057859991 127.0.0.1 127.0.0.1 TCP 66 12345 → 44156 [ACK] Seq=1 Ack=16 Win=65536 Len=0 TSval=2731439098 TSecr=2731439098
Frame 54: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface lo, id 0
Section number: 1
Interface id: 0 (lo)
Encapsulation type: Ethernet (1)
Arrival Time: Aug 29, 2023 08:26:32.314689489 EDT
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1693311992.314689489 seconds
[Time delta from previous captured frame: 0.000025100 seconds]
[Time delta from previous displayed frame: 0.000025100 seconds]
[Time since reference or first frame: 7.057859991 seconds]
Frame Number: 54
Frame Length: 66 bytes (528 bits)
Capture Length: 66 bytes (528 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ethertype:ip:tcp]
[Coloring Rule Name: TCP]
[Coloring Rule String: tcp]
Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00)
Internet Protocol Version 4, Src: 127.0.0.1, Dst: 127.0.0.1
Transmission Control Protocol, Src Port: 12345, Dst Port: 44156, Seq: 1, Ack: 16, Len: 0
# 服务端发送消息 Server received: Hello, server!.
No. Time Source Destination Protocol Length Info
55 7.059237157 127.0.0.1 127.0.0.1 TCP 98 12345 → 44156 [PSH, ACK] Seq=1 Ack=16 Win=65536 Len=32 TSval=2731439100 TSecr=2731439098
Frame 55: 98 bytes on wire (784 bits), 98 bytes captured (784 bits) on interface lo, id 0
Section number: 1
Interface id: 0 (lo)
Encapsulation type: Ethernet (1)
Arrival Time: Aug 29, 2023 08:26:32.316066655 EDT
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1693311992.316066655 seconds
[Time delta from previous captured frame: 0.001377166 seconds]
[Time delta from previous displayed frame: 0.001377166 seconds]
[Time since reference or first frame: 7.059237157 seconds]
Frame Number: 55
Frame Length: 98 bytes (784 bits)
Capture Length: 98 bytes (784 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ethertype:ip:tcp:data]
[Coloring Rule Name: TCP]
[Coloring Rule String: tcp]
Ethernet II, Src: 00:00:00_0