How to know the routing table convergence time?

64 views
Skip to first unread message

haoran zhou

unread,
Oct 14, 2023, 6:22:45 AM10/14/23
to Network Simulator 2 (NS2)
Hello sir, I would like to know the time it takes for the routing table to converge again after the bgp session changes. My current guess is that the answer lies in the trace file.


haoran zhou

unread,
Oct 14, 2023, 6:28:51 AM10/14/23
to Network Simulator 2 (NS2)
QQ截图20231014182356.png
How does he know that the network will converge when the time is 117.5?
So I ran the sample on my computer and found this in the output file.QQ截图20231014182650.png
I found that there were many messages near 117.5. Although I did not understand the meaning of these messages, I guessed that this person concluded that the network converged at 117.5 because he observed these messages in the output file.
Am I right? gentlemen.

knudfl

unread,
Oct 14, 2023, 6:42:03 AM10/14/23
to Network Simulator 2 (NS2)
My comments : I guess you know how to copy-paste a text.
And :   Images with text will often not be read.

haoran zhou

unread,
Oct 14, 2023, 9:25:17 AM10/14/23
to Network Simulator 2 (NS2)
I'm sorry, Sir.
This is the link to the document。
reconnect.nam
I will gradually learn the wisdom of asking questions.

haoran zhou

unread,
Oct 15, 2023, 6:52:38 AM10/15/23
to Network Simulator 2 (NS2)
Hello Sir, this is the content of the document, if you can help me, I would be very grateful

haoran zhou

unread,
Oct 15, 2023, 7:03:30 AM10/15/23
to ns-u...@googlegroups.com
I'm sorry Sir, I'm using google Cloud drive for the first time, so I forgot to give you access, it's already open to share.

haoran zhou <zhouhao...@gmail.com> 于2023年10月15日周日 18:52写道:
--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/a6c06354-10cd-468c-a123-0ce555084db9n%40googlegroups.com.

knudfl

unread,
Oct 15, 2023, 8:47:43 AM10/15/23
to Network Simulator 2 (NS2)
Your zhouhao-reconnect-1.tcl is different from my BGP-ex/reconnect.tcl
$ diff -dbBwaur reconnect.tcl zhouhao-reconnect-1.tcl
Note : New files should have new file names. You cannot have two files with the same file name.

? About "timing" and "converge figures" :
The simulation text ends with these lines ...........
#* These times are recorded with "jitter_factor_seed" set to 12345.
#  (Please see file bgp/global.h)
...........  BGP-ex/reconnect.tcl , lines 93-94

About trace : The example 2reconnect.tcl can create out.tr
set nf [open reconnect.nam w]
$ns namtrace-all $nf
set tracefd        [open out.tr w]
$ns trace-all $tracefd

haoran zhou

unread,
Oct 24, 2023, 11:33:41 AM10/24/23
to Network Simulator 2 (NS2)
Yes Sir, I have read the bgp/global.h.  
The files are different, but that's not the point, the point is that I can't read the ns-bgp output file, I mean reconnect.nam.
For example, several lines are as follows:
"
V -t * -v 1.0a5 -a 0
A -t * -n 1 -p 0 -o 0x7fffffff -c 30 -a 1
A -t * -h 1 -m 1073741823 -s 0
n -t * -a 167772161 -s 0 -S UP -v circle -c black -i black
n -t * -a 167837953 -s 1 -S UP -v circle -c black -i black
n -t * -a 167903745 -s 2 -S UP -v circle -c black -i black
l -t * -s 0 -d 1 -S UP -r 1000000 -D 0.001 -c black
l -t * -s 0 -d 2 -S UP -r 1000000 -D 0.001 -c black
+ -t 0.01 -s 0 -d 1 -p tcp -e 40 -c 0 -i 0 -a 0 -x {167772161.180 167837953.179 0 ------- null}
- -t 0.01 -s 0 -d 1 -p tcp -e 40 -c 0 -i 0 -a 0 -x {167772161.180 167837953.179 0 ------- null}
h -t 0.01 -s 0 -d 1 -p tcp -e 40 -c 0 -i 0 -a 0 -x {167772161.180 167837953.179 -1 ------- null}
+ -t 0.01 -s 0 -d 2 -p tcp -e 40 -c 0 -i 1 -a 0 -x {167772161.181 167903745.179 0 ------- null}
- -t 0.01 -s 0 -d 2 -p tcp -e 40 -c 0 -i 1 -a 0 -x {167772161.181 167903745.179 0 ------- null}
h -t 0.01 -s 0 -d 2 -p tcp -e 40 -c 0 -i 1 -a 0 -x {167772161.181 167903745.179 -1 ------- null}
+ -t 0.01 -s 1 -d 0 -p tcp -e 40 -c 0 -i 2 -a 0 -x {167837953.180 167772161.179 0 ------- null}
- -t 0.01 -s 1 -d 0 -p tcp -e 40 -c 0 -i 2 -a 0 -x {167837953.180 167772161.179 0 ------- null}
h -t 0.01 -s 1 -d 0 -p tcp -e 40 -c 0 -i 2 -a 0 -x {167837953.180 167772161.179 -1 ------- null}
+ -t 0.01 -s 2 -d 0 -p tcp -e 40 -c 0 -i 3 -a 0 -x {167903745.180 167772161.179 0 ------- null}
- -t 0.01 -s 2 -d 0 -p tcp -e 40 -c 0 -i 3 -a 0 -x {167903745.180 167772161.179 0 ------- null}
h -t 0.01 -s 2 -d 0 -p tcp -e 40 -c 0 -i 3 -a 0 -x {167903745.180 167772161.179 -1 ------- null}
"
This is not the same as the normal ns file format, and I have not found an explanation for it on the web
In addition, the routing table convergence I refer to means that when the network changes, the routing table no longer exchanges information and reaches a stable state.
So I want to know after I execute the ns-bgp file, how do I know that the routing table converges properly? I want to find this moment.

knudfl

unread,
Oct 25, 2023, 4:14:40 AM10/25/23
to Network Simulator 2 (NS2)
Google      ns2 trace file

No official "Online documentation" any more from nsnam.com  ... any more.

Look for 'NS-2 Trace Formats - nsnam.html' ... that's the original nsnam doc
The "NAM Trace Formats" is the bottom section ....
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages