Dear Pedro, Thank you for your reply. Actually I need to have TCP-in-TCP tunnelling. Means the packet should encapsulated at R1 and send to R2. At R2 decapsulate it sends back ACK to R1 and pass it towards Receiver. At the receiver or TCP_sink again an ACK send back to the sender (or FTP_server).
(FTP_Srv)----------(R1)======TCP Tunnel=======(R2)--------(TCP_Sink) Regards, Peyman -----Original Message----- From: Pedro Vale Estrela [mailto:[EMAIL PROTECTED] Sent: 15 November 2006 15:26 To: 'Peyman Behbahani'; ns-users@ISI.EDU Subject: RE: [ns] TCP or transport layer Tunneling The MIP (mobile IP) code in Ns2 has this already implemented using IP-in-IP tunneling Pedro Estrela > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Peyman Behbahani > Sent: quarta-feira, 15 de Novembro de 2006 11:09 > To: ns-users@ISI.EDU > Subject: [ns] TCP or transport layer Tunneling > > > Dear Ns-Users, > > > > I am wandering is there any implementation for TCP-over-TCP tunnelling or > alternatively any idea about implementing such a scenario? > > > > The topology can be as follow: > > > > > 0-----------------0=================0-------------0 > sender TCP router2 > receiver > > (TCP) tunnel > > > > Router 1 is working as a TCP-encapsulator and router 2 is a decapsulator. > > > > Thanks in advance, bests > > Peyman > > > >