Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Packet editing

by Polyglot (Pilgrim)
on May 21, 2009 at 15:39 UTC ( #765479=note: print w/replies, xml ) Need Help??

in reply to Packet editing

Are you planning on piecing the individual packets together first, doing your substitution, and then re-splitting the packets?

If not, I think you will run into complications on the splitting points of the packets. How will you know that the entire URL of your image is contained in one single packet, all of the time? Do packets always respect URLs in such a way as to make sure that they will not get chopped in two? I don't think so.

As one website put it:

TCP/IP implementations differ in the approach they take to deciding on packet size. It is fairly common for implementations to use 576-byte packets whenever they can't verify that the entire path is able to handle larger packets. The problem is that many implementations have bugs in the code to reassemble pieces. So many implementors try to avoid ever having splits occur. Different implementors take different approaches to deciding when it is safe to use large packets. Some use them only for the local network. Others will use them for any network on the same campus. 576 bytes is a safe size, which every implementation must support.

So, what are the odds of your URL always landing somewhere in the middle of that packet, and never on the joint between two packets?



Replies are listed 'Best First'.
Re^2: Packet editing
by p0c (Initiate) on May 24, 2009 at 14:59 UTC
    Yes I knew that, forgot a bit about it. It doesn't matter if it's a bit hit and miss with the replacing. First reassembling the packets first will cause to much delay.. Is there a way to do this?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://765479]
NodeReaper patrols the perimeter

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2018-06-17 22:23 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (107 votes). Check out past polls.