Megaco/H.248 Számítógép-hálózatok 2007 1
Megaco/H.248 (1) = Az IETF és ITU közötti együttműködés eredménye Előzményei SGCP (Simple Gw Ctrl Prot.) MGCP (Media Gw Ctrl Prot.) XGCP-k alapelve: a gateway-ra koncentrál (a H.323-nak egy eleme) válasszuk szét a gateway-től annak vezérlését MG media gateway és MGC media gateway controller az eredmény egy belső szétosztott rendszer, amely egynek látszik kívülről Ennek az elvnek az előnyei: az MG-k és az MGC-k szabadon elhelyezhetők a hálózatban a rendszer bővíthetősége, kiterjeszthetősége (scalability) az MG- szaporíthatók és több MG-t egyetlen MGC kezelhet Számítógép-hálózatok 2007 2
Referenciamodell (1) Media Gateway Controller Ref. P. A Ref. P. B Signaling SS7 Gateway Modem Telephone Media Gateway Signaling RTP Media Stream IP network Fax PSTN Gateway Számítógép-hálózatok 2007 3
Referenciamodell (2) Media gateway (MG) endpoint-ok és connection-ök doboz, szokásosan a felhasználónál Media gateway controller (MGC) Itt futnak a MG-kat vezérlő protokollok nyilvános távközlési szolgáltató esetén ez a központban van (szokásos elnevezése: softswitch) Endpoint a médiafolyamok be- és kilépési pontja hw/sw a MG-ban Connection különböző MG-k endpoint-jai együttesen pont-pont vagy pont-multipont kapcsolatok Call a connection-ok logikai társítása p-p és konferenciahívások Számítógép-hálózatok 2007 4
Hogyan függ össze a Media Gateway Control és a hívásvezérlés? SG 2 2 MGC MGC 1 2 3 2 PSTN 1 T 2 MG 3 3 médiafolyam hívásvezérlés, pl. H.323-ban a H.225/H.245, vagy a SIP MGC jelzésrendszer, ezt specifikálja a Megaco/H.248 2 T 1 MG Számítógép-hálózatok 2007 5
A Megaco/H.248 összefoglalása Vezérlő protokoll a szétbontott gateway két komponense, az MGC és az MG-k között Nem hívásvezérlő protokoll A média gateway vezérlési és hívásvezérlési funkciók ortogonálisak A gateway-funkcionalitás MG-re és MGC-re történő szétbontásának előnyei Kiterjeszthetőség Szabadság az MG-k elhelyezésében (a felhasználónál, vagy a szolgáltatás-hozzáférési pontokon) a H.323 szempontjából fontos bővítés/kiegészítés ITU is considering adoption into H.323 SIP-pel is kombinálható Számítógép-hálózatok 2007 6
Megaco/H.248-ról bővebben Angol nyelvű slide-ok Érdemes átnézni, de nem vizsgaanyag Számítógép-hálózatok 2007 7
Megaco/H.248, basic concepts Abstractions: termination, context, streams Termination a source/sink of media flows a special termination: ROOT, the MG itself Context A mixing bridge to which all terminations within the context are connected; association between a number of term s, describes the topology Streams route different media flows through a context different streams carry different media types conversion occurs when different media types in the same stream Media flows are routed through the context by controling the mode property (see later) for each stream at each termination Számítógép-hálózatok 2007 8
Example of H.248 connection model Context Termination RTP Stream Termination SCN Bearer Channel Termination SCN Bearer Channel Termination RTP Stream Context Null Context Termination SCN Bearer Channel Context Termination RTP Stream Termination SCN Bearer Channel Számítógép-hálózatok 2007 9
Example call waiting scenario (1) Context C1 Termination T2 RTP Stream Termination T1 SCN Bearer Channel Context C2 Termination T3 SCN Bearer Channel Számítógép-hálózatok 2007 10
Example call waiting scenario (2) Context C1 Termination T2 RTP Stream Termination T1 SCN Bearer Channel Context C2 Termination T3 SCN Bearer Channel Számítógép-hálózatok 2007 11
Megaco/H.248 message structure Message = header + one or more transactions Transaction: the largest functional unit Transaction request Transaction reply Each transaction contains one or more actions Information related to a single context Context-level properties + commands Each command relates to a specific termination Descriptor: A unit within a command carrying Information related to a specific function of the protocol ~ parameter to a command Számítógép-hálózatok 2007 12
Transactions, Actions, Commands TRANSACTIONx CTXTID1 COMMAND1 COMMAND2 COMMAND3 COMMAND4 CTXTID2 COMMAND1 CTXTID3 COMMAND1 COMMAND2 COMMAND3 Számítógép-hálózatok 2007 13
Commands supported by Megaco/H.248 Command Requestor Purpose Add MGC Add a termination to a context. Modify MGC Change the characteristics of an existing termination. Substract MGC Remove a termination from an existing context. Move MGC Move a termination from its previous (non-null) context to the one associated with the action. AuditValue MGC Determine the characteristics of a termination or the MG as a whole. AuditCapability MGC Determine the possible values supported for the characteristics of a given termination or the MG as a whole. Notify MG Tell the MGC that one or more events for which reporting has been enabled have occured on the given termination. ServiceChange Either For individual terminations: tell the responder that the service state has changed. Számítógép-hálózatok 2007 14
Descriptors Most important descriptor types: Media Events, EventBuffer, ObservedEvents Signals Media is a composite of other descriptors TerminationState LocalControl Local and Remote Consists of a name and a list of items Descriptor Name=<someID>{parm=value, parm=value } Számítógép-hálózatok 2007 15
Example Descriptor LocalControl Descriptor LocalControl { Mode = SendReceive, tdmc/ec = on } Mode is a base property tdmc/ec is the ec property defined in the TDM Circuit Package Számítógép-hálózatok 2007 16
Media Descriptor Parameters for media streams (StreamID) Media Descriptor TerminationStateDescriptor Stream Descriptor LocalControl Descriptor Local Descriptor Remote Descriptor Számítógép-hálózatok 2007 17
Example of command syntax TerminationID, [ServiceChangeDescriptor] ServiceChange(TerminationID, ServiceChangeDescriptor ) ServiceChangeDescriptor value is optional return Számítógép-hálózatok 2007 18
Transaction syntax Largest functional unit of the protocol Transaction=TransactionId { ContextID {Command Command},... ContextID {Command Command } }) ContextID = - represents the null Context Reply(TransactionID { ContextID { Response Response },... ContextID { Response Response } }) Pending(TransactionID { } ) Számítógép-hálózatok 2007 19
Messages Multiple Transaction can be concatenated into a Message Have a header, which includes the identity of the sender Syntax example: MEGACO/1 [123.123.123.4]:55555 <Transaction>... Számítógép-hálózatok 2007 20
Packages in Megaco/H.248 Package: signals, events, statistics and properties are defined in packages rather than in the protocol itself Events, examples: Line off-hook, DTMF tone received Signals, examples Tones, announcements, caller ID In the original H.248: a standard set of packages Further packages can be defined and registered A H.248 package is usually small and focused A new package can extend another package Packages are published by IETF as RFCs and by ITU as annexes to the Recommendation Számítógép-hálózatok 2007 21
Some Packages Generic (g) a package for commonly encountered items Root (root) defines properties for the whole gateway Tone Generator/Detection (tonegen) defines signals for generating audio signals Basic DTMF generator package (dg) DTMF detection (dd) Call progress tone generation (cg) Call progress tone detection (cd) Analog Line Supervision (al) Network (nt) defines properties of network terminations RTP (rtp) supports multimedia transfer using RTP TDM Circuit (tdmc) Számítógép-hálózatok 2007 22
Example H.248 messages MG registers with an MGC MEGACO/1 [124.124.124.222] Transaction = 9998 { Context = - { ServiceChange = ROOT {Services { Method=Restart, ServiceChangeAddress=55555,Profile=ResGW/1}}}} MGC sends reply MEGACO/1 [123.123.123.4]:55555 Reply = 9998 { Context = - {ServiceChange = ROOT { Services {ServiceChangeAddress=55555,Profile=ResGW/1}}}} Számítógép-hálózatok 2007 23