[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

954.0. "Node Routing Destination Area syntax ?" by PARZVL::KENNEDY (Give me your watch & I'll tell you) Thu Apr 25 1991 12:31

Trying to get information on routing destination area.  The following commands 
fail in DECmcc, though both forms are successful with NCL.  Any ideas?

MCC> show node phz5g8 routing destination area 49::00-2A all attr

Node DEC:.phz5g8 Routing Destination Area 49::002A
AT 25-APR-1991 09:27:32 All Attributes

A CMIP REJECT message was received
                 Reject General Problem = Invoke Problem, Mistyped Argument
MCC> show node phz5g8 routing destination area 49::002A all attr

Node DEC:.phz5g8 Routing Destination Area 49::002A
AT 25-APR-1991 09:27:45 All Attributes

A CMIP REJECT message was received
                 Reject General Problem = Invoke Problem, Mistyped Argument

NCL>show node phz5g8 routing destination area 49::00-2A all attr
Show Node DEC:.phz5g8 Routing Destination Area 49::00-2A
 at 1991-04-25-09:26:52.22000 + 00:00 I 28147497.67107

Identifiers
 Name = 49::00-2A

Status
 Cost = 39
 Output Adjacencies = {Routing Circuit syn-0-0 Adjacency RTG$0C76}

NCL>show node phz5g8 routing destination area 49::002A all attr
Show Node DEC:.phz5g8 Routing Destination Area 49::00-2A
 at 1991-04-25-09:26:57.48000 + 00:00 I 28147497.67107

Identifiers
 Name = 49::00-2A

Status
 Cost = 39
 Output Adjacencies = {Routing Circuit syn-0-0 Adjacency RTG$0C76}
                                               
T.RTitleUserPersonal
Name
DateLines
954.1try single partition requestsTOOK::CALLANDERThu Apr 25 1991 15:037
could you please try the same commands specifying each partition (one per
command) instead of all attributes. This will help determine which partition
is causing the problem.

If you could post the results here it would be helpful.

thanks
954.2TOOK::J_HALPINThu Apr 25 1991 18:2927
    
    
    
    	This problem is being caused by differences in the way the DNA5 AM
    and VMS NCL (and OSI-Router) encode an Address Prefix data type in
    ASN.1
    
    	I traced the CMIP messages generated by both the DNA5 AM and
    VMS NCL. Here  what we got:
    
    	DNA5 AM:	[APPL 43] 49 00 2A
    
    	VMS NCL:	[APPL 43] 00 49 00 2A  (The OSI-Router returns the
    						Address Prefix this way
    						also.)
    
    That was the only difference between the two CMIP messages. So I
    quickly built a new DNA5 AM that tacks on a null byte at the beginning,
    and low and behold it now works.
    
    The only problem is, I don't know why that null byte is being tacked
    on at the beginning? It looks wrong to me, so I'm going to try and
    find out which way is right.
    
    
    JimH
    
954.3The answer is...MARVIN::COBBGraham R. Cobb (Wide Area Comms.), REO2-G/H9, 830-3917Thu Apr 25 1991 18:4613
AddressPrefix is defined as an ASN.1 BITSTRING type (because AddressPrefixes
can  have  an odd number of bytes) -- check out NETMAN Chapter 11 and notice
the  AddressPrefix  is  defined  in terms of HexString.  What you saw was an
(implicit)  encoding of a BITSTRING (*not* an OCTETSTRING).  Check the ASN.1
standard to understand what the 0 means.

One way  to  test that you have it right is that 49::12-3 should be accepted
as  a  valid  AddressPrefix  and encoded correctly (although VMS NCL doesn't
accept it, it should; ULTRIX NCL accepts it).  The correct encoding is:

   [APPLICATION 43 ] 04 49 12 30

Graham
954.4TOOK::J_HALPINFri Apr 26 1991 14:2624
    
    
    
    	Graham,
    
    		Thanks for explaining this, I understand now and I'll
    filing this as a QAR. Just one more question, to make sure I really
    understand this. In you previous reply you showed the address prefix
    49::12-3, being encoded as 
    
    			[APPL 43] 04 49 12 30
    
    	where the first byte is a count of unused bits in the last byte.
    Correct?
    
    	Now according to what I'm reading in NETMAN, if that Address Prefix
    had been 49::12-3: Would that get encoded as above, or as:
    
    			[APPL 43]  00 49 12 03
    
    JimH
    
    
    
954.5Hmmm.MARVIN::COBBGraham R. Cobb (Wide Area Comms.), REO2-G/H9, 830-3917Fri Apr 26 1991 16:2422
>    	Now according to what I'm reading in NETMAN, if that Address Prefix
>    had been 49::12-3: Would that get encoded as above, or as:
>    
>    			[APPL 43]  00 49 12 03

I don't  have my copy of NETMAN to hand but that is certainly not right.  If
in  doubt,  write  down  the  bitstring  that  is  used  in  the  definition
explicitly.   That  ASN.1  would represent the bitstring 0100 1001 0001 0010
0000 0011.  I.e.  the padding has come *between* the 2 and the 3.

DECnet-ULTRIX turns 49::12-3: into

[APPLICATION 43 ] 00 49 01 23

(which is bitstring 0100 1001 0000 0001 0010 0011)

The answer  as  to whether that is right or whether [APPL 43] 04 49 12 30 is
right depends on whether the padding goes at the front or the end.  In fact,
I  don't even know if the address 49::12-3: is legal or whether it should be
49::1-23: (any comment Mark?).

Graham
954.649::12-3 encodes as [Application 43] 04 49 12 30CAPN::SYLORArchitect = Buzzword GeneratorFri May 03 1991 15:2513
The encoding of 49::12-3 should be
	[Application 43] 04 49 12 30
Note that in ASN.1, they number the bits in an octet most significant bit is
#1, least significant is #8.

The spec says,
	put the # of bits to ignore in the first octet
	put the first hex digit in bits 1-4 of the second octet,
	put the second hex digit in bits 5-8 of the second octet,
	put the third hex digit in bits 1-4 of the third octet,
	...

Mark