• 主页
  • 产品
    • WebNMS开发平台
    • Simulation Toolkit
    • Java SNMP API
    • Java SNMP Agent
    • SNMP Utilities
    • C SNMP Agent
    • CLI API
    • .NET SNMP API
    • TL1 API
    • MySQL Agent
    • Agent Tester
    • SNMP Adaptor for JMX
  • 解决方案
    • EMS解决方案
    • NMS解决方案
    • 云设施管理
    • 军事应用
    • MPLS监控
    • 基站监控
    • 应用监控
    • 日志监控
    • 中介解决方案
  • 支持与文档
  • 演示与下载
    • 请求演示
    • 下载产品
  • 开发者论坛
  • 关于我们
  • 联系我们
Home > Simulation Toolkit 7 with SNMP, IOS, TFTP, Telnet support - SNMP Agent/Network Simulation Features > SNMP PDU Customization

SNMP PDU Customization

The SNMP PDU Scrambler is supported in SNMP Agent Simulator and Network Simulator to customize the request/response SNMP PDU by exposing it to the user for customization. For example, a request SNMP PDU can be customized to validate that it contains multiple varbinds before the agent performs SNMP operation in OIDs. The response SNMP PDU can be customized, for example, to send garbled/invalid responses to test the SNMP managers robustness in the event of receiving bad packets. The level of customization varies depending on your requirement.

Common test scenarios that can be setup using the SNMP PDU Scrambler

Some of the common test scenarios that can be setup using the PDU scrambler functionality is given below:

Customize the SNMP PDU to send garbled/error responses

The PDU scrambler enables customizing the request/response PDU to send error responses.The setErrorIndexAndErrorStatus() in the PDU scrambler can be used to customize the SNMP PDU to send error responses.

Validate the request before performing SNMP operations

A request SNMP PDU can be customized, for example, to validate that it contains multiple varbinds before the agent performs SNMP operation in OIDs. The level of customization varies depending on your requirement. The method processRequestPDU( ) in the PDU scrambler is used to customize the request PDU.

It is also possible to simulate that the SNMP response packet is lost in the network, and the simulator does not process the request. If the incoming request PDU is invalid, the updateErrStatAndTerminate() is updated with the proper error status and error index values. In this case, the simulator will resend the incoming PDU as 'responsePDU' without modifying the MIB variables.

Drop PDU based on the incoming request

Updates the response PDU with proper error status and error index values, if invalid and send a error response to the manager.

Achieve global latency

To achieve global delay in response for SNMP requests, the Thread.sleep() method must be called inside the processResponsePDU() of the PDU scrambler. When a query is send from the manager, the response will be delayed with the specified time.

Achieve latency for a specific range of device

To achieve latency for a specific range of devices in the network, the incoming IPv4 or IPv6 Address can be obtained by calling the snmpPdu.getIPAddress() method. If the incoming IP Address is within the specified range, the Thread.sleep() method can be called.

Home Simulator Home TFTP/FTP Simulation Next
   



快捷链接
  • 产品首页
  • 下载试用
  • 最新特性
  • 服务包
  • 性能报告
  • 快速创建大型网络
  • 请求演示
  • 产品演示
  • 开发者论坛
  • 技术支持
产品功能
  • 创建网络
  • 记录环境
  • 模拟陷阱和通知
  • 通过脚本模拟真实的场景
  • 通过RMI模拟真实的场景
  • 定制SNMP PDU
  • 模拟TFTP/FTP
  • 模拟Cisco IOS
  • 支持Telnet
  • 打包和安装
数据表
  • 网络模拟器
  • SNMP模拟器
  • TL1模拟器
产品信息
  • 产品简述
  • 用户案例
  • 应用简述
  • 简化网络管理
    测试与评估 - 白皮书
  • 产品文档
  • 已知问题
  • 常见问题
  • 界面截图
  • 客户列表
  • 产品生命周期计划
相关产品
  • SNMP Agent Toolkit C Edition
  • Agent Toolkit Java Edition
  • WebNMS Framework
  • SNMP API
开发者论坛
查看全部
下载试用

即刻下载试用全功能的模拟器

卓豪公司 版权所有 京ICP备09105052号