[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quagga-users
Subject:    [quagga-users 8006] ripd update jitter
From:       "Tim Keupen" <timbub () uni-koblenz ! de>
Date:       2007-02-05 10:26:42
Message-ID: 000a01c74910$22e64850$6502a8c0 () tim
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,
the jitter for periodic updates in ripd is defined here:

static int

rip_update_jitter (unsigned long time)

{

#define JITTER_BOUND 4

/* We want to get the jitter to +/- 1/JITTER_BOUND the interval.

Given that, we cannot let time be less than JITTER_BOUND seconds.

The RIPv2 RFC says jitter should be small compared to

update_time. We consider 1/JITTER_BOUND to be small.

*/


int jitter_input = time;

int jitter;


if (jitter_input < JITTER_BOUND)

jitter_input = JITTER_BOUND;


jitter = (((rand () % ((jitter_input * 2) + 1)) - jitter_input));  

return jitter/JITTER_BOUND;

}



Is it +/- 1/4 of update time? I didnt understand the last 2 lines clearly...



Greets Tim Keupen

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2>the jitter for periodic updates in ripd is defined 
here:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>
<P>static int</P>
<P>rip_update_jitter (unsigned long time)</P>
<P>{</P>
<P>#define JITTER_BOUND 4</P>
<P>/* We want to get the jitter to +/- 1/JITTER_BOUND the interval.</P>
<P>Given that, we cannot let time be less than JITTER_BOUND seconds.</P>
<P>The RIPv2 RFC says jitter should be small compared to</P>
<P>update_time. We consider 1/JITTER_BOUND to be small.</P>
<P>*/</P>
<P></P>
<P>int jitter_input = time;</P>
<P>int jitter;</P>
<P></P>
<P>if (jitter_input &lt; JITTER_BOUND)</P>
<P>jitter_input = JITTER_BOUND;</P>
<P></P>
<P>jitter = (((rand () % ((jitter_input * 2) + 1)) - jitter_input));&nbsp; </P>
<P>return jitter/JITTER_BOUND;</P>
<P>}</P>
<P>&nbsp;</P>
<P><FONT face=Arial>Is it +/- 1/4 of update time? I didnt understand&nbsp;the 
last 2 lines&nbsp;clearly...</FONT></P>
<P><FONT face=Arial></FONT>&nbsp;</P>
<P><FONT face=Arial>Greets Tim Keupen</FONT></P></FONT></DIV></BODY></HTML>


_______________________________________________
Quagga-users mailing list
Quagga-users@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic