| To: | Stephen Hemminger <shemminger@xxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] netem: fix logic bug in reorder conditional |
| From: | Julio Kriger <juliokriger@xxxxxxxxx> |
| Date: | Tue, 24 May 2005 12:41:11 -0300 |
| Cc: | "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx, netem@xxxxxxxx |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dpsWoZ0e/sanDt0iaeSCTCiPrmT8nHNnQxN4OglmyL1/UBwonAL8k58lAPgz3rU/NwiMErT6qNOmxm3TIUB2XfMe1+C8umcxb6hdX28Xr9MI9RvPA8eIMo0evp5bxZ/KQYUvCGn5M1L823vwhYPhk7ko2csjtxD6oFjl0qSOxEA= |
| In-reply-to: | <20050523140055.127f1a9f@xxxxxxxxxxxxxxxxx> |
| References: | <20050519151254.79afe7e7@xxxxxxxxxxxxxxxxx> <682bc30a05052116005bc813a2@xxxxxxxxxxxxxx> <20050523104342.78b1032d@xxxxxxxxxxxxxxxxx> <682bc30a050523135534b38b8b@xxxxxxxxxxxxxx> <20050523140055.127f1a9f@xxxxxxxxxxxxxxxxx> |
| Reply-to: | Julio Kriger <juliokriger@xxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
> > 2) If I set latency = 50ms and a jitter = 300ms, tabledist can give me > > a negative number. This value is addes to cb->time_to_send, so it > > could change it to a negative value. Should we only accept positives > > number before add it to cb->time_to_send? or will > > q->qdisc->enqueue(skb, q->qdisc) put the package on the queue in a > > special way so it will be handled "before" other packages alrealy on > > the queue but with gretaer time_to_send? > > probably should bound the value to 0 before the addition, to avoid large > wraparound problems, but since enqueue checks for for time it will work > as long as delta less than 2^32/2. > I think the value should be restricted to be positive and greater than zero. Becuase if a negative number is allowed we will be "losing" packages to be reordered, hence we will not be reordering, say 25%, of packages instead we will be reordering about 15%. In other words, packages that should be reordered will not be reordered because its new time to send will be the same as the old time to send. Regards, Julio -- ---------------------------- Julio Kriger mailto:juliokriger@xxxxxxxxx |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [6/6] ipw2200: fix after "ieee80211: ethernet independency", Jiri Benc |
|---|---|
| Next by Date: | Re: [PATCH] Super TSO v3, Rick Jones |
| Previous by Thread: | Re: [PATCH] netem: fix logic bug in reorder conditional, Stephen Hemminger |
| Next by Thread: | Re: [PATCH] netem: fix logic bug in reorder conditional, Stephen Hemminger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |