From: Marek Lindner <lindner_marek@yahoo.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: "Martin Hundebøll" <martin@hundeboll.net>
Subject: Re: [B.A.T.M.A.N.] [PATCHv4 1/6] batman-adv: Add the initial code for network coding.
Date: Tue, 29 Jan 2013 23:33:23 +0800 [thread overview]
Message-ID: <201301292333.23541.lindner_marek@yahoo.de> (raw)
In-Reply-To: <1359108763-31846-2-git-send-email-martin@hundeboll.net>
On Friday, January 25, 2013 18:12:38 Martin Hundebøll wrote:
> Network coding exploits the 802.11 shared medium to allow multiple
> packets to be sent in a single transmission. In brief, a relay can XOR
> two packets, and send the coded packet to two destinations. The
> receivers can decode one of the original packets by XOR'ing the coded
> packet with the other original packet. This will lead to increased
> throughput in topologies where two packets cross one relay.
>
> In a simple topology with three nodes, it takes four transmissions
> without network coding to get one packet from Node A to Node B and one
> from Node B to Node A:
>
> 1. Node A ---- p1 ---> Node R Node B
> 2. Node A Node R <--- p2 ---- Node B
> 3. Node A <--- p2 ---- Node R Node B
> 4. Node A Node R ---- p1 ---> Node B
>
> With network coding, the relay only needs one transmission, which saves
> us one slot of valuable airtime:
>
> 1. Node A ---- p1 ---> Node R Node B
> 2. Node A Node R <--- p2 ---- Node B
> 3. Node A <- p1 x p2 - Node R - p1 x p2 -> Node B
>
> The same principle holds for a topology including five nodes. Here the
> packets from Node A and Node B are overheard by Node C and Node D,
> respectively. This allows Node R to send a network coded packet to save
> one transmission:
>
> Node A Node B
>
> | \ / |
> | p1 p2 |
> | \ / |
> p1 > Node R < p2
> | |
> | / \ |
> | p1 x p2 p1 x p2 |
> v / \ v
> / \
> Node C < > Node D
>
> More information is available on the open-mesh.org wiki[1].
>
> This patch adds the initial code to support network coding in
> batman-adv. It sets up a worker thread to do house keeping and adds a
> sysfs file to enable/disable network coding. The feature is disabled by
> default, as it requires a wifi-driver with working promiscuous mode, and
> also because it adds a small delay at each hop.
>
> [1] http://www.open-mesh.org/projects/batman-adv/wiki/Catwoman
>
> Signed-off-by: Martin Hundebøll <martin@hundeboll.net>
> ---
> v3:
> * Changed and updated copyright years
>
> Makefile | 2 ++
> Makefile.kbuild | 1 +
> gen-compat-autoconf.sh | 1 +
> main.c | 6 ++++
> main.h | 4 ++-
> network-coding.c | 81
> ++++++++++++++++++++++++++++++++++++++++++++++++++
> network-coding.h | 48 ++++++++++++++++++++++++++++++
> soft-interface.c | 3 ++
> sysfs-class-net-mesh | 8 +++++
> sysfs.c | 6 ++++
> types.h | 14 +++++++++
> 11 files changed, 173 insertions(+), 1 deletion(-)
Applied in revision 2f92809.
Thanks,
Marek
next prev parent reply other threads:[~2013-01-29 15:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-25 10:12 [B.A.T.M.A.N.] [PATCHv4 0/6] CATWOMAN: Network coding in batman-adv Martin Hundebøll
2013-01-25 10:12 ` [B.A.T.M.A.N.] [PATCHv4 1/6] batman-adv: Add the initial code for network coding Martin Hundebøll
2013-01-29 15:33 ` Marek Lindner [this message]
2013-01-25 10:12 ` [B.A.T.M.A.N.] [PATCHv4 2/6] batman-adv: Detect coding nodes and remove these after timeout Martin Hundebøll
2013-01-29 15:33 ` Marek Lindner
2013-01-25 10:12 ` [B.A.T.M.A.N.] [PATCHv4 3/6] batman-adv: Buffer unicast packets before forward Martin Hundebøll
2013-01-29 15:35 ` Marek Lindner
2013-01-25 10:12 ` [B.A.T.M.A.N.] [PATCHv4 4/6] batman-adv: Code and transmit packets if possible Martin Hundebøll
2013-01-29 15:35 ` Marek Lindner
2013-01-25 10:12 ` [B.A.T.M.A.N.] [PATCHv4 5/6] batman-adv: Save overheard and tx packets for decoding Martin Hundebøll
2013-01-29 15:36 ` Marek Lindner
2013-01-25 10:12 ` [B.A.T.M.A.N.] [PATCHv4 6/6] batman-adv: Receive coded packets and decode them Martin Hundebøll
2013-01-29 15:36 ` Marek Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201301292333.23541.lindner_marek@yahoo.de \
--to=lindner_marek@yahoo.de \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=martin@hundeboll.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox