c++ - TCP packet simulation + omnet -
lets have function todo() , want implement function on packet sent node destination among routers.
so want packet goes through tcp via ethernet(could anything) , while going want process packet calling todo() on it.
i trying simulate on omnet , wanted advice on it...
do need implement entire tcp stack first or there inbuilt feature simulation in , if there allow me thing mentioned ??
i beginner in using omnet please provide me guidelines on how this.... lot ...
your question little confusing. routers process ip packets. dont care payload, might contain tcp segment.
you have scenario this:
client -> router -> server
so client create on l7 packet , gives tcp module. there can add function. example in sendtoip function packet goes ip , goes out via ethernet router. router looks @ destination ip address , send out interface configured in routing table. server receive packet. goes through tcp module (their can add todo() function) , gives application module.
Comments
Post a Comment