CN1556641A - Structuralization realization method of communication protocol - Google Patents

Structuralization realization method of communication protocol Download PDF

Info

Publication number
CN1556641A
CN1556641A CNA2004100156660A CN200410015666A CN1556641A CN 1556641 A CN1556641 A CN 1556641A CN A2004100156660 A CNA2004100156660 A CN A2004100156660A CN 200410015666 A CN200410015666 A CN 200410015666A CN 1556641 A CN1556641 A CN 1556641A
Authority
CN
China
Prior art keywords
protocol
component
interface
communication
componentization
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
CNA2004100156660A
Other languages
Chinese (zh)
Other versions
CN100377556C (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CNB2004100156660A priority Critical patent/CN100377556C/en
Publication of CN1556641A publication Critical patent/CN1556641A/en
Application granted granted Critical
Publication of CN100377556C publication Critical patent/CN100377556C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The invention relates to a componential realizing method for a communication protocol. It defines the uniform interface standard, determines the componential mode, component developing platform, submits the component bank storage, improves the operation system and acquires the running supports. It has advantage to realize the reasonable package to the communication protocol, optimizes the reasonable call to the service realized by the protocol, and maintains excellent backwards compatibility. The componential communication protocol realizes the dynamic load of protocol, supports the repeatability and height configurability of the component, it has a short developing period, excellent transplantation. It is convenient to the assembly of protocol. It replaces the different protocol components through loading, provides each kind of network service function, service quality, especially suitable for the spot which is strict with the real-time, error tolerance and continuity.

Description

The componential realizing method of communication protocol
Affiliated technical field
The present invention relates to the data communication communication field, relate in particular to a kind of componential realizing method of communication protocol.
Background technology
That communication protocol in the communications field itself has is of a great variety, complex structure and diversified characteristics, in order to satisfy communication requirement, reduce the complexity of design of protocol and realization, agreement is developed by different levels usually, and each layer is responsible for different communication functions respectively.Different agreements, the quantity of its layer, the name of each layer, content and function all are not quite similar.A protocol suite such as TCP/IP, is exactly the combination of one group of a plurality of agreement on the different levels, and it comprises: main frame is to network layer, internet layer, transport layer and application layer.Each layer, each agreement all provides different services.And for each agreement, also can resolve into a plurality of modules and realize.For example the Telnet agreement can be divided into modules such as connection, network virtual terminal, transmission control.Obtain traditional implementation of communication protocol software with this.
In order to improve software quality, and shorten the construction cycle of software product as much as possible, " based on the software development of member " arises at the historic moment.Component technology is divided into a plurality of independent parts (member) to single application/service, and a certain like this module component just can independently be upgraded, replace by new member.Whole application/service just can be tending towards perfect along with the old member of the continuous replacement of new structural member, has more dynamic, flexibility, is easy to customization.Hierarchical-development that communication protocol had and modular characteristics, feasible software development mode based on member also can be applied in the realization of communication protocol software, to improve software quality, shortens product development cycle, obtains better flexibility.At present popular member is EJB for example, though possessed the characteristic of distributed, encapsulation property, autgmentability, durability and cross-platform operation, but for the communication protocol that operates under the kernel mode, as the address resolution protocol of data link layer, the Routing Protocol of network layer, the transmission control protocol of transport layer etc., the virtual machine mechanism (JVM) that EJB adopted can't be supported the network service protocol that these are complicated, also can't adapt to the speed of service of agreement.
Along with the continuous development of the network communications technology, need to solve many new demands.Comprise reducing cost, improve reliability, multiple service and the support of effective service quality are provided, make using mutually and upgrade between the software and hardware that different vendor produces, support notion of programmable networks and a scalable network or the like.For overcoming the above problems, the new generation network standard has been proposed, point out that (so-called NE is the autonomous device in the network to network for Network Element, NE) structure, and independent processing is called and user data transmission by the modular network element based on open standard.Equipment standard as new generation network, senior communication counting system structure (Advanced Telecommunications Computing Architecture, AdvancedTCA) provided an open standard, at medium-scale and large-scale communication requirement, the modular architecture based on backboard is described.Target is to create a foundation structure for common platform, provides a large amount of replaceable modules that provided by different enterprises for you to choose, and satisfies the demand of the significant period of time communications industry.Its design has obtained the extensive support of network equipment vendor to support that new generation network is applied as target.Under this system, proposed the notion of express passway and slow path: so-called express passway is meant that the function process among the NE is optimized, and is responsible for fully handling and exchanging user information; And in the slow path, function among the NE and express passway cooperation, that part that express passway can not independent process in the processes user data.Network just is made up of one group of NE processing member, comprising:
(1) general processing member: responsible processing is called, network management, and the bag of slow path is handled, and service end is used;
(2) Digital Signal Processing member: voice, image, vision signal are handled, compression, encryption, modulation;
(3) network processes member: the processing data packets of express passway comprises route, filtration, classification, VPN passage;
(4) field programmable gate array (FPGA): connect logic and express passway and handle member (PPP, table look-up etc.);
(5) application-specific integrated circuit (ASIC) (ASIC): modulation, power board, dedicated processes engine (IPSec, video decode etc.), complete subsystem (System on Chip/SoC).
So, network model can be made up of the NE member that is positioned at application layer, slow path layer, express passway layer.Network data is given the express passway layer NE member that is positioned at lowermost layer earlier and is handled, and is responsible for fast processing and exchanging network data bag here, comprises operation fast such as route, filtration, classification, VPN passage; This layer of processing not protocol operation, as to operations such as the further inquiry of partial data bag and address resolution, then give the slow path layer NE member of last layer to handle, handle the protocol function of some network layers usually here; Similarly, this layer processing not protocol operation, as upgrading the protocol operation of Routing Protocol and application layer, then further give the protocol component of application layer.Further obtain the protocol software model in the communication equipment thus, it is divided into three levels: the application layer member is realized common protocol function, and these members are finished most protocol operation, and they are based upon on the platform service layer; The platform service layer provides general system administration services, for example resources such as managing internal memory, system, process; What be positioned at lowermost layer is device drive layer, is responsible for carrying out exchanges data with equipment fast.The modular construction of element Network Based provides theoretical foundation for the componentization of communication protocol, but because the diversity of communication requirement and network condition, the network element that satisfies the demands of exploitation rapidly and efficiently how, adapt to the continuous variation of communication requirement and network environment, guarantee the compatibility between a large amount of network elements, and provide effective storage and retrieval mode all to need to be resolved hurrily.
Summary of the invention
In order rapidly and efficiently to develop communication protocol software, obtain the speed of service that adapts to network service, various types of other communication service function and service quality are provided, guarantee flexibility and compatibility that communication protocol realizes, and alleviate protocol development personnel's workload, improve the development quality and the efficient of the protocol software.The invention provides a kind of componential realizing method of communication protocol.
The technical scheme that technical solution problem of the present invention is adopted is:
1) work out unified interface standard:
The dynamic reuse of componentization implementation code on binary code level of communication protocol, by one group of identical structure class interface of regulation between member, the service so that the form of interface provides protocol component to be realized realizes the standard dynamic communication between member;
2) determine the componentization mode:
Communication protocol is split, finish OO, design based on object, agreement, interface, form the protocol stack of componentization, agreement wherein at all levels is chosen the lower-layer protocols member according to the communication needs, this layer protocol is customized, after the componentization, realize the dynamic loading of communication protocol, support member is reused, the height configurability;
3) development platform of protocol component is realized:
Development platform of protocol component is according to the operation platform of protocol component, and the split result of communication protocol, being the exploitation generic frame code of protocol component, development platform provides the project organization and management for exploitation, and friendly interface is provided, and integrated exploitation, test environment;
4) submit the component base storage to:
Exploitation traffic carried protocol component is given component base and is stored, administers and maintains, and provides retrieval service at the user's communications demand, returns the protocol component that satisfies particular demands;
Support when 5) transformation operating system is moved to obtain:
Transform operating system, support is downloaded member and in local dynamic load and operation from component base, originally the protocol stack that kernel is advanced in compiling is separated as module loading from kernel and is moved, and in kernel, reserve the communication service interface of various members, can communicate by service interface between the member, can need not to recompilate, dispose kernel by realizations of more newly arriving of module the replacement of protocol stack, modification and upgrading, and support telemanagement, dynamically update core protocol stack; On to the support of using layer protocol, realize a cover protocol component interface library based on dynamic link library mechanism, realize the basic management function of application layer protocol member by this storehouse, comprise interface query function, dynamic loading, shift out member function, simple local management function as application, download member, deletion, renewal, the local component operation of replacement.
The useful effect that the present invention has is: the componentization of communication protocol helps realizing the reasonable encapsulation to communication protocol, optimize rationally calling that agreement realizes serving, and the back compatible that keeps good makes the realization of each communication protocol more reasonable.Communication protocol after the componentization has realized that the dynamic loading of agreement, support member are reused, the height configurability, has short, good advantages such as portability of development time.These characteristics also provide convenience for the assembling of agreement.By loading, replace different protocol components, for the upper strata provides various types of other network service function, service quality is particularly suitable for some concurrencies, real-time, system disaster tolerance and the strict occasion of operation continuation.The auxiliary workload that alleviates protocol development personnel by development platform has improved the quality and the efficient of the exploitation of the protocol software.The existence of component base, for enormous amount, miscellaneous protocol component provide the way to manage of science, also for the user according to oneself the demand inquiry and obtain member valid approach be provided.
Description of drawings
Fig. 1 is an overall procedure block diagram of the present invention;
Fig. 2 is the schematic diagram that the protocol stack componentization realizes;
Fig. 3 is the componentization schematic diagram to each functional module of http protocol;
Fig. 4 is by the File Transfer Protocol component model that uses the object componentization.
Specific implementation method
Communication protocol according to being positioned the level in the protocol stack and the requirement of running environment, is divided by different modes, encapsulate by development platform of protocol component dividing the module of coming out then, make protocol component become the most basic formation of the protocol software.The member that exploitation is finished uploads in the component base, provides unified storage and inquiry by component base.Communication equipment can in conjunction with self system resource and network condition, download required member from component base, and support when moving is provided, thereby assembling obtain suitable communication protocol software according to current communication requirement.Its concrete implementation step is as shown in Figure 1:
(1) works out unified interface standard
The componentization mode of communication protocol has been stipulated a kind of blanket abstract standard, has realized the dynamic reuse of code on binary code level, by one group of identical structure class interface of regulation between member, thereby has realized the dynamic communication of standard.Following under the standard of component technology, providing service with the form of interface, make call more reasonable.The flexibility and the back compatible of communication protocol realization realized guaranteeing in the inside of packing service.The communication protocol componentization will improve the development rate of router and other communication equipment software greatly, accelerate the progress and the upgrading of introducing to the market.
(2) determine the componentization mode
Protocol component based four basic problems that solved the software existence: basic member interoperability, protocol version upgrading, implementation language independence and transparent striding course interoperability.Solution route is that communication protocol is split, and finishes OOly, based on the design of object, agreement, interface, has formed the protocol stack of componentization.Can take several different methods when communication protocol is split, comprise,, press level componentization etc. by using the object componentization by building blocks of functionization.Communication protocol after the componentization has realized that the dynamic loading of agreement, support member are reused, the height configurability, has short, good advantages such as portability of development time.These characteristics also provide convenience for the assembling of agreement.By loading, replace different protocol components, for the upper strata provides various types of other network service function, service quality is particularly suitable for some concurrencies, real-time, system disaster tolerance and the strict occasion of operation continuation.
(3) development platform of protocol component is realized
The protocol module that division is obtained encapsulates by development platform of protocol component, makes protocol component become the most basic formation of the protocol software.In order to reduce protocol component based complexity of developing, need a strong development platform of protocol component, carry out protocol software exploitation to assist the component development personnel.Development platform of protocol component can be according to the operation platform of protocol component, and user's input, is the exploitation generic frame code of protocol component.Development platform provides the strong project organization and management for exploitation, and friendly interface is provided, and integrated exploitation, test environment, has alleviated protocol development personnel's workload greatly, has improved the quality and the efficient of the exploitation of the protocol software.
(4) submit the component base storage to
The protocol component storehouse at network communication characteristics of demand exploitation, constantly improve improved, be used for software component library that the agreement of componentization is used, administered and maintained.And provide retrieval at user's demand, return the member that satisfies particular demands.The existence of component base, for enormous amount, miscellaneous protocol component provide the way to manage of science, also for the user according to oneself the demand inquiry and obtain member valid approach be provided.
Support when (five) transformation operating system is moved to obtain
For the agreement that makes componentization realize is moved, need operating system is transformed, originally compiling is advanced the protocol stack of kernel and separate as the module loading operation, and in kernel, reserve the service interface of various members, can communicate by service interface between the member from kernel.The modification of system bottom function can be by the realization of more newly arriving of module, to replacement, modification and the upgrading of protocol stack need not to recompilate, the configuration kernel, and make telemanagement, the core protocol stack that dynamically updates router becomes possibility.On to the support of using layer protocol, realized a cover protocol component interface library based on dynamic link library mechanism, realize the basic management function of application layer protocol member by this storehouse.The interface that provides by this storehouse manages and uses member, comprise interface query function, dynamic loading, shift out member function, simple local management function as application, download operations such as member, deletion, renewal, the local member of replacement.
The componentization of communication protocol is to be based upon on the basis that protocol moduleization finishes.Press the agreement that level is divided for traditional, the present invention carries out modularization earlier, then could componentization, be assembled into protocol component.The purpose of protocol moduleization is the granularity of control protocol, by modularization, tentatively reduce the granularity of agreement, earlier for the upper layer network application protocol provides unified interface to communication protocol, upper-layer protocol improved the dynamic configurability of whole system, so that can carry out componentization preferably.Compact more through the kernel after the protocol moduleization, protocol stack is more flexible, more needn't all recompilate whole kernel during New Deal.
Module with the ICMP agreement turns to example, can provide different service function and service quality: in the network environment of transmission performance difference, by revising between transmission period TTL or forbid that the request of ICMP echo, timestamp request reduce network load life cycle, realize control to the data flow; And, can forbid that ICMP COS and main frame redirection function reduce security breaches at the demanding environment of internet security.In actual applications, can also by revising the realization of protocol module, in the communication service of kernel state, insert the function that needs customization according to communication requirement.With defensive attack and antivirus protection is example, and sending a large amount of hash bags is Denial of Service attack (DoS) and the viral universal means of propagating.In the core protocol module, by the inspection type of data packet, packet rs destination end, source end, means such as packet transmission frequency, filtering data bag even detection data source guarantee the safety and the performance of network.
By to after the communication protocol componentization, the agreement on upper strata can be chosen the member of lower-layer protocols according to different needs, and this layer protocol is customized, and has strengthened the flexibility of agreement greatly, thereby also will make the realization of agreement have more flexibility.Fig. 2 provide protocol component based after, an example of the relation between each layer protocol member.Agreement 1 is realized by member A1, A2, A3 after componentization.Agreement 2 is after componentization, and its first version realizes that by member B1, B2 second version is realized by member b1, b2.Wherein, member A1, A3 have used member B1, the B2 in the agreement 2 respectively, and that member A2 then uses is the upgraded version b2 of member B2.System is after operation a period of time, because the variation of the resource of network condition or system own, the protocol stack of initial configuration is often no longer suitable, and this will carry out the dynamic replacement of member, so the member B2 that A3 uses can be replaced by member b1.Realize the communication means of agreement, from the variety of protocol member, select to meet the module of demand, re-assembly use, shown great flexibility according to protocol layer.
To consider to control the granularity of realization during protocol module.In general, the granularity of member is more little, and agreement is divided carefully more, and protocol component is many more; The member granularity is big more, and agreement is divided slightly more, and protocol component is just few more.The size of protocol component granularity has determined protocol component modularization, information to encapsulate the degree of property, localization.If granularity is excessive, the yardstick of member increases, and independence reduces, and the degree of association between each member also can increase, and is unfavorable for the dynamic replacement and the renewal of member.Because the member granularity has diversified requirement, and consider the agreement own characteristic, can adopt diverse ways to implement componentization different agreements:
At first can be by the level componentization.The method of componentization is provided for communications protocol based on the network model of Open System Interconnection (OSI).Osi model has 7 layers, is respectively application layer from top to bottom, presentation layer, session layer, transport layer, network layer, data link layer, physical layer.When the transmission data, transmit leg is given application layer with outgoing data, and application program adds application header in the data front, gives presentation layer the result again.Presentation layer can have the conversion in addition to this of multiple mode, also can add a header in front, gives session layer the result then.This process repeats up to the data arrives physical layer, is arrived receiver by actual transmissions then.In receiver, when information was upwards transmitted, various headers were arrived the recipient by peelling off in layer up to data.The notion of the most critical in the whole process is, though the actual transmissions of data is vertical, each layer seems that data are horizontal transport always when programming.It is considered herein that this lower floor realizes providing foundation to the transparency on upper strata for the encapsulation of every layer protocol.Therefore can carry out componentization to every layer of communications protocol, for the last layer member provides service interface.Under this componentization method, the encapsulation of protocol component is better, and function is independent between the member; Shortcoming is its design and realizes often underaction.Under this architecture, the realization mechanism of wanting to replace the inefficiency of some function in the agreement is very difficult often, and this has just restricted the performance and the function of agreement.
For overcoming the above problems, can adopt method by building blocks of functionization.The componentization of agreement is modularization encapsulation on the basis that variety of protocol is analyzed, divided.This method is exactly that the functional module that agreement provides is divided, and each sub-function module is relatively independent, to realize low coupling, high cohesion.
For example, HTTP(Hypertext Transport Protocol) is the transportation protocol that is used for from www server transmission hypertext to local browser.It can make browser more efficient, and Network Transmission is reduced.It guarantees that not only computer correctly transmits hypertext document apace, also determines which part in the transferring documents, and which partial content at first shows etc.Because http protocol is based on (being equivalent to the C/S structure) of request, after client computer and server connect, send a request to server, the form of request mode is: unified resource identifier (URL), protocol version, back are that MIME information comprises request modifier, client information and possible content.After server is received request, give corresponding response message, its form is a statusline, comprises the protocol version of information, a success or wrong code, and the back is that MIME information comprises server info, entity information and possible content.Http protocol roughly has request, connection, response, handle HTTP message, provide and resolve function such as protocol parameter.Therefore http protocol can be divided into several members basically: Connect member, Request member, Response member, URL member, Message member, protocol parameter member etc.And wherein Connect member, Request member, Response member have been used Transmission Control Protocol, the URL member again with File Transfer Protocol, the Telnet agreement has confidential relation, method in conjunction with protocol moduleization, the members such as Connect of using Transmission Control Protocol can be formed by some component composition in the Transmission Control Protocol, so not only guaranteed upper-layer protocol be easy to the expansion, the customization, the simultaneity factor performance can not lost excessive yet.To the componentization of each functional module of http protocol as shown in Figure 3.
Can also carry out componentization to agreement according to the use object of protocol component.For some communication protocol, it is multiple to use object to be divided into, and has service end to use, and has client to use; Have to same layer protocol and use, have and use to the last layer agreement; Have to the general user and use, also have to the power user and use, these use Properties of Objects, can be used for agreement is carried out componentization.Application program might just use some modules of agreement, for example client modules when using communication protocol.At this time, just can provide client member in the protocol component to application program.
For example, internet document host-host protocol (File Transfer Protocol) standard is in the RFC959 explanation.This protocol definition a standard from transfer files between remote computer system and the local computer system.In general, the user of transfer files need can visit the file at remote server then earlier through ability Website login after the authentication.And most ftp server often provides public account to allow not have the user of remote server can visit this ftp server.A ftp session generally includes the mutual of five software elements.
(1) user interface a: user interface is provided and has used the service of client protocol interpreter.
(2) client PI/ client agreement interpreter: send order and drive the customer data transmission course to the remote server protocol machine.
(3) server PI/ server protocol interpreter: the order that the customer in response protocol machine sends also drives the server end data transmission procedure.
(4) client DTP/ customer data transmission course: be responsible for finishing and the communicating by letter of server data transmission procedure and client terminal local file system.
(5) service DTP/ server data transmission course: be responsible for finishing and the communicating by letter of customer data transmission course and server end file system.
In ftp session, one meet together have two independently network connect, one is that PI by two ends uses, another is that DTP by two ends uses.Connection between the PI is generally known as control connection CC (Control Connection), and the connection between the DTP is known as data and connects DC (Data Connection).
In the FTP model, User PI creates CC.CC defers to the Telnet agreement.At user's initial phase, standard FTP order is generated by User PI and passes to server process by CC.Server PI replys corresponding standard FTP by CC and returns the PI to User.Transfer of data is finished by DC.User DTP monitors at particular port, is connected with the designated parameter initialization by Server DTP.Another kind of situation is that the user wishes transfer files on two main frames non-indigenous.User and two servers are set up CC, arrange the file transfer between two servers.
Analyze as can be seen from top these, File Transfer Protocol is mainly concerned with client and these two of service ends are used object.Client and service end all have data transmission module separately, the command interpreter module.Certainly, agreement also can be the module that connects by Function Decomposition, data transmission module, and data management module, and be based upon document transmission module on these modules.What but the present invention considered mainly is that object is used in service, and from using the object angle, these functional modules can be included in the module.So the present invention just can divide according to the object that File Transfer Protocol uses in structure File Transfer Protocol member.This is a dividing mode that fineness ratio is bigger.
The componentization method of general this coarsegrain mainly appears on the upper-layer protocol, and is aimed at the special purposes that requires agreement is decomposed.Be based upon the application program on these agreements, select the member that needs by specific requirement.FTP application client for example only need use client's module of File Transfer Protocol member, just can finish the needed function of client.In this client member the inside, data connection, transfer of data, the multinomial function of data management have been comprised.File Transfer Protocol is by using the object componentization can be divided into client member and service end member.The client member provides user interface, and client data connects, transmits, manages Client command explanation etc.The service end member then provides the file management interface, and the service end data connect, transmit, manage the service end command interpretation.Wherein the Telnet protocol component is used in the connection of data, and the Transmission Control Protocol member is used in the transmission of data, and the member of a plurality of underlying protocols such as SNMP is then used in data management.Fig. 4 is by the File Transfer Protocol component model that uses the object componentization.
In order to reduce protocol component based complexity of developing, need a strong development platform of protocol component, carry out protocol software exploitation to assist the component development personnel.Development platform of protocol component expectation realizes being fit to multiple program language and develops protocol component at different platform, has therefore adopted full plug-in unit (plug-in) structure to satisfy this flexibility requirement.At the actual needs of various member, the actual content of component development is all made card module, is supported, is managed by a relatively-stationary IDE framework platform.This structure can not only be brought into play flexibility, can also accomplish back compatible.
Development platform of protocol component is divided into two parts, and a part is the application window framework, and another part is a member guide plug-in unit.This platform+plug-in unit mode can be accomplished flexibility to greatest extent, adapts to the needs of the multiple element type under the several operation systems platform.
The IDE frame clsss is like the kernel of operating system, and it provides an IDE platform, comprises window frame, plug-in management connector, project manager, code editor.Window frame has been described a MDI window, comprises menu and toolbar, as the container of various member guide plug-in units; The processing capacity of plug-in management connector comprises plug-in management and calls.Plug-in management is finished the coordination of plug-in unit and platform, the status tracking that generates management information and carry out plug-in unit on platform for each plug-in unit.Plug-in unit calls to calling the function that each plug-in unit is realized, mainly select corresponding element type by member guide, also promptly selected corresponding insert, and menu, toolbar have been expanded, made the user call the function corresponding that plug-in unit provides by the interface according to the content of this plug-in unit; Project manager comprises directory file structure, item attribute, structure attribute etc. by xml record entry information.The xml file format makes various platforms, the shared project of each intermodule, component information become convenient; The text editing window can be edited source code, adopts a series of filters, and analyzer comes the assisted user completion code, comprises folding, the quick edition function of code highlight, indentation, code at programming language.In present development platform of protocol component, the keyword code highlight mode of most of at present programming of code encoder support and textbook descriptive language.
Member guide plug-in unit is the development platform core, finishes the main body process of component development, comprises the generation of component framework code, code analysis, member compiling, member debugging.It comprises the expansion of menu option, toolbar and intrinsic call etc.Support the .so dynamic link library member of com+ member and linux etc.The component framework code generation module is gathered the information of user's input by guide, generates the skeleton code of this type of plug-in unit, the appwizard of similar MFC according to corresponding customer requirements; Code analysis, member compile and debug main by being connected background compiler, will export after treatment on the interface, to show, and the relative users operation, do respective handling.
Present development platform of protocol component can be realized the back compatible of any language, and the project management of xml can realize project between development platform, code sharing, and the optimized code editing machine can make the editor of source code more efficient.
Protocol component based core is a member, and it is effectively managed and retrieves easily is one of key problem of component reusage.Protocol component needs effectively classification and retrieval method owing to have factors such as logic complexity, widespread popularity.Be in the system of core with the component reusage, the foundation of component base, administering and maintaining and relate to a series of problems: effective classification of member, fast retrieval and accurate understanding mechanism; The user right control ability; Interoperability technical problem between the customizability of component base system and storehouse.The protocol component storehouse at network service characteristics of demand exploitation, constantly improve improved, be used for software component library that the agreement of componentization is used, administered and maintained.On the soft project mechanism that the running of component base is based upon a network-oriented and the special management system basis, form, when needing, can inquire about obtaining specific member at particular user by a large amount of reusable protocol components.
The management in protocol component storehouse provides the technical support platform for the agreement of componentization, as the infrastructure of extensive component reusage, provides resource-sharing and multiplexing mechanism.Provide strong support by Internet and local area network technology for component resource is shared, the user can conduct interviews easily by network; Provide multiple component retrieval mode, with the member of convenient and swift retrieval service, agreement; Good member feedback mechanism is provided, has improved the efficient and the quality of component reusage; Support member is submitted to by network; The process such as checking, warehouse-in, attribute modification, deletion of member and the management of function are provided; Support is to the management and the service of run mode member.Collect, the arrangement field feedback, for retrieval, choose member and the structure storehouse itself provides information; Utilize the protocol component storehouse, can make operating system use the partial function assembly of service, agreement or service and agreement more easily, can adopt the method for componentization and software repeated usage that agreement is redeveloped.
Operating system can be sent request by network, requires to obtain service, agreement or member to the protocol component storehouse.Deposit all protocol components in the protocol component storehouse, and stored these protocol component structure agreement and service method.Corresponding member is found in the protocol component storehouse from component base, with issuing operating system after the service of component composition one-tenth, the agreement, perhaps directly give operating system with the member of operating system call, and these services, agreement and member are then directly used by operating system.
The component of a system in the protocol component storehouse and application component all can standalone upgrades, dynamic load.The user also can add the protocol component storehouse by member or the agreement that development platform of protocol component be developed oneself, can also the use agreement component base in existing member develop.
For the protocol software of realizing in the componentization mode is moved, when must providing operation, operating system supports.Operating system concentrates in the modification to original ICP/IP protocol stack implementation protocol component based support, the kernel communication protocol moduleization is to realize protocol component based prerequisite, the module of agreement turns to the upper layer network application protocol unified interface is provided, and has improved the dynamic configurability of whole system.The modularized design of kernel communication protocol makes kernel compact more, and the ICP/IP protocol stack is more flexible; Needn't all recompilate whole kernel when revising agreement; Protocol module can not rely on certain fixing hardware platform; The message transmission that function in the invocation protocol module need not to show.
The operating system nucleus of common monolithic type, as linux kernel, comparing outstanding shortcoming with micro-kernel is exactly underaction.Internet layer has the agreement of some cores frequently to be used by the upper strata, relatively more independent comparatively speaking, therefore these agreements (for example ICMP agreement) can be divided by function and carry out modularization and unified functional interface, as operation system function parts dynamic load and configuration.This relatively adapts in some concurrencies, real-time, the strict occasion of system disaster tolerance.The modification of system bottom function realizes by software upgrading, and do not need static patch or hardware burning, guaranteed the continuous service of system.Therefore, this part work is the function management configuration at whole system, rather than the user-function-oriented service.In the support to the core protocol member, the method that adopts function interface to replace the interface realized in the invocation protocol module, and kernel comes the function interface of maintenance agreement by the functional symbol table.On to the support of using the layer protocol member, can utilize the dynamic link library mechanism of Linux to realize a cover component interface storehouse, the inside of interface realizes satisfying the communication between the member, concurrent, synchronous requirement.
Because SMP operating system can better be brought into play the advantage of componentization communication protocol.The structure of componentization can make full use of the SMP technology, to increase throughput, improves the resource utilization of whole system, make componentization on the software with the high speed on the hardware, walking abreast combines.Linux before transforming all gives startup CPU with interrupt call and finishes when carrying out the SMP kernel.For slow-footed processor, because the resource that the IO processing takies is many, this disadvantage is exaggerated and is easy to cause bottleneck.Improved kernel is assigned interrupt request well.But for the network processing unit architecture of member,, be convenient programming on the software, can be used for expressing extremely complicated logic in order to have given play to the characteristics of software and hardware self as far as possible; Hardware is to have at a high speed and parallel characteristics.Therefore, design a kind of general programmable network processor logic (PNPLD-Programmable Network Processor Logic Devices).Can be with the IP kernel (the IP here is the abbreviation of intellectual property) of maturation as member.Adopt the IntelPXA255 processor of IA framework, finish the transformation of communication protocol componentization operating system on embedded device, and the support of member running environment.
The component standard interface is the communication protocol basis of components, the component standard interface forms a cover unified interface between development platform of protocol component, component base and operating system, realized between the component composition, the standard criterion of data passes simply clearly between member and the operating system, between member and the component base, make member more transparent, transfer of data is standard more, and component management is convenient.In addition, the member that goes out according to the component standard interface exploitation has better flexibility and autgmentability and relative independence, is easy to standalone upgrade, dynamic load even cross-platform, striding course, across a network uses.The component standard interface provides the rule of component interactive, and realizes the standard environment of similar containers based on these rules.Like this member externally have an effect or member between mutual, all be that interface by normalized definition carries out, the member user only need know the interface of member, and is indifferent to its inner realization, be design and the key that realizes separating, embodied the essential idea of componentization design.
The component standard interface is the basis of protocol component based standard, and according to protocol component based standard, development platform of protocol component can be finished the componentization of protocol code automatically.Protocol component based standard comprised for agreement formulate the componentization scheme, with the interface that carries out componentization extract abstract, change contents such as former component interface, interpolation component standard interface.
The component standard interface has encapsulated the important information of protocol component, and the user of member just can obtain the essential information of protocol component by the interface of standard like this, such as member name, member version, member mode etc.The more important thing is that the user of member can also obtain the using method of standard interface by the interface query function.
The component standard interface makes operating system convenient to the management of member.The applied operating system of the present invention is complete operating system based on componentization, and operating system also will be managed the application component of loading in the component of a system of management oneself.The component standard interface has been arranged, and the management that operating system can be more appropriate and monitor each member has improved the fail safe and the operational efficiency of system simultaneously owing to such combining closely between member and the operating system.
The component standard interface also provides protocol component common interface function library, is used for member is carried out basic operation.Comprise interface query function, dynamic loading, shift out member function, simple local management function (comprise application, download member, operations such as deletion, renewal, replacement this locality member).

Claims (1)

1. the componential realizing method of a communication protocol is characterized in that:
1) work out unified interface standard:
The dynamic reuse of componentization implementation code on binary code level of communication protocol, by one group of identical structure class interface of regulation between member, the service so that the form of interface provides protocol component to be realized realizes the standard dynamic communication between member;
2) determine the componentization mode:
Communication protocol is split, finish OO, design based on object, agreement, interface, form the protocol stack of componentization, agreement wherein at all levels is chosen the lower-layer protocols member according to the communication needs, this layer protocol is customized, after the componentization, realize the dynamic loading of communication protocol, support member is reused, the height configurability;
3) development platform of protocol component is realized:
Development platform of protocol component is according to the operation platform of protocol component, and the split result of communication protocol, being the exploitation generic frame code of protocol component, development platform provides the project organization and management for exploitation, and friendly interface is provided, and integrated exploitation, test environment;
4) submit the component base storage to:
Exploitation traffic carried protocol component is given component base and is stored, administers and maintains, and provides retrieval service at the user's communications demand, returns the protocol component that satisfies particular demands;
Support when 5) transformation operating system is moved to obtain:
Transform operating system, support is downloaded member and in local dynamic load and operation from component base, originally the protocol stack that kernel is advanced in compiling is separated as module loading from kernel and is moved, and in kernel, reserve the communication service interface of various members, can communicate by service interface between the member, can need not to recompilate, dispose kernel by realizations of more newly arriving of module the replacement of protocol stack, modification and upgrading, and support telemanagement, dynamically update core protocol stack; On to the support of using layer protocol, realize a cover protocol component interface library based on dynamic link library mechanism, realize the basic management function of application layer protocol member by this storehouse, comprise interface query function, dynamic loading, shift out member function, simple local management function as application, download member, deletion, renewal, the local component operation of replacement.
CNB2004100156660A 2004-01-01 2004-01-01 Structuralization realization method of communication protocol Expired - Fee Related CN100377556C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100156660A CN100377556C (en) 2004-01-01 2004-01-01 Structuralization realization method of communication protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100156660A CN100377556C (en) 2004-01-01 2004-01-01 Structuralization realization method of communication protocol

Publications (2)

Publication Number Publication Date
CN1556641A true CN1556641A (en) 2004-12-22
CN100377556C CN100377556C (en) 2008-03-26

Family

ID=34351462

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100156660A Expired - Fee Related CN100377556C (en) 2004-01-01 2004-01-01 Structuralization realization method of communication protocol

Country Status (1)

Country Link
CN (1) CN100377556C (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100442233C (en) * 2007-01-31 2008-12-10 华为技术有限公司 Method and system for implementing dynamic upgrade of application system
CN100454845C (en) * 2006-09-18 2009-01-21 华为技术有限公司 Reuse method and system of configuration rules in communication network
CN100459596C (en) * 2006-08-28 2009-02-04 华为技术有限公司 Method and system for data loading
CN101217421B (en) * 2008-01-17 2010-08-18 杭州华三通信技术有限公司 A detection of protocol component based realization method, component group, hardware adapting method and device
CN101820361A (en) * 2010-03-26 2010-09-01 中兴通讯股份有限公司 Method and device for managing multi-protocol communication components
CN101026626B (en) * 2006-02-15 2010-09-22 国际商业机器公司 Platform independent configuration of multiple network services
CN101267439B (en) * 2008-04-28 2010-12-22 中国人民解放军信息工程大学 Generation method, node communication method, device and system for medium access control protocol
CN101977160A (en) * 2010-11-30 2011-02-16 中国人民解放军信息工程大学 Reconfigurable method for routing protocol software components in reconfigurable route switching platform
CN101404073B (en) * 2008-10-21 2011-04-06 浙江大学 Complex product fuzz hierarchy collocation method
CN101515860B (en) * 2008-02-20 2011-05-25 中兴通讯股份有限公司 Method and system for remotely managing customer premises equipment
CN101719921B (en) * 2009-12-10 2012-05-23 清华大学 Method for generating routing protocol component in software development of reconfigurable router
CN101652777B (en) * 2007-03-30 2012-05-30 微软公司 Query generation using environment configuration
CN101635717B (en) * 2009-08-21 2012-07-04 中国科学院软件研究所 Processing method and processing system of novel component-based network protocol
CN102707982A (en) * 2011-03-04 2012-10-03 微软公司 Incremental generation of managed assemblies
CN102929623A (en) * 2012-10-24 2013-02-13 北京空间机电研究所 System for generating IP (Internet protocol) core in field programmable gate array (FPGA) software
CN103078857A (en) * 2012-12-31 2013-05-01 中国人民解放军总参谋部第五十四研究所 VoIP (Voice over Internet Protocol) Internet protocol component-based development method
CN103105169A (en) * 2013-01-25 2013-05-15 广东翼卡车联网服务有限公司 Method and system for realizing compatibility between navigation plate of vehicle-mounted navigator and map software
CN103529821A (en) * 2013-09-29 2014-01-22 重庆邮电大学 Configurable method and device for diagnostic protocol stack system based on CAN (controller area network) bus
CN104539506A (en) * 2015-01-27 2015-04-22 浪潮集团有限公司 Network transmission service component and network transmission system
CN104660570A (en) * 2013-11-22 2015-05-27 华耀(中国)科技有限公司 Extensible AAA communication system and method
CN105245369A (en) * 2015-10-12 2016-01-13 天津市普迅电力信息技术有限公司 Component issuing container method supporting multiple transport protocols
CN109240683A (en) * 2018-07-13 2019-01-18 中建三局第二建设工程有限责任公司 The bus architecture computer programming designing system and method for modular applications service
CN111030747A (en) * 2019-11-22 2020-04-17 中国科学院国家空间科学中心 FPGA-based SpaceFibre node IP core

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0648354B1 (en) * 1992-07-01 2000-10-18 Telefonaktiebolaget Lm Ericsson Method and system for implementation-independent interface specification

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8891550B2 (en) 2006-02-15 2014-11-18 International Business Machines Corporation Platform independent configuration of multiple network services
CN101026626B (en) * 2006-02-15 2010-09-22 国际商业机器公司 Platform independent configuration of multiple network services
CN100459596C (en) * 2006-08-28 2009-02-04 华为技术有限公司 Method and system for data loading
CN100454845C (en) * 2006-09-18 2009-01-21 华为技术有限公司 Reuse method and system of configuration rules in communication network
CN100442233C (en) * 2007-01-31 2008-12-10 华为技术有限公司 Method and system for implementing dynamic upgrade of application system
CN101652777B (en) * 2007-03-30 2012-05-30 微软公司 Query generation using environment configuration
CN101217421B (en) * 2008-01-17 2010-08-18 杭州华三通信技术有限公司 A detection of protocol component based realization method, component group, hardware adapting method and device
CN101515860B (en) * 2008-02-20 2011-05-25 中兴通讯股份有限公司 Method and system for remotely managing customer premises equipment
CN101267439B (en) * 2008-04-28 2010-12-22 中国人民解放军信息工程大学 Generation method, node communication method, device and system for medium access control protocol
CN101404073B (en) * 2008-10-21 2011-04-06 浙江大学 Complex product fuzz hierarchy collocation method
CN101635717B (en) * 2009-08-21 2012-07-04 中国科学院软件研究所 Processing method and processing system of novel component-based network protocol
CN101719921B (en) * 2009-12-10 2012-05-23 清华大学 Method for generating routing protocol component in software development of reconfigurable router
CN101820361A (en) * 2010-03-26 2010-09-01 中兴通讯股份有限公司 Method and device for managing multi-protocol communication components
CN101977160A (en) * 2010-11-30 2011-02-16 中国人民解放军信息工程大学 Reconfigurable method for routing protocol software components in reconfigurable route switching platform
CN101977160B (en) * 2010-11-30 2012-08-22 中国人民解放军信息工程大学 Reconfigurable method for routing protocol software components in reconfigurable route switching platform
CN102707982A (en) * 2011-03-04 2012-10-03 微软公司 Incremental generation of managed assemblies
CN102707982B (en) * 2011-03-04 2017-06-09 微软技术许可有限责任公司 For the method and system of the increment type generation of host program collection
CN102929623A (en) * 2012-10-24 2013-02-13 北京空间机电研究所 System for generating IP (Internet protocol) core in field programmable gate array (FPGA) software
CN103078857A (en) * 2012-12-31 2013-05-01 中国人民解放军总参谋部第五十四研究所 VoIP (Voice over Internet Protocol) Internet protocol component-based development method
CN103078857B (en) * 2012-12-31 2014-09-17 中国人民解放军总参谋部第五十四研究所 VoIP (Voice over Internet Protocol) Internet protocol component-based development method
CN103105169B (en) * 2013-01-25 2016-06-01 广东翼卡车联网服务有限公司 A kind of method and system making automatic navigator navigation panel and map software compatibility
CN103105169A (en) * 2013-01-25 2013-05-15 广东翼卡车联网服务有限公司 Method and system for realizing compatibility between navigation plate of vehicle-mounted navigator and map software
CN103529821B (en) * 2013-09-29 2016-05-11 重庆邮电大学 A kind of configurableization method and device of the diagnosing protocol stack system based on CAN bus
CN103529821A (en) * 2013-09-29 2014-01-22 重庆邮电大学 Configurable method and device for diagnostic protocol stack system based on CAN (controller area network) bus
CN104660570A (en) * 2013-11-22 2015-05-27 华耀(中国)科技有限公司 Extensible AAA communication system and method
CN104539506A (en) * 2015-01-27 2015-04-22 浪潮集团有限公司 Network transmission service component and network transmission system
CN105245369A (en) * 2015-10-12 2016-01-13 天津市普迅电力信息技术有限公司 Component issuing container method supporting multiple transport protocols
CN105245369B (en) * 2015-10-12 2017-05-17 天津市普迅电力信息技术有限公司 Component issuing container method supporting multiple transport protocols
CN109240683A (en) * 2018-07-13 2019-01-18 中建三局第二建设工程有限责任公司 The bus architecture computer programming designing system and method for modular applications service
CN111030747A (en) * 2019-11-22 2020-04-17 中国科学院国家空间科学中心 FPGA-based SpaceFibre node IP core
CN111030747B (en) * 2019-11-22 2021-08-31 中国科学院国家空间科学中心 FPGA-based SpaceFibre node IP core

Also Published As

Publication number Publication date
CN100377556C (en) 2008-03-26

Similar Documents

Publication Publication Date Title
CN100377556C (en) Structuralization realization method of communication protocol
US7072946B2 (en) Network router management interface with API invoked via login stream
AU636152B2 (en) Apparatus and method for providing decoupling of data exchange details for providing high performance communication between software processes
CA2394058C (en) Method and apparatus of data exchange using runtime code generator and translator
Bouabene et al. The autonomic network architecture (ANA)
US20020161907A1 (en) Adaptive multi-protocol communications system
CN102339234A (en) Device for operating protocol stack and method
CN1427580A (en) Network managing system frame
US20030055862A1 (en) Methods, systems, and articles of manufacture for managing systems using operation objects
US20030135587A1 (en) Method and system of state management for data communications
CN102325186A (en) Remote service calling method and system
US10334084B2 (en) Communication method and system based on assembled communication protocol stack
Schuchardt et al. Ecce—a problem‐solving environment's evolution toward Grid services and a Web architecture
Bivens Grid workflow
Deng et al. CVM–A communication virtual machine
CN1277204C (en) Facility centralizing management method based by plugging technology
CN1905476A (en) Managing system and method for terminal products
CN1716960A (en) Methods and devices for generating XML expressed management transactions that include an XPATH expression
CN103677854A (en) Design method and design system of OSGI (Open Service Gateway Initiative)-WEB framework applicable to cloud computing environment
US9756129B2 (en) WSDL/WADL reference definition integration
Tarkoma et al. Spice: A service platform for future mobile ims services
CN1537392A (en) Service application architecture for integrated network service providers
CN1925482A (en) Transforming method and device for human-machine order format
CN1536499A (en) Method for accessing remote terminal in UNIX cenvironment
CN1829234A (en) Method for realizing WAP browser network layer based on mobile terminal

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080326

Termination date: 20120101