How to Apply MobileIP protocol in NS2


Mobile IP is the communication protocol that provides the seamless service to the mobile users with their mobility nature. In file MIP.tcl, mobile user gets the service from home agent and after the user mobility to the another region, user gets the service from the foreign agent through tunneling.

#Filename: MIP.tcl

$ns node-config – mobileIP ON
set temp {1.0.0 2.0.0}
set HA [$ns node [lindex $temp 0]]
set FA [$ns node [lindex $temp 1]]