Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2017-07-13,master
commit 6e2bca49b836ecb6cadf5189a13852b6b690e7e0 Author: Spyros Gasteratos spyrosgaster@gmail.com Date: Fri Apr 13 17:14:34 2012 +0000
doc: batman-adv/TVLV
6e2bca49b836ecb6cadf5189a13852b6b690e7e0 batman-adv/TVLV.textile | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+)
diff --git a/batman-adv/TVLV.textile b/batman-adv/TVLV.textile new file mode 100644 index 00000000..efb573f9 --- /dev/null +++ b/batman-adv/TVLV.textile @@ -0,0 +1,41 @@ +h1. BackwardsCompatibility + +Everything on this page is a suggestion and therefore open to discussion and change + +h2. Intro + +Right now batman does not have any real backwards compatibility. +We could implement real backwards compatibility through the use of IEs(information elements) and more specifically TLVs(type/length/value) elements. + +There are many ways to do this below is one of them(with some alternatives): +First the closest thing I found in wireless information elements is the wifi ones + +For everyone who is not aware of the basics here is a link with a brief and general/abstract description + +[[http://etutorials.org/Networking/802.11+security.+wi-fi+protected+access+and...]] + +h2. Main +There are many ways to encode such an element.Each providing different pros/cons and all of which are used in various wireless signal applications. + +First one is BER: +This wiki entry describes it pretty godd for a quick overview (and the accompanying paper more thoroughly) + [[http://en.wikipedia.org/wiki/Basic_Encoding_Rules]] + +Second is DER:[[http://en.wikipedia.org/wiki/Distinguished_Encoding_Rules]] + it is more restrictive than the first one + +Third PER:[[http://en.wikipedia.org/wiki/Packed_Encoding_Rules]] + defines some more fields + +Finally there is Cer:[[http://en.wikipedia.org/wiki/Canonical_Encoding_Rules]] + +[[http://en.wikipedia.org/wiki/ASN.1]] + +For the record there is already a tlv message parser +[[http://tlve.sourceforge.net/]] + (the following is an example of ber parsing) + +[[http://tlve.sourceforge.net/examples/ber.rc]] + + We can use either one of the above to encode the tlvs or create our + own but I think one of the above is more than adequate \ No newline at end of file