Quality Guru's – Home of QA/QE SW Testing Workshops

May 12, 2010

Enlil Network Emulator: Secound Touch – Netboot of Microtik RB450G with stock OpenWRT Backfire 10.03 image

Filed under: Enlil Network Emulator — natiku @ 12:12 pm

This entry is part of Enlil Handy Network Emulator

Lets check if is RB450G board is correctly detected, if MIPS High Resolution Times is used and if we can use original BackFire TC command which is used as control tool tool in NetEm too.

Check system and board detection

CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR7161 rev 2, CPU:680.000 MHz, AHB:170.000 MHz, DDR:340.000 MHz

Memory: 255684k/262144k available (2003k kernel code, 6188k reserved, 388k data, 1052k init, 0k highmem)

Calibrating delay loop… 452.19 BogoMIPS (lpj=2260992)

MIPS: machine is MikroTik RouterBOARD 450G

Check if RB450G uses a High Performance Timer with OpenWRT 10.03 (Kernel 2.6.32)

Switching to clocksource MIPS

cat /proc/cpuinfo
system type : Atheros AR7161 rev 2
machine : MikroTik RouterBOARD 450G
processor : 0
cpu model : MIPS 24Kc V7.4
BogoMIPS : 452.19
wait instruction : yes
microsecond timers : yes
tlb_entries : 16
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0080, 0x0140, 0x0248, 0x0100]
ASEs implemented : mips16
shadow register sets : 1
core : 0
VCED exceptions : not available
VCEI exceptions : not available

cat /proc/timer_list
Timer List Version: v0.4
HRTIMER_MAX_CLOCK_BASES: 2
now at 683182820843 nsecs

cpu: 0
clock 0:
.base: 802a99f0
.index: 0
.resolution: 1 nsecs
.get_time:
.offset: 0 nsecs
active timers:
clock 1:
.base: 802a9a20
.index: 1
.resolution: 1 nsecs
.get_time:
.offset: 0 nsecs
active timers:

Flash Memory …

http://pdf1.alldatasheet.com/datasheet-pdf/view/333903/HYNIX/HY27UF082G2A.html

PM25LV512

Checking current tc package with iperf

cp /tmp/resolv.conf.auto /etc/resolv.conf

cat /proc/meminfo | grep MemFree
MemFree: 247584 kB

opkg update
Downloading http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/Packages.gz.
Inflating http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/packages.

cat /proc/meminfo | grep MemFree
MemFree: 246368 kB

opkg list tc
tc – 2.6.29-1-2 – Traffic control utility

opkg info tc
Package: tc
Version: 2.6.29-1-2
Depends: kmod-sched
Provides:
Status: unknown ok not-installed
Section: net
Architecture: ar71xx
MD5Sum: 5ca2ba94b992804d8a46f88b19f64d02
Size: 92515
Filename: tc_2.6.29-1-2_ar71xx.ipk
Source: package/iproute2
Description: Traffic control utility

opkg –force-space install tc
Installing tc (2.6.29-1-2) to root…
Downloading http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/tc_2.6.29-1-2_ar71xx.ipk.
Installing kmod-sched (2.6.32.10-1) to root…
Downloading http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/kmod-sched_2.6.32.10-1_ar71xx.ipk.
Configuring kmod-sched.
Configuring tc.

opkg list iperf
iperf – 2.0.4-2 – Iperf is a modern alternative for measuring TCP and UDP bandwidth
performance, allowing the tuning of various parameters and
characteristics. This package is built with single thread support.

opkg info iperf
Package: iperf
Version: 2.0.4-2
Depends: uclibcxx
Provides:
Status: install user installed
Section: net
Architecture: ar71xx
MD5Sum: 7abf4b0a24db0db0197b66311a051e65
Size: 26526
Filename: iperf_2.0.4-2_ar71xx.ipk
Source: /home/openwrt/backfire/svn-packages/net/iperf
Description: Iperf is a modern alternative for measuring TCP and UDP bandwidth
performance, allowing the tuning of various parameters and
characteristics. This package is built with single thread support.

opkg –force-space install iperf
Installing iperf (2.0.4-2) to root…
Downloading http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/iperf_2.0.4-2_ar71xx.ipk.
Installing uclibcxx (0.2.2-2) to root…
Downloading http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/uclibcxx_0.2.2-2_ar71xx.ipk.
Configuring uclibcxx.
Configuring iperf.

cat /proc/meminfo | grep MemFree
MemFree: 245588 kB

ls /lib/modules/2.6.32.10/sch_* | tee
/lib/modules/2.6.32.10/sch_dsmark.ko
/lib/modules/2.6.32.10/sch_esfq.ko
/lib/modules/2.6.32.10/sch_gred.ko
/lib/modules/2.6.32.10/sch_hfsc.ko
/lib/modules/2.6.32.10/sch_htb.ko
/lib/modules/2.6.32.10/sch_ingress.ko
/lib/modules/2.6.32.10/sch_prio.ko
/lib/modules/2.6.32.10/sch_red.ko
/lib/modules/2.6.32.10/sch_sfq.ko
/lib/modules/2.6.32.10/sch_tbf.ko
/lib/modules/2.6.32.10/sch_teql.ko

ls /lib/modules/2.6.32.10/sch_* | xargs -n1 insmod

tc -s qdisc ls dev eth1
qdisc pfifo_fast 0: root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
Sent 402 bytes 1 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0

tc qdisc add dev eth0 root handle 1: prio

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: