How to watch packets in a TCP/IP stream

hi
can anyone tell me how to watch packets in a TCP/IP stream using jpcap??

You could read the JPCAP documentation... it surely has one.

Similar Messages

  • How to simulate packet loss in TCP?

    Hello all,
    i hv configured a simple server-client using a TCP protocol. basically, Server replied to client request. it works fine. Now, if i would like to demonstrate the packet loss occur in the server side... how to do that? could someone provide a simple example on how this could be done?
    Thanks Gents.
    Audrea.

    Thanks for the explanation...
    This is what i do but when i tried to establish the connection with the server... it refused it.... where i did wrong?
    PrintWriter out = null;
              BufferedReader in = null;
              Socket mySocket1=null;
              Socket mySocket2 = null;
              try
                   String host;
                   if (args.length > 0)
                   host = args[0];
                   } else
                   host = "localhost";
                        try
                        mySocket1 = new Socket(host, 8997);
                        mySocket1.setSoTimeout(1000);
                        }catch(SocketException se)
                             System.err.println("Error Connecting to socket :" +se);
                        mySocket1.close();
                        try
                             mySocket2 = new Socket("localhost", 8998);
                        }catch(SocketException se)
                             System.err.println(" Unable to connect to socket:" + 8998);
                        while(true)
                             //mySocket2 = new Socket("localhost", 8997);
                             out     = new PrintWriter(new OutputStreamWriter(mySocket2.getOutputStream()));
                             in = new BufferedReader(new InputStreamReader(mySocket2.getInputStream()));
                             Thanks for your help...
    Audrea

  • Asp drop - First TCP packet not SYN (tcp-not-syn)

    I have many tcp-not-syn:
    First TCP packet not SYN (tcp-not-syn)                                46841247
    For sure it is not a routing issue cause ie 10.32.3.230 usually can connect to 192.168.16.2 which is a proxy server. Sometimes it can't and I get the
    tcp-not-syn error. So after a capture I got the following,
    ASA# capture asp-drop type asp-drop tcp-not-syn
    ASA# sh capture asp-drop | i 10.32.3.230
    2397: 16:11:31.904295 802.1Q vlan#8 P0 10.32.3.230.2322 > 192.168.16.2.8080: R 556133793:556133793(0) win 0
    2398: 16:11:31.905272 802.1Q vlan#8 P0 10.32.3.230.2322 > 192.168.16.2.8080: R 556133793:556133793(0) win 0
    2400: 16:11:31.908583 802.1Q vlan#8 P0 10.32.3.230.2320 > 192.168.16.2.8080: R 55902087:55902087(0) win 0
    2401: 16:11:31.908613 802.1Q vlan#8 P0 10.32.3.230.2320 > 192.168.16.2.8080: R 55902087:55902087(0) win 0
    2402: 16:11:31.908629 802.1Q vlan#8 P0 10.32.3.230.2320 > 192.168.16.2.8080: R 55902087:55902087(0) win 0
    2403: 16:11:31.908659 802.1Q vlan#8 P0 10.32.3.230.2320 > 192.168.16.2.8080: R 55902087:55902087(0) win 0
    2404: 16:11:31.908766 802.1Q vlan#8 P0 10.32.3.230.2320 > 192.168.16.2.8080: R 55902087:55902087(0) win 0
    2405: 16:11:31.908796 802.1Q vlan#8 P0 10.32.3.230.2320 > 192.168.16.2.8080: R 55902087:55902087(0) win 0
    2406: 16:11:31.908812 802.1Q vlan#8 P0 10.32.3.230.2320 > 192.168.16.2.8080: R 55902087:55902087(0) ack 4258924744 win 0
    2407: 16:11:31.909071 802.1Q vlan#8 P0 10.32.3.230.2320 > 192.168.16.2.8080: R 55902087:55902087(0) win 0
    2408: 16:11:31.909102 802.1Q vlan#8 P0 10.32.3.230.2320 > 192.168.16.2.8080: R 55902087:55902087(0) win 0
    2409: 16:11:31.909132 802.1Q vlan#8 P0 10.32.3.230.2320 > 192.168.16.2.8080: R 55902087:55902087(0) win 0
    2410: 16:11:31.910490 802.1Q vlan#8 P0 10.32.3.230.2321 > 192.168.16.2.8080: R 1839687588:1839687588(0) win 0
    2411: 16:11:31.910521 802.1Q vlan#8 P0 10.32.3.230.2321 > 192.168.16.2.8080: R 1839687588:1839687588(0) win 0
    2412: 16:11:31.910551 802.1Q vlan#8 P0 10.32.3.230.2321 > 192.168.16.2.8080: R 1839687588:1839687588(0) win 0
    2413: 16:11:31.910566 802.1Q vlan#8 P0 10.32.3.230.2321 > 192.168.16.2.8080: R 1839687588:1839687588(0) win 0
    2414: 16:11:31.911192 802.1Q vlan#8 P0 10.32.3.230.2321 > 192.168.16.2.8080: R 1839687588:1839687588(0) win 0
    2415: 16:11:31.911207 802.1Q vlan#8 P0 10.32.3.230.2321 > 192.168.16.2.8080: R 1839687588:1839687588(0) win 0
    2416: 16:11:31.911238 802.1Q vlan#8 P0 10.32.3.230.2321 > 192.168.16.2.8080: R 1839687588:1839687588(0) win 0
    2417: 16:11:31.915205 802.1Q vlan#8 P0 10.32.3.230.2321 > 192.168.16.2.8080: R 1839687588:1839687588(0) win 0
    2418: 16:11:31.915235 802.1Q vlan#8 P0 10.32.3.230.2321 > 192.168.16.2.8080: R 1839687588:1839687588(0) win 0
    2419: 16:11:31.915296 802.1Q vlan#8 P0 10.32.3.230.2321 > 192.168.16.2.8080: R 1839687588:1839687588(0) win 0
    2420: 16:11:31.915327 802.1Q vlan#8 P0 10.32.3.230.2320 > 192.168.16.2.8080: R 55902087:55902087(0) win 0
    2421: 16:11:31.915357 802.1Q vlan#8 P0 10.32.3.230.2320 > 192.168.16.2.8080: R 55902087:55902087(0) win 0
    2422: 16:11:31.915815 802.1Q vlan#8 P0 10.32.3.230.2320 > 192.168.16.2.8080: R 55902087:55902087(0) win 0
    2432: 16:11:33.102426 802.1Q vlan#8 P0 10.32.3.230.2317 > 192.168.16.2.8080: R 4189536219:4189536219(0) win 0
    2433: 16:11:33.102457 802.1Q vlan#8 P0 10.32.3.230.2317 > 192.168.16.2.8080: R 4189536219:4189536219(0) win 0
    2434: 16:11:33.102487 802.1Q vlan#8 P0 10.32.3.230.2317 > 192.168.16.2.8080: R 4189536219:4189536219(0) win 0
    syslog message says:
    deny tcp (no connection) from 10.32.3.78/1646 to 192.168.16.2/8080 flags RST on interface inside
    The question is how can I define it is:
    1. the proxy 192.168.16.2 itself is too slow responding to the syn packet sent from the client 10.32.3.78
    2. a reset is sent by the proxy 192.168.16.2 and then forwarded by the ASA to the client 10.32.3.78
    3. an idle timeout tuning needed on firewall
    4. anything else
    Thanks

    Hi,
    Since it is a RST packet coming from client IP destined to proxy server IP on ASA's interface (of course with no associated connection in ASA state table), ASA will drop it as first tcp packet not syn.
    When a packet arrives on ASA, it checks to see if it belongs to an existing flow, if not, it has to be a new connection but since SYN flag is not set here, it gets dropped under above reason code.
    Now, you would probabaly want to capture the entire traffic stream from client to server on ASA interface to understand what caused those resets. May be client sent some new requests (SYN's) and proxy was too busy to respond. Again, complete capture in pcap would be needed for further analysis.
    Regards,
    Sourav Kakkar

  • I can listen to the Music Library in my Ipad through home sharing, but I can't do it in my Iphone. When Iphone managed to connect my Mac, I can see how a watch turns clockwise but it stops when it arrives at a half of the watch. What can I do?

    I can listen to the Music Library in my Ipad through home sharing, but I can't do it in my Iphone. When Iphone managed to connect my Mac, I can see how a watch turns clockwise but it stops when it arrives at a half of the watch. What can I do?

    Hi there,
    You may want to take a look at some of the troubleshooting steps found in the article below.
    Troubleshooting Home Sharing
    http://support.apple.com/kb/ts2972
    Hope that helps,
    Griff W.

  • HT1657 I rented a movie and now I cannot figure out how to watch it on Apple TV.  We did the update yesterday.  I used to go under the "Movies" tab and click Play.  It has the original options now and when I click "Rent" it says already rented, not downlo

    I rented a movie from ITunes yesterday and now I cannot figure out how to watch it on Apple TV.  I have done this before, and to watch it later on, I would go back under the "Movies" option, find the movie, and there would be a Play option available.  We did the update to Apple TV yesterday.  Now when I go back to the movie, I see the original options. Preview, Rent, Buy, etc.  When I click on Rent again, it says the movie has already been rented but not downloaded. It instructs me to go under Settings/Downloads/Check Downloads, but there is nothing under Settings about Downloads.  I found an option to Check for Rentals, but when I click on that option, it just keeps searching, with no results.  Any ideas?  This worked before the update, even though it took forever to download a movie....

    I had the same issue with my apple tv 3rd generation. I rented Sinister and selected the "rent and watch now" option. Half way through the movie I accidentally pressed the menu button. When I looked for the rented movie on my apple tv I could not find it. Not even above the movie pannel where "purchased" and "top movies" comes up on the main menu. the apple tv suggests to go to settings>downloads but I don't have that option. I did go to settings> itunes store> check rentals but that didnt work either. It took too long to even check. Thank you because this SOLUTION worked great.
    SOLUTION: How to reset apple tv 3 3rd generation to view rented movies:on the apple tv remote: press and hold "menu" to go to the main menu. Select SETTINGS> GENERAL >RESET >RESET ALL SETTINGS. After the apple tv resets, input all your information again and your rented movies should be visible when you cruise above the "movies" section. THANK YOU!!
    Apple needs to solve this issue because honestly it took me 3 hours and a half to watch a movie that only lasted 2 BECAUSE I wast trying to solve the issue, reseting and all. blahh.

  • HT5887 Hi, pls teach me HOW TO WATCH A HD FILM in IPAD (OR iPHONE) on SMART TV INSTEAD?

    i, pls teach me HOW TO WATCH A HD FILM in IPAD (or Iphone 4S) on A Smart TV instead?

    See your other post.

  • How to watch a tv show on ipad

    How to watch a tv show on ipad

    Well..............
    1. if you downloaded one, its under videos(main screen) >tv shows tab.
    2. if its an apple tv ? let me know. I watch shows all the time.

  • How can i watch you tube videos and video stream on my mac mini

    how can i watch you tube videos and video stream on my mac mini

    Go to youtube.com? I think I'm missing the point of your question.
    Matt

  • How to watch tv with FX 5600 XT vtdr 128

    How to watch tv with FX 5600 XT vtdr 128?

    unplug the connection of the card and the monitor.
    connect the card and the tv, then start the computer.

  • HT3775 how to watch a mpg video on iPhoto

    how to watch a mpg video on iphoto

    oscaloza wrote:
    how to watch a mpg video on iphoto
    More information on what you have been trying to do, please.
    Pete

  • How to watch .avi video in iphone?

    Hi I use win Vista and I just bought a new iphone. Everything works well. Only one question is : how to watch .avi video in iphone. I download a lot of video in that format but cannot add them into intunes, therefore cannot sync into iphone. I search the web and know the problem is quickplayer doesn't support this video format. Is there any solution to tranform .avi video format to any format which quickplayer support?
    Another question is : I bought some TV show DVD ( like Grey's anatomy, House, etc.) How can I sync those films into itunes then sync into my iphone, so I can enjoy it at lunch time at work.
    Thanks for you help in advance.

    The iPhone cannot play AVI videos. You'll need to convert them before you can load and play them on your iPhone. If you search the Using iTunes for Windows forum for "video convert", you'll find a lot of threads on this subject already.
    I bought some TV show DVD ( like Grey's anatomy, House, etc.)
    Sorry, but DVDs are copy-protected and cannot legally be converted. It's a violation of the Discussions terms of use to talk about such ripping.

  • How to watch movie from iTunes on mac

    how to watch movie from iTunes on mac

    Open iTunes, click on "Movies" in the upper left corner (where it probably says "Music" when you open iTunes), and double click the movie you wish to see.

  • How to watch videos through browsers(E60)???

    I have a E60 that works perfectly so far but I have always faced one problem. How to watch some video that are offered in some webpages? I have tried using the two different browsers that are available on the phone.
    Thanks for your help

    You can find out which video file formats the E60 (and other Nokia models) support through this page:
    http://forum.nokia.com/video
    (There's a link to a table of support formats.)
    If the video you are trying to view is encoded in an unsupported format, all you can do is:
    - request the video creator to provide the video in another format that your phone supports
    - download it first to a PC and use a PC based video converter to get it to a format your phone supports

  • How to watch videos on palm from the internet without buying a software

    Hello palm community
    I am a proud owner of a palm TX.I need your help on how to watch videos on palm from the internet without buying a software.
    Thanks in advance
    Franedu
    Post relates to: Palm TX

    Sounds like the wifi isn't processing the data fast enough for video streaming.  Have you tried resetting your wifi hub ?  Switch it off for a couple of minutes and then restart it.  See if that makes any difference.

  • How to watch my presentation full screen on PC ?

    I have done a presentation in Kenote '05 and I want to watch on PC computer.
    The problem is that my school's computers doesn't have QT Pro so I won't be able to watch it on full screen. I have tried to export it as a PowerPoint presentation but all transitions are lost and slides doesn't look well...
    Do you know other solutions, how to watch (full screen with, all transitions and interactive buttons) presentation on PC, made in Kenote ?!
    Regards,
    Wiktor K.

    Keynote 3 (06) finally allows you to tag a movie to play full screen, but there are other scripts out there that will allow you to change a movie's settings. I haven't tested any in a long while, but I know Tom Negrino used to have one on his web site (which I can't find now).

Maybe you are looking for

  • BAdI BBP_PGRP_FIND missing import data

    Hi all, I want to change the purch group and the purch org within shopping carts. I implemented BAdI Definition BBP_PGRP_ASSIGN_BADI for external requirements --> working fine! But BAdI Definition BBP_PGRP_ASSIGN_BADI does not fit to "normal" shoppin

  • [SOLVED]What is the meaning of any/active/inactive session in polkit?

    Wiki said  「inactive sessions are generally remote sessions (SSH, VNC, etc.) 」. So I changed the *.policy file like below to execute the action without password  only when I am logging in remotely. (Just for clarifying the difference between any/acti

  • Command-H apparently deleted a large document.  Can I get it back?

    We are new to Mac.  My wife was attempting to move to the top of a document and wanted to use a "home" key.  There is none on Mac Air.  We have since learned what she should have done.  What she did do was stroke "Command-H."  Her document dissapeare

  • Attaching a checkbox to tree

    is it possible in java to attach a checkbox to jtree ? if so how to do it ?

  • Question about function parameters

    Looking at a piece of code. A function is defined with 3 parameters.  None of the parameters are "default" parameters. Call to the function only passes 2 paramters.  ie myfunc(parm1,parm2).  Have read the docs regarding function parameters.  Not sure