Find the answer to your Linux question:
Results 1 to 4 of 4
Hi everybody, Im new in Linux, I have written two client and server perl script programs, because these two PCs should communicate contineously with each other. but some packet are ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    7

    Packet lose during communication?


    Hi everybody,

    Im new in Linux,
    I have written two client and server perl script programs, because these two PCs should communicate contineously with each other. but some packet are lost during communication.

    I want to analyze the way, also the stations and modules, which the packets cross them. but I don't know how can I begin to analyze and how is the Linux kernel construction.

    How can Linux detect a packet at network device? what does it do with this packet?
    Is there any document in this area? I have read many docs but I didn't find anything useful.

    thanks

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    Have you tryed the Sniffers like Wireshark and TCPDump???
    New Users, please read this..
    Google first, then ask..

  3. #3
    Just Joined!
    Join Date
    Apr 2008
    Posts
    7
    Hi,

    yes, I have checked the receptions of packets with wireshark, but sometimes the packets are lost and sometimes not, therefore, I want to learn the linux construction. why the whireshark captures all packets and perl program doesn't.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    Well if you'd look into the kernel source. ( You can Obtain it for Free at The Linux Kernel Archives )
    There is a file called Networking.c if I am not mistaken. Maybe yu could get some information in that?
    Also, have you thought about the problem that your program might not be Full Duplex? You'd need to Multi-Thread to make the program able to Accept a Stream at the same time as sending one.. Miliseconds can make diffrences.

    I hope ( and doubt ) this helped you.

    Cheers,
    Robin
    New Users, please read this..
    Google first, then ask..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •