Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to send a dummy packet to establish connection using the TCP/IP stack #2138

Closed
zephyrbot opened this issue Jul 30, 2016 · 15 comments
Closed
Assignees
Labels
area: Networking bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug

Comments

@zephyrbot
Copy link
Collaborator

zephyrbot commented Jul 30, 2016

Reported by Sergio Rodriguez:

In order to establish a connection to other element in the network using the current IP stack, some packet has to be sent, but this package is not being recognized by the other end, and is dropped, causing some some handshakes to fail (i.e. TLS) so in order to create the connection a dummy packet is send before the proper sequence, this might cause problems with other types of strict network negotiated protocols. this is related to GH-2105 so at least one byte

(Imported from Jira ZEP-612)

@zephyrbot
Copy link
Collaborator Author

zephyrbot commented Aug 3, 2016

by Ravi kumar Veeramally:

@zephyrbot
Copy link
Collaborator Author

zephyrbot commented Aug 3, 2016

by Ravi kumar Veeramally:

@zephyrbot
Copy link
Collaborator Author

by Ravi kumar Veeramally:

Hi Sergio,

Please find attached wireshark [^tcp-conn-close.pcapng] log, and also changes in echo_server application. [^tcp-bug.patch]

We have net tools in https://gerrit.zephyrproject.org/r/#/admin/projects/net-tools.

I tried echo-server running in qemu and echo-client on linux host. Attached sample tcp log from wireshark. It shows that we do not require any dummy packet to start connection.

Please try this.
Patch which I attached is only changes in sample test, nothing in core stack.

  1. Apply the patch.
  2. goto net tools and run ./loop-socat.sh
    and sudo ./loop-slip.sh
  3. run echo-server with 'make qemu'
  4. run echo-client from net tools
    sudo ./echo-client 2001:db8::2 -t

Let me know your findings.

@zephyrbot
Copy link
Collaborator Author

by Kuo-Lang Tseng:

Ravi kumar Veeramally Looks like the current work-around (1-bye dummy packet) is still needed.

@zephyrbot
Copy link
Collaborator Author

by Ravi kumar Veeramally:

Can you attach some kind of log with and without workaround and also sample app also to reproduce.

@zephyrbot
Copy link
Collaborator Author

by Andrei Laperie:

assigning to Kuo-Lang Tseng per Ravi kumar Veeramally comment

@zephyrbot
Copy link
Collaborator Author

by Kuo-Lang Tseng:

Sergio will provide more info once he is back.

@zephyrbot
Copy link
Collaborator Author

by Anas Nashif:

I do not get it why this bug is assigned back to the reporter instead of closing it as invalid or whatever. This way of doing things seems to be very common leaving a large number of bugs open for very long time without any resolution.

If you think a bug is invalid, just close it, if the reporter has some more information and a reason to believe the bug is still valid, reopen, this is how how bug systems work, re-assigning back and forth is not productive.

@zephyrbot
Copy link
Collaborator Author

by Anas Nashif:

please reopen if issue still exists

@zephyrbot
Copy link
Collaborator Author

by Mark Linkmeyer:

Sergio Rodriguez , as the Reporter, please move this to Verified then to Closed, or Reopen it with comments explaining why it can't be closed. Thx.

@zephyrbot
Copy link
Collaborator Author

by Sergio Rodriguez:

Since this has been indicated as won't do, and we have a current workaround, closing this jira item

@zephyrbot
Copy link
Collaborator Author

by Mark Linkmeyer:

Correcting the priority field

@zephyrbot
Copy link
Collaborator Author

zephyrbot commented Jan 31, 2017

Blocks GH-1969

@zephyrbot
Copy link
Collaborator Author

zephyrbot commented Jan 31, 2017

Blocks GH-2123

@zephyrbot
Copy link
Collaborator Author

zephyrbot commented Jan 31, 2017

Blocks GH-2124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

2 participants