[snmp] wanted Information regarding the PORT from which InformResponseis sendout

Gejo.Thayil at aricent.com Gejo.Thayil at aricent.com
Wed Nov 15 19:34:25 GMT 2006


Hi Birjit,

    Thanks for your Immediate Response to my mail, I was thinking of a 
simple workaround to this problem 
and is still trying on it

- what I was trying is that to close the socket once we receive an INFORM, 
then create it to send the RESPONSE
  so that IPSec now sees the packet coming from the same port (SNMP TRAP 
Port). 
- Again close the socket after sending RESPONSE, 
- DefaultInformContext(DefaultTrapContext) comes to know when socket is 
closed 
  Now try to create the Socket after a delay. Thread.sleep(An optimum 
time); 
  (This will takecare of the timegap between receiving and sending packet 
)

------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 with this i could send out a RESPONSE to INFORM (for the first time from 
Received Port(162)),
it again started listening on the same PORT(162) after sleeping for an 
optimum time
received a 2nd INFORM but some socket creation error came before sending 
RESPONSE (I'm working on this)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I think if we try this way, the only drawback is it will drop any packet 
that comes while the stack is processing a RESPONSE to a received INFORM.
Now that stack takes a processing time < 300mS (calculated by capturing 
INFORM and RESPONSE on ethereal) this is not a drawback at all


Sadly I'm not an expert on Sockets, so its taking some time for me, will 
let you know if i can make this work



Regards

Gejo Joseph
Flextronics Software Systems
18/1, Outer Ring Road
Panathur Post, Bangalore

"I would love to change the world, but no one would give me the source 
code"



Birgit Arkesteijn <birgit at westhawk.co.uk> 
Sent by: snmp-bounces at snmp.westhawk.co.uk
11/15/2006 05:20 PM

Please respond to
List for discussion of the Westhawk SNMP stack<snmp at snmp.westhawk.co.uk>


To
List for discussion of the Westhawk SNMP stack <snmp at snmp.westhawk.co.uk>
cc

Subject
Re: [snmp] wanted Information regarding the PORT from which InformResponse 
is sendout






Hi Gejo,

This sounds like an omission on the stack.
Currently the stack receives the incoming Inform on a ListeningContext
and sends a response on a new SnmpXContext. 

It should (somehow) go back over the receiving ListeningContext. We
would have to look at how to do that best: 

The ListeningContext will need some send functionality, but to avoid
duplicity, the SnmpXContext should still be used to encode the packet
but NOT send it. 

This will take us a couple of days to design, fix and test.
Unfortunately, it's not likely to happen soon, unless your company would
commission us.

Cheers, Birgit
 
ps Love your signature!


On Wed, Nov 15, 2006 at 11:34:30AM +0530, Gejo.Thayil at aricent.com wrote:
> Hi,
> 
>         I'm using the Westhawk version 4_13 for a simulator to test the 
> SNMP functionalities, however since this stack didn't support Inform 
> Response, so i had to modify this stack a bit so that it sends response 
to 
> Notifications. now its observed that even if I receive an INFORM 
> notification on port 162 (or any other defined port, that is known to 
the 
> agent), the stack sends out RESPONSE from any dynamic port(not from port 

> 162/ or the port on which it received the INFORM).
> 
> I checked it in your latest version 5_1, it also does it in the same 
way, 
> ie sends the RESPONSE to an INFORM from any dynamic port.
> 
> This works fine until IPSec is enabled between the SNMP Manager and 
Agent, 
> It is found that due to the received and sending PORT mismatch the 
> RESPONSE to the INFORM is not reaching the Agent (We are sending the 
> Response to the same port from which INFORM has come),  it is seen from 
> ethereal that Westhawk Stack is sending out Responses to the INFORMs.
> 
> can you guide me what i should do to send the Response from the Received 

> port itself (In case of INFORM)
> 
> 
> 
> 
> Regards
> 
> Gejo Joseph
> Flextronics Software Systems
> 18/1, Outer Ring Road
> Panathur Post, Bangalore
> 
> "I would love to change the world, but no one would give me the source 
> code"


-- 
-- Birgit Arkesteijn, birgit at westhawk.co.uk,
-- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK
-- tel.: +44 (0)161 237 0660
-- <URL: http://www.westhawk.co.uk>
_______________________________________________
snmp mailing list
snmp at snmp.westhawk.co.uk
http://snmp.westhawk.co.uk/mailman/listinfo/snmp



***********************  Aricent-Unclassified   ***********************

***********************  Aricent-Unclassified   ***********************
"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of 
the individual to whom it is addressed. It may contain privileged or confidential information and should not be 
circulated or used for any purpose other than for what it is intended. If you have received this message in error, 
please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly
prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for 
loss or damage arising from the use of the information transmitted by this email including damage from virus."


More information about the snmp mailing list