Re: [casper] debugging communication with one_GbE from roach-2 's fpga

2013-01-22 Thread Jack Hickish
Excellent. Thanks for the info.

Jack
On Jan 22, 2013 5:01 AM, "Henno Kriel"  wrote:

> Hi
>
> The 1GbE core is configured to work in the same way as the 10GbE core with
> regards to tgtap.
>
> Regards
> Henno
>
> On Mon, Jan 21, 2013 at 3:52 PM, Marc Welz  wrote:
>
>> Hello
>>
>> > A question to anyone in the know: is there a runtime way to configure
>> the
>> > source IP/mac settings on roach 2 -- i.e. is tap_start implemented for
>> the
>> > 1GbE core?
>>
>> So if the 1GbE offers the same register layout as the 10GbE core then
>> this should work out of the box (just use a different name as tgtap
>> parameter)... but I think there might be some bus width differences
>> which might have to be hidden ?
>>
>> regards
>>
>> marc
>>
>>
>
>
> --
> Henno Kriel
>
> DSP Engineer
> Digital Back End
> meerKAT
>
> SKA South Africa
> Third Floor
> The Park
> Park Road (off Alexandra Road)
> Pinelands
> 7405
> Western Cape
> South Africa
>
> Latitude: -33.94329 (South); Longitude: 18.48945 (East).
>
> (p) +27 (0)21 506 7300
> (p) +27 (0)21 506 7365 (direct)
> (f) +27 (0)21 506 7375
> (m) +27 (0)84 504 5050
>


Re: [casper] debugging communication with one_GbE from roach-2 's fpga

2013-01-21 Thread Henno Kriel
Hi

The 1GbE core is configured to work in the same way as the 10GbE core with
regards to tgtap.

Regards
Henno

On Mon, Jan 21, 2013 at 3:52 PM, Marc Welz  wrote:

> Hello
>
> > A question to anyone in the know: is there a runtime way to configure the
> > source IP/mac settings on roach 2 -- i.e. is tap_start implemented for
> the
> > 1GbE core?
>
> So if the 1GbE offers the same register layout as the 10GbE core then
> this should work out of the box (just use a different name as tgtap
> parameter)... but I think there might be some bus width differences
> which might have to be hidden ?
>
> regards
>
> marc
>
>


-- 
Henno Kriel

DSP Engineer
Digital Back End
meerKAT

SKA South Africa
Third Floor
The Park
Park Road (off Alexandra Road)
Pinelands
7405
Western Cape
South Africa

Latitude: -33.94329 (South); Longitude: 18.48945 (East).

(p) +27 (0)21 506 7300
(p) +27 (0)21 506 7365 (direct)
(f) +27 (0)21 506 7375
(m) +27 (0)84 504 5050


Re: [casper] debugging communication with one_GbE from roach-2 's fpga

2013-01-21 Thread Haoxuan Zheng
Hi Casper group,


We managed to take the FPGA 1GBE on ROACH2 fully under control, great thanks to 
John, Marc, Danny, Jack, and Jason! Wireshark was extremely helpful, as it can 
see packets as long as the receiver's IP is set correctly. For python grabbing 
to work, it turned out that we simply had to configure the sender's IP to have 
the same subnet as the receiver IP (meaning the first 3 segments of the IP).


Thanks again!


From: casper-boun...@lists.berkeley.edu [casper-boun...@lists.berkeley.edu] on 
behalf of Danny Price [danny.pr...@astro.ox.ac.uk]
Sent: Monday, January 21, 2013 3:39 AM
To: casper@lists.berkeley.edu list
Subject: Re: [casper] debugging communication with one_GbE from roach-2 's fpga

Hi Ionna, Jeff

In addition to John and Mark's suggestions, I'd recommend checking:
1) If you're using SELinux, disable it as it causes all sorts of grief.
2) Check the MTU on your ethernet port is set to be larger than your packet 
size.
3) Make sure that you don't have a firewall up on that port.
4) Check if your Ethernet port is going down when the FPGA is reprogrammed (if 
you've got a switch in between this shouldn't happen).

If you've already checked your socket with roach1 UDP code, then most of these 
points are moot. Hopefully one stands out though...

Cheers
Danny


Re: [casper] debugging communication with one_GbE from roach-2 's fpga

2013-01-21 Thread Jason Manley
We haven't actually used the 1GbE core at all at SKA-SA, but AFAIK, it's the 
same and tgtap should work out the box.

Henno's actually the authoritative source for all things 1GbE. He might be able 
to offer more tomorrow.

Jason


On 21 Jan 2013, at 15:52, Marc Welz wrote:

> Hello
> 
>> A question to anyone in the know: is there a runtime way to configure the
>> source IP/mac settings on roach 2 -- i.e. is tap_start implemented for the
>> 1GbE core?
> 
> So if the 1GbE offers the same register layout as the 10GbE core then
> this should work out of the box (just use a different name as tgtap
> parameter)... but I think there might be some bus width differences
> which might have to be hidden ?
> 
> regards
> 
> marc
> 




Re: [casper] debugging communication with one_GbE from roach-2 's fpga

2013-01-21 Thread Marc Welz
Hello

> A question to anyone in the know: is there a runtime way to configure the
> source IP/mac settings on roach 2 -- i.e. is tap_start implemented for the
> 1GbE core?

So if the 1GbE offers the same register layout as the 10GbE core then
this should work out of the box (just use a different name as tgtap
parameter)... but I think there might be some bus width differences
which might have to be hidden ?

regards

marc



Re: [casper] debugging communication with one_GbE from roach-2 's fpga

2013-01-21 Thread Jack Hickish
Hi Ioana,

I'm attaching a model and python script that Guy Kenfack and I knocked
together worked on at the Green Bank workshop. We sent a counter and saw
the data at the right IP/port in wireshark.

A question to anyone in the know: is there a runtime way to configure the
source IP/mac settings on roach 2 -- i.e. is tap_start implemented for the
1GbE core?

Cheers,
Jack


On 21 January 2013 08:07, Marc Welz  wrote:

> Hello
>
> > However, we are stuck in debugging the system: we think we are sending
> stuff
> > properly, but we can not read anything from the python socket, coming
> from
> > our roach 2 fpga.
>
> Try running tcpdump on the receiving PC. If you are using tgtap logic,
> you should see occasional arp traffic from the roach to work out where
> to send its
> data.
>
> Some switches have UDP flood protection - if they see lots of UDP traffic,
> especially broadcast UDP, they throttle it down. If tgtap is running and I
> remember things correctly, data destined for machines which do not respond
> to arp traffic will be broadcast. Alternatively if the destination MAC
> is all zeros,
> switches typically discard traffic instead of sending it on.
>
> I believe you are one of the first people to use the GbE port, so please
> let us know of your progress.
>
> regards
>
> marc
>
>


Re: [casper] debugging communication with one_GbE from roach-2 's fpga

2013-01-21 Thread Danny Price
Hi Ionna, Jeff

In addition to John and Mark's suggestions, I'd recommend checking:
1) If you're using SELinux, disable it as it causes all sorts of grief.
2) Check the MTU on your ethernet port is set to be larger than your packet 
size.
3) Make sure that you don't have a firewall up on that port.
4) Check if your Ethernet port is going down when the FPGA is reprogrammed (if 
you've got a switch in between this shouldn't happen).

If you've already checked your socket with roach1 UDP code, then most of these 
points are moot. Hopefully one stands out though...

Cheers
Danny


Re: [casper] debugging communication with one_GbE from roach-2 's fpga

2013-01-21 Thread Marc Welz
Hello

> However, we are stuck in debugging the system: we think we are sending stuff
> properly, but we can not read anything from the python socket, coming from
> our roach 2 fpga.

Try running tcpdump on the receiving PC. If you are using tgtap logic,
you should see occasional arp traffic from the roach to work out where
to send its
data.

Some switches have UDP flood protection - if they see lots of UDP traffic,
especially broadcast UDP, they throttle it down. If tgtap is running and I
remember things correctly, data destined for machines which do not respond
to arp traffic will be broadcast. Alternatively if the destination MAC
is all zeros,
switches typically discard traffic instead of sending it on.

I believe you are one of the first people to use the GbE port, so please
let us know of your progress.

regards

marc



Re: [casper] debugging communication with one_GbE from roach-2 's fpga

2013-01-18 Thread John Ford
> Dear Casper group,
>
> Thank you for the help in compiling the one_GbE block
> We are trying to make the fpga send data straight through UDP to a server,
> and reading it there with python.
>
> However, we are stuck in debugging the system: we think we are sending
> stuff properly, but we can not read anything from the python socket,
> coming
> from our roach 2 fpga.
>
> We've programmed the digital logic in one_GbE test in a similar manner to
> the example in tutorial 2, and the acquisition python script in a similar
> manner to tutorial 5.
> We have all the devices connected through ethernet cables to a switch.
> We think we have the one_GbE actually sending out data because:
> - if we make the frame rate high enough, the switch actually goes crazy
> and
> we can not ping any of the devices. If we put a low frame rate, for
> example, one per second, then the switch works normally.
> and, of course, all the registers, and valid signals inside the digital
> logic look as expected.

> To test that we are reading the socket on the server correctly, we used
> our
> code on the previous configuration from roach1, which was receiving UDP
> packets from the PowerPC. It worked on this.
>
> So we think we have the ethernet cable sending stuff, and we have the
> python code reading correctly, and yet we can't see anything when we put
> them together...
>
> Is there any way we can find out if the one_gbe block is actually sending
> stuff to the right ip and port? we are just programming them through the
> registers

Have you looked at the raw packets with wireshark?  That might give a clue.

> >
> We are sort of lost in regards to what step we can take now..
>
> Just some random information, at the beginning when we first connected the
> fpga's ethernet, we wanted to have a sign that it is actually seen by the
> server.
> it was set to the default ip of 192.168.41.10 as it is written in the
> block.
> The only way we could detect something was by using
> nmap -Pn 192.168.41.10 which detected the host when we were making the
> switch go crazy, but normally it can't see it.
> we tried changing the one_GbE ip to 10.0.0.205, but we couldn't tell it
> actually did.

What kind of switch do you have?  It might not be up to the task of
transmitting packets at full speed from the FPGA.  Lots of the cheap
switches have very little buffering.

Have you tried roach->PC without a switch, or using a different switch?

John

>
> Thank you so much for your help!
>
> Ioana and Jeff
>