arielril / network-simulator Goto Github PK
View Code? Open in Web Editor NEWThis is a cli to simulate the communication of two nodes inside a topology
This is a cli to simulate the communication of two nodes inside a topology
The flag mf
(more fragments) inside the ICMP Request/Reply packet is always zero.
Expected: When the packet is fragmented in more than one packet, all the packets, but not the last, must have the more fragments flag set to 1 (mf=1
).
Example output:
N1 box N1 : ETH (src=00:00:00:00:00:01 dst=FF:FF:FF:FF:FF:FF) \n ARP - Who has 10.0.0.1? Tell 10.0.0.2;
R1 => N1 : ETH (src=00:00:00:00:00:10 dst=00:00:00:00:00:01) \n ARP - 10.0.0.1 is at 00:00:00:00:00:10;
N1 => R1 : ETH (src=00:00:00:00:00:01 dst=00:00:00:00:00:10) \n IP (src=10.0.0.2 dst=20.0.0.2 ttl=8 mf=0 off=0) \n ICMP - Echo request (data=helloworld);
R1 box R1 : ETH (src=00:00:00:00:00:11 dst=FF:FF:FF:FF:FF:FF) \n ARP - Who has 100.10.20.2? Tell 100.10.20.1;
R2 => R1 : ETH (src=00:00:00:00:00:21 dst=00:00:00:00:00:11) \n ARP - 100.10.20.2 is at 00:00:00:00:00:21;
R1 => R2 : ETH (src=00:00:00:00:00:11 dst=00:00:00:00:00:21) \n IP (src=10.0.0.2 dst=20.0.0.2 ttl=7 mf=0 off=0) \n ICMP - Echo request (data=helloworld);
R2 box R2 : ETH (src=00:00:00:00:00:20 dst=FF:FF:FF:FF:FF:FF) \n ARP - Who has 20.0.0.2? Tell 20.0.0.1;
N3 => R2 : ETH (src=00:00:00:00:00:03 dst=00:00:00:00:00:20) \n ARP - 20.0.0.2 is at 00:00:00:00:00:03;
R2 => N3 : ETH (src=00:00:00:00:00:20 dst=00:00:00:00:00:03) \n IP (src=10.0.0.2 dst=20.0.0.2 ttl=6 mf=0 off=0) \n ICMP - Echo request (data=helloworld);
N3 rbox N3 : Received helloworld;
N3 => R2 : ETH (src=00:00:00:00:00:03 dst=00:00:00:00:00:20) \n IP (src=20.0.0.2 dst=10.0.0.2 ttl=8 mf=0 off=0) \n ICMP - Echo reply (data=helloworld);
R2 box R2 : ETH (src=00:00:00:00:00:22 dst=FF:FF:FF:FF:FF:FF) \n ARP - Who has 100.10.30.2? Tell 100.10.30.1;
R3 => R2 : ETH (src=00:00:00:00:00:31 dst=00:00:00:00:00:22) \n ARP - 100.10.30.2 is at 00:00:00:00:00:31;
R2 => R3 : ETH (src=00:00:00:00:00:22 dst=00:00:00:00:00:31) \n IP (src=20.0.0.2 dst=10.0.0.2 ttl=7 mf=0 off=0) \n ICMP - Echo reply (data=hel);
R2 => R3 : ETH (src=00:00:00:00:00:22 dst=00:00:00:00:00:31) \n IP (src=20.0.0.2 dst=10.0.0.2 ttl=7 mf=0 off=3) \n ICMP - Echo reply (data=low);
R2 => R3 : ETH (src=00:00:00:00:00:22 dst=00:00:00:00:00:31) \n IP (src=20.0.0.2 dst=10.0.0.2 ttl=7 mf=0 off=6) \n ICMP - Echo reply (data=orl);
R2 => R3 : ETH (src=00:00:00:00:00:22 dst=00:00:00:00:00:31) \n IP (src=20.0.0.2 dst=10.0.0.2 ttl=7 mf=0 off=9) \n ICMP - Echo reply (data=d);
R3 box R3 : ETH (src=00:00:00:00:00:32 dst=FF:FF:FF:FF:FF:FF) \n ARP - Who has 100.10.40.1? Tell 100.10.40.2;
R1 => R3 : ETH (src=00:00:00:00:00:12 dst=00:00:00:00:00:32) \n ARP - 100.10.40.1 is at 00:00:00:00:00:12;
R3 => R1 : ETH (src=00:00:00:00:00:32 dst=00:00:00:00:00:12) \n IP (src=20.0.0.2 dst=10.0.0.2 ttl=6 mf=0 off=0) \n ICMP - Echo reply (data=hel);
R3 => R1 : ETH (src=00:00:00:00:00:32 dst=00:00:00:00:00:12) \n IP (src=20.0.0.2 dst=10.0.0.2 ttl=6 mf=0 off=3) \n ICMP - Echo reply (data=low);
R3 => R1 : ETH (src=00:00:00:00:00:32 dst=00:00:00:00:00:12) \n IP (src=20.0.0.2 dst=10.0.0.2 ttl=6 mf=0 off=6) \n ICMP - Echo reply (data=orl);
R3 => R1 : ETH (src=00:00:00:00:00:32 dst=00:00:00:00:00:12) \n IP (src=20.0.0.2 dst=10.0.0.2 ttl=6 mf=0 off=9) \n ICMP - Echo reply (data=d);
R1 => N1 : ETH (src=00:00:00:00:00:10 dst=00:00:00:00:00:01) \n IP (src=20.0.0.2 dst=10.0.0.2 ttl=5 mf=0 off=0) \n ICMP - Echo reply (data=hel);
R1 => N1 : ETH (src=00:00:00:00:00:10 dst=00:00:00:00:00:01) \n IP (src=20.0.0.2 dst=10.0.0.2 ttl=5 mf=0 off=3) \n ICMP - Echo reply (data=low);
R1 => N1 : ETH (src=00:00:00:00:00:10 dst=00:00:00:00:00:01) \n IP (src=20.0.0.2 dst=10.0.0.2 ttl=5 mf=0 off=6) \n ICMP - Echo reply (data=orl);
R1 => N1 : ETH (src=00:00:00:00:00:10 dst=00:00:00:00:00:01) \n IP (src=20.0.0.2 dst=10.0.0.2 ttl=5 mf=0 off=9) \n ICMP - Echo reply (data=d);
N1 rbox N1 : Received helloworld;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.