Hello Monks of Perl!

I am considering writing a Perl app to aid me in testing network functionality of a project I am working on. I would like some expert feedback on the feasibility of the project. Thanks in advance.

Problem:
I want to know how many UDP packets can be dropped betweeen two PC applications before they will drop communication with the other each other.

Proposed Solution:
I'm trying to create a software pass-through application that takes TCP and UDP packets from PC1 and passes them through to PC2 and vice versa. I would do this through a third PC(PC3) that would have two NIC cards and be running the proposed application. So PC's 1 and 2 would be networked together via PC3. I want to specify how many packets to drop from either side and see how my applications on PC1 and PC2 respond.

Question:
Is perl fast enough to pass-through time-intensive UDP data from one side to the other? The data is on the order of 60 UDP packets per second. The packets have about 16ms to get from PC1 to PC2 when directly connected. I also wonder once the defined number of packets to drop has been reached would the application begin resending packets without dropping any extra? I think a fairly small Perl script would do the job pretty well, I'm just not sure if it is quick enough.

Thanks Again.


In reply to Feasibility of Dropping a Specified Quantity of Time-Intensive UDP Traffic Between Two Devices with Perl by Smitty5k

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.