Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf ·...

27
Name: Alex Song Supervisor: Dr Mark Schulz Web Page: http://student.uq.edu.au/~s369677/ Ad Hoc Multihop Wireless Networking for Mobile Devices

Transcript of Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf ·...

Page 1: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Name: Alex SongSupervisor: Dr Mark SchulzWeb Page: http://student.uq.edu.au/~s369677/

Ad Hoc Multihop Wireless Networkingfor Mobile Devices

Page 2: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Seminar Outline

Describe the thesis and the need for it.

Compare the features of current commercial products and my thesis.

Technical details of my thesis.

Current status of the thesis project.

Page 3: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Thesis description

To implement an ad hoc multihop routing protocol for IPv4 which will allow a dynamic network of mobile and handheld devices to be self-organizing and self-configuring.

Page 4: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Thesis description

Page 5: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Applications for thesis project

Search and rescue missions.

Conferences and meetings.

Any application where there is no pre-existing networking infrastructure.

Can also form a wireless extension to existing networks.

Page 6: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Commercial Products

IEEE 802.11 – Wireless LAN

Bluetooth (version 1.1)

Both technologies can only single hop in ad hoc mode.

Page 7: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Piconet II features

Provide multihop capabilities to existing hardware and software platforms eg. Linux/x86 and Linux/arm/iPAQ.

Compatibility with standard IP networks.

Transparent to existing TCP/IP applications.

Page 8: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

TCP/IP Network Model

Application (Telnet, FTP, DNS)

Host-to-network (802.11, Bluetooth)

Internet (IP)

Transport (TCP, UDP)

Page 9: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Routing Protocol

Dynamic Source Routing Protocol.(DSR)

Internet draft: draft-ietf-manet-dsr-05.txt

Current draft does not support packet fragmentation.

Plan to extend draft and add support for packet fragmentation.

Page 10: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Why Dynamic Source Routing?

Not a complex protocol.

Low packet overhead.

Routes efficiently.

Does not require promiscuous mode and supports uni-directional links.

Page 11: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Dynamic Source Routing

Route Discovery.

Packet Forwarding.

Route Maintenance.

Page 12: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Route Discovery

id=2CDE, id=2

A

B

C

D

E

F

id=2 B, id=2

C, id=2

CD, id=2

Page 13: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Packet Forwarding

CDE, n=3

CDE, n=0

A

B

C

D

E

F

CDE, n=2

CDE, n=1

Page 14: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Route Maintenance

CDE, n=3

A

B

C

D

E

F

CDE, n=2

Page 15: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

DSR on IPv4

IP options field (40 bytes) too small.

DSR protocol uses a special header which can be included in any IP packet.

The DSR header format is similar to the options format of IPv6.

Page 16: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

DSR Header Format

IP Header Transport Layer Data

DSR OptionsDSR HeaderIP Header Transport Layer Data

Standard IP packet

Standard IP packet with DSR options

Page 17: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

DSR Header Format

Version IHL Type of Service Total Length

IdentificationDF

MF

Fragment Offset

Time To Live Protocol Header Checksum

Source Address

Destination Address

IPv4 Header

DSR Header

Next Header Reserved Payload Length

Page 18: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

DSR Options

Route Request Option.

Route Reply Option.

Route Error Option.

Acknowledgement Request Option.

Acknowledgement Reply Option.

Source Route Option.

Pad1 and PadN Options.

Page 19: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

DSR Options Format

Route Request Option

Option Type Opt Data Len Identification

Target Address

Address[1]

...

Address[n]

Page 20: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Why Implement on Linux ?

Open Source- access to existing TCP/IP code.

Available on multiple platforms- x86, arm, sparc, powerpc etc.

Allows kernel code to be written as modules, which can be inserted and removed at anytime.

Page 21: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Linux TCP/IP Network Layers

BSD Sockets

INET Sockets

TCP UDP

IP

Ethernet, PPP, 802.11 Bluetooth.

ARP

User Space

Kernel Space

Network Applications

Socket Interface

Protocol Layers

Network Devices

Page 22: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Linux Netfilter

A framework that allows kernel modules to observe and modify packets as they pass through the IP stack.

New architecture, available in Linux 2.4

Used for packet filtering, packet mangling and network address translation (NAT).

Page 23: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Netfilter Architecture

LOCAL_OUT

PRE_ROUTE FORWARD

LOCAL_IN

POST_ROUTEStatic Routing

Static Routing

- 5 Hooks defined for IPv4.- functions register to listen at specific hooks.- functions are called in order of priority when a packet arrives at a hook.

Page 24: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Current Progress

Written a kernel module.

Packet forwarding implemented with static routes.

Can forward ICMP and all transport protocols like TCP and UDP.

The DSR network can access standard IP networks via a PC gateway running NAT.

Page 25: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Current Progress

PC

iPAQ1

iPAQ2DSR Network

CSEE IP Network

NAT Gateway

Page 26: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Features to be implemented

Route discovery.

Route maintenance.

Packet fragmentation.

Performance and packet statistics.

Page 27: Ad Hoc Multihop Wireless Networking for Mobile Devicespiconet.sourceforge.net/thesis/seminar.pdf · Seminar Outline Describe the thesis and the need for it. Compare the features of

Any Questions ?