Snmp string limits?

While I learn about SNMP, I have some questions about SNMP string operations:

  • What is the maximum row size?
  • If we have permission to read a string, how can you determine the size?
  • A string can, in principle, accept all types of characters (e.g., #$%^&etc.). How can they be limited?
+5
source share
4 answers

There are no string concepts in SNMP. OCTET STRING is not a real string (compared to high-level programming languages ​​such as Java and C #), since this data structure has nowhere to store coding information. Well, that is really terrible.

SNMP, TCP/IP . SNMP RFC .

OCTET STRING , . , SNMP/. "" , SNMP. RFC 3416 4.2.1. RFC 1157, 4.1.5.

+4

OCTET STRING , , .

"" OCTET STRING, . , IpAddress OCTET STRING, . MIB. RFC1155-SMI IpAddress.

, , MIB, , MIB.

, OCTET STRING, , . SnmpAdminString ( ) DisplayString ( , ASCII, , - ). 255 , . , , , -, SNMP .

+3

OCTET STRING . , SNMP UDP . , MTU = 1500. .

-2

The only limitation is that SNMP uses UDP as the transport protocol - I agree. However, the MTU for UDP is 64k. See https://en.wikipedia.org/wiki/User_Datagram_Protocol . MTU = 1500 for standard Ethernet packets. So in this case, the maximum size is 64k.

-2
source

All Articles