CN103078857B - 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 PDFInfo
- Publication number
- CN103078857B CN103078857B CN201210592733.XA CN201210592733A CN103078857B CN 103078857 B CN103078857 B CN 103078857B CN 201210592733 A CN201210592733 A CN 201210592733A CN 103078857 B CN103078857 B CN 103078857B
- Authority
- CN
- China
- Prior art keywords
- interface
- atomic operation
- protocol
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000011161 development Methods 0.000 title abstract description 17
- 230000002452 interceptive effect Effects 0.000 claims abstract description 36
- 238000000605 extraction Methods 0.000 claims abstract description 20
- 238000013507 mapping Methods 0.000 claims abstract description 6
- 239000000284 extract Substances 0.000 claims description 17
- 238000005538 encapsulation Methods 0.000 claims description 16
- 230000008569 process Effects 0.000 claims description 14
- 230000011664 signaling Effects 0.000 claims description 14
- 230000006978 adaptation Effects 0.000 claims description 12
- 230000005540 biological transmission Effects 0.000 claims description 12
- 230000004044 response Effects 0.000 claims description 12
- 240000008042 Zea mays Species 0.000 claims description 11
- 235000005824 Zea mays ssp. parviglumis Nutrition 0.000 claims description 11
- 235000002017 Zea mays subsp mays Nutrition 0.000 claims description 11
- 235000005822 corn Nutrition 0.000 claims description 11
- 230000003993 interaction Effects 0.000 claims description 8
- 230000003044 adaptive effect Effects 0.000 claims description 6
- 230000006854 communication Effects 0.000 claims description 6
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 230000013011 mating Effects 0.000 claims description 3
- 238000012545 processing Methods 0.000 claims description 3
- 230000007547 defect Effects 0.000 abstract 1
- 230000018109 developmental process Effects 0.000 description 13
- 238000013461 design Methods 0.000 description 12
- 230000008878 coupling Effects 0.000 description 7
- 238000010168 coupling process Methods 0.000 description 7
- 238000005859 coupling reaction Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 4
- 239000003292 glue Substances 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 239000000203 mixture Substances 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 230000033772 system development Effects 0.000 description 2
- 235000006719 Cassia obtusifolia Nutrition 0.000 description 1
- 244000201986 Cassia tora Species 0.000 description 1
- 235000014552 Cassia tora Nutrition 0.000 description 1
- 101000911390 Homo sapiens Coagulation factor VIII Proteins 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 238000010230 functional analysis Methods 0.000 description 1
- 102000057593 human F8 Human genes 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000012536 packaging technology Methods 0.000 description 1
- 238000006116 polymerization reaction Methods 0.000 description 1
- 229940047431 recombinate Drugs 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
- 230000005641 tunneling Effects 0.000 description 1
Landscapes
- Computer And Data Communications (AREA)
- Telephonic Communication Services (AREA)
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
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
Along with the develop rapidly of computer technology, the complexity of software systems constantly increases and the demand of VoIP service is constantly changed and promoted, add voip network agreement and itself have complex structure and diversified feature, traditional VoIP protocol stack is difficult to meet 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 reasonably implementation, protocol component based to voip network, realize the reasonable encapsulation of procotol, optimization is rationally called service that agreement realizes, and keeps good backward compatibility.
Member is software module packed, specification, reusable.It makes developer in new system development, can make full use of over the knowledge, experience and the functional module that accumulate in the process of system development, and needn't all start from scratch, thereby has avoided the duplication of labour in software development.Can be divided into two class problems to the componentization of procotol: the division of member and assembling, the assembling method of how to divide protocol component and make it have suitable granularity and member.
NSPCF (network sub-protocol framework) has proposed by level, by function, mixed method with by the Method of Component-based of dividing procotol with object.According to level form, every layer of communication protocol is carried out to componentization exactly by the Method of Component-based of level, for last layer member provides service interface.Be to carry out Groupware encapsulation on the basis of variety of protocol being carried out to functional analysis, function division 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 (or being called realization mechanism).User removes to call each building blocks of function according to needed function.Hybrid component method will be pressed the method for level and by the method combination of function, and it can configure the agreement and the combination of the protocol component of design in advance that obtain by one group of protocol function, so that greater flexibility to be provided.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; There are general user and power user.User just can select according to the requirement of application easily like this, and the stability of object member is better, and what loss is performance do not have yet." network sub-protocol member strategy study " document points out that by 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.The application layer services providing according to ICP/IP protocol stack is divided member.From the angle of application, for different application demands, select suitable lower floor's sub-protocol, even can split sub-protocol, recombinate, finally utilize the modularization mechanism of LINUX that this combination of protocols is formed to corresponding member.
In prior art, can realize easily member as required by the Method of Component-based of level, improve 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 is all difficult to be protected through execution efficiency, the fail safe of the protocol stack of change.That each intimate sub-member needs the unified specification of formulation in addition to manage by the shortcoming of building blocks of function method.The shortcoming of hybrid component method is not have specific specification to instruct componentization.The Method of Component-based shortcoming of pressing object is also obvious, and the granularity of protocol component is generally all larger, and the degree of coupling of member is relatively high, and protocol flexibility is 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.Solve by the shortcoming of 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, comprises the following steps:
The first step: planned network protocol component interface: comprise customization and mutual two class interfaces, wherein: custom interface is for customizing and perfect member self function, interactive interface for member and other member alternately with communicate by letter, make to cooperate each other between 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, the pipeline of sense data; Component interface has interface behavior stipulations and need meet interface protocol;
Second step: voip network protocol component is divided: the protocol interaction process to VoIP call 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 media sending and receiving, and 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; Protocol analysis member completes the parsing of signaling protocol in protocol stack, structure and parsing signaling protocol packet; The state control of state machine member to whole communication process; Audio/video encoding and decoding member is realized collection and coding, decoding and the broadcasting to audio/video information, every kind of corresponding audio/video encoding and decoding member of code decode algorithm; Media delivery member is for sending and accept the media information after coding;
Except above-mentioned 4 quasi-protocol members, voip network protocol component also comprises atomic operation member.Atomic operation member comprises many atomic operations, and itself is not realized concrete protocol function, is the encapsulation again that protocol component is called.Apply atomic operation calling interface is provided for top layer by atomic operation Component encapsulating protocol component, or combination calls multiple protocol components and realize the signaling sending and receiving of protocol stack, the atomic operation of protocol message class uses protocol analysis member to complete the transmission to message; Message sink atomic operation is resolved the message receiving type and the field of message with protocol analysis member; Message response atomic operation has combined state machine and protocol analysis member, and the message of receiving is sent to response message.
The 3rd step: extraction atomic operation: atomic operation extraction model, in order to instruct the extraction of atomic operation, is divided into functional mode, interface model; Functional mode is function 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, atomic operation interface is the unique identification of atomic operation; Atomic operation interface model formalization representation is: the interface that fc is 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 atomic operation interface;
The 4th step: the realization of voip network protocol component:
A, protocol component are realized: protocol component completes the functions such as state machine, protocol analysis, audio/video encoding and decoding and the media delivery of protocol stack; Protocol component internal structure comprises commit module, corn module, control module, internal interface module and adaptation module; Commit module is encapsulated as user-defined code to entrust and register to corn module by interactive interface, personal code work after registration can be carried out by protocol component in running, and control module is unified internal interface by the interface conversion of corn module; Adaptation module is carried out interface name to internal interface and is hidden or call formal argument, and the custom interface that extracts whole protocol component calls for external program;
B, atomic operation member realize: atomic operation is defined on the basis of primitive as top layer application provides the calling interface based on primitive, extract primitive and each primitive is analyzed and decomposed from atomic operation interface, then the protocol component single step after decomposing is called to be committed to and call queue, single step is called in real time and processed according to priority by Executive Module;
The 5th step: voip network protocol component assembling: determine mating and mapping between service that protocol component and atomic operation member provide and protocol component interface and atomic operation component interface.
Wherein the coupling of interface and mapping complete by " glue code ".
Wherein the assembling of member is comprised to the assembling to protocol component and the assembling to atomic operation member, the assembling of protocol component is that atomic operation member is by the custom interface of protocol component, interactive interface and message queue complete, inquire about by custom interface 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, the service that atomic operation member is needed is sent to message queue, the custom interface that message queue is processed the each member of function call carries out service adapter, adaptive success is returned to interactive interface function structure body to atomic operation member, atomic operation member is resolved the interactive interface function that extracts this service after this structure.
Wherein in the time that service needs the combination of multiple members to complete, message queue is responsible for the adaptation between member: the service that other members that protocol component is needed provide is sent to message queue, the custom interface that message queue processing function calls each member in the same manner carries out service adapter, adaptive success is returned to 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) upper layer application interface sends request primitive to atomic operation member;
2) atomic operation member extracts and analyzes the request primitive receiving, and primitive is decomposed into multiple service requests, and puts it into message queue;
3) message queue obtains serving the interactive interface of required protocol component and calling by adaptation, feeds back to atomic operation member after complete;
4) atomic operation member is waited for next request primitive after upper layer application feedback execution result.
Beneficial effect of the present invention:
1, member dividing mode: protocol stack 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 by function according to the protocol interaction process of VoIP call.This dividing mode can not only improve the cohesion of component inside, reduce the degree of coupling between member, and this functional unit after making protocol component by secondary encapsulation can contain the function of VoIP protocol stack substantially, what simultaneously each functional unit can be relatively independent is called.Meanwhile, in order to facilitate the assembling of member and the secondary development based on componentization protocol stack, this method has proposed again atomic operation member.The encapsulation again that it calls underlying protocol member, each protocol component externally provides calling interface according to the atomic operation interface definition of unified standard, thereby has shielded bottom layer realization details, at utmost improves the secondary development efficiency based on componentization protocol stack.
2, atomic operation extracting method: the present invention proposes atomic operation extraction model in order to instruct the extraction of atomic operation.Atomic operation extraction model is the standards and norms that atomic operation extracts and atomic operation design should be followed in applying, model definition what be atomic operation, how construct atomic operation, how define the contents such as atomic operation interface.Atomic operation extraction model has specified that is operated the specification combining between the storehouse that forms and a set of atomic operation by ground atom, and these atomic operations can be combined to form the functional unit that upper strata needs by certain stipulations mode.
3, from the angle of protocol stack function, voip network agreement is divided into member.In order to facilitate secondary development, the method has also proposed atomic operation member, it is by the encapsulation again 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 bottom layer realization details.The atomic operation comprising in atomic operation member extracts with the atomic operation extraction model that this method proposes.Upper layer application, by combination atomic operation, can be used underlying protocol member, has saved the complicated processes of direct-assembling underlying protocol member, has improved the efficiency of secondary development.
4, utilize the present invention to realize protocol stack has H.323 been carried out to 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, 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 complete its function, and has consistent unified interface.
5, the atomic operation secondary encapsulation comprising in atomic operation member corresponding protocol component.It has realized message queue, thereby has completed the assembling to protocol component.Upper layer application is carried out corresponding atomic operation by calling the unified interface of atomic operation member, just can use corresponding underlying protocol member, for upper layer application has been saved the major part " glue code " of assembling process.This method provides simple assemble method for upper strata, and member user needn't understand 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.
Brief description of the 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 Component interface model element;
Fig. 3 is encapsulation and the combination of atomic operation member to infrastructure;
Fig. 4 is protocol component cut-away view in the present invention;
Fig. 5 is Atom control member cut-away view of the present invention;
Fig. 6 is the composition model of Atom control member of the present invention to protocol component;
Embodiment
Below in conjunction with accompanying drawing, the invention will be described further.
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 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 is also mainly reflected in Interface design.Member has 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 specification separately.Because these standards are all for general case design, thus its too complexity definition and be not exclusively applicable to exploitation of protocol component, according to the feature of protocol component, and with reference to above-mentioned standard, new interface model has been proposed at this.
The model of protocol component interface is as follows:
1, each member must have customization and mutual two class interfaces, wherein: custom interface is for customizing and perfect member self function, only limiting to member self uses, interactive interface for member and other member alternately, communicate by letter, make cooperation each other between member, complete the allomeric function of software systems.
2, custom interface also claims functional interface, mainly comprises service and service interface function structure that member provides, is conventionally provided by member assembler.The service element externally providing is not provided custom interface.
3, interactive interface also claims service interface, mainly comprises that shared data, service provide operation, service request operation, outwards initiate a message, response external message, the pipeline of data writing, the pipeline of sense data.
4, component interface has interface behavior stipulations and need meet interface protocol.
Be illustrated in figure 2 the relation between Component interface model element.
Second step: voip network protocol component is divided;
When protocol stack is carried out to member division, the problem of overriding concern is the granularity of member.Although undersized can improve the reusability of member, increased the dependence between member simultaneously; The contrary excessive dependence having reduced between member of granularity, but also reduced the reusability of member simultaneously.Secondly also need to consider the functional requirement of upper layer application.Upper layer application may only need to be used the partial function (encryption and decryption functions of for example agreement) of protocol stack sometimes, can meet 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 ", 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 protocol stack.The advantage of this division is easy division, is easy to describe, shortcoming is not take into full account the H.323 feature of protocol stack, at member H.225 with H.245 all include protocol state machine part in member, once typically H.323 call out and should use H.225 state machine and complete negotiation, also will use H.245 state machine and complete capabilities exchange.Also can produce repeatedly unnecessary component interactive if use above-mentioned member dividing mode not only can produce bulk redundancy, and cannot use separately the conformation function of signaling.
In order to make sub-member there is suitable granularity and to meet various functional requirements, this method is by the protocol interaction process of VoIP call is analyzed, and the sending and receiving, protocol status control, the audio/video data that the function of protocol stack are summarized as to signaling generate and media sending and receiving.So determine the angular divisions from protocol stack function, 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.Protocol analysis member completes the parsing of signaling protocol in protocol stack (as the H.225 and H.245 agreement in agreement H.323), can construct and resolve signaling protocol packet; 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 broadcasting to audio/video information, and every kind of code decode algorithm is to an audio/video encoding and decoding member; Media delivery member is for sending and accept the media information after coding.This dividing mode can not only improve the cohesion of component inside, and can reduce the degree of coupling between member.In addition, the functional unit after this division methods makes protocol component by secondary encapsulation can be contained the function of VoIP protocol stack substantially, such as structure and transmission, the state machine etc. of signaling, and relatively independent being called of each functional unit energy.
Meanwhile, in order to facilitate the assembling of member and the secondary development based on componentization protocol stack, fully demonstrate high efficiency and the flexibility of protocol stack componentization, this method proposes again and has realized atomic operation member.Itself does not realize concrete protocol function atomic operation member, is the encapsulation again that protocol component is called.Can encapsulate a protocol component by atomic operation member applies comprehensive, consistent atomic operation calling interface is provided for top layer, also can combine the concrete function that calls multiple protocol components and realize some protocol stacks, as the sending and receiving of signaling, thereby the specific implementation details of shielding protocol component, at utmost improves the secondary development efficiency based on componentization protocol stack.H.225 for example atomic operation member H.323 comprise and the atomic operation such as protocol message, message sink, message response H.245, and the atomic operation of protocol message class has used protocol analysis member to complete the transmission to these message; Message sink atomic operation is resolved the message receiving type and the field of message with protocol analysis member; Message response atomic operation has combined state machine and protocol analysis member, and the message of receiving is sent to response message.As shown in Figure 3, based on above-mentioned division principle, taking protocol stack H.323 as example, as shown in Figure 3, 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.Due to 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 Session Initiation Protocol stack.
The 3rd step: the extraction of atomic operation; Atomic operation has certain function, the most basic not subdividable performance element in protocol interaction process.It is the Function Decomposition by VoIP protocol interaction process is carried out and the extraction encapsulation to VoIP protocol component function, some basic executable operations of generation; In order to reach the design object of two aspects of the low coupling of high cohesion of atomic operation, the present invention proposes atomic operation extraction model in order to instruct the extraction of atomic operation.Atomic operation extraction model is the standards and norms that atomic operation extracts and atomic operation design should be followed in applying, model definition what be atomic operation, how construct atomic operation, how define the contents such as atomic operation interface.Atomic operation extraction model has specified that is operated the specification combining between the storehouse that forms and a set of atomic operation by ground atom, and these atomic operations can be combined to form new attacking and defending behavior by certain stipulations mode.Atomic operation extraction model is divided into functional mode, interface model.
(1) functional mode
Functional mode (function model) is function definition and the functional restraint of atomic operation.Atomic operation is most basic not subdividable atomic function in VoIP protocol interaction process, common complete VoIP call is that upper layer application also can select arbitrarily one or several atomic operation to complete some specific functions by being combined to form according to certain compound mode of several atomic operations.If the realization of Method A in figure is to be realized by atomic operation AO1, AO2, AO3 and AO4 combination, finally complete certain function by the orderly execution of AO1, AO2, AO3 and AO4.Atomic operation is the upper strata encapsulation to protocol component interface function, and a group of forming by the polymerization to component interface function can be special function (as only sent Setup message) demand new functional interface used.From range of application, protocol component provides general, the interface of complete function, and atomic operation is the special purpose interface conveniently calling, provide for special functional demands; Technical from realizing, its interface function in both can tunneling member forms an atomic operation, and also multiple interface functions of polymerizable protocol component form an atomic operation.Functional mode as shown in the figure.In figure, (a) shown the situation of member function interface of atomic operation encapsulation, and (b) represent encapsulated the situation of multiple 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 specified 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, provide numerous calling interfaces with member compared with, atomic operation only externally provides unique calling interface, therefore, atomic operation interface is the unique identification of atomic operation.For upper layer application, realize the inside of atomic operation is in 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, atomic operation interface will doing some and semantically describe atomic operation function.Atomic operation interface is the exchange channels between atomic operation and atomic operation and between upper layer application and atomic operation, but interactive mode between them is not random out-of-sequence, but follows certain call constraint and linguistic constraints.Atomic operation interface model can formalization representation be:
● the interface model that fc is atomic operation, the unique identification of atomic operation interface;
● the function that func is 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 atomic operation interface.
According to atomic operation extraction model proposed above, the present invention divide safety pin H.323 network carried out atomic operation extraction, extract altogether 23 kinds of atomic operations of atomic operation three major types, it is concrete distributes that it is as shown in the table.
Table 1H.323 network atomic operation statistics
Atomic operation type | H.323 network |
Gatekeeper's class | 5 |
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 protocol stack componentization and realizes the particular content relating 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 transmission, almost contained all functions of network protocol stack, set it as example and there is universality and versatility.
(1) sub-protocol member is realized: H.323 protocol component has been mainly used in the function such as state machine, protocol analysis, audio/video encoding and decoding and media delivery of protocol stack, and its internal structure is basic identical, after simplification as shown in Figure 4.The main functionality of protocol component is realized by corn module, and commit module is encapsulated as user-defined code to entrust and register to corn module by interactive interface, and the personal code work after registration can be carried out by protocol component in running.Control module mainly completes 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 by 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 to first carry out to internal interface the encapsulation that interface name is hidden or called the types such as formal argument by adaptation module, the custom interface that then extracts whole protocol component calls for external program.
(2) atomic operation member is realized: the realization of atomic operation member is different from the realization of protocol component.The present invention is main with reference to the primitive concept of agreement H.323, atomic operation is defined on the basis of primitive, for top layer is provided by the calling interface providing based on primitive.H.323 primitive is for describing application layer and the structure of H.323 transmitting between protocol stack or message.H.323 defined the primitive of 4 types, 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, is also mainly made up of request, instruction, response and confirmation 4 class atomic operations.The internal structure of atomic operation as shown in Figure 5.Although H.323 atomic operation member only has 4 classes, every class atomic operation can decompose according to the quantity of parameter and parameter value again, forms multiple single steps to protocol component and calls.Realize the inside of atomic operation member is mainly extract primitive and each primitive is analyzed and decomposed from operation-interface, then the protocol component single step after decomposing is called to be committed to and call queue, single step is called in real time and processed according to priority by Executive Module.
The 5th step: voip network protocol component assembling;
Member must could form the application system based on member through assembling, and member packaging technology is the core technology based on component development.Member assembling is exactly to determine mating and mapping between service that member provides and interface, and provides and meet the constraints that is about to or disposes in the future.Wherein, the coupling of interface and mapping complete by " glue code ".In the time that assembling, member relates to the interaction problems of member.The present invention, using for reference on the basis of data/address bus interactive mode, has studied and has designed a kind of component interactive model based on message queue, as shown in Figure 6.Component interactive model based on message queue is taking message queue as carrier, and message to be processed need is committed to message queue by each member, then message is processed in real time according to the priority equal weight information of message by message processing program.
This method comprises the assembling to protocol component and the assembling to atomic operation member to the assembling of member.The assembling of protocol component is that atomic operation member completes by custom interface, interactive interface (being also service interface) and the message queue of protocol component.Each protocol component all has custom interface, can inquire about by custom interface service and the interactive interface function structure body that this member provides, interface function title, interface function return value type, interface function return value quantity, interface function number of parameters and interface function parameter type that this structure comprises.The service that atomic operation member is needed is sent to message queue, and the custom interface that message queue is processed the each member of function call carries out service adapter, and adaptive success is returned to interactive interface function structure body to atomic operation member.The interactive interface function of this service resolved this structure and can extract by atomic operation member, the service that uses it to need.In the time that service needs the combination of multiple members to complete, message queue is also responsible for the adaptation between member.Adaptation between protocol component is as follows: the service that other members that protocol component is needed provide is sent to message queue, the custom interface that message queue processing function calls each member in the same manner carries out service adapter, adaptive success is returned to interactive interface function structure body to this member, notifies its operable interactive interface.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) upper layer application interface sends request primitive to atomic operation member;
2) atomic operation member extracts and analyzes the request primitive receiving, and primitive is decomposed into multiple service requests, and puts it into message queue;
3) message queue obtains serving the interactive interface of required protocol component and calling by adaptation, feeds back to atomic operation member after complete;
4) atomic operation member is waited for next request primitive after upper layer application feedback execution result.
The atomic operation secondary encapsulation comprising in atomic operation member corresponding sub-protocol member.It has realized message queue, thereby has completed the assembling to protocol component.Upper layer application is carried out corresponding atomic operation by calling the unified interface of atomic operation member, just can use corresponding underlying protocol member, for upper layer application has been saved the major part " glue code " of assembling process.This method provides simple assemble method for upper strata, and member user needn't understand 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 procotol Method of Component-based, is characterized in that, comprises the following steps:
The first step: planned network protocol component interface: comprise customization and mutual two class interfaces, wherein: custom interface is for customizing and perfect member self function, interactive interface for member and other member alternately with communicate by letter, make to cooperate each other between 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, the pipeline of sense data; Component interface has interface behavior stipulations and need meet interface protocol;
Second step: voip network protocol component is divided: the protocol interaction process to VoIP call 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 media sending and receiving, and 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; Protocol analysis member completes the parsing of signaling protocol in protocol stack, structure and parsing signaling protocol packet; The state control of state machine member to whole communication process; Audio/video encoding and decoding member is realized collection and coding, decoding and the broadcasting to audio/video information, every kind of corresponding audio/video encoding and decoding member of code decode algorithm; Media information after media delivery member is encoded for sending and receiving;
The 3rd step: extract atomic operation: atomic operation extraction model, in order to instruct the extraction of atomic operation, is divided into functional mode, interface model; Functional mode is function 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 atomic operation interface is the unique identification of atomic operation; Atomic operation interface model formalization representation is: the interface that fc is 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 atomic operation interface;
The 4th step: the realization of voip network protocol component:
A, protocol component are realized: protocol component completes state machine, protocol analysis, audio/video encoding and decoding and the media delivery of protocol stack; Protocol component internal structure comprises commit module, corn module, control module, internal interface module and adaptation module; Commit module is encapsulated as user-defined code to entrust and register to corn module by interactive interface, personal code work after registration can be carried out by protocol component in running, and control module is unified internal interface by the interface conversion of corn module; Adaptation module is carried out interface name to internal interface and is hidden or call formal argument, and the custom interface that extracts whole protocol component calls for external program;
B, atomic operation member realize: atomic operation is defined on the basis of primitive as top layer application provides the calling interface based on primitive, extract primitive and each primitive is analyzed and decomposed from atomic operation interface, then the protocol component single step after decomposing is called to be committed to and call queue, single step is called in real time and processed according to priority by Executive Module;
The 5th step: voip network protocol component assembling: determine mating and mapping between service that protocol component and atomic operation member provide and protocol component interface and atomic operation component interface.
2. the protocol component based method of voip network as claimed in claim 1, it is characterized in that, wherein apply atomic operation calling interface is provided for top layer by atomic operation Component encapsulating protocol component, or combination calls multiple protocol components and realize the signaling sending and receiving of protocol stack, the atomic operation of protocol message class uses protocol analysis member to complete the transmission to message; Message sink atomic operation is resolved the message receiving type and the field of message with protocol analysis member; Message response atomic operation has combined state machine and protocol analysis member, and the message of receiving is sent to 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 to protocol component and the assembling to atomic operation member, the assembling of protocol component is that atomic operation member is by the custom interface of protocol component, interactive interface and message queue complete, inquire about by custom interface 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, the service that atomic operation member is needed is sent to message queue, the custom interface that message queue is processed the each member of function call carries out service adapter, adaptive success is returned to interactive interface function structure body to atomic operation member, atomic operation member is resolved the interactive interface function that extracts this service after this structure.
4. the protocol component based method of the voip network as described in claim 1 or 3, it is characterized in that, wherein in the time that service needs the combination of multiple members to complete, message queue is responsible for the adaptation between member: the service that other members that protocol component is needed provide is sent to message queue, the custom interface that message queue processing function calls each member in the same manner carries out service adapter, adaptive success is returned to interactive interface function structure body to this member, notifies its spendable interactive interface.
5. the protocol component based method of voip network as described in claim 1 or 2 or 3, is characterized in that, wherein upper layer application to the assembling process of atomic operation member and protocol component is:
1) upper layer application interface sends request primitive to atomic operation member;
2) atomic operation member extracts and analyzes the request primitive receiving, and primitive is decomposed into multiple service requests, and puts it into message queue;
3) message queue obtains serving the interactive interface of required protocol component and calling by adaptation, feeds back to atomic operation member after complete;
4) atomic operation member is waited for next request primitive after upper layer application feedback execution result.
6. the protocol component based method of voip network as described in claim 1 or 2 or 3, is characterized in that, wherein voip network protocol component also comprises atomic operation member, and this member is the encapsulation again that protocol component is called.
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 CN103078857A (en) | 2013-05-01 |
CN103078857B true 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) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN113703800A (en) * | 2020-05-21 | 2021-11-26 | 中兴通讯股份有限公司 | Function remote customization method, device, equipment and storage medium |
CN114443115B (en) * | 2020-11-05 | 2024-07-12 | 沈阳中科博微科技股份有限公司 | Method for constructing instrument component model and configurable method thereof |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1556641A (en) * | 2004-01-01 | 2004-12-22 | 浙江大学 | Component-based Realization Method of Communication Protocol |
CN101635717A (en) * | 2009-08-21 | 2010-01-27 | 中国科学院软件研究所 | Processing method and processing system of novel component-based network protocol |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8416764B2 (en) * | 2006-08-03 | 2013-04-09 | Aspect Software, Inc. | System and method for object registration in a VoIP environment |
-
2012
- 2012-12-31 CN CN201210592733.XA patent/CN103078857B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1556641A (en) * | 2004-01-01 | 2004-12-22 | 浙江大学 | Component-based Realization Method of Communication Protocol |
CN101635717A (en) * | 2009-08-21 | 2010-01-27 | 中国科学院软件研究所 | Processing method and processing system of novel component-based network protocol |
Non-Patent Citations (2)
Title |
---|
任家东 等.网络协议的构件化方法研究与实现.《微计算机信息》.2006,第22卷(第6-2期),第85-87页. |
网络协议的构件化方法研究与实现;任家东 等;《微计算机信息》;20061231;第22卷(第6-2期);第85-87页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103078857A (en) | 2013-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103078857B (en) | VoIP (Voice over Internet Protocol) Internet protocol component-based development method | |
CN109246251B (en) | Micro-service calling method, device, system, equipment and readable storage medium | |
CN101202665B (en) | Method for generating graphical user interface | |
CN101826987B (en) | A hybrid service support system and method based on a converged open network | |
CN205212923U (en) | Restructural network media phone terminal | |
CN102521409B (en) | Method for updating data of database in batch mode based on communication protocol | |
CN103577320A (en) | Testing method and system of remote terminals | |
CN100426750C (en) | Method for generating two set of network administration systems | |
CN102255914B (en) | Android network application program information verification method | |
CN1556641A (en) | Component-based Realization Method of Communication Protocol | |
CN103116520A (en) | Remote procedure call remote position control (RPC) method based on transmission control protocol (TCP)/user datagram protocol (UDP) | |
CN101557426A (en) | Web service-based and uniformly managed interface message processor, web service component and method thereof | |
CN105429958A (en) | Enterprise application platform system based on Android development | |
CN107450993A (en) | A kind of data interactive method of distributed IEC61850 communication components | |
CN109861998A (en) | A kind of plug-in type dynamic analysis system and method based on Big Dipper short message agreement | |
CN106506210A (en) | A kind of set various protocols realize the method and its system of connection interface | |
CN106357709A (en) | Communication network power opening system and communication network power opening method | |
Liao et al. | OMEI: an open mathematical engine interface | |
CN101217413A (en) | A centralized debugging system and centralized debugging method of extensible unit in the extensible system | |
CN100527717C (en) | Information display in accordance with inserting family gateway and interactive method | |
Deruelle | Jslee and sip-servlets interoperability with mobicents communication platform | |
CN102404391A (en) | Interface-oriented WEB service calling method | |
CN100589358C (en) | Metod and system for processing messages, and message sending end and message receiving end | |
CN111131364A (en) | Service acquisition method and device, service user, interaction system and cloud | |
CN118228475A (en) | Simulation system for digital force intelligent construction platform |
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 |