Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame^] | 1 | <div align="center"> |
| 2 | |
| 3 | [<img alt height="65" src="_static/ndn-logo.svg"/>](https://named-data.net/) |
| 4 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 5 | # NDN Packet Format Specification |
Alexander Afanasyev | 26f0ff8 | 2013-11-21 23:22:41 +0000 | [diff] [blame] | 6 | |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame^] | 7 | </div> |
Alexander Afanasyev | 26f0ff8 | 2013-11-21 23:22:41 +0000 | [diff] [blame] | 8 | |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame^] | 9 | This repository contains the base packet format specification of the Named Data |
| 10 | Networking (NDN) protocol. |
Alexander Afanasyev | 1f53de4 | 2013-12-01 19:25:55 +0000 | [diff] [blame] | 11 | |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame^] | 12 | An HTML version of the specification can be viewed online at |
| 13 | <https://docs.named-data.net/NDN-packet-spec/>. |
| 14 | |
| 15 | ## Compiling from source |
| 16 | |
| 17 | ### Prerequisites |
| 18 | |
| 19 | To "compile" the specification in HTML format, you must first install the |
| 20 | [Sphinx](https://www.sphinx-doc.org/en/master/) documentation generator and a |
| 21 | few other dependencies. To do so, first make sure that the following packages |
| 22 | are installed and up to date: |
| 23 | |
| 24 | * make |
| 25 | * python 3.8 or later |
| 26 | * pip |
| 27 | |
| 28 | For instance, on Ubuntu Linux you can use the following commands: |
Alexander Afanasyev | 26f0ff8 | 2013-11-21 23:22:41 +0000 | [diff] [blame] | 29 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 30 | sudo apt install make python3-pip |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame^] | 31 | python3 -m pip install -U pip |
Alexander Afanasyev | 26f0ff8 | 2013-11-21 23:22:41 +0000 | [diff] [blame] | 32 | |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame^] | 33 | On other operating systems, you can either use your preferred package manager or |
| 34 | follow [pip's installation instructions](https://pip.pypa.io/en/stable/installation/). |
Alexander Afanasyev | 1f53de4 | 2013-12-01 19:25:55 +0000 | [diff] [blame] | 35 | |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame^] | 36 | Finally, run: |
| 37 | |
| 38 | python3 -m pip install -r requirements.txt |
| 39 | |
| 40 | to install the recommended version of Sphinx and its dependencies. |
| 41 | |
| 42 | ### Compilation |
Alexander Afanasyev | 26f0ff8 | 2013-11-21 23:22:41 +0000 | [diff] [blame] | 43 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 44 | Just type: |
Alexander Afanasyev | 26f0ff8 | 2013-11-21 23:22:41 +0000 | [diff] [blame] | 45 | |
| 46 | make html |
| 47 | |
Davide Pesavento | f2eb359 | 2021-12-02 19:24:22 -0500 | [diff] [blame] | 48 | And a set of HTML pages will be generated inside `_build/html`. |
Alexander Afanasyev | 26f0ff8 | 2013-11-21 23:22:41 +0000 | [diff] [blame] | 49 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 50 | You can also type: |
Alexander Afanasyev | 26f0ff8 | 2013-11-21 23:22:41 +0000 | [diff] [blame] | 51 | |
| 52 | make latexpdf |
| 53 | |
Davide Pesavento | 777ae61 | 2023-01-14 21:09:00 -0500 | [diff] [blame^] | 54 | Sphinx will generate a `.tex` file and will try to compile it into a PDF document |
| 55 | using `latexmk` and `pdflatex` (which must be installed). If successful, the final |
| 56 | `.pdf` file can be found in `_build/latex`. |
Alexander Afanasyev | 26f0ff8 | 2013-11-21 23:22:41 +0000 | [diff] [blame] | 57 | |
Davide Pesavento | 04af5f2 | 2020-06-21 22:02:47 -0400 | [diff] [blame] | 58 | For further options, type `make help`. |