From nobody Wed Aug 03 06:29:54 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LyMR63H54z4Yrs3 for ; Wed, 3 Aug 2022 06:29:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LyMR61wbhz3ySD for ; Wed, 3 Aug 2022 06:29:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LyMR60w1pzhbv for ; Wed, 3 Aug 2022 06:29:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2736Tsuj008326 for ; Wed, 3 Aug 2022 06:29:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2736Tseb008325 for bugs@FreeBSD.org; Wed, 3 Aug 2022 06:29:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 265588] [TCP] - tcp send a retransmission identical sequence number packet with different payload Date: Wed, 03 Aug 2022 06:29:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: keyong.sun@smartx.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659508194; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Uq7K4pk+QdcTt5zysZFrA4Fig19VU0sLqfLrjyYR4vI=; b=eiwIHq9XzbqZGMtW6B3vCW4eAf45zkMehwgy9efFaNryDCwET5bofzK3sgNvdTdZl2JBSu 1lGSrSTkblvE8zL9nJwLG21nX2Jh3+R7GWUyXos2XAtFQsjVL137L5TB1/ux03w057QS0b oXd90aMYZVFIVuIHOD0xm+D0Piwl2eTxkt5bqiq7PulVfY2qB0lIhc2jdiVfygb/q5xBOW 7LJTAJdGb3koDRZHG0jWCuCWPATZxBsyZvytCtsoaUkz8iNQtDlgQ5RcJrSdVPJZ0rTD4t kIqnwL/eiJM/RXAXZeRNeLwqX6GkF0Q9jZ0K3fEpKGTxUVnnZwCKdY48Y3dROg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659508194; a=rsa-sha256; cv=none; b=attGkT1yezZAsYm3pCX/QDGNZGHji5zjnR8K98axK6wNnbyWUANzpDkm2SsvNWzZ5VrU7g KJSn2jkvCisTXgYxwCXY5hzmSugi3TGHdBNTx/sr4Szf9MJy+sim4COkqSVXOubx9ZN0BA uFPSWzco7+s8Kx+vxR26FillthpXr14g3QvNVa2pPcQXlmRIZLQnDus9PnjDGAC/xgxEO9 hSoUSmWWuB/fVzjM3EUe2cp5G4HZH2DOrOceJ+dNqd7JAITJSZSibRrpskVdhtu1IjDi64 WAksX35/8ZGmnhbrAQKw4t/4qMQBFeODS64Wm4vk6xrxEbeTP5dCDF7DboEMpg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265588 Bug ID: 265588 Summary: [TCP] - tcp send a retransmission identical sequence number packet with different payload Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: keyong.sun@smartx.com Created attachment 235649 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D235649&action= =3Dedit packet capture with identical sequence Recently I test the nas deployed on the freeBSD 13.1-RC6 os as server, use = the client try to read a lager data such as 13k. The server try to split the 13k data as several segment, such as the follow= ing tcpdump output: [21 Reassembled TCP Segments (131180 bytes): #2(15928), #23(2896), #27(5792= ), #29(7240), #31(2896), #33(7240), #35(5792), #37(5792), #39(10136), #41(7240= ), #43(2896), #45(5792), #47(5792), #49(4344), #51(7240), #62(1448), #66(1448), #55(724] [Frame: 2, payload: 0-15927 (15928 bytes)] [Frame: 23, payload: 15928-18823 (2896 bytes)] [Frame: 27, payload: 18824-24615 (5792 bytes)] [Frame: 29, payload: 24616-31855 (7240 bytes)] [Frame: 31, payload: 31856-34751 (2896 bytes)] [Frame: 33, payload: 34752-41991 (7240 bytes)] [Frame: 35, payload: 41992-47783 (5792 bytes)] [Frame: 37, payload: 47784-53575 (5792 bytes)] [Frame: 39, payload: 53576-63711 (10136 bytes)] [Frame: 41, payload: 63712-70951 (7240 bytes)] [Frame: 43, payload: 70952-73847 (2896 bytes)] [Frame: 45, payload: 73848-79639 (5792 bytes)] [Frame: 47, payload: 79640-85431 (5792 bytes)] [Frame: 49, payload: 85432-89775 (4344 bytes)] [Frame: 51, payload: 89776-97015 (7240 bytes)] [Frame: 62, payload: 94120-95567 (1448 bytes)] [Frame: 66, payload: 95568-97015 (1448 bytes)] [Frame: 55, payload: 97016-104255 (7240 bytes)] [Frame: 57, payload: 104256-121631 (17376 bytes)] [Frame: 67, payload: 121632-127423 (5792 bytes)] [Frame: 68, payload: 127424-131179 (3756 bytes)] [Segment count: 21] [Reassembled TCP length: 131180] [Reassembled TCP Data: 80020068bfece9f500000001000000000000000000000000000000000000000000000000=E2= =80=A6] But the very strange thing is in the packet tcpdump, there are two identical sequence segmentations with different payload, the packet Id #62 and #63, w= ith the same sequence #2302694791, but the content in the payload beginning is different, the #63 is a retransmission packet: #62: Transmission Control Protocol, Src Port: 2049, Dst Port: 703, Seq: 129369, = Ack: 229, Len: 1448 Sequence Number: 129369 (relative sequence number) Sequence Number (raw): 2302694791 [Next Sequence Number: 130817 (relative sequence number)] Acknowledgment Number: 229 (relative ack number) Acknowledgment number (raw): 3290470326 1000 .... =3D Header Length: 32 bytes (8) Flags: 0x010 (ACK) Window: 29128 [Calculated window size: 29128] TCP payload (1448 bytes) [Reassembled PDU in frame: 68] #63: Transmission Control Protocol, Src Port: 2049, Dst Port: 703, Seq: 129369, = Ack: 229, Len: 27512 Sequence Number: 129369 (relative sequence number) Sequence Number (raw): 2302694791 [Next Sequence Number: 156881 (relative sequence number)] Acknowledgment Number: 229 (relative ack number) Acknowledgment number (raw): 3290470326 1000 .... =3D Header Length: 32 bytes (8) Flags: 0x010 (ACK) Window: 29128 Retransmitted TCP segment data (27512 bytes) Because of the identical sequence segments with different payload, the clie= nt side reassemble the total payload with wrong content. Is this expect behavior or a bug in the network stack handle the retransmission? thx. --=20 You are receiving this mail because: You are the assignee for the bug.=