Giter VIP home page Giter VIP logo

comcast's People

Contributors

aergonus avatar enintek avatar finaleblue avatar pockygom avatar spellchaser avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

haneui

comcast's Issues

Refactor Link with Buffer Subclass

Easier to track buffer occupancy
Isolates push to buffer (to include increment occupancy) and pop from buffer (to include decrement occupancy)

Check TimeOut

59d4ed2

Replaced

            // Reset timer;

with

            tcpTO->invalidate();
            tcpTO = new event_TO(TO,&this);

Also validate

    // RETRANSMIT MISSING ACK. BUT WHICH ONE???
    send_Pak(sendBase, calcPakSize(sendBase), dst, DATA);

Implement Priority

(sent.second)->receive_pak(sent.first); Within Link
Change to an event at the same time and a higher priority

Realistic TCP

TO 500ms
Reference page 247
Currently every arrival of in-order segment with the expected sequence # is acked. There is no timeout window to wait for the next-in-order segment to then send out delayed ack

Triple Handshake and close connection
Additionally initialize seq # to be random

xExists Functions Needed

Here's some functions I need implemented.
I have an object containing

    std::vector<host> hosts; 
    std::vector<router> routers; 
    std::vector<link> links; 
    std::vector<flow> flows; 

Simply put I need these following functions

    bool nodeExists(std::string id);
    bool hostExists(std::string id);
    bool routerExists(std::string id);

Here's an example if it was a vector of strings and some resources
//http://codereview.stackexchange.com/questions/59997/contains-algorithm-for-stdvector Create contains and overload
//http://stackoverflow.com/questions/6939129/how-to-use-stdfind-stdfind-if-with-a-vector-of-custom-class-objects
//http://stackoverflow.com/questions/30406408/stdfind-on-vector-of-objects-with-overloaded-operator
//http://stackoverflow.com/questions/19187766/find-using-overloaded-operator
Given: std::vector<std::string> ids;

// If used returns true
bool net::usedID(std::string id){
    auto result = std::find(std::begin(ids), std::end(ids), id);
    return result != std::end(ids));
}```

You might want to define the helper functions getHost, getRouter, and getNode which return pointers to the corresponding objects. Then xExists should be trivial, return the corresponding bool, i.e. true if not null.

Check Debug Statements

I added debug checks everywhere... and broke something. The simulation runs fine if you give it a debug flag and compile it without defining NDEBUG i.e.
//#define NDEBUG // Comment out to turn on debug information and assertions

If you disable debugging... it disables some important part of the code somewhere. oops 4:20 am blaze it

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.