Jason,

Thanks for the information.
But I got the following error when I try to use tgtap command

tgtap: unable to set up tap device tgtap0: No such device

That is the same error in Wei-Chung's email
http://www.mail-archive.com/[email protected]/msg00940.html

Apparently that is because I haven't install the tcpborphserver2.

I'll install the new version of tcpborphserver, and try to ping and netcat
to my labview computer.
I'll keep you posted.

Zhiwei

On Tue, Jan 19, 2010 at 11:05 AM, Jason Manley <[email protected]>wrote:

> Nope, 10GbE packets are exactly like normal ethernet packets, they just
> come faster. Wireshark normally uses the interface in promiscuous mode,
> which means you'll get the packets no matter where they're destined. You've
> definitely got IP addresses and ports setup properly? Then this sounds like
> it could be a labview problem.
>
> To check, try your labview code with another computer: netcat a UDP packet
> to your labview receiver and see if you can see that. If you don't have
> another computer with a 10GbE interface, you can use ROACH and tgtap. tgtap
> will start a normal-looking network interface on ROACH. You can ping and
> netcat through it like any other interface.
>
> Here is a ROACH with two 10gbe interfaces configured (ie two instances of
> tgtap):
> r...@roach020211:~# ps aux
> USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
> root         1  0.0  0.1   2428   744 ?        Ss   13:50   0:00 init [2]
>
> ...
>
> root       253  0.0  0.1   2012   704 ?        S    13:50   0:06
> tcpborphserver2
> root       261  0.0  0.0   1632   304 ?        S    13:51   0:00
> /boffiles/r_4f_1x_16a_r322j_2010_Jan_18_1906.bof
> root       262  2.3  0.1   1792   540 ?        S    13:51   3:04 tgtap -b
> /proc/261/hw/ioreg/gbe0 -a 10.0.0.128 -t gbe0 -m 02:02:0A:00:00:
> root       268  2.2  0.1   1792   528 ?        S    13:52   2:56 tgtap -b
> /proc/261/hw/ioreg/gbe_out0 -a 10.0.0.136 -t gbe_out0 -m 02:02:0
> ...
> root       281  0.0  0.1   2780   996 pts/0    R+   16:03   0:00 ps aux
> r...@roach020211:~#
> r...@roach020211:~# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:00:02:02:11
>          inet addr:192.168.100.111  Bcast:192.168.100.255
>  Mask:255.255.255.0
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:33825 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:25723 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:14718508 (14.0 MiB)  TX bytes:2713928 (2.5 MiB)
>
> gbe0      Link encap:UNSPEC  HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
>          inet addr:10.0.0.128  P-t-P:10.0.0.128  Mask:255.255.255.0
>          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>          RX packets:106875 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:93 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:500
>          RX bytes:30081614 (28.6 MiB)  TX bytes:29760 (29.0 KiB)
>
> gbe_out0  Link encap:UNSPEC  HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
>          inet addr:10.0.0.136  P-t-P:10.0.0.136  Mask:255.255.255.0
>          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>          RX packets:72258 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:500
>          RX bytes:21918556 (20.9 MiB)  TX bytes:0 (0.0 b)
>
> lo        Link encap:Local Loopback
>          inet addr:127.0.0.1  Mask:255.0.0.0
>          UP LOOPBACK RUNNING  MTU:16436  Metric:1
>          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:84 (84.0 b)  TX bytes:84 (84.0 b)
>
> r...@roach020211:~# ping 10.0.0.1
> PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
> 64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.628 ms
> 64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=1.22 ms
> ...
>
>
> Jason
>
>
> On 19 Jan 2010, at 17:54, Zhiwei Liu wrote:
>
>  Hi All,
>>
>> I just bought a 10Gb ethernet card (Chelsio S310E), but I got problems
>> with receiving udp packages.
>>
>> I installed the card and drivers for a windows computer, everything is
>> fine, the 10Gb card looks just like another normal network local connection.
>> Then I ran Jason's 10GbE tutorial design on roach board, instead of loop
>> back connection (from port 1 to port 3),  I connected the roach 10Gb port 1
>> directly to the windows computer.
>> I ran a LabVIEW program to receive the udp packets just like I did before
>> for receiving udp packets from fast ethernet port.  But I didn't receive any
>> udp packets.
>> I checked with Wireshark, I can see all the packets, and the data are also
>> right number (linear increasing number in Jason's design).  I just can not
>> receive them in my LabVIEW program.
>>
>> Is there any difference between 10Gb and fast ethernet udp packets?
>>
>> Zhiwei
>>
>
>


-- 
Zhiwei Liu

Reply via email to