[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: ERROR codes question



> From: JC Ferguson <jcferg@cisco.com>
> 
> Hi,
> 
> First, if the PDP discovers an error (for example, poorly formatted or
> incomplete COPS message), should it always send a COPS CC msg and
> shutdown the connection?

[Dave] Yes. Given that the transport is TCP, if there is an incomplete COPS
message, the server will not likely know where in the byte stream to
recover. Given this, there is little choice for the PDP other than to send a
CC & close the connection. 

> 
> Also, what error codes should one use in an error object given certain
> situations:
> 
> 1) PEP sends a message to the PDP.  PDP attempt to process, 
> but ran out
> of memory or it discovered some other internal inconsistency deemed
> fatal.  What error code should it attempt to send to the PEP in a COPS
> CC message?  Unable to process?  Or unspecified?
> 
[Dave] Unable to process.

> 2) PEP sends a message that is not RFC compliant in terms of object
> order.  Is "bad message format" the appropriate error?
> 
[Dave] Yes.

> 3) PDP rx's a message with an invalid opcode.  Is "bad message format"
> appropriate?
> 
[Dave] Yes... Although there probably should be an error code for invalid
opcode (although, since opcodes are only going to be updated with a new
version of the protocol, that might be overkill). 

Cheers,
-Dave

> thanks/jc
> 
> -- 
> jcferg@cisco.com / v:978-244-8671 / fax: 978-244-8126
> 
> "with this tiny little piece of paper I can make you slip"
>