[TCP] My OS acked the packet but windows is still sending

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
nifanfa
Member
Member
Posts: 104
Joined: Tue Aug 17, 2021 10:40 am
Libera.chat IRC: visitor
Location: CN
Contact:

Re: [TCP] My OS acked the packet but windows is still sendin

Post by nifanfa »

Klakap wrote:I see that you use same source and destination port. I am not TCP expert, but it seems wrong to me. I think you should use different port for you and different port for server.
No that still didn't help
nifanfa
Member
Member
Posts: 104
Joined: Tue Aug 17, 2021 10:40 am
Libera.chat IRC: visitor
Location: CN
Contact:

Re: [TCP] My OS acked the packet but windows is still sendin

Post by nifanfa »

One thing should be notice of is that the lag between vmware and windows is very high
nifanfa
Member
Member
Posts: 104
Joined: Tue Aug 17, 2021 10:40 am
Libera.chat IRC: visitor
Location: CN
Contact:

Re: [TCP] My OS acked the packet but windows is still sendin

Post by nifanfa »

Help wanted!
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: [TCP] My OS acked the packet but windows is still sendin

Post by iansjack »

nifanfa wrote:
Klakap wrote:well I am not sure what is this connection supposed to do, but it seems like you are not responding to request in PSH ACK packet, you just ancknowledge it with length 0, so windows is trying to get some answer from you.
So all i have to do is send the same packet to windows with PSH ACK flags?
You have changed the packet so that the source and destination MACs are correct, haven't you?
nifanfa
Member
Member
Posts: 104
Joined: Tue Aug 17, 2021 10:40 am
Libera.chat IRC: visitor
Location: CN
Contact:

Re: [TCP] My OS acked the packet but windows is still sendin

Post by nifanfa »

iansjack wrote:
nifanfa wrote:
Klakap wrote:well I am not sure what is this connection supposed to do, but it seems like you are not responding to request in PSH ACK packet, you just ancknowledge it with length 0, so windows is trying to get some answer from you.
So all i have to do is send the same packet to windows with PSH ACK flags?
You have changed the packet so that the source and destination MACs are correct, haven't you?
MACs are all correct
nifanfa
Member
Member
Posts: 104
Joined: Tue Aug 17, 2021 10:40 am
Libera.chat IRC: visitor
Location: CN
Contact:

Re: [TCP] My OS acked the packet but windows is still sendin

Post by nifanfa »

The problem is solved. It is caused by that i allocated the network buffer on the stack using "stackalloc byte[]", but I didn't zerofill it. so there are full of garbage data on that address which made TCP go wrong
nifanfa
Member
Member
Posts: 104
Joined: Tue Aug 17, 2021 10:40 am
Libera.chat IRC: visitor
Location: CN
Contact:

Re: [TCP] My OS acked the packet but windows is still sendin

Post by nifanfa »

The cause that make windows continuing resending the packet is the incorrect tcp checksum
Post Reply