210 likes | 383 Views
Implementing Mobile IP in Glomosim 2.0. Sungwook Lee Eric Lin Tutor : S. Kyle Bae. Winter01 CS215. Goals. Implementing Mobile IP in Glomosim 2.0 Mobile IP in a hybrid network with wired and wireless, e.g cellular network Supporting Handoff Hybrid model between Mobile IP and Cellular IP.
E N D
Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215
Goals • Implementing Mobile IP in Glomosim 2.0 • Mobile IP in a hybrid network with wired and wireless, e.g cellular network • Supporting Handoff • Hybrid model between Mobile IP and Cellular IP
Overview of Mobile IP • Proposed by Charles Perkins in 1996 • Mobile IP provides a mobile host (MH) with connectivity to Internet with the same IP address while moving around • Home Agent (HA) handles MH registration and packet forwarding for it • Foreign Agent (FA) provides a care-of-address for its visiting MHs and decapsulates packets and forward them to its vistors
Mobile IP • Registration • MH registers with FA • FA informs MH’s HA about MH’s registration • HA sends confirmation to FA • HA starts interception and tunneling of packets for MH • Interception and tunneling • HA looks up a table containing currently away MHs • HA encapsulates packet within another IP packet • Encapsulated packets are tunneled to FA and decapsulated
Simple Handoff Advt from Current Agent time Handoff threshold Advt from New Agent reset reset Start handoff
Implementing Mobile IP typedef struct { unsigned int agent:1, mobileHost:1, reserved:2, state:8, handoffThreshold:8, maxMobileHost:16; HomeAgentInfo homeAgentInfo; ForeignAgentInfo foreignAgentInfo; MobileHostInfo mobileHostInfo; NetworkMobileIpStatsType stats; } GlomoMobileIp; • Add Mobile IP sublayer • Add Mobile IP protocol // include/nwcommon.h : onf of protocol numbers for IP // Ref : rfc 1700 #define IPPROTO_MOBILE_IP_CONTROL 4 #define IPPROTO_MOBILE_IP_IPIP 94
Implementing Mobile IP (Cont.) MH IDLE MH IDLE MH TXMITTING MH TXMITTING MH AWAY MH AT HOME MH IN HANDOFF MH INIT
Simulation Parameters • 22 Base stations • 44 Mobile hosts • 2000 m x 2000 m • Simulation time : 10 min • Traffic : 20 CBRs, 20 TELNETs or 20 FTPs • Random mobile host movement using mobility.trace • Moving speed : 0, 5, 10, 15, 20, 25, 30(m/s)
Mobile IP Parameters • Mobile IP Agent broadcasts advertisement every 300 ms • Routing table in agent is updated if the agent can’t hear mobile host during 30 second
Conclusion • Mobile IP implemented in Glomosim 2.0 • Handoff included in Mobile IP for the Cellular network environments • Packet drop rates and handoff counts are measured • Future work • Relation of advertisement interval, handoff scheme, mobility model(mobile host speed) and routing table update interval • Extend to Cellular IP
Acknowledgement • S. Kyle Bae • Yunjung Yi