Background technology
Traditional transmission network management system based on C/S (client/server) framework exists inconvenience and difficulty at aspects such as application, deployment, renewal and maintenances; Naturally people can expect the Web transmission network management system of B/S (browser/server) framework; But because the Web technology limitation, the development of Web transmission network management system very slowly and have many problems:
1) user's operating experience of traditional Web transmission network management system is simple, is not easy to develop abundant effects and shows data;
2) user's request is single, synchronous, and need refresh full page, has brought a lot of expenses that need not, and has influenced response speed, more lets the user feel that too many wait is arranged;
3) traditional Web transmission network management system is difficult to or needs the auxiliary resource that could the operated client computer through other technologies, the load too high of server and the computing capability of client computer is not fully used;
4) data communication method of traditional Web transmission network management system is more single; All being based on HTTP connects; And the HTTP connection is a kind of impermanent connection, can only be based on the Web transmission network management system of http protocol by user end to server end initiation request, after the request response; Connect also and stop, can't realize that server end is initiatively to the client push data etc.
In order to utilize the advantage of B/S framework, much human attempts improving, and constitutes the B/C/S framework such as mixing B/S and C/S; Promptly in browser, embed the business function assembly and supply a gap, but the pluses and minuses of these two kinds of frameworks of finally just compromising, and strengthened complexity of developing; Often be considered to insincere when on browser, installing as plug-in unit owing to the assembly that embeds simultaneously; And shielded by associated safety setting or security protection software, bring many troubles to the user, be to lose more than gain.
The problems of above-mentioned Web transmission network management system; It all is the common problem of traditional web application; In order to solve this type of problem; The web application that a kind ofly is called as rich internet application program (RIA), has high interaction property and enriches user experience has occurred, and makes the high-performance Web transmission network management system of the B/S framework that exploitation is real become possibility.
RIA is a milestone of the development of Web technology.The characteristics of the multipad that it has comprise:
1, aspect message authentication and the formatting interactive user interface is being provided;
2, is provided the interface response time efficiently under brushless new page;
3, general user interface characteristic such as drag and drop formula (Drag and Drop) and online and off-line operation ability is provided;
4, the characteristics that have web application simultaneously, as: dispose immediately, cross-platform, adopt and progressively download retrieval of content and data and can make full use of the internet standard of extensively being adopted.
The appearance of RIA has progressively shielded the estrangement between C/S and the B/S.
The RIA exploitation must possess two key elements: rich client (Rich Client) technology and server technology.The server technology of RIA is inherited from existing server technology, and technology is very nearly the same, and it is mainly rich client a kind of connection mechanism is provided, supporting database application and development, bidirectional data communication, real-time data communication.The core of RIA then is the rich client technology.RIA utilizes the rich client technology with very strong interactivity to come to experience for the user provides a higher and more omnibearing network.The rich client technology makes establishment RIA become possibility, and the environment when it provides an operation is to carry the client application (this client application is a file that uses the http protocol issue) that is compiled.Client application adopts a kind of safe, upgradeable, driving model towards Web service with adaptability, asynchronous being connected on the existing application server.
At present, also RIA is not applied to the solution of telecommunication transmission network management system, this is further studied necessary.
Summary of the invention
To the defective that exists in the prior art; The object of the present invention is to provide a kind of high-performance Web transmission network management system and implementation method based on RIA; The Web transmission network management system of being developed has high interaction property, enriches user experience, and runs on the powerful client on the Web browser.
For reaching above purpose, the technical scheme that the present invention takes is:
A kind of high-performance Web transmission network management system based on RIA is characterized in that, this Web transmission network management system comprises:
Be arranged at the Web browser of client, the carrying tool when being the rich client applications operation, Web browser downloads to local computer with rich client applications from Web server through http protocol, then this program of off-line or on-line operation;
The Web server end comprises rich client applications, Web data service layer, WebServices layer, Business Logic, data access layer and system integration layer; Wherein:
Described rich client applications realizes the graphic user interface and the client data processing of Web transmission network management system,
Described Web data service layer, for rich client applications provides data, services, the request of data can be synchronous or asynchronous, the propelling movement of the responsible real time data of this layer simultaneously,
Described Web Services layer; For rich client applications or external system provide the data, services based on SOAP Web Service or REST Web Service; Said SOAP is Simple Object Access Protocol, Simple Object Access Protocol; Said REST is Representational State Transfer, and the statement sexual state shifts;
Described Business Logic, the business function of responsible network management system, and for Web data service layer and Web Services layer provide data, said business function comprises: Topology Management, alarm management, performance management, configuration management, safety management,
Described data access layer, for Business Logic provides unified, transparent data resource access interface, this data resource access interface is used for realizing: the data record to being stored in database increases, deletes, changes, looks into,
Described system integration layer is responsible for carrying out alternately with the underlying network guard system, and basic data is provided for Business Logic.
On the basis of technique scheme, the described Web browser that is arranged at client is supported each current big main flow browser; Described rich client applications has adopted the rich client technology of RIA to develop, and this rich client applications is published on the Web server in advance, and the Web browser that is set at client with user's request then downloads to local computer and carries out.
A kind of implementation method of the high-performance Web transmission network management system based on RIA is characterized in that, may further comprise the steps:
A) utilize rich client technological development rich client applications, and be published on the Web server;
B) Web browser sends the HTTP request to the Web server end; Download rich client applications then, and in Web browser, move rich client applications:, then corresponding insert need be installed if client is moved rich client applications first; These plug-in units all are that official provides; Safe and reliable, and can in a few minutes, can download, installation, need not extra configuration;
C) after rich client applications is moved in Web browser, show login window, the user inputs right user name, password, logins the main interface of successfully back loading and demonstration Web transmission network management system, and the user can carry out the network management function operation afterwards;
D) user logins successful the time, and this client is registered at the Web server end, can obtain the data that the Web server end pushes afterwards in real time;
E) rich client applications is when realizing network management function, makes full use of the computational resource of local computer through multithreading, through built-in generic operation local disk, creates and maintenance safe client Virtual File System through the isolated storage technology;
F) carry out data communication at the rich client applications of client operation request and the Web server end through HTTP, the data that request is returned are called UI (User Interface) thread and are come the part to refresh network management interface after the rich client applications processing;
G) external system carries out data communication with Web server through calling the Web Service of Web Services layer, and said external system is third party's operation maintenance system, as sends single system.
On the basis of technique scheme, in the said step a), the design process of rich client applications comprises following steps:
1) user selects the assembly in the rich client technology, or utilizes class libraries to make up self-defined assembly;
2) resource file of loading rich client applications design;
3) utilize said modules to make up graphic user interface, write the description document at interface;
4) write the background process file at interface;
5) pattern of design interface;
6) the compiling source file connects into rich client applications.
On the basis of technique scheme; In the said step a); The rich client applications of design has abundant graphic user interface, supports relevant mouse, keyboard operation to interface element, said mouse, keyboard operation comprise pull, move, multiselect, frame select, the interface convergent-divergent.
On the basis of technique scheme, in the said step d), the push technology of real time data adopts duplex signaling and the XMLSocket communication in the rich client technology, or adopts Ajax or the long interconnection technique of HTTP.
On the basis of technique scheme; In the said step e); The multithreading of rich client applications is meant: rich client applications has a primary application program thread: the UI thread, and rich client applications possesses the ability of using other threads that other threads that the developer creates or thread pool provide simultaneously.
On the basis of technique scheme; In the said step e); Utilize the isolated storage technology, the data in the rich client applications can be saved in the memory block of Virtual File System, and these data will be arranged in the Virtual File System by the user all the time isolates; Said Virtual File System is a file in the root, or catalogue in the root and file tree.
On the basis of technique scheme; In the said step f); Rich client applications in the client operation carries out data communication with the Web server end through Web data service layer or Web Services layer: Web data service layer or Web Services layer are resolved the request that rich client applications is sent; Call the corresponding method of Business Logic and handle request, then result is returned to rich client applications;
In the said step f), visit Web server through the Web data service layer: adopt rich client technology or Ajax technology to come synchronous or asynchronous the transmission to ask to the Web data service layer in the preferential selection of the rich client applications of client operation.
On the basis of technique scheme; In the said step g), the Web Service that external system is called is: SOAP Web Service or REST Web Service, and the form of data is Pox or Json; Said Pox is Plain Old XML, early stage XML form; Described Json is JavaScript Object Notation, a kind of data interchange format of lightweight.
High-performance Web transmission network management system and implementation method based on RIA of the present invention; Effectively utilize RIA framework and rich client technology; Be applied in the telecommunication transmission network management system operation function strong network management client on the Web browser of main flow (Web transmission network management client); This Web transmission network management client has various complicated graphical user; Support the part to refresh the interface; Direct and server carries out synchronously or asynchronous interactive, accepts the data that server end pushes in real time, and can make full use of the computational resource and the storage resources of local computer.
Embodiment
Below in conjunction with accompanying drawing the present invention is done further explain.
Fig. 1 is the system architecture diagram of the high-performance Web transmission network management system based on RIA of the present invention, and this Web transmission network management system comprises:
Be arranged at the Web browser (Client Browser) of client; Carrying tool when being rich client applications (Web transmission network management client-side program) operation; Web browser downloads to local computer with rich client applications from Web server through http protocol, then this program of off-line or on-line operation;
The Web server end comprises rich client applications, Web data service layer, Web Services layer, Business Logic, data access layer and system integration layer; Wherein:
Described rich client applications (Rich Client Application) realizes the graphic user interface and the client data processing of Web transmission network management system,
Described Web data service layer (Web Data Provider Tier), for rich client applications provides data, services, the request of data can be synchronous or asynchronous, the propelling movement of the responsible real time data of this layer simultaneously,
Described Web Services layer (Web Services Tier); For rich client applications or external system provide the data, services based on SOAP Web Service or REST Web Service; Said SOAP is Simple Object Access Protocol, Simple Object Access Protocol; Said REST is Representational State Transfer, and the statement sexual state shifts;
Described Business Logic (Business Logic Tier); Be responsible for the business function of network management system; And for Web data service layer and Web Services layer provide data, said business function comprises: Topology Management, alarm management, performance management, configuration management, safety management
Described data access layer (Data Access Tier), for Business Logic provides unified, transparent data resource access interface, this data resource access interface is used for realizing: the data record to being stored in database increases, deletes, changes, looks into,
Described system integration layer (System Integration Tier) is responsible for carrying out alternately with underlying network guard system (NE-level network management system), and basic data is provided for Business Logic.
In the above-mentioned high-performance Web transmission network management system based on RIA, the described Web browser that is arranged at client is supported each current big main flow browser; Described rich client applications has adopted the rich client technology of RIA to develop, and this rich client applications is published on the Web server in advance, and the Web browser that is set at client with user's request then downloads to local computer and carries out.
The present invention also provides a kind of high-performance Web transmission network management system implementation method based on RIA of using above-mentioned transmission network management system, may further comprise the steps:
A) utilize rich client technological development rich client applications, and be published on the Web server;
B) Web browser sends the HTTP request to the Web server end; Download rich client applications then, and in Web browser, move rich client applications:, then corresponding insert need be installed if client is moved rich client applications first; As: the rich client applications based on Silverlight need be installed the Silverlight plug-in unit; Based on the rich client applications of Flex Flash player plug-in unit need be installed, these plug-in units all are that official provides, and are safe and reliable; And can in a few minutes, can download, installation, need not extra configuration;
C) after rich client applications is moved in Web browser, show login window, the user inputs right user name, password, logins the main interface of successfully back loading and demonstration Web transmission network management system, and the user can carry out the network management function operation afterwards;
D) user logins successful the time, and this client is registered at the Web server end, can obtain the data that the Web server end pushes afterwards in real time;
E) rich client applications is when realizing network management function, makes full use of the computational resource of local computer through multithreading, through built-in generic operation local disk, creates and maintenance safe client Virtual File System through the isolated storage technology;
F) carry out data communication at the rich client applications of client operation request and the Web server end through HTTP, the data that request is returned are called UI (User Interface) thread and are come the part to refresh network management interface after the rich client applications processing;
G) external system carries out data communication with Web server through calling the Web Service of Web Services layer, and said external system is third party's operation maintenance system, as sends single system.
In the said step a), the design process of rich client applications is as shown in Figure 2, comprises following steps:
1) user selects the assembly in the rich client technology, or utilizes class libraries to make up self-defined assembly;
2) resource file of loading rich client applications design;
3) utilize said modules to make up graphic user interface, write the description document at interface;
4) write the background process file at interface;
5) pattern of design interface;
6) the compiling source file connects into rich client applications.
In the said step a), the rich client applications of design has abundant graphic user interface, supports relevant mouse, keyboard operation to interface element, said mouse, keyboard operation comprise pull, move, multiselect, frame select, the interface convergent-divergent.
In the said step d), the push technology of real time data adopts duplex signaling and the XMLSocket communication in the rich client technology, or adopts Ajax or the long interconnection technique of HTTP.Said XMLSocket is the XML socket; Said Ajax is Asynchronous JavaScript and XML, asynchronous JavaScript and XML.
In the said step e); The multithreading of rich client applications is meant: rich client applications has a primary application program thread: the UI thread, and rich client applications possesses the ability of using other threads that other threads that the developer creates or thread pool provide simultaneously.The use of multithreading can let NM client enjoy the more computational resource of local computer.Multithreading does not possess in the Traditional Web technology, and in the rich client technology, can finely use, but restriction is also arranged, and the using priciple of multithreading is the fail safe that needs to guarantee the UI thread.
In the said step e); Utilize the isolated storage technology; Data in the rich client applications can be saved in the memory block of Virtual File System; These data will be arranged in the Virtual File System by the user all the time isolates, and said Virtual File System is a file in the root, or catalogue in the root and file tree.Utilize the isolated storage technology, thereby can let rich client applications enjoy the storage resources of local computer fully, safely, realize the client personalized customization service that traditional web application can't be realized.
In the said step f); Rich client applications in the client operation carries out data communication with the Web server end through Web data service layer or Web Services layer: Web data service layer or Web Services layer are resolved the request that rich client applications is sent; Call the corresponding method of Business Logic and handle request, then result is returned to rich client applications.
In the said step f), visit Web server through the Web data service layer: adopt rich client technology or Ajax technology to come synchronous or asynchronous the transmission to ask to the Web data service layer in the preferential selection of the rich client applications of client operation.
In the said step g), the Web Service that external system is called is: SOAP Web Service or REST Web Service, and the form of data is Pox or Json, said Pox is Plain Old XML, early stage XML form; Described Json is JavaScript Object Notation, a kind of data interchange format of lightweight.
Beneficial effect of the present invention is: utilize RIA framework and rich client the technology, let real B/S framework the high-performance Web transmission network management be developed to for a kind of maybe.Constructed Web transmission network management system has the complex user interface of C/S framework applications program, high interactivity and complex message disposal ability; Have the advantage of application, deployment, renewal and the maintenance of B/S framework applications program concurrently; Support concurrent processing; Can send synchronous or asynchronous HTTP request and carry out data communication with Web server; Accept the data that Web server pushes in real time, and can make full use of the computational resource and the storage resources of local computer, for the user provides omnibearing, colourful customer experience.
The practical implementation case
This practical implementation case adopts Silverlight as the rich client development technique, and the Java framework that adopts Spring+Hibernate makes up the RIA framework as the server end development technique.
Utilize described RIA framework to make up the Web transmission network management system, system architecture such as Fig. 3, the concrete realization as follows:
A) Web browser adopts the current main-stream browser, like IE, FireFox, Chrome, Opera etc.Download Web transmission network management client (being rich client applications), on browser, move and operate the interface of Web transmission network management then, the customer experience of indifference is provided for the user.Move the Silverlight application program first and need download the Silverlight plug-in unit from Microsoft;
B) Web transmission network management client mainly makes up abundant graphic user interface by the Silverlight technology, supports the Traditional Web interface simultaneously.The client background data processing adopts multithreading, by the thread pool unified management; Customization data and part client ephemeral data then utilize the isolated storage technology to read and write;
C) Web data service layer, the WebClient of employing Silverlight calls the asynchronous data of obtaining of Servlet of this layer, and the XMLHTTPRequest of use Ajax calls the synchronous or asynchronous data of obtaining of Servlet of this layer.Employing realizes the real time propelling movement of alarm data based on long DWR framework that connects of HTTP and ActiveMQ;
D) Web Service layer adopts the Soap Web Service based on the Json form;
E) Business Logic utilizes the Spring framework to realize the business function of transmission network management system;
F) data access layer adopts the Hibernate framework that unified, transparent data resource access interface is provided.
Said Web transmission network management system case study on implementation; Except the characteristics that the present invention has; Also has the advantage of striding Web browser, cross operating system, striding Web server; Only needing to support the transplanting between databases such as Oracle, Informix, Sql Server and MySql under the situation of simple modification Hibernate configuration file, let the present invention in practical application, become more extensive.
The concrete steps of Silverlight exploitation Web transmission network management client-side program are following:
1) user selects the built-in control of Silverlight, or utilizes the Silverlight class libraries to make up self-defined control;
2) the self-defined control engineering of compiling, and generate dll file, reuse after being convenient to;
3) resource file (like png, jpg file etc.) of loading Web transmission network management client design;
4) add Silverlight dynamic base DLL and self-defined control dynamic base DLL, utilize above-mentioned control to make up graphic user interface, utilize the description document at XAML language interface;
5) utilize .NET language (C#, VB.NET, JavaScript etc.) to write the background process program at interface;
6) pattern of design interface;
7) the compiling source file connects into Web transmission network management client-side program (XAP file);
8) Web browser sends the HTTP request, downloads described Web transmission network management client-side program (XAP file), and operation within it.
Fig. 4 is a Web transmission network management user login process, and concrete steps are following:
1) Web browser sends the HTTP request to the Web server end, downloads above-mentioned Web transmission network management client-side program then, and in browser, moves;
2) Web transmission network management client-side program starts login window;
3) user inputs user name, password;
4) Web transmission network management client-side program is at first verified the legitimacy of input, if legal, gets into next step, otherwise, return 3);
5) Web transmission network management client-side program then with user name and set of configuration data synthetic parameters, sends password encryption HTTP and asks above-mentioned Web data service layer;
6) the Web data service layer is resolved client-requested, and the user rs authentication interface that calls above-mentioned Business Logic carries out user rs authentication, and will verify that the result returns to Web transmission network management client-side program.If verify successfully, also this client is registered on Web server, afterwards can be to this client push real time data;
7) Web transmission network management client-side program obtains the checking result, if verify successfully, loads and demonstration webmaster master interface; If failure gets into 3 again).
Certainly; The present invention also has a lot of other case study on implementation; Under the situation that does not deviate from the present invention's spirit and essence; The technical staff who is familiar with different RIA technology can select corresponding rich client technology to develop the Web transmission network management system with the server end technology according to the present invention, but these changes all should belong to the protection range that the appended patent of the present invention requires.