This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
superlegostud's profile picture

Rednet Email Servers

Started by superlegostud, 06 October 2013 - 01:08 AM
superlegostud #1
Posted 06 October 2013 - 03:08 AM
Hey. I was wondering if it would be possible to bounce a message around a bunch of servers on radio towers until it reached the proper computer. If you don't understand hopefully my crap diagram will assist in my explanation.

[attachment=1357:Diagram.png]


Thanks a ton,
Superlegostud
theoriginalbit #2
Posted 06 October 2013 - 03:27 AM
Yes, this is definitely possible, as long as they're in range of each other they will get a message that is sent.
But you'd be better off making a system where the messages are routed through specific computers from the source node to the target node, as opposed to just broadcasting, since there are lots of problems like message propagation and such with broadcasting to all nodes.
So doing something like a setup where each node only listens on a unique channel, then knows which channel it must send the message, once one is received, to have it continue down the path to the target. You then would also have to mitigate if a node was turned off and what it would do in that situation.
mark332 #3
Posted 08 October 2013 - 11:57 AM
Or just change the Modem-Range in the config and send it directly :)/>
AgentE382 #4
Posted 08 October 2013 - 11:07 PM
Study real-world wireless networking and switching / routing.

You don't need to implement TCP/IP in CC, but if you understand the design of a networking protocol suite, you'll have no trouble doing what you asked about.

Specifically look into switching. That's really what you're trying to do.

Real-world wireless networking uses CSMA/CA (Carrier Sense Multiple Access / Collision Avoidance) to deal with the broadcast nature of radio. Taking a look at it could help you decide what to do.