Need advice on differences in socket programming on regular vs cellular networks.
Hi, A friend wants me to code a solution on a mobile device connected to local area network via cellular modem (having simm card and a valid local IP address). Having the reasonable background to code C level socket apps, I need guidance focused on things I need to do when implementing sockets on cellular network. Thanks. -- David Harel, == Home office +972 77 7657645 Cellular: +972 54 4534502 Snail Mail: Amuka D.N Merom Hagalil 13802 Israel Email: harel...@ergolight-sw.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Need advice on differences in socket programming on regular vs cellular networks.
Marc Volovic wrote: On Apr 6, 2010, at 2:47 PM, David Harel wrote: A friend wants me to code a solution on a mobile device connected to local area network via cellular modem (having simm card and a valid local IP address). Assuming above obtains, a socket is a socket is a socket is a socket. Bind and accept normally. I was hoping I would get this reply. Thanks. M Marc Volovic marcvolo...@me.com mailto:marcvolo...@me.com -- Regards. David Harel, == Home office +972 77 7657645 Cellular: +972 54 4534502 Snail Mail: Amuka D.N Merom Hagalil 13802 Israel Email: harel...@ergolight-sw.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Need advice on differences in socket programming on regular vs cellular networks.
2010/4/6 David Harel harel...@gmail.com Marc Volovic wrote: On Apr 6, 2010, at 2:47 PM, David Harel wrote: A friend wants me to code a solution on a mobile device connected to local area network via cellular modem (having simm card and a valid local IP address). Assuming above obtains, a socket is a socket is a socket is a socket. Bind and accept normally. I was hoping I would get this reply. Thanks. While this is true on the surface, it's worth being aware to your underlying network special idiosyncrasies. There is a lot more packet loss than usual and round trips are longer. Design the protocol to reduce the problems that can be incurred due to these issues. Pipeline your requests and don't use a stop-and-wait method unless required. This will reduce the overall time it takes for your app to achieve its goals. If you are using a standard protocol find where you can pipeline in it while following the spec. There are probably other things you'll find along the way, the above is just what I could come up with on the fly. Baruch ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Need advice on differences in socket programming on regular vs cellular networks.
On Apr 6, 2010, at 3:18 PM, Baruch Even wrote: While this is true on the surface, it's worth being aware to your underlying network special idiosyncrasies. There is a lot more packet loss than usual and round trips are longer. Design the protocol to reduce the problems that can be incurred due to these issues. Pipeline your requests and don't use a stop-and-wait method unless required. This will reduce the overall time it takes for your app to achieve its goals. If you are using a standard protocol find where you can pipeline in it while following the spec. There are probably other things you'll find along the way, the above is just what I could come up with on the fly. This is true for any medium, wired, wireless or etheric - be aware of the medium's behaviour and change the app/protocol to work around the medium's weaknesses. Marc Volovic marcvolo...@me.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Need advice on differences in socket programming on regular vs cellular networks.
On Apr 6, 2010, at 2:47 PM, David Harel wrote: A friend wants me to code a solution on a mobile device connected to local area network via cellular modem (having simm card and a valid local IP address). Assuming above obtains, a socket is a socket is a socket is a socket. Bind and accept normally. M Marc Volovic marcvolo...@me.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il