CN100484011C - Method and system for implementing case subscription in complex network environment - Google Patents

Method and system for implementing case subscription in complex network environment Download PDF

Info

Publication number
CN100484011C
CN100484011C CNB2006100894442A CN200610089444A CN100484011C CN 100484011 C CN100484011 C CN 100484011C CN B2006100894442 A CNB2006100894442 A CN B2006100894442A CN 200610089444 A CN200610089444 A CN 200610089444A CN 100484011 C CN100484011 C CN 100484011C
Authority
CN
China
Prior art keywords
event
event subscription
subscriber
incident
secondary 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
CNB2006100894442A
Other languages
Chinese (zh)
Other versions
CN101098240A (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.)
Beijing Jiaxun Feihong Electrical Co Ltd
Original Assignee
Beijing Jiaxun Feihong Electrical 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 Beijing Jiaxun Feihong Electrical Co Ltd filed Critical Beijing Jiaxun Feihong Electrical Co Ltd
Priority to CNB2006100894442A priority Critical patent/CN100484011C/en
Publication of CN101098240A publication Critical patent/CN101098240A/en
Application granted granted Critical
Publication of CN100484011C publication Critical patent/CN100484011C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention relates to a method for ordering event in complex network environment, and a relative system, wherein the invention comprises that adding an auxiliary server between an event order server center and an event order unit, which communicate messages via reliable connection, the auxiliary server and the event order unit communicate message via non-reliable connection. The invention uses TCP protocol to connect the event order center and the auxiliary server, and uses UDP protocol to connect the auxiliary server and the event order unit connected in the sub network, to confirm the sending reliability and safety with confirmed sending efficiency of ordered message. And the event order center can send all event order messages to each auxiliary server, to reduce the work load on the event order server center.

Description

The method and system that realization event is subscribed in the complex network environment
Technical field
The present invention relates to communication technical field, relate in particular to the realization technology of event subscription in a kind of complex network sublimity.
Background technology
In event subscription mechanism, when the subscribed state-event of event subscription service centre changes, described event subscription service centre is by sending event subscription message to the incident subscriber, each incident of event notice subscriber with various states change makes all incident subscribers obtain the real-time informing of ordered state-event.As seen, event subscription mechanism has defined the dependence of a kind of one-to-many between incident subscription service center and all incident subscribers, and this mechanism has the advantage of loose coupling, i.e. incident subscriber's number could vary and disposing flexibly; This mechanism also has the few advantage of dependence, event subscription service centre is by in time sending event subscription message to the incident subscriber, avoid initiatively Access Events subscription service center of incident subscriber, thereby reduce the pressure of event subscription service centre greatly, improve the service behaviour of event subscription service centre simultaneously.
At present, the implementation procedure of event subscription mainly comprises:
Incident subscriber carries the event subscription tabulation that is formed by described incident by the solicitation message that UDP (User Datagram Protoco (UDP)) connects the incident that needs to this incident of event subscription center transmission requirement subscription subscriber in this message;
After event subscription service centre receives described solicitation message, preserve the event subscription tabulation in this message;
When this type of state-event of event subscription service centre changed, described event subscription service centre connected this type of event subscription message and sends to corresponding incident subscriber (or this event subscription service centre covered all incident subscribers) by UDP;
Incident subscriber preserves this event subscription message, and makes corresponding inter-process according to the change of state-event in this message after receiving the event subscription message that needs.
For improving transmitting efficiency, event subscription service centre often adopts the transmission of aforesaid transmission towards disconnected UDP message realization event subscribe message.The method as in single lan shown in Figure 1, is used very convenient under the simple relatively situation of network environment.
But the environment of many networks, across a network appears in meeting in the common real network.When network environment as shown in Figure 2, have diverse network auxiliary equipment such as router, fire compartment wall therebetween, under these complicated network environments, the realization of above-mentioned event subscription method may there are the following problems:
1, owing to adopt towards disconnected udp protocol, therefore when equipment such as traverse router or fire compartment wall, the situation that event subscription message is blocked may appear.At this moment, the incident subscriber for non-event subscription service centre this locality as the incident subscriber among Fig. 21 or 2, can't collect event subscription message.And the implementation that adopts the given subscription port of open all-network equipment and transmit UDP message is definitely infeasible, because do the function that has weakened fire compartment wall or router undoubtedly like this;
2, owing to adopt towards disconnected udp protocol, under the network environment of as shown in Figure 2 complex network, event subscription message may go out the active phenomenon in long-distance transmission course;
3, event subscription service centre is for reducing live load; usually all event subscription message can be sent to all incident subscribers; and the incident subscriber may not wish that the event subscription message of this subnet sends in other subnets; in Fig. 2; the incident subscriber 1 or 2 at two non-subscription centers does not wish that this subnet events subscribed subscribe message is sent in other subnets; therefore, event subscription message exists safety issue.
Summary of the invention
The invention provides the implementation method and the system of event subscription in a kind of complex network environment, thus the reliability and the promptness that can in complex environment, provide event subscription message to send.
Purpose of the present invention realizes in the following manner:
The invention provides the method that realization event is subscribed in a kind of complex network environment, comprise event subscription service centre and incident subscriber in this method application event ordering system, described method comprises:
Between described event subscription service centre and incident subscriber, be provided with secondary server equipment, and described method comprises:
Carry out message transmission with described secondary server equipment room by reliable the connection in described event subscription service centre; Between described secondary server equipment and described incident subscriber by non-reliable the connection carrying out message transmission.
Described method comprises:
Described reliable connection comprises that transmission control protocol TCP connects;
Described non-reliable connection comprises that User Datagram Protoco (UDP) UDP connects.
Described method also comprises:
Add secondary server equipment respectively in each subnet that an event subscription service centre is covered, described event subscription service centre carries out the interacting message relevant with event subscription with secondary server equipment room in each subnet by Transmission Control Protocol; Carry out the interacting message relevant by udp protocol between described secondary server equipment and described incident subscriber with event subscription.
Described method also comprises:
Described incident subscriber forms the event subscription tabulation with events subscribed, and connect by UDP this tabulation is sent to described secondary server equipment, preserve described event subscription tabulation by described secondary server equipment, and connect by TCP this tabulation is transmitted to described event subscription service centre.
Described method also comprises:
When described event subscription service centre events subscribed state changes, event subscription service centre sends to described secondary server equipment by the TCP connection with event subscription message, carries the information that state-event changes in the described event subscription message.
Described method also comprises:
Described secondary server equipment is classified to receiving described event subscription message according to the described event subscription tabulation of preserving, to connect by UDP with the dependent event subscribe message that the local event subscriber subscribes to and be transmitted to corresponding local event subscriber, and the event subscription message that has nothing to do of shielding and local event subscriber.
Method corresponding to realization event subscription in the described complex network environment, the present invention also provides a kind of system that utilizes the method realization event subscription that realization event is subscribed in the described complex network environment, this system comprises event subscription service centre and incident subscriber, and described system also comprises:
Secondary server equipment is arranged between described event subscription service centre and the described incident subscriber; And, between described event subscription service centre and described secondary server by reliable the connection carrying out message transmission; Between described secondary server equipment and described incident subscriber by non-reliable the connection carrying out message transmission.
Described system also comprises:
Described reliable connection comprises that transmission control protocol TCP connects;
Described non-reliable connection comprises that User Datagram Protoco (UDP) UDP connects.
Described system also comprises:
In each subnet that an event subscription service centre is covered, described secondary server is set respectively.
The technical scheme that provides by the invention described above as seen, the present invention can effectively guarantee the reliability of event subscription message transmission by adopting Transmission Control Protocol to be connected at the event subscription center with described assistant service equipment room; Simultaneously, the present invention connects by adopt udp protocol between the incident subscriber who is connected in described assistant service equipment and its place subnet, and be responsible for the distribution and the shielding of event subscription message by described assistant service equipment, can guarantee that event subscription message in time is sent to corresponding incident subscriber, the high efficiency and the fail safe of guarantee information transmission.And, because among the present invention, the event subscription center can send to all event subscription message each assistant service equipment, therefore, also can alleviate the operating pressure of event subscription service centre.In a word, realization of the present invention can guarantee the reliability of its transmission when guaranteeing the efficient that event subscription message sends.
Description of drawings
Fig. 1 is the schematic diagram that existing event subscription implementation method is applied to simple local area network (LAN);
Fig. 2 is the schematic diagram that existing event subscription implementation method is applied to complex network environment;
Fig. 3 is the schematic diagram that the concrete the present invention who implements to provide of the present invention is applied to complex network environment;
Fig. 4 is the schematic diagram that sends event subscription message between concrete event subscription service centre, secondary server and the incident subscriber who implements to provide of the present invention respectively by different connected modes;
Fig. 5 is that the concrete incident subscriber 1 who implements to provide of the present invention subscribes to event flow diagram to the application of event subscription service centre;
Fig. 6 is the concrete flow chart of implementing the processing described message of secondary server (1/2/3) after receiving all event subscription message that provides of the present invention.
Embodiment
The present invention is mainly by adding secondary server equipment between event subscription center and incident subscriber, as secondary server, and between event subscription service centre and described secondary server equipment, adopt and reliably be connected (as TCP, transmission control protocol) carries out data information transmission, as receiving and dispatching event subscription message etc.; And between described secondary server equipment and incident subscriber, adopt non-reliable connection the (as UDP) to carry out data information transmission, realize being applicable to the event subscription function under the various complex network environments.
The present invention can realize by the secondary server that adds as shown in Figure 4 in each subnet that is covered an event subscription service centre in implementation process.Because the quantity of the subnet that event subscription service centre is covered is much smaller than incident subscriber quantity, therefore in each subnet, add corresponding secondary server 1 respectively as in subnet 1, subnet 2 and the subnet 3, secondary server 2, secondary server 3, and foundation is fixedly coupled passage between subscription service center and above-mentioned each secondary server; After system start-up, according to configuration, event subscription service centre sets up the message subscribing passage with each secondary server and is connected, and promptly sets up Transmission Control Protocol and connects.Because the quantity of described subnet is less relatively, therefore the quantity of the fixedly connected passage of this foundation also can receive.
In above-mentioned TCP connected, event subscription service centre was responsible for monitoring each secondary server and connects as server end; After connecting, the dynamic real-time of finishing channel status by the method for mutual timing receiving and transmitting signal message between event subscription service centre and each secondary server monitors.
The present invention has added the secondary server equipment that realization the present invention needs in event subscription system as shown in Figure 4, as secondary server 1, and secondary server 2 or secondary server 3.Secondary server equipment room in event subscription service centre and each subnet is connected by TCP and carries out the mutual of message, in complex network environment, can guarantee the reliability of transmission of messages like this; Each secondary server and corresponding incident subscriber, as incident subscriber 1, incident subscriber 2, and 3 of incident subscribers connect by UDP and carry out the mutual of message.Like this, can guarantee the high efficiency that this phase messages is mutual.
4 specify the process of incident subscriber 1 in conjunction with the accompanying drawings to event subscription service centre application subscription incident with Fig. 5.
In event subscription mechanism, each incident subscriber can pass through data configuration, determines the classification of ordered incident.If incident subscriber's 1 ordered event category is a M class incident.
Step 51, incident subscriber 1 connect by UDP, and the secondary server 1 in the subnet of this incident subscriber place sends the event message that pulls subscription;
Carry incident subscriber 1 in this message and require the formed event subscription tabulation of events subscribed, as comprising the M class incident that incident subscriber 1 orders in this event subscription tabulation.
After step 52, described secondary server 1 receive described event subscription message, preserve incident subscriber 1 and require the events subscribed subscription list, and this event message that pulls subscription connected by TCP send to described event subscription service centre;
After step 53, event subscription service centre receive above-mentioned message, preserve incident subscriber 1 event subscription tabulation.
When this M class state-event of event subscription service centre changed, described event subscription service centre needed message informing incident subscriber 1 that this M class state-event is changed.Among the present invention, the message that described event subscription service centre only needs this M class state-event is changed connects by TCP and sends to secondary server 1, is connected by UDP by secondary server 1 this message is sent to incident subscriber 1 again.
Above-mentioned is a kind of simple scenario about the M class state-event process of changing that secondary server 1 is subscribed to M class incident and event subscription service centre notifies secondary server 1 to subscribe to.In the real network, have numerous incident subscribers, these incidents subscriber may subscribe to various similar or inhomogeneous incidents respectively.Be example still below, suppose that incident subscriber 1 subscribes to M class incident with Fig. 4; Incident subscriber 2 subscribes to N class incident, and incident subscriber 3 subscribes to M, Q class incident.For incident subscriber 2 or incident subscriber 3 that process and the described step 51 that events subscribed reports event subscription service centre is similar to step 53, do not give unnecessary details at this.
Tell about the present invention's process that event subscription service centre notifies the state of ordered incident to change to the incident subscriber in real network is used below emphatically, this process can for:
Event subscription service centre connects each secondary server that sends to each subnet under this event subscription service centre covering with the event subscription message that changes by TCP; Be responsible for the described message that receives is distributed by each secondary server afterwards.Each secondary server is told the conclude a bargin message of the relevant message nothing to do with of incident with the local event subscriber earlier according to the incident subscriber's who preserves event subscription tabulation, and the message of certain incident subscriber being subscribed to incident sends to this incident subscriber by the UDP connection, the event subscription message that the local event subscriber has nothing to do is not promptly transmitted in shielding simultaneously and the event subscription message that this incident subscriber has nothing to do.
In conjunction with the accompanying drawings 4 and Fig. 6 specify when M class, N class and Q class state-event change the processing procedure of each secondary server after receiving all event subscription message:
The state-event of the M class of step 61, event subscription service centre, N class and Q class changes;
Step 62, described event subscription service centre connect each secondary server (1/2/3) that will above-mentioned three class state-event message sends to this event subscription service centre covering by TCP;
Support Transmission Control Protocol between described event subscription service centre and each secondary server.
After step 63a, secondary server 1 receive described three class state-event message, according to the content in the local event subscriber's who preserves the event subscription tabulation, N class and Q class incident are carried out shielding processing, and promptly secondary server 1 is not transmitted the message of N class and Q class incident;
After step 63b, secondary server 1 receive described three class state-event message, according to the content in the local event subscriber's who preserves the event subscription tabulation, M class incident is carried out distribution processor, give incident subscriber 1, transmit by the UDP connection herein and finish the forwards of M class incident;
Step 63c, incident subscriber 1 receive that secondary server 1 sends about after the M class state-event message, preserve the state information of event in this message, and handle this M class event message according to state-event, process finishes;
After step 64a, secondary server 2 receive described three class state-event message, according to the content in the local event subscriber's who preserves the event subscription tabulation, M class and Q class incident are carried out shielding processing, and promptly secondary server 2 is not transmitted the message of M class and Q class incident;
After step 64b, secondary server 2 receive described three class state-event message, according to the content in the local event subscriber's who preserves the event subscription tabulation, N class incident is carried out distribution processor, give incident subscriber 2, transmit by the UDP connection herein and finish the forwards of N class incident;
Step 64c, incident subscriber 2 receive that secondary server 2 sends about after the N class state-event message, preserve the state information of event in this message, and handle this N class incident according to state-event, process finishes;
After step 65a, secondary server 3 receive described three class state-event message, according to the content in the local event subscriber's who preserves the event subscription tabulation, N class incident is carried out shielding processing, promptly secondary server 3 is not transmitted the message of N class incident;
After step 65b, secondary server 3 receive described three class state-event message, according to the content in the local event subscriber's who preserves the event subscription tabulation, M class and Q class incident are carried out distribution processor, give incident subscriber 3 with the forwards of M class and Q class incident, transmit by the UDP connection herein and finish;
Step 65c, incident subscriber 3 receive that secondary server 3 sends about after M class and the Q class state-event message, preserve the state information of event in this message, and handle this M class and Q class incident according to state-event, process finishes.
The present invention also provides the system that realization event is subscribed in a kind of complex network environment, and this system is made up of event subscription service centre, secondary server equipment and incident subscriber.
Wherein, described secondary server equipment (being the secondary server of mentioning during said method is described) is arranged between event subscription service centre and incident subscriber; And by reliably being connected, promptly Transmission Control Protocol carries out data information transmission between described event subscription service centre and described secondary server; By non-reliable the connection, promptly udp protocol carries out data information transmission between described secondary server equipment and described incident subscriber.And,, described secondary server equipment is set respectively in each subnet that an event subscription service centre is covered with consistent in the said method description.
Finishing the detailed process of event subscription function can describe referring to said method by described system provided by the invention.
In sum, the present invention can effectively guarantee the reliability that event subscription message sends by adopting Transmission Control Protocol to be connected at the event subscription center with described assistant service equipment room; Simultaneously, the present invention connects by adopt udp protocol between the incident subscriber who is connected in described assistant service equipment and its place subnet, and be responsible for the distribution and the shielding of event subscription message by described assistant service equipment, can guarantee that event subscription message in time is sent to corresponding incident subscriber, the high efficiency of guarantee information transmission.And, because among the present invention, the event subscription center can send to all event subscription message each assistant service equipment, therefore, also can alleviate the operating pressure of event subscription service centre.In a word, realization of the present invention can guarantee the reliability and the fail safe of its transmission when guaranteeing the efficient that event subscription message sends.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claims.

Claims (9)

1, the method that realization event is subscribed in a kind of complex network environment, comprise event subscription service centre and incident subscriber in this method application event ordering system, described method is characterised in that, between described event subscription service centre and incident subscriber, be provided with secondary server equipment, and described method comprises:
Carry out message transmission with described secondary server equipment room by reliable the connection in described event subscription service centre; Between described secondary server equipment and described incident subscriber by non-reliable the connection carrying out message transmission.
2, method according to claim 1 is characterized in that, described method comprises:
Described reliable connection comprises that transmission control protocol TCP connects;
Described non-reliable connection comprises that User Datagram Protoco (UDP) UDP connects.
3, method according to claim 1 and 2 is characterized in that, described method also comprises:
Add secondary server equipment respectively in each subnet that an event subscription service centre is covered, described event subscription service centre carries out the interacting message relevant with event subscription with secondary server equipment room in each subnet by Transmission Control Protocol; Carry out the interacting message relevant by udp protocol between described secondary server equipment and described incident subscriber with event subscription.
4, method according to claim 3 is characterized in that, described method also comprises:
Described incident subscriber forms the event subscription tabulation with events subscribed, and connect by UDP this tabulation is sent to described secondary server equipment, preserve described event subscription tabulation by described secondary server equipment, and connect by TCP this tabulation is transmitted to described event subscription service centre.
5, method according to claim 4 is characterized in that, comprising:
When described event subscription service centre events subscribed state changes, event subscription service centre sends to described secondary server equipment by the TCP connection with event subscription message, carries the information that state-event changes in the described event subscription message.
6, method according to claim 5 is characterized in that, described method also comprises:
Described secondary server equipment is classified to receiving described event subscription message according to the described event subscription tabulation of preserving, to connect by UDP with the dependent event subscribe message that the local event subscriber subscribes to and be transmitted to corresponding local event subscriber, and the event subscription message that has nothing to do of shielding and local event subscriber.
7, a kind of system that utilizes the method realization event subscribed to as realization event in the complex network environment as described in arbitrary among the claim 1-6 to subscribe to, this system comprises event subscription service centre and incident subscriber, it is characterized in that, described system also comprises:
Secondary server equipment is arranged between described event subscription service centre and the described incident subscriber; And, between described event subscription service centre and described secondary server by reliable the connection carrying out message transmission; Between described secondary server equipment and described incident subscriber by non-reliable the connection carrying out message transmission.
8, system according to claim 7 is characterized in that, comprising:
Described reliable connection comprises that transmission control protocol TCP connects;
Described non-reliable connection comprises that User Datagram Protoco (UDP) UDP connects.
9, according to claim 7 or 8 described systems, it is characterized in that, comprising:
In each subnet that an event subscription service centre is covered, described secondary server is set respectively.
CNB2006100894442A 2006-06-28 2006-06-28 Method and system for implementing case subscription in complex network environment Expired - Fee Related CN100484011C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100894442A CN100484011C (en) 2006-06-28 2006-06-28 Method and system for implementing case subscription in complex network environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100894442A CN100484011C (en) 2006-06-28 2006-06-28 Method and system for implementing case subscription in complex network environment

Publications (2)

Publication Number Publication Date
CN101098240A CN101098240A (en) 2008-01-02
CN100484011C true CN100484011C (en) 2009-04-29

Family

ID=39011780

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100894442A Expired - Fee Related CN100484011C (en) 2006-06-28 2006-06-28 Method and system for implementing case subscription in complex network environment

Country Status (1)

Country Link
CN (1) CN100484011C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104093131A (en) * 2014-07-17 2014-10-08 安徽久能信息科技有限公司 Information broadcasting system
CN105468685B (en) * 2015-11-16 2019-04-09 东软集团股份有限公司 A kind of message treatment method and device
CN105553682B (en) * 2015-12-23 2019-05-24 华为技术有限公司 Event notification method and the system notified for event
US20180091449A1 (en) * 2016-09-26 2018-03-29 Telefonaktiebolaget Lm Ericsson (Publ) Event-driven policy-based distributed container management system

Also Published As

Publication number Publication date
CN101098240A (en) 2008-01-02

Similar Documents

Publication Publication Date Title
EP1129563B1 (en) Fault-tolerant networking
CN102075343B (en) An out-of-band management realization method, a system for the same and an out-of-band management switch
CN100417141C (en) Group broadcasting business realizing method
CN102394925B (en) Communication method and device for remote monitoring diagnosis center and area regulation center
CN100484011C (en) Method and system for implementing case subscription in complex network environment
CN101420362A (en) Method, system and router for multicast flow switching
CN101110782A (en) System management piling method used for Ethernet switchboard
EP1914931A2 (en) IP multicast service system, switching device, and group selection transmission method used therefor
CN102238069A (en) Data processing method and device for link switching process
US6493538B1 (en) System and method for hybrid satellite and terrestrial communication
CN107949004A (en) Data handling system and method for manned spacecraft
US20070268916A1 (en) System and method of interface association for interface operational status event monitoring
CN109413594B (en) Production real-time information management method and system
CN101102455B (en) A system and method for using conference TV terminal to query sound status of conference site
JP2002217973A (en) Multicast communication system
US20190075615A1 (en) Method and communications system for speech communication
CN100512151C (en) A legal monitoring method for WAN communication network
JP2003283567A (en) Data communication system and method, server device, client device, repeater, and program
EP2360877A1 (en) Gateway having distributed processing function, and communication terminal
CN207442869U (en) The lossless switching system of PTN network
KR100228014B1 (en) The connection control method between ipx and duplicated mcss for aps
EP0969648B1 (en) Method and system to secure a telecommunication link
CN100433688C (en) Method for realizing secondary controlled multicast
Barone et al. Combat net radio (CNR) protocols: a means for battlefield digitization
CN117614963A (en) Distributed MQTT message server

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: 20090429

Termination date: 20130628