danilogio / ostinato

Automatically exported from code.google.com/p/ostinato
GNU General Public License v3.0
0 stars 0 forks source link

Unable to capture Ostinato packets using Java sever code #59

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run Ostinato drone on a machine running Java Server code i.e. 
DatagramSocket.receive() in while loop
2. Run Ostinato on a second machine (same OS and ostinato version) and connect 
to first machine
3. Import a pcap file, prepare packet, and transmit

What is the expected output? What do you see instead?
Expected Out: Packet received successfully by the Java server code running at 
the second machine
Error: No packet is captured by the Java server code
Note: Although the packet is captured by wireshark at both machines AND the 
same pcap file is successfully transmitted and captured using "PachEth" i.e. 
packet generator tool

What version and revision of the product are you using (available in the
About dialog)? On what operating system?
Version: Ostinato version 0.5
OS: Ubuntu 10.04 amd64

Please provide any additional information below.
1. Wireshark shows packet on both machines
2. The imported pcap file contains the Hex-dump of a udp packet that has been 
successfully transmitted and received using "PackEth" i.e. another packet 
generator

Currently, we really are STUCK and have no clue where and how to resolve this 
issue. Any guidance would be highly appreciated.

Regards

Original issue reported on code.google.com by furqan.b...@portqdel.com on 26 Jan 2012 at 12:19

GoogleCodeExporter commented 9 years ago
Are you running packeth on the second machine? If so, you need to run both 
ostinato and drone on the second machine.

If that doesn't work, please provide more details on what you are trying to 
achieve.

Original comment by pstav...@gmail.com on 26 Jan 2012 at 12:39

GoogleCodeExporter commented 9 years ago
We used "PackEth" just as an alternative to check.
Ostinato is running is on both machines. Ostinato drone running at receiving 
machine.

What we are trying to achieve?
Get the same result as using "PackEth" i.e. capture packet at second machine.
Packets are transmitted and successfully using PackEth, same packet when 
transmitted using Ostinato is NOT captured by the Java Server Code.
What we assume at this time is that Ostinato's architecture i.e. drone etc may 
be the issue as packets are captured by drone and are then further 
demultiplexed. We may be wrong in our assumption but thats the best we can come 
up with now :)

Original comment by furqan.b...@portqdel.com on 26 Jan 2012 at 12:53

GoogleCodeExporter commented 9 years ago
Run Ostinato on one machine - it will automatically run drone on the same 
machine. Import the pcap file on the "particular port" from which you want to 
send the packets (same as what you select as interface in packeth). Click apply 
and then transmit.

On the second machine, run your java server code. Don't run ostinato or drone 
here. Check if your java code is receiving packets. If not, run wireshark on 
this machine to check if any packets are being received.

Let me know what happens.

Original comment by pstav...@gmail.com on 26 Jan 2012 at 1:20

GoogleCodeExporter commented 9 years ago
Worked like a charm!!! Thankyou very much :)
We had been stuck on this problem and without a clue. Can we send you a brownie 
or a cupcake or something :) ?

Original comment by furqan.b...@portqdel.com on 26 Jan 2012 at 1:28

GoogleCodeExporter commented 9 years ago
Glad to be of help! 

Tell your friends/colleagues about Ostinato, blog/tweet about it - that would 
be thanks enough!

Original comment by pstav...@gmail.com on 26 Jan 2012 at 1:41

GoogleCodeExporter commented 9 years ago
Sure :-)

packets using Java sever code

would be thanks enough!

Original comment by furqan.b...@portqdel.com on 26 Jan 2012 at 1:44