954,323 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

is java the router's programming language?

hello,
can any one answer me
is java the router's programming language, or at least the mostly used in it?

thank you in advance for any kind of help
best regards

s.w.a
Junior Poster in Training
63 posts since Mar 2011
Reputation Points: 7
Solved Threads: 0
 

I'm not sure what you mean. If you are asking if the router is programmed using the Java programming language then the answer is likely no. Routers are designed to be as fast a possible at what they do. Generally speaking, Java doesn't provide the facilities to support things that talk directly to speed - this article addresses the reasons better than I could. The article is in reference to git but the idea remains the same.

[edit]
However... There is a new generation of software routers still under heavy development that use a variety of languages. Click is one that I am familiar with that uses C++. The same performance penalty applies as above but there may in fact be an implementation in Java that I am not aware of.
[/edit]

L7Sqr
Practically a Master Poster
655 posts since Feb 2011
Reputation Points: 201
Solved Threads: 123
 

Some routers provide run a web server to allow the administrator to use a web browser to interact with. This is where you may think that the router was programmed using Java. Now, it may be that the router's HTTP server is serving java pages. That is not uncommon. You would need to check with your router's documentation for more information about the HTTP server that it is running. However, as L7Sqr indicated, the core IOS that the router is running to "route" packets is not going to be written in Java.

JorgeM
Posting Pro
576 posts since Dec 2011
Reputation Points: 51
Solved Threads: 55
Infraction Points: 5
 

thank you very much for your replies
now to make my problem more spicific, let we say that the administrator (or a company or any government office) want to add a new protocol to the router, for example let say to make the connection secure, (it add a key exchange between the client and the local router).
does it use the java language for this purpose?

thank you very much before and in advance
best regards

s.w.a
Junior Poster in Training
63 posts since Mar 2011
Reputation Points: 7
Solved Threads: 0
 

If you want to add a protocol to the internal router infrastructure you need to do it in the language supported by the platform (supposing there is support for such activity).

If you are doing a software-defined router then you can do it in whatever language the router is programmed in.

In general, the answer to 'is packet processing done using Java?' is no. Java has speed issues (clearly described in the link I provided) so is an unlikely candidate for such programs.

L7Sqr
Practically a Master Poster
655 posts since Feb 2011
Reputation Points: 201
Solved Threads: 123
 
caperjack
I hate 20 Questions
Team Colleague
13,069 posts since Aug 2003
Reputation Points: 1,064
Solved Threads: 812
 

DNS queries are not the extent of a routers capabilities. The project you link to is an application to be hosted on an end-node in the network. A router is an internal node that manages getting data frames to and from end-node hosts.
It is misleading to suggest that one can be a starting point for the other.

L7Sqr
Practically a Master Poster
655 posts since Feb 2011
Reputation Points: 201
Solved Threads: 123
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You