OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Mar 19, 2024 4:30 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: [TCP] My OS acked the packet but windows is still sendin
PostPosted: Sat Jan 14, 2023 4:15 pm 
Offline
Member
Member

Joined: Tue Aug 17, 2021 10:40 am
Posts: 104
Location: CN
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

_________________
My github: https://github.com/nifanfa


Top
 Profile  
 
 Post subject: Re: [TCP] My OS acked the packet but windows is still sendin
PostPosted: Sat Jan 14, 2023 4:24 pm 
Offline
Member
Member

Joined: Tue Aug 17, 2021 10:40 am
Posts: 104
Location: CN
One thing should be notice of is that the lag between vmware and windows is very high

_________________
My github: https://github.com/nifanfa


Top
 Profile  
 
 Post subject: Re: [TCP] My OS acked the packet but windows is still sendin
PostPosted: Sat Jan 14, 2023 11:38 pm 
Offline
Member
Member

Joined: Tue Aug 17, 2021 10:40 am
Posts: 104
Location: CN
Help wanted!

_________________
My github: https://github.com/nifanfa


Top
 Profile  
 
 Post subject: Re: [TCP] My OS acked the packet but windows is still sendin
PostPosted: Sun Jan 15, 2023 2:39 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
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?


Top
 Profile  
 
 Post subject: Re: [TCP] My OS acked the packet but windows is still sendin
PostPosted: Sun Jan 15, 2023 6:53 am 
Offline
Member
Member

Joined: Tue Aug 17, 2021 10:40 am
Posts: 104
Location: CN
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

_________________
My github: https://github.com/nifanfa


Top
 Profile  
 
 Post subject: Re: [TCP] My OS acked the packet but windows is still sendin
PostPosted: Sun Jan 15, 2023 8:42 am 
Offline
Member
Member

Joined: Tue Aug 17, 2021 10:40 am
Posts: 104
Location: CN
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

_________________
My github: https://github.com/nifanfa


Top
 Profile  
 
 Post subject: Re: [TCP] My OS acked the packet but windows is still sendin
PostPosted: Sun Jan 15, 2023 8:49 am 
Offline
Member
Member

Joined: Tue Aug 17, 2021 10:40 am
Posts: 104
Location: CN
The cause that make windows continuing resending the packet is the incorrect tcp checksum

_________________
My github: https://github.com/nifanfa


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group