08-03-2013, 11:14 AM
Although I do have plans to build a router, it'll have to wait (or rather, I'm putting it off) until I finish building my computer (a task that has already taken more than a year, and I'm hardly any closer to having it finished then when I started :/ ). That said, I have thought about how it would work plenty, so I suppose I could share how I plan to have it function.
IP addresses would be statically assigned, for both computers and routers alike. I may at some point implement some type of DHCP, but it would only be for hosts; the router would still be manually assigned.
It would use a cut down form of RIP, a router once activated would send its address out to connected routers, and then again from those routers. I only plan for a router to remember up to 4 networks that are out of any one port, and only 2 hops away max. If the network happens to be large enough that the desired network is more than 2 hops, then it'll broadcast to all connected routers in the hops that one of them have it. Though now that I think about it, I should have some sort of network query system for cases like that.
The IP addresses themselves are much like normal IP addresses, except that they're 9 bits, broken into 3 three bit sections. The last section identifies either network, host, or broadcast address, and the upper 2 sections just identify which network you're on.
IP addresses would be statically assigned, for both computers and routers alike. I may at some point implement some type of DHCP, but it would only be for hosts; the router would still be manually assigned.
It would use a cut down form of RIP, a router once activated would send its address out to connected routers, and then again from those routers. I only plan for a router to remember up to 4 networks that are out of any one port, and only 2 hops away max. If the network happens to be large enough that the desired network is more than 2 hops, then it'll broadcast to all connected routers in the hops that one of them have it. Though now that I think about it, I should have some sort of network query system for cases like that.
The IP addresses themselves are much like normal IP addresses, except that they're 9 bits, broken into 3 three bit sections. The last section identifies either network, host, or broadcast address, and the upper 2 sections just identify which network you're on.