CBielstein / projectloon

Class project on routing and positioning in a mesh network inspired by Google's Project Loon.
0 stars 1 forks source link

Enable Forwarding of Data Packets #10

Closed CBielstein closed 9 years ago

CBielstein commented 9 years ago

If a data packet arrives at a balloon that is not its final destination (e.g. a hop), allow us to detect that so that we can take appropriate forwarding action on the balloon. Ipv4 headers are probably the place to look for this so that we can keep an underlying initial header and then swap out an outer header for each hop. | next hop header | final destination header | data | trailers? |. At each hop, check if there is a second header that is different than our current location, if it is, remove the header that brought us here and replace it with the next hop on the route.

elynnlee commented 9 years ago

Progress! Packets now have headers that list the final destination. Next steps include figuring out what the next hop is and forwarding to that address.

elynnlee commented 9 years ago

If a node receives a packet that has a different destination, it checks to see if it has the destination as a neighbor. If it does, it forwards there. If not, it broadcasts to all its neighbors (in range).