[LARTC] poor performance for building route cache

2006-05-24 Thread Nai-Hsien



I did a test shown as following diagram. (The 
DUTis running Linux with NAPI ethernet driver.)
I add 1000 routes into DUT then use the 
Smartbits
port1 to send packets (with destinations to 
all the 1000 networks)to the DUT then receive
them back from the port 2. The packets are 
sending in a rate that is much lower than 
half of
throughput of the DUT.

The DUT will lose some packets if the DUT has 
empty route cache before the packets are sent.
Once the DUT buildsthe route cache, the 
DUT can properly forward all packets to the other port
without any loose.

Iguess that the issueis caused by 
heavy loading for building route cache.
I just doubt that the system can have 
suchpoor performance for building route cache.
Does anybody have any comment? Thank 
you.


Smartbits port 1 --- DUT  
Smartbits port2
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] point-to-point ethernet link

2006-05-15 Thread Nai-Hsien



I have an embedded linux board (main board), 
which has multiple Ethernet interfaces, and
a daughter card, which has one Ethernet 
interface. The diagram is shown as 
following.

 
+-+ 
++
| daughter 
||ptp|
 | 
card 
|Ethernet 
|Main 
board 
| Ethernet links with IP
+-+ 
| 
| 
addresses
 
++

I am looking for a method to manage the 
daughter card with single IP address. I tried to build
a point-to-point Ethernet link on main board. 
However, it does not work.
Is there any solution to route packets to ptp 
port while the ptp port does not have an IP 
address?

___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] PowerPC can not accurately run HTM

2005-11-01 Thread Nai-Hsien



I am running HTB on a PowerPC platform and 
using following script to do rate limit.
When I set rate of class 1:11 lower than 
4mbit, I canget traffic rate close to 
the setting.
However, if I set the rate higher than 4mbit, 
I will get much
lower bandwidth (roughly 4.5mbit) than the 
setting, no matter how big the setting 
is.
To verify the script, I run it on PC 
withthen I got correct result.

Could anybody give me some hints?

Thank you
Dennis

tc qdisc add dev wan1 root handle 1: htb 
default 10tc class add dev wan1 parent 1: classid 1:1 htb rate 100mbittc 
class add dev wan1 parent 1:1 classid 1:10 htb rate 1mbit ceil 2mbittc class 
add dev wan1 parent 1:1 classid 1:11 htb rate 8mbit ceil 8mbittc filter add 
dev wan1 protocol ip parent 1: u32 match ip dst 11.1.1.1 flowid 
1:11


___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc