CN109167696A - A kind of monitoring method and device - Google Patents

A kind of monitoring method and device Download PDF

Info

Publication number
CN109167696A
CN109167696A CN201811347707.4A CN201811347707A CN109167696A CN 109167696 A CN109167696 A CN 109167696A CN 201811347707 A CN201811347707 A CN 201811347707A CN 109167696 A CN109167696 A CN 109167696A
Authority
CN
China
Prior art keywords
processor
imp
interface message
address
message processor
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.)
Pending
Application number
CN201811347707.4A
Other languages
Chinese (zh)
Inventor
陈锐均
黎志勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Comba Network Systems Co Ltd
Original Assignee
Comba Telecom Technology Guangzhou Ltd
Comba Telecom Systems China Ltd
Comba Telecom Systems Guangzhou Co Ltd
Tianjin Comba Telecom Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Comba Telecom Technology Guangzhou Ltd, Comba Telecom Systems China Ltd, Comba Telecom Systems Guangzhou Co Ltd, Tianjin Comba Telecom Systems Co Ltd filed Critical Comba Telecom Technology Guangzhou Ltd
Priority to CN201811347707.4A priority Critical patent/CN109167696A/en
Publication of CN109167696A publication Critical patent/CN109167696A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Power Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of monitoring method and devices.The monitoring method includes: that the interface message processor (IMP) receives the data packet that access device is sent;The interface message processor (IMP) determines address coefficient according to the source address of the data packet;The address coefficient is answered with a processor pair in the M processor registered on interface message processor (IMP);The interface message processor (IMP) is sent to the corresponding processor of the address coefficient according to the address coefficient, by the data packet.In the embodiment of the present invention, interface message processor (IMP) determines address coefficient according to the source address of data packet, and data packet is sent to the corresponding processor of address coefficient, so that the not fixed single processor processing of data packet, to improve processing flexibility.

Description

A kind of monitoring method and device
Technical field
The present invention relates to wireless communication field more particularly to a kind of monitoring method and devices.
Background technique
Wireless coverage network management system will realize the monitoring management to access device by processor.In the prior art, individually Processor is directly connected to multiple access devices, is monitored management to the access device of connection.As access device accesses quantity Increase, single processor progressivelyes reach processing bottleneck, and what is connected has a processing of this processor, inflexible.In addition, one This processor of denier breaks down, and all access devices connecting with this processor cannot all be monitored, and fault-tolerance is poor.
Therefore, in the prior art single processor processing data packet reach processing bottleneck, handle not flexible and fault-tolerance compared with Difference is a urgent problem to be solved.
Summary of the invention
The embodiment of the present application provides a kind of monitoring method and device, solves single processor processing number in the prior art And processing inflexible problem limited according to packet ability.
The embodiment of the present invention provides a kind of monitoring method, this method comprises:
Interface message processor (IMP) receives the data packet that access device is sent;
The interface message processor (IMP) determines address coefficient according to the source address of the data packet;The address coefficient in the interface A processor pair in the M processor registered on machine is answered;M is the integer greater than 1;
The interface message processor (IMP) is sent to the corresponding processing of the address coefficient according to the address coefficient, by the data packet Machine.
Optionally, the interface message processor (IMP) determines address coefficient according to the source address of the data packet, comprising:
The interface message processor (IMP) determines the cryptographic Hash of the source address mapping of the data packet;
The interface message processor (IMP) by the cryptographic Hash divided by the remainder of M, as the address coefficient.
Optionally, the method also includes:
For each processor in the M processor, the interface message processor (IMP) is according to predetermined period, in each predetermined period Interior transmission heartbeat data packets are to the processor;
If the interface message processor (IMP) does not receive the response of the heartbeat data packets of processor transmission in the predetermined period Data packet, then the interface message processor (IMP) determines that the processor breaks down.
Optionally, the method also includes:
If the corresponding processor of the address coefficient that the interface message processor (IMP) determines breaks down, the interface message processor (IMP) is redefined The address coefficient.
Optionally, the interface message processor (IMP) redefines the address coefficient, comprising:
The interface message processor (IMP) determine the sum of the address coefficient and random number mapping cryptographic Hash, and by the cryptographic Hash divided by The remainder of M, as the address coefficient redefined.
In the embodiment of the present invention, when interface message processor (IMP) receives the data packet of access device transmission, available processor is M A, the processing capacity than single processor is stronger, and then increases the accessible quantity of access device;Moreover, in M processor Some processor stall after, there are also other processors can be used as backup;In addition, interface message processor (IMP) is determined according to the source address of data packet Address coefficient, and data packet is sent to the corresponding processor of address coefficient, so that the not fixed single processor of data packet Processing, to improve processing flexibility.
The embodiment of the present invention provides a kind of monitoring device, which includes:
Receiving module, for receiving the data packet of access device transmission;
Processing module, for determining address coefficient according to the source address of the data packet;The M of the address coefficient and registration A processor pair in a processor is answered;M is the integer greater than 1;And according to the address coefficient, the data packet is sent out Send processor corresponding to the address coefficient.
Optionally, the processing module, is specifically used for:
Determine the cryptographic Hash of the source address mapping of the data packet;And by the cryptographic Hash divided by the remainder of M, as institute State address coefficient.
Optionally, the processing module is also used to:
If it is determined that the corresponding processor of the address coefficient break down, it is determined that the address coefficient and random number it With the cryptographic Hash of mapping, and by the cryptographic Hash divided by the remainder of M, as the address coefficient redefined.
The embodiment of the present invention provides a kind of monitoring system, which includes: that interface message processor (IMP), M processor and K access are set It is standby;M, K is the integer greater than 0;
The access device is for sending data packet to the interface message processor (IMP);
The interface message processor (IMP) is used to receive the data packet that the access device is sent, and true according to the source address of the data packet Determine address coefficient;The address coefficient is answered with a processor pair in the M processor registered on the interface message processor (IMP);M is Integer greater than 1;
The interface message processor (IMP) is also used to according to the address coefficient, and it is corresponding that the data packet is sent to the address coefficient Processor;
The processor is used to receive the data packet corresponding with the address coefficient of the processor that the interface message processor (IMP) is sent.
Optionally, the interface message processor (IMP) determines address coefficient according to the source address of the data packet, comprising:
The interface message processor (IMP) determines the cryptographic Hash of the source address mapping of the data packet;
The interface message processor (IMP) by the cryptographic Hash divided by the remainder of M, as the address coefficient.
Optionally, the system also includes:
The interface message processor (IMP) is also used to according to predetermined period, and heartbeat data packets are sent in each predetermined period to the processing Machine;
The processor is also used to receive the heartbeat data packets that the interface message processor (IMP) is sent, and sends out in the predetermined period Send the response data packet of the heartbeat data packets;
When the interface message processor (IMP) is also used to not receive the response data packet of processor transmission in the predetermined period, Determine that the processor breaks down.
Optionally, the system also includes:
The interface message processor (IMP) is also used to when determining that the corresponding processor of the address coefficient breaks down, it is determined that describedly The cryptographic Hash of the sum of location coefficient and random number mapping, and by the cryptographic Hash divided by the remainder of M, as redefine describedly Location coefficient.
Optionally, the processor is also used to for query messages to be sent to the interface message processor (IMP);The query messages are for asking The access device is asked to return to the data packet for carrying the operating parameter of the access device;
The interface message processor (IMP) is also used to the query messages for sending the processor, is sent to the corresponding access of the processor Equipment.
Detailed description of the invention
Fig. 1 is the architecture diagram that monitoring method corresponds to monitoring system in the embodiment of the present application;
Fig. 2 is the flow chart of monitoring method in the embodiment of the present application;
Fig. 3 is the flow chart that processor is registered on interface message processor (IMP) in the embodiment of the present application;
Fig. 4 is the timing diagram that processor is registered on interface message processor (IMP) in the embodiment of the present application;
Fig. 5 is the timing diagram of heartbeat working mechanism between processor and interface message processor (IMP) in the embodiment of the present application;
Fig. 6 is the flow chart that address coefficient is determined in the embodiment of the present application;
Fig. 7 is the structural schematic diagram of monitoring device in the embodiment of the present application.
Specific embodiment
In order to better understand the above technical scheme, below in conjunction with Figure of description and specific embodiment to above-mentioned Technical solution is described in detail, it should be understood that the specific features in the embodiment of the present application and embodiment are to the application skill The detailed description of art scheme, rather than the restriction to technical scheme, in the absence of conflict, the embodiment of the present application And the technical characteristic in embodiment can be combined with each other.
The embodiment of the present invention is described in further detail with reference to the accompanying drawings of the specification.It should be noted that this hair relates to And access device can for repeater, operation and maintenance center, dry put, net and supervise instrument, digital fiber Remote Radio Unit and polyphyly Integration channel platform etc..
For example, repeater belongs to one kind of repeater, is the connection equipment above networked physics layer.Suitable for complete The interconnection of identical two classes network, major function are to be passed by the retransmission or forwarding to data-signal to expand network Defeated distance.Repeater is repeater Open System Interconnection (OSI, the Open System for being regenerated and being restored to signal Interconnection) the physical layer equipment of model.
It in the prior art, to the monitoring of access device is carried out by single processor.However, as access device connects Enter the increase of quantity, it is poor that single processor progressivelyes reach processing bottleneck, the not flexible and fault-tolerance of processing.Therefore, the application mentions A kind of monitoring method is gone out, to overcome the above problem.
The corresponding monitoring system framework of monitoring method that the application proposes is as shown in Figure 1.
Monitoring system is made of four parts: access device, interface message processor (IMP), message center, processor.
(1) access device: monitored equipment.Each access device is led to by Ethernet or short message with interface message processor (IMP) Letter.If it is ether net mode, then each access device is with binding an Internet protocol (IP, Internet Protocol) Location.If it is short message mode, then each access device binds a telephone number.The IP address of different access device bindings or Telephone number is different.
(2) interface message processor (IMP): the communication interface between processor and access device.Interface message processor (IMP) is responsible for receiving or sending access device Or the data packet of processor.Interface message processor (IMP) provides three functions: location registration process machine, heartbeat inspecting, data forwarding.
(3) message center: the forwarding device for interface message processor (IMP) and interprocessor communication.Message center is responsible for each place Reason machine provides corresponding message queue, and message queue wraps for storing data.The data forwarding that message center sends interface message processor (IMP) To respective handling machine, or data forwarding that processor is sent is to interface message processor (IMP).
(4) processor: the equipment for monitoring access device.Processor obtains access device by the processing to data packet Operating parameter realizes the monitoring to access device.The quantity of processor is set as M.
Monitoring method provided in an embodiment of the present invention is described in detail below.With reference to Fig. 2, provided for the embodiment of the present invention Monitoring method flow chart.
Step 201: interface message processor (IMP) receives the data packet that access device is sent.
Step 202: the interface message processor (IMP) determines address coefficient according to the source address of the data packet.
The address coefficient and a processor in the M processor registered on the interface message processor (IMP) are uniquely corresponding;M is Integer greater than 1.
Step 203: the data packet is sent to the address coefficient and corresponded to by the interface message processor (IMP) according to the address coefficient Processor.
Before step 201, M processor needs are registered on interface message processor (IMP), and specific register flow path is as shown in figure 3, include Step 301~step 308;Step 301~303 in register flow path, the timing diagram that alignment processing machine is interacted with interface message processor (IMP) such as Fig. 4 institute Show, including step 401~step 410.It is carried out it should be noted that Fig. 4 implies processor and interface message processor (IMP) by message center Communication.
After interface message processor (IMP) electrifying startup, i.e., executable registration service is specifically executed by the main controller module of interface message processor (IMP).Master control Device processed also will start heartbeat working mechanism and data routing mapping function, will be described in detail in subsequent step.
Register flow path is specific as follows:
Step 301: registration request.
Step 302: registration request is responded.
Step 303: being received back and answer.
Step 304: initialization, connection message center.
Step 305: judging whether initialization succeeds.
Step 306: sending the notice that succeeds in registration.
Step 307: interface message processor (IMP) confirmation processor succeeds in registration.
Step 308: receiving acknowledgement notification.
Wherein, step 301, step 303~step 306, step 308 are executed by processor;Step 302, step 307 are by connecing Mouth machine executes.
In step 301, for any one processor in M processor, which sends registration to interface message processor (IMP) and asks It asks;Specifically, registration request is first buffered in the registration service queue of message center, and by message center by registration service queue Registration request is sent to interface message processor (IMP).
In step 302, interface message processor (IMP) returns to registration request and responds.
In step 303, if processor within the waiting time that default registration request is responded, has received interface message processor (IMP) transmission Registration request is responded, then processor initializes, and connection message center, i.e. execution step 304;If processor is in default registration The registration request for not receiving interface message processor (IMP) transmission in the waiting time responded is requested to be responded, processor sends to interface message processor (IMP) infuse again Volume request, that is, re-execute the steps 301.
It should be noted that the specific timing of step 301~step 303 corresponding diagram 4 is as shown in step 401~step 410:
Step 401: sending registration request.
Step 402: searching whether registered Service Instance.
If there is the ID of the registration service example, 403 are thened follow the steps, it is no to then follow the steps 404.
Step 403: returning to the ID of registration service example.
Step 404: newly-increased registration service example ID.
Step 405: the list of registration service example ID is added in newly-increased registration service example ID.
Step 406: returning to registration service example ID.
Step 407: reading resource.
Step 408: returning to resource.
Step 409: generating the resource packet that succeeds in registration.
Step 410: returning to the resource packet that succeeds in registration.
Wherein, step 401 is executed by processor;Step 402~410 are executed by interface message processor (IMP).
It, can be real according to the registration service of interface message processor (IMP) after interface message processor (IMP) receives the notice that succeeds in registration of processor in step 402 Example identity (ID, identity number) list block, searches whether the registration service ID for having the processor, the note Volume service ID is uniquely corresponding with processor.
In step 402, specifically, a registration table is safeguarded in interface message processor (IMP), it is new i.e. in registration table to increase registration service ID newly Increase a record, registration table format is as shown in table 1.Optionally, interface message processor (IMP) can read resource from the configuration resource table of interface message processor (IMP), match It sets resource table module and returns to resource to interface message processor (IMP).Configuration resource table is added as needed, and configuration resource table specifies ID pairs of registration The resource information answered such as distributes to the message queue title of processor.After the completion of these, interface message processor (IMP) sends one to alignment processing machine A notice that succeeds in registration.
1 registration table format of table
In step 410, if processor receives the notice that succeeds in registration of interface message processor (IMP) transmission, represents interface message processor (IMP) and increased newly The registration information of the processor, otherwise processor retransmission are succeeded in registration notice.
After step 410, step 304 is executed;Message center can be one corresponding message of multi-frame system at this time Queue.Message queue is also used to interface message processor (IMP) and transmits data on specified processor.
In step 305, if assignment messages queue success, initializes successfully, then executes 306;Otherwise, step is executed again 306, processor is again coupled to message center.
In step 306, after successful connection, processor sends the notice that succeeds in registration to interface message processor (IMP).
In step 307, after interface message processor (IMP) receives the notice that succeeds in registration of processor transmission, it is thus identified that processor is registered Function, and send acknowledgement notification.
In step 308, the processor acknowledgement notification that receiving interface machine is sent again, registration process is finished.
Processor passes through the heartbeat working mechanism of interface message processor (IMP) execution after interface message processor (IMP) registration.Heartbeat working mechanism process Figure is as shown in Figure 5.Wherein, heart- beat test task, heartbeat monitoring, registration service example ID list are the module in interface message processor (IMP). Heartbeat working mechanism is that interface message processor (IMP) is used to safeguard the registration service example ID list that can be serviced, and interface message processor (IMP) can be worked by heartbeat Mechanism timely updates the service states of all processors.If processor does not respond the heart- beat test packet of interface message processor (IMP), should Processor be classified as can not service state, no longer toward the processor forward data.If processor connects exception with message center, (such as 60 seconds) attempt to connect to message center at regular intervals, until successful connection.Processor detects certain in processor After one application thread exception, if thread is in abnormality, then restarts this application in a period of time (such as 2 minutes) Thread.
Specifically, the interface message processor (IMP) sends heartbeat data packets to the processing according to predetermined period in each predetermined period Machine;For example, predetermined period is 5 minutes.If interface message processor (IMP) does not receive the beats of processor transmission in 5 minutes According to the response data packet of packet, then the interface message processor (IMP) determines that the processor breaks down.
As shown in figure 5, detailed step is as follows:
Step 501: interface message processor (IMP) initiates heartbeat timing plan target.
Step 502: interface message processor (IMP) requests registered Service Instance set.
Step 503: interface message processor (IMP) collects registered Service Instance set.
Step 504: interface message processor (IMP) returns to registered Service Instance set.
Step 505: each note of the interface message processor (IMP) according to the registration service example collection of return, into registration service example collection Volume Service Instance successively sends heart- beat test packet.
Step 506: interface message processor (IMP) notification message center, which is monitored, to be started.
Step 507: interface message processor (IMP) timing.
Be divided into two kinds of situations: step 508 should be executed by intentionally jumping back to;Or Lungs from Non-Heart-Beating is responded, and step 509 is executed.
Step 508: interface message processor (IMP) determines that processor operates normally.
Step 509: interface message processor (IMP) determines that processor breaks down.
In step 501, interface message processor (IMP) starts heart- beat test task by calling heart- beat test function.
In step 502, interface message processor (IMP) monitors the registered Service Instance of module request by heart- beat test task module, to heartbeat Set.Each registration service example and a registered processor are uniquely corresponding.
In step 503, interface message processor (IMP) monitors module by heartbeat, collects wherein from registration service example ID list block IsLive field is available registration service example ID, as registered Service Instance set.
In step 504, interface message processor (IMP) is returned registered by registration service example ID list block to heartbeat monitoring module Service Instance set.
In step 505, interface message processor (IMP) monitors the registration service example collection of module collection according to heartbeat, to registration service example Each corresponding processor successively sends heart- beat test packet in set, and specifically, interface message processor (IMP) first sends heart- beat test packet It gives processor in message center corresponding message queue, heart- beat test packet is sent to each processor by message center.
In step 506, interface message processor (IMP) is every send heart- beat test packet to processor after, all notification message centers are begun listening for The corresponding message queue of processor.
In step 507, interface message processor (IMP) is every send heart- beat test packet to processor after, start timing.
It should be noted that " heartbeat timing plan target " is a timed task, the unit in predetermined period is being indicated Several ping packets are sent to target (i.e. registration service example) in time.Interface message processor (IMP) is sent out to the corresponding processor of registration service example After having sent ping packet, have 2 as a result, first is that processor has response in predetermined period, second is that processor is in predetermined period Without response.Corresponding " having response heartbeat message " (corresponding step 508) and " no to respond " (the corresponding step with Fig. 5 of 2 situations 509) respective handling situation.
In step 508, including step 5081 and step 5082.
Step 5081: message center sends response data packet to interface message processor (IMP).
Step 5082: interface message processor (IMP) is receiveed the response to message center transmission.
In step 5081, if message center listens in message queue the response data packet for having processor to send, message Center sends response data packet to the heart- beat test task module of interface message processor (IMP).
In step 5082, interface message processor (IMP) passes through the heart- beat test task module of interface message processor (IMP), receives the response to message center transmission.
In step 509, including step 5091, step 5092 and step 5093.
Step 5091: interface message processor (IMP) sends unavailable registration service example to message center.
Step 5092: interface message processor (IMP) is receiveed the response to message center transmission.
Step 5093: interface message processor (IMP) is receiveed the response to message center transmission.
In step 5091, if at the end of predetermined period, processor does not receive the corresponding message queue of processor yet and sends Response data packet, then the heart- beat test task module of interface message processor (IMP), which to the heartbeat of interface message processor (IMP) monitors module and sends unavailable registration, takes The ID of pragmatic example.
In step 5092, interface message processor (IMP) monitors module by the heartbeat of interface message processor (IMP), by the unavailable registration service received reality IsLive field of the example ID in registration service example ID list is determined as unavailable.
A kind of optional mode is that interface message processor (IMP) deletes the corresponding registration information of unavailable registration service example ID, next time It obtains registered when having registered set, no longer includes the registration service example.
In step 5093, interface message processor (IMP) returns to the notice being successfully updated by registration service example ID list block.Processor After interface message processor (IMP) registration, mapping is routed by the data that interface message processor (IMP) starts, the access device of access can be monitored.
In step 201, interface message processor (IMP) receives the data packet of access device.The access of access device be it is uncertain, access is set Data packet can be sent to interface message processor (IMP) when standby access, specific processor is forwarded to by interface message processor (IMP).
In step 202, interface message processor (IMP) determines address coefficient according to the source address of data packet, determines the detailed process of address coefficient As shown in fig. 6, detailed step is as follows:
Step 601: interface message processor (IMP) determines address coefficient.
Step 602: interface message processor (IMP) judges whether address coefficient can be used.
If available, step 603 is executed;If unavailable, step 601 is executed.
Step 603: interface message processor (IMP) return address coefficient.
In step 601, interface message processor (IMP) determines address coefficient according to the source address and address coefficient preset relation of access device. For example, mapping relations are hash function (Hash), also referred to as hash function, and the input of random length is exactly passed through hash At the output of regular length, which is exactly hashed value for algorithmic transformation.The space of hashed value for hashing algorithm input is usual Much smaller than the space of input, different inputs may hash to identical output.
For example, address coefficient=(Hash1 { source address of data packet }) % processor is total (i.e. M)." Hash1 { number According to packet address } " it indicates to carry out " data packet addressed " Hash operation, " % " is modulus operator, " processor sum " table Show that the processor of registration is total (may include not available processor), " data packet addressed " can be IP or telephone number, lift For example, " 192.168.12.34 " or " 13712345678 ".By cryptographic Hash divided by processor sum M remainder, so that address Coefficient is distributed in M numerical value, and corresponding M processor can make data payload be evenly distributed in each processor.It needs to illustrate It is a Hash operation to be carried out later again divided by processor sum remainder to the source address of data packet, whole process can also be seen Do a hash function.
If coefficient corresponding processor in address breaks down, the address coefficient is unavailable;If address coefficient is corresponding Processor do not break down, then the address coefficient is available.
In step 602, if the address coefficient that step 601 obtains is unavailable, (for example, interface message processor (IMP) is sent out to the processor The heart- beat test packet sent is not responded), then address coefficient is redefined, i.e., executes step 601 again.
To guarantee that determination obtains new address coefficient, a kind of possible implementation again are as follows:
Address coefficient=(Hash address coefficient a+ random number) %M;Wherein, coefficient a in address is that step 601 obtains address Coefficient.
If it is determined that address coefficient it is available, execute step 603.
By increasing random number, so that data packet is randomly distributed in other available processors.As a kind of preferred Embodiment, random number is greater than 0 and to be less than or equal to the random integers of M, and the preferred embodiment data processing amount is lower.
In step 603, interface message processor (IMP) returns to available address coefficient.
In step 203, the data packet that interface message processor (IMP) is sent to the corresponding processor of address coefficient is divided into two kinds: access device The data packet that the data packet and non-first time once sent to processor is sent to processor.
When the data packet that access device is sent to processor for the first time, processor sends parameter list querying command to right Access device is answered, parameter list is the set of all possible operating parameters of access device.Access device receives parameter list and looks into After asking order, corresponding operating parameter is obtained from parameter list;Later, when the data packet that access device is sent to processor again A kind of possible case be, access device receive processor transmission parameter query order after, return operating parameter, processor root According to the operating parameter that access device returns, the monitoring to access device is realized.
The present invention proposes a kind of monitoring method, supervises for by IP or short message (or the feature for having fixed network address) The access device (such as access device) of control, proposes a kind of according to address coefficient, and the data packet of access device is sent to each place On reason machine, the business of a large amount of access devices is shared on multiple processors and is executed, to complete monitor task jointly.This method The bandwidth for extending access device and server, increases handling capacity, strengthens network data processing ability, has reached horizontal expansion Appearance proposes high performance purpose.
In the embodiment of the present invention, when interface message processor (IMP) receives the data packet of access device transmission, available processor is M A, the processing capacity than single processor is stronger, and then increases the accessible quantity of access device;Moreover, in M processor Some processor stall after, there are also other processors can be used as backup;In addition, interface message processor (IMP) is determined according to the source address of data packet Address coefficient, and data packet is sent to the corresponding processor of address coefficient, so that the not fixed single processor of data packet Processing, to improve processing flexibility.
As shown in fig. 7, being the structural schematic diagram of monitoring device provided in an embodiment of the present invention.
The embodiment of the present invention further provides a kind of monitoring device, which includes:
Receiving module 701, for receiving the data packet of access device transmission;
Processing module 702, for determining address coefficient according to the source address of the data packet;The address coefficient and registration M processor in a processor pair answer;M is the integer greater than 1;And according to the address coefficient, by the data Packet is sent to the corresponding processor of the address coefficient.
Optionally, the processing module 702, is specifically used for:
Determine the cryptographic Hash of the source address mapping of the data packet;And by the cryptographic Hash divided by the remainder of M, as institute State address coefficient.
Optionally, the processing module 702, is also used to:
If it is determined that the corresponding processor of the address coefficient break down, it is determined that the address coefficient and random number it With the cryptographic Hash of mapping, and by the cryptographic Hash divided by the remainder of M, as the address coefficient redefined.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of device (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (13)

1. a kind of monitoring method characterized by comprising
Interface message processor (IMP) receives the data packet that access device is sent;
The interface message processor (IMP) determines address coefficient according to the source address of the data packet;The address coefficient on the interface message processor (IMP) A processor pair in M processor of registration is answered;M is the integer greater than 1;
The interface message processor (IMP) is sent to the corresponding processor of the address coefficient according to the address coefficient, by the data packet.
2. the method as described in claim 1, which is characterized in that the interface message processor (IMP) according to the source address of the data packet definitely Location coefficient, comprising:
The interface message processor (IMP) determines the cryptographic Hash of the source address mapping of the data packet;
The interface message processor (IMP) by the cryptographic Hash divided by the remainder of M, as the address coefficient.
3. the method as described in claim 1, which is characterized in that further include:
For each processor in the M processor, the interface message processor (IMP) is sent out in each predetermined period according to predetermined period Send heartbeat data packets to the processor;
If the interface message processor (IMP) does not receive the response data of the heartbeat data packets of processor transmission in the predetermined period Packet, then the interface message processor (IMP) determines that the processor breaks down.
4. method as claimed in claim 3, which is characterized in that further include:
If the corresponding processor of the address coefficient that the interface message processor (IMP) determines breaks down, the interface message processor (IMP) redefines described Address coefficient.
5. method as claimed in claim 4, which is characterized in that the interface message processor (IMP) redefines the address coefficient, comprising:
The interface message processor (IMP) determines the cryptographic Hash of the sum of the address coefficient and random number mapping, and by the cryptographic Hash divided by M's Remainder, as the address coefficient redefined.
6. a kind of monitoring device characterized by comprising
Receiving module, for receiving the data packet of access device transmission;
Processing module, for determining address coefficient according to the source address of the data packet;At M of the address coefficient and registration A processor pair in reason machine is answered;M is the integer greater than 1;And according to the address coefficient, the data packet is sent to The corresponding processor of the address coefficient.
7. device as claimed in claim 6, which is characterized in that the processing module is specifically used for:
Determine the cryptographic Hash of the source address mapping of the data packet;And by the cryptographic Hash divided by the remainder of M, as describedly Location coefficient.
8. device as claimed in claim 6, which is characterized in that the processing module is also used to:
If it is determined that the corresponding processor of the address coefficient break down, it is determined that the sum of the address coefficient and random number reflect The cryptographic Hash penetrated, and by the cryptographic Hash divided by the remainder of M, as the address coefficient redefined.
9. a kind of monitoring system characterized by comprising interface message processor (IMP), M processor and K access device;M, K is greater than 0 Integer;
The access device is for sending data packet to the interface message processor (IMP);
The interface message processor (IMP) is used to receive the data packet that the access device is sent, and definitely according to the source address of the data packet Location coefficient;The address coefficient is answered with a processor pair in the M processor registered on the interface message processor (IMP);M is greater than 1 Integer;
The interface message processor (IMP) is also used to according to the address coefficient, and the data packet is sent to the corresponding processing of the address coefficient Machine;
The processor is used to receive the data packet corresponding with the address coefficient of the processor that the interface message processor (IMP) is sent.
10. system as claimed in claim 9, which is characterized in that the interface message processor (IMP) is determined according to the source address of the data packet Address coefficient, comprising:
The interface message processor (IMP) determines the cryptographic Hash of the source address mapping of the data packet;
The interface message processor (IMP) by the cryptographic Hash divided by the remainder of M, as the address coefficient.
11. system as claimed in claim 9, which is characterized in that further include:
The interface message processor (IMP) is also used to according to predetermined period, and heartbeat data packets are sent in each predetermined period to the processor;
The processor is also used to receive the heartbeat data packets that the interface message processor (IMP) is sent, and institute is sent in the predetermined period State the response data packet of heartbeat data packets;
When the interface message processor (IMP) is also used to not receive the response data packet of processor transmission in the predetermined period, determine The processor breaks down.
12. system as claimed in claim 9, which is characterized in that further include:
The interface message processor (IMP) is also used to when determining that the corresponding processor of the address coefficient breaks down, it is determined that the address system The cryptographic Hash of the sum of several and random number mapping, and by the cryptographic Hash divided by the remainder of M, as the address system redefined Number.
13. the system as described in claim 9-12 is any, which is characterized in that the processor is also used to send query messages To the interface message processor (IMP);The query messages are used to that the access device to be requested to return to the operating parameter for carrying the access device Data packet;
The interface message processor (IMP) is also used to the query messages for sending the processor, is sent to the corresponding access of the processor and sets It is standby.
CN201811347707.4A 2018-11-13 2018-11-13 A kind of monitoring method and device Pending CN109167696A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811347707.4A CN109167696A (en) 2018-11-13 2018-11-13 A kind of monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811347707.4A CN109167696A (en) 2018-11-13 2018-11-13 A kind of monitoring method and device

Publications (1)

Publication Number Publication Date
CN109167696A true CN109167696A (en) 2019-01-08

Family

ID=64877123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811347707.4A Pending CN109167696A (en) 2018-11-13 2018-11-13 A kind of monitoring method and device

Country Status (1)

Country Link
CN (1) CN109167696A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088407A (en) * 2010-12-29 2011-06-08 清华大学 Mobility managing system and method for integrated identifier network as well as routing method
US20160182277A1 (en) * 2013-03-01 2016-06-23 Mastercard International Incorporated Systems and methods for broadband backup
CN106063228A (en) * 2014-01-31 2016-10-26 谷歌公司 Consistent hashing using exact matching with application to hardware load balancing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088407A (en) * 2010-12-29 2011-06-08 清华大学 Mobility managing system and method for integrated identifier network as well as routing method
US20160182277A1 (en) * 2013-03-01 2016-06-23 Mastercard International Incorporated Systems and methods for broadband backup
CN106063228A (en) * 2014-01-31 2016-10-26 谷歌公司 Consistent hashing using exact matching with application to hardware load balancing

Similar Documents

Publication Publication Date Title
CN111641583B (en) Internet of things resource access system and resource access method
WO2020147331A1 (en) Micro-service monitoring method and system
US7225356B2 (en) System for managing operational failure occurrences in processing devices
EP3633957B1 (en) Data storage method, storage server, storage medium and system
US9917884B2 (en) File transmission method, apparatus, and distributed cluster file system
CN109787827B (en) CDN network monitoring method and device
CN110166524B (en) Data center switching method, device, equipment and storage medium
US9736235B2 (en) Computer system, computer, and load balancing method
US9104488B2 (en) Support server for redirecting task results to a wake-up server
CN109561054B (en) Data transmission method, controller and access device
CN105554142B (en) The method, apparatus and system of message push
CN115023919B (en) Firewall rule updating method and device, server and storage medium
CN102055644A (en) Method, device and system for load management in distributed directory service system
CN112583712A (en) Block chain router and block chain network
CN104657240B (en) The Failure Control method and device of more kernel operating systems
CN106790354B (en) Communication method and device for preventing data congestion
CN116886286A (en) Big data authentication service self-adaption method, device and equipment
CN110661836B (en) Message routing method, device and system, and storage medium
CN109167696A (en) A kind of monitoring method and device
US9967163B2 (en) Message system for avoiding processing-performance decline
CN116455985A (en) Distributed service system, method, computer equipment and storage medium
JP2006100906A (en) Method for managing operation of network system and storage device
CN110290215B (en) Signal transmission method and device
CN114625501A (en) Automatic evidence obtaining scheduling system and method based on block chain
CN109451047A (en) Data transferring method, device, equipment and the storage medium of monitoring warning system

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200103

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Communication System (China) Co., Ltd.

Address before: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant before: Jingxin Communication System (China) Co., Ltd.

Applicant before: Jingxin Communication System (Guangzhou) Co., Ltd.

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant before: TIANJIN COMBA TELECOM SYSTEMS CO., LTD.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Comba Telecom System (China) Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190108