PDA

View Full Version : How to Connect 'eth1' to 'nf2c0' in Regression Tests ?



kevyoung
03-27-2009, 02:14 PM
I did everything as was described in the Wiki Guide. After Compile and Load Driver , as well as Run Selftest, I prepare to Run Regression Tests. Well, how to connect Ethernet test cables? I ask this question because the Guide reqires:
Connect 'eth1' to 'nf2c0' (c0 is the port closest to the mainboard)
Connect 'eth2' to 'nf2c1' (c1 is the port one away from the mainboard)

But my Network configuration is shown in the following figure:
http://netfpga.org/forums/attachment.php?attachmentid=22&stc=1&d=1238162869

The NetFPGA seems to be the eth2. So, when I run Regression Tests, many errors occur.
How to modify the configuration to make the Ethernet test cables connected as the Guide shows?

gac1
03-27-2009, 05:12 PM
Hello,

First -- what type of machine are you running on? Are you using a 1U server with the two ethernet interfaces on the motherboard?

Second -- what is the output of 'ifconfig -a'? Do you see the nf2cX interfaces?

When running the regression tests ensure the nf2cX interfaces are up. You can do this by running 'ifconfig nf2c0 up' for each interface.

kevyoung
03-28-2009, 03:47 AM
Hello,

First -- what type of machine are you running on? Are you using a 1U server with the two ethernet interfaces on the motherboard?

Second -- what is the output of 'ifconfig -a'? Do you see the nf2cX interfaces?

When running the regression tests ensure the nf2cX interfaces are up. You can do this by running 'ifconfig nf2c0 up' for each interface.

My English is poor. Maybe I hadn't described the problem clearly. But, did you see the figure attached above? I have uploaded the figures again in the attached zip file bellow.
Well, let me answer your questions fisrt.
1. I have installed the CentOS in "Server" type on my PC, instead of "Workstation" . This is just by mistake. I don't mean to make the PC work as a server.
2. The output of 'ifconfig -a' is shown at the end.
3. I had run the command "for i in 0 1 2 3; do sudo ifconfig nf2c$i up; done" .

Run the command "~/NF2/bin/nf21_regress_test.pl >>ac.txt", and the output is redirectioned into ac.txt (see attached zip file bellow).

The following is pasted from the Terminal Command Line.
================================================== =============
[root@Kev ~]# ~/NF2/bin/nf21_regress_test.pl >>ac.txt
[root@Kev ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:15:17:6C:E8:A2
inet addr:192.168.0.12 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::215:17ff:fe6c:e8a2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:256 (256.0 b) TX bytes:782 (782.0 b)
Base address:0xdf00 Memory:fdde0000-fde00000

eth1 Link encap:Ethernet HWaddr 00:15:17:6C:E8:A3
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::215:17ff:fe6c:e8a3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:276 (276.0 b) TX bytes:8288 (8.0 KiB)
Base address:0xde00 Memory:fdda0000-fddc0000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3490 errors:0 dropped:0 overruns:0 frame:0
TX packets:3490 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5588921 (5.3 MiB) TX bytes:5588921 (5.3 MiB)

nf2c0 Link encap:Ethernet HWaddr 00:4E:46:32:43:00
UP BROADCAST RUNNING MULTICAST MTU:1986 Metric:1
RX packets:11473 errors:0 dropped:0 overruns:0 frame:0
TX packets:15106 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9359999 (8.9 MiB) TX bytes:14155325 (13.4 MiB)
Interrupt:209

nf2c1 Link encap:Ethernet HWaddr 00:4E:46:32:43:01
UP BROADCAST RUNNING MULTICAST MTU:1986 Metric:1
RX packets:11442 errors:0 dropped:0 overruns:0 frame:0
TX packets:15107 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9316308 (8.8 MiB) TX bytes:14144581 (13.4 MiB)
Interrupt:209

nf2c2 Link encap:Ethernet HWaddr 00:4E:46:32:43:02
UP BROADCAST RUNNING MULTICAST MTU:1986 Metric:1
RX packets:11440 errors:0 dropped:0 overruns:0 frame:0
TX packets:15105 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9352328 (8.9 MiB) TX bytes:14198771 (13.5 MiB)
Interrupt:209

nf2c3 Link encap:Ethernet HWaddr 00:4E:46:32:43:03
UP BROADCAST RUNNING MULTICAST MTU:1986 Metric:1
RX packets:11441 errors:0 dropped:0 overruns:0 frame:0
TX packets:15105 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9321402 (8.8 MiB) TX bytes:14136285 (13.4 MiB)
Interrupt:209

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

[root@Kev ~]#

kevyoung
03-29-2009, 03:07 PM
I modified the four files ifcfg-nf2c0 ifcfg-nf2c1 ifcfg-nf2c2 ifcfg-nf2c3 in /etc/sysconfig/network-scripts . And the problem of network configuration was solved.


But the Regression Tests in Wiki Guide still occur two or three FAIL's in "reference_nic" or/and "reference_router" when I run the command "~/NF2/bin/nf21_regress_test.pl". So I turn to run the Regression Tests separately, such as " ~/NF2/bin/nf21_regress_test.pl --project scone". Only "reference_nic" or/and "reference_router" cannot PASS. The output is shown bellow. What's wrong with my machine?


P.S. 'test_loopback_random' is always failed in "reference_nic", as you see.


Looking forword to your help!

==========================================
[root@Kev ~]# ~/NF2/bin/nf21_regress_test.pl --project reference_nic
Root directory is /root/NF2
Running tests on project 'reference_nic'...
Running global setup... PASS
Running test 'test_loopback_random'... FAIL
Output was:
Starting jobs
Checking results
nf2c0 found 0 errors
WARNING: nf2c1 rcvd 2999 of 3000 pkts sent.
nf2c1 found 1 errors
nf2c2 found 0 errors
WARNING: nf2c3 rcvd 3001 of 3000 pkts sent.
nf2c3 found 1502 errors
Getting new stats
Checking stats
Test FAILED with 1503 errors


test_loopback_random/run exited with value 1

Running test 'test_loopback_minsize'... PASS
Running test 'test_loopback_maxsize'... PASS
Running test 'test_loopback_drop'... PASS
Running test 'test_loopback_crc'... FAIL
Output was:
ERROR: Sending and receiving normally failed
Test FAILED with 1 errors


test_loopback_crc/run exited with value 1

Running test 'test_ip_interface'... PASS
Running global teardown... PASS

gac1
03-30-2009, 05:28 PM
Hello,

I don't believe anything is wrong with your machine. As long as the selftest passes then the board should be fully functional. As long as the regression tests pass, the bitfiles and package should be fully functional.

The reference_nic regression tests were the first regression tests created for the NetFPGA project. They were created before the Perl libraries were created that simplify the regression test creation.

We are in the process of rewriting the reference_nic regression tests to utilize the Perl libraries. This should fix the problems that you are seeing in the tests. The new regression tests for the reference_nic will be in the next base package release.

We are continually trying to make the installation, and usage of the NetFPGA better. If you have any other comments or problems please let us know.

Thanks.

kevyoung
03-31-2009, 07:38 AM
Thank you for replying. I have begun to do the projects in http://netfpga.org/wordpress/category/applications/, regardless of the regression tests in Guide.

However, my partner's computer can pass all the regression tests except "scone" , even running the tests seperately, that is " ~/NF2/bin/nf21_regress_test.pl --project scone". The tests of scone still occured many FAIL 's, and they are not so random as what happened on my machine. The output is shown in the attached zip file at http://netfpga.org/forums/attachment.php?attachmentid=24&d=1238381336. Could you please have a look of it and tell me what's wrong?

gac1
03-31-2009, 05:02 PM
Hello,

By looking at the output file you posted, it appears the SCONE tests are all passing. The reference router regression tests are having problems. The first test router_cpusend seems to be receiving unexpected packets.

Make sure the avahi-daemon is turned off and IPv6 is dissabled. This will probably solve the problem with the unexpected packets.

kevyoung
04-02-2009, 01:43 AM
Hello,

By looking at the output file you posted, it appears the SCONE tests are all passing. The reference router regression tests are having problems. The first test router_cpusend seems to be receiving unexpected packets.

Make sure the avahi-daemon is turned off and IPv6 is dissabled. This will probably solve the problem with the unexpected packets.

Thanks for your help!
First, you said the SCONE tests were all passing. I think you have made a mistake, but it's really my fault that the output you saw was of my computer. The output of my partner's computer is posted in the attached file renewedly. Please see it again and make your judge.

Second, I have disabled IPv6 by adding the following two lines in /etc/modprobe.conf .
alias net-pf-10 off
alias ipv6 off
Run the following command, and you can see IPv6 is turn off.
[root@Kev ~]# lsmod|grep ipv6
[root@Kev ~]#

As to avahi-daemon, I really can't turn it off. Run the command avahi-daemon -k, and the prompt is " bash: avahi-daemon: command not found ". Running sudo /sbin/chkconfig avahi-daemon off or sudo /etc/rc.d/init.d/avahi-daemon stop (in fact, I logged in as "root" ) failed again, because there is none such file as avahi-daemon in /etc/rc.d/init.d. What should I do ?

gac1
04-02-2009, 05:30 PM
Hello,

1)
After taking a look at the scone output -- it looks as if the cpuhw file is for the tutorial not the regression tests. Attached is the cpuhw file needed for the regression tests. Put this file in the NF2/projects/scone/sw directory (drop the .txt it should be named 'cpuhw') and rerun the regression tests.

Let me know what the output is.

2)
If you are getting that output when trying to turn off the avahi-daemon then it must already be turned off. I'll take a look at the unexpected packets that were received and try to determine what is causing them.

kevyoung
04-03-2009, 09:03 AM
Hello,
I have put the file cpuhw in the NF2/projects/scone/sw directory as you said. But the SCONE tests still failed on my partner's computer, which is shown in the attached file "test-SCONE.txt" bellow. In addition, with the failure of tests, the network configuration was changed, too----shown in attached file "Network Configuration.jpg". nf2c0, nf2c1, nf2c2 and nf2c3 were active before.

Since my computer can pass all the SCONE tests, I copied the whole ~/NF2/projects/scone/sw directory from my computer to my partner's. To my surprise, all the Regression Tests (including the SCONE tests) are PASSED on his computer !

Then I found that the sw folder on my computer was quite different from that on my partner's computer. That is, they contain different files, shown in the attached files files_in_sw_1.jpg (my computer) and files-in-sw-2.jpg (my partner's computer).

As to avahi-daemon, I really can't turn it off. Run the command avahi-daemon -k, and the prompt is " bash: avahi-daemon: command not found ". Running sudo /sbin/chkconfig avahi-daemon off or sudo /etc/rc.d/init.d/avahi-daemon stop (in fact, I logged in as "root" ) failed again, because there is none such file as avahi-daemon in /etc/rc.d/init.d. What should I do ?

paolo13
07-13-2009, 04:03 PM
Excuse me, it is not really a response to your question , but i suppose you have used the cross ethernet cables for the regression test.