inet
inet copied to clipboard
Tunnel App for INET
It would be great to have apps (tcp/udp client/server) that could tunnel information from a given TCP/UDP port to somewhere in the simulated network. On the other end the corresponding app would get the APP data and would send that to a real service on a pre-configured port. This is how the OMNET sockets sample is working. We could name this ClientTCPSocket / ServerTCPSocket /ClientUDPSocket / ServerUDPSocket
The usecase would be:
- Install a browser and an apache server on a physical machine. The browser obviously can connect to the http server on localhost.
- Instead of connecting to localhost:80 connect to localhost:8080 which would connect to a ClientTCPSocket module in the simulation. That would extract the app data and send it to the simulated network (the source address need to be replaced).
- On the other end ServerTCPSocket receives it and the data is sent to a preconfigured IP:port (the webserver in this case)
This would allow to run real application via a simulated omnet network.
This feature requires implementing ExtUpperTcp and ExtUpperUdp modules.