implementing mobile ip in glomosim 2.0 sungwook lee eric lin tutor : s. kyle bae winter01 cs215

21
Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Post on 20-Dec-2015

214 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Implementing Mobile IP in Glomosim 2.0

Sungwook LeeEric Lin

Tutor : S. Kyle Bae

Winter01 CS215

Page 2: 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

Page 3: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

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

Page 4: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

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

Page 5: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Cellular Network Topology

Page 6: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Simple Handoff

time

Advt fromNew Agent

Advt fromCurrent Agent

reset reset Start handoff

Handoffthreshold

Page 7: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Simple Handoff Example

Page 8: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Implementing Mobile IP• Add Mobile IP sublayer

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 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

Page 9: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Implementing Mobile IP (Cont.)

MH AT HOME

MHINIT

MH AWAY

MH TXMITTING

MH IDLE

MH TXMITTING

MH IDLE

MHIN HANDOFF

Page 10: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

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)

Page 11: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

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

Page 12: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Simulation Scenarios

Mobility 20 FTPs 20 TELNETs 20 CBRs

0 m/s 3 run 3 run 3 run

5 m/s 3 run 3 run 3 run

10 m/s 3 run 3 run 3 run

15 m/s 3 run 3 run 3 run

20 m/s 3 run 3 run 3 run

25 m/s 3 run 3 run 3 run

30 m/s 3 run 3 run 3 run

Page 13: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Simulation Topology

Page 14: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Simulation Snapshot

Page 15: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Simulation Result : Handoff vs Mobility

Page 16: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Simulation Result : Packet drop vs Mobility

Page 17: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Simulation Result : Encapsulated packet vs Mobility

Page 18: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Simulation Result : Decapsulated packet vs Mobility

Page 19: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Simulation Result : Tunneled packet vs Mobility

Page 20: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

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

Page 21: Implementing Mobile IP in Glomosim 2.0 Sungwook Lee Eric Lin Tutor : S. Kyle Bae Winter01 CS215

Acknowledgement

• S. Kyle Bae

• Yunjung Yi