I'd like to make a simulation of TCP transportation.
Suppose there are two hosts,A and B. A connects to B and performs data transportation(in application layer, we may use TELNET,SMTP...)
Another hosts C is available, which is located between A and B to catch all packets between them.
Now, C starts to simulate A(C has all packets between A and B):connect
to B and then perform the transportation!
How do u think of it?:)
Of course, there are many details! If data's one-way, it is not pretty hard, i think. But for two-way data, for instance, TELNET command, i cannot imagine...
any good idea?