Pages

Friday, July 16, 2010

Internet Backbone and Route Servers

Autonomous Systems (AS) are large networks usually belongs to different Internet Service Providers (ISP). AS’s are connected to each other through Internet Exchange Points (IX or IXP) which reside at virtual edges of Autonomous Systems. BGP routing protocol, handles the communication among these different AS’s creating the backbone of the internet.

Accordingly at an IXP, many ISPs are connected to each other by external BGP peering. Normally these external BGP connections are done by full mesh method. This creates a scaling problem. Route Server mechanism is one heavily adapted method to resolve this problem. Each ISP's BGP router only peers to Route Server. Route Server serves as BGP information exchange to other BGP routers. By applying this method, numbers of BGP connections is can be reduced [1].

Some of the ISP’s allow restricted public access to their route servers using telnet. Most often they allow the remote users to issue commands such as

  • ping
  • traceroute
  • show ip bgp

without login into the router. These are very useful for taking various measurements of latency, packet failure ratios, etc of the internet. For a list of such route severs with public access capabilities are listed below [2].

Hostname

Location

Provider

IP Address to telnet

AS

Peers

Type

route-server.twtelecom.net

Littleton, CO 80124, US

Time Warner Telecom

66.162.47.58

4323

2059

Cisco 7200 12.1(2)T

route-server.eu.gblx.net

Phoenix, AZ 85044, US

Global Crossing - Europe

67.17.81.187

3549

2035

Cisco

route-server.gblx.net

Phoenix, AZ 85044, US

Global Crossing

67.17.81.28

3549

2035

Cisco

route-server.ip.tiscali.net

Cagliari, 14 -, Italy

Tiscali

213.200.64.94

3257

806

Cisco

route-server.gt.ca

Montreal QC H3E 3B3 Canada

GT Group Telecom

216.18.63.214

6539

295

Cisco

route-server-east.gt.ca

Montreal QC H3E 3B3 Canada

GT Group Telecom

216.18.63.214

6539

295

Cisco

route-server-west.gt.ca

Montreal QC H3E 3B3, Canada

GT Group Telecom

66.59.190.81

6539

295

Cisco

route-views.optus.net.au

Sydney, Australia

Optus Australia

203.202.125.6

7474

293

Cisco

route-views.on.bb.telus.com

Burnaby, BC v5h 3z7, Canada

Telus - Eastern Canada

154.11.63.86

852

179

Cisco

route-views.ab.bb.telus.com

Burnaby, BC v5h 3z7, Canada

Telus - Western Canada

154.11.98.18

852

179

Cisco

route-server.east.allstream.com

Toronto, ON m5v 3g2, Canada

Allstream - East

216.191.14.250

15290

146

Cisco

route-server.west.allstream.com

Toronto, ON m5v 3g2, Canada

Allstream - West

209.82.88.118

15290

146

Cisco

route-server.central.allstream.com

Toronto, ON m5v 3g2, Canada

Allstream - Central

216.191.167.134

15290

146

Cisco

public-route-server.is.co.za

Edenvale, South Africa

Internet Solution

196.4.160.227

3741

85

Cisco

route-server.videotron.net

Montreal, QC H3C4M8, Canada

VIDEOTRON LTEE / QMI

216.113.14.121

5769

59

 

route-server.eastlink.ca

Bedford, NS, Canada

Eastlink

24.137.100.8

2610:170:ffff::8

11260

21

Cisco

route-server.belwue.de

Stuttgart, Germany

BelWue

193.196.190.135
129.143.103.78

553

20

Cisco

route-server.cerf.net

Alpharetta, GA 30005, US

CERFnet

12.129.193.235

17233

5

Cisco 7200 12.0(22)S2e

For information on router locations and other information visit here.

Some Important Links to Visit

References

[1] “Route Server” Available at: http://www.zebra.org/zebra/Route-Server.html

[2] “Route Servers”, Available at: http://www.lerfjhax.com/route_servers

Tuesday, May 25, 2010

Create Shortcut Specification for IzPack

In IzPack software, operating system specific shortcut specification must be provided along with the common configuration specification to support the shortcuts. This is caused by the OS specific nature of shortcuts’ operation. In other, words today we will discuss how to write the shortcutSpec.xml that is required to accommodate shortcuts in the Windows environment.
Platform: Windows
File Name: shortcutSpec.xml
The root element of this xml document is <shortcuts>.This xml document has 3 other important sub elements under this tag. they are <skipIfNotSupported/>, <programGroup/> and <defaultCurrentUser/>. <skipIfNotSupported/> allows the panel to be silent on a non-supporting system. <defaultCurrentUser/> allows the “current user” to be the default selection for the panel. If this element is not present, the default selection is “all users”. <programGroup/> allows to specify the name of the menu under which shortcuts to be specified.
<skipIfNotSupported/>
<programGroup defaultName="Jefe" location="applications"/>
After these 3 elements, comes the most important functionality providers of the specification. <shortcut> tags each per shortcut, will provides the OS specific details to the installer to create the shortcuts.
Given below is the code for a shortcut to execute a startup.bat of a Tomcat bundle. This will create a desktop shortcut specified by desktop="yes" attribute and a shortcut in the program group specified by programGroup="yes" attribute, under the name Jefe which is defined in <programGroup> tag. In this shortcut configuration data name of the shortcut appears as Jefe – Startup and the required bat file to execute is located in the path given in the target attribute. While name and target attributes are essential to be specified in a short cut, all other attributes are optional. workingDirectory specify the folder in which the startup.bat is located.  iconFile will specify the location and the name of the icon to use for this shortcut, which will appear in both desktop and the program group. description attribute will give a brief description about the shortcut when it is been requested. initialState=”noShow” will hide command prompt opening when bat files are requested to execute. Since I need to monitor the command prompt information at startup of the Tomcat I used the initialState as “normal”. Even though all the attributes expect name and the target are considered optional, programGroup, desktop, startMenu and startup are considered as semi-optional attributes. There value is either yes or no. Any other value other than these two are interpreted as no. createForPack another important child element of shortcut. It will specify under which pack this shortcut is installed. If this pack is not selected while installation, the respective shortcut is omitted automatically.
<shortcut
        name="Jefe - Startup"
        target="$INSTALL_PATH\core\liferay-portal-5.2.3\tomcat-6.0.18\bin\startup.bat"
        commandLine=""
        workingDirectory="$INSTALL_PATH\core\liferay-portal-5.2.3\tomcat-6.0.18\bin"
        description="Jefe Server Startup"
        iconFile="$INSTALL_PATH\images\startup.ico"
        iconIndex="0"
        initialState="normal"
        programGroup="yes"
        desktop="yes"
        applications="no"
        startMenu="no"
        startup="no">

       <createForPack name="core"/>
</shortcut>
Similarly I have created another shortcut to execute the shutdown.bat in the same folder to shutdown the Tomcat server. I’ll not discuss this since it is just a replacement for the word startup by shutdown. Now let’s take a look on how to create a shortcut to execute the uninstall.jar created by the IzPack installer for the Jefe installer.
<shortcut
        name="Jefe - Uninstaller"
        target="$INSTALL_PATH\uninstaller\uninstall.bat"
        commandLine=""
        workingDirectory="$INSTALL_PATH\uninstaller"
        description="Jefe Server will be completely Uninstalled"
        iconFile="$INSTALL_PATH\images\uninstall.ico"
        iconIndex="0"
        initialState="noShow"
        programGroup="yes"
        desktop="no"
        applications="no"
        startMenu="no"
        startup="no">

       <createForPack name="core"/>
</shortcut>
The difference in this shortcut to the one discussed earlier is that we are using a a bat file given below to execute the jar file and has configured following 2 attributes differently to how they were configured previously. initialState=”noShow” and desktop=”no”. The bat file I’m using for this operation is as given bellow,
@Echo Uninstalling…
java –jar uninstall.jar
@Echo Successfully Uninstalled
The full description of the different attributes are given in the IzPack manual under Desktop Shortcuts section. The same shortcuts created for the Unix base system in also given as an example in the IzPack manual under the sub section A simple shortcut specification for Unix under the Section Desktop Shortcuts.

Thursday, May 6, 2010

Installing Ant and Maven

Installing Ant

Installing Ant is very very simple. Following are the steps for that,
Step 1: Download the latest ant binary from http://ant.apache.org/bindownload.cgi
Step 2: Extract it to folder in your machine. In my case C:\ant
Step 3: Set the following environmental variables in your machine
  • JAVA_HOME : path/to/your/jdk (eg: C:\Java)
  • ANT_HOME : path to folder where you extracted your ant copy (eg: C:\ant\apache-ant-1.8.0)
  • PATH : %PATH%;%ANT_HOME%\bin
Step 4: To check whether the installation was successful, in command prompt type “ant” if it displays “build failed” then ant installation is successfully installed to your machine. But if it says it can not identify the command ant then there is a problem in the installation.

Installing Maven 2

Installing Maven is so simple, and is very much similar to the ant installation process. Given below is the maven installation process,
Step 1: Download the latest maven binary from http://maven.apache.org/download.html
Step 2: Extract it to folder in your machine. In my case C:\maven
Step 3: Set the following environmental variables in your machine
  • JAVA_HOME : path/to/your/jdk (eg: C:\Java)
  • M2_HOME : path to folder where you extracted your maven copy (eg: C:\maven\apache-maven-2.2.1)
  • Set the following user variables in your machine (just above the environmental variables). M2 : %M2_HOME%\bin
  • PATH : %PATH%;%JAVA_HOME%\bin;%M2%
Step 4: To check whether the installation was successful, in command prompt type “mvn --version” if it displays the version information then the maven installation is successfully installed in your machine. But if it says it can not identify the command mvn then there is a problem in the installation.