[Click] Anyone have a simple stateless TCP responder?

Beyers Cronje bcronje at gmail.com
Fri Jun 3 14:12:44 EDT 2005


Hi Eddie,

Attached element. As I noted before, it's a small element that we used
with other elements in a specific configuration to do performance
testing of a Proxy cache hit. It's probably not very flexable on it's
own. Our test configuration was based on a switch configuration using
EtherSwitch, in other words the TcpAck element requires to have the
ethernet header intact, see the header file for full description of
the element.

If a more generic HTTP TCP responder element such as Nicholas
mentioned is something that people/click wants, let me know, shouldn't
be too hard to implement.

Cheers

Beyers

On 6/3/05, Eddie Kohler <kohler at cs.ucla.edu> wrote:
> I'd love it if you mailed it on list so we can check it in and get it
> more widely available!
> 
> Eddie
> 
> 
> On Jun 2, 2005, at 6:40 PM, Beyers Cronje wrote:
> 
> > Hi Nicholas,
> >
> > No copyright. Just a small element we used at some time to test web
> > proxy cache hit performance. You'll probable need to make some changes
> > to fit your needs. Also I just checked the source and my description
> > below was slightly wrong, it currently ACKs every second packet or if
> > the FIN bit is set.
> >
> > I'll mail it to you off the list.
> >
> > Beyers
> >
> > On 6/2/05, Nicholas Weaver <nweaver at icsi.berkeley.edu> wrote:
> >> On Thu, Jun 02, 2005 at 11:43:38AM +0200, Beyers Cronje composed:
> >>> Hi Nicholas,
> >>>
> >>> I've got a small element that provides valid ACKs on packets coming
> >>> in through it's input 0. It ACKs every second packet || packets with
> >>> PUSH bit set. Not exactly what you are looking for, but should be
> >>> very easy to add SYN processing ie through input 1 and have a
> >>> template pre-build HTTP response/redirect packet.
> >>>
> >>> Let me know.
> >>
> >> Thanks.  What would be the copyright on the element?
> >>
> >>> Beyers
> >>>
> >>>
> >>> -----Original Message-----
> >>> From: click-bounces at amsterdam.lcs.mit.edu on behalf of Nicholas
> >>> Weaver
> >>> Sent: Thu 6/2/2005 12:45 AM
> >>> To: click at amsterdam.lcs.mit.edu
> >>> Subject: [Click] Anyone have a simple stateless TCP responder?
> >>>
> >>>
> >>> Does anyone have a simple stateless TCP responder element?
> >>>
> >>> Namely, it accepts a SYN.  It generates a corresponding SYN-ACK, a
> >>> spew of data packets (without waiting for the ACK from the SYN-ACK),
> >>> and the FIN?
> >>>
> >>> I want an element which can give an HTTP redirect or error message
> >>> when I'm blocking an IP, rather than just dropping on the floor, and
> >>> I'd (ideally) want it to be stateless.  If it doesn't work 100% of
> >>> teh
> >>> time due to dropped packets, no big deal, the connections it is used
> >>> on are for ones which are explicitly being dropped by a security
> >>> module.
> >>>
> >>> Thanks.
> >>>
> >>> --
> >>> Nicholas C. Weaver
> >>> nweaver at icsi.berkeley.edu
> >>>      This message has been ROT-13 encrypted twice for higher
> >>> security.
> >>> _______________________________________________
> >>> click mailing list
> >>> click at amsterdam.lcs.mit.edu
> >>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> >>>
> >>>
> >>>
> >>> This is an email from Bytes Technology Group. It is confidential to
> >>> the
> >>> ordinary user of the email address to which it is addressed
> >>> and may contain copyright and/or legally privileged information.
> >>> No one else may read, print, store, copy, forward or act in
> >>> reliance upon all or any part of it or its attachments. If you
> >>> received this email in error please notify its sender.
> >>
> >> --
> >> Nicholas C. Weaver
> >> nweaver at icsi.berkeley.edu
> >>      This message has been ROT-13 encrypted twice for higher security.
> >> _______________________________________________
> >> click mailing list
> >> click at amsterdam.lcs.mit.edu
> >> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> >>
> >
> > _______________________________________________
> > click mailing list
> > click at amsterdam.lcs.mit.edu
> > https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> 
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tcpack.hh
Type: text/x-c
Size: 1851 bytes
Desc: not available
Url : https://amsterdam.lcs.mit.edu/pipermail/click/attachments/20050603/7b596baa/tcpack.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tcpack.cc
Type: text/x-c
Size: 3237 bytes
Desc: not available
Url : https://amsterdam.lcs.mit.edu/pipermail/click/attachments/20050603/7b596baa/tcpack-0001.bin


More information about the click mailing list