LEFT | RIGHT |
(no file at all) | |
| 1 DHCP implementation in ns-3 |
| 2 --------------------------- |
| 3 |
| 4 Model Description |
| 5 ***************** |
| 6 |
| 7 This section documents the implementation details of Dynamic Host Configuration
Protocol (DHCP) |
| 8 |
| 9 The source code for DHCP is located in ``src/internet-apps/model`` and consists
of the· |
| 10 following 6 files: |
| 11 - dhcp-server.h, |
| 12 - dhcp-server.cc, |
| 13 - dhcp-client.h, |
| 14 - dhcp-client.cc, |
| 15 - dhcp-header.h and |
| 16 - dhcp-header.cc |
| 17 |
| 18 Helpers |
| 19 ******* |
| 20 |
| 21 The following two files have been added to ``src/internet-apps/helper`` for DHCP
:· |
| 22 - dhcp-helper.h and· |
| 23 - dhcp-helper.cc |
| 24 |
| 25 Tests |
| 26 ***** |
| 27 The tests for DHCP can be found at ``src/internet-apps/test/dhcp-test.cc` |
| 28 |
| 29 Examples |
| 30 ******** |
| 31 The examples for DHCP can be found at ``src/internet-apps/examples/dhcp-example.
cc` |
| 32 |
| 33 |
| 34 Scope and Limitations |
| 35 ********************* |
| 36 |
| 37 The server should be provided with a network address, mask and a range of addres
s |
| 38 for the pool. One client application can be installed on only one netdevice in a |
| 39 node, and can configure address for only that netdevice. |
| 40 |
| 41 The following five basic DHCP messages are supported:· |
| 42 |
| 43 - DHCP DISCOVER, |
| 44 - DHCP OFFER, |
| 45 - DHCP REQUEST, |
| 46 - DHCP ACK and |
| 47 - DHCP NACK |
| 48 |
| 49 Also, the following eight options of BootP are supported: |
| 50 - 1 (Mask), |
| 51 - 50 (Requested Address), |
| 52 - 51 (Address Lease Time), |
| 53 - 53 (DHCP message type), |
| 54 - 54 (DHCP server identifier),· |
| 55 - 58 (Address renew time), |
| 56 - 59 (Address rebind time) and |
| 57 - 255 (end) |
| 58 |
| 59 The client identifier option (61) can be implemented in near future. |
| 60 |
| 61 In the current implementation, a DHCP client can obtain IPv4 address dynamically······ |
| 62 from the DHCP server, and can renew it within a lease time period. |
| 63 |
| 64 Multiple DHCP servers can be configured, but the implementation does not support |
| 65 the use of a DHCP Relay yet. |
| 66 |
LEFT | RIGHT |