Skip to contentSkip to conversation

reliable: retransmit if 3 follow-up ACKs are received

PATCH Gert Doering 3 participants 6 messages Mar 31, 2021 – Apr 1, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]...

#1 lore raw

Hi,

Quoted 3 lines · Max Fillinger

This is my second attempt at sending this patch, this time without mixing up commit message and cover letter, and from an account that (I hope) doesn't hate mailing lists.

It works :-)

(I would have managed to merge the other patch as well - I have a pre-push hook now that refuses push if "openvpn-devel" is listed as Author... - and your patch had Steffan's "From:" anyway)

Anyway, this is definitely interesting, but I did not have time to dig into understanding the reliable layer yet...

gert

Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]...
#2 lore raw
In reply to a message not in the archive
Quoted 8 lines

This is my second attempt at sending this patch, this time without mixing up commit message and cover letter, and from an account that (I hope) doesn't hate mailing lists.

This patch changes reliable_send() to resend a packet if at least three later packets have been ACKed. This improves performance when there are small amounts of packet loss.

Quoted 6 lines

The patch was originally written by Steffan Karger for OpenVPN-NL. I added some comments as suggested by Arne Schwabe.

Steffan Karger (1):
reliable: retransmit if 3 follow-up ACKs are received

Hi Max,

Just a shy question, am I right that this will work with UDP connections?

If so then I'm interested to test it.

Regards,
Simon

#3 lore raw

Am 31.03.2021 um 21:39 schrieb Simon Matter:

Quoted 11 lines
Quoted 11 lines

This is my second attempt at sending this patch, this time without mixing up commit message and cover letter, and from an account that (I hope) doesn't hate mailing lists.

This patch changes reliable_send() to resend a packet if at least three later packets have been ACKed. This improves performance when there are small amounts of packet loss.

The patch was originally written by Steffan Karger for OpenVPN-NL. I added some comments as suggested by Arne Schwabe.

Quoted 8 lines
Quoted 3 lines

Steffan Karger (1):
reliable: retransmit if 3 follow-up ACKs are received

Hi Max,

Just a shy question, am I right that this will work with UDP connections?

If so then I'm interested to test it.

Yes. But it only affects the control channel. For data channel we never do retransmits.

Arne

#4 lore raw
Quoted 18 lines

Am 31.03.2021 um 21:39 schrieb Simon Matter:

Quoted 16 lines
Quoted 8 lines

This is my second attempt at sending this patch, this time without mixing up commit message and cover letter, and from an account that (I hope) doesn't hate mailing lists.

This patch changes reliable_send() to resend a packet if at least three later packets have been ACKed. This improves performance when there are small amounts of packet loss.

Quoted 6 lines

The patch was originally written by Steffan Karger for OpenVPN-NL. I added some comments as suggested by Arne Schwabe.

Steffan Karger (1):
reliable: retransmit if 3 follow-up ACKs are received

Hi Max,

Quoted 7 lines
Quoted 4 lines

Just a shy question, am I right that this will work with UDP connections?

If so then I'm interested to test it.

Yes. But it only affects the control channel. For data channel we never do retransmits.

OK, but it still could help in case of things like VoIP UDP over OpenVPN UDP with lots of small packets going over the link with low package loss?

Simon

#5 lore raw

Hi,

Quoted 5 lines · Simon Matter
Quoted 2 lines

Yes. But it only affects the control channel. For data channel we never do retransmits.

OK, but it still could help in case of things like VoIP UDP over OpenVPN UDP with lots of small packets going over the link with low package loss?

No, because VoIP-over-OpenVPN would be "data channel".

It would help with "control channel handshake takes very long due to packet loss".

There's a different patchset floating around (I think it's a PR, actually) that promises to add data-channel redundancy and being able to recover some amount of packet loss without retransmit. Which I find very interesting, but this has not been followed up due to "it's complex and nobody has time" reasons.

gert

Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]...
#6 lore raw
Quoted 25 lines

Hi,

Quoted 7 lines · Simon Matter
Quoted 1 line

Yes. But it only affects the control channel. For data channel we

never

Quoted 1 line

do retransmits.

OK, but it still could help in case of things like VoIP UDP over OpenVPN UDP with lots of small packets going over the link with low package loss?

No, because VoIP-over-OpenVPN would be "data channel".

It would help with "control channel handshake takes very long due to packet
loss".

There's a different patchset floating around (I think it's a PR, actually) that promises to add data-channel redundancy and being able to recover some
amount of packet loss without retransmit. Which I find very interesting, but this has not been followed up due to "it's complex and nobody has time"
reasons.

Quoted 1 line

gert

Thanks for the explanation!

Simon