Advanced Training of Diameter Protocol of Convergent Billing V2.0

34
HUAWEI TECHNOLOGIES CO., LTD. www.huawei.com  HUAWEI Confdential Security Level Dia!eter "rotocol Issue 1.0

Transcript of Advanced Training of Diameter Protocol of Convergent Billing V2.0

Page 1: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 1/34

HUAWEI TECHNOLOGIES CO., LTD.

www.huawei.com

 

HUAWEI Confdential

Security Level

Dia!eter "rotocol

Issue 1.0

Page 2: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 2/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

#e$erence

OCP interface specification of the

Online Charging System of China

Telecom

Rfc35

Page 3: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 3/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

 !fter the presentation" you #ill un$erstan$ the follo#ing%

Important concepts an$ message structure of the

&iameter protocol

'ain processes of &iameter message interaction in the

OCS system

O()ecti*e

Page 4: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 4/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

Chapter 1 Protocol OverviewCha

pter 1 Protocol Overview

Chapter 2 Message Structure

Chapter 3 Common Command

Examples

Chapter 4 Basic Processes

Chapter Code Stream Parsing

Contents

Page 5: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 5/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

Protocol OverviewProtocol Overview

 The &iameter protocol is $e*elope$ as an impro*ement or a replacement ofThe &iameter protocol is $e*elope$ as an impro*ement or a replacement of

the Ra$ius protocol. The purpose is to support the IP,(ase$ authentication"the Ra$ius protocol. The purpose is to support the IP,(ase$ authentication"

authori-ation" an$ accounting !!!/ protocol.authori-ation" an$ accounting !!!/ protocol.

, !uthentication% The authentication net#or system *ali$ates the user !uthentication% The authentication net#or system *ali$ates the user

i$entity #hen a user uses the resources of the net#or system.i$entity #hen a user uses the resources of the net#or system., !ccounting% The accounting net#or system collects an$ recor$s the !ccounting% The accounting net#or system collects an$ recor$s the

information a(out the resource usage. The purpose is to collect the fee forinformation a(out the resource usage. The purpose is to collect the fee forusing the resources from users or to au$it $ata.using the resources from users or to au$it $ata., !uthori-ation% The authori-ation net#or system authori-es users to use !uthori-ation% The authori-ation net#or system authori-es users to use

resources in certain #ays.resources in certain #ays.

The authentication" authori-ation" an$ accounting net#or systems #orThe authentication" authori-ation" an$ accounting net#or systems #or

together to recor$ the net#or resource usage of specifie$ users. The !!!together to recor$ the net#or resource usage of specifie$ users. The !!!

ensures the la#ful rights an$ interests of users an$ the secure an$ relia(leensures the la#ful rights an$ interests of users an$ the secure an$ relia(lerunning of the net#or systems.running of the net#or systems.

 The &iameter protocol processes the con*ergent charging of prepai$ an$The &iameter protocol processes the con*ergent charging of prepai$ an$

postpai$ su(scri(ers" that is" the con*ergent charging of real,time charging an$postpai$ su(scri(ers" that is" the con*ergent charging of real,time charging an$

C&R charging.C&R charging.

Page 6: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 6/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

Protocol OverviewProtocol Overview

Compare$ #ith the Ra$ius protocol" the &iameter protocolCompare$ #ith the Ra$ius protocol" the &iameter protocolhas the follo#ing a$*antages%has the follo#ing a$*antages%

 a*ing ecellent failure processing mechanism an$a*ing ecellent failure processing mechanism an$supporting failo*er an$ fail(acsupporting failo*er an$ fail(ac

 a*ing ecellent mechanism for processing pacet lossa*ing ecellent mechanism for processing pacet loss(y confirming e*ery message(y confirming e*ery message

 4nsuring the completeness an$ confi$entiality of $ata4nsuring the completeness an$ confi$entiality of $ata

 Supporting en$,to,en$ security" TS" an$ IPSecSupporting en$,to,en$ security" TS" an$ IPSeca*ing the capa(ility of capa(ility negotiationa*ing the capa(ility of capa(ility negotiation

Page 7: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 7/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

Protocol OverviewProtocol Overview

&iameter (asic protocol an$ application protocol&iameter (asic protocol an$ application protocol

 The &iameter (asic protocol pro*i$es a frame that is secure" relia(le"The &iameter (asic protocol pro*i$es a frame that is secure" relia(le"an$ easy to eten$ for *arious authentication" authori-ation" an$an$ easy to eten$ for *arious authentication" authori-ation" an$accounting ser*ices. To implement certain access or applicationaccounting ser*ices. To implement certain access or application

ser*ices" only the follo#ing information a(out the &CC protocol nee$s toser*ices" only the follo#ing information a(out the &CC protocol nee$s to

(e $efine$%(e $efine$%

, !pplication I& of the application protocol !pplication I& of the application protocol, 7et#or entities that are in*ol*e$ in communications7et#or entities that are in*ol*e$ in communications, Contents of the messages that are sent (et#een functional entitiesContents of the messages that are sent (et#een functional entities

communicating #ith each other communicating #ith each other , Protocol processProtocol process

 The &iameter Cre$it Control !pplication that is eten$e$ (ase$ on theThe &iameter Cre$it Control !pplication that is eten$e$ (ase$ on the&iameter (asic protocol $efines the charging mechanism for prepai$&iameter (asic protocol $efines the charging mechanism for prepai$

su(scri(ers an$ uses cre$it control to implement the charging (ase$ onsu(scri(ers an$ uses cre$it control to implement the charging (ase$ on

sessions an$ transactions. Therefore" the re8uirement for chargingsessions an$ transactions. Therefore" the re8uirement for chargingprepai$ su(scri(ers is met.prepai$ su(scri(ers is met.

Page 8: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 8/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

Chapter 1 Protocol OverviewChapter 1 Protocol Overview

Chapter 2 Message Structure

Chapter 3 Common Command

Examples

Chapter 4 Basic Processes

Chapter Code Stream Parsing

Contents

Page 9: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 9/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

Chapter 2 Message Structure

2!1 Message "ead

2!2 Message Bod#

Contents

Page 10: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 10/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

MessageHead

$ersion$ersion% Set to% Set to 11..Message %engthMessage %ength% Set to the length of a message inclu$ing the message hea$.% Set to the length of a message inclu$ing the message hea$.

&&% Set to% Set to 11 for a re8uest message: set tofor a re8uest message: set to '' for a response message.for a response message.

PP% ;hether a message can (e for#ar$e$. In the case of the comman$ #or$ C4R" &PR or &;R"% ;hether a message can (e for#ar$e$. In the case of the comman$ #or$ C4R" &PR or &;R"

the message cannot (e for#ar$e$.the message cannot (e for#ar$e$.

EE% Set to% Set to '' if a message is a response message an$ the message sho#s certain errorif a message is a response message an$ the message sho#s certain error

information.information.

((% ;hether a message is a resent message.% ;hether a message is a resent message.

Command)CodeCommand)Code% 'essage comman$ #or$. The comman$ #or$ of a response message is the% 'essage comman$ #or$. The comman$ #or$ of a response message is thesame as the comman$ #or$ of a re8uest message. The (asic comman$ #or$s in the &iametersame as the comman$ #or$ of a re8uest message. The (asic comman$ #or$s in the &iameter

protocol are C4R<C4!256/" &;R<&;!20/" an$ &PR<&P!22/. The comman$ #or$ in theprotocol are C4R<C4!256/" &;R<&;!20/" an$ &PR<&P!22/. The comman$ #or$ in the

&iameter application protocol is CCR<CC!&iameter application protocol is CCR<CC! (( 262262)) ..

*pplication)+,*pplication)+,% !pplication I& relate$ to a message. =or eample" the !pplication,I&s $efine$ in% !pplication I& relate$ to a message. =or eample" the !pplication,I&s $efine$ in

the &iameter (asic protocol are &iameter Common 'essages0/" 7!SR4>1/" 'o(ile,IP2/"the &iameter (asic protocol are &iameter Common 'essages0/" 7!SR4>1/" 'o(ile,IP2/"

&iameter ?ase !ccounting3/" an$ Relay 0ffffffff/.&iameter ?ase !ccounting3/" an$ Relay 0ffffffff/.

"op)-#)"op. End)to)End"op)-#)"op. End)to)End% See the $escription in the message route section in this presentation.% See the $escription in the message route section in this presentation. 

Page 11: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 11/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

MessageBody

 !@P is use$ as the unit of the &iameter message (o$y. 4ach !@P taes a !@P is use$ as the unit of the &iameter message (o$y. 4ach !@P taes a

specific *alue of a message parameter.specific *alue of a message parameter.

*$P Code/*$P Code/ Co$e of an !@P. =or eample" the *alue of theCo$e of an !@P. =or eample" the *alue of the *$P Code*$P Code fiel$ offiel$ of

Original)"ost *$POriginal)"ost *$P isis 204204..

$/$/ ;hether the !@P hea$ contains the;hether the !@P hea$ contains the $endor)+,$endor)+, fiel$.fiel$.

M/M/ ;hether an !@P is a man$atory !@P. =or a special &iameter comman$";hether an !@P is a man$atory !@P. =or a special &iameter comman$"

certain !@Ps are man$atory. =or eample" the Original,ost !@P an$ Original,certain !@Ps are man$atory. =or eample" the Original,ost !@P an$ Original,

Realm !@P are man$atory for any &iameter message.Realm !@P are man$atory for any &iameter message.

P/P/ ;hether the $ata of an !@P is encrypte$.;hether the $ata of an !@P is encrypte$.*$P %ength/*$P %ength/  ength of the $ata of an !@P. The length of the !@P $ata must (eength of the $ata of an !@P. The length of the !@P $ata must (e

an integer multiple of four. If the length is not an integer multiple of four" fillan integer multiple of four. If the length is not an integer multiple of four" fill ' '..

$endor)+,/$endor)+,/ @en$or I& of the $e*ice that generates the !@P. The *en$or I&@en$or I& of the $e*ice that generates the !@P. The *en$or I&

assigne$ (y I!7! for ua#ei isassigne$ (y I!7! for ua#ei is 2'112'11..

,ata/,ata/ Specific $ata that is recor$e$. The type of the $ata is $etermine$ (ySpecific $ata that is recor$e$. The type of the $ata is $etermine$ (y *$P*$P

CodeCode..

Page 12: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 12/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

Chapter 1 Protocol OverviewChapter 1 Protocol Overview

Chapter 2 Message Structure

Chapter 3 Common Command

Examples

Chapter 4 Basic Processes

Chapter Code Stream Parsing

Contents

Page 13: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 13/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

Chapter 3 Common Command

Examples

3!1 CE& and CE*

3!2 ,& and ,*

3!3 CC& and CC*

Contents

Page 14: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 14/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

CE# and CEA

The Capa(ilities,4change,Re8uest C4R/" in$icate$ (y the Comman$,The Capa(ilities,4change,Re8uest C4R/" in$icate$ (y the Comman$,

Co$e set toCo$e set to 22 an$ the Comman$ =lags ARA (it set" is sent toan$ the Comman$ =lags ARA (it set" is sent to

echange local capa(ilities. On $etection of a transport failure"echange local capa(ilities. On $etection of a transport failure"

this message must not (e sent to an alternate peer.this message must not (e sent to an alternate peer.

 Capa(ilities,4change,Re8uest BC4R %%D B &iameter ea$er% 256"R4>   E Origin,ost F  E Origin,Realm F  1G E ost,IP,!$$ress F  E @en$or,I$ F  E Pro$uct,7ame F

  H Origin,State,I$   G H Supporte$,@en$or,I$   G H !uth,!pplication,I$   G H In(an$,Security,I$   G H !cct,!pplication,I$   G H @en$or,Specific, !pplication,I$   H =irm#are,Re*ision   G H !@P  

Page 15: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 15/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

CE# and CEA

The Capa(ilities,4change,!ns#er C4!/" in$icate$ (y the Comman$,Co$eThe Capa(ilities,4change,!ns#er C4!/" in$icate$ (y the Comman$,Co$e

set toset to 22 an$ the Comman$ =lags ARA (it cleare$" is sent inan$ the Comman$ =lags ARA (it cleare$" is sent in

response to a C4R message.response to a C4R message.

 Capa(ilities,4change,!ns#er  BC4! %%D B &iameter ea$er% 256   E Result,Co$e F  E Origin,ost F  E Origin,Realm F  1G E ost,IP,!$$ress F  E @en$or,I$ F  E Pro$uct,7ame F

  H Origin,State,I$   H 4rror,'essage   G H =aile$,!@P   G H Supporte$,@en$or,I$   G H !uth,!pplication,I$   G H In(an$,Security,I$   G H !cct,!pplication,I$

  G H @en$or,Specific,!pplication,I$   H =irm#are,Re*ision   G H !@P

Page 16: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 16/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

DW# and DWA

The &e*ice,;atch$og,Re8uest &;R/" in$icate$ (y the Comman$,Co$e setThe &e*ice,;atch$og,Re8uest &;R/" in$icate$ (y the Comman$,Co$e set

toto 2'2' an$ the Comman$ =lags ARA (it set" is sent to a peer #hen noan$ the Comman$ =lags ARA (it set" is sent to a peer #hen no

traffic has (een echange$ (et#een t#o peers.traffic has (een echange$ (et#een t#o peers.

Jpon $etection of a transport failure" this message must not (e sentJpon $etection of a transport failure" this message must not (e sentto an alternate peer.to an alternate peer.

 ! &;R message is a han$shae re8uest. ! &;R message is a han$shae re8uest.

&e*ice,;atch$og,Re8uest  B&;R %%D B &iameter ea$er%20" R4>   E Origin,ost F  E Origin,Realm F

  H Origin,State,I$

Page 17: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 17/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

DW# and DWA

The &e*ice,;atch$og,!ns#er &;!/" in$icate$ (y the Comman$,Co$e set

to 2' an$ the Comman$ =lags ARA (it cleare$" is sent as a responseto the &e*ice,;atch$og,Re8uest message.

 ! &;! message is a han$shae response. ! &;! message is a han$shae response.

&e*ice,;atch$og,!ns#er  B&;! %%D B &iameter ea$er% 20   E Result,Co$e F  E Origin,ost F

  E Origin,Realm F  H 4rror,'essage   G H =aile$,!@P   H Original,State,I$

Page 18: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 18/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

CC# and CCA

The Cre$it,Control,Re8uest CCR/ (elongs to the application protocol #ith theThe Cre$it,Control,Re8uest CCR/ (elongs to the application protocol #ith the

comman$ co$e (eingcomman$ co$e (eing 2222 an$ the message i$entifier (eingan$ the message i$entifier (eing &&. ! CCR message. ! CCR message

taes all the information re8uire$ (y the C?4 for charging.taes all the information re8uire$ (y the C?4 for charging.

BCre$it,Control,Re8uest %%D B &iameter ea$er% 262" R4>" PKL

BSession,I$

EOrigin,ostFEOrigin,RealmFE&estination,RealmFE!uth,!pplication,I$FESer*ice,Contet,I$FECC,Re8uest,TypeFECC,Re8uest,7um(erFH&estination,ostHJser,7ameHOrigin,State,I$

H4*ent,TimestampGHSu(scription,I$HSer*ice,I$entifierHTermination,CauseGHRoute,Recor$HRe8ueste$,!ctionHRe8ueste$,Ser*ice,JnitGHJse$,Ser*ice,JnitH'ultiple,Ser*ices,In$icatorGH'ultiple,Ser*ices,Cre$it Control

HCC,Correlation,I$HSer*ice,Information

Page 19: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 19/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

CC# and CCA

The Cre$it,Control,!ns#erCC!/ (elongs to the application protocol #ith theThe Cre$it,Control,!ns#erCC!/ (elongs to the application protocol #ith the

comman$ co$e (eingcomman$ co$e (eing 2222 an$ the message i$entifier (eingan$ the message i$entifier (eing &&. ! CC! message. ! CC! message

taes all the information re8uire$ (y the SCP for connecting su(scri(ers.taes all the information re8uire$ (y the SCP for connecting su(scri(ers.

BCre$it,Control,!ns#er %%D B &iameter ea$er% 262" PKL

BSession,I$

  EResult,Co$eFEOrigin,ostFEOrigin,RealmFE!uth,!pplication,I$FECC,Re8uest,TypeFECC,Re8uest,7um(erFHJser,7ameHCC,Session,=ailo*erHOrigin,State,I$H4*ent,Timestamp

HMrante$,Ser*ice,JnitHCost,InformationH=inal,Jnit,In$icationHChec,?alance,ResultHCre$it,Control,=ailure,an$lingH@ali$ity,TimeGHTrigger,TypeH&irect,&e(iting,=ailure,an$lingGH'ultiple,Ser*ices,Cre$it,ControlGHRoute,Recor$

GH=aile$,!@PH!oC,Information

Page 20: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 20/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

Chapter 1 Protocol OverviewChapter 1 Protocol Overview

Chapter 2 Message Structure

Chapter 3 Common Command

Examples

Chapter 4 Basic Processes

Chapter Code Stream Parsing

Contents

Page 21: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 21/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

Chapter 4 Basic Processes

4!1 $oice Process

4!2 ,ata Service Process

Contents

Page 22: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 22/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

4ample of @oice Process4ample of @oice Process

Page 23: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 23/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

'essage Parsing of @oice Process'essage Parsing of @oice Process

1. The SCP recei*es the I&P message. The SCP $etermines #hether to charge in realtime an$ #hether to sen$ the !TI message to the R to o(tain the location information

a(out the calle$ party" such as =ree Roaming to Same City an$ Cell Preference. The SCPtranslates the short num(er an$ $etermines #hether the call is an inter,net#or call or anintra,net#or call.2. The SCP sen$s the correspon$ing information an$ result to the C?P throughCCREInitial"RSJCC,time/"Ser*ice,I&"I'SI"4T?"Su(scription,I$"ocationF forauthentication an$ charging.3. !ccor$ing to the information sent (y the SCP" the OCS performs account

authentication" rating" re*erse calculation" an$ reser*ation. In a$$ition" the OCS sen$s thea*aila(le $uration to the SCP through CC!EInitial"RCDSuccess"MSJ300S/F.+. The SCP sen$s the !C message to the 'SCNSSP. The 'SCNSSP monitors the call.5. The SCP recei*es the !CR sent (y 'SCNSSP" an$ then sen$sCCREJp$ate"JSJ300S/F to the OCS for reporting the use$ time.. The OCS performs the tass of re*erse calculation an$ reser*ation (ase$ on thereporte$ CCR sent an$ sen$s the a*aila(le $uration to the SCP throughCC!EJp$ate"RCDSuccess"MSJ300 secon$s/F.6. ;hen the call en$s" the SCP recei*es the !CR sent (y the 'SCNSSP" an$ then sen$sCCRE=inal"JSJ/F to the OCS for reporting the use$ time.. The OCS $e$ucts the fee accor$ing to the reporte$ CCR an$ returns the CC!=inal"RCDSuccess/ to the SCP.

Page 24: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 24/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

4ample of &ata Ser*ice Process4ample of &ata Ser*ice Process

Page 25: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 25/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

'essage Parsing of &ata Ser*ice Process'essage Parsing of &ata Ser*ice Process

1. The ser*ice engine sen$s the !uthPrice ser*ice authentication re8uest to theIS'P.

2. The IS'P authenticates the ser*ice.3. The IS'P sen$s the CCR message CCR D 4*ent,Re8uest: R! D &irect,&e(iting/ to the OCS.+. The OCS recei*es the CCR re8uest an$ performs the rating an$ fee$e$uction.5. The OCS returns the CC! message to the IS'P.

. The IS'P sen$s the !uthPriceRsp to the ser*ice engine accor$ing to the CC!message returne$ (y the OCS.6. The ser*ice engine $eli*ers the ser*ice. If the $eli*ery is successful" theprocess en$s. Other#ise" the ser*ice engine $eli*ers the !uthPirceCnfm to theIS'P.. The IS'P $eli*ers the CCR refun$ re8uest CCR D 4*ent,Re8uest: R! D

Refun$/ to the OCS.9. The OCS recei*es the refun$ re8uest an$ performs rating an$ refun$.10. The OCS returns the refun$ response message to the IS'P.11. The IS'P sen$s the !uthPriceCnfm to the OCS.

Page 26: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 26/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

Chapter 1 Protocol OverviewChapter 1 Protocol Overview

Chapter 2 Message Structure

Chapter 3 Common Command

Examples

Chapter 4 Basic Processes

Chapter Code Stream Parsing

Contents

Page 27: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 27/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

Chapter Code Stream Parsing

!1 CC& Code Stream Parsing

!2 CC* Code Stream Parsing

Contents

Page 28: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 28/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

CC# %e&&a'e Code Strea!

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

?yte?yte0 01 00 01 + 0 00 01 10 00 00 00 0+ 00 C! 96 49 ................0 01 00 01 + 0 00 01 10 00 00 00 0+ 00 C! 96 49 ................

1 00 C! 96 49 00 00 01 06 +0 00 00 24 63 & 3 60 ...........smcp1 00 C! 96 49 00 00 01 06 +0 00 00 24 63 & 3 60 ...........smcp

32 31 3? 31 31 3+ 3 39 36 36 39 3 32 3? 30 30 30 1:11+96692:00032 31 3? 31 31 3+ 3 39 36 36 39 3 32 3? 30 30 30 1:11+96692:000+ 30 30 30 30 30 30 31 3? 30 30 30 30 30 30 30 30 0000001:00000000+ 30 30 30 30 30 30 31 3? 30 30 30 30 30 30 30 30 0000001:00000000+ 30 31 00 00 00 00 01 0 +0 00 00 0& 63 & 3 60 01.........smcp+ 30 31 00 00 00 00 01 0 +0 00 00 0& 63 & 3 60 01.........smcp0 31 00 00 00 00 00 01 2 +0 00 00 13 66 66 66 24 1.........###.0 31 00 00 00 00 00 01 2 +0 00 00 13 66 66 66 24 1.........###.9 1 2 3 24 3 = & 00 00 00 01 25 +0 00 00 0C a(c.com....Q...9 1 2 3 24 3 = & 00 00 00 01 25 +0 00 00 0C a(c.com....Q...112 = 3 63 31 00 00 01 1? +0 00 00 1 66 66 66 24 ocs1.......###.112 = 3 63 31 00 00 01 1? +0 00 00 1 66 66 66 24 ocs1.......###.

12 65 1 66 5 9 24 3 = & 00 00 00 00 01 02 hua#ei.com......12 65 1 66 5 9 24 3 = & 00 00 00 00 01 02 hua#ei.com......1++ +0 00 00 0C 00 00 00 0+ 00 00 01 C& +0 00 00 26 .............1++ +0 00 00 0C 00 00 00 0+ 00 00 01 C& +0 00 00 26 .............10 6 5 62 63 9 = 4 31 24 + 5 2 9 6+ +0 3 *ersion1.$e(itc10 6 5 62 63 9 = 4 31 24 + 5 2 9 6+ +0 3 *ersion1.$e(itc16 9 4 1 6+ 5 C 5 3 = & 24 3 = & 00 hinatelecom.com.16 9 4 1 6+ 5 C 5 3 = & 24 3 = & 00 hinatelecom.com.

192 00 00 01 !0 +0 00 00 0C 00 00 00 0+ 00 00 01 9= ...............192 00 00 01 !0 +0 00 00 0C 00 00 00 0+ 00 00 01 9= ...............

20 +0 00 00 0C 00 00 00 00 00 00 00 36 +0 00 00 0C ..........6...20 +0 00 00 0C 00 00 00 00 00 00 00 36 +0 00 00 0C ..........6...22+ C6 == 5 2! 00 00 01 ?? +0 00 00 2 00 00 01 C2 ..eG..........22+ C6 == 5 2! 00 00 01 ?? +0 00 00 2 00 00 01 C2 ..eG..........2+0 +0 00 00 0C 00 00 00 00 00 00 01 ?C +0 00 00 13 ..............2+0 +0 00 00 0C 00 00 00 00 00 00 01 ?C +0 00 00 13 ..............25 30 35 33 31 32 3 35 3 30 30 30 00 00 00 01 1! 053125000.....25 30 35 33 31 32 3 35 3 30 30 30 00 00 00 01 1! 053125000.....

262 +0 00 00 0& 63 & 3 60 31 00 00 00 00 00 01 ?+ ...smcp1.......262 +0 00 00 0& 63 & 3 60 31 00 00 00 00 00 01 ?+ ...smcp1.......2 +0 00 00 0C 00 00 00 00 00 00 01 ?5 +0 00 00 3+ .............+2 +0 00 00 0C 00 00 00 00 00 00 01 ?5 +0 00 00 3+ .............+

30+ 00 00 01 9& +0 00 00 2C 00 00 01 ?& +0 00 00 2+ ......"......30+ 00 00 01 9& +0 00 00 2C 00 00 01 ?& +0 00 00 2+ ......"......320 00 00 01 ?= +0 00 00 10 00 00 00 00 00 00 03 4 ...............320 00 00 01 ?= +0 00 00 10 00 00 00 00 00 00 03 4 ...............33 00 00 01 !& +0 00 00 0C == == == == 00 00 03 9 ..............i33 00 00 01 !& +0 00 00 0C == == == == 00 00 03 9 ..............i

352 0 00 00 2 00 00 2 != 00 00 50 &C 0 00 00 1C ........P.....352 0 00 00 2 00 00 2 != 00 00 50 &C 0 00 00 1C ........P.....

3 00 01 3C 00 00 50 && 0 00 00 10 00 01 3C ..Bh..P.......Bh3 00 01 3C 00 00 50 && 0 00 00 10 00 01 3C ..Bh..P.......Bh3+ 00 00 00 06 ....3+ 00 00 00 06 ....

Page 29: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 29/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

CC# %e&&a'e Head "ar&in'

'essage hea$ format'essage hea$ format%%

  0 1 2 30 1 2 3  0 1 2 3 + 5 6 9 0 1 2 3 + 5 6 9 0 1 2 3 + 5 6 9 0 10 1 2 3 + 5 6 9 0 1 2 3 + 5 6 9 0 1 2 3 + 5 6 9 0 1

  ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

  @ersion 'essage ength @ersion 'essage ength   ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,  R P 4 T r r r r Comman$,Co$e R P 4 T r r r r Comman$,Co$e   ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,  !pplication,I& !pplication,I&   ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

  op,(y,op I$entifier op,(y,op I$entifier   ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,  4n$,to,4n$ I$entifier 4n$,to,4n$ I$entifier   ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

The result of parsing the message hea$ is as follo#s%The result of parsing the message hea$ is as follo#s% @@ersion 1ersion 1''essageessage ength 3ength 3

CComman$ flags Domman$ flags D R P 4 T r r r r H0,10000000R P 4 T r r r r H0,10000000 RRe8ueste8uest messagemessage

CComman$omman$,,co$e 262 CCRco$e 262 CCR messagemessage !pplication,I& + &CC!D&CC application !pplication,I& + &CC!D&CC applicationop,(y,op I$entifier 00 C! 96 49op,(y,op I$entifier 00 C! 96 494n$,to,4n$ I$entifier 00 C! 96 494n$,to,4n$ I$entifier 00 C! 96 49

Page 30: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 30/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

CC# %e&&a'e Head "ar&in'

'essage hea$ format'essage hea$ format%%

  0 1 2 30 1 2 3  0 1 2 3 + 5 6 9 0 1 2 3 + 5 6 9 0 1 2 3 + 5 6 9 0 10 1 2 3 + 5 6 9 0 1 2 3 + 5 6 9 0 1 2 3 + 5 6 9 0 1

  ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

  @ersion 'essage ength @ersion 'essage ength   ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,  R P 4 T r r r r Comman$,Co$e R P 4 T r r r r Comman$,Co$e   ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,  !pplication,I& !pplication,I&   ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

  op,(y,op I$entifier op,(y,op I$entifier   ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,  4n$,to,4n$ I$entifier 4n$,to,4n$ I$entifier   ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

The result of parsing the message hea$ is as follo#sThe result of parsing the message hea$ is as follo#s%%@@ersion 1ersion 1''essageessage ength 3ength 3

CComman$ flags Domman$ flags D R P 4 T r r r r H0,10000000R P 4 T r r r r H0,10000000 RRe8ueste8uest messagemessage

CComman$omman$,C,Co$e 262 CCRo$e 262 CCR messagemessage !pplication,I& + &CC!D&CC application !pplication,I& + &CC!D&CC applicationop,(y,op I$entifier 00 C! 96 49op,(y,op I$entifier 00 C! 96 494n$,to,4n$ I$entifier 00 C! 96 494n$,to,4n$ I$entifier 00 C! 96 49

Page 31: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 31/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

CC# %e&&a'e "ar&in'

 !n !@P can (e foun$ in ran$om search mo$e. !n !@P can (e foun$ in ran$om search mo$e.

=or eample" if you #ant to fin$ the *alue of the !@P su(scription,i$ an$ the *alue=or eample" if you #ant to fin$ the *alue of the !@P su(scription,i$ an$ the *alue

of !@P CO&4 isof !@P CO&4 is 444444%%

1/ Con*ert the *alue1/ Con*ert the *alue 444444 in $ecimal format to a *alue in hea$ecimal format. Thein $ecimal format to a *alue in hea$ecimal format. The

o(taine$ *alue iso(taine$ *alue is 1BC1BC..2/ Search for2/ Search for '1 BC'1 BC to locate the !@P" an$ then perform parsing accor$ing to theto locate the !@P" an$ then perform parsing accor$ing to the

 !@P format. The result is as follo#s% !@P format. The result is as follo#s%

avp code 5'' '' '1 BC6avp code 5'' '' '1 BC6

avp 7lag 54'6avp 7lag 54'6

avp length 5'' '' 136)819avp length 5'' '' 136)819

$endor)id null$endor)id nulldatadata 53' 3 33 31 32 3 3 30 3' 3' 3'653' 3 33 31 32 3 3 30 3' 3' 3'6

)8:'3120''':)8:'3120''':

Page 32: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 32/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

CC# %e&&a'e "ar&in'

To parse an ans#er message" chec the result co$e to see #hether the re8uestTo parse an ans#er message" chec the result co$e to see #hether the re8uest

message is processe$ (y the OCS correctly.message is processe$ (y the OCS correctly.

The a*p,co$e of the result co$e is 201 0C/.The a*p,co$e of the result co$e is 201 0C/.

Search forSearch for '1 'C'1 'C to locate the result co$e. If the result co$e is 2001" you can inferto locate the result co$e. If the result co$e is 2001" you can infer

that the message is sent successfully.that the message is sent successfully.

) 1xxx ;+n7ormational<) 1xxx ;+n7ormational<) 2xxx ;Success<) 2xxx ;Success<

) 3xxx ;Protocol Errors<) 3xxx ;Protocol Errors<

) 4xxx ;(ransient =ailures) 4xxx ;(ransient =ailures

) xxx ;Permanent =ailure<) xxx ;Permanent =ailure<

,+*ME(E&>S?CCESS 2''1,+*ME(E&>S?CCESS 2''1 

Page 33: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 33/34

HUAWEI TECHNOLOGIES CO., LTD. HUAWEI Confdential

(ue&tion&

Please pro*i$e 8uestions here.

Page 34: Advanced Training of Diameter Protocol of Convergent Billing V2.0

7/24/2019 Advanced Training of Diameter Protocol of Convergent Billing V2.0

http://slidepdf.com/reader/full/advanced-training-of-diameter-protocol-of-convergent-billing-v20 34/34

HUAWEI TECHNOLOGIES CO LTD HUAWEI C fd ti l

Than youU

###.hua#ei.com