- packet type - 1 byte
- ip (source)
- ip part 1 (4 bytes)
- ip part 2 (4 bytes)
- ip part 3 (4 bytes)
- ip part 4 (4 bytes)
- port (source) - 4 bytes
- nothing
- nothing
- 'hello' payload
- packet type - cIIIIIII
- 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)
- port of the node that created the message
- sequence number
- time to live
- list of directly connected neighbors to that node, with the cost of the link to each one
- packet type - cIIIIIIIIII
- 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)
- source port of the node that created the message
- nothing
- time to live
- 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)
- 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?