PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Noms de domaine > comp.protocols.tcp-ip > Fast Recovery
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.protocols.tcp-ip TCP and IP network protocols.

Fast Recovery

Réponse
 
LinkBack Outils de la discussion
Vieux 08/03/2006, 22h18   #1 (permalink)
lyrx
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Fast Recovery

Hi, I wanted to discuss the Fast Recovery code in FreeBSD, specifically
when we come out of Fast Recovery. (This is a slightly modified code)

==> IF SACK ENABLE
if (tp->t_dupacks >= tcprexmtthresh) {
/* Check for a partial ACK */
if (tcp_sack_partialack(tp, th)) {
tp->snd_cwnd += tp->t_maxseg;
needoutput = 1;
} else {
/* Out of fast recovery */
tp->snd_cwnd = tp->snd_ssthresh;
if (tcp_seq_subtract(tp->snd_max,
th->th_ack) < tp->snd_ssthresh)
tp->snd_cwnd =
tcp_seq_subtract(tp->snd_max,
th->th_ack) + tp->t_maxseg;
tp->t_dupacks = 0;
}
}

Consider that SACK is enabled. We have more than tcprexmtthresh dupacks
so far. This is the ACK that acks the lost and fast retransmitted
packet. It is not a partial ACK.

So the out of fast recovery code.

tp->snd_cwnd = tp->snd_ssthresh; /* set cwnd to ssthresh */

if (tcp_seq_subtract(tp->snd_max, th->th_ack) < tp->snd_ssthresh)
tp->snd_cwnd = tcp_seq_subtract(tp->snd_max, th->th_ack) +
tp->t_maxseg;

So if snd_max - th_ack < snd_ssthresh, i.e. we did not send
snd_ssthresh worth of data during Fast Recovery, we set

snd_cwnd = (snd_max - th_ack) + t_maxseg

This looks like a problem to me. The RFC says just set cwnd to
ssthresh. In this code if we sent little, we would scale down the
congestion window for no reason. Shouldnt we just set it to
snd_ssthresh.

Am I reading this wrong, or is this how it is supposed to be. Comments.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h48.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,06176 seconds with 9 queries