?? ecn_internaldoc.txt
字號:
The ECN specification (X.692) describes how to make encodingsdifferent from the standardised methods, BER and PER with variants.ECN has a system with inter-working modules including ordinary ASN1specs. There are any number of EDM (Encoding Definition Module)modules. And always one ELM (Encoding Link Module).The EDMs contains definitions of encoding classes, encoding objectsand encoding object sets. They may also have IMPORTS and EXPORTSclauses. Encoding classes tells the structure of the encoding. Besidesclasses corresponding to types there are classes that definedeterminants for length and presence. The objects tell how the actualtype that will be mapped to this object is encoded.The ELM is the module that links (applies) the various encodings,defined in the EDMs, to the types in the ASN1 specs.The ASN1 specs are not affected by being part of an ECN application.The following requirements must be wholly or partly fulfilled toenable the use of ECN in the OTP ASN1 compiler. - Parsing of EDM and ELM modules. - Extend the format of the abstract syntax tree or in other way pass encoding information to code generation. - Make possible to generate code with different encoding methods. - Unaligned PER backend. Often seems the unaligned PER encoding as the prefferred main method in ECN applications. One of the goals with ECN is to use less space for encoding to decrease the use of bandwith in transmission. This goal is highly supported by unaligned PER.Parsing of EDM and ELM modules:This should be done in a different parser than by the ASN1asn1ct_parser2.erl. The ECN syntax is quite extensive. A deeperinvestigation must be done here.Extend format of abstract syntax:To derive this format one has to consider both the explicit andimplicit defined encoding structures.This addition of information should maybe be done after the checkphase of the ASN1 syntax.Code generation:Initially one can just generate call-back functions when the encodingdiffers from the default method. Nevertheless the information must bepresent in the sytax tree so far. When the full functionality isimplemented one has to enable a finer granularity in the use of theencoding rules. And also enable control of encoding on bit level.Unaligned PER backend:Often in examples this variant of PER is used. It shouldn't be thatmuch work to add this encoding. Probably this will benefit the use ofthe driver.ECN can be used in for instance: - Protocol systems that is not an ASN1 protocol. - Specialized ASN1 protocols.Need for ECN?Among the ASN1 systems that have been enabled for ECN are:UMTS,Bluetooth,GPRS,CAMEL phase 3 stage 2,SS7,SCCP,and others.Inswitch has asked for it.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -