Mobile IPv6 has become the key enabling technology for mobile data and multimedia services and devices worldwide (i.e., cellular systems, VoIP handovers over LAN, multi-access network handovers, location privacy, enterprise mobile networking, etc.).
This book covers the IPv6 host mobility protocol known as "mobile IPv6" and begins with a basic description of mobile IPv6 and then details protocol specifications and data structures as well as actual implementation. A sample configuration for a real Mobile IPv6 operation is provided at the end of the book. Source code will be downloadable form a companion website.
Mobile IPv6: Protocols and Implementation
This page intentionally left blank
Mobile IPv6: Protocols and Implementation
Qing Li Blue Coat Systems, Inc.
Tatuya Jinmei Toshiba Corporation
Keiichi Shima Internet Initiative Japan, Inc.
AMSTERDAM • BOSTON • HEIDELBERG • LONDON NEW YORK • OXFORD • PARIS • SAN DIEGO SAN FRANCISCO • SINGAPORE • SYDNEY • TOKYO Morgan Kaufmann Publishers is an imprint of Elsevier
Morgan Kaufmann Publishers is an imprint of Elsevier 30 Corporate Drive, Suite 400, Burlington, MA 01803, USA This book is printed on acid-free paper. Copyright © 2009, Elsevier Inc. All rights reserved. Chapters 2–16 were originally published in IPv6 Advanced Protocols Implementation, by Qing Li, Tatuya Jinmei, and Keiichi Shima. No part of this publication may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopy, recording, or any information storage and retrieval system, without permission in writing from the publisher. Permissions may be sought directly from Elsevier’s Science & Technology Rights Department in Oxford, UK: phone: (+44) 1865 843830, fax: (+44) 1865 853333, E-mail:
[email protected] You may also complete your request on-line via the Elsevier homepage (http://elsevier.com), by selecting “Customer Support” and then “Obtaining Permissions.” Library of Congress Cataloging-in-Publication Data Application Submitted British Library Cataloguing in Publication Data A catalogue record for this book is available from the British Library ISBN 13: 978-0-12-375075-4 For information on all Morgan Kaufmann publications, visit our Web site at www.elsevierdirect.com Typeset by: diacriTech, India Printed in the United States of America 09 10 9 8 7 6 5 4 3 2 1
Contents
About the Authors xi
1
Introduction 1 1.1 1.2 1.3 1.4
2
5
Mobile IPv6 Overview 17 2.1 2.2
3
History of IP Mobility 2 Benefit of IP Mobility 3 Supplemental Technologies of Mobile IPv6 Coverage of this Book 16
Types of Nodes 18 Basic Operation of Mobile IPv6
19
Header Extension 25 3.1 3.2 3.3 3.4 3.5 3.6 3.7
Alignment Requirements 26 Home Address Option 26 Type 2 Routing Header 27 Mobility Header 28 Mobility Options 36 Neighbor Discovery Messages ICMPv6 Messages 42
39
v
vi
Contents
4
Procedure of Mobile IPv6 47 4.1 4.2 4.3 4.4 4.5
5
Protocol Constants and Variables 47 Home Registration 47 Bidirectional Tunneling 51 Intercepting Packets for a Mobile Node Returning Home 54
54
Route Optimization 57 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9
Return Routability 58 Sending Initial Messages 58 Responding to Initial Messages 59