UDP packets

200 views
Skip to first unread message

Ma Gracia Manahan Mag-Isa

unread,
Apr 8, 2011, 12:29:19 PM4/8/11
to osti...@googlegroups.com

Hi. Successfully installed Ostinato at the server and client machines. Created a UDP packet. Please refer to the configuration below:

VLAN: Tagged

L2: Ethernet II

L3: IPv4

L4: UDP

L5: None

Payload: Pattern

In the Protocol Data tab, we filled in the Source and Destination Addresses.

All the others are default. And started transmission.

We used tcpdump to capture the packets and Wireshark to see the captured packets. UDP packets were not captured. Got an error message instead:

RPCAP protocols Error: \002\b\000

But we were able to get TCP protocols. How do we get UDP packets to be captured in the dump?

Hoping for your immediate reply. Thanks.

 

Regards,

Grace

Srivats P

unread,
Apr 8, 2011, 1:06:11 PM4/8/11
to Ma Gracia Manahan Mag-Isa, osti...@googlegroups.com
Grace,

Please provide more details -
- What is the OS you are using?
- How many machines are you using? One client and one server?
- Where are Ostinato and Drone running - on the same or different machines?
- Where is tcpdump running - on which machine?
- Is tcpdump saving packets to a file which you later open using Wireshark?
- Did you give any "capture filter" to tcpdump?

Regards,
Srivats

> --
> Get Ostinato News and Updates on Twitter - Follow @_ostinato
> (http://twitter.com/_ostinato)
> ---------
> You received this message because you are subscribed to the Google
> Groups "ostinato" group.
> To post to this group, send email to osti...@googlegroups.com
> To unsubscribe from this group, send email to
> ostinato+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/ostinato?hl=en
>

Ma Gracia Manahan Mag-Isa

unread,
Apr 9, 2011, 9:11:33 AM4/9/11
to Srivats P, osti...@googlegroups.com, aned...@gmail.com, Arild Eiken Nedreberg

 Hi again. Thanks for your immediate reply. These are the answers to your previous email.

What is the OS you are using?

Answer: Windows XP SP3

How many machines are you using? One client and one server?

Answer: One client, one server and one to capture data from mirrored port on switch

Where are Ostinato and Drone running - on the same or different machines?

Answer: Ostinato and drone are running on different machines

Where is tcpdump running - on which machine?

 Answer: tcpdump is running on a machine with ubuntu connected to a mirrored port on the switch. The mirrored port is the port which ostinato is running.

Is tcpdump saving packets to a file which you later open using Wireshark?

Answer: Yes. We are saving the file. We opened the saved filed in Wireshark and tried to check for UDP protocols. Unfortunately, no UDP protocols.

Did you give any "capture filter" to tcpdump?

Answer: we used this command "sudo tcpdump -i eth0 -s 65535 -w ostinatocapture"

Additional Question: Is there any way we can generate a videoconference packet? I am working on a project with Quality of Service together with Arild Eiken Nedreberg. We would appreciate it if you could give him a copy of your reply too. Arild's email addresses are: aned...@gmail.com and arild.n...@hig.no. Thanks a lot!

 

Regards,

Grace and Arild

 

Srivats P <psta...@gmail.com> skrev:

 

>> RPCAP protocols Error: �02b�00

Srivats P

unread,
Apr 9, 2011, 9:39:58 AM4/9/11
to Ma Gracia Manahan Mag-Isa, osti...@googlegroups.com, aned...@gmail.com, Arild Eiken Nedreberg
Based on your answers your topology looks like this (copy paste to a
fixed width editor like notepad to see it properly) - right?

      *******************                     *******************
      *                 *                     *                 *
      *                 *     *************   *                 *
      *                 *******           *   *                 *
      *    Ostinato     *  1  *  Switch   *****     Drone       *
      *                 *     *           * 2 *                 *
      *                 *     *           *   *                 *
      *                 *     *************   *                 *
      *                 *            *        *                 *
      *******************          3 *        *******************
                                     *
                                     *
                                     *
                                     *
                             ******************
                             *                *
                             *                *
                             *   tcpdump/     *
                             *   Wireshark    *
                             *                *
                             *                *
                             ******************

I think you have mirrored port 1 to port 3.

You need to mirror port 2 to port 3, since it is drone that actually
sends the packets not Ostinato.

Let me know if I misunderstood.

Srivats

On Sat, Apr 9, 2011 at 6:41 PM, Ma Gracia Manahan Mag-Isa

Srivats P

unread,
Apr 9, 2011, 10:18:40 AM4/9/11
to Arild Eiken Nedreberg, Ma Gracia Manahan Mag-Isa, ostinato
Arild,

Regarding the video conferencing packet, I'm not sure, but Joep posted
instructions on how to generate a VoIP packet yesterday.

See http://groups.google.com/group/ostinato/browse_thread/thread/1955b62fbce4a994

If you manage to figure out a way to send a video conference packet, I
encourage you to share it with other Ostinato users on the mailing
list by attaching your streams or posting instructions like Joep did.

Regards,
Srivats

On Sat, Apr 9, 2011 at 7:27 PM, Arild Eiken Nedreberg
<aned...@gmail.com> wrote:
> Ostinato and drone are on 2 different switches connected to 2 different
> routers connected with serial connection. The connctivity between ostinato
> and drone is ok.
> But if drone is sending the packets, then we are mirroring the wrong port.
> Thanks.
> Did you have any comments on the additional question? Thanks.
>
> Regards Arild and Grace.

Ma Gracia Manahan Mag-Isa

unread,
Apr 13, 2011, 11:28:22 AM4/13/11
to Srivats P, Arild Eiken Nedreberg, ostinato

Hello. The diagram is correct. We tried to mirror port 2 to port 3 but UDP packets still were not captured. Now, we are just using 1 switch (Cisco Catalyst 2960) and 3 pc with the following IP configuration:

Ostinato machine: 192.168.10.3 (connected to Port 1-Fa0/1)

Drone machine: 192.168.10.2 (connected to Port 2-Fa0/2)

TCP/Wireshark: (connected to Port 10-Fa0/10)

The commands we used to mirror Port 2 was:

monitor session 1 source interface fa0/2

monitor session 1 destination interface fa0/10

Just to try if there is a problem with the application, we tried sending packets through a hub. It worked with a hub but not with a switch. What do you think is the problem? We need to use a Cisco switch because our project is about QoS recommendation on a switch or a router.

 

Cheers,

Arild and Grace

Srivats P <psta...@gmail.com> skrev:

 

>Arild,
>
>Regarding the video conferencing packet, I'm not sure, but Joep posted
>instructions on how to generate a VoIP packet yesterday.
>
>See
>
>

>>>>>> RPCAP protocols Error: ?02b?00

Srivats P

unread,
Apr 13, 2011, 12:04:07 PM4/13/11
to Ma Gracia Manahan Mag-Isa, Arild Eiken Nedreberg, ostinato
Try different protocols and different packet sizes - is there anything
particular that is not being mirrored or nothing is being mirrored?
What about packets generated by other applications on the Drone
machine? Can you capture those on Wireshark?

Unrelated to your problem but why do you have Ostinato and drone
running on separate machines? You could run them on the same machine.

Srivats

On Wed, Apr 13, 2011 at 8:58 PM, Ma Gracia Manahan Mag-Isa

Srivats P

unread,
Apr 13, 2011, 12:06:24 PM4/13/11
to Ma Gracia Manahan Mag-Isa, Arild Eiken Nedreberg, ostinato
Also monitor the interface counters on the switch

Srivats

Ma Gracia Manahan Mag-Isa

unread,
Apr 14, 2011, 9:11:47 AM4/14/11
to Srivats P, Arild Eiken Nedreberg, ostinato

Hello. Finally, we were able to generate UDP packets. The reason why we weren't able to capture UDP packets before is because we did not key in the MAC addresses of the source and destination PCs. What we want now is to generate 3 streams (1 UDP, 1 TCP and 1 ICMP) and send it to the network at the same time. We tried doing that in Ostinato but it seems that the streams were generated according to how you input the streams in Ostinato. Does it work in that way? Is there a way where we can send the 3 different packets all at the same time in order to test QoS. Thanks.

Srivats P

unread,
Apr 14, 2011, 9:42:22 AM4/14/11
to Ma Gracia Manahan Mag-Isa, Arild Eiken Nedreberg, ostinato
I'm afraid currently Ostinato only generates "sequential streams".
There is an outstanding issue on the tracker to send streams in the
manner that you are asking for
(http://code.google.com/p/ostinato/issues/detail?id=12) - I recommend
you star the issue so that the priority for it increases.

However, since you need it now, starring is not going to help you -
what I can do is, I can tell you the place in the code where the
streams are generated into one big buffer - you can change the
algorithm to "mix up" the streams there. Let me know if you are
feeling adventurous enough to do that! :-)

Srivats

On Thu, Apr 14, 2011 at 6:41 PM, Ma Gracia Manahan Mag-Isa

Arild Eiken Nedreberg

unread,
Apr 15, 2011, 12:21:10 PM4/15/11
to Srivats P, Ma Gracia Manahan Mag-Isa, ostinato
I think that would be beyond our skills :)

Srivats P

unread,
Apr 15, 2011, 12:46:45 PM4/15/11
to Arild Eiken Nedreberg, Ma Gracia Manahan Mag-Isa, ostinato
Why don't you get any of your friends with the requisite skills to do it? :-)

Srivats

On Fri, Apr 15, 2011 at 9:51 PM, Arild Eiken Nedreberg

Reply all
Reply to author
Forward
0 new messages