8000 tcp.handshake.synSentState() may have logical problems · Issue #13 · google/netstack · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 20, 2020. It is now read-only.
This repository was archived by the owner on May 20, 2020. It is now read-only.

tcp.handshake.synSentState() may have logical problems #13

Open

Description

@fanpei91

I think the func code L178-L239 has logical problems, look at the Basic 3-Way Handshake for Connection Synchronization:

Basic 3-Way Handshake for Connection Synchronization

TCP B can split <CTL=SYN,ACK> into <CTL=ACK> and <CTL=SYN>, then send them successively, so L194 will block the TCP B's <CTL=ACK>.

If you want TCP A only accept <CTL=SYN,ACK> from TCP B, L224-L236 is unnecessary.

Activity

  1. hbhasker commented on Nov 1, 2018

    @hbhasker
    Contributor

    I think you are right. We are probably not handling a simulataneous open case correctly. I thought we had a test for this but maybe not.

    Care to send a patch w/ test for simultaneous open(
    http://www.tcpipguide.com/free/t_TCPConnectionEstablishmentProcessTheThreeWayHandsh-4.htm)

  2. tamird commented on Feb 7, 2020

    @tamird
    Contributor

    @hbhasker should this be migrated to the gvisor repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0