[SNMP4J] send-only UDP transport

Clement_Pellerin at ibi.com Clement_Pellerin at ibi.com
Wed Jan 20 02:45:42 CET 2010


The AgentConfigManager makes it hard to avoid calling listen(). This forces the creation of a DefaultUdpTransportMapping subclass. I am not convinced this work-around is worth it in my application. I will tell my users they need a UDP listener if they have UDP notification targets.
 
-----Original Message-----
From: snmp4j-bounces at agentpp.org [mailto:snmp4j-bounces at agentpp.org] On Behalf Of Frank Fock
Sent: Tuesday, January 19, 2010 6:40 PM
To: snmp4j at agentpp.org
Subject: Re: [SNMP4J] send-only UDP transport

The listener thread of the DefaultUdpTransportMapping is only
started if you call its listen() method.
Thus, it is pretty easy to create a send-only UDP transport
mapping.

On 18.01.2010 15:58, Clement_Pellerin at ibi.com wrote:
> The notification originator sends the notifications using the protocols and addresses configured in the Notification MIB. That MIB can be remotely administered. Unless special code is written, this lets the user freedom to choose between UDP or TCP. The notification originator assumes the required transport mappings have been added.
>
> Unfortunately, adding a protocol mapping has the other side-effect of adding a listener for that protocol. The TCP transport mapping has a provision for this. If the transport is created without an address, then the TCP transport is send-only and the listener thread is not started. The UDP transport is missing that feature. If you add a transport mapping, it always creates a listener thread.
>
> If the UDP transport could be created in send-only mode, then we could modify the best-practice to always add both UDP and TCP transports with or without an address. This would satisfy the notification originator requirement that a transport mapping is available.
>
> I realize that this scenario only comes into play when the agent is listening only on TCP and a notification target has a UDP destination. I am not sure how likely this is. On the other hand, it seems an unnecessary limitation that SNMP4J-Agent requires a UDP listener to be able to send notifications over UDP.
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com

_______________________________________________
SNMP4J mailing list
SNMP4J at agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j



More information about the SNMP4J mailing list