LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-24-2007, 09:47 PM   #1
jackandking
Member
 
Registered: Dec 2004
Posts: 92

Rep: Reputation: 15
ack retransmission


during a tcp communication, when will ack be retransmited?
If never, could some one give me a hint to implement that?
 
Old 06-25-2007, 03:00 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
There shouldn't be a need to retransmit an ACK ever. The sender will timeout on the missing ACK and retransmit.
 
Old 07-01-2007, 09:36 PM   #3
jackandking
Member
 
Registered: Dec 2004
Posts: 92

Original Poster
Rep: Reputation: 15
but the sender RTO(64s) make the recver wait too long, that's why I want the recver re-send several dup-acks to trigger the retransmission.
 
Old 07-01-2007, 09:48 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
If you send multiple ACKs, you won't get a retransmission, you'll get the next transmission.
 
Old 07-05-2007, 01:00 AM   #5
jackandking
Member
 
Registered: Dec 2004
Posts: 92

Original Poster
Rep: Reputation: 15
according to rfc793:
----------snd.una---------snd.max---------
if the sender get enough dup-ack(snd.una), it will thought that packet been lost and resend it, doesn't it?
 
Old 07-05-2007, 06:04 AM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
Good luck with that. You'll end up breaking state and resetting to return to a synchronized state. Your transmission will essentially come to a stop briefly. Try it with a sniffer running to see the result, but remember that all TCP stacks are not created equal.

Maybe you want to use a UDP-based protocol for your transmission?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ack..what the hell.. RoaCh Of DisCor MEPIS 6 07-31-2006 07:37 PM
TCP retransmission and duplicated ack enjoyzj Linux - Networking 0 06-05-2004 06:19 PM
Delayed ACK Z-Ice Linux - Networking 4 05-24-2004 03:46 PM
ack, im a noob no_order Slackware 2 07-06-2003 09:54 PM
Ack, Help! meddleRPI Linux - General 2 05-23-2003 10:32 PM


All times are GMT -5. The time now is 03:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration