What OSs are you targeting?
What are your long-term programing desires?
If you are going to replicate the functions of ping and tracert then it is easiest to access low level network from C/C++. You will also have the advantage of accessing full source code for these utilities from various sources.
You could also do it from .NET on Windows, which might be harder for the networking but easier for the GUI.