CN109039773B - Network communication monitoring method, electronic equipment, storage medium - Google Patents

Network communication monitoring method, electronic equipment, storage medium Download PDF

Info

Publication number
CN109039773B
CN109039773B CN201811037534.6A CN201811037534A CN109039773B CN 109039773 B CN109039773 B CN 109039773B CN 201811037534 A CN201811037534 A CN 201811037534A CN 109039773 B CN109039773 B CN 109039773B
Authority
CN
China
Prior art keywords
service equipment
destination service
equipment
destination
call relation
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.)
Active
Application number
CN201811037534.6A
Other languages
Chinese (zh)
Other versions
CN109039773A (en
Inventor
邵厚焜
邹德顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201811037534.6A priority Critical patent/CN109039773B/en
Publication of CN109039773A publication Critical patent/CN109039773A/en
Application granted granted Critical
Publication of CN109039773B publication Critical patent/CN109039773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of network communication monitoring method, electronic equipment, storage medium, method includes: to obtain business access link information;The call relation topological diagram between service equipment and other service equipments is constructed according to business access link information, and updates the destination service facility information list of service equipment maintenance based on call relation topological diagram;Each destination service equipment that timing includes into destination service facility information list sends ping connection request, carries out network communication monitoring according to ping connection response, obtains network communication state.Through the invention, the call relation topological diagram between service equipment and other service equipments is constructed, the call relation between service equipment is obtained, the list of destination service facility information is updated, clearly requires the network channel being monitored to it.The network channel that can be more targetedly monitored to needs is monitored, and reduces the influence to resource occupying.

Description

Network communication monitoring method, electronic equipment, storage medium
Technical field
The present invention relates to network communication fields, and in particular to a kind of network communication monitoring method, electronic equipment, storage are situated between Matter.
Background technique
With the rapid development of Internet technology, the service provided based on network is also more and more.Various services require By network implementations service is provided for user, the network support operation of various services.The quality of network communication status can be direct Influence each service operation situation.Therefore, it is necessary to be monitored to network communication status, to exclude network failure in time, mention For preferably servicing.
The prior art, can be by mutually mass-sending when being monitored to network communication status between service equipment each in network Whether the mode of ping connection request detects and is connected between each service equipment.But this mode will lead in network that there are multiple Ping, it is more to resource occupying, lead to that network speed is slack-off, network burden is overweight.Further, it does not need mutually It will not influence to service problem disconnected there are network between two service equipments of communication, but this sample loading mode can make originally It does not need mutually to send out ping connection request between two service equipments being in communication with each other yet, has aggravated network burden, network communication is made At undesirable influence.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State network communication monitoring method, the electronic equipment, storage medium of problem.
According to an aspect of the invention, there is provided a kind of network communication monitoring method, method is by each service equipment The monitoring unit of middle starting is run, and method includes:
Obtaining step obtains business access link information;
Construction step constructs the call relation between service equipment and other service equipments according to business access link information Topological diagram, and the destination service facility information list that service equipment is safeguarded is updated based on call relation topological diagram;
Monitoring step, each destination service equipment for periodically including into destination service facility information list send ping and connect Request is connect, network communication monitoring is carried out according to ping connection response, obtains network communication state.
According to another aspect of the present invention, provide a kind of electronic equipment, comprising: processor, memory, communication interface and Communication bus, processor, memory and communication interface complete mutual communication by communication bus;
Memory makes processor execute following operation for storing an at least executable instruction, executable instruction:
Obtaining step obtains business access link information;
Construction step constructs the call relation between service equipment and other service equipments according to business access link information Topological diagram, and the destination service facility information list that service equipment is safeguarded is updated based on call relation topological diagram;
Monitoring step, each destination service equipment for periodically including into destination service facility information list send ping and connect Request is connect, network communication monitoring is carried out according to ping connection response, obtains network communication state.
According to another aspect of the invention, a kind of computer storage medium is provided, at least one is stored in storage medium Executable instruction, executable instruction make processor execute following operation:
Obtaining step obtains business access link information;
Construction step constructs the call relation between service equipment and other service equipments according to business access link information Topological diagram, and the destination service facility information list that service equipment is safeguarded is updated based on call relation topological diagram;
Monitoring step, each destination service equipment for periodically including into destination service facility information list send ping and connect Request is connect, network communication monitoring is carried out according to ping connection response, obtains network communication state.
The network communication monitoring method that there is provided according to the present invention, electronic equipment, storage medium obtain business access link letter Breath;The call relation topological diagram between service equipment and other service equipments is constructed according to business access link information, and is based on Call relation topological diagram updates the destination service facility information list of service equipment maintenance;Timing is arranged to destination service facility information The each destination service equipment for including in table sends ping connection request, carries out network communication monitoring according to ping connection response, Obtain network communication state.It is set by the invention it is possible to construct service equipment according to business access link information with other services Call relation topological diagram between standby is to get to the call relation between service equipment.The destination service facility information obtained in this way Include the destination service equipment that there is call relation with service equipment in list, specifies the network for needing to be monitored to it Channel, the network channel that can be more targetedly monitored to needs are monitored, reduce to resource occupying It influences.Further, since call relation topological diagram and the list of destination service facility information can be by multiple business accesses for obtaining Link information constructs generation automatically, and business access link information can be obtained according to service equipment actual operating state, entirely Process greatly reduces manual intervention, reduces cost of labor, so that monitoring treatment effeciency is higher.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of according to embodiments of the present invention one network communication monitoring method;
Fig. 2 shows the flow charts of according to embodiments of the present invention two network communication monitoring method;
Fig. 3 shows the structural schematic diagram of according to embodiments of the present invention four a kind of electronic equipment.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
When being monitored inter-net communication, need to be monitored between being interconnected each service equipment, therefore, this Inventing method involved in each embodiment need to be run by the monitoring unit that starts in each service equipment, i.e., each and other The service equipment of service equipment connection is required to start respective monitoring unit realization and supervises to the network communication communicated therewith Control.
Embodiment one
Fig. 1 shows the flow chart of according to embodiments of the present invention one network communication monitoring method, as shown in Figure 1, network Communication monitoring method specifically comprises the following steps:
Step S101 obtains business access link information.
In practical business calling, the different aspects such as, service, data of offer different according to function can be set each service Standby be divided into calls forwarding, operation layer, cache layer, data Layer etc..Wherein, the service equipment and operation layer of forwarding are called There are call relations between service equipment, and there are call relation, cachings between the service equipment of operation layer and the service equipment of cache layer There are call relation between the service equipment of layer and the service equipment of data Layer, can also exist sometimes between the service equipment inside each layer Call relation.Call relation is the net that a service equipment is initiated to another service equipment according to caused by business demand Network communication, has and calls direction.
Business access link information includes the local IP address of service equipment, the native call port of service equipment, target The information such as the calling serve port of the IP address of service equipment, destination service equipment.Each service equipment at runtime, Linux system System can record the company of service equipment and destination service equipment when calling according to the calling situation of each service equipment in actual operation Connect state, that is, record the local IP address of service equipment, the native call port of service equipment, destination service equipment IP Location, destination service equipment the information such as calling serve port, be automatically generated comprising the virtual of the above business access link information File.In the present embodiment, business access link information obtains the virtual file that can be automatically generated by reading linux system It obtains.Alternatively, business access link information can also utilize order according to the calling situation of each service equipment in actual operation Mode obtains, and netstat order and parameter t, n of netstat order etc. is such as utilized, to the connection status of each service equipment It is inquired, includes local IP address, the native call port of service equipment, destination service of service equipment in query result The information such as the calling serve port of the IP address of equipment, destination service equipment, that is, get business access link information.Herein, The acquisition of business access link information does not need any manual hand manipulation, can be closed based on the calling of each service equipment itself The actual motions state such as system, connection status directly acquires, and greatly reduces the step of requiring manual intervention, so that the present embodiment is more Add automation, decreases cost of labor cost.
In the calling of active service equipment, the native call port of service equipment is generally random port, each service There may be not fixed consistent port for the native call port of equipment.The calling serve port of destination service equipment is to fix Port facilitates by different service equipment access.Such as allow the calling serve port one of the addressable destination service equipment of outer net As be fixed as 80 ports, the calling serve port of addressable destination service equipment is generally fixed as 8080 ports between Intranet, number 3006 ports are generally fixed as according to the calling serve port of each destination service equipment of layer.
Step S102 constructs the call relation between service equipment and other service equipments according to business access link information Topological diagram, and the destination service facility information list that service equipment is safeguarded is updated based on call relation topological diagram.
The business access link information got includes the information of service equipment and the information of destination service equipment, but only The direction of calling can not be determined according to single business access link information.In view of the calling serve port of destination service equipment Be it is fixed, when presence service equipment calls destination service equipment, will record corresponding fixation in business access link information Destination service equipment IP address and destination service equipment calling serve port.But the native call end of corresponding with service equipment Mouth is random port, and there are different situations for the native call port of multiple service equipments.When multiple service equipments call together When one destination service equipment, the IP address and mesh of identical destination service equipment in the business access link information got The calling serve port of mark service equipment will appear repeatedly.Based on the above situation, business access link information can be united Meter, counts the number of identical IP address and port information wherein occurred, i.e., the IP address of statistics same target service equipment and The number for calling serve port to occur of destination service equipment.Judge the IP address and destination service equipment of destination service equipment Whether the number for calling serve port to occur is greater than preset times, and such as 2 times or more times, if so, can be according to business access chain It connects information and determines the call relation with the service equipment and destination service equipment that call direction.Such as a business access link letter It include IP1, port 1, IP2 and port 2 in breath, when the number of statistics IP2 and the appearance of port 2 are greater than preset times, it is known that IP2 For the IP address of destination service equipment, port 2 is the calling serve port of destination service equipment, and IP1 is the machine of service equipment IP address, port 1 is the native call port of service equipment, so that it is determined that having the service equipment and destination service for calling direction The call relation of equipment.Further, according to having the call relation for calling direction, service equipment can be constructed and closed with having calling Call relation topological diagram between other service equipments of system, and call relation topological diagram has directionality, is directed acyclic graph.
The destination service facility information list that service equipment is safeguarded can be carried out based on obtained call relation topological diagram It updates.Destination service facility information list includes the IP address of destination service equipment.Specifically, according to call relation topological diagram In calling direction, can determine the IP address for the destination service equipment that service equipment calls, and then by destination service equipment IP address is updated in destination service facility information list.By such as by the IP address in original destination service facility information list It deletes, newly determining IP address is being added to the mode in destination service facility information list, is ensureing destination service equipment letter IP address timely updates in breath list.When exist newly increase destination service equipment when, by the above-mentioned means, can automatically by The IP address for newly increasing destination service equipment is updated in destination service facility information list;When some offline destination service of needs When equipment, by the above-mentioned means, offline target clothes can be automatically removed to from destination service facility information list The IP address etc. for equipment of being engaged in reduces the manually service to destination service facility information list, and avoiding manual operation may The leakage of appearance adds, leaks the problem of deleting.
Step S103, each destination service equipment for periodically including into destination service facility information list send ping and connect Request is connect, network communication monitoring is carried out according to ping connection response, obtains network communication state.
After determining destination service facility information list, that is, each network communication channel that needs are monitored is determined. Ping connection is sent by each destination service equipment for including into destination service facility information list from service equipment timing Request, can detect the connection situation of network communication channel between the two.According in destination service facility information list The IP address of destination service equipment sends ping connection request, root from service equipment timing to the IP address of destination service equipment According to information such as the response time of ping connection response, packet loss, such as the response time of the IP address of certain destination service equipment 960ms, packet loss 0% can determine the connection of service equipment and the network communication channel of the destination service equipment;Certain target The response time time-out of the IP address of service equipment, packet loss 100% can determine service equipment and the destination service equipment Network communication channel there are failures.According to the various of ping connection response as a result, completing to monitor network communication, network is obtained The various situations of communication.
The network communication monitoring method provided according to the present invention, the local profile of reading service equipment are matched from local Set acquisition business access link information in file;According to business access link information construct service equipment and other service equipments it Between call relation topological diagram, and based on call relation topological diagram update service equipment maintenance destination service facility information column Table;Each destination service equipment that timing includes into destination service facility information list sends ping connection request, according to Ping connection response carries out network communication monitoring, obtains network communication state.By the invention it is possible to be linked according to business access Call relation topological diagram between information architecture service equipment and other service equipments closes to get to the calling between service equipment System.It include with service equipment there is the destination service of call relation to set in the destination service facility information list obtained in this way It is standby, it specifies the network channel for needing to be monitored to it, more targetedly the network that needs are monitored can be led to Road is monitored, and reduces the influence to resource occupying.Further, since call relation topological diagram and destination service equipment are believed Breath list can construct generation by the multiple business access link informations obtained automatically, and business access link information can basis Service equipment actual operating state obtains, and whole process greatly reduces manual intervention, reduces cost of labor, so that monitoring is handled It is more efficient.
Embodiment two
Fig. 2 shows the flow charts of according to embodiments of the present invention two network communication monitoring method, as shown in Fig. 2, network Communication monitoring method includes the following steps:
Step S201 starts first timer.
There are online situations such as updating or is offline, mutual calling for each service equipment, destination service equipment in network Relationship is not forever unalterable.Therefore, the present embodiment establishes first timer, can periodically more by first timer Call relation between new demand servicing equipment and other service equipments, updating maintenance destination service facility information list.First timing The timing of device can be arranged according to performance, and such as 5 minutes.First timer is by the monitoring that starts in each service equipment The process of unit manages.
Step S202, judges whether the timing of first timer reaches.
After starting first timer, first timer is monitored, when the timing for judging first timer arrives After reaching, step S203 can be performed, otherwise, continue waiting for until the timing of first timer reaches.
Step S203 obtains business access link information.
After the timing of first timer reaches, obtained in the way of reading virtual file or using command mode A plurality of business access link information is summarized.
Step S204 constructs the call relation between service equipment and other service equipments according to business access link information Topological diagram, and the destination service facility information list that service equipment is safeguarded is updated based on call relation topological diagram.
Statistics obtains the call relation of service equipment Yu destination service equipment from business access link information, according to calling Relationship constructs the call relation topological diagram between service equipment and other service equipments, obtains the service equipment for needing to be monitored Network communication relationship between other service equipments.
Based on call relation topological diagram, the IP address of destination service equipment is updated to destination service facility information list, Keep the accuracy of destination service facility information list.
Step S205 starts second timer.
The state meeting real-time change of network communication, therefore the monitoring of network communication is also required to carry out in real time.This implementation The second timer established in example can will be set as 1 minute, i.e., carry out one-time detection to network communication within every 1 minute the time.The Two timers and network communication status close relation, it is proposed that the setting short period is best.Second timer is by each service equipment The process of the monitoring unit of middle starting manages.
Step S206, judges whether the timing of second timer reaches.
After starting second timer, second timer is monitored, when the timing for judging second timer arrives After reaching, step S207 can be performed, otherwise, continue waiting for until the timing of second timer reaches.
Step S207, each destination service equipment for including into destination service facility information list send ping connection and ask It asks, network communication monitoring is carried out according to ping connection response, obtains network communication state.
After the timing of second timer reaches, by service equipment according to destination service facility information list, Xiang Qi In each destination service equipment IP address send ping connection request.Ping connection request can once send it is multiple, such as 30, according to information such as response time, the packet loss of multiple ping connection responses, it can determine network communication shape between the two Condition.
In first time starting first timer and second timer, it need to first start first timer, to establish target clothes Business facility information list, starts second timer later, the list of destination service facility information is based on, to destination service facility information The each destination service equipment for including in list sends ping connection request, carries out network communication prison according to ping connection response Control obtains network communication state.The starting of first timer and second timer can be arranged according to performance later, open simultaneously Dynamic or successively starting, or started according to different timings, to execute the step of its correspondence.It is not construed as limiting herein.
Step S208 generates network communication state report according to ping connection response.
Network communication state be managed, monitor to be more convenient, can also according to response time of ping connection response, The information such as packet loss generate the network communication state report of various time points, facilitate administrator according to network communication state report, The root that the problems such as understanding real-time network communication situation, lookup causes network failure generates.
Step S209, judges whether ping connection response meets preset alarm strategy.
When network communication state is there are when network failure, needing in time to repair network communication state, in order to avoid influence Each service call, service offer etc..When being monitored to network communication, response time, packet loss based on ping connection response The information such as rate are judged, when judging that ping connection response meets preset alarm strategy, are executed step S210, are alarmed Processing.
Preset alarm strategy is arranged according to performance, when being more than preset alarm such as the response time of ping connection response Between, the packet loss of ping connection response be greater than default packet loss etc..Further, different alert levels can also be set, to not Different preset alarm strategies is arranged in same alert levels.According to the severity of ping connection response, alert levels, packet are set Include such as level-one, second level, three-level.
Step S210 carries out alert process.
Alert process may include as alarmed by mail notification, in mail record need to alarm the service equipment that is related to Destination service facility information, alert levels etc.;Or it is directly displayed by display screen and needs the service equipment and mesh being related to of alarming Mark service device information, alert levels etc..Alert process can also include establishing alarm queue, be arranged according to alert levels and alarmed Queue sequence, convenient alarm priority processing higher to alert levels etc..
Step S208 and step S209, S210 are optional step, according to performance, select one of execution or whole It executes, so as to cope with the problem in network communication, failure etc. in time, is repaired in time, Logistics networks communication It is connected to, is smooth, each service equipment is allow to be supplied to the better service quality of user.The execution of step S208 and step S209 are suitable Sequence can be arranged according to performance, herein without limitation.
The network communication monitoring method provided according to the present invention updates service equipment maintenance by first timer timing Destination service facility information list, guarantee destination service facility information list and the network communication channel phase for currently needing to monitor Symbol, the network channel that can be more targetedly monitored to needs are monitored, and avoid generating mass-sending inside whole network To the waste of resource occupying caused by ping connection request.And call relation topological diagram and destination service facility information list Generation can be constructed automatically by the multiple business access link informations obtained, and business access link information can be according to clothes Business equipment actual operating state obtains, and whole process greatly reduces manual intervention, reduces cost of labor, so that monitoring processing is imitated Rate is higher.Second timer has ensured can be in real time to the monitoring of network communication state, so as to find network communication in time Failure that may be present, problem in situation, and network communication state report is further generated, or judge according to ping connection response Whether preset alarm strategy is met, it is convenient to be solved in time because being serviced caused by network communication state so as to timely alert process Problem etc..
Embodiment three
The embodiment of the present application three provides a kind of nonvolatile computer storage media, computer storage medium be stored with to The network communication monitoring side in above-mentioned any means embodiment can be performed in a few executable instruction, the computer executable instructions Method.
Executable instruction specifically can be used for so that processor executes following operation:
Obtaining step obtains business access link information;Construction step constructs service according to business access link information and sets The standby call relation topological diagram between other service equipments, and the mesh that service equipment is safeguarded is updated based on call relation topological diagram Mark service device information list;Monitoring step, each destination service for periodically including into destination service facility information list are set Preparation send ping connection request, carries out network communication monitoring according to ping connection response, obtains network communication state.
In a kind of optional embodiment, business access link information includes the local IP address of service equipment, service The native call port of equipment, the IP address of destination service equipment and/or destination service equipment calling serve port.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: statistical service Access the number for calling serve port to occur of the IP address and destination service equipment of same target service equipment in link information; Whether the number that the calling serve port of the IP address and destination service equipment that judge destination service equipment occurs is greater than default time Number;If so, determining has the call relation of the service equipment and destination service equipment that call direction;Direction is called according to having Call relation constructs the call relation topological diagram between service equipment and other service equipments with call relation.
In a kind of optional embodiment, destination service facility information list includes the IP address of destination service equipment; Executable instruction further makes processor execute following operation: according to the calling direction in call relation topological diagram, determining service The IP address of the destination service equipment of equipment calls.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: starting first Timer;When the timing of first timer reaches, obtaining step and construction step are executed;Start second timer;When When the timing of second timer reaches, monitoring step is executed.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: according to ping Connection response generates network communication state report.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: judging ping Whether connection response meets preset alarm strategy;If so, carrying out alert process.
Example IV
Fig. 3 shows the structural schematic diagram of according to embodiments of the present invention four a kind of electronic equipment, present invention specific implementation Example does not limit the specific implementation of electronic equipment.
As shown in figure 3, the electronic equipment may include: processor (processor) 302, communication interface (Communications Interface) 304, memory (memory) 306 and communication bus 308.
Wherein:
Processor 302, communication interface 304 and memory 306 complete mutual communication by communication bus 308.
Communication interface 304, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 302 can specifically execute in above-mentioned network communication monitoring method embodiment for executing program 310 Correlation step.
Specifically, program 310 may include program code, which includes computer operation instruction.
Processor 302 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that server includes can be same type of processor, such as one or more CPU;It can also be with It is different types of processor, such as one or more CPU and one or more ASIC.
Memory 306, for storing program 310.Memory 306 may include high speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 310 specifically can be used for so that processor 302 executes following operation:
In a kind of optional embodiment, program 310 is used for so that processor 302 executes following operation: obtaining step, Obtain business access link information;Construction step constructs service equipment and other service equipments according to business access link information Between call relation topological diagram, and based on call relation topological diagram update service equipment maintenance destination service facility information column Table;Monitoring step, each destination service equipment for periodically including into destination service facility information list send ping connection and ask It asks, network communication monitoring is carried out according to ping connection response, obtains network communication state.
In a kind of optional embodiment, business access link information includes the local IP address of service equipment, service The native call port of equipment, the IP address of destination service equipment and/or destination service equipment calling serve port.
In a kind of optional embodiment, program 310 is used for so that in 302 statistical service of processor access link information The IP address of same target service equipment and the number for calling serve port to occur of destination service equipment;Judge that destination service is set Whether the number that the calling serve port of standby IP address and destination service equipment occurs is greater than preset times;If so, determining tool There is the call relation of the service equipment and destination service equipment that call direction;According to having the call relation for calling direction, construct Call relation topological diagram between service equipment and other service equipments with call relation.
In a kind of optional embodiment, destination service facility information list includes the IP address of destination service equipment; Program 310 is used for so that processor 302 determines the target that service equipment calls according to the calling direction in call relation topological diagram The IP address of service equipment.
In a kind of optional embodiment, program 310 is used for so that processor 302 starts first timer;When first When the timing of timer reaches, obtaining step and construction step are executed;Start second timer;When determining for second timer When the time reach when, execute monitoring step.
In a kind of optional embodiment, program 310 is used for so that processor 302 generates net according to ping connection response Network communication conditions report.
In a kind of optional embodiment, program 310 is used for so that processor 302 judges whether ping connection response is full The preset alarm strategy of foot;If so, carrying out alert process.
The specific implementation of each step may refer in the corresponding steps in above-mentioned network communication monitoring embodiment in program 310 Corresponding description, this will not be repeated here.It is apparent to those skilled in the art that for convenience and simplicity of description, The equipment of foregoing description and the specific work process of module, can refer to corresponding processes in the foregoing method embodiment description, This is repeated no more.
The scheme provided through this embodiment obtains business access link information;It is constructed according to business access link information Call relation topological diagram between service equipment and other service equipments, and service equipment dimension is updated based on call relation topological diagram The destination service facility information list of shield;Each destination service equipment hair that timing includes into destination service facility information list Ping connection request is sent, network communication monitoring is carried out according to ping connection response, obtains network communication state.Through the invention, The call relation topological diagram between service equipment and other service equipments can be constructed according to business access link information to get arriving Call relation between service equipment.It include having to call with service equipment in the destination service facility information list obtained in this way The destination service equipment of relationship, specifies the network channel for needing to be monitored to it, can be more targetedly to needs The network channel being monitored is monitored, and reduces the influence to resource occupying.Further, due to call relation topological diagram With the list of destination service facility information generation can be constructed automatically by the multiple business access link informations obtained, and business is visited Ask that link information can be obtained according to service equipment actual operating state, whole process greatly reduces manual intervention, reduces people Work cost, so that monitoring treatment effeciency is higher.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself Separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.The use of word first, second, and third does not indicate any sequence.These words can be construed to title.

Claims (21)

1. a kind of network communication monitoring method, the method is run by the monitoring unit started in each service equipment, described Method includes:
Obtaining step obtains business access link information;Wherein, the acquisition business access link information passes through reading system certainly The dynamic virtual file generated obtains or is inquired to obtain using connection status of the command mode to each service equipment;
Construction step constructs the calling between the service equipment and other service equipments according to the business access link information Relationship topology figure, and arranged based on the destination service facility information that the call relation topological diagram updates the service equipment maintenance Table;
Monitoring step, each destination service equipment for periodically including into the destination service facility information list send ping and connect Request is connect, network communication monitoring is carried out according to ping connection response, obtains network communication state.
2. according to the method described in claim 1, wherein, the business access link information includes the machine IP of service equipment The calling service of location, the native call port of the service equipment, the IP address of destination service equipment and/or destination service equipment Port.
3. according to the method described in claim 2, wherein, the construction step further comprises:
Count the calling clothes of the IP address and destination service equipment of same target service equipment in the business access link information The number that business port occurs;
Whether the number for calling serve port to occur of the IP address and destination service equipment that judge the destination service equipment is big In preset times;
If so, determining has the call relation of the service equipment and destination service equipment that call direction;
According to have call direction call relation, construct the service equipment with call relation other service equipments it Between call relation topological diagram.
4. method according to any one of claim 1-3, wherein the destination service facility information list includes target The IP address of service equipment;
The construction step further comprises:
According to the calling direction in call relation topological diagram, the IP address for the destination service equipment that service equipment calls is determined.
5. method according to any one of claim 1-3, wherein the method also includes: starting first timer;
When the timing of the first timer reaches, the obtaining step and the construction step are executed;
The method also includes: starting second timer;
When the timing of the second timer reaches, the monitoring step is executed.
6. according to the method described in claim 1, wherein, the monitoring step further comprises:
Network communication state report is generated according to the ping connection response.
7. according to the method described in claim 1, wherein, the monitoring step further comprises:
Judge whether the ping connection response meets preset alarm strategy;
If so, carrying out alert process.
8. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute following behaviour for storing an at least executable instruction, the executable instruction Make:
Obtaining step obtains business access link information;Wherein, the acquisition business access link information passes through reading system certainly The dynamic virtual file generated obtains or is inquired to obtain using connection status of the command mode to each service equipment;
Construction step constructs the calling between the service equipment and other service equipments according to the business access link information Relationship topology figure, and arranged based on the destination service facility information that the call relation topological diagram updates the service equipment maintenance Table;
Monitoring step, each destination service equipment for periodically including into the destination service facility information list send ping and connect Request is connect, network communication monitoring is carried out according to ping connection response, obtains network communication state.
9. electronic equipment according to claim 8, the business access link information includes the machine IP of service equipment The calling service of location, the native call port of the service equipment, the IP address of destination service equipment and/or destination service equipment Port.
10. electronic equipment according to claim 9, the executable instruction further makes the processor execute following behaviour Make:
Count the calling clothes of the IP address and destination service equipment of same target service equipment in the business access link information The number that business port occurs;
Whether the number for calling serve port to occur of the IP address and destination service equipment that judge the destination service equipment is big In preset times;
If so, determining has the call relation of the service equipment and destination service equipment that call direction;
According to have call direction call relation, construct the service equipment with call relation other service equipments it Between call relation topological diagram.
11. the electronic equipment according to any one of claim 8-10, the destination service facility information list includes mesh Mark the IP address of service equipment;
The executable instruction further makes the processor execute following operation:
According to the calling direction in call relation topological diagram, the IP address for the destination service equipment that service equipment calls is determined.
12. the electronic equipment according to any one of claim 8-10, the executable instruction further make the processing Device executes following operation:
Start first timer;
When the timing of the first timer reaches, the obtaining step and the construction step are executed;
Start second timer;
When the timing of the second timer reaches, the monitoring step is executed.
13. electronic equipment according to claim 8, the executable instruction further makes the processor execute following behaviour Make:
Network communication state report is generated according to the ping connection response.
14. electronic equipment according to claim 8, the executable instruction further makes the processor execute following behaviour Make:
Judge whether the ping connection response meets preset alarm strategy;
If so, carrying out alert process.
15. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium Processor is set to execute following operation:
Obtaining step obtains business access link information;Wherein, the acquisition business access link information passes through reading system certainly The dynamic virtual file generated obtains or is inquired to obtain using connection status of the command mode to each service equipment;
Construction step constructs the calling between the service equipment and other service equipments according to the business access link information Relationship topology figure, and arranged based on the destination service facility information that the call relation topological diagram updates the service equipment maintenance Table;
Monitoring step, each destination service equipment for periodically including into the destination service facility information list send ping and connect Request is connect, network communication monitoring is carried out according to ping connection response, obtains network communication state.
16. computer storage medium according to claim 15, the business access link information includes service equipment Local IP address, the native call port of the service equipment, the IP address of destination service equipment and/or destination service equipment Call serve port.
17. computer storage medium according to claim 16, the executable instruction further execute processor with Lower operation:
Count the calling clothes of the IP address and destination service equipment of same target service equipment in the business access link information The number that business port occurs;
Whether the number for calling serve port to occur of the IP address and destination service equipment that judge the destination service equipment is big In preset times;
If so, determining has the call relation of the service equipment and destination service equipment that call direction;
According to have call direction call relation, construct the service equipment with call relation other service equipments it Between call relation topological diagram.
18. computer storage medium described in any one of 5-17 according to claim 1, the destination service facility information list IP address including destination service equipment;
The executable instruction further makes processor execute following operation:
According to the calling direction in call relation topological diagram, the IP address for the destination service equipment that service equipment calls is determined.
19. computer storage medium described in any one of 5-17 according to claim 1, the executable instruction further makes to locate It manages device and executes following operation:
Start first timer;
When the timing of the first timer reaches, the obtaining step and the construction step are executed;
Start second timer;
When the timing of the second timer reaches, the monitoring step is executed.
20. computer storage medium according to claim 15, the executable instruction further execute processor with Lower operation:
Network communication state report is generated according to the ping connection response.
21. computer storage medium according to claim 15, the executable instruction further execute processor with Lower operation:
Judge whether the ping connection response meets preset alarm strategy;
If so, carrying out alert process.
CN201811037534.6A 2018-09-06 2018-09-06 Network communication monitoring method, electronic equipment, storage medium Active CN109039773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811037534.6A CN109039773B (en) 2018-09-06 2018-09-06 Network communication monitoring method, electronic equipment, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811037534.6A CN109039773B (en) 2018-09-06 2018-09-06 Network communication monitoring method, electronic equipment, storage medium

Publications (2)

Publication Number Publication Date
CN109039773A CN109039773A (en) 2018-12-18
CN109039773B true CN109039773B (en) 2019-08-09

Family

ID=64623761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811037534.6A Active CN109039773B (en) 2018-09-06 2018-09-06 Network communication monitoring method, electronic equipment, storage medium

Country Status (1)

Country Link
CN (1) CN109039773B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213128B (en) * 2019-05-28 2020-06-05 掌阅科技股份有限公司 Service port detection method, electronic device and computer storage medium
CN112434819B (en) * 2019-08-09 2023-09-05 中国移动通信集团浙江有限公司 Service guarantee method and device
CN110830325B (en) * 2019-11-05 2021-05-14 北京云杉世纪网络科技有限公司 Adaptive network bypass path network flow direction speculation method and system
CN112346622A (en) * 2020-10-12 2021-02-09 视联动力信息技术股份有限公司 Terminal control method and device, terminal equipment and storage medium
CN112511371A (en) * 2020-10-29 2021-03-16 中国农业银行股份有限公司福建省分行 Method, device, equipment and medium for monitoring wide area network communication line
CN114039860B (en) * 2021-11-03 2023-10-31 厦门市美亚柏科信息股份有限公司 Method and system for quickly constructing server network topology graph
CN115604135B (en) * 2022-11-28 2023-03-31 广州市千钧网络科技有限公司 Service monitoring method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102782673A (en) * 2010-02-26 2012-11-14 国际商业机器公司 System and method for object migration waves
CN103248512A (en) * 2012-02-14 2013-08-14 腾讯科技(深圳)有限公司 Method and system for generating topological structure of application layer in communication network
CN106686027A (en) * 2015-11-06 2017-05-17 北京京东尚科信息技术有限公司 HTTP-based SOA service calling arrangement method and system
CN107016087A (en) * 2017-04-05 2017-08-04 杭州铭师堂教育科技发展有限公司 Hierarchical database high-availability system based on sentry's model

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102782673A (en) * 2010-02-26 2012-11-14 国际商业机器公司 System and method for object migration waves
CN103248512A (en) * 2012-02-14 2013-08-14 腾讯科技(深圳)有限公司 Method and system for generating topological structure of application layer in communication network
CN106686027A (en) * 2015-11-06 2017-05-17 北京京东尚科信息技术有限公司 HTTP-based SOA service calling arrangement method and system
CN107016087A (en) * 2017-04-05 2017-08-04 杭州铭师堂教育科技发展有限公司 Hierarchical database high-availability system based on sentry's model

Also Published As

Publication number Publication date
CN109039773A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN109039773B (en) Network communication monitoring method, electronic equipment, storage medium
US10587475B2 (en) Network discovery optimization using supplemental information published by devices
CN106888233B (en) Data updating system and method
CN110673941B (en) Migration method of micro-services in multiple computer rooms, electronic equipment and storage medium
CN109286529A (en) A kind of method and system for restoring RabbitMQ network partition
CN110417870A (en) configuration file management method, device, equipment and storage medium
CN106789153A (en) The log recording of self adaptation by all kinds of means of Internet of things system terminal device, output intent and system
US9241007B1 (en) System, method, and computer program for providing a vulnerability assessment of a network of industrial automation devices
CN110311837B (en) Online service availability detection method and device and computer equipment
CN110727589A (en) Test method, device and equipment
CN109495567A (en) A kind of dispositions method of static routing, equipment and system
US20140237088A1 (en) Managing imaging of computing devices
CN105991797B (en) The method and device of mobile terminal network visiting
JP6588544B2 (en) System and computer-readable storage medium and method for rule-based action triggering in a provider network
CN111147605B (en) Service registration method, device and equipment
CN105939345A (en) Management method and device of protocol table item timer
US10938666B2 (en) Network testing simulation
CN111950640B (en) Switch fault processing method and device
CN115580658A (en) Service access method and device, storage medium and electronic equipment
JP5381247B2 (en) Load distribution device, load distribution method, load distribution program, and load distribution system
JP2019140496A (en) Operation device and operation method
CN111669290B (en) Network element management method, management server and storage medium
CN104270431A (en) Method and device for concurrency control
CN115967659A (en) Method and device for checking resource pool equipment
CN114422396A (en) DNS server management method and device, electronic equipment and storage medium

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