[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[manet] Encoding an IPv6 Mobile Network Prefix with PacketBB
Dear MANETers. I'm trying to find out how to encode an IPv6 Mobile
Network Prefix using PacketBB encoding rules. This is very important
step in trying to use a MANET routing protocol in the MANEMO topologies,
because eventually Mobile Network Prefixes have to be exchanged not only
by the NEMO protocol but potentially by the MANET protocol as well.
Reading the PacketBB spec, and with some helpful clarifications, I came
up with the datagram I present first. I would need help to do the
following:
-first please confirm the encoding is correct. Are fields at right
places, are the field lengths correct, have I missed any field, have I
added too many fields, have I used padding correctly?
-second please help me fill the values for the '?' marks.
-finally, please compare the encoding with another encoding of the IPv6
Mobile Network Prefix presented at the end of the message. I think the
latter uses less bytes to encode. Can I use the latter encoding but
expressed with PAcketBB terms?
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| <num-addr> |<addr-semantic>| <tlv-length> |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| <tlv-type> |<tlv-semantics>| <length> | Pad '0' |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+- -+
| |
+- IPv6 Address -+
| |
+- -+
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| <tlv-type2> |<tlv-semantics2| <length2> | PrefixLen |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
num-addr: '1'
addr-semantics:
bit 0 (nohead): '1'
bit 1 (notail): '0'
bit 2 (zerotail): '0'
bits 3-7: '0'
tlv-length: ?
tlv-type: ?
tlv-semantics:
bit 0 (extended): '0'
bit 1 (novalue): '0'
bit 2 (noindex): '1'
bit 3 (singleindex): '0'
bit 4 (multivalue): '?'
bits 5-7: '0'
length: 0x10 ('16' decimal)
IPv6 address: the IPv6 address that is the Mobile Network Prefix.
tlv-type2: '0'
tlv-semantics2: '?'
length2: '?'
PrefixLen: Eight-bit unsigned integer indicating the prefix length
of the IPv6 Address.
Other (possibly simpler?) possible way of encoding the IPv6 Mobile
Network Prefix, but not with PacketBB:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Length | Reserved | Prefix Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+ +
| |
+ Mobile Network Prefix +
| |
+ +
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Thanks,
Alex
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
manet mailing list
manet at ietf.org
https://www1.ietf.org/mailman/listinfo/manet