Sign In
Forgot Password?
Sign In | | Create Account

Who needs a Web server?

Colin Walls

Colin Walls

Posted Apr 30, 2012
3 Comments

I was having some trouble with my Internet connection recently. I will probably never know exactly what was wrong [as ADSL is, for intents and purposes, magic], but investigating the problem was interesting. I am not a networking specialist, so I would expect that messing with the settings inside a router would be hard, but the manufacturers have made it very simple.

I began to wonder why there are not many devices that work in the same way …

As the router allocates IP addresses to computers and other devices on the network, it seems unsurprising that it allocates one to itself. To take advantage of the resulting functionality, it is only a matter of entering this IP address into the browser on any other device on the network. There is then the opportunity to view and adjust lots of settings and parameters for the broadband connection.

So, how does this work? Essentially, the router contains a Web server. This term makes me think of a big powerful computer, which has access to an enormous database of Web pages that it can serve up to a remote computer on demand. It would be more accurate to call it an HTTP server, as essentially all it does is respond to this standard protocol in order to deliver data which looks very like a website. The developers of the router software could very easily construct quite a sophisticated user interface using just a few HTML files.

Although I know that my router is far from unique in operating in this way, it does seem to me that there is enormous potential for other equipment to be given this capability. For example, my hard disc video recorder could be easily controlled from my iPhone or iPad, without the manufacturer needing to create and maintain an app. The same might go for my heating system [program and adjust from anywhere in the house or elsewhere even] or my digital camera [deal with settings, view pictures etc.] or many other electronic devices.

Although you might think of a Web server as being large, an HTTP server which is optimized for embedded applications is quite small in terms of code size and requires very little memory in which to store the HTML pages, which can probably be compressed anyway. Most embedded operating systems have networking options and an HTTP server is a common option – like our Nucleus product, for example.

The possibilities for this kind of UI are really only limited by the designer’s imagination.

HTTP, Networking, Web, Nucleus

More Blog Posts

About Colin Walls Follow on Twitter

Colin WallsI have over twenty-five years experience in the electronics industry, largely dedicated to embedded software. A frequent presenter at conferences and seminars and author of numerous technical articles and two books on embedded software, I am a member of the marketing team of the Mentor Graphics Embedded Systems Division, and am based in the UK. Away from work, I have a wide range of interests including photography and trying to point my two daughters in the right direction in life. Learn more about Colin, including his go-to karaoke song and the best parts of being British: http://go.mentor.com/3_acv Visit The Colin Walls Blog

More Posts by Colin Walls

Comments 3

Post a Comment
Yes, I think the anticipation of which is responsible for the expected rise in demand for IP addresses, this at least partially prompted the rush to finalize the IPv6 standard. However masking internal addresses has been much more successful than originally anticipated. I doubt the IPv6 standard would even be necessary if we had larger privately masked ranges.

Jason K
8:38 PM May 1, 2012

I seem to recall in the old days, that the routers had specialized application software to communicate with and program the router. By adding an http server, they saved themselves the hassle of maintaining a windows (version XX), MAC, etc. applications. . I wonder if the multi-thousand dollar industrial routers use http or specialized application. . I have delt with HVAC systems and contractors.... innovation does not seem to be their strong point... We can only hope :-)

Mike Bradley
4:36 PM May 2, 2012

That is certainly a benefit to them Mike, as you can run a browser on anything. I guess big routers might use SNMP, but I am fairly ignorant of that technology.

Colin Walls
4:44 PM May 2, 2012

Add Your Comment

Please complete the following information to comment or sign in.

(Your email will not be published)

Archives

 
Online Chat