Hello, Prasanna.
Could you send the actual test log?
If you observe the packet at NET3,
the tester should receive it because our tester uses BPF for receiving.
BPF is working as promiscuous mode like as wireshark.
Thanks,
On Fri, 17 Apr 2009 10:52:19 +0200
<prasanna.3.khanapur@nokia.com> wrote:
> Hi Jiabo,
> Thanks for your reply.
> You are right in suggesting that we can add a switch between Router and SGW for capturing packets but, Router and SGW are both virtually implemented by Tahi in the FreeBSD so I'm wondering whether we can add a switch? (assuming that we are talking about a "physical" switch here).
>
> Though I have a limited understanding of how Tahi implements networks (NET5, NET2), my assumption is that they are implemented "virtually". So when packet are actually sent by Host1 to NUT it is not that packets are traversed throw the all network devices (SGW1,Router). It is just a packet generated by Tahi software and is sent out on Router NET3 network as if it has come out from HOST1.
> Reason behind having such an assumption is that if we type "ifconfig" on FreeBSD , there are no interfaces(ie. of HOST1,HOST2,SGW) created during test is execution.
>
> Please correct me if I'm wrong.
>
> I'm debugging a ICMP Reply sent from NUT to HOST1 which is not reaching HOST1 but I can see the same on wireshark on network NET3. So the packet is either not receieved by Router or SGW or HOST1. So need to capture packets at each interface to find out where the packet is getting dropped.
>
>
> Regards
> Prasanna
>
>
>
> -----Original Message-----
> From: ext wang_jiabo [mailto:jiabwang@redhat.com]
> Sent: 17 April 2009 13:29
> To: users@tahi.org
> Subject: [users:01179] Re: Query regarding capturing packets on interfaces created by tahi
>
> Hi Prasanna Khanapur
> I hope I understood your question.
> freebsd add network card info in /etc/rc.conf. like : ifconfig_eth0="up"
> if you would like capture package I think you should add a swtich
> between router and SGW.
> thanks
> jiabo
> prasanna.3.khanapur@nokia.com wrote:
> > Hi,
> > I'm investigating some failed test cases of Tahi in our environment.
> >
> > Network diagram of test case :
> >
> >
> > NUT
> > |
> > ------------+---+-------- NET3
> > |
> > Router
> > |
> > ------------+---+-------- NET5
> > |
> > SGW1
> > |
> > ------------+---+-----+-- NET2
> > | |
> > HOST1 HOST2
> >
> > Host1 is sending ICMP echo request to NUT. SGW1 encrypts this packet
> > (into ESP) before sending to NUT.
> > Using wireshark running on the windows machine, I can see NUT is
> > replying to ESP packet however the packet is not reaching HOST1 and
> > test fails.
> >
> > If I run "ifconfig" while the test is being executed, I dont see any
> > interfaces being created on FreeBSD, so my question is how does
> > FreeBSD create these network nodes e.g Router,Host1,Host2 etc
> >
> > I want to debug the issue and find out where is the reply packet from
> > NUT is getting dropped, for which I need to capture packets on
> > "Router" interface connected to NET3 or NET5. (and probably even on
> > interfaces of SGW1 and Host1). How can I capture packets on each of
> > these interfaces?
> >
> > Regards
> > Prasanna Khanapur
> >
>
>
>
>
>
--
Yukiyo Akisada <akisada@tahi.org>