CN105610605B - A kind of method that message reversely pushes, network management system alarm and state update - Google Patents

A kind of method that message reversely pushes, network management system alarm and state update Download PDF

Info

Publication number
CN105610605B
CN105610605B CN201510949245.3A CN201510949245A CN105610605B CN 105610605 B CN105610605 B CN 105610605B CN 201510949245 A CN201510949245 A CN 201510949245A CN 105610605 B CN105610605 B CN 105610605B
Authority
CN
China
Prior art keywords
message
socket
length
service
server
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
Application number
CN201510949245.3A
Other languages
Chinese (zh)
Other versions
CN105610605A (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.)
Chengdu Guangda Hengji Communication Technology Co., Ltd
Original Assignee
Chengdu Guangda New Network Technology Co Ltd
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 Chengdu Guangda New Network Technology Co Ltd filed Critical Chengdu Guangda New Network Technology Co Ltd
Priority to CN201510949245.3A priority Critical patent/CN105610605B/en
Publication of CN105610605A publication Critical patent/CN105610605A/en
Application granted granted Critical
Publication of CN105610605B publication Critical patent/CN105610605B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance or administration or management of packet switching networks
    • H04L41/06Arrangements for maintenance or administration or management of packet switching networks involving management of faults or events or alarms
    • H04L41/0631Alarm or event or notifications correlation; Root cause analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • H04L67/55
    • H04L67/565
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Application independent communication protocol aspects or techniques in packet data networks
    • H04L69/16Transmission control protocol/internet protocol [TCP/IP] or user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Abstract

The present invention relates to monitoring field, especially a kind of message is reversely pushed, network management system is alarmed and the method for state update.The present invention is in view of the problems of the existing technology, the method that message reversely pushes, network management system is alarmed and state updates is provided, SOCKET is established with server-side by the FLEX plug-in unit in browser to connect, method of the server to the anti-PUSH message of browser is realized, the performance of concurrent processing PUSH message is promoted.The flex plug-in unit of browser client access authority according to described in the Java.policy that server returns in the present invention sends Socket connection request to server, and server-side, which receives, to be established socket with client after the connection request of client and connect;After server receives update message, update message is pushed to browser client;Browser client carries out message parsing by message resolution module;Service message data after parsing complete the rendering of page effect by callback module.

Description

A kind of method that message reversely pushes, network management system alarm and state update
Technical field
The present invention relates to monitoring field, especially a kind of message is reversely pushed, network management system is alarmed and the side of state update Method.
Background technique
Traditional web application operating mode is that browser client sends request (request), and server end is according to request Carry out related service processing then returning response (response), have the defects that in this mode one it is great, that is, Client will obtain newest data must just send primary update page request to server, and server just can be by related data It returns, but these data may be historical data, it is also possible to be recently received data.In order to get real time data, User frequently can only send page request to server by way of poll, be based on this mode, client and server There is certain performance consumption for frequently sending request and returning response, and the process for obtaining data is that have the regular hour Delay, this is unacceptable for the application that high-frequency updates the page, in this case, in order to allow user to pass through Web obtains real time data, improves user experience, the technology that relevant server-side is pushed to browser just adapt to the needs of the times and It produces.
Summary of the invention
The technical problems to be solved by the present invention are: in view of the problems of the existing technology, providing a kind of message reverse push It send, the method for network management system alarm and state update.The present invention is based on the FLEX plug-in units in browser, establish with server-side SOCKET connection is realized function of the server to browser PUSH message, is effectively solved using the implementation of this structure Timeliness, the stability of server push message improves the performance of system concurrency processing PUSH message.In NM server The technology is used in, server-side uses MINA frame, realizes to the application function that the data has high real-time requirements, strictly according to the facts When alarm monitoring, the real-time change of device status information, the real time inspection etc. of task execution process meets Network Management and Maintenance personnel Requirement to relevant information timeliness improves network operation quality.
The technical solution adopted by the invention is as follows:
A kind of method that message reversely pushes includes:
Step 1: when browser client and server establish connection for the first time, the flex being encapsulated in browser client is inserted Part first can send the character string for being used to request Java.policy to server-side, after server-side receives this character string, Java.policy is returned to the flex plug-in unit in browser;
Step 2: the flex plug-in unit of browser client is accessed according to described in the Java.policy that server returns Permission sends Socket connection request to server again, after server-side receives the connection request of client, establishes with client Socket connection;
Step 3: after server receives update message, update message is pushed to browser client, server-side with Messaging is connected by socket between flex plug-in unit in browser client;Browser client passes through message resolution module Carry out message parsing;
Step 4: the data after parsing by callback module, are carried out the callback operation of event functions by message resolution module, Complete the rendering of page effect.
Further, browser client is specifically included by message resolution module progress message parsing in the step 3:
Step 31: message format is that Socket transmits message data head+data length value+service message head+service message Data volume;Wherein Socket transmits the protocol number and Socket transmission message that message data head includes Socket transmission message The overall length of data volume;Service message head include request mark SessionId length, service identification BusinessId length with And business datum BusinessData length;The service message data volume includes request mark HttpSessionId, business mark Know BusinessId and business datum BusinessData;
Step 32: message resolution module intercepts Socket and transmits message data head, from Socket transmission message data head The overall length for obtaining Socket transmission message data body intercepts out service message data volume according to the overall length value;
Step 33: service message head length is regular length: 12 bytes, message resolution module disappear according to fixed business Head length is ceased, service message head is obtained, parses HttpSessionId length, BusinessId respectively from business message header Length and BusinessData length;
Step 34: according to HttpSessionId length, BusinessId length and BusinessData length respectively from In service message data volume, request mark HttpSessionId, service identification BusinessId and business datum are intercepted out BusinessData, and it is passed to callback module.
Further, the step 4 specifically includes: message resolution module identifies the request being parsed HttpSessionId, service identification BusinessId, business datum BusinessData pass to callback module, callback module According to the service identification BusinessId of PUSH message, finds and registers the corresponding JavaScript event functions of the service identification, Business datum BusinessData is passed into JavaScript event functions again, carries out the callback operation of event functions, is completed The rendering of page effect.
A kind of network management system alarm control method includes:
Step 111: user accesses NM server by browser client, and flex plug-in unit is to net in browser client Pipe server requests Java.policy;After NM server receives the order of request Java.policy, in browser Flex plug-in unit returns to Java.policy;
Step 112: the flex plug-in unit in browser client is requested again according to the access authority in Java.policy Server-side establishes socket connection;After NM server receives connection request, socket is established with the flex plug-in unit in browser Connection, and record the mapping relations of connection request mark and socket connection identifier.
Step 113: NM server receives the warning information of the managed network equipment, the alarm mould of NM server Block carries out aggregation process to warning information, obtains the corresponding alarm quantity of each alarm level of a certain period, the announcement of NM server Alert module calls MINA socket service module;
After step 114:MINA socket service module receives the alarm information push order of alarm module, by each announcement Alert rank and corresponding alarm quantity are packaged into alarm information format as business datum, and according to different push modes, Complete the push operation of alarm information: if push mode is broadcast mode, MINA socket service module obtains all The socket connection identifier of browser client completes push one by one;If the mode of push is point-to-point mode, MINA Socket service module is identified according to the connection request of push, connection request identifies the mapping relations with socket connection identifier, Socket connection identifier is found, alarm quantity message is pushed to the browser client for accordingly establishing socket connection identifier, Complete alarm information push;
Step 115: message resolution module receives the MINA socket service mould of gateway server in client browser After the alarm information of block push, alarm information is parsed by message resolution module, obtains service identification and business datum;
Step 116: and then callback module obtains what needs were adjusted back according to service identification in client browser JavaScript function passes to the JavaScript function using business datum as parameter, completes function call operation.
Further, step 115 specific steps include:
Step 1151: the parsing module of browser client receives the alarm information of server-side encapsulation,
Step: 1152: alarm information format is that Socket transmits message data head+data length value+service message head+industry Business message data body;It includes that the protocol number of Socket transmission message and Socket are passed that wherein Socket, which transmits message data head, The overall length of defeated message data body;Service message head includes request mark SessionId length, service identification BusinessId Length and business datum BusinessData length;The service message data volume include request mark HttpSessionId, Service identification BusinessId and business datum BusinessData;
Step 1153: parsing module intercepts Socket and transmits message data head, obtains in Socket transmission message data head The overall length of Socket transmission message data body intercepts out service message data volume according to the overall length value;
Step 1154: service message head length is regular length: 12 bytes, parsing module is according to fixed service message Head length, obtains service message head, parses HttpSessionId length, BusinessId long respectively from business message header Degree and BusinessData length;
Step 1155: parsing module is according to HttpSessionId length, BusinessId length and BusinessData Length respectively from business message data body, intercept out request mark HttpSessionId, service identification BusinessId and Business datum BusinessData, and be passed to callback module, what wherein business datum referred to must be each alarm level and Corresponding alarm quantity.
Further, step 116 specific steps include: hold in browser callback module to the service identification of acquisition into Row logic judgment, there are two types of the values of service identification BusinessId: first is that refreshing alarm list, accusing second is that voice broadcast is newly-increased It is alert, if the service identification is to refresh alarm, the JavaScript function for refreshing alarming page is called, the real-time of the page is completed Refresh, if it is the newly-increased alarm of voice broadcast, then calls the JavaScript function of voice broadcast, each alarm level will be parsed And corresponding alarm quantity passes to the JavaScript function of voice broadcast as parameter, carries out the function readjustment, completes The operation of newly-increased alarm voice broadcast.
A kind of method that network management system equipment on-line state updates includes:
Step 1111: user accesses NM server by browser client, in browser client flex plug-in unit to NM server requests Java.policy;After NM server receives the order of request Java.policy, in browser Flex plug-in unit return Java.policy;
Step: 1112: the flex plug-in unit in browser client is asked again according to the access authority in Java.policy Server-side is asked to establish socket connection;After NM server receives connection request, established with the flex plug-in unit in browser Socket connection, and record the mapping relations of connection request mark and socket connection identifier;
Step 1113: whether the NM server real-time detection network equipment is online, after the completion of detection, NM server Device management module obtains the presence of some time point each network equipment, and the network equipment then saved with last moment exists Linear state is compared, and obtains the changed network equipment number of presence;The equipment management mould of last NM server Block calls MINA socket service module,
It, will after the equipment state that step 1114:MINA socket service receives device management module updates push order The changed network equipment number message of presence is packaged into unified equipment as business datum by device management module State update message format, and according to different push modes, complete the push operation of equipment state update message;If push Mode is broadcast mode, then MINA socket service module obtains the socket connection identifier of all browser clients, one by one Complete push;If push mode is point-to-point mode, MINA socket service module is according to the connection request mark of push Know, the mapping relations of connection request mark and socket connection identifier, find socket connection identifier, equipment state update is disappeared Breath is pushed to the browser client for accordingly establishing socket connection identifier, completes the push of equipment state update message;
Step 1115: after data resolution module receives the message that NM server pushes in client browser, offseting Breath is parsed, and obtains service identification and the network equipment of presence change occurs;
Step 1116: and then callback module obtains what needs were adjusted back according to type of message in client browser JavaScript function, then the equipment by the generation presence change in message passes to this as parameter JavaScript function completes function call operation.
Further, step 1115 specific steps include:
Step 11151: the equipment state update that the parsing module of browser client receives gateway service end seal dress disappears Breath;Equipment state more format is that Socket transmits message data head+data length value+service message head+service message data Body;Wherein Socket transmits the protocol number and Socket transmission message data that message data head includes Socket transmission message The overall length of body;Service message head includes request mark SessionId length, service identification BusinessId length and industry Business data BusinessData length;The service message data volume includes request mark HttpSessionId, service identification BusinessId and business datum BusinessData;
Step 11152: parsing module intercepts Socket and transmits message data head, obtains in Socket transmission message data head The overall length of Socket transmission message data body intercepts out service message data volume according to the overall length value;
Step 11153: service message head length is regular length: 12 bytes, message resolution module is according to fixed industry Be engaged in message header length, obtain service message head, parsed respectively from business message header HttpSessionId length, BusinessId length and BusinessData length;
Step 11154: message resolution module according to HttpSessionId length, BusinessId length and BusinessData length from business message data body, intercepts out request mark HttpSessionId, service identification respectively BusinessId and business datum BusinessData, and it is passed to callback module, what wherein business datum referred to must be The network equipment number of presence variation.
Further, step 1116 specific steps include: browser client callback module to acquisition service identification BusinessId carries out logic judgment, and there are two types of the values of service identification BusinessId: first is that asset tree is updated, second is that updating Topological diagram;If service identification is that will parse the specific network equipment that presence change occurs when updating asset tree Number passes to the JavaScript function of voice broadcast as parameter, carries out function readjustment;If service identification is to update to open up Figure is flutterred, then the network equipment number of the specific generation presence parsed change is passed into update topology as parameter The JavaScript function of figure carries out function readjustment, completes the change of equipment on-line state on asset tree.
In conclusion by adopting the above-described technical solution, the beneficial effects of the present invention are:
1) it after server-side message is pushed to browser, can be adjusted back by Flex plug-in unit with server-side real time communication The mode of JavaScript event functions changes page display effect, and real-time is guaranteed, and timeliness is good.
2) the present invention is based on the FLEX plug-in units in browser, establish SOCKET long connection with server-side, server-side uses MINA frame is realized function of the server to browser PUSH message, is efficiently solved using the implementation of this structure Timeliness, the stability of server push message improve the performance of system concurrency processing PUSH message.
3) technology is used in network management application, realized to the application function that the data has high real-time requirements, such as in real time Alarm monitoring, the real-time change of device status information, the real time inspection etc. of task execution process meet Network Management and Maintenance personnel couple The requirement of relevant information timeliness improves network operation quality.
Specific embodiment
All features disclosed in this specification or disclosed all methods or in the process the step of, in addition to mutually exclusive Feature and/or step other than, can combine in any way.
Any feature disclosed in this specification (including any accessory claim, abstract), unless specifically stated, It is replaced by other equivalent or with similar purpose alternative features.That is, unless specifically stated, each feature is a series of An example in equivalent or similar characteristics.
Related description of the present invention:
1, the effect of strategy file is the domain name permission (or ip) for the flex plug-in unit access server being arranged in browser, Access the port permission of server.
2, this message push technology first is that FLEX provides Socket connection service, establish by browser client and server After connection, server by utilizing Socket sends data to browser;Second is that JavaScript's and FLEX combines closely, JavaScript and FLEX can be called mutually.
3, message format is explained as follows:
Tag: it indicates the protocol number (value is fixed herein) of Socket transmission message, accounts for 4 bytes;
Data length: Socket transmits the overall length of message data body, accounts for 4 bytes, and value is more than or equal to 12;
HttpSessionId length: recording the binary code length of HttpSessionId, accounts for 4 bytes;
BusinessId length: recording the binary code length of BusinessId, accounts for 4 bytes;
BusinessData length: recording the binary code length of BusinessData, accounts for 4 bytes;
HttpSessionId: user browser logs in corresponding HttpSeeeion number, binary code value;
BusinessId: concrete function business is numbered when sending message in application, binary code value;
BusinessData: concrete function business datum when sending message in application, binary code value.
Working principle: after browser client sends request for the first time and server establishes connection, server is being returned Current connection is just always maintained at opening state while data, is just stood when receiving new data every time after server Client is returned to by this connection, client interpretation response data is simultaneously shown on a user interface.Specifically include browsing Flex plug-in unit in device realize SOCKET connection service, this allow operation flash Player computer and server It is communicated, then completes the message push function of server.The method of use is one FLEX program of insertion, client in webpage End feet sheet (JavaScript) will change the event registration of the page into FLEX plug-in unit, and FLEX is receiving disappearing for server push After breath, the JAVASCRIPT event of registration is called, the Dom (text control object model) for controlling HTML is aobvious to change the content of the page Show, and achieve the effect that server active push to client, system structure is shown in shown.Third is that server-side uses MINA frame Frame improves the oncurrent processing ability and system stability of big data quantity.
Specific embodiment:
1, browser client and server-side establish socket connection, establish the process of connection the following steps are included: first Encapsulation flex plug-in unit in a browser, can first to 843 ports of server-side (port is configurable) send a character string " < Policy-file-request/ > " requests Java.policy, after server-side receives this character string, directly according to XML Format returns to Java.policy;
Client access authority according to described in the Java.policy that server-side returns sends to server-side connect again Request is connect, which includes request mark, server-side IP, port numbers, after server-side receives the connection request of client, clothes The connection request mark for device end preservation client of being engaged in, establishes socket long connection with client, so far completion and browser service Device connection is established, and is connected shown in establishment process.
2, the reception of message: the reception to server-side PUSH message is completed, after receiving PUSH message, message is handed over to Message resolution module is handled.The parsing of message: pass through socket between flex plug-in unit in server-side and browser client There are many message categories for connecting transmitting-receiving, for convenience of message is uniformly processed, define standard set message format, all Messaging must be the format, which is exactly that the parsing of specified format is carried out to the message of server-side push.Specific message Format is carried out according to subsequent message format, and Socket transmits message data head+data length value+service message head (HttpSessionId length+BusinessId length+BusinessData length)+service message data volume (HttpSessionId+BusinessId+BusinessData), resolution rules are as follows: interception Socket first transmits message count According to head, from data head, the overall length of transmission message data body is obtained, according to the length, interception transmission message data body is right Data volume further progress parsing obtains service message head, parses respectively from business message header according to designated length HttpSessionId length, BusinessId length, BusinessData length disappear from business respectively further according to these length It ceases in data volume, HttpSessionId, BusinessId, BusinessData is intercepted out, after intercepting out these values, by these Value is transferred to readjustment JavaScript function processing module, carries out the processing of JavaScript function readjustment
4, browser client callback module: the module is made of two parts, and one, which is responsible for registration business function, specifies JavaScript event functions, registration is completed in browser device loading page, and the content of registration includes service identification, The JavaScript event functions of readjustment;Two are responsible for adjusting back the JavaScript event functions of registration, adjust back process It is as follows: after flex plug-in unit receives the message of server-side push, to carry out message parsing, the HttpSessionId that will be parsed (request mark), BusinessId (service identification), BusinessData (business datum) pass to this module, this module basis The BusinessId (service identification) of PUSH message finds and registers the corresponding JavaScript event functions of the service identification, then BusinessData (business datum) is passed into JavaScript event functions, carries out the callback operation of event functions, is completed The rendering of page effect;
Wherein callback module includes two functions, and one is responsible for the specified JavaScript event letter of registration business function Number, registration is completed in browser device loading page, and the content of registration includes service identification, the JavaScript thing of readjustment Part function;Two are responsible for adjusting back the JavaScript event functions of registration, and readjustment process is as follows: flex plug-in unit receives After the message of server-side push, carry out message parsing, by the HttpSessionId being parsed (request identify), BusinessId (service identification), BusinessData (business datum) pass to this module, this module is according to PUSH message BusinessId (service identification) finds and registers the corresponding JavaScript event functions of the service identification, then will BusinessData (business datum) passes to JavaScript event functions, carries out the callback operation of event functions, completes page The rendering of face effect.
Embodiment two:
Server to browser message push be a kind of better user experience business model, can be wanted according to different business It asks, the displaying carried out in real time, various to PUSH message takes full advantage of the message push technology, complete in network management system All kinds of business functions preferably meet maintenance requirement of the network management personnel to network.
Real-time Alarm monitoring
The major function of Real-time Alarm monitoring is that the warning information generated to institute's management equipment in system is presented in real time, Network maintenance staff is facilitated to position and handle network failure, when a certain equipment produces new alarm or region point Equipment alarm rank under group is changed, and the different function pages in system should be able to all reflect this variation in time, side Just network maintenance staff carries out fault discovery processing.It is the push process after alerting, after collection of server to warning information, The processing of alarm business process is carried out, by the change message of total alarm quantity, the message of Real-time Alarm list variation, region/grouping The message such as alarm level change are pushed to browser client, after client receives the message, according to the not same page of user's access The exception processes of face progress content of pages.Specific implementation process:
1) user accesses network management system by browser, and after logining successfully, flex plug-in unit can be asked to server-side in browser Seek Java.policy.
2) after NM server receives the order for requesting Java.policy, safety is returned to the flex plug-in unit in browser Strategy file.
3) the flex plug-in unit in browser requests server-side to be established again according to the Permission Constraints in Java.policy Socket connection.
4) after NM server receives connection request, socket is established with the flex plug-in unit in browser and is connect, and is recorded The mapping relations of connection request mark and socket connection identifier.
5) NM server receives the warning information of management equipment, and alarm module carries out aggregation process to alarm, obtains Alarm quantity under a certain period each alarm level calls MINA socket service module (to service by MINA socket real It is existing), tell the service that the request by data-pushing to which browser is needed to identify.Alarm module is taken by MINA socket Alarm quantity is pushed to there are two types of the modes of browser client by business module: the first is broadcast mode push, that is, is passed through Alarm quantity message is pushed to and all establishes the browsing that socket is connect with NM server by MINA socket service module Device client;Second is point-to-point push, i.e., identifies alarm quantity message and socket connection request, pass through MINA What socket service was pushed to and specified establishes the browser client of socket connection.If using broadcast mode (first Kind) message push is carried out, alarm module only needs the alarm information that will be pushed to pass to MINA socket service, if made Message push is carried out with point-to-point mode (second), alarm module needs the alarm information that will be pushed, and needs to push Connection request mark pass to MINA socket service.;
6) MINA socket is serviced, and after the push order for receiving alarm module, PUSH message is packaged into unified disappear Format is ceased, and obtains the request mark of push, socket connection identifier is found, completes the operation of alarm information push.
7) after flex plug-in unit receives the message that server end pushes in client browser, alarm information is parsed (parsing detailed process is: browser client carries out message parsing by message resolution module and specifically includes: step 31: transmitting-receiving Message format is that Socket transmits message data head+data length value+service message head+service message data volume;Wherein Socket transmission message data head includes that the protocol number of Socket transmission message and Socket transmit the total of message data body Body length;Service message head includes request mark SessionId length, service identification BusinessId length and business datum BusinessData length;The service message data volume includes request mark HttpSessionId, service identification BusinessId and business datum BusinessData;Step 32: interception Socket transmits message data head, Socket transmission The overall length that Socket transmission message data body is obtained in message data head intercepts out business and disappears according to the overall length value Cease data volume;Step 33: service message head length is regular length: 12 bytes are obtained according to fixed service message head length Take service message head, parsed respectively from business message header HttpSessionId length, BusinessId length and BusinessData length;Step 34: according to HttpSessionId length, BusinessId length and BusinessData Length respectively from business message data body, intercept out request mark HttpSessionId, service identification BusinessId and Business datum BusinessData, and it is passed to callback module), alarm information type and specific alarm information are obtained, Then according to type of message, the JavaScript function for needing to adjust back is obtained, by specific alarm information, as parameter, transmitting The JavaScript function is given, function call operation is completed.
8) method that the page of browser realizes JavaScript function completes the rendering of the page, reaches alarm data Accurate show and prompt operation user has the purpose of newly-increased alarm.
Embodiment three:
1) user accesses network management system by browser, and after logining successfully, flex plug-in unit can be asked to server-side in browser Seek Java.policy.
2) after NM server receives the order for requesting Java.policy, safety is returned to the flex plug-in unit in browser Strategy file.
3) the flex plug-in unit in browser requests server-side to be established again according to the Permission Constraints in Java.policy Socket connection.
4) after NM server receives connection request, socket is established with the flex plug-in unit in browser and is connect, and is recorded The mapping relations of connection request mark and socket connection identifier.
5) whether network management acquisition server meeting real-time detection management equipment is online, after the completion of detection, can obtain some time Then the upper down status of each equipment of point calls MINA socket service, tell that the service needs data-pushing is clear to which Look at device request mark.
6) MINA socket is serviced, and after the push order for receiving the business module, PUSH message is packaged into unification Message format, and the request mark of push is obtained, socket connection identifier is found, the behaviour of offline message push in equipment is completed Make.
7) after flex plug-in unit receives the message that server end pushes in client browser, message is parsed, is obtained Type of message is obtained, according to type of message, the JavaScript function for needing to adjust back is obtained, then by the upper of each equipment in message It is offline, as parameter, the JavaScript function is passed to, completes function call operation.
8) method that the page of browser realizes JavaScript function completes the rendering of the page, reaches equipment or more The accurate purpose shown and prompt operation status of user equipment changes of linear state.
The invention is not limited to specific embodiments above-mentioned.The present invention, which expands to, any in the present specification to be disclosed New feature or any new combination, and disclose any new method or process the step of or any new combination.

Claims (7)

1. a kind of method that message reversely pushes, characterized by comprising:
Step 1: when browser client and NM server establish connection for the first time, the flex being encapsulated in browser client is inserted Part first can send one for requesting the character string of Java.policy to NM server, and NM server receives this After character string, Java.policy is returned to the flex plug-in unit in browser;
Step 2: the flex plug-in unit of browser client is accessed according to described in the Java.policy that NM server returns Permission sends Socket connection request to NM server again, after NM server receives the connection request of client, with visitor Socket connection is established at family end;
Step 3: after NM server receives update message, update message being pushed to browser client, network manager service Messaging is connected by socket between flex plug-in unit in device and browser client;Browser client is parsed by message Module carries out message parsing and specifically includes: message format is that Socket transmits message data head, data length value, service message head And service message data volume;Wherein Socket transmit message data head include Socket transmission message protocol number and The overall length of Socket transmission message data body;Service message head includes request mark HttpSessionId length, business mark Know BusinessId length and business datum BusinessData length;The service message data volume includes request mark HttpSessionId, service identification BusinessId and business datum BusinessData;Message resolution module interception Socket transmits message data head, and the totality that Socket transmission message data body is obtained from Socket transmission message data head is long Degree, according to the overall length value, intercepts out service message data volume;Message resolution module is long according to fixed service message head Degree, obtain service message head, parsed respectively from business message header HttpSessionId length, BusinessId length with And BusinessData length;According to HttpSessionId length, BusinessId length and BusinessData length point Not from business message data body, request mark HttpSessionId, service identification BusinessId and business number are intercepted out According to BusinessData, and it is passed to callback module;
Step 4: the data after parsing by callback module, are carried out the callback operation of event functions by message resolution module, are completed The rendering of page effect;The request mark that message resolution module obtains after being parsed message in the i.e. described step 4 HttpSessionId, service identification BusinessId, business datum BusinessData pass to callback module, callback module According to the service identification BusinessId of PUSH message, finds and registers the corresponding JavaScript event functions of the service identification, Business datum BusinessData is passed into JavaScript event functions again, carries out the callback operation of event functions, is completed The rendering of page effect.
2. a kind of network management system alarm control method, characterized by comprising:
Step 111: user accesses NM server by browser client, and flex plug-in unit takes to network management in browser client Business device requests Java.policy;After NM server receives the order of request Java.policy, to the flex in browser Plug-in unit returns to Java.policy;
Step 112: the flex plug-in unit in browser client requests network management according to the access authority in Java.policy again Server establishes socket connection;After NM server receives connection request, socket is established with the flex plug-in unit in browser Connection, and record the mapping relations of connection request mark and socket connection identifier;
Step 113: NM server receives the warning information of the managed network equipment, the alarm module pair of NM server Warning information carries out aggregation process, obtains the corresponding alarm quantity of each alarm level of a certain period, the alarm mould of NM server Block calls MINA socket service module;
After step 114:MINA socket service module receives the alarm information push order of alarm module, by each alert level Other and corresponding alarm quantity is packaged into alarm information format as business datum, and according to different push modes, completes The push operation of alarm information: if push mode is broadcast mode, MINA socket service module obtains all browsers The socket connection identifier of client completes push one by one;If push mode is point-to-point mode, MINA socket clothes Module of being engaged in is found according to the connection request of push mark, the mapping relations of connection request mark and socket connection identifier Alarm quantity message is pushed to the browser client for accordingly establishing socket connection identifier, completed by socket connection identifier Alarm information push;
Step 115: the MINA socket service module that message resolution module receives NM server in client browser pushes away After the alarm information sent, alarm information is parsed by message resolution module, obtains service identification and business datum;
Step 116: and then callback module obtains the JavaScript letter for needing to adjust back according to service identification in client browser Number passes to the JavaScript function using business datum as parameter, completes function call operation.
3. a kind of network management system alarm control method according to claim 2, it is characterised in that the step 115 specifically walks Suddenly include:
Step 1151: the parsing module of browser client receives the alarm information of NM server encapsulation,
Step: 1152: alarm information format is that Socket transmits message data head, data length value, service message head and industry Business message data body;It includes that the protocol number of Socket transmission message and Socket are passed that wherein Socket, which transmits message data head, The overall length of defeated message data body;Service message head includes request mark HttpSessionId length, service identification BusinessId length and business datum BusinessData length;The service message data volume includes request mark HttpSessionId, service identification BusinessId and business datum BusinessData;
Step 1153: parsing module intercepts Socket and transmits message data head, obtains in Socket transmission message data head The overall length of Socket transmission message data body intercepts out service message data volume according to the overall length value;
Step 1154: message resolution module obtains service message head, from business message header according to fixed service message head length It is middle to parse HttpSessionId length, BusinessId length and BusinessData length respectively;
Step 1155: message resolution module is according to HttpSessionId length, BusinessId length and BusinessData Length respectively from business message data body, intercept out request mark HttpSessionId, service identification BusinessId and Business datum BusinessData, and be passed to callback module, wherein business datum refers to each alarm level and right The alarm quantity answered.
4. a kind of network management system alarm control method according to claim 3, it is characterised in that the step 116 specifically walks It suddenly include: service identification progress logic judgment of the callback module to acquisition, service identification BusinessId in client browser Value there are two types of: first is that refresh alarm list, second is that the newly-increased alarm of voice broadcast, if the service identification is to refresh alarm, The JavaScript function for refreshing alarming page is then called, the real-time refreshing of the page is completed, is alerted if it is voice broadcast is newly-increased, The JavaScript function of voice broadcast is then called, each alarm level and corresponding alarm quantity will be parsed as parameter, The JavaScript function of voice broadcast is passed to, the function readjustment is carried out, completes the operation of newly-increased alarm voice broadcast.
5. a kind of method that network management system equipment on-line state updates, characterized by comprising:
Step 1111: user accesses NM server by browser client, and flex plug-in unit is to network management in browser client Server requests Java.policy;After NM server receives the order of request Java.policy, in browser Flex plug-in unit returns to Java.policy;
Step: 1112: the flex plug-in unit in browser client requests net according to the access authority in Java.policy again Pipe server establishes socket connection;After NM server receives connection request, established with the flex plug-in unit in browser Socket connection, and record the mapping relations of connection request mark and socket connection identifier;
Step 1113: whether the NM server real-time detection network equipment is online, after the completion of detection, the equipment of NM server Management module obtains the presence of some time point each network equipment, and the network equipment then saved with last moment is in threadiness State is compared, and obtains the changed network equipment number of presence;The device management module tune of last NM server With MINA socket service module,
It, will after the equipment state that step 1114:MINA socket service module receives device management module updates push order The changed network equipment number message of device management module presence is packaged into unified equipment shape as business datum State update message format, and according to different push modes, complete the push operation of equipment state update message;If push side Formula is broadcast mode, then MINA socket service module obtains the socket connection identifier of all browser clients, complete one by one At push;If push mode is point-to-point mode, MINA socket service module identifies according to the connection request of push, The mapping relations of connection request mark and socket connection identifier, find socket connection identifier, by equipment state update message It is pushed to the browser client for accordingly establishing socket connection identifier, completes the push of equipment state update message;
Step 1115: in client browser data resolution module receive NM server push message after, to message into Row parsing obtains service identification and the network equipment of presence change occurs;
Step 1116: and then callback module obtains the JavaScript for needing to adjust back according to type of message in client browser Function, then the equipment by the generation presence change in message passes to the JavaScript function as parameter, complete It is operated at function call.
6. the method that a kind of network management system equipment on-line state according to claim 5 updates, it is characterised in that the step Rapid 1115 specific steps include:
Step 11151: the parsing module of browser client receives the equipment state update message of NM server encapsulation;If Standby state more format is that Socket transmits message data head, data length value, service message head and service message data volume; Wherein Socket transmits the protocol number and Socket transmission message data body that message data head includes Socket transmission message Overall length;Service message head include request mark HttpSessionId length, service identification BusinessId length and Business datum BusinessData length;The service message data volume includes request mark HttpSessionId, service identification BusinessId and business datum BusinessData;
Step 11152: message resolution module intercepts Socket and transmits message data head, obtains in Socket transmission message data head The overall length of Socket transmission message data body intercepts out service message data volume according to the overall length value;
Step 11153: message resolution module obtains service message head, from service message according to fixed service message head length HttpSessionId length, BusinessId length and BusinessData length are parsed respectively in head;
Step 11154: message resolution module according to HttpSessionId length, BusinessId length and BusinessData length from business message data body, intercepts out request mark HttpSessionId, service identification respectively BusinessId and business datum BusinessData, and it is passed to callback module, wherein business datum refers to The network equipment of line state change is numbered.
7. the method that a kind of network management system equipment on-line state according to claim 5 updates, it is characterised in that the step Rapid 1116 specific steps include: that browser client callback module carries out logic judgment to service identification BusinessId is obtained, There are two types of the values of service identification BusinessId: first is that asset tree is updated, second is that updating topological diagram;If service identification is more When new assets tree, then it will parse the specific network equipment that presence change occurs and number as parameter, pass to update The JavaScript function of asset tree carries out function readjustment;If service identification is to update topological diagram, specific by what is parsed The network equipment number that presence change occurs as parameter, pass to the JavaScript function for updating topological diagram, into Line function readjustment, completes the change of equipment on-line state on asset tree.
CN201510949245.3A 2015-12-18 2015-12-18 A kind of method that message reversely pushes, network management system alarm and state update Expired - Fee Related CN105610605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510949245.3A CN105610605B (en) 2015-12-18 2015-12-18 A kind of method that message reversely pushes, network management system alarm and state update

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510949245.3A CN105610605B (en) 2015-12-18 2015-12-18 A kind of method that message reversely pushes, network management system alarm and state update

Publications (2)

Publication Number Publication Date
CN105610605A CN105610605A (en) 2016-05-25
CN105610605B true CN105610605B (en) 2019-04-23

Family

ID=55990151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510949245.3A Expired - Fee Related CN105610605B (en) 2015-12-18 2015-12-18 A kind of method that message reversely pushes, network management system alarm and state update

Country Status (1)

Country Link
CN (1) CN105610605B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107622205B (en) * 2016-07-13 2021-05-25 北京京东尚科信息技术有限公司 Method and device for accessing service system to mobile client
CN107634976B (en) * 2016-07-18 2020-10-16 阿里巴巴集团控股有限公司 Information pushing method, information obtaining method, advertisement pushing method, advertisement obtaining method and device
CN106297791B (en) * 2016-08-25 2020-08-18 Tcl科技集团股份有限公司 Whole-process voice implementation method and system
CN108334516B (en) * 2017-01-20 2021-12-24 百度在线网络技术(北京)有限公司 Information pushing method and device
CN107451169A (en) * 2017-03-07 2017-12-08 河海大学常州校区 A kind of athletic competition information issuing system general-purpose platform
CN108932328A (en) * 2018-07-03 2018-12-04 郑州云海信息技术有限公司 A kind of page info update method and device
CN112988505A (en) * 2021-02-08 2021-06-18 深圳阿帕云计算有限公司 Cloud computing-based general real-time big data monitoring and early warning system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1870508A (en) * 2005-05-25 2006-11-29 中兴通讯股份有限公司 Method for displaying real-time data in web network management system
CN101551821A (en) * 2009-05-19 2009-10-07 周佺喜 Method of real-time information broadcasting in web
CN102045206A (en) * 2011-01-26 2011-05-04 杭州华三通信技术有限公司 Alarm pushing method and device and system thereof
CN102271123A (en) * 2010-06-01 2011-12-07 阿里巴巴集团控股有限公司 Communication method, system and equipment
CN102333128A (en) * 2011-10-31 2012-01-25 河南省电力公司计量中心 Active transmission method for real-time Web data
CN103338230A (en) * 2013-06-03 2013-10-02 广州天宁信息技术有限公司 A method and a system both for processing business data
CN103716371A (en) * 2013-10-31 2014-04-09 国家电网公司 Web real-time data active pushing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1208732C (en) * 2002-02-01 2005-06-29 上海贝尔阿尔卡特移动通信系统有限公司 Concurrent event processing method and application system based on Web thereby

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1870508A (en) * 2005-05-25 2006-11-29 中兴通讯股份有限公司 Method for displaying real-time data in web network management system
CN101551821A (en) * 2009-05-19 2009-10-07 周佺喜 Method of real-time information broadcasting in web
CN102271123A (en) * 2010-06-01 2011-12-07 阿里巴巴集团控股有限公司 Communication method, system and equipment
CN102045206A (en) * 2011-01-26 2011-05-04 杭州华三通信技术有限公司 Alarm pushing method and device and system thereof
CN102333128A (en) * 2011-10-31 2012-01-25 河南省电力公司计量中心 Active transmission method for real-time Web data
CN103338230A (en) * 2013-06-03 2013-10-02 广州天宁信息技术有限公司 A method and a system both for processing business data
CN103716371A (en) * 2013-10-31 2014-04-09 国家电网公司 Web real-time data active pushing method

Also Published As

Publication number Publication date
CN105610605A (en) 2016-05-25

Similar Documents

Publication Publication Date Title
CN105610605B (en) A kind of method that message reversely pushes, network management system alarm and state update
US10404820B2 (en) Systems and methods for controlling cacheability and privacy of objects
US9762675B2 (en) System and method for secure real-time cloud services
CN106843166B (en) Monitoring field devices via a communication network
CN105472400B (en) A kind of information push method and system
CN105634784B (en) Control data distributing method, apparatus and system
US20180091579A1 (en) Bidirectional networked real-time data exchange using a spreadsheet application
US10558744B2 (en) Bidirectional networked real-time data exchange using a spreadsheet application
US9100424B1 (en) System and method for secure real-time cloud services
CN103297934B (en) Information-pushing method, system and mobile terminal
CN107918562A (en) A kind of unified interface management method and system
US10795744B2 (en) Identifying failed customer experience in distributed computer systems
US10747592B2 (en) Router management by an event stream processing cluster manager
CN104219070B (en) The method and Network Fault Detecting system of Network Fault Detecting
CN111124670A (en) Tactical cloud-oriented micro-service platform
JP2011013707A (en) Web page relay apparatus
CN104680303A (en) Construction method for SNMP (simple network management protocol)-based business index monitoring system
CN104270432B (en) Based on drilling well industry Real-time Data Service system and data interactive method
CN105190613A (en) Method and apparatus for providing contextual context to a user device
CN103597466B (en) Real time data based on data-pushing is monitored
CN108259576B (en) Software and hardware real-time information transmission system and method
CN111294358B (en) Message processing method and device
CN202103713U (en) Visiting system
US9680940B2 (en) Method, device and system for acquiring data type definition
KR101586246B1 (en) Rest-based ieee 11073-20601 standard message transmission method and sytem

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200803

Address after: Floor 2, No.16, Gaopeng Avenue, high tech Zone, Chengdu, Sichuan 610000

Patentee after: Chengdu Guangda Hengji Communication Technology Co., Ltd

Address before: 610041 building four, building two, Shiyang Industrial Park, five village, Shiyang village, fifty-five village, Chengdu hi tech Zone, Sichuan, Qingyun

Patentee before: CHENGDU GUANGDA NEW NETWORK TECHNOLOGY Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190423

Termination date: 20201218