Hi Krishna,
     I suppose u have confused a bit between DEFAULT and OPTIONAL.
 What I know is that . OPTIONAL means that the value of this Identifier
 can be skipped .But in case of DEFAULT , the default value is present
in the
 ASN.1 script (( it's only that user may not explicitly provide that
value but it's
 always there).
 In case the sender doesn't over rides that default value, the reciever
 needs to assign it by his own, as default value is present in the
script.But if the
 sender has overriden that default value then it anyway comes in the
stream.
     As far as different bit flags you are talking about. There is no
need for that.
 Actually in case of DEFAULT Identifier, the decoder at receivers side
knows that this value is
 default and if nothing comes then it has to assign the default value.
 I hope it will clarify your doubts.
 Regards
 Amit
> Bujji krishna R B wrote:
>
> > Hi,
> >      I would like to know the significance of the key word DEFAULT
in ASN.1.
> > Is this different from OPTIONAL keyword.
> >         If I have understood correctly , the keyword DEFAULT
indicates that if a
> > particular Identifier's (declared as DEFAULT)
> >         value is not specified during transmission then the receiver
has to assign
> > his own value.
> >
> >         If this is the case , then one should have two different
flags(or Bits) to
> > indicate DEFAULT and OPTIONAL status and not
> >         a single flag while transmitting the bits.
> >
> > Thanks
> > krishna
>
>

Reply via email to