[147277] in North American Network Operators' Group
Re: Writable SNMP
daemon@ATHENA.MIT.EDU (Leo Bicknell)
Tue Dec 6 15:14:38 2011
Date: Tue, 6 Dec 2011 12:13:38 -0800
From: Leo Bicknell <bicknell@ufp.org>
To: NANOG <nanog@nanog.org>
Mail-Followup-To: NANOG <nanog@nanog.org>
In-Reply-To: <CDEE94CC-4811-4B20-AC94-BD8E5C710F4F@puck.nether.net>
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org
--rwEMma7ioTxnRzrJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
In a message written on Tue, Dec 06, 2011 at 11:16:02AM -0500, Jared Mauch =
wrote:
> Anyone that has spent any quantity of time with ASN.1 generally would agr=
ee.
SNMP has two fatal flaws for large scale write based configuration.
ASN.1 was basically obsolete before it was written. It was designed
to be a compact data transfer format in the days of 56k lines, and
is nothing but annoying in practice. Hard to write, hard to debug,
hard to understand to save a little bandwidth which no longer
matters.
(Note, there is apparently an XML version of ASN.1 which may or may
not make things better, but I have never seen a single bit of gear
anywhere that implemented it.)
But then on top of ASN.1, the transaction model is all wrong. No
way to group writes together (e.g. commit a series of changes at
once). One RTT incurred for each write/read-back (for verification,
since it's UDP). If you try and configure a device with SNMP over
a 500ms link it might take longer than the lifespan of the gear! :)
Jared also makes a good point about the device not reading SNMP on
boot, it reads a text file, and being able to alter that directly
makes more sense.
Lastly, let's not forget that at most vendors SNMP seems to be a
low priority item. How many years was it after we had IPv6 BGP
before there was an IPv6 BGP MIB actually implemented?
I actually would submit SNMP was never the right tool for the job,
just the tool we had. Even today where it's most popular use is
to poll interfaces for statistics it would be easier on the device,
programmer, and operator to make one tcp connection, send a list
of things to poll, and get back a blob of text. I hesitate to say
XML + Restful, becuse I think it need not be that specific solution,
but that is a solution that meets the criteria. The only thing SNMP has
going for it at this point in time is inertia.
--=20
Leo Bicknell - bicknell@ufp.org - CCIE 3440
PGP keys at http://www.ufp.org/~bicknell/
--rwEMma7ioTxnRzrJ
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)
iQIVAwUBTt53crN3O8aJIdTMAQJlUBAAq1LJd7yM8huPCdamvySWZyDAGOjTHY8P
ZhhGyW0YsloUyjEH55TjDw67Qx9tpkX5/TZCJr7nQGRcnRQJqMgis3ZDz5ed76Ze
kP2dt38/fJBsf2GMtiaTo7NV10Enlj6T87p+FSP3yV1OTUK+cCCznVaZWJZpppF1
KbgngL5yTp+CatwkV7rSfYGGgX1PDXf1Q0B+vaCm4cH4HDCRC9FewBJZLjGJ7+WE
heTpELHBze11XyCt5akt2C6e6TPALQ83tn0pG2scnSbxe01M4xhtxbEZqECyQJC+
nn44o+ha5t6KcAk+5/HcB9QXj2fkVdVKUFUpyCnIVfwK91IAPhbFal1l8uNGgN61
bTsJ8fi5FN98Mcojxq/B22rYatQ7Ddnk+qsn4A6z8i7wtqD7KZH0Mo8gj61KD1HG
++viXfMLaFqB3gqD/N0KqTpd1qzBSSZf1dXfavSrBC5c/oJDqtzy4J0XsecOs2VP
PIzsvof9NrZUh0pHM8YAX0MM2AvowrWn6XT86cNOP3aIE+yAQ3SnTVjUaOLuQ+yu
T4PRtiwwWf5Lx5unOJqP835eCaulXO2H2MjRw/rqNfCvFR2UcIgjKEEllxNayp9L
PLLXvuyEzDgLkE2ZZ6undgkseTJMpQMUeYxba4IkO5KTaQVzNbjSzAMAz/NnFf43
1JvY0XobyHo=
=9ZFB
-----END PGP SIGNATURE-----
--rwEMma7ioTxnRzrJ--