Git Product home page Git Product logo

network-simulator's People

Contributors

arielril avatar

Watchers

 avatar  avatar

Forkers

mkeshita

network-simulator's Issues

More fragments flag always set to zero

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;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.