CN103078857A - VoIP (Voice over Internet Protocol) Internet protocol component-based development method - Google Patents

VoIP (Voice over Internet Protocol) Internet protocol component-based development method Download PDF

Info

Publication number
CN103078857A
CN103078857A CN201210592733XA CN201210592733A CN103078857A CN 103078857 A CN103078857 A CN 103078857A CN 201210592733X A CN201210592733X A CN 201210592733XA CN 201210592733 A CN201210592733 A CN 201210592733A CN 103078857 A CN103078857 A CN 103078857A
Authority
CN
China
Prior art keywords
interface
protocol
atomic operation
component
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210592733XA
Other languages
Chinese (zh)
Other versions
CN103078857B (en
Inventor
段榕
郭世泽
陈哲
郭亦菲
李升�
肖俊
刘志明
张磊
郑康峰
马军涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
No54 Inst Headquarters Of General Staff P L A
Original Assignee
No54 Inst Headquarters Of General Staff P L A
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by No54 Inst Headquarters Of General Staff P L A filed Critical No54 Inst Headquarters Of General Staff P L A
Priority to CN201210592733.XA priority Critical patent/CN103078857B/en
Publication of CN103078857A publication Critical patent/CN103078857A/en
Application granted granted Critical
Publication of CN103078857B publication Critical patent/CN103078857B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention belongs to the field of software engineering and relates to a VoIP (Voice over Internet Protocol) Internet protocol component-based development method, which comprises the following steps of: 1) designing Internet protocol component interfaces, including customized interfaces and interactive interfaces; 2) dividing VoIP Internet protocol components; 3) extracting atomic operation, wherein atomic operation extracting models are used for guiding the extraction of the atomic operation and are divided into functional models and interface models; 4) realizing the VoIP Internet protocol components, including the realization of protocol components and the realization of atomic operation components; and 5) assembling the VoIP Internet protocol components: determining matching and mapping relations between service provided by the components and the interfaces, and providing constraint conditions for satisfying imminent or future deployment. The VoIP Internet protocol component-based development method overcomes the defects of a function-oriented component-based development method and solves the problem that the components are not flexible enough to assemble when level-oriented, target-oriented and mixed component-based development methods are used.

Description

The protocol component based method of voip network
Technical field
The present invention is the protocol component based development approach of a kind of voip network, belongs to field of software engineering.
Background technology
Develop rapidly along with computer technology, the complexity of software systems is continuous to be increased and changes and lifting the demand of VoIP service is continuous, add the voip network agreement and itself have complex structure and diversified characteristics, traditional VoIP protocol stack is difficult to satisfy these diversified demands sometimes.If from the beginning develop a protocol stack for different application field and application platform, its cost is very expensive, have overlapping investment, long shortcoming of construction cycle, and the reliability of its product can not be guaranteed.Under this background, component technology can well address this problem.Therefore, be necessary for it and find a kind of rational implementation, protocol component based to voip network, realize the reasonable encapsulation of procotol, optimize rationally calling that agreement realizes serving, and keep good back compatible.
Member is packed, standard, reusable software module.It is so that the developer can take full advantage of over knowledge, experience and the functional module that accumulates in the process of system development in new system development, and needn't all start from scratch, thereby has avoided the duplication of labour in the software development.Componentization to procotol can be divided into two class problems: the division of member and assembling, and namely how to divide protocol component and make it have the assembling method of suitable granularity and member.
NSPCF(network sub-protocol framework) proposed by level, by function, mixed method with by the Method of Component-based of dividing procotol with object.Method of Component-based by level carries out componentization according to the level form to every layer of communication protocol exactly, for the last layer member provides service interface.Be to carry out Groupware encapsulation variety of protocol being carried out the basis that functional analysis, function divide by building blocks of function, the functional module that agreement is provided is divided into each relatively independent sub-function module, to realize low coupling, the high cohesion of sub-member.A protocol function can be gone to realize by different algorithm (perhaps being called realization mechanism).The user removes to call each building blocks of function according to needed function.The hybrid component method will be by the method for level with by the method combination of function, and agreement and the in advance combination of the protocol component of design that it can be obtained by one group of protocol function configuration are to provide greater flexibility.To come agreement is split with object according to agreement by the Method of Component-based of object.The use object of agreement can be divided into multiple: have to service end with to client; Same layer agreement and last layer agreement; General user and power user are arranged.The user just can select according to the requirement of using easily like this, and the stability of object member better, and what loss is performance do not have yet." network sub-protocol member strategy study " document points out that by the building blocks of function method be fairly perfect Method of Component-based.
" procotol Method of Component-based research and implementation " proposes application oriented ICP/IP protocol stack component development method.According to the application layer services that the ICP/IP protocol stack provides member is divided.From the angle of using, for different application demands, select suitable lower floor's sub-protocol, even can split, recombinate sub-protocol, utilize at last the modularization mechanism of LINUX that this combination of protocols is formed corresponding member.
Method of Component-based by level in the prior art can be realized as required member easily, improves the utilance of sub-member; Shortcoming is will carry out larger change to original appliance protocol stack system structure, and workload is larger, and what is more important all is difficult to be protected through execution efficient, the fail safe of the protocol stack of change.Shortcoming by the building blocks of function method is that each intimate sub-member needs the unified standard of other formulation to manage.The shortcoming of hybrid component method is not have specific standard to instruct componentization.The Method of Component-based shortcoming of pressing object is also apparent in view, and the granularity of protocol component is generally all larger, and the degree of coupling of member is relatively high, and protocol flexibility is relatively poor.
Summary of the invention
The present invention has proposed an atomic operation member on the basis of building blocks of function method, can assemble other protocol components, serves as an intermediate member and manages.Solved the shortcoming by the building blocks of function method, and solved by level, by the problem of object and hybrid component method assembling underaction.
The protocol component based method of this voip network may further comprise the steps:
The first step: planned network protocol component interface: comprise customization and mutual two class interfaces, wherein: custom interface is used for member self function is customized and perfect, interactive interface be used for member and other member mutual, communicate by letter, so that cooperate each other between the member; Custom interface comprises service and the service interface function structure that member provides; Interactive interface comprises that shared data, service provide operation, service request operation, outwards initiate a message, response external message, the pipeline of data writing, pipeline and other component interface of sense data; Component interface has interface behavior stipulations and need satisfy interface protocol;
Second step: the voip network protocol component is divided: the protocol interaction process to the VoIP conversation is analyzed, the sending and receiving, protocol status control, the audio/video data that the function of protocol stack are divided into signaling generate and the media sending and receiving, and the VoIP protocol stack is divided into protocol state machine member, protocol analysis member, audio/video encoding and decoding member and media transmission protocol resolution component 4 classes; The protocol analysis member is finished the parsing of signaling protocol in the protocol stack, structure and parsing signaling protocol packet; The state machine member is to the state control of whole communication process; Audio/video encoding and decoding member is realized collection and coding, decoding and the broadcast to audio/video information, and every kind of code decode algorithm is to an audio/video encoding and decoding member; Media information after the media delivery member is used for transmission and accepts coding;
Except above-mentioned 4 quasi-protocol members, the voip network protocol component also comprises the atomic operation member.The atomic operation member comprises many atomic operations, and itself is not realized concrete protocol function, is the again encapsulation that protocol component is called.Provide the atomic operation calling interface by atomic operation Component encapsulating protocol component for the top layer application, or make up and call the signaling sending and receiving that a plurality of protocol components are realized protocol stacks, the atomic operation use protocol analysis member of protocol message class has been finished the transmission to message; The message sink atomic operation is resolved the message that receives type and the field of message with the protocol analysis member; The message response atomic operation has made up state machine and has closed the protocol analysis member, and the message of receiving is sent response message.
The 3rd step: the extraction atomic operation: the atomic operation extraction model is divided into functional mode, interface model in order to instruct the extraction of atomic operation; Functional mode is functional definition and the functional restraint of atomic operation, and interface model is semantic description and the linguistic constraints that atomic operation externally provides calling interface; Atomic operation only externally provides unique calling interface, and therefore, the atomic operation interface is the unique identification of atomic operation; Atomic operation interface model formalization representation is: fc is the interface of atomic operation; Func is the function of atomic operation; Lang is the semantic description of atomic operation interface function; Const is the linguistic constraints of atomic operation interface; Rela is the call constraint between the atomic operation interface;
The 4th step: the realization of voip network protocol component:
A, sub-protocol member are realized: the sub-protocol member is finished the functions such as state machine, protocol analysis, audio/video encoding and decoding and media delivery of protocol stack; The commit module of protocol component is encapsulated as trust by interactive interface with user-defined code and registers to corn module, personal code work after the registration can be carried out in running by protocol component, control module is unified internal interface with the interface conversion of corn module, adaptation module is at first carried out the encapsulation that the type such as formal argument is hidden or called to interface name to internal interface, and the custom interface that then extracts whole protocol component calls for external program;
B, atomic operation member realize: atomic operation is defined on the basis of primitive and uses the calling interface that provides based on primitive for top layer, extract primitive and each primitive is analyzed and decomposed from operation-interface, then the protocol component single step after will decomposing is called to be committed to and is called formation, single step is called in real time according to priority by Executive Module and processes;
The 5th step: voip network protocol component assembling: determine service and the coupling between the interface and mapping that member provides, and the constraints that will satisfy soon or dispose future is provided.
Wherein the coupling of interface and mapping are finished by " glue code ".
Wherein the assembling of member is comprised to the assembling of protocol component with to the assembling of atomic operation member, the assembling of protocol component is that the atomic operation member is by the custom interface of protocol component, interactive interface and message queue are finished, inquire about service and the interactive interface function structure body that this member provides by custom interface, the interface function title that this structure comprises, interface function return value type, interface function return value quantity, interface function number of parameters and interface function parameter type, the atomic operation member is sent to message queue with the service that it needs, the custom interface that message queue is processed each member of function call carries out service adapter, adaptive success is then returned interactive interface function structure body to the atomic operation member, and the atomic operation member is resolved the interactive interface function that extracts this service behind this structure.
Wherein when service needs the combination of a plurality of members to finish, message queue is responsible for adaptive between the member: protocol component is sent to message queue with the service that its other members that need provide, the custom interface that message queue processing function calls each member in the same manner carries out service adapter, adaptive success is then returned interactive interface function structure body to this member, notifies its spendable interactive interface.
Wherein upper layer application to the assembling process of atomic operation member and protocol component is:
1) the upper layer application interface sends request primitive to the atomic operation member;
2) the atomic operation member extracts and analyzes the request primitive that receives, and primitive is decomposed into a plurality of service requests, and puts it into message queue;
3) message queue is served the interactive interface of required protocol component and is called by adaptive obtaining, and feeds back to the atomic operation member after complete;
4) the atomic operation member is waited for next request primitive behind upper layer application feedback execution result.
Beneficial effect of the present invention:
1, member dividing mode: the protocol interaction process according to the VoIP conversation is divided into 4 classes such as state machine member, protocol analysis member, audio/video encoding and decoding member and media transmission protocol resolution component with protocol stack by function.This dividing mode can not only improve the cohesion of component inside, reduce the degree of coupling between the member, and should be so that the functional unit of sub-member after by secondary encapsulation can be contained the function of VoIP protocol stack substantially, each functional unit can relatively independent being called simultaneously.Simultaneously, for the assembling that makes things convenient for member with based on the secondary development of componentization protocol stack, this method has proposed again the atomic operation member.The again encapsulation that it calls the underlying protocol member, each protocol component externally provides calling interface according to the atomic operation interface definition of unified standard, thereby has shielded the bottom layer realization details, at utmost improves the secondary development efficient based on the componentization protocol stack.
2, atomic operation extracting method: the present invention proposes the atomic operation extraction model in order to instruct the extraction of atomic operation.The atomic operation extraction model be atomic operation extract and atomic operation design application in the standards and norms that should follow, model definition what be atomic operation, how construct atomic operation, how define the content such as atomic operation interface.The atomic operation extraction model has been stipulated the standard that makes up between one group of storehouse that is comprised of the ground atom operation and the cover atomic operation, and these atomic operations can be combined to form by certain stipulations mode the functional unit of upper strata needs.
3, the angle from the protocol stack function is divided into member with the voip network agreement.In order to make things convenient for secondary development, the method has also proposed the atomic operation member, it is with the again encapsulation of calling of underlying protocol member, and each protocol component externally provides calling interface according to the atomic operation interface definition of unified standard, thereby has shielded the bottom layer realization details.The atomic operation that comprises in the atomic operation member extracts with the atomic operation extraction model that this method proposes.Upper layer application can be used the underlying protocol member by the combination atomic operation, has saved the complicated processes of direct-assembling underlying protocol member, has improved the efficient of secondary development.
4, utilize the present invention to realize protocol stack has H.323 been carried out the component-based development experiment, will be H.323 protocol stack be divided into H.323 state machine member, H.323 protocol analysis member, G.711 audio coding decoding member, H.261 coding and decoding video member, RTP media delivery member and atomic operation member, the atomic operation member comprises again the atomic operations such as message transmission, message sink, message response, audio collection and video acquisition.This experimental development cycle is short, and the quality of member is high.Through test, each member can both be finished its function, and has consistent unified interface.
5, the atomic operation secondary encapsulation that comprises in the atomic operation member corresponding sub-protocol member.It has realized message queue, thereby has finished the assembling to protocol component.Upper layer application is carried out corresponding atomic operation by the unified interface of calling the atomic operation member, just can use corresponding underlying protocol member, has saved the major part " glue code " of assembling process for upper layer application.This method provides simple assemble method for the upper strata, and the member user needn't understand the VoIP protocol stack in depth and also can easy to doly assemble.Atomic operation can also combination in any, has improved thus the reusability of member.
Description of drawings
Fig. 1 is the protocol component based method overall flow of voip network of the present invention figure;
Fig. 2 is the graph of a relation between the Component interface model element;
Fig. 3 is that the atomic operation member is to encapsulation and the combination of infrastructure;
Fig. 4 is protocol component cut-away view among the present invention;
Fig. 5 is Atom control member cut-away view of the present invention;
Fig. 6 is that Atom control member of the present invention is to the composition model of protocol component;
Embodiment
The invention will be described further below in conjunction with accompanying drawing.
As shown in Figure 1, the first step: procotol component interface design;
The design of protocol stack component interface is the first step that realizes the protocol stack componentization, is the basis of protocol stack componentization.Can find out from the design principle of member, the core content of member designs is exactly the design of component interface.The advantage of member also is mainly reflected on the Interface design.Member has the black box characteristic, and component interface is the contract that component development personnel and assembler are observed jointly.The industrial standard of member mainly comprises CORBA, JavaBeans and COM etc. at present, and they have Interface design standard separately.Because these standards are all for the general case design, its too definition and incomplete exploitation that is fit to protocol component of complexity in these characteristics according to protocol component, and with reference to above-mentioned standard, has proposed new interface model.
The model of protocol component interface is as follows:
1, each member must have customization and mutual two class interfaces, wherein: custom interface is used for member self function is customized and perfect, only limiting to member self uses, interactive interface be used for member and other member alternately, communicate by letter, so that each other cooperation between the member, the allomeric function of software system.
2, custom interface also claims functional interface, mainly comprises service and service interface function structure that member provides, is usually provided by the Components Composition personnel.The service element that externally provides is not provided custom interface.
3, interactive interface also claims service interface, comprises mainly that shared data, service provide operation, service request operation, outwards initiate a message, response external message, the pipeline of data writing, pipeline and other component interface of sense data.
4, component interface has interface behavior stipulations and need satisfy interface protocol.
Be illustrated in figure 2 as the relation between the Component interface model element.
Second step: the voip network protocol component is divided;
The problem of overriding concern was the granularity of member when protocol stack was carried out the member division.Although undersized can improve the reusability of member, increased simultaneously the dependence between the member; The opposite excessive dependence that has reduced between the member of granularity, but also reduced simultaneously the reusability of member.Secondly also need consider the functional requirement of upper layer application.Upper layer application may only need to use the partial function (for example encryption and decryption functions of agreement) of protocol stack sometimes, can satisfy the function needs if only comprise one or more protocol components of needs, can increase undoubtedly the utilization ratio of software code.
In " procotol Method of Component-based research and implementation ", the member dividing mode is that for example H.323 protocol stack just can be divided into H.225 protocol component and H.245 protocol component according to concrete application service in the protocol stack.The advantage of this division is easy division, is easy to describe, shortcoming is not take into full account the H.323 characteristics of protocol stack, namely at member H.225 with H.245 all include the protocol state machine part in the member, once typically H.323 call out and to use H.225 state machine and finish negotiation, also will use H.245 state machine and finish capabilities exchange.Also can produce repeatedly unnecessary component interactive if use above-mentioned member dividing mode not only can produce bulk redundancy, and can't use separately the conformation function of signaling.
In order to make sub-member have suitable granularity and to satisfy various functional requirements, this method is by analyzing the protocol interaction process of VoIP conversation, and the sending and receiving, protocol status control, the audio/video data that the function of protocol stack are summarized as signaling generate and the media sending and receiving.So determine the angular divisions from the protocol stack function, the VoIP protocol stack be divided into 4 classes such as protocol state machine member, protocol analysis member, audio/video encoding and decoding member and media transmission protocol resolution component.The protocol analysis member is finished the parsing of signaling protocol in the protocol stack (such as the H.225 and H.245 agreement in the agreement H.323), can construct and resolve the signaling protocol packet; The state machine member is realized the state control to whole communication process; Audio/video encoding and decoding member is realized collection and coding, decoding and the broadcast to audio/video information, and every kind of code decode algorithm is to an audio/video encoding and decoding member; Media information after the media delivery member is used for transmission and accepts coding.This dividing mode can not only improve the cohesion of component inside, and can reduce the degree of coupling between the member.In addition, this division methods is so that the functional unit of sub-member after by secondary encapsulation can be contained the function of VoIP protocol stack substantially, and such as structure and transmission, the state machine etc. of signaling, and each functional unit can relatively independent being called.
Simultaneously, for the assembling that makes things convenient for member with based on the secondary development of componentization protocol stack, demonstrate fully high efficiency and the flexibility of protocol stack componentization, this method proposes again and has realized the atomic operation member.Itself does not realize concrete protocol function the atomic operation member, is the again encapsulation that protocol component is called.Can encapsulate a protocol component by the atomic operation member and provide comprehensive, consistent atomic operation calling interface for the top layer application, also can make up and call the concrete function that a plurality of protocol components are realized some protocol stacks, sending and receiving such as signaling, thereby the specific implementation details of shielding protocol component at utmost improves the secondary development efficient based on the componentization protocol stack.Comprise H.225 and atomic operations such as protocol message, message sink, message response H.245 such as H.323 atomic operation member, the atomic operation of protocol message class has used the protocol analysis member to finish transmission to these message; The message sink atomic operation is resolved the message that receives type and the field of message with the protocol analysis member; The message response atomic operation has made up state machine and has closed the protocol analysis member, and the message of receiving is sent response message.As shown in Figure 3, based on above-mentioned division principle, take protocol stack H.323 as example, such as mistake! Do not find Reference source.Shown in, H.323 H.323 protocol stack can be divided into atomic operation member, H.323 state machine member, 5 large classes such as protocol analysis member, audio/video encoding and decoding member, RTP/RTCP media transmission protocol resolution component H.323.Since Session Initiation Protocol with H.323 can use identical media transmission protocol RTP/RTCP, so H.323 the audio/video encoding and decoding member of protocol stack and RTP/RTCP media delivery member can be reused in the Session Initiation Protocol stack.
The 3rd step: the extraction of atomic operation; Atomic operation has certain function, can not segment in the protocol interaction process the most basic performance element.It is by the Function Decomposition that VoIP protocol interaction process is carried out with to the extraction of VoIP protocol component function encapsulation, the executable operations that some of generation are basic; Hang down the design object of two aspects of coupling for the high cohesion that reaches atomic operation, the present invention proposes the atomic operation extraction model in order to instruct the extraction of atomic operation.The atomic operation extraction model be atomic operation extract and atomic operation design application in the standards and norms that should follow, model definition what be atomic operation, how construct atomic operation, how define the content such as atomic operation interface.The atomic operation extraction model has stipulated that one group of storehouse and that is comprised of the ground atom operation overlaps the standard that makes up between the atomic operation, and these atomic operations can be combined to form new attacking and defending behavior by certain stipulations mode.The atomic operation extraction model is divided into functional mode, interface model.
(1) functional mode
Functional mode (function model) is functional definition and the functional restraint of atomic operation.Atomic operation is the most basic atomic function that can not segment in the VoIP protocol interaction process, common complete VoIP conversation is that upper layer application also can select arbitrarily one or several atomic operation to finish some specific functions by being combined to form according to certain compound mode of several atomic operations.Realization such as Method A among the figure is to be realized by atomic operation AO1, AO2, AO3 and AO4 combination, finally finishes certain function by the orderly execution of AO1, AO2, AO3 and AO4.Atomic operation is to the encapsulation of the upper strata of protocol component interface function, and one group that forms by the polymerization to the component interface function can be the used new functional interface of special function (as only sending Setup message) demand.From range of application, protocol component provides general, and the interface of complete function, atomic operation then are the special purpose interfaces that conveniently calls, provide for special functional demands; Technical from realizing, but it both an interface function in the tunneling member form an atomic operation, also a plurality of interface functions of polymerizable protocol component form an atomic operation.Functional mode as shown in the figure.(a) showed the situation of member function interface of atomic operation encapsulation among the figure, and (b) expression encapsulated the situation of a plurality of functional interfaces of member for atomic operation.
(2) interface model
Interface model (interface model) is semantic description and the linguistic constraints that atomic operation externally provides calling interface.Interface model has been stipulated uniqueness and the independence of the interface that atomic operation externally provides.Each atomic operation that platform provides provides calling interface to upper layer application, provides numerous calling interfaces to compare with member, and atomic operation only externally provides unique calling interface, and therefore, the atomic operation interface is the unique identification of atomic operation.For upper layer application, realize the inside of atomic operation is to be in the black box state, sightless, and the calling interface of atomic operation is visible, calling interface is the unique channel of extraneous contact atomic operation built-in function, therefore, the atomic operation interface will doing some and semantically describe the atomic operation function.The atomic operation interface is the exchange channels that reaches between atomic operation and the atomic operation between upper layer application and the atomic operation, yet the interactive mode between them is not random out-of-sequence, but follows certain call constraint and linguistic constraints.But atomic operation interface model formalization representation is:
● fc is the interface model of atomic operation, the unique identification of atomic operation interface;
● func is the function of atomic operation, is the inner concrete function of realizing of atom;
● lang is the semantic description of atomic operation interface function;
● const is the linguistic constraints of atomic operation interface;
● rela is the call constraint between the atomic operation interface.
According to atomic operation extraction model proposed above, the present invention divide safety pin H.323 network carried out the atomic operation extraction, extract altogether 23 kinds of atomic operations of atomic operation three major types, it is concrete to distribute that it is as shown in the table.
Table 1H.323 network atomic operation statistics
The atomic operation type H.323 network
Gatekeeper's class 5
The terminal class 14
Assisted class 4
Add up to 23
The 4th step: the realization of voip network protocol component;
The present invention sets forth the protocol stack componentization and realizes the particular content that relates to as an example of protocol stack H.323 example.H.323 be one of protocol stack of relative complex, its content from mutual, consult to communication, from encoding and decoding to the transmission, almost contained all functions of network protocol stack, it is had universality and versatility as example.
(1) the sub-protocol member is realized: H.323 protocol component is mainly used in finishing the functions such as state machine, protocol analysis, audio/video encoding and decoding and media delivery of protocol stack, and its internal structure is basic identical, simplifies rear such as mistake! Do not find Reference source.Shown in.The main functionality of protocol component realizes by corn module, and commit module is encapsulated as user-defined code by interactive interface and entrusts and register to corn module, and the personal code work after the registration can be carried out in running by protocol component.Control module is mainly finished the translation function of corn module interface, because the corn module that different protocol components provides is different, so need to be unified internal interface with the interface conversion of corn module.For avoiding internal interface to expose the structural information of protocol component, the fail safe of guarantee agreement member and confidentiality, need at first carry out the encapsulation that the type such as formal argument is hidden or called to interface name to internal interface by adaptation module, the custom interface that then extracts whole protocol component calls for external program.
(2) the atomic operation member is realized: the atomic operation implementation of component is different from the realization of protocol component.Main reference of the present invention the primitive concept of agreement H.323, atomic operation is defined on the basis of primitive, the calling interface that provides based on primitive is provided for top layer.H.323 primitive is used for describing application layer and the structure of H.323 transmitting between the protocol stack or message.H.323 defined 4 types primitive, namely asked, indicate, respond and confirm.The number of parameters of each primitive is variable, and this is determined by related procedure.The communication information of these Parametric Representation application layers and protocol stack.H.323 atomic operation is the realization to primitive, also mainly by asking, indicate, respond and confirming that 4 class atomic operations form.The internal structure of atomic operation such as a mistake! Do not find Reference source.Shown in.Although H.323 the atomic operation member only has 4 classes, every class atomic operation can decompose according to quantity and the parameter value of parameter again, forms a plurality of single steps to protocol component and calls.The inside of atomic operation member realizes it mainly being to extract primitive and each primitive is analyzed and decomposed from operation-interface, then the protocol component single step after will decomposing is called to be committed to and is called formation, single step is called in real time according to priority by Executive Module and processes.
The 5th step: voip network protocol component assembling;
Member must be through assembling the application system that could form based on member, and the Components Composition technology is based on the core technology of component development.Components Composition is exactly service and the coupling between the interface and the mapping of determining that member provides, and the constraints that will satisfy soon or dispose future is provided.Wherein, the coupling of interface and mapping are finished by " glue code ".The interaction problems that when Components Composition, relates to member.The present invention has studied and has designed a kind of component interactive model based on message queue, such as mistake on the basis of using for reference the data/address bus interactive mode! Do not find Reference source.Shown in.Take message queue as carrier, each member need message to be processed be committed to message queue, then message is processed in real time according to the priority equal weight information of message by message processing program based on the component interactive model of message queue.
This method comprises to the assembling of protocol component with to the assembling of atomic operation member the assembling of member.The assembling of protocol component is that the atomic operation member is finished by custom interface, interactive interface (also being service interface) and the message queue of protocol component.Each protocol component all has custom interface, can inquire about service and the interactive interface function structure body that this member provides, the interface function title that this structure comprises, interface function return value type, interface function return value quantity, interface function number of parameters and interface function parameter type by custom interface.The atomic operation member is sent to message queue with the service that it needs, and the custom interface that message queue is processed each member of function call carries out service adapter, and adaptive success is then returned interactive interface function structure body to the atomic operation member.The atomic operation member is resolved the interactive interface function that this structure can extract this service, the service of using it to need.When service needed the combination of a plurality of members to finish, message queue also was responsible for adaptive between the member.Adaptive as follows between the protocol component: protocol component is sent to message queue with the service that its other members that need provide, the custom interface that message queue processing function calls each member in the same manner carries out service adapter, adaptive success is then returned interactive interface function structure body to this member, notifies its operable interactive interface.The atomic operation member to the composition model of protocol component as shown in Figure 6.
Upper layer application to the assembling process of atomic operation member and protocol component is:
1) the upper layer application interface sends request primitive to the atomic operation member;
2) the atomic operation member extracts and analyzes the request primitive that receives, and primitive is decomposed into a plurality of service requests, and puts it into message queue;
3) message queue is served the interactive interface of required protocol component and is called by adaptive obtaining, and feeds back to the atomic operation member after complete;
4) the atomic operation member is waited for next request primitive behind upper layer application feedback execution result.
The atomic operation secondary encapsulation that comprises in the atomic operation member corresponding sub-protocol member.It has realized message queue, thereby has finished the assembling to protocol component.Upper layer application is carried out corresponding atomic operation by the unified interface of calling the atomic operation member, just can use corresponding underlying protocol member, has saved the major part " glue code " of assembling process for upper layer application.This method provides simple assemble method for the upper strata, and the member user needn't understand the VoIP protocol stack in depth and also can easy to doly assemble.Atomic operation can also combination in any, has improved thus the reusability of member.

Claims (6)

1.VoIP the procotol Method of Component-based is characterized in that, may further comprise the steps:
The first step: planned network protocol component interface: comprise customization and mutual two class interfaces, wherein: custom interface is used for member self function is customized and perfect, interactive interface be used for member and other member mutual, communicate by letter, so that cooperate each other between the member; Custom interface comprises service and the service interface function structure that member provides; Interactive interface comprises that shared data, service provide operation, service request operation, outwards initiate a message, response external message, the pipeline of data writing, pipeline and other component interface of sense data; Component interface has interface behavior stipulations and need satisfy interface protocol;
Second step: the voip network protocol component is divided: the protocol interaction process to the VoIP conversation is analyzed, the sending and receiving, protocol status control, the audio/video data that the function of protocol stack are divided into signaling generate and the media sending and receiving, and the VoIP protocol stack is divided into protocol state machine member, protocol analysis member, audio/video encoding and decoding member and media transmission protocol resolution component 4 classes; The protocol analysis member is finished the parsing of signaling protocol in the protocol stack, structure and parsing signaling protocol packet; The state machine member is to the state control of whole communication process; Audio/video encoding and decoding member is realized collection and coding, decoding and the broadcast to audio/video information, and every kind of code decode algorithm is to an audio/video encoding and decoding member; The media delivery member is used for the media information behind the sending and receiving coding;
The 3rd step: extract atomic operation: the atomic operation extraction model is divided into functional mode, interface model in order to instruct the extraction of atomic operation; Functional mode is functional definition and the functional restraint of atomic operation, and interface model is semantic description and the linguistic constraints that atomic operation externally provides calling interface; Atomic operation only externally provides unique calling interface, and the atomic operation interface is the unique identification of atomic operation; Atomic operation interface model formalization representation is: fc is the interface of atomic operation; Func is the function of atomic operation; Lang is the semantic description of atomic operation interface function; Const is the linguistic constraints of atomic operation interface; Rela is the call constraint between the atomic operation interface;
The 4th step: the realization of voip network protocol component:
A, sub-protocol member are realized: the sub-protocol member is finished state machine, protocol analysis, audio/video encoding and decoding and the media delivery of protocol stack; The commit module of protocol component is encapsulated as trust by interactive interface with user-defined code and registers to corn module, personal code work after the registration can be carried out in running by protocol component, control module is unified internal interface with the interface conversion of corn module, adaptation module is at first carried out the encapsulation that the type such as formal argument is hidden or called to interface name to internal interface, and the custom interface that then extracts whole protocol component calls for external program;
B, atomic operation member realize: atomic operation is defined on the basis of primitive and uses the calling interface that provides based on primitive for top layer, extract primitive and each primitive is analyzed and decomposed from operation-interface, then the protocol component single step after will decomposing is called to be committed to and is called formation, single step is called in real time according to priority by Executive Module and processes;
The 5th step: voip network protocol component assembling: determine service and the coupling between the interface and mapping that member provides, and the constraints that will satisfy soon or dispose future is provided.
2. the protocol component based method of voip network as claimed in claim 1, it is characterized in that, wherein use for top layer by atomic operation Component encapsulating protocol component the atomic operation calling interface is provided, or make up and call the signaling sending and receiving that a plurality of protocol components are realized protocol stacks, the atomic operation use protocol analysis member of protocol message class has been finished the transmission to message; The message sink atomic operation is resolved the message that receives type and the field of message with the protocol analysis member; The message response atomic operation has made up state machine and has closed the protocol analysis member, and the message of receiving is sent response message.
3. the protocol component based method of voip network as claimed in claim 1, it is characterized in that, wherein the assembling of member is comprised to the assembling of protocol component with to the assembling of atomic operation member, the assembling of protocol component is that the atomic operation member is by the custom interface of protocol component, interactive interface and message queue are finished, inquire about service and the interactive interface function structure body that this member provides by custom interface, the interface function title that this structure comprises, interface function return value type, interface function return value quantity, interface function number of parameters and interface function parameter type, the atomic operation member is sent to message queue with the service that it needs, the custom interface that message queue is processed each member of function call carries out service adapter, adaptive success is then returned interactive interface function structure body to the atomic operation member, and the atomic operation member is resolved the interactive interface function that extracts this service behind this structure.
4. such as claim 1 or the protocol component based method of 3 described voip networks, it is characterized in that, wherein when service needs the combination of a plurality of members to finish, adaptive between the negative member of message queue: protocol component is sent to message queue with the service that its other members that need provide, the custom interface that message queue processing function calls each member in the same manner carries out service adapter, adaptive success is then returned interactive interface function structure body to this member, notifies its spendable interactive interface.
5. such as claim 1 or the protocol component based method of 2 or 3 described voip networks, it is characterized in that, wherein upper layer application to the assembling process of atomic operation member and protocol component is:
1) the upper layer application interface sends request primitive to the atomic operation member;
2) the atomic operation member extracts and analyzes the request primitive that receives, and primitive is decomposed into a plurality of service requests, and puts it into message queue;
3) message queue is served the interactive interface of required protocol component and is called by adaptive obtaining, and feeds back to the atomic operation member after complete;
4) the atomic operation member is waited for next request primitive behind upper layer application feedback execution result.
6. such as claim 1 or the protocol component based method of 2 or 3 described voip networks, it is characterized in that, wherein the voip network protocol component also comprises the atomic operation member, and this member is the again encapsulation that protocol component is called.
CN201210592733.XA 2012-12-31 2012-12-31 VoIP (Voice over Internet Protocol) Internet protocol component-based development method Expired - Fee Related CN103078857B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210592733.XA CN103078857B (en) 2012-12-31 2012-12-31 VoIP (Voice over Internet Protocol) Internet protocol component-based development method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210592733.XA CN103078857B (en) 2012-12-31 2012-12-31 VoIP (Voice over Internet Protocol) Internet protocol component-based development method

Publications (2)

Publication Number Publication Date
CN103078857A true CN103078857A (en) 2013-05-01
CN103078857B CN103078857B (en) 2014-09-17

Family

ID=48155261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210592733.XA Expired - Fee Related CN103078857B (en) 2012-12-31 2012-12-31 VoIP (Voice over Internet Protocol) Internet protocol component-based development method

Country Status (1)

Country Link
CN (1) CN103078857B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245487A (en) * 2014-06-11 2016-01-13 中兴通讯股份有限公司 Method and device for scheduling protocol stack in remote presentation system
CN109147230A (en) * 2018-08-07 2019-01-04 中国建设银行股份有限公司 A kind of operating method and device of the financial self-service equipment based on WOSA
CN110322230A (en) * 2019-07-08 2019-10-11 佛山市众联成云科技有限公司 A kind of Workflow system docks specification implementation method with operation system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556641A (en) * 2004-01-01 2004-12-22 浙江大学 Structuralization realization method of communication protocol
US20080031230A1 (en) * 2006-08-03 2008-02-07 Bluenote Networks, Inc. System and method for object registration in a VoIP environment
CN101635717A (en) * 2009-08-21 2010-01-27 中国科学院软件研究所 Processing method and processing system of novel component-based network protocol

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556641A (en) * 2004-01-01 2004-12-22 浙江大学 Structuralization realization method of communication protocol
US20080031230A1 (en) * 2006-08-03 2008-02-07 Bluenote Networks, Inc. System and method for object registration in a VoIP environment
CN101635717A (en) * 2009-08-21 2010-01-27 中国科学院软件研究所 Processing method and processing system of novel component-based network protocol

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
任家东 等: "网络协议的构件化方法研究与实现", 《微计算机信息》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245487A (en) * 2014-06-11 2016-01-13 中兴通讯股份有限公司 Method and device for scheduling protocol stack in remote presentation system
CN105245487B (en) * 2014-06-11 2019-10-11 中兴通讯股份有限公司 The dispatching method and device of protocol stack in telepresence system
CN109147230A (en) * 2018-08-07 2019-01-04 中国建设银行股份有限公司 A kind of operating method and device of the financial self-service equipment based on WOSA
CN110322230A (en) * 2019-07-08 2019-10-11 佛山市众联成云科技有限公司 A kind of Workflow system docks specification implementation method with operation system

Also Published As

Publication number Publication date
CN103078857B (en) 2014-09-17

Similar Documents

Publication Publication Date Title
CN109246251B (en) Micro-service calling method, device, system, equipment and readable storage medium
CN106713018B (en) Method for scheduling message queue service data and implementing message queue
CN101826987B (en) System and method for supporting mixed service based on integrated open network
CN103873332A (en) Method for providing enterprise service bus of unified service environment by tax system
CN100377556C (en) Structuralization realization method of communication protocol
CN105429958A (en) Enterprise application platform system based on Android development
CN102131001A (en) Remote control system and method of mobile communication terminal
CN102521409B (en) Method for updating data of database in batch mode based on communication protocol
CN104135536A (en) Data interaction method of Web management system based on Json data protocols
CN103078857B (en) VoIP (Voice over Internet Protocol) Internet protocol component-based development method
CN103442032A (en) Vehicle navigation method and system based on cloud service
CN103268230A (en) Method used for constructing cloud computing information management platform capable of expanding service
WO2016011764A1 (en) Communication method and system based on assembled communication protocol stack
CN101155174B (en) Remote subscriber interface service implementing method based on common protocol
CN102118397A (en) Teleconference communication method and system based on mobile phones
CN102984272B (en) A kind of system of remote control mobile terminal communication capacity and method thereof
CN109861998A (en) A kind of plug-in type dynamic analysis system and method based on Big Dipper short message agreement
CN101304410A (en) Intelligent information platform for distributed WEB
CN105427149A (en) Cross-border e-commerce BPO service method and device based on SOA expansion framework
CN104618319A (en) Method for extending application interface for future applications
CN102195959A (en) Method and device for resolving extensible markup language (XML) data of session initiation protocol (SIP) signaling
CN103581170A (en) Middleware engine for intelligent integration in unified communication system
CN101155177B (en) Data channel sharing system and method based on shared protocol
CN101217413A (en) A centralized debugging system and centralized debugging method of extensible unit in the extensible system
CN102404391A (en) WEB service invoking method oriented to interface

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140917

Termination date: 20141231

EXPY Termination of patent right or utility model