CN106656653A - Method and device for processing registration and keeping alive - Google Patents
Method and device for processing registration and keeping alive Download PDFInfo
- Publication number
- CN106656653A CN106656653A CN201610970366.0A CN201610970366A CN106656653A CN 106656653 A CN106656653 A CN 106656653A CN 201610970366 A CN201610970366 A CN 201610970366A CN 106656653 A CN106656653 A CN 106656653A
- Authority
- CN
- China
- Prior art keywords
- network
- switching equipment
- keep
- alive
- registration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/04—Network management architectures or arrangements
- H04L41/044—Network management architectures or arrangements comprising hierarchical management structures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/54—Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention provides a method and a device for processing registration and keeping alive. Network terminals or network exchange devices of a monitoring management system serve as registration authentication devices with a unified management platform, a network exchange device with initial registration success uses the management platform as a keeping-alive target device for keeping alive, the network terminal with the initial registration success is bound to a predetermined network exchange device in a registration message sending link, and keeping alive is carried out with the predetermined network exchange device bound with the network terminal as a keeping-alive target device. Occupancy of working resources in the management platform by registration and keeping alive can be effectively reduced.
Description
Technical field
The present invention relates to communication technical field, and in particular to one kind registration and keep-alive processing method and processing device.
Background technology
With the broadband and ubiquitous connectionization of internet communication, linking Internet is more and more simple and convenient, based on IP network
Network technical network terminal, such as data collection station, control of intelligent terminal are linked into internet, flat with reference to corresponding management
Platform constitutes the monitoring management system being supported to corresponding service or application, such as based on the traffic control system of internet, base
Security protection system in internet, based on the industrial control system of internet, based on the remote maintenance system of internet, be based on
The sales payment system of internet, based on the long-range survey system of internet, based on the remote diagnosis system of internet, based on mutual
The intelligent domestic system of networking.Aforementioned a variety of monitoring management systems make public administration interconnect networking, industrial production and commercial distribution
Services interconnection networking, personal lifestyle managing internet, namely the depth integration of internet and public administration is realized, realize interconnection
Net and the depth integration of conventional industries, realize the depth integration of internet and household operation.
With business and the propulsion of application operation interconnection networking, business that above-mentioned monitoring management system supported and ran or
Application data amount is into geometric growth.In business or application data transmitting procedure, if the network terminal and management platform it
Between network connection validity reduce, can cause transmission in business or application data packet loss, out of order, time delay, cause to receive
Data convert business out or application go wrong, the video counts of the web camera capture of such as video monitoring system
According to occurring packet loss, out of order, time delay in network transmission process, video image interim card, the Hua Ping restored after decoding can be caused
The problems such as.Meanwhile, with business and the propulsion of application operation interconnection networking, the network terminal that above-mentioned monitoring management system is accessed
Quantity is more and more, and corresponding network topology structure also becomes increasingly complex.
The validity of network connection between the network terminal and management platform, in the case of physical network connection effectively, be
The validity of network connection relation is guaranteed by the registration and keep-alive of the network terminal.A large amount of network terminals are linked into monitoring pipe
After reason system, the magnanimity business or application data that a large amount of network terminals are produced passes through network transmission to management platform, and management is flat
Platform runs in high load condition;Simultaneously registration message is also carried on a large amount of networkings between the network terminal and management platform,
Keep Alive Packet further increases the operation load of management platform, so, business or application data in network transmission process more
Easily there is packet loss.
Therefore, the registration between the network terminal and management platform and keepalive method are improved, are the network communications technology
Expect the technical problem for solving in field.
The content of the invention
In view of this, it is an object of the invention to provide one kind can effectively reduce registration management platform resource is accounted for keep-alive
Registration and keep-alive processing method and processing device, so that management platform working resource is more used for the process of business datum, drop
The packet loss of low business or application data in network transmission process.
To achieve these goals, the technical solution used in the present invention is as follows:
In a first aspect, the embodiment of the present invention provides a kind of registration and keep-alive processing method, it is applied to the network terminal, network and hands over
The monitoring management system that exchange device, management platform are sequentially accessed;The method includes:
After the network switching equipment is initially accessed monitoring management system, the network switching equipment sends registration and disappears to management platform
Breath carries out initial registration;After network switching equipment initial registration success, the network switching equipment to management platform periodically sends
Keep Alive Packet, corresponding response message is returned based on the keep Alive Packet management platform for receiving to the network switching equipment, and network is handed over
The state of exchange device is set to online;
After the network terminal is initially accessed monitoring management system, the network terminal, in the network terminal and the network of management platform
Select a network connection link as registration message transmission link in connecting link, Jing registration messages transmission link to management is flat
Platform sends registration message and carries out initial registration;Predetermined network switching equipment capture registration message in registration message transmission link
Afterwards, the IP address of predetermined network switching equipment additional predetermined network switching equipment in registration message, is then forwarded to management flat
Platform;
After receiving and being initially accessed the registration message of the network terminal of monitoring management system, management platform is based on registration message
In predetermined network switching equipment IP address, by the network terminal bind predetermined network switching equipment;Initially note in the network terminal
After volume success, management platform to the network terminal returns the message that succeeds in registration, and notifies the network terminal and predetermined network switching equipment net
The keep-alive target device of network terminal is predetermined network switching equipment, and predetermined network switching equipment adds in network terminal keep-alive list
Enter the successful network terminal information of initial registration;
In network terminal keep-alive, the network terminal to predetermined network switching equipment periodically sends keep Alive Packet, based on receipts
The keep Alive Packet predetermined network switching equipment for arriving returns corresponding response message, and sends the carrying network terminal to management platform
The notice message of IP address and device id, is set to the state of the network terminal online based on notice message management platform.
Second aspect, the embodiment of the present invention also provides a kind of registration and keep-alive processing meanss, is applied to the network terminal, network
The monitoring management system that switching equipment, management platform are sequentially accessed;The device includes:
The network switching equipment is registered and keep-alive unit, after the network switching equipment is initially accessed monitoring management system, is used for
Sending registration message to management platform carries out initial registration;And after network switching equipment initial registration success, for management
Land period sends keep Alive Packet, and corresponding response is returned to the network switching equipment based on the keep Alive Packet management platform for receiving
Message, the state of the network switching equipment is set to online;
Network terminal registering unit, after the network terminal is initially accessed monitoring management system, in the network terminal and pipe
Select a network connection link as registration message transmission link in the network connection link of platform, Jing registration messages send
Chain road direction management platform sends registration message and carries out initial registration;Predetermined network switching equipment in registration message transmission link
After capture registration message, for the IP address of the additional predetermined network switching equipment in registration message, management is then forwarded to flat
Platform;
Network terminal keep-alive target device determining unit, in the note for receiving the network terminal for being initially accessed monitoring management system
After volume message, for the IP address based on the predetermined network switching equipment in registration message, the network terminal is bound into predetermined network
Switching equipment;After network terminal initial registration success, for returning the message that succeeds in registration to the network terminal, the network terminal is notified
And the keep-alive target device of the predetermined network switching equipment network terminal is predetermined network switching equipment, predetermined network switching equipment exists
The successful network terminal information of initial registration is added in network terminal keep-alive list;
Network terminal keep-alive unit, in network terminal keep-alive, protects for periodically sending to predetermined network switching equipment
Message living, based on the keep Alive Packet predetermined network switching equipment for receiving corresponding response message is returned, and is sent to management platform
The IP address of the network terminal and the notice message of device id are carried, is set the state of the network terminal based on notice message management platform
It is set to online.
Registration provided in an embodiment of the present invention and keep-alive processing method and processing device, it is not necessary to be divided into monitoring management system
Multiple domains, the network terminal or the network switching equipment of monitoring management system, are set using unified management platform as authentication registration
Standby, the successful network switching equipment of initial registration carries out keep-alive by keep-alive target device of management platform, and initial registration is successful
The network terminal, the predetermined network switching equipment being bound in registration message transmission link, with the predetermined net that the network terminal is bound
Network switching equipment carries out keep-alive for keep-alive target device.
Compared to the registration and keep-alive processing method that are currently used for monitoring management system, need based on application layer by artificial
Configuration and equipment are divided and for monitoring management system to be divided into multiple domains, then multiple domains are classified, and arrange domain management in each domain flat
Platform, the network terminal is registered by authentication registration equipment of domain management platform in domain, with domain management platform to protect after succeeding in registration
Target device living periodically sends keep Alive Packet keep-alive, while not needing to enter by inter-domain protocol between the domain management platform of same area
Row registration and equipment are pushed.The registration that first embodiment of the invention is provided and keep-alive processing method, due to the network terminal and net
Network switching equipment adopts unified management platform as authentication registration equipment, and need not be many to monitoring management system is divided into
Individual domain, also with regard to needing to carry out registration and equipment push registration by inter-domain protocol between the domain management platform without not same area and protecting
The relatively low technical problem of active rate;Due to a large amount of network terminals are realized with authentication registration equipment and keep-alive target device divide
From, therefore a large amount of network terminal registrations and occupancy of the keep-alive to management platform working resource can be effectively reduced, and reduce a large amount of nets
Network endpoint registration and keep-alive take to management platform end network transmission bandwidth, improve the quality of business or application data transmission,
And guarantee that monitoring management system carries the normal operation of business or application.
Thus, the registration of the present invention and keep-alive processing method and processing device, can more effectively reduce the registration of a large amount of network terminals
Keep-alive carries the impact of the normal operation of business or application to monitoring management system.It is true based on above technology, the present invention
Registration and keep-alive processing method and processing device, with good industrial application prospect.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Description of the drawings
Fig. 1 shows the structural representation of embodiment of the present invention applied environment.
Structural representation when Fig. 2 shows that embodiment of the present invention applied environment is network video monitoring system.
Fig. 3 shows the structural representation of the network video monitoring system of cascade network.
Fig. 4 shows the flow chart of a kind of registration provided in an embodiment of the present invention and keep-alive processing method.
Fig. 5 shows the content sectional drawing of the signaling message that management platform is issued to the network terminal.
Fig. 6 shows the structural representation of embodiment of the present invention registration and keep-alive processing meanss.
Specific embodiment
Existing monitoring management system includes management platform, and big with management platform network connection by the network switching equipment
The amount network terminal.Even if the less monitoring management system of scale, such as video monitoring system of cell, it may have with hundred countings
The network terminal, larger monitoring management system, such as safe city, accessing on each of which network switching equipment has in the thousands
Several network terminals.The network terminal being initially accessed in monitoring management system is needed with management platform as authentication registration equipment, to
It sends registration message and carries out initial registration, after the completion of initial registration, network company is set up between the network terminal and management platform
Connect;In order to ensure the validity of network connection between the network terminal and management platform, the network terminal that initial registration is completed will also
With management platform as keep-alive target device, to management platform keep Alive Packet keep-alive is periodically sent.A large amount of network terminals are carried out just
Begin the registration message of registration and the keep Alive Packet of periodicity keep-alive, needs the network between consumption network terminal and management platform to pass
Defeated bandwidth, while can also take the working resource of management platform.When monitoring management system puts into effect, aforementioned registration message and
Keep Alive Packet can consume the working resource of more transmission bandwidth and management platform, and the operation for causing management platform was loaded
Greatly, cause magnanimity business that monitoring management system carried or data-bag lost occur in application data transmitting procedure, jeopardize
The normal operation of business or application is carried to monitoring management system.
Term " registration ", refers to that the network terminal sends registration under kernel-driven pattern to the management platform of its network connection
Message, asks access-in management platform, management platform to authenticate the network terminal, and authentication is returned by the backward network terminal and succeeded in registration
Message, so as to set up active block connection between the network terminal.The registration can newly add the network terminal to management platform
Initial registration, or the registered network terminal nullify after re-register.Generally, the network terminal is to management platform
Registration is completed by network device registration file, and such as Linux networks are completed by register_netdev, pipe
It is that the network equipment deletes file to complete that platform nullifies the network terminal, and for example Linux networks are by unregister_
Netdev completing, by network equipment chained file realized, example by the change of noticing and registering and each state of cancellation stage
If Linux networks are realized by netdev_chain.The network terminal is only bright in the network terminal to after management platform registration
Really during turn-on data transfer function, could transmit and receiving data between the network terminal and management platform.
Term " authentication registration equipment ", is the equipment for registration management, needs the equipment of registration with authentication registration equipment
IP address send registration message to authentication registration equipment for the purpose IP address of registration message, authentication registration equipment receives registration
It is authenticated after message, after succeeding in registration, authentication registration equipment is to the message that succeeds in registration for needing the equipment of registration to return.Yu Ben
In inventive embodiments, authentication registration equipment is management platform.
Term " keep-alive ", refers to the network terminal by the keepalive feature of tcp protocol layer or the heartbeat packet term of application layer
" keep-alive ", refers to the network terminal by the keepalive feature of tcp protocol layer or the heartbeat packet of application layer to management platform periodicity
Keep Alive Packet is sent, management platform to be received and send response message to the network terminal after keep Alive Packet, based on keep Alive Packet and response
Message determines the connection status of the network terminal and management platform, such as when management platform continuously receives the network terminal, by network
The state of terminal is set to presence, when management platform does not receive in the given time the keep Alive Packet of the network terminal, will
The state of the network terminal is set to off-line state.Between the network terminal and management platform by keep Alive Packet and response message come
Passback is passed, and realizes the effectively utilizes of network connection resource.
Term " keep-alive target device ", is the target device for keep-alive, needs the equipment of keep-alive with keep-alive target device
IP address periodically send keep Alive Packet to keep-alive target device for the purpose IP address of keep Alive Packet, keep-alive target device is received
Response message is returned to after keep Alive Packet to the equipment for needing keep-alive.
Inventor has found under study for action, when existing monitoring management system comes into operation, why the registration of the network terminal and
Keep-alive entail dangers to carries the normal operation of business or application to monitoring management system, not due to the network terminal registration and
Keep-alive must be between consumption network terminal and management platform network transmission bandwidth, and consume management platform working resource, very
Real reason is that existing monitoring management system adopts multistage multi-domain network topology for the active registration and keep-alive of the network terminal, generally
Structure, namely monitoring management system is divided into by multiple domains by human configuration and equipment division based on application layer, then to multiple
Domain is classified, and in each domain domain management platform is arranged, and the network terminal is registered by authentication registration equipment of domain management platform in domain,
Keep Alive Packet keep-alive is periodically sent by keep-alive target device of domain management platform after succeeding in registration, while the not domain management of same area
Need to carry out registration by inter-domain protocol between platform and equipment is pushed.Registration is carried out by inter-domain protocol and equipment is pushed, no
Only support that function is few, and registration and keep-alive efficiency are relatively low, so as to cause registration message and keep Alive Packet to take substantial amounts of net
Network transmission bandwidth, and the working resource of a large amount of management platforms is consumed, in causing business or application data transmitting procedure
Data-bag lost, injures the normal operation that monitoring management system carries business or application.
Inventor has found under study for action, the network connection between the network terminal and management platform, including the network terminal and net
Network connection between network switching equipment, and the network connection between the network switching equipment and management platform, both network connections
When effectively, the network connection between the network terminal and management platform is just effectively simultaneously.Based between the network terminal and management platform
The topological structure of network connection, the network connection validity between the network terminal and management platform can be examined by being segmented keep-alive
Test, the effectively utilizes based on the logical network connection resource and management platform between of the existing network terminal of keep-alive fructufy.
Inventor is based on above-mentioned cognition, there is provided one kind registration and keep-alive processing method and processing device, is applied to monitoring management system
System.The monitoring management system includes that management platform, at least one network switching equipment of access-in management platform, access network are exchanged
Multiple network terminals of equipment.When the method and device come into operation, the network switching equipment sets by authentication registration of management platform
Standby to carry out initial registration, the successful network switching equipment of initial registration carries out keep-alive by keep-alive target device of management platform, pipe
Platform is set to the state for receiving the network switching equipment of keep Alive Packet online;The network terminal is recognized by registration of management platform
Card equipment, Jing access networks switching equipment sends registration message and carries out initial registration, network terminal authentication registration to management platform
A default network switching equipment in network link, after listening to the registration message of access network terminal, captures registration message,
The IP address of complementary network switching equipment, forwards it to management platform in registration message;Management platform is based on the registration for receiving
The IP address of the network switching equipment added in message, by the default network switching equipment of network terminal binding;The network terminal is registered
After certification success, the network switching equipment of management platform Jing network terminal binding returns the message that succeeds in registration to the network terminal, leads to
Know that the network terminal and the network switching equipment network terminal of network terminal binding are protected to the network switching equipment that the network terminal is bound
It is living;The successful network terminal of initial registration carries out keep-alive, net with the network switching equipment keep-alive target device that the network terminal is bound
The keep-alive situation of access network terminal is notified management platform by network switching equipment, and management platform is by the successful network terminal of keep-alive
State is set to online, and the state of the network terminal of keep-alive failure is set to offline.So as to the registration for realizing the network terminal is recognized
The separation of card equipment and keep-alive target device, is greatly reduced the network bandwidth consumption at management platform end and reduces management platform work
Resource occupation.
Fig. 1 shows the structural representation of embodiment of the present invention applied environment.Referring now to shown in Fig. 1, the applied environment is
The monitoring management system of IP based network, the monitoring management system includes management platform, at least one net of access-in management platform
Network switching equipment, multiple network terminals of access network switching equipment.
In the embodiment of the present invention, the network terminal for obtaining business or application data, or refers to for transmitting control
Order or data.
For video monitoring system, traffic control system for IP based network, the network terminal can be but not limited to
Web camera (IP Camera, IPC), network hard disk video recorder (Network Video Recorder, NVR), Video coding
Device, monitor client, Video Decoder;Industrial control system, remote maintenance system for IP based network, the network terminal,
Programmable logic controller (PLC) (Programmable Logic Controller, PLC) can be but not limited to;For based on IP
The sales payment system of network, the network terminal can be but not limited to the payment devices with network function or traction equipment,
Such as ATM terminals, POS, automatic vending machine;For the long-range survey system of IP based network, the network terminal, can be but not
It is limited to programmable logic controller (PLC) (Programmable Logic Controller, PLC), the measurement with network function to set
It is standby;For based on internet remote diagnosis system, the network terminal, can be but not limited to web camera (IP Camera,
IPC), the Medical Instruments with network function, the Medical Instruments with network function, e.g. blood pressure instrument, electrocardioscanner;It is right
In the remote diagnosis system of IP based network, the network terminal, can be but not limited to web camera (IP Camera, IPC),
Medical Instruments with network function, the Medical Instruments with network function, e.g. blood pressure instrument, electrocardioscanner.
In the embodiment of the present invention, the network switching equipment connects for setting up network between the network terminal and management platform
Connect, the network switching equipment, on the one hand for the network terminal to be accessed into monitoring management system, on the other hand pat for access tube
Platform, also will collect connection management platform by the network terminal in a large number.In monitoring management system, the network switching equipment can have many
It is individual, multiple network switching equipment be segmented into being located at the network switching equipment of Access Layer, the network switching equipment positioned at convergence-level,
In the network switching equipment of core layer, certain practical application, can be according to the network size of monitoring management system by network
Switching equipment is layered, and anyway being layered the network switching equipment of monitoring management system includes the network switching equipment of Access Layer.
If monitoring management system has the network switching equipment of convergence-level, then the network switching equipment of the convergence-level, can be but
It is not limited to convergence switch, Service Gateway switching equipment.
In the embodiment of the present invention, management platform, for receiving, storing, processing the network terminal by the network switching equipment
The business for transmitting or application data, and for managing registration, cancellation, the condition managing of the network terminal and the network switching equipment.
For the software and hardware property of management platform, management platform can be but not limited to server, work station, industrial computer.Prison
The control function to be realized of management system is different, then the role of management platform also has respective change, for example, work as monitoring management
When system is video monitoring system, management platform is video management platform, associated with it to have but be not limited to data management
Platform, storage matrix;When monitoring management system is gate control system, management platform is entrance guard management platform.
Embodiment of the present invention applied environment structure, may be, but not limited to, structure illustrated in Figure 1, in practical application, can
Increase the corresponding network switching equipment and the network terminal corresponding with the network switching equipment in structure illustrated in Figure 1, or
Person additionally increases again corresponding other equipment or system, to meet the needs of practical application.Meanwhile, the net that management platform is accessed
Network switching equipment can be multiple or one, and multiple network switching equipment are segmented into multilayer, and access network switching equipment can
To count with ten, it is also possible to count with hundred, can also count in the thousands.
Structural representation when Fig. 2 shows that embodiment of the present invention applied environment is network video monitoring system.
The network video monitoring system, is registration and a kind of application implementation environment of keep-alive processing method and processing device of the present invention.
Referring now to shown in Fig. 2, the network video monitoring system includes video management platform, accesses video tube and pats
At least one network switching equipment of platform, multiple web cameras of access network switching equipment.
For business application feature, the network video monitoring system can be but not limited to office buildings, live
Residence cell, the video monitoring system of warehouse district;For application region, the network video monitoring system, can be but
The video monitoring system of city regional area, such as security protection video monitoring system are not limited to, the video monitoring of urban area is covered
System, such as safe city, trans-city video monitoring system, such as provincial Video Monitoring System for Forest Fire Prevention is nationwide
Video monitoring system, such as national station video monitoring system, global video monitoring system, such as transnational logistics company
Or the video monitoring system of freight pool.Certainly, the network video monitoring system, in addition to video monitoring function also
Can be with other monitoring functions, such as temp monitoring function, turnover management function, at this moment, the network terminal, also including corresponding
Network temperature measuring equipment, network entrance guard device.
Network video monitoring system, if to realize that large-scale area is monitored, then the network switching equipment is at least
The network switching equipment of the network switching equipment and convergence-level including Access Layer, the network terminal, the network switching equipment of Access Layer,
The network switching equipment of convergence-level, management platform constitute network video monitoring system using cascade network;If desired
Realize the monitoring of more large-scale area, then the network switching equipment includes the network switching equipment of Access Layer, the network of convergence-level is handed over
The network switching equipment of exchange device and core layer, the network terminal, the network switching equipment of Access Layer, the network exchange of convergence-level
Equipment, the network switching equipment of core layer, management platform constitute network video monitoring system using cascade network.
Fig. 3 shows the structural representation of the network video monitoring system of cascade network.
Referring now to shown in Fig. 3, the network video monitoring system of the cascade network, including video management platform, connect
Enter at least one aggregation networks switching equipment of video management platform, at least one access network of the cut-in convergent network switching equipment
Network switching equipment, is linked into multiple web cameras of access network switching equipment.Aforementioned aggregation networks switching equipment is convergence
The network switch of layer, access network switching equipment is the network switch of Access Layer.
If based on network video monitoring system cover region it is wider, then the cascade network it is network
Video monitoring system, also including core network switching equipment, namely the network switch of core layer.
Certainly, network video monitoring system, it is not limited to Fig. 2 or structure illustrated in Figure 3, practical application
In, can according to actual needs increase the corresponding network switching equipment, web camera in Fig. 2 or structure illustrated in Figure 3, or
Person increases a number of other kinds of network terminal, to meet the needs of practical application, and network video is supervised
Control system comes into operation as a part for network monitoring management system.
Above-mentioned network connection can be but not limited to cable network connection, wireless network connection.
Below in conjunction with practical application, with reference to embodiment of the present invention accompanying drawing, the technical scheme in the embodiment of the present invention is entered
Row is clearly and completely described, it is clear that described embodiment, only a part for the embodiment of the present invention, rather than all.
First embodiment
The first embodiment is with the web camera of network video monitoring system and the note of the network switching equipment
As a example by volume and keep-alive, the registration to the present invention is illustrated with keep-alive processing method.
Network video monitoring system includes video management platform, accesses at least one network of video management platform
Multiple network terminals of switching equipment, access network switching equipment;Wherein, the network terminal includes but is not limited to web camera,
For example the network terminal can also be included in network hard disk video recorder, monitor client, video encoder, Video Decoder at least
It is a kind of.In practical application, web camera quantitatively accounts for the overwhelming majority, and usual web camera is integrated with video encoder
And/or Video Decoder.The network switching equipment includes but is not limited to access network switching equipment, and such as network switching equipment may be used also
Including at least one in aggregation networks switching equipment, core network switching equipment.
Compared to other network monitoring management systems, business datum is sequence of frames of video view data based on net
The video monitoring system of network, not only the more of its network terminal for possessing is that its business datum is to network transmission bandwidth
Requirement is higher, the business datum of management platform is received and the requirement of disposal ability is also higher, the registration and keep-alive of the network terminal,
The impact that the normal operation of business or application is carried to monitoring management system is also relatively obvious.Accordingly, it is capable to effectively reduce net
The registration that network endpoint registration and keep-alive take on the monitoring management system network bandwidth and the loss of management platform working resource affects with
Keep-alive processing method, is equally applicable to other network monitoring management systems.
Safe city, is a kind of typical network video monitoring system.It has supervision and management center and with hundred
The control point of counting, in supervision and management center video management platform is provided with, and in each control point at least one net is provided with
Network video camera.According to control point distribution supervision of the cities zoning is arranged network exchange and set into multiple monitoring sections in monitoring section
It is standby, by the web camera correspondence access network switching equipment of monitoring section, then the network switching equipment of monitoring section is accessed
Video management platform, so as to constitute network video monitoring system.In safe city, the network switching equipment include but not
It is limited to access network switching equipment, an access network switching equipment generally accesses web cameras several in the thousands.Network
Video camera accesses safe city, the vedio data Jing access networks of web camera collection by access network switching equipment
Switching equipment and certain network communication link are transferred to video management platform.
In network video monitoring system, safe city meet security administration, city management, traffic administration,
While the demands such as emergency command, the requirement such as disaster accident early warning, safety production monitoring is also taken into account, and to consider warning, door
Corollary system integrated such as prohibit and require with broadcast system linkage.Compared to general network video monitoring system,
Safe city, no matter in terms of system network topology, or in the network terminal type and quantitative aspects for accessing, and need
The traffic data type of process and treating capacity aspect are more complicated, and the requirement for connecting validity to networking is higher, the network terminal
Registration and keep-alive to business datum transmit and process impact it is bigger.Network terminal registration can effectively be reduced with keep-alive to safety
Registration and keep-alive processing method that urban network bandwidth occupancy and video management working platform resource loss affect, are equally applicable to
Other network video monitoring systems.
Therefore, in the present first embodiment, the registration with reference to safe city to the present invention is said with keep-alive processing method
It is bright.
In safe city, not only including video monitoring subsystem, also including other Monitor And Control Subsystems.But other monitoring
It is same or like with video monitoring subsystem in the business realizing that system is carried in network structure with network structure.Cause
This, for the ease of fairly setting out registration and the keep-alive processing method of first embodiment of the invention, the understanding for reducing technical scheme is difficult
Degree, the in the first embodiment of the invention registration only with video monitoring subsystem to the present invention is said with keep-alive processing method
Bright, the network terminal of other Monitor And Control Subsystems and the registration of the network switching equipment and keep-alive processing method can refer to video monitoring
The network terminal of subsystem and the registration of the network switching equipment are understood with keep-alive processing method.
In video monitoring subsystem, the network hard disk video recorder of negligible amounts, monitor client, video encoder, regard
The registration of frequency decoder and keep-alive processing mode it is identical with the registration of a fairly large number of network shooting and keep-alive processing mode or
It is close, therefore, for the ease of fairly setting out registration and the keep-alive processing method of first embodiment of the invention, reduce technical scheme
Understand difficulty, therefore, it is real to the present invention first only by taking web camera as an example in the illustrating of first embodiment of the invention
The registration and keep-alive processing method for applying example is illustrated, the registration keep-alive mode of the other types network terminal, be can refer to network and is taken the photograph
The registration of camera is understood with keep-alive processing method.
Fig. 4 shows the flow chart of a kind of registration provided in an embodiment of the present invention and keep-alive processing method.
Referring now to shown in Fig. 4, the method is applied to the prison that the network terminal, the network switching equipment, management platform are sequentially accessed
Control management system;The monitoring management system includes management platform, at least one network switching equipment of access-in management platform, accesses
Multiple network terminals of the network switching equipment.Wherein, the network switching equipment includes access network switching equipment, on this basis,
The network switching equipment may also include aggregation networks switching equipment, or and including core network switching equipment.Access network terminal
The network switching equipment can be with more than one.
The method includes:
S110, after the network switching equipment is initially accessed monitoring management system, the network switching equipment to management platform sends
Registration message carries out initial registration;After network switching equipment initial registration success, the network switching equipment is to the management platform cycle
Property send keep Alive Packet, corresponding response message is returned to the network switching equipment based on the keep Alive Packet management platform for receiving, will
The state of the network switching equipment is set to online;
In the first embodiment of the invention,
The network switching equipment is initially accessed monitoring management system, refers in monitoring management system networking stage, or in prison
Control management system comes into operation the stage, and physical network connection is set up between the network switching equipment and management platform, but also not in pipe
Platform carried out registration.
Initial registration, refers to that the network switching equipment or the network terminal are registered for the first time in management platform.Initial registration, bag
The initial registration of the network switching equipment or network terminal when including monitoring management system networking, and monitoring management system comes into operation
The network switching equipment of monitoring management system or the initial registration of the network terminal are newly added afterwards.Wherein, monitoring management is newly added
The network switching equipment of system or the initial registration of the network terminal, it realizes that process is handed over network during monitoring management system networking
The initial registration of exchange device or the network terminal realizes that process is same or like, therefore, can refer to monitoring management system group
The initial registration of the network switching equipment or the network terminal realizes that process understands the network of new addition monitoring management system during net
The initial registration of switching equipment or the network terminal realizes process.
In the first embodiment of the invention, the network switching equipment of monitoring management system is initially accessed, according to monitoring pipe
The IP address and equipment id information of the management platform of reason system is carried out after initial configuration to it, can be using management platform as initially connecing
Enter the authentication registration equipment of the network switching equipment of monitoring management system.The network exchange for being initially accessed monitoring management system sets
Standby, the purpose IP address with the IP address of management platform as registration message send registration message and are initially noted to management platform
Volume, while also reporting the IP address and and device id of the network switching equipment for being initially accessed monitoring management system in registration message
Information.
In the first embodiment of the invention, being initially accessed the initial registration of the network switching equipment of monitoring management system includes
The initial registration of access network switching equipment, may also include on this basis the initial registration of aggregation networks switching equipment, and core
The initial registration of the heart network switching equipment.In the case where the network switching equipment only has access network switching equipment, access network
Network switching equipment directly sends registration message and carries out initial registration to management platform;In the network switching equipment there is access network to hand over
In the case of exchange device and aggregation networks switching equipment, aggregation networks switching equipment directly sends registration message and enters to management platform
Row initial registration, access network switching equipment needs to be carried out to management platform transmission registration message by aggregation networks switching equipment
Initial registration;There is access network switching equipment, aggregation networks switching equipment, core network switching equipment in the network switching equipment
In the case of, core network switching equipment directly sends registration message and carries out initial registration to management platform, and aggregation networks are exchanged
Equipment needs to carry out initial registration to management platform transmission registration message by core network switching equipment, and access network is exchanged and set
It is standby need to sequentially pass through aggregation networks switching equipment, core network switching equipment send registration message to management platform and carry out initially
Registration.Namely in the network monitoring management system of cascade network, access network switching equipment is with access network exchange
Equipment is that registration message transmission link transmission registration message is initially noted in the network connection link of management platform
Volume.
In the first embodiment of the invention, management platform is received after registration message, and management platform is to being initially accessed monitoring pipe
The network switching equipment of reason system is authenticated, after initial registration success, to the network exchange for being initially accessed monitoring management system
The message that succeeds in registration that equipment is returned;The network switching equipment for being initially accessed monitoring management system receives the note of management platform return
After volume success message, namely after network switching equipment initial registration success, the network switching equipment is with the IP address of management platform
The purpose IP address of keep Alive Packet, to management platform periodically, such as, at interval of 30 seconds, send keep Alive Packet keep-alive, and management is flat
Platform to be received and return response message to the network switching equipment after keep Alive Packet, and the state of the network switching equipment is set to online.Pipe
Platform is set to the state of the network switching equipment online, to represent that the network switching equipment is in the network connection of management platform
Effective status.It should be noted that it is also periodic that management platform returns response message to the network switching equipment.
S120, after the network terminal is initially accessed monitoring management system, the network terminal, in the network terminal and management platform
Select a network connection link as registration message transmission link in network connection link, Jing registration message transmission links are to pipe
Platform sends registration message and carries out initial registration;Predetermined network switching equipment capture registration in registration message transmission link
After message, the IP address of predetermined network switching equipment additional predetermined network switching equipment in registration message is then forwarded to pipe
Platform;
In the first embodiment of the invention, the network terminal is initially accessed monitoring management system, refers in monitoring management system
Networking stage, or come into operation the stage in monitoring management system, physical network company is set up between the network terminal and management platform
Connect, but also in management platform do not carried out registration.
The network terminal of monitoring management system is initially accessed, at least one of monitoring management system network can be accessed
Switching equipment.The network terminal of monitoring management system is initially accessed, in the IP address of the management platform according to monitoring management system
It is carried out after initial configuration with equipment id information, can be using management platform as the network terminal for being initially accessed monitoring management system
Authentication registration equipment.
The network terminal of monitoring management system is initially accessed, is selected in the network connection link of the network terminal and management platform
A network connection link is selected as registration message transmission link, the purpose IP ground with the IP address of management platform as registration message
Location sends registration message and carries out initial registration to management platform, the purpose IP address with the IP address of management platform as registration message
Sending registration message to management platform carries out initial registration, while also report in registration message being initially accessed monitoring management system
The network terminal IP address and with equipment id information.
Predetermined network switching equipment in registration message transmission link, by the background program for starting, to access network
The COM1 of terminal and management platform, such as 5060, intercepted, after registration message is listened to, in registration message
Message content checked, judges whether it is the registration message of the network terminal that it is directly accessed or accesses indirectly, if it is,
Then in registration message additional predetermined network switching equipment IP address, be then forwarded to management platform.
It is aforementioned to be directly accessed, refer to the network terminal directly with predetermined network switching equipment network connection, access indirectly, refer to
Other network switching equipment of network terminal network and predetermined network switching equipment network connection, such as aggregation networks switching equipment are led to
Cross access network switching equipment and network terminal network connection.
Aforementioned predetermined network switching equipment, can be access network switching equipment, aggregation networks switching equipment, core network
One in switching equipment, but when predetermined network switching equipment is access network switching equipment, access network switching equipment is needed
If there is the management network switching equipment.During enforcement, as long as specifying one on the network connection link of the network terminal and management platform
The individual network switching equipment in practical application, is generally handed over access network as the network switching equipment for monitoring registration message
One in exchange device or aggregation networks switching equipment is appointed as predetermined network switching equipment.
Above-mentioned registration message is intercepted in two kinds of situation:
The first situation, is the stage in monitoring management system networking stage, the background program of predetermined network switching equipment
The message packet that the network terminal for being initially accessed monitoring management system for listening to passes through with the COM1 of management platform is
Registration message.
Second situation, is come into operation the stage in monitoring management system, the stage, the backstage of predetermined network switching equipment
The message that the COM1 of the network terminal and management platform that what program was listened to be initially accessed monitoring management system passes through
Message, not only including the registration message of the network terminal for being initially accessed monitoring management system, also including management platform to noting
Requirement network terminal that volume and the effective network terminal of network connection are issued sends business or applies fluxion to management platform
According to signaling message.
For example, come into operation the stage in network video monitoring system, if monitor client needs to obtain a certain
The real time video image of road network video camera, monitor client is by video management platform to signaling under the road network video camera
Message, signaling message includes that web camera needs to send the bandwidth of video traffic data flow, and video traffic data flow sends
The agreement for being adopted, with reference to shown in Fig. 5, the Session Initiation Protocol message of standard includes the coded format of video traffic data flow, and transmission is regarded
The bandwidth of frequency business data flow.
Network video monitoring system in the latter case, the background program of predetermined network switching equipment is intercepted
To the web camera for being initially accessed monitoring management system and video management platform the message packet that passes through of COM1,
The signaling message that registration message and video management platform including web camera is issued to web camera.When predetermined network is handed over
When exchange device listens to the registration message message of web camera, the message content in registration message is checked, judgement is
No is the registration message of its web camera for accessing, if it is, the additional predetermined network switching equipment in registration message
IP address, then, by registration message video management platform is transmitted to.
S130, after receiving and being initially accessed the registration message of the network terminal of monitoring management system, management platform is based on note
The IP address of the predetermined network switching equipment in volume message, by the network terminal predetermined network switching equipment is bound;In the network terminal
After initial registration success, management platform to the network terminal returns the message that succeeds in registration, and notifies that the network terminal and predetermined network are exchanged
The keep-alive target device of device network terminal is predetermined network switching equipment, and predetermined network switching equipment is arranged in network terminal keep-alive
The successful network terminal information of initial registration is added in table;
In the first embodiment of the invention, when management platform receives the note of the network terminal for being initially accessed monitoring management system
Volume message after, management platform extract from registration message the IP address of predetermined network switching equipment, the IP address of the network terminal and
Equipment id information, based on the information creating network terminal for the extracting data table items corresponding with predetermined network switching equipment.
Table 1:The network terminal data table items corresponding with predetermined network switching equipment
Sequence number | Network terminal IP address | Network terminal ID | Network switching equipment IP address |
1 | 1.1.1.1.0 | Network Termination #1 | 1.1.1.1 |
2 | 2.1.1.1.0 | The network terminal 2 | 2.1.1.1 |
3 | 3.1.0.1.0 | The network terminal 3 | 3.1.0.1 |
The network terminal is bound into predetermined network switching equipment by the data table items.
Management platform Jing registration message transmission link is returned to the network terminal for being initially accessed monitoring management system and registered
During work(message, notice is initially accessed the network terminal and predetermined network switching equipment of monitoring management system, the net in subsequent keep-alive
Network terminal carries out keep-alive with the predetermined network switching equipment bound as keep-alive target device, namely in subsequent keep-alive, network end
The IP address of the predetermined network switching equipment for holding to bind is used as the purpose IP address of keep Alive Packet, and it is predetermined that the network terminal is bound
The network terminal for returning the message that succeeds in registration is added the network switching equipment network terminal keep-alive row of predetermined network switching equipment
In table, it is managed based on keep-alive of the network terminal keep-alive list to access network terminal, for example, receives and returned after keep Alive Packet
Corresponding response message, if the predetermined network switching equipment of network terminal binding does not receive in the given time the network end
The keep Alive Packet at end, then the predetermined network switching equipment of network terminal binding is to management platform transmission notice message.
For example, IP address for 1.1.1.1.0 Network Termination #1 initial registration when, management platform by the network terminal with it is pre-
Determine the corresponding data table items of the network switching equipment, Network Termination #1 binding IP address is exchanged for the predetermined network of 1.1.1.1 and is set
Standby, when message is succeeded in registration to Network Termination #1 return, management platform notifies that Network Termination #1 and IP address are the net of 1.1.1.1
Network switching equipment, in subsequent network 1 keep-alive of terminal, Network Termination #1 by IP address for 1.1.1.1 the network switching equipment IP
Address sends keep Alive Packet as the purpose IP address of keep Alive Packet, and IP address receives guarantor for the network switching equipment of 1.1.1.1
Corresponding response message is returned after message living.
Referring further to shown in Fig. 4
S140, in network terminal keep-alive, the network terminal to predetermined network switching equipment periodically sends keep Alive Packet, base
Corresponding response message is returned in the keep Alive Packet predetermined network switching equipment for receiving, and carrying network end is sent to management platform
The IP address at end and the notice message of device id, are set to the state of the network terminal online based on notice message management platform.
In the first embodiment of the invention, the network terminal of monitoring management system is initially accessed, management platform return is received
The message that succeeds in registration after,
In keep-alive, with the predetermined network switching equipment of network terminal binding as keep-alive target device periodicity, for example often
Interval 60 seconds, sends keep Alive Packet keep-alive, and the predetermined network switching equipment of network terminal binding is received after keep Alive Packet, to network
Terminal returns corresponding response message, and the notice report for carrying the IP address and device id of the network terminal is sent to management platform
Text, management platform is subject to after notice message, the IP address and device id based on the network terminal carried in notice message, by network
The state of terminal is set to online, represents network connection between the network terminal and management platform effectively, and management platform can be with
Business or the signaling message using flow data are sent to the requirement for the issuing network terminal to management platform.
The registration that first embodiment of the invention is provided and keep-alive processing method, it is not necessary to be divided into monitoring management system many
Individual domain, the network terminal or the network switching equipment of monitoring management system, using unified management platform as authentication registration equipment,
The successful network switching equipment of initial registration carries out keep-alive, the successful network of initial registration by keep-alive target device of management platform
Terminal, the predetermined network switching equipment being bound in registration message transmission link is handed over the predetermined network that the network terminal is bound
Exchange device carries out keep-alive for keep-alive target device.
Compared to the registration and keep-alive processing method that are currently used for monitoring management system, need based on application layer by artificial
Configuration and equipment are divided and for monitoring management system to be divided into multiple domains, then multiple domains are classified, and arrange domain management in each domain flat
Platform, the network terminal is registered by authentication registration equipment of domain management platform in domain, with domain management platform to protect after succeeding in registration
Target device living periodically sends keep Alive Packet keep-alive, while not needing to enter by inter-domain protocol between the domain management platform of same area
Row registration and equipment are pushed.The registration that first embodiment of the invention is provided and keep-alive processing method, due to the network terminal and net
Network switching equipment adopts unified management platform as authentication registration equipment, and need not be many to monitoring management system is divided into
Individual domain, also with regard to needing to carry out registration and equipment push registration by inter-domain protocol between the domain management platform without not same area and protecting
The relatively low technical problem of active rate;Due to a large amount of network terminals are realized with authentication registration equipment and keep-alive target device divide
From, therefore a large amount of network terminal registrations and occupancy of the keep-alive to management platform working resource can be effectively reduced, and reduce a large amount of nets
Network endpoint registration and keep-alive take to management platform end network transmission bandwidth, improve the quality of business or application data transmission,
And guarantee that monitoring management system carries the normal operation of business or application.
Create and keep network connection can consume the network connection money of management platform between the network terminal and management platform
Source and working resource.When the network terminal shuts down or breaks down, and the physics chain between the network terminal and the network switching equipment
When road is broken down, the network terminal cannot come into operation in monitoring management system.But due in management platform not to network end
Network connection relation between end and management platform is nullified, therefore the network connection resource of management platform can be caused to waste.
In order that the network connection resource of management platform is utilized effectively, the registration that first embodiment of the invention is provided with
Keep-alive processing method also includes:
In network terminal keep-alive, if the keep Alive Packet that a network terminal is sent in network terminal keep-alive list is pre-
The interior network switching equipment that is not scheduled of fixing time is listened to, and predetermined network switching equipment to management platform sends notice message,
The keep Alive Packet for being sent is not scheduled based on notice message management platform for the network terminal that the network switching equipment is listened to
State be updated to offline;Carry the scheduled network switching equipment of the keep Alive Packet for having sent in notice message to listen to
The network terminal IP address and device id.
In the first embodiment of the invention, after monitoring management system puts into operation, when network terminal shutdown or network end
When end is broken down, the network terminal cannot send keep Alive Packet, or when the network terminal and the network terminal and the network switching equipment
Between physical link when breaking down, the network terminal in the network terminal keep-alive list of predetermined network switching equipment sends
Keep Alive Packet cannot reach predetermined network switching equipment, predetermined network switching equipment can not receive in the given time the network end
The keep Alive Packet at end, decides that the network terminal keep-alive failure, and to management platform notice message is sent, and the notice message is carried
The keep Alive Packet for being sent is not scheduled the IP address and device id of the network terminal that the network switching equipment is listened to, and receives logical
After knowing message, management platform is updated to the state of the network terminal offline, and offline namely management platform is by itself and the network end
The network connection resource release at end.
Above-mentioned further scheme, finds to be tied to network terminal keep-alive failure thereon in predetermined network switching equipment
Afterwards, notify management platform in time, management platform upgrades the fail state of the network terminal of keep-alive for offline in time, so as to reaching and
When release management platform network connection resource and the technique effect of working resource, further ensure that business or application data
Transmission quality, and further ensure that monitoring management system carries the normal operation of business or application.
When the network switching equipment shuts down or breaks down, the physical link between the network switching equipment and management platform goes out
During existing failure, the network switching equipment cannot come into operation, particularly predetermined network switch equipment failure when, be tied to predetermined network
The network terminal on switching equipment also cannot come into operation.But due to not flat with management to the network switching equipment in management platform
Network connection relation between platform is nullified, and be tied to the network terminal on predetermined network switching equipment and management platform it
Between network connection relation nullified, therefore the waste of the network connection resource of management platform can be caused.
In order that the network connection resource of management platform is utilized effectively, the registration that first embodiment of the invention is provided with
Keep-alive processing method also includes:
If the keep Alive Packet that a network switching equipment of monitoring management system is sent is not managed in the given time
Platform is received, the network exchange that management platform receives the keep Alive Packet for being sent without management platform in the given time
The state of equipment is updated to offline;
Further scheme is, when the network that the keep Alive Packet for being sent is received in the given time without management platform
When switching equipment is predetermined network switching equipment, the method also includes:
Management platform is updated to the state for being tied to the network terminal of predetermined network switching equipment offline.
First embodiment of the invention upgrades the state of the network switching equipment of keep-alive failure for offline in time, is conducive to pipe
The effectively utilizes of the network connection resource of platform;On this basis, in the case of predetermined network switching equipment keep-alive failure,
By the network terminal of the predetermined network switching equipment of binding keep-alive failure offline, can significantly release management platform invalid net
Network connection resource, reduces the occupancy of management platform working resource, thereby further ensure that the network terminal that normally comes into operation with
The transmission quality of business or application data between management platform, further ensure that monitoring management system efficient bearer traffic or
The normal operation of person's application.
When the network terminal is due to the former network terminal for selecting and the network connection link itself or the network of management platform
When connecting link failure cannot carry out keep-alive, the network terminal cannot come into operation, and need to safeguard monitoring management system,
Application can be in time put into order to the network terminal.
In order that working condition is good but cannot carry out the network terminal of normal keep-alive and comes into operation in time, the present invention first
The registration that embodiment is provided also includes with keep-alive processing method:
The network terminal reselects a network connection link from the network connection link of the network terminal and management platform
Registration message is sent as registration message transmission link to management platform to be re-registered, send in the new registration message for selecting
After predetermined network switching equipment capture registration message on link, if it find that sending the network terminal of registration message not in network
In terminal keep-alive list, then in registration message additional predetermined network switching equipment IP address, be then forwarded to management platform;
Based on the IP address of the predetermined network switching equipment added in registration message, the note that management platform newly selects network terminal binding
Volume message transmission link on predetermined network switching equipment, management platform return succeed in registration message when, notify the network terminal and
The predetermined network switching equipment that the network terminal is bound again, in subsequent keep-alive, predetermined network of the network terminal to bind again
Switching equipment carries out keep-alive for keep-alive target device, and the predetermined network switching equipment bound again will return the message that succeeds in registration
Network terminal information is added in network terminal keep-alive list.
In the first embodiment of the invention, in the predetermined network exchange keep-alive failure of network terminal initial registration binding
When, the network terminal also occurs that keep-alive fails, and at this moment, the network terminal is noted by new registration message transmission link to management platform
Volume, and the predetermined network exchange being tied in the new registration message transmission link, the network terminal is to new predetermined networking
Switching equipment keep-alive, so as to rebuild the logical network connection relation and management platform between of the network terminal, make temporary network connects without
The network terminal of effect can come into operation in time, realize the distributed maintenance of monitoring management system, so as to further improve monitoring pipe
The maintainability of reason system, it is ensured that monitoring management system carries the normal operation of business or application.
The re-registration process of the network terminal is close with initial registration implementation, and the process of implementing can refer to aforementioned step
Rapid S130, S140, S150, therefore not to repeat here.
The registration that first embodiment of the invention is provided and keep-alive processing method, are not limited to be applied to network video
Monitoring system, it is also applied in aforementioned applications environment.
The step corresponding to process that any embodiment of aforementioned the inventive method embodiment is disclosed, can be according to actual reality
Now need to carry out division of logic function to obtain multiple functional modules.Actually realize that needs have differences, then the selection of logic function
Would also vary from, the functional module for obtaining would also vary from, for example, two or more functional modules are integrated in into one
In individual functional module, it is also possible to combine multiple functional modules or be integrated into another system, can also be by some function moulds
Block is omitted, or is not performed, and each functional module can individually be physically present.
Aforementioned functional module, can be realized by program code.At this moment, the corresponding program of one side the inventive method, can
Be installed in memory and including one or more by computing device software function module.Especially, the form of the program
Can be outside or resident software, firmware or microcode (object code or source code-for example, to be compiled or interpreted).Should
Program can be using being adapted to be used by any data handling system or connected any form is (for example, in a virtual machine
It is interior).On the other hand, can be using the corresponding program of the inventive method as the system realized on any computer-readable recording medium
Make product to provide;The corresponding computer program of the inventive method embodiment, can including the computer for storing program code
Read storage medium, the instruction that described program code includes can be used to perform the method described in previous methods embodiment.The medium
Can be it is any be adapted to include, store, communicate, propagating or transmission procedure element.For example the medium can be but not limited to electricity
Sub, magnetic, optical, electromagnetism, infrared or semiconductor type;The example of so medium has the fixed disk (can be
Wherein preload program), removable disk, tape, card, electric wire, optical fiber, wireless connection, network, broadcast wave etc..
Aforementioned functional module, it is also possible to realized with logic circuit, at this moment, the inventive method utilizes a hardware configuration
(for example, being integrated in the chip of semi-conducting material) or the properly programmed or software that otherwise configures and hardware combinations
To realize.
No matter which kind of implementation is adopted, the registration corresponding with preceding method embodiment can be obtained and processed with keep-alive
Device embodiment.Based on the registration corresponding with preceding method embodiment of the present invention and the embodiment of keep-alive processing meanss, may be used also
To obtain including registering the embodiment with the monitoring management system of keep-alive processing meanss.
Referring to embodiment of the present invention accompanying drawing, respectively to registration and the technical scheme of keep-alive processing meanss, comprising registration
It is clearly and completely described with the technical scheme of the monitoring management system of keep-alive processing meanss.
Due to registration with keep-alive processing meanss embodiment using technology design, realize principle and preceding method embodiment phase
It is same or close, it is also same or like with preceding method embodiment on the technical problem for solving, the technique effect of generation, because
This, in registration with keep-alive processing equipment embodiment and monitoring management system embodiment, can refer to preceding method of the present invention and implement
The specific descriptions of the corresponding method step in example, understand registration provided in an embodiment of the present invention and keep-alive processing meanss, while ginseng
Understand that the present invention is aforementioned according to the associated description applied including registration and the embodiment of the monitoring management system of keep-alive processing meanss in example
Embodiment of the method implements form.
Second embodiment
The second embodiment provides a kind of registration and keep-alive processing meanss, and the registration processes dress, is applied to net with keep-alive
What network terminal, the network switching equipment, management platform were sequentially accessed is applied to monitoring management system.
Fig. 6 shows the structural representation of embodiment of the present invention registration and keep-alive processing meanss.
Referring now to shown in Fig. 6, the device include network switching equipment registration and keep-alive unit, network terminal registering unit,
Network terminal keep-alive target device determining unit, network terminal keep-alive unit, wherein,
The network switching equipment is registered and keep-alive unit, after the network switching equipment is initially accessed monitoring management system, is used for
Sending registration message to management platform carries out initial registration;And after network switching equipment initial registration success, for management
Land period sends keep Alive Packet, and corresponding response is returned to the network switching equipment based on the keep Alive Packet management platform for receiving
Message, the state of the network switching equipment is set to online;
Network terminal registering unit, after the network terminal is initially accessed monitoring management system, in the network terminal and pipe
Select a network connection link as registration message transmission link in the network connection link of platform, Jing registration messages send
Chain road direction management platform sends registration message and carries out initial registration;Predetermined network switching equipment in registration message transmission link
After capture registration message, for the IP address of the additional predetermined network switching equipment in registration message, management is then forwarded to flat
Platform;
Network terminal keep-alive target device determining unit, in the note for receiving the network terminal for being initially accessed monitoring management system
After volume message, for the IP address based on the predetermined network switching equipment in registration message, the network terminal is bound into predetermined network
Switching equipment;After network terminal initial registration success, for returning the message that succeeds in registration to the network terminal, the network terminal is notified
And the keep-alive target device of the predetermined network switching equipment network terminal is predetermined network switching equipment, predetermined network switching equipment exists
The successful network terminal information of initial registration is added in network terminal keep-alive list;
Network terminal keep-alive unit, in network terminal keep-alive, protects for periodically sending to predetermined network switching equipment
Message living, based on the keep Alive Packet predetermined network switching equipment for receiving corresponding response message is returned, and is sent to management platform
The IP address of the network terminal and the notice message of device id are carried, is set the state of the network terminal based on notice message management platform
It is set to online.
In order that the network connection resource of management platform is utilized effectively, the device also includes:
Network terminal keep-alive failure offline unit, in network terminal keep-alive, if a net in network terminal keep-alive list
The keep Alive Packet that network terminal is sent is not scheduled in the given time the network switching equipment and listens to, for management platform
Notice message is sent, the keep Alive Packet for being sent is not scheduled based on notice message management platform for the network switching equipment and is intercepted
To the state of the network terminal be updated to offline;The keep Alive Packet for having sent is carried in notice message and is scheduled network friendship
The IP address and device id of the network terminal that exchange device is listened to.
In order that the network connection resource of management platform is utilized effectively, the device also includes:
Network switching equipment keep-alive failure offline unit, if what a network switching equipment of monitoring management system was sent
Keep Alive Packet is received in the given time without management platform, for the keep Alive Packet for being sent not to be had in the given time
The state of the network switching equipment that management platform is received is updated to offline.
When the keep Alive Packet for being sent is in the given time predetermined without the network switching equipment that management platform is received
During the network switching equipment, network switching equipment keep-alive failure offline unit is additionally operable to that predetermined network switching equipment will be tied to
The state of the network terminal is updated to offline.
In order that working condition is good but cannot carry out the network terminal of normal keep-alive and comes into operation in time, the device is also wrapped
Include:
The network terminal re-registers and determines keep-alive target device unit, if the network terminal is not received in the scheduled time
The response message of predetermined network switching equipment, for the network connection link from the network terminal with management platform in reselect
One sends registration message and is re-registered as registration message transmission link to management platform, in the new registration message for selecting
After predetermined network switching equipment capture registration message in transmission link, if it find that the network terminal for sending registration message does not exist
In network terminal keep-alive list, then in registration message additional predetermined network switching equipment IP address, be then forwarded to management
Platform;Based on the IP address of the predetermined network switching equipment added in registration message, by the new registration for selecting of network terminal binding
Predetermined network switching equipment in message transmission link, management platform is returned when succeeding in registration message, notifies the network terminal and net
The predetermined network switching equipment that network terminal is bound again, in subsequent keep-alive, the network terminal is handed over the predetermined network bound again
Exchange device carries out keep-alive for keep-alive target device, and the predetermined network switching equipment bound again will return the net of the message that succeeds in registration
Network end message is added in network terminal keep-alive list.
In sum, registration provided in an embodiment of the present invention and keep-alive processing method and processing device, are not limited to be applied to base
In the video monitoring system of network, it is also applied in aforementioned applications environment.
Claims (10)
1. registration and keep-alive processing method, are applied to the monitoring pipe that the network terminal, the network switching equipment, management platform are sequentially accessed
Reason system;Characterized in that, methods described includes:
After the network switching equipment is initially accessed monitoring management system, the network switching equipment sends registration message and enters to management platform
Row initial registration;After network switching equipment initial registration success, the network switching equipment to management platform periodically sends keep-alive
Message, corresponding response message is returned based on the keep Alive Packet management platform for receiving to the network switching equipment, and network is handed over
The state of exchange device is set to online;
After the network terminal is initially accessed monitoring management system, the network terminal, in the network terminal and the network connection of management platform
Select a network connection link as registration message transmission link in link, registration message transmission link described in Jing to management is flat
Platform sends registration message and carries out initial registration;Predetermined network switching equipment capture registration in the registration message transmission link
After message, the predetermined network switching equipment adds the IP address of the predetermined network switching equipment in registration message, then
It is transmitted to management platform;
After receiving and being initially accessed the registration message of the network terminal of monitoring management system, management platform is based in registration message
The IP address of the predetermined network switching equipment, by the network terminal predetermined network switching equipment is bound;At the beginning of the network terminal
After beginning succeeds in registration, management platform to the network terminal returns the message that succeeds in registration, and notifies that the network terminal and the predetermined network are handed over
The keep-alive target device of the exchange device network terminal is the predetermined network switching equipment, and the predetermined network switching equipment is in network
The successful network terminal information of initial registration is added in terminal keep-alive list;
In network terminal keep-alive, the network terminal to the predetermined network switching equipment periodically sends keep Alive Packet, based on receipts
Predetermined network switching equipment described in the keep Alive Packet for arriving returns corresponding response message, and sends carrying network end to management platform
The IP address at end and the notice message of device id, are set to the state of the network terminal online based on notice message management platform.
2. it is according to claim 1 to register and keep-alive processing method, it is characterised in that in network terminal keep-alive, if
The keep Alive Packet that a network terminal is sent in the network terminal keep-alive list is not in the given time by the predetermined net
Network switching equipment is listened to, and methods described also includes:
The predetermined network switching equipment to management platform sends notice message, is sent out described based on notice message management platform
The state of the network terminal that the keep Alive Packet sent is not listened to by the predetermined network switching equipment is updated to offline;It is described logical
Know and the network terminal that the sent keep Alive Packet is not listened to by the predetermined network switching equipment is carried in message
IP address and device id.
It is 3. according to claim 1 and 2 to register and keep-alive processing method, it is characterised in that
If the keep Alive Packet that a network switching equipment of the monitoring management system is sent is not managed in the given time
Platform is received, and methods described also includes:
The network switching equipment that management platform receives the keep Alive Packet for being sent without management platform in the given time
State is updated to offline.
4. it is according to claim 3 to register and keep-alive processing method, it is characterised in that when the keep Alive Packet for being sent is pre-
When the interior network switching equipment received without management platform of fixing time is the predetermined network switching equipment, methods described is also wrapped
Include:
Management platform is updated to the state for being tied to the network terminal of the predetermined network switching equipment offline.
It is 5. according to claim 1 and 2 to register and keep-alive processing method, it is characterised in that
If the network terminal does not receive the response message of the predetermined network switching equipment in the scheduled time, methods described is also wrapped
Include:
The network terminal reselects a network connection link conduct from the network connection link of the network terminal and management platform
Registration message transmission link sends registration message and is re-registered to management platform, in the new registration message transmission link for selecting
On predetermined network switching equipment capture registration message after, if it find that send registration message the network terminal not in the network terminal
In keep-alive list, then in registration message additional predetermined network switching equipment IP address, be then forwarded to management platform;It is based on
The IP address of the predetermined network switching equipment added in registration message, management platform is bound the note of the new selection by the network terminal
Volume message transmission link on predetermined network switching equipment, management platform return succeed in registration message when, notify the network terminal and
The predetermined network switching equipment that the network terminal is bound again, in subsequent keep-alive, predetermined network of the network terminal to bind again
Switching equipment carries out keep-alive for keep-alive target device, and the predetermined network switching equipment bound again will return the message that succeeds in registration
Network terminal information is added in network terminal keep-alive list.
6. registration and keep-alive processing meanss, are applied to the monitoring pipe that the network terminal, the network switching equipment, management platform are sequentially accessed
Reason system;Characterized in that, described device includes:
The network switching equipment is registered and keep-alive unit, after the network switching equipment is initially accessed monitoring management system, for pipe
Platform sends registration message and carries out initial registration;And after network switching equipment initial registration success, for management platform
Keep Alive Packet is periodically sent, corresponding response is returned to the network switching equipment based on the keep Alive Packet management platform for receiving
Message, the state of the network switching equipment is set to online;
Network terminal registering unit, after the network terminal is initially accessed monitoring management system, for flat with management in the network terminal
Select a network connection link as registration message transmission link in the network connection link of platform, registration message described in Jing sends
Chain road direction management platform sends registration message and carries out initial registration;Predetermined network in the registration message transmission link is exchanged
After equipment capture registration message, for the IP address for adding the predetermined network switching equipment in registration message, then forward
To management platform;
Network terminal keep-alive target device determining unit, disappears in the registration for receiving the network terminal for being initially accessed monitoring management system
After breath, for the IP address based on the predetermined network switching equipment in registration message, the network terminal is bound into described predetermined
The network switching equipment;After network terminal initial registration success, for returning the message that succeeds in registration to the network terminal, network is notified
The keep-alive target device of terminal and the predetermined network switching equipment network terminal is the predetermined network switching equipment, described pre-
Determine the network switching equipment and the successful network terminal information of initial registration is added in network terminal keep-alive list;
Network terminal keep-alive unit, in network terminal keep-alive, protects for periodically sending to the predetermined network switching equipment
Message living, based on predetermined network switching equipment described in the keep Alive Packet for receiving corresponding response message is returned, and to management platform
The notice message for carrying the IP address and device id of the network terminal is sent, based on notice message management platform by the shape of the network terminal
State is set to online.
7. it is according to claim 6 to register and keep-alive processing meanss, it is characterised in that described device also includes:
Network terminal keep-alive failure offline unit, in network terminal keep-alive, if a net in the network terminal keep-alive list
The keep Alive Packet that network terminal is sent is not listened to by the predetermined network switching equipment in the given time, for management
Platform sends notice message, based on notice message management platform by the sent keep Alive Packet not by the predetermined network
The state of the network terminal that switching equipment is listened to is updated to offline;The sent keep-alive is carried in the notice message
The IP address and device id of the network terminal that message is not listened to by the predetermined network switching equipment.
8. the registration according to claim 6 or 7 and keep-alive processing meanss, it is characterised in that described device also includes:
Network switching equipment keep-alive failure offline unit, if what a network switching equipment of the monitoring management system was sent
Keep Alive Packet is received in the given time without management platform, for the keep Alive Packet for being sent not to be had in the given time
The state of the network switching equipment that management platform is received is updated to offline.
It is 9. according to claim 8 to register and keep-alive processing meanss, it is characterised in that
When the keep Alive Packet for being sent is in the given time described predetermined without the network switching equipment that management platform is received
During the network switching equipment,
The network switching equipment keep-alive failure offline unit, is additionally operable to the network by the predetermined network switching equipment is tied to
The state of terminal is updated to offline.
10. the registration according to claim 6 or 7 and keep-alive processing meanss, it is characterised in that described device also includes:
The network terminal re-registers and determines keep-alive target device unit, if the network terminal do not receive in the scheduled time it is described
The response message of predetermined network switching equipment, for the network connection link from the network terminal with management platform in reselect
One sends registration message and is re-registered as registration message transmission link to management platform, in the new registration message for selecting
After predetermined network switching equipment capture registration message in transmission link, if it find that the network terminal for sending registration message does not exist
In network terminal keep-alive list, then in registration message additional predetermined network switching equipment IP address, be then forwarded to management
Platform;Based on the IP address of the predetermined network switching equipment added in registration message, the network terminal is bound into the new selection
Predetermined network switching equipment in registration message transmission link, management platform is returned when succeeding in registration message, notifies the network terminal
And the predetermined network switching equipment that the network terminal is bound again, in subsequent keep-alive, predetermined net of the network terminal to bind again
Network switching equipment carries out keep-alive for keep-alive target device, and the predetermined network switching equipment bound again succeeds in registration return message
Network terminal information add network terminal keep-alive list in.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610970366.0A CN106656653B (en) | 2016-10-28 | 2016-10-28 | Registration and keep-alive processing method and processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610970366.0A CN106656653B (en) | 2016-10-28 | 2016-10-28 | Registration and keep-alive processing method and processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106656653A true CN106656653A (en) | 2017-05-10 |
CN106656653B CN106656653B (en) | 2019-08-27 |
Family
ID=58820908
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610970366.0A Active CN106656653B (en) | 2016-10-28 | 2016-10-28 | Registration and keep-alive processing method and processing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106656653B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109756705A (en) * | 2018-12-14 | 2019-05-14 | 视联动力信息技术股份有限公司 | A kind of method that terminal alerts offline and device |
CN111157223A (en) * | 2019-12-31 | 2020-05-15 | 华为技术有限公司 | Equipment fault detection method, device and system |
CN111309395A (en) * | 2020-02-10 | 2020-06-19 | 北京星选科技有限公司 | Object keep-alive method and device, electronic equipment and computer readable storage medium |
CN114168212A (en) * | 2020-09-09 | 2022-03-11 | 成都鼎桥通信技术有限公司 | Application processing method, device, equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6973027B1 (en) * | 2001-08-17 | 2005-12-06 | Cisco Technology, Inc. | System and method for maintaining a communication session over gatekeeper failure |
CN101304360A (en) * | 2007-05-08 | 2008-11-12 | 艾岩 | System and method for virtualization of user digital terminal |
CN101616311A (en) * | 2009-07-31 | 2009-12-30 | 杭州华三通信技术有限公司 | A kind of video frequency monitoring method and video monitoring server |
CN102075501A (en) * | 2009-11-25 | 2011-05-25 | ***通信集团公司 | Method for using Internet protocol (IP) multimedia subsystem (IMS), equipment and system |
-
2016
- 2016-10-28 CN CN201610970366.0A patent/CN106656653B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6973027B1 (en) * | 2001-08-17 | 2005-12-06 | Cisco Technology, Inc. | System and method for maintaining a communication session over gatekeeper failure |
CN101304360A (en) * | 2007-05-08 | 2008-11-12 | 艾岩 | System and method for virtualization of user digital terminal |
CN101616311A (en) * | 2009-07-31 | 2009-12-30 | 杭州华三通信技术有限公司 | A kind of video frequency monitoring method and video monitoring server |
CN102075501A (en) * | 2009-11-25 | 2011-05-25 | ***通信集团公司 | Method for using Internet protocol (IP) multimedia subsystem (IMS), equipment and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109756705A (en) * | 2018-12-14 | 2019-05-14 | 视联动力信息技术股份有限公司 | A kind of method that terminal alerts offline and device |
CN111157223A (en) * | 2019-12-31 | 2020-05-15 | 华为技术有限公司 | Equipment fault detection method, device and system |
CN111157223B (en) * | 2019-12-31 | 2022-05-10 | 华为技术有限公司 | Fault detection method, device and system |
CN111309395A (en) * | 2020-02-10 | 2020-06-19 | 北京星选科技有限公司 | Object keep-alive method and device, electronic equipment and computer readable storage medium |
CN114168212A (en) * | 2020-09-09 | 2022-03-11 | 成都鼎桥通信技术有限公司 | Application processing method, device, equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106656653B (en) | 2019-08-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Zhang et al. | Edge intelligence and blockchain empowered 5G beyond for the industrial Internet of Things | |
Yu et al. | A survey on the edge computing for the Internet of Things | |
CN106656653A (en) | Method and device for processing registration and keeping alive | |
CN101378334B (en) | Communication method based on dual-network redundant universal network model | |
CN105991412B (en) | Information push method and device | |
CN102404254A (en) | Multi-network integrated intelligent home gateway device and system | |
CN103501347A (en) | Resource distribution method and device | |
CN106686129A (en) | Load balancing method and load balancing system | |
CN104079885A (en) | Nobody-monitored and linkage-tracked network camera shooting method and device | |
CN106101264A (en) | Content distributing network daily record method for pushing, device and system | |
CN202475474U (en) | Multi-network integration intelligent home gateway device and system | |
Wang et al. | Disaster relief wireless networks: Challenges and solutions | |
CN110311800A (en) | Communication equipment, the connection method of node, storage medium, electronic device | |
CN107168853A (en) | A kind of server performance information acquisition method, system and substrate control manager | |
CN110049027A (en) | A kind of transmission platform for block chain network information | |
CN112995234A (en) | Media transmission link management method and device | |
CN107463476A (en) | The acquisition methods and device of information | |
CN208046653U (en) | A kind of electric power monitoring system network security monitoring main website plateform system | |
CN113344743B (en) | Fault hazard index calculation and vulnerability assessment method for smart power grid | |
JP2001292467A (en) | Operation and maintenance method for base station utilizing remote procedure call | |
Chakroun et al. | Internet of Things: Towards a solid ecosystem of interconnected things | |
CN106790354A (en) | A kind of communication means and its device of anti-data congestion | |
CN107347110A (en) | Intelligent terminal tele-control system | |
CN110185937A (en) | A kind of pipeline inspection monitoring method, server and system | |
CN105429795A (en) | Alarm monitoring system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |