[Planetlab-users] Networking-related issues
Sapan Bhatia
sapanb at CS.Princeton.EDU
Thu Jul 31 00:54:17 EDT 2008
Hi Cristian and Randolph,
Could you try again? It's a capability issue. I've given your slice
CAP_NET_RAW, but it's possible that you might need the vserver-specific
"CAP_NET_RAW_SEND" capability as well.
Sapan
On Wed, Jul 30, 2008 at 7:44 PM, Randolph Baden <randofu at cs.umd.edu> wrote:
> I've attached the strace output from running the following command (on
> salt.planetlab.cs.umd.edu):
>
> sudo strace -f /home/umd_peerwise/jdk1.5.0_14/bin/java -cp
> /home/umd_peerwise/Pyxida/src:/home/umd_peerwise/Pyxida/lib/jpcap.jar
> -Djava.library.path=/home/umd_peerwise/Pyxida/lib/
> edu.harvard.syrah.pyxida.ping.JpcapTester 0
>
> This just runs a simple test of the JpcapSender... I don't know how
> useful the entire strace is going to be, but if you think looking at
> it will help figure it out then I'd definitely appreciate it!
>
> -Randy Baden
>
> On Wed, Jul 30, 2008 at 7:02 PM, Sapan Bhatia <sapanb at cs.princeton.edu>
> wrote:
> > Ok. Could you run the program under strace and give me the line on which
> it
> > fails with the -EPERM?
> >
> > Sapan
> >
> > On Wed, Jul 30, 2008 at 5:15 PM, Cristian Lumezanu <lume at cs.umd.edu>
> wrote:
> >>
> >> It was all run as root from the beginning.
> >>
> >> Cristian
> >>
> >> Sapan Bhatia wrote:
> >>>
> >>> Hi,
> >>> Could you retry this as root (within your slice), if you're not doing
> >>> this
> >>> already?
> >>>
> >>> Sapan
> >>>
> >>> On Wed, Jul 30, 2008 at 5:09 PM, Cristian Lumezanu <lume at cs.umd.edu>
> >>> wrote:
> >>>
> >>>
> >>>>
> >>>> Sapan,
> >>>>
> >>>> Sorry to come up with problems again.
> >>>>
> >>>> Me and Randy (cc'ed) are working with a java program that uses JPcap
> and
> >>>> raw sockets to send pings to other nodes. It works on our Linux
> machines
> >>>> and
> >>>> it used to work fine on PlanetLab but not anymore. We used strace to
> see
> >>>> where it breaks and we get a "EPERM (Operation not permitted)" message
> >>>> when
> >>>> we try to send out the message. Here are strace outputs from one of
> our
> >>>> machines and from salt.planetlab.cs.umd.edu:
> >>>>
> >>>> Our machine (it works):
> >>>> [pid 5830] send(9,
> >>>>
> >>>>
> >>>>
> "\x00\xd0\x02\xa0\x5c\x00\x00\x1a\xa0\x94\x42\x3b\x08\x00\x45\x00\x00\x2c\x69\xb5\x00\x00\x64\x06\xc2\x2b\x48\x0e\xcd\x67\x48\x0e\xcd\x67\x00\x0c\x00\x22\x00\x00\x00\x38\x00\x00\x00\x4e\x53\xc3\x00\x0a\xa7\xa7\x00\x0a\x64\x61\x74\x61\x00\x00",
> >>>> 60, 0) = 60
> >>>>
> >>>> salt.planetlab.cs.umd.edu (it breaks):
> >>>> [pid 16754] send(5,
> >>>>
> >>>>
> >>>>
> "\x00\x16\x35\x5a\x4e\x2d\x00\x15\x60\x0f\xc8\x93\x08\x00\x45\x00\x00\x2c\x69\xb5\x00\x00\x64\x06\xc1\xd3\x48\x0e\xcd\x93\x48\x0e\xcd\x93\x00\x0c\x00\x22\x00\x00\x00\x38\x00\x00\x00\x4e\x5b\xc3\x00\x0a\x9f\x4f\x00\x0a\x64\x61\x74\x61\x00\x00",
> >>>> 60, 0) = -1 EPERM (Operation not permitted)
> >>>>
> >>>> We tried it on alice.cs.princeton.edu but no luck. I should also
> mention
> >>>> that the payload that is sent also includes the ethernet headers. It
> >>>> seems
> >>>> to me that this is related the new PlanetLab version, since we had no
> >>>> problem running it at the beginning of the year.
> >>>>
> >>>> Thanks a lot.
> >>>>
> >>>> Cristian
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >
> >
> >
> > --
> > Sapan Bhatia
> > www.cs.princeton.edu/~sapanb
> >
>
--
Sapan Bhatia
www.cs.princeton.edu/~sapanb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.planet-lab.org/pipermail/users/attachments/20080731/aa7744f9/attachment.html
More information about the Users
mailing list