Thread: Ideas for a Network Simulation toy..

  1. #1
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657

    Ideas for a Network Simulation toy..

    I've been learning the basics of networking for a few days and suddenly had this idea: to make the model myself in C++.
    Though I've not written any code(for this) yet, I think the implementations of the following will be within my capacity(now)...[I'd expand it later along the road]..
    * Virtual Machines as a toned down version of the architecture of real comps(in a high level, not 0s and 1s !!)
    * Ability to create and destroy new virtual machines(each one being an object).
    * Sending and receiving meaningful messages.
    * Primitive lookalikes of some network information tools found in Linux and a sort of ssh.
    * Illustrating the different topologies and objects resembling the other devices to hold the vm `s together.

    Would anyone of you suggest some other ideas &| features, or something which would be a helpful read ?
    Last edited by manasij7479; 07-01-2011 at 06:33 AM.

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    I don't know how detailed you want your simulation to be, but I'd read OSI model - Wikipedia, the free encyclopedia. Are you going to implement tcp? ipv4/6?
    If you understand what you're doing, you're not learning anything.

  3. #3
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    how detailed you want your simulation to be
    I was thinking about fusing the lower three layers (upto network) into a single entity(for now)... and the others into another.
    are you going to implement tcp?
    I'm not sure. I would try to, but if it gets too complicated, I'd make a simple one myself...

    Another Question::
    Would it be a good idea to learn about threads before attempting to do this ?
    __ I mean .. Can I make it in a simple way now, and later break ..say..the different devices of the network, into different threads ...without breaking everything else ? __

  4. #4
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    Threads would certainly make it more logical. Afterall, in computer networks, computers don't generally run one at a time.

  5. #5
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    >> Can I make it in a simple way now, and later break ..say..the different devices of the network, into different threads ...without breaking everything else ?

    You will always want to have two models; a synchronous and a asynchronous one, to cater for what would be your virtual machine real-life needs. So it's perfectly fine to develop the synchronous model now and later add the asynchronous one.

    >> Would anyone of you suggest some other ideas &| features, or something which would be a helpful read ?

    I think you covered it. The only other thing I can think off is emulating a minimum set of protocols that will add to your final protocol stack. Each protocol implemented through an object that can only reside on its respective layer. Layers which could exist in the form of a namespace. Dunno... just thinking aloud...
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  6. #6
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Thank you all..
    I've started making the vm part first....
    Posting the early design in another thread in the Tech Board ...please do criticize

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Neural Network Ideas
    By User Name: in forum General AI Programming
    Replies: 2
    Last Post: 09-16-2010, 07:14 PM
  2. Sports simulation/game website ideas
    By ebemiss in forum Tech Board
    Replies: 3
    Last Post: 07-22-2009, 11:23 AM
  3. EDCF protocol in Network simulation program
    By linux_007 in forum C++ Programming
    Replies: 0
    Last Post: 04-12-2009, 03:04 PM
  4. Network simulation code
    By ferarris in forum C Programming
    Replies: 2
    Last Post: 03-31-2006, 12:09 PM
  5. review my telephone network simulation program
    By debuger2004 in forum C Programming
    Replies: 3
    Last Post: 06-20-2003, 01:26 PM