Giter VIP home page Giter VIP logo

link-state-routing's Introduction

link-state-routing

hello message packet structure

header - cIIIII

  1. packet type - 1 byte
  2. ip (source)
  • ip part 1 (4 bytes)
  • ip part 2 (4 bytes)
  • ip part 3 (4 bytes)
  • ip part 4 (4 bytes)
  1. port (source) - 4 bytes
  2. nothing
  3. nothing
  4. 'hello' payload

link state message packet structure

header

  1. packet type - cIIIIIII
  2. ip of the node that created the message
  • ip part 1 (4 bytes)
  • ip part 2 (4 bytes)
  • ip part 3 (4 bytes)
  • ip part 4 (4 bytes)
  1. port of the node that created the message
  2. sequence number
  3. time to live

put this info in the payload

  1. list of directly connected neighbors to that node, with the cost of the link to each one

routetrace message packet structure

  1. packet type - cIIIIIIIIII
  2. source ip of the node that created the message
  • ip part 1 (4 bytes)
  • ip part 2 (4 bytes)
  • ip part 3 (4 bytes)
  • ip part 4 (4 bytes)
  1. source port of the node that created the message
  2. nothing
  3. time to live
  4. dest ip of the node that created the message
  • ip part 1 (4 bytes)
  • ip part 2 (4 bytes)
  • ip part 3 (4 bytes)
  • ip part 4 (4 bytes)
  1. dest port of the node that created the message

questions:

  • what is the ttl when sending a new link state packet
  • format for sending neighboring nodes and cost of a link state packet

TODO: what to send for link state packet? neighboring nodes? how does that work if I am forwarding the neighboring nodes from node A and I am node C by now... just neighboring nodes? or cost? why does it need to send the cost?

do we send hello message to only active neighbors? or all neighbors in the original topology?

link-state-routing's People

Contributors

charmainessseah avatar

Watchers

 avatar

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.