How to tag Network addresses (IPv4 or IPv6 or MAC) in CBOR ? IPv4 Address is stored as 4 bytes. IPv6 Address is stored as 16 bytes. MAC Address is stored as 6 bytes. Tag value of 260 is used to mark that the following byte string data is either a IPv4 address or IPv6 address or MAC address (depending on the length). The addresses are stored in binary values in the network byte order. Examples: d9 0104 44 c00a0a01 --> IPv4 address 192.10.10.1 d9 0104 46 0123456789ab --> MAC address 01:23:45:67:89:ab d9 0104 50 20010db885a3000000008a2e03707334 --> IPv6 address 2001:db8:85a3::8a2e:370:7334