Skip to main content
  • Products
  • Evaluate our Software
  • Downloads
  • Free Utilities
  • Purchase
  • Support
  • About Us
  • Blog
  • Forum
  • Search
    • Contact Us
    • Forum
    • Wiki
    • Web Shop
    • Newsletter
    • RSS
  •   Jobs
  •   Videos
  •   Blog
  •   Sustainability
  • emNet
  • SNMPv1/SNMPv2c
  • Technology
  • Add-Ons
  • Tools
SEGGER - emNet Ethernet Stack

emNet Add-Ons – Add SNMP Agent Functionality to the Stack

The emNet SNMP agent is an optional extension which adds SNMP agent functionality to the stack. It combines a maximum of performance with a small memory footprint.

  • Low memory footprint.
  • Only few SNMP knowledge required.
  • Easy MIB tree setup.
  • Supports SNMPv1 and SNMPv2c.
  • Supports SNMPv1 & SNMPv2 TRAP messages.
  • Supports SNMPv2 INFORM messages.
  • Support for SNMPv3 User-based Security Model (USM) available.
  • MIB-II support (System and Interfaces branch) for emNet out of the box.
  • Easy to use API for all typical SNMP types (Unsigned32, Counter32, ...).
  • Independent of the TCP/IP stack: any stack with sockets can be used.
  • Can even be used without sockets e.g. with zero-copy API.
  • Demo with custom sample MIB with sockets or zero-copy API included.
  • Project for executable on PC for Microsoft Visual Studio included.
  1. 1.SNMP Backgrounds
  2. 2.Requirements
  3. 3.Resource Usage
    1. 3.1.Configuration used:
  4. 4.Relevant parts

The SNMP agent allows an embedded system to handle SNMP requests from an SNMP manager and sending TRAP and INFORM messages to managers. It comes with all features typically required by embedded systems: Maximum flexibility, easily portable and low RAM usage. RAM usage has been kept to a minimum by smart buffer handling.

SNMP Backgrounds

The Simple Network Management Protocol is a standard protocol to manage IP based devices in a network. Typical usage is to monitor counters and status in network switches and other network equipment but can also be used for configuration read/write operations.

The development of SNMP is coordinated by the IETF (Internet Engineering Task Force) with the widely used SNMPv2c inspired from several other sources. The current protocol version supported by the emNet SNMP agent is v1 and v2c. The latest protocol version is v3.

Application layerApplication layer protocol:
SNMP agent
Transport layerTranport layer protocol:
UDP
Network layerNetwork layer protocol:
IP
Link layerLink layer protocol:
Ethernet (IEEE 802.3), ...

The SNMP agent is the part that is implemented directly inside a device to fulfill requests like status information and configuration of the device.

Requirements

TCP/IP Stack

The emNet SNMP agent requires a UDP/IP stack. It is optimized for emNet, but any RFC-compliant UDP/IP stack can be used. The shipment includes a Win32 simulation, which uses the standard Winsock API and an implementation which uses the socket API of emNet as well as an implementation which uses the zero-copy API of emNet.

IANA Private Enterprise Number (PEN)

For implementing SNMP in your own product you need to acquire a Private Enterprise Number (PEN) from the IANA. A PEN can be requested free of charge at pen.iana.org/pen/app.

The PEN used in the samples (dec. 46410) is the PEN registered for SEGGER Microcontroller GmbH & Co. KG. This needs to be be changed to your own PEN in your product and the content of the MIB is subject to change in the future.

Resource Usage

The ROM usage depends on the compiler options, the compiler version and the used CPU. The memory requirements of the SNMP agent module presented in the tables below have been measured on a Cortex-M4 system. Details about the further configuration can be found in the sections of the specific example.

Configuration used:

#define IP_SNMP_AGENT_WORK_BUFFER  64

ROM usage on a Cortex-M4 System

The following resource usage has been measured on a Cortex-M4 system using the SEGGER compiler with size optimization.

Add-onROM
emNet SNMP AgentApproximately 6.2 KByte

RAM Usage

The following resource usage shows typical RAM requirements for an SNMPv2c Agent implementation.
Most of the RAM is consumed for building the MIB tree in the application which is not subject of this measurement as it depends upon the application itself.

Add-onRAM
emNet SNMP AgentApproximately 300 bytes

Relevant parts

The SNMP agent implements the relevant parts of the following Request For Comments (RFC).

RFC#Description
[RFC 2578]Direct Link: Structure of Management Information Version 2 (SMIv2)
[RFC 3416]Direct Link: Version 2 of the Protocol Operations for the Simple Network Management Protocol (SNMP)
[RFC 4181]Direct Link: Guidelines for Authors and Reviewers of MIB Documents

More Information

Purchase

  • Pricing

Technology

  • Drivers
  • FIND protocol
  • IPv6
  • Performance
  • Port Multiplication
  • Resource usage
  • Structure
  • Tasks & Interrupt Usage
  • Ethernet-APL

Add-Ons

  • CoAP Server/Client
  • Domain name resolution
  • NetBIOS
  • NTP Client
  • PPP/PPPoE
  • PTP OC Client
  • SMTP Client
  • SNMP Agent
  • SNTP Client
  • UPnP
  • WebSocket

Tools

  • embOS/IP Switch Board

About us

  • The Company
  • Partners
  • Job Offers
  • Media
  • Contact us

Support

  • Technical Support
  • Blog
  • Forum
  • Wiki

Downloads

  • Application Notes
  • Embedded Studio
  • embOS
  • emCompress
  • emCrypt
  • emFile
  • emLib
  • emLoad
  • emModbus
  • emNet
  • emPower
  • emSecure
  • emSSH
  • emSSL
  • emUSB-Device
  • emUSB-Host
  • emVNC
  • emWin
  • Flasher
  • Free Utilities
  • IoT
  • J-Link / J-Trace
  • Linux Studio
  • SystemView
  • CE / REACH

Social Media

Headquarters

SEGGER Microcontroller GmbH

Ecolab-Allee 5
40789 Monheim am Rhein, Germany
info@segger.com
Tel.: +49-2173-99312-0
Fax: +49-2173-99312-28

Locations

USA: SEGGER Microcontroller Systems LLC

Boston area
101 Suffolk Lane
Gardner, MA 01440, USA
us-east@segger.com
Tel.: +1-978-874-0299
Fax: +1-978-874-0599

Silicon Valley
Milpitas, CA 95035, USA
us-west@segger.com
Tel.: +1-408-767-4068

China: SEGGER Microcontroller China Co., Ltd.

Room 218, Block A, Dahongqiaoguoji
No. 133 Xiulian Road
Minhang District, Shanghai 201199, China
china@segger.com
Tel.: +86-133-619-907-60

ISO 9001 certified

ISO 9001

30+ years of experience

First-class embedded software tools since 1992
  • Imprint
  • Disclaimer
  • Privacy Policy

© 2023 SEGGER - All rights reserved.