CN110460487A - The monitoring method and system of service node, service node - Google Patents

The monitoring method and system of service node, service node Download PDF

Info

Publication number
CN110460487A
CN110460487A CN201910555191.0A CN201910555191A CN110460487A CN 110460487 A CN110460487 A CN 110460487A CN 201910555191 A CN201910555191 A CN 201910555191A CN 110460487 A CN110460487 A CN 110460487A
Authority
CN
China
Prior art keywords
url
check information
service node
file
check
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910555191.0A
Other languages
Chinese (zh)
Other versions
CN110460487B (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201910555191.0A priority Critical patent/CN110460487B/en
Publication of CN110460487A publication Critical patent/CN110460487A/en
Application granted granted Critical
Publication of CN110460487B publication Critical patent/CN110460487B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present embodiments relate to network technique fields, disclose the monitoring method and system, service node of a kind of service node.The monitoring method of service node includes: the check information for receiving an at least service node and sending;Check information includes URL check value corresponding with URL;For each check information, the corresponding trusted check value of URL in check information is obtained, if the corresponding check value of the URL trusted check value corresponding with URL in check information is inconsistent, marks check information;File in the service node for sending labeled check information is handled.In the present invention, can according to each service node send check information to determine whether need the file in the service node is handled, realize in service node file it is automatic monitoring and processing, reduce user download file fail risk.

Description

The monitoring method and system of service node, service node
Technical field
The present embodiments relate to network technique field, in particular to the monitoring method and system, clothes of a kind of service node Business node.
Background technique
Content distributing network (Content Delivery Network, abbreviation CDN) is the content constructed on network Distribution network passes through the load balancing, content distribution, scheduling etc. of central platform by the edge service node for being deployed in various regions Functional module, content needed for obtaining user nearby reduce network congestion, improve user's access response speed and hit rate.
At least there are the following problems in the prior art for inventor's discovery: the edge service node in CDN network can only at present There is provided buffer service for user, occur being held as a hostage distort, disk error the problems such as when, it may appear that the case where cache misses, and And the file of cache misses can be returned to user, cause user to download file failure.
Summary of the invention
The monitoring method and system, service node for being designed to provide a kind of service node of embodiment of the present invention, energy Enough check informations sent according to each service node are to determine whether need to handle the file in the service node, realization Automatic monitoring and processing to file in service node, reduce the risk that user downloads file failure.
In order to solve the above technical problems, embodiments of the present invention provide a kind of monitoring method of service node, application In the monitoring system of service node, method includes: the check information for receiving an at least service node and sending;Check information includes URL check value corresponding with URL;For each check information, the corresponding trusted check value of URL in check information is obtained, if The corresponding check value of URL trusted check value corresponding with URL in check information is inconsistent, marks check information;To transmission File in the service node of labeled check information is handled.
Embodiments of the present invention additionally provide a kind of monitoring method of service node, are applied to service node, method packet It includes: when receiving the access request including URL, generating check information, check information includes URL check value corresponding with URL; Check information is sent to the monitoring system of service node, so that monitoring system obtains the corresponding trusted of URL in check information Check value, if the corresponding check value of the URL trusted check value corresponding with URL in check information is inconsistent, label verification letter Breath, and the file in the service node for sending labeled check information is handled.
Embodiments of the present invention additionally provide a kind of monitoring system of service node, comprising: storage assembly, Content Management Component, and it is connected to the components of data analysis of storage assembly and content management component;Storage assembly is for receiving at least The check information that one service node is sent;Check information includes URL check value corresponding with URL;Components of data analysis for pair In each check information, the corresponding trusted check value of URL in check information is obtained, if the corresponding school URL in check information It is inconsistent to test value trusted check value corresponding with URL, marks check information;Content management component is used for labeled to transmission File in the service node of check information is handled.
In terms of existing technologies, that receive each service node transmission includes URL and this URL couples to embodiment of the present invention The check information for the check value answered;For each check information received, the URL obtained in the check information is corresponding credible Check value is appointed to say if the corresponding check value of the URL trusted check value corresponding with the URL in the check information is inconsistent The corresponding file of URL in the bright check information marks the check information there may be mistake, and to the transmission labeled school The file tested in the service node of information is handled;Can according to each service node send check information to determine whether It needs to handle the file in the service node, realizes the automatic monitoring and processing to file in service node, reduce User downloads the risk of file failure;Further, it is possible to be completed in the case where check value corresponding without source station offer URL The automatic monitoring and processing of file in service node.
In addition, obtaining the corresponding trusted check value of URL, comprising: judge whether is the corresponding file of URL in check information More than preset time;If the corresponding file of URL in check information is less than preset time, the URL for obtaining local cache is corresponding Trusted check value;If the corresponding file of URL in check information is more than preset time, according to the corresponding source the URL of acquisition The corresponding file of URL in standing obtains the corresponding trusted check value of URL.In present embodiment, to the URL in check information Whether corresponding file is more than that preset time is judged, so as in the corresponding trusted verification of the URL for guaranteeing to obtain On the basis of the accuracy of value, avoid repeating to obtain the corresponding file of the URL from source station and calculate the corresponding trusted school the URL Value is tested, performance consumption is reduced.
In addition, check information further includes characterizing whether the corresponding file of URL in check information is more than the expired of preset time Information;Judge whether the corresponding file of the URL in check information is more than preset time, specifically: according to the URL in check information The outdated information of corresponding file judges whether the corresponding file of URL is more than preset time.Present embodiments provide for according to school The outdated information for testing the corresponding file of URL in information judges whether the corresponding file of URL is more than a kind of specific of preset time Implementation.
In addition, before handling the file in the service node for sending labeled check information, further includes: right It is determined in each URL according to the quantity of the quantity of the check information including URL and the labeled check information including URL Whether URL meets preset condition;File in the service node for sending labeled check information is handled, specifically: For each labeled check information, if the URL in check information meets preset condition, to the service section for sending check information File in point is handled.It, being capable of the quantity according to the check information including URL and the quilt including URL in present embodiment The quantity of the check information of label, determines whether URL meets preset condition, can be avoided the labeled school including some URL Test information quantity it is excessive when, the file process of large-scale service node is generated, so as to avoid large-scale Hui Yuan is caused Downloading, and then the service quality of service node is not influenced.
In addition, preset condition be include URL labeled check information quantity divided by the check information including URL The quotient of quantity is less than default accounting threshold value.Present embodiments provide for a kind of particular contents of preset condition.
In addition, the file in the service node for sending labeled check information is handled, specifically: for each Labeled check information handles the corresponding file of URL in check information in the service node for sending check information. Present embodiments provide for a kind of specific realities handled the file in the service node for sending labeled check information Existing mode.
In addition, before generating check information, further includes: judge whether the corresponding file of URL is more than preset time;If The corresponding file of URL is less than preset time, obtains the corresponding check value of URL of local cache, and it is corresponding to generate characterization URL File is less than the outdated information of preset time;If the corresponding file of URL is more than preset time, corresponding according to the URL of acquisition The corresponding file of URL in source station, obtains the corresponding check value of URL, and generating the corresponding file of characterization URL is more than preset time Outdated information;Check information further includes outdated information.In present embodiment, service node is before generating check information, first Whether the corresponding file of URL is more than that preset time is judged, so as to avoid repeating obtaining the corresponding check value of URL, is subtracted The small performance consumption of service node.
In addition, service node is the fringe node of content distributing network;When judging whether the corresponding file of URL is more than default Between, comprising: judge whether the corresponding file of the URL of local cache is more than preset time;If the corresponding file of the URL of local cache It is less than preset time, determines that the corresponding file of URL is less than preset time;If the corresponding file of the URL of local cache is more than When preset time, determine whether the corresponding file of URL is more than preset time by the corresponding source station URL;If corresponding by URL Source station determines that the corresponding file of URL is less than preset time, determines that the corresponding file of URL is less than preset time;If passing through URL Corresponding source station determines that the corresponding file of URL is more than preset time, determines that the corresponding file of URL is more than preset time.This implementation In mode, when service node is the fringe node of content distributing network, provides and judge the corresponding file of the URL of local cache Whether be more than preset time a kind of specific implementation.
In addition, fringe node corresponds to the intermediate node of a content distributing network;It is determined by the corresponding source station URL Before whether the corresponding file of URL is more than preset time, further includes: determine whether the corresponding file of URL surpasses by intermediate node Cross preset time;If determining that the corresponding file of URL is less than preset time by intermediate node corresponding with fringe node, therefrom Intermediate node reacquires the corresponding check value of URL;If intermediate node determines that the corresponding file of URL is more than preset time, into logical Cross the corresponding source station URL determines the step of whether corresponding file of URL is more than preset time;It is determined by the corresponding source station URL Whether the corresponding file of URL is more than preset time, specifically: whether the corresponding file of URL is determined by intermediate node to source station More than preset time.In present embodiment, when determining whether the corresponding file of URL is more than default by the corresponding source station URL Between before, first pass through corresponding intermediate node and determine whether the corresponding file of URL is more than preset time, avoid passing through every time The corresponding source station URL determines whether the corresponding file of URL is more than preset time, reduces the pressure of source station.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 is the monitoring of the service node of the monitoring method application of the service node in first embodiment according to the present invention The block diagram of system;
Fig. 2 is the specific flow chart of the monitoring method of the service node in first embodiment according to the present invention;
Fig. 3 is the specific flow chart of the monitoring method of the service node in second embodiment according to the present invention;
Fig. 4 is the specific flow chart of the monitoring method of the service node in third embodiment according to the present invention;
Fig. 5 is the specific flow chart of the monitoring method of the service node in the 4th embodiment according to the present invention;
Fig. 6 is the specific flow chart of the monitoring method of the service node in the 5th embodiment according to the present invention;
Fig. 7 is the specific flow chart of the monitoring method of the service node in sixth embodiment according to the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details And various changes and modifications based on the following respective embodiments, the application technical solution claimed also may be implemented.
The first embodiment of the present invention is related to a kind of monitoring methods of service node, the monitoring system applied to service node System, referring to FIG. 1, the monitoring system of service node includes storage assembly 1, content management component 2, and is connected to storage The components of data analysis 3 of component 1 and content management component 2.It should be noted that the monitoring side of the service node of present embodiment Method includes edge with CDN network in the present embodiment and embodiment later for being monitored to the node in CDN network It is illustrated for node, and intermediate node corresponding with fringe node, so without being limited thereto, CDN network can also only include Fringe node.
The detailed process of the monitoring method of the service node of present embodiment is as shown in Figure 2.
Step 101, the check information that an at least service node is sent is received;Check information includes the school corresponding with URL URL Test value;
Specifically, service node 4 can be the fringe node or intermediate node of CDN network, when service node 4 is side When edge node, it is corresponding to obtain URL in the access request of the URL sent by electronic equipment for receiving user for fringe node File, and calculate the check value of this document as the corresponding check value of URL, include the URL and URL so as to generate one The check information of corresponding check value;When service node 4 is intermediate node, intermediate node is receiving corresponding edge When the access request including URL of node, the corresponding file of URL is obtained, and the check value for calculating this document is corresponding as URL Check value, so as to generate the check information including URL check value corresponding with the URL.Service node 4 is generating school After testing information, it sending the check information to the storage assembly 1 of monitoring system, storage assembly 1 receives and stores the check information, Storage assembly 1 can be a data storage center server.Wherein, log collector, Neng Gouding are installed in service node 4 When acquire service node 4 access log information, access log information is check information, and access log information is in addition to including It further include IP address, the access time, port, the corresponding source station URL of service node 4 other than URL check value corresponding with URL Address etc., format can be { IP, port, URL, access time, the corresponding check value of URL, source station address }.
In one example, the corresponding check value of URL is the MD5 value of the corresponding file of URL.
Step 102, for each check information, the corresponding trusted check value of URL in check information is obtained, if verification letter The corresponding check value of URL trusted check value corresponding with URL in breath is inconsistent, marks check information.
Specifically, the check information that each service node 4 is sent in the available storage assembly 1 of components of data analysis 3, In In one example, the check information that each service node 4 is sent in a cycle, such as period can be obtained according to the preset period It is every five minutes, then components of data analysis 3 obtains the check information that each service node 4 is sent in this five minutes.For each Check information, components of data analysis 3 first obtain the corresponding trusted check value of the URL in the check information, trusted verification Value is calculated according to the corresponding file of the URL in source station;Again by the check information the corresponding check value of URL with should URL corresponds to trusted check value and compares, and judges whether the two is consistent, if the two is consistent, illustrates the corresponding verification of the URL It is consistent to be worth check value corresponding with the source station URL, that is, sends the file cached in the service node 4 of the check information and source station In it is consistent;Conversely, then illustrate the corresponding check value of the URL with it is inconsistent in source station, that is, send the service section of the check information Inconsistent in the file that caches and source station in point 4, sending the file that the service node 4 of the check information caches, there are problem, marks Remember the check information.In addition, components of data analysis 3 after marking check information, can also send a warning message to hair The operation maintenance personnel of the service node 4 of the check information is given, in order to which operation maintenance personnel carries out malfunction elimination in time.
Step 103, the file in the service node for sending labeled check information is handled.
Specifically, content management component 2 is according to the IP in the check information for each labeled check information Location determines the service node 4 for sending the check information, and handles the file in service node 4;For example, should to sending The service node 4 of check information sends a file process task, and service node 4 is right when receiving this document processing task The file of caching is handled;Such as specific catalogue position is deleted or is moved to by all URL respective files are cached It sets, or reacquires the corresponding file of URL all in source station.
In one example, for each labeled check information, to being verified in the service node 4 for sending check information The corresponding file of URL in information is handled, for example, for each labeled check information, content management component 2 is to hair Give the check information service node 4 send a file process task, file process task include service node 4 IP with URL, service node 4 is when receiving this document processing task, at the corresponding file of URL in file process task Reason, such as delete the corresponding file of URL in the file process task of caching, or to reacquire the URL in source station corresponding File;It is moved in particular category position alternatively, it is also possible to the corresponding file of URL in the file process task by caching, with It carries out checking analysis for operation maintenance personnel.
In terms of existing technologies, that receive each service node transmission includes URL corresponding with the URL to present embodiment The check information of check value;For each check information received, the corresponding trusted school URL in the check information is obtained Value is tested, if the corresponding check value of the URL in check information trusted check value corresponding with the URL is inconsistent, illustrates this The corresponding file of URL in check information marks the check information there may be mistake, and believes the labeled verification is sent File in the service node of breath is handled;It can be according to the check information that each service node is sent to determine whether needs File in the service node is handled, the automatic monitoring and processing of file in service node is realized, reduces user Download the risk of file failure;Further, it is possible to be completed in the case where trusted check value corresponding without source station offer URL The automatic monitoring and processing of file in service node.
Second embodiment of the present invention is related to a kind of monitoring method of service node, and present embodiment is implemented first Whether the improvement on the basis of mode, mainly thes improvement is that: being more than preset time to the corresponding file of URL in check information Judged.
The detailed process of the monitoring method of the service node of present embodiment is as shown in Figure 3.
Wherein, step 201, step 203 are roughly the same with step 101, step 103, and details are not described herein, main difference it It is in step 202 includes following sub-step:
Sub-step 2021 judges whether the corresponding file of the URL in check information is more than default for each check information Time.If so, into sub-step 2022;If it is not, into sub-step 2023.
Specifically, the check information that each service node 4 is sent in the available storage assembly 1 of components of data analysis 3, right In each check information, when components of data analysis 3 first judges whether the corresponding file of URL in the check information is more than default Between, that is, judge whether the corresponding file of the URL is expired, if the corresponding file of the URL is not out of date, into sub-step 2022;If should The corresponding file of URL is out of date, into sub-step 2023.
In one example, when check information further includes that whether the corresponding file of URL is more than default in characterization check information Between outdated information, thus components of data analysis 3 can according to the outdated information of the corresponding file of URL in check information, come Judge whether the corresponding file of URL is more than preset time.
In the present embodiment, service node 4 first judges the corresponding file of the URL when receiving the access request including URL No is more than preset time, that is, judges whether the corresponding file of the URL of local cache is expired;If the URL of local cache is corresponding File it is not out of date, then the corresponding check value of the URL can be obtained from last access log information (check information);If The corresponding file of the URL of local cache is out of date, then needs to reacquire the corresponding file of the URL from source station, and count again Calculate the check value of this document;It is corresponding that URL in a characterization check information is added in service node 4 in the access log information of generation File whether be more than preset time outdated information, such as outdated information be a flag bit, 1 indicate it is out of date, 0 indicate not It is expired.It should be noted that if service node 4 is the access request for receiving the URL for the first time, then needing to obtain from source station should The corresponding file of URL calculates the check value of this document, and generates an access log information;Wherein, the corresponding file of URL is deposited In an effective time, which can be set by source station, can also be set by receiving the service node 4 of this document It is fixed, so that service node 4 can judge whether file is expired according to the effective time of file.
Sub-step 2022 obtains the corresponding trusted check value of URL of local cache.
Specifically, prestoring the corresponding trusted check value of each URL in components of data analysis 3, monitoring system is being established When, monitoring system can obtain the corresponding file of each URL from source station in advance, and calculated respectively according to the corresponding file of each URL The corresponding trusted check value of URL;It is also possible to operation maintenance personnel and directly stores the corresponding trusted of each URL in monitoring system Check value.Components of data analysis 3 determine check information in the corresponding file of URL it is not out of date when, it can be said that bright data analyze The corresponding trusted check value of URL that component 3 caches is still not out of date, and it is corresponding credible that URL is obtained directly from local cache Appoint check value.
It is corresponding credible to obtain URL according to the corresponding file of URL in the corresponding source station the URL of acquisition for sub-step 2023 Appoint check value.
Specifically, prestoring the corresponding trusted check value of each URL in components of data analysis 3, monitoring system is being established When, monitoring system can obtain the corresponding file of each URL from source station in advance, and calculated respectively according to the corresponding file of each URL The corresponding trusted check value of URL;It is also possible to operation maintenance personnel and directly stores the corresponding trusted of each URL in monitoring system Check value.Components of data analysis 3 determine check information in the corresponding file of URL it is out of date when, it can be said that bright data analyze The corresponding trusted check value of URL that component 3 caches is expired, and it is corresponding to reacquire the URL from the corresponding source station the URL File, and recalculate the check value of this document as the corresponding trusted check value of the URL, and updates this URL pairs of caching The trusted check value answered.
Sub-step 2024, if the corresponding check value of the URL trusted check value corresponding with URL in check information is different It causes, marks check information.
Specifically, components of data analysis 3 is corresponding with the URL credible by the corresponding check value of URL in the check information Appoint check value to compare, judge whether the two is consistent, if the two is consistent, illustrates in the corresponding check value of the URL and source station It is consistent, that is, it is consistent with source station to send the file cached in the service node 4 of the check information;Conversely, then illustrating the URL Corresponding check value with it is inconsistent in source station, that is, send in the file cached in the service node 4 of the check information and source station not Unanimously, the file of the caching of service node 4 of the check information is sent there are problem, marks the check information.In addition, data are analyzed Component 3 after marking check information, can also send a warning message to send the check information service node 4 fortune Dimension personnel, in order to which operation maintenance personnel carries out malfunction elimination in time.
Present embodiment for first embodiment, to the corresponding file of URL in check information whether be more than Preset time judged, so as on the basis of the accuracy for the corresponding trusted check value of the URL for guaranteeing to obtain, It avoids repeating to obtain the corresponding file of the URL from source station and calculate the corresponding trusted check value of the URL, reduces performance and disappear Consumption.
Third embodiment of the invention is related to a kind of monitoring method of service node, and present embodiment is in the first embodiment party Improvement on the basis of formula, mainly thes improvement is that: being capable of the quantity according to the check information including URL and the quilt including URL The quantity of the check information of label, determines whether URL meets preset condition.
The detailed process of the monitoring method of the service node of present embodiment is as shown in Figure 4.
Wherein, step 301, step 302 are roughly the same with step 201, step 202, and details are not described herein, main difference it Be in, increase step 303, it is specific as follows:
Step 303, for each URL, according to the quantity of the check information including URL and including the labeled school of URL The quantity for testing information, determines whether URL meets preset condition.
Specifically, components of data analysis 3 can count the corresponding check information of each URL, for each URL, according to packet The quantity and the quantity of the labeled check information including URL for including the check information of URL, determine whether URL meets default item Part, preset condition can be include URL labeled check information quantity divided by including URL check information quantity Quotient is less than default accounting threshold value and determines that the URL meets preset condition when that is, the quotient is less than default accounting threshold value, say at this time There is cache misses situation in the corresponding file of the URL in bright only small part service node 4, and it includes full for entering step 304 pairs and sending File in the service node of the labeled check information of the URL of sufficient preset condition is handled;Conversely, then illustrating major part There is cache misses situation in the corresponding file of the URL in service node 4, then may be components of data analysis 3 between source station Link is problematic, at this time then to operation maintenance personnel alert, if operation maintenance personnel confirmation components of data analysis 3 and source station it Between link it is out of question, or to the corresponding file of the URL is modified in source station after, enter back into step 304 pair transmission include The file met in the service node of the labeled check information of the URL of preset condition is handled.
Sub-step 304, for each labeled check information, if the URL in check information meets preset condition, to hair The file in the service node of check information is sent to be handled.
Specifically, it is roughly the same with the step 103 in first embodiment, it is in place of main difference, labeled Check information in URL when meeting preset condition, then to the file in the service node 4 for sending this check information at Reason, other are repeated no more.
Present embodiment, can be according to the quantity and packet of the check information including URL for first embodiment The quantity for including the labeled check information of URL, determines whether URL meets preset condition, can be avoided the quilt including some URL When the quantity of the check information of label is excessive, the file process of large-scale service node is generated, so as to avoid big rule are caused Mould returns source downloading, and then does not influence the service quality of service node.
Four embodiment of the invention is related to a kind of monitoring method of service node, is applied to service node, service node It can be the fringe node or intermediate node of CDN network.
The detailed process of the monitoring method of the service node of present embodiment is as shown in Figure 5.
Step 401, when receiving the access request including URL, check information is generated, check information includes URL and URL Corresponding check value.
Specifically, fringe node is receiving sending out by electronic equipment for user when service node is fringe node When the access request of the URL sent, the corresponding file of URL is obtained, and calculate the check value of this document as the corresponding verification of URL Value, so as to generate the check information including URL check value corresponding with the URL;When service node is intermediate node When, intermediate node obtains the corresponding file of URL in the access request including URL for receiving corresponding fringe node, And the check value of this document is calculated as the corresponding check value of URL, it include URL corresponding with the URL so as to generate one The check information of check value.Wherein, log collector is installed in service node 4, is capable of the access of timing acquiring service node 4 Log information, access log information are check information, access log information in addition to include URL check value corresponding with URL with Outside, further include IP address, access time, port, the corresponding source station address of URL etc. of service node 4, format can for IP, Port, URL, access time, the corresponding check value of URL, source station address }.
Step 402, check information is sent to the monitoring system of service node, so that monitoring system obtains in check information The corresponding trusted check value of URL, if the corresponding check value of the URL trusted check value corresponding with URL in check information is not Unanimously, check information is marked, and the file in the service node for sending labeled check information is handled.
Specifically, service node 4 after generating check information, sends the check information to the monitoring system of service node System, referring to FIG. 1, the storage assembly 1 of the monitoring system of service node is for receiving and storing the check information, storage assembly 1 It can be a data storage center server.Each service node 4 is sent in the available storage assembly 1 of components of data analysis 3 Check information can obtain the verification that each service node 4 is sent in a cycle according to the preset period in one example Information, such as period are every five minutes, then components of data analysis 3 obtains the verification that each service node 4 is sent in this five minutes Information.For each check information, components of data analysis 3 first obtains the corresponding trusted check value of the URL in the check information, The trusted check value is calculated according to the corresponding file of the URL in source station;It is again that the URL in the check information is corresponding Check value trusted check value corresponding with the URL compare, whether consistent both judge, if the two is consistent, illustrate this The corresponding check value of URL is consistent with source station, that is, sends in the file and source station cached in the service node 4 of the check information It is consistent;Conversely, then illustrate the corresponding check value of the URL with it is inconsistent in source station, that is, send the service node 4 of the check information It is inconsistent in the file of middle caching and source station, the file of the caching of service node 4 of the check information is sent there are problem, and label should Check information.It is somebody's turn to do in addition, components of data analysis 3 after marking check information, can also send a warning message to transmission The operation maintenance personnel of the service node 4 of check information, in order to which operation maintenance personnel carries out malfunction elimination in time.
For each labeled check information, content management component 2 determines hair according to the IP address in the check information The service node 4 of the check information is given, and the file in service node 4 is handled;For example, to the check information is sent Service node 4 sends a file process task, and service node 4 is when receiving this document processing task, to the file of caching It is handled;Such as it all URL respective files will be cached is deleted and be perhaps moved to specific directory location or again Obtain the corresponding file of URL all in source station.
In one example, for each labeled check information, to being verified in the service node 4 for sending check information The corresponding file of URL in information is handled, for example, for each labeled check information, content management component 2 is to hair Give the check information service node 4 send a file process task, file process task include service node 4 IP with URL, service node 4 is when receiving this document processing task, at the corresponding file of URL in file process task Reason, such as delete the corresponding file of URL in the file process task of caching, or to reacquire the URL in source station corresponding File;It is moved in particular category file alternatively, it is also possible to the corresponding file of URL in the file process task by caching, So that operation maintenance personnel carries out checking analysis.
Since first embodiment is corresponded to each other with the present embodiment, the present embodiment can work in coordination reality with first embodiment It applies.The relevant technical details mentioned in first embodiment are still effective in the present embodiment, can reach in the first embodiment Technical effect similarly may be implemented in the present embodiment, in order to reduce repetition, which is not described herein again.Correspondingly, this implementation The relevant technical details mentioned in example are also applicable in first embodiment.
In terms of existing technologies, service node generates present embodiment when receiving the access request including URL Check information including URL check value corresponding with the URL, and send the check information to the monitoring system of service node System, for the monitoring system of service node for each check information received, the URL obtained in the check information is corresponding credible Check value is appointed to say if the corresponding check value of the URL trusted check value corresponding with the URL in the check information is inconsistent The corresponding file of URL in the bright check information marks the check information there may be mistake, and to the transmission labeled school The file tested in the service node of information is handled;Can according to each service node send check information to determine whether It needs to handle the file in the service node, realizes the automatic monitoring and processing of file in service node, reduce User downloads the risk of file failure;Further, it is possible to complete clothes in the case where check value corresponding without source station offer URL The automatic monitoring and processing of file in business node.
Fifth embodiment of the invention is related to a kind of monitoring method of service node, and present embodiment is in the 4th embodiment party Improvement on the basis of formula, mainly thes improvement is that: increase to the corresponding file of URL whether be more than preset time judgement.
The detailed process of the monitoring method of the service node of present embodiment is as shown in Figure 6.
Step 501, when receiving the access request including URL, when judging whether the corresponding file of URL is more than default Between.If it is not, then entering step 502;If so, entering step 503.
Specifically, service node 4 when receiving the access request including URL, first judges that the corresponding file of the URL is no More than preset time, that is, judge whether the corresponding file of the URL of local cache is expired;Wherein, there are one for the corresponding file of URL A effective time, service node 4 set the effective time of this document when obtaining for the first time and caching the corresponding file of the URL; The effective time can be set by source station, can also be set by receiving the service node 4 of this document, thus service node 4 It can be that this is judged according to the effective time of the corresponding file of the URL of caching in the access request for receiving the URL again Whether the corresponding file of URL is expired;If it is not, then entering step 502;If so, entering step 503.Wherein, it needs to illustrate It is, if service node 4 is the access request for receiving the URL for the first time, to need to obtain the corresponding file of the URL from source station, The check value of this document is calculated, and generates an access log information.
Step 502, obtain the corresponding check value of URL of local cache, and generate the corresponding file of characterization URL be less than it is pre- If the outdated information of time.
Specifically, service node 4 is when the corresponding file of the URL for determining local cache is not out of date, from last The corresponding check value of the URL is obtained in access log information (check information), and is generated and characterized the corresponding file of the URL and be less than The outdated information of preset time, which can be a flag bit, such as indicate not out of date with 0.
Step 503, according to the corresponding file of URL in the corresponding source station the URL of acquisition, the corresponding check value of URL is obtained, And generate the outdated information that the corresponding file of characterization URL is more than preset time.
Specifically, service node 4 is then needed when the corresponding file of the URL for determining local cache is out of date from source It stands and reacquires the corresponding file of the URL, and recalculate the check value of this document, as the corresponding check value of the URL;Then The outdated information that the corresponding file of characterization URL is more than preset time is generated, which can be a flag bit, such as with 1 indicates out of date.
Step 504, check information is generated, check information includes the corresponding check value of URL, URL and outdated information.
Specifically, a characterization verification letter is added in service node 4 in the access log information (check information) of generation In breath the corresponding file of URL whether be more than preset time outdated information, access log information format be IP, port, URL, visit It asks the time, the corresponding check value of URL, source station address, outdated information }.
Step 505, check information is sent to the monitoring system of service node, so that monitoring system obtains in check information The corresponding trusted check value of URL, if the corresponding check value of the URL trusted check value corresponding with URL in check information is not Unanimously, check information is marked, and the file in the service node for sending labeled check information is handled.
Specifically, this step is roughly the same with the step 402 in fourth embodiment, it is in place of main difference: verification Information further include characterize check information in the corresponding file of URL whether be more than preset time outdated information, thus data analyze Component 3 can be according to the outdated information of the corresponding file of URL in check information, whether to judge the corresponding file of URL More than preset time.Obtaining in advance from source station in components of data analysis 3 has the corresponding file of each URL, and has calculated each URL pairs The check value answered, when the corresponding file of URL is not out of date in determining check information, it can be said that bright components of data analysis 3 caches URL respective file it is still not out of date, the corresponding trusted check value of URL is obtained directly from local cache;Determining to verify When the corresponding file of URL is out of date in information, it can be said that the URL respective file that bright components of data analysis 3 caches is expired, The corresponding file of the URL is reacquired from the corresponding source station the URL, and recalculates the check value of this document, updates the URL's Trusted check value.
Since second embodiment is corresponded to each other with the present embodiment, the present embodiment can work in coordination reality with second embodiment It applies.The relevant technical details mentioned in second embodiment are still effective in the present embodiment, can reach in a second embodiment Technical effect similarly may be implemented in the present embodiment, in order to reduce repetition, which is not described herein again.Correspondingly, this implementation The relevant technical details mentioned in example are also applicable in second embodiment.
Present embodiment is for the 4th embodiment, and service node is before generating check information, first to URL pairs Whether the file answered is more than that preset time is judged, so as to avoid repeating according in the corresponding source station URL of acquisition The corresponding file of URL obtains the corresponding check value of URL, reduces the performance consumption of service node.
Sixth embodiment of the invention is related to a kind of monitoring method of service node, and present embodiment is in the 5th embodiment party Refinement on the basis of formula, main refinement place are: when service node is the fringe node of content distributing network, providing and sentence The corresponding file of URL of disconnected local cache whether be more than preset time a kind of specific implementation.
The detailed process of the monitoring method of the service node of present embodiment is as shown in Figure 7.Section is serviced in present embodiment Point 4 is the fringe node of content distributing network, and fringe node corresponds to the intermediate node of a content distributing network.
Wherein, step 602 is roughly the same to step 505 with step 502 to step 605, and details are not described herein, main difference Place is, step 601, including following sub-step:
Sub-step 6011 judges whether the corresponding file of the URL of local cache is more than preset time.If so, entering son Step 6012;If it is not, then entering step 602.
Specifically, fringe node is when receiving the access request of certain URL for the first time, fringe node and it is corresponding in Without the corresponding file of the URL in intermediate node, intermediate node corresponds to source station from the URL and obtains the corresponding source station acquisition of the URL The corresponding file of the URL is cached, and sends fringe node for the cache file, and fringe node caches this document, and raw At access log information;In addition, intermediate node can also calculate the check value of this document when obtaining the corresponding file of the URL, and Generate an access log information.
Fringe node judges that the corresponding file of the URL of local cache is when receiving the access request of the URL again No is more than preset time, that is, judges whether the URL respective file is expired, if it is determined that the corresponding file of the URL is out of date, into son Step 6012;Conversely, then illustrating that the corresponding file of the URL of local cache is not out of date, 602 are entered step, obtains local cache The corresponding check value of URL, i.e., using check value in last access log information as the URL in this access log information Corresponding check value, and the corresponding file of characterization URL is added in this access log information and is less than the expired of preset time Information.
Sub-step 6012 determines whether the corresponding file of URL is more than preset time by intermediate node.If so, into Sub-step 6013;If it is not, then entering sub-step 6014.
Specifically, fringe node determines whether the corresponding file of URL is more than default by corresponding intermediate node Time, intermediate node judge whether the corresponding file of the URL of local cache is more than preset time, that is, judge the corresponding text of the URL Whether part is expired, if it is determined that the corresponding file of the URL is out of date, into sub-step 6013;If it is determined that the corresponding file of the URL is not It is expired, then enter sub-step 6014.
Sub-step 6013 determines whether the corresponding file of URL is more than preset time by intermediate node to source station.If so, Then enter step 603;If it is not, then entering step 602.
Specifically, intermediate node determines whether the corresponding file of the URL is more than preset time to the corresponding source station URL, If determining that the corresponding file of URL alreadys exceed preset time by source station, it is corresponding that intermediate node obtains the URL from source station again File is cached, and sends fringe node for the file of reacquisition, and fringe node caches this document, and recalculates this The check value of file, using the check value recalculated as the corresponding check value of the URL in the access log information that this is generated, And the outdated information that the corresponding file of characterization URL is less than preset time is added in this access log information.In addition, intermediate Node can also calculate the check value of this document, the verification that will be recalculated in the corresponding file of the URL that caching reacquires It is worth the corresponding check value of the URL in the access log information generated as this, and table is added in this access log information The corresponding file of sign URL is less than the outdated information of preset time.
Sub-step 6014 reacquires the corresponding check value of URL from intermediate node.
Specifically, fringe node is when determining that the corresponding file of URL is less than default by corresponding intermediate node Between when, the corresponding file of the URL of its local cache is sent fringe node by intermediate node, and fringe node caches this document, And the check value of this document is recalculated, using the check value recalculated as the URL in the access log information that this is generated Corresponding check value, and the expired letter that the corresponding file of characterization URL is more than preset time is added in this access log information Breath.
Since second embodiment is corresponded to each other with the present embodiment, the present embodiment can work in coordination reality with second embodiment It applies.The relevant technical details mentioned in second embodiment are still effective in the present embodiment, can reach in a second embodiment Technical effect similarly may be implemented in the present embodiment, in order to reduce repetition, which is not described herein again.Correspondingly, this implementation The relevant technical details mentioned in example are also applicable in second embodiment.
Present embodiment is for the 5th embodiment, in the fringe node that service node is content distributing network When, provide judge the corresponding file of the URL of local cache whether be more than preset time a kind of specific implementation.
Seventh embodiment of the invention is related to a kind of monitoring system of service node, referring to FIG. 1, the monitoring of service node System includes storage assembly 1, content management component 2, and is connected to the data of storage assembly 1 Yu content management component 2 Analytic unit 3.It should be noted that the monitoring system of the service node of present embodiment be used for the node in CDN network into Row monitoring includes fringe node with CDN network, and corresponding with fringe node in the present embodiment and embodiment later It is illustrated for intermediate node, so without being limited thereto, CDN network can also only include fringe node.
Storage assembly 1 is used to receive the check information of at least service node transmission;Check information includes URL and URL couples The check value answered.Specifically, service node 4 can be the fringe node or intermediate node of CDN network, when service node 4 is When fringe node, fringe node obtains URL pairs in the access request of the URL sent by electronic equipment for receiving user The file answered, and the check value for calculating this document includes URL and this as the corresponding check value of URL so as to generate one The check information of the corresponding check value of URL;When service node 4 be intermediate node when, intermediate node receive it is corresponding When the access request including URL of fringe node, the corresponding file of URL is obtained, and calculate the check value of this document as URL pairs The check value answered, so as to generate the check information including URL check value corresponding with the URL.Service node 4 is in life After check information, it sends the check information to the storage assembly 1 of the monitoring system of service node, storage assembly 1 receives simultaneously The check information is stored, storage assembly 1 can be a data storage center server.Wherein, in service node 4 be installed day Will collector is capable of the access log information of timing acquiring service node 4, and access log information is check information, accesses day Will information other than including URL check value corresponding with URL, further include the IP address of service node 4, access time, port, Corresponding source station address of URL etc., format can be { IP, port, URL, access time, URL corresponding check value, source station Location }.
In one example, the corresponding check value of URL is the MD5 value of the corresponding file of URL.
Components of data analysis 3 is used to obtain the corresponding trusted verification of URL in check information for each check information Value marks check information if the corresponding check value of the URL trusted check value corresponding with URL in check information is inconsistent.Tool Body, the check information that each service node 4 is sent in the available storage assembly 1 of components of data analysis 3, in one example, The check information that each service node 4 is sent in a cycle can be obtained according to the preset period, such as the period is every five minutes, Then components of data analysis 3 obtains the check information that each service node 4 is sent in this five minutes.For each check information, number The corresponding trusted check value of the URL in the check information is first obtained according to analytic unit 3, which is according to source station In the URL corresponding file be calculated;It is again that the corresponding check value of URL in the check information is corresponding with the URL credible Appoint check value to compare, judge whether the two is consistent, if the two is consistent, illustrates in the corresponding check value of the URL and source station It is consistent, that is, it is consistent with source station to send the file cached in the service node 4 of the check information;Conversely, then illustrating the URL Corresponding check value with it is inconsistent in source station, that is, send in the file cached in the service node 4 of the check information and source station not Unanimously, the file of the caching of service node 4 of the check information is sent there are problem, marks the check information.In addition, data are analyzed Component 3 after marking check information, can also send a warning message to send the check information service node 4 fortune Dimension personnel, in order to which operation maintenance personnel carries out malfunction elimination in time.
Content management component 2 is used to handle the file in the service node for sending labeled check information.Tool Body, for each labeled check information, content management component 2 is determined and is sent according to the IP address in the check information The service node 4 of the check information, and the file in service node 4 is handled;For example, to the clothes for sending the check information Node 4 of being engaged in sends a file process task, service node 4 when receiving this document processing task, to the file of caching into Row processing;Such as it all URL respective files will be cached is deleted and be perhaps moved to specific directory location or obtain again Take the corresponding file of URL all in source station.
In one example, for each labeled check information, to being verified in the service node 4 for sending check information The corresponding file of URL in information is handled, for example, for each labeled check information, content management component 2 is to hair Give the check information service node 4 send a file process task, file process task include service node 4 IP with URL, service node 4 is when receiving this document processing task, at the corresponding file of URL in file process task Reason, such as delete the corresponding file of URL in the file process task of caching, or to reacquire the URL in source station corresponding File;It is moved in particular category position alternatively, it is also possible to the corresponding file of URL in the file process task by caching, with It carries out checking analysis for operation maintenance personnel.
Since first embodiment, fourth embodiment are corresponded to each other with the present embodiment, the present embodiment can be implemented with first Example, fourth embodiment are worked in coordination implementation.The relevant technical details mentioned in first embodiment, fourth embodiment are in the present embodiment In still effectively, the attainable technical effect of institute in the present embodiment similarly can be in first embodiment, fourth embodiment It realizes, in order to reduce repetition, which is not described herein again.Correspondingly, the relevant technical details mentioned in the present embodiment are also applicable in In first embodiment, fourth embodiment.
In terms of existing technologies, that receive each service node transmission includes URL corresponding with the URL to present embodiment The check information of check value;For each check information received, the corresponding trusted school URL in the check information is obtained Value is tested, if the corresponding check value of the URL in check information trusted check value corresponding with the URL is inconsistent, illustrates this The corresponding file of URL in check information marks the check information there may be mistake, and believes the labeled verification is sent File in the service node of breath is handled;It can be according to the check information that each service node is sent to determine whether needs File in the service node is handled, the automatic monitoring and processing of file in service node is realized, reduces user Download the risk of file failure;Further, it is possible to the case where the source station without each service node provides URL corresponding check value Under, complete the automatic monitoring and processing of file in service node.
Eighth embodiment of the invention is related to a kind of monitoring system of service node, and the 8th embodiment is implemented the 7th Whether the improvement on the basis of mode, mainly thes improvement is that: being more than preset time to the corresponding file of URL in check information Judged.
When URL corresponding file of the components of data analysis 3 in check information is less than preset time, obtain local The corresponding trusted check value of the URL of caching.
When components of data analysis 3 is more than preset time for the corresponding file of URL in check information, according to acquisition The corresponding file of URL in the corresponding source station URL obtains the corresponding trusted check value of URL.
In one example, when check information further includes that whether the corresponding file of URL is more than default in characterization check information Between outdated information;Components of data analysis 3 is used for the outdated information according to the corresponding file of URL in check information, judges URL Whether corresponding file is more than preset time.
Since second embodiment, fourth embodiment, the 5th embodiment are corresponded to each other with the present embodiment, the present embodiment can It works in coordination implementation with second embodiment, fourth embodiment, the 5th embodiment.Second embodiment, fourth embodiment, the 5th implement The relevant technical details mentioned in example are still effective in the present embodiment, in second embodiment, fourth embodiment, the 5th embodiment The middle attainable technical effect of institute similarly may be implemented in the present embodiment, and in order to reduce repetition, which is not described herein again.Accordingly Ground, the relevant technical details mentioned in the present embodiment are also applicable in second embodiment, fourth embodiment, in the 5th embodiment.
Present embodiment for the 7th embodiment, to the corresponding file of URL in check information whether be more than Preset time judged, so as on the basis of the accuracy for the corresponding trusted check value of the URL for guaranteeing to obtain, It avoids repeating to obtain the corresponding file of the URL from source station and calculate the corresponding trusted check value of the URL, reduces performance and disappear Consumption.
9th embodiment of the invention is related to a kind of monitoring system of service node, and the 9th embodiment is real the 7th The improvement on the basis of mode is applied, is mainly theed improvement is that: can be according to the quantity of the check information including URL and including URL Labeled check information quantity, determine whether URL meets preset condition.
Components of data analysis 3 is also used to for each URL, according to the quantity of the check information including URL and including URL The quantity of labeled check information, determines whether URL meets preset condition;Preset condition is the labeled school for including URL The quantity for testing information is less than default accounting threshold value divided by the quotient of the quantity of the check information including URL.
Components of data analysis 3 is used for for each labeled check information, if the URL in check information meets default item Part handles the file in the service node for sending the check information.
Since 3rd embodiment is corresponded to each other with the present embodiment, the present embodiment can work in coordination reality with 3rd embodiment It applies.The relevant technical details mentioned in 3rd embodiment are still effective in the present embodiment, can reach in the third embodiment Technical effect similarly may be implemented in the present embodiment, in order to reduce repetition, which is not described herein again.Correspondingly, this implementation The relevant technical details mentioned in example are also applicable in 3rd embodiment.
For present embodiment is with respect to the 7th embodiment, can according to including URL check information quantity with include The quantity of the labeled check information of URL, determines whether URL meets preset condition, can be avoided being marked including some URL When the quantity of the check information of note is excessive, the file process of large-scale service node is generated, it is extensive so as to avoid causing Return source downloading, and then do not influence the service quality of service node.Present embodiment is also used as on the 8th embodiment basis On improvement, can achieve same technical effect.
Tenth embodiment of the invention is related to a kind of service node, comprising: at least one processor;And at least The memory of one processor communication connection;Wherein, memory is stored with the instruction that can be executed by least one processor, instruction Executed by least one processor so that at least one processor be able to carry out the 4th to any one of sixth embodiment service The monitoring method of node.
Wherein, memory is connected with processor using bus mode, and bus may include the bus of any number of interconnection And bridge, bus is by one or more processors together with the various circuit connections of memory.Bus can also will be such as peripheral Together with various other circuit connections of management circuit or the like, these are all well known in the art for equipment, voltage-stablizer , therefore, it will not be further described herein.Bus interface provides interface between bus and transceiver.Transceiver Can be an element, be also possible to multiple element, such as multiple receivers and transmitter, provide for over a transmission medium with The unit of various other device communications.The data handled through processor are transmitted on the radio medium by antenna, further, Antenna also receives data and transfers data to processor.
Processor is responsible for managing bus and common processing, can also provide various functions, including periodically, peripheral interface, Voltage adjusting, power management and other control functions.And memory can be used for storage processor and execute operation when institute The data used.
Eleventh embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.It calculates Machine program realizes above method embodiment when being executed by processor.
That is, it will be understood by those skilled in the art that implement the method for the above embodiments be can be with Relevant hardware is instructed to complete by program, which is stored in a storage medium, including some instructions are to make It obtains an equipment (can be single-chip microcontroller, chip etc.) or processor (processor) executes each embodiment method of the application All or part of the steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention, And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.

Claims (17)

1. a kind of monitoring method of service node, which is characterized in that applied to the monitoring system of service node, the method packet It includes:
Receive the check information that an at least service node is sent;The check information includes URL verification corresponding with the URL Value;
For each check information, the corresponding trusted check value of URL described in the check information is obtained, if the school The corresponding check value of the URL trusted check value corresponding with the URL tested in information is inconsistent, marks institute State check information;
File in the service node for sending the labeled check information is handled.
2. the monitoring method of service node according to claim 1, which is characterized in that described to obtain described URL pairs The trusted check value answered, comprising:
Judge whether the corresponding file of the URL in the check information is more than preset time;
If the corresponding file of the URL in the check information is less than preset time, described URL pairs of local cache is obtained The trusted check value answered;
If the corresponding file of the URL in the check information is more than preset time, according to the corresponding source the URL of acquisition The corresponding file of the URL in standing obtains the corresponding trusted check value of the URL.
3. the monitoring method of service node according to claim 2, which is characterized in that the check information further includes characterization In the check information the corresponding file of URL whether be more than the preset time outdated information;
Whether the corresponding file of the URL judged in the check information is more than preset time, specifically:
According to the outdated information of the corresponding file of the URL in the check information, the corresponding file of the URL is judged It whether is more than preset time.
4. the monitoring method of service node according to claim 1, which is characterized in that send labeled institute at described pair It states before the file in the service node of check information handled, further includes:
For each URL, according to the quantity of the check information including the URL and being labeled including the URL The check information quantity, determine whether the URL meets preset condition;
The described pair of file sent in the service node of the labeled check information is handled, specifically:
For each labeled check information, if the URL in the check information meets preset condition, to transmission File in the service node of the check information is handled.
5. the monitoring method of service node according to claim 1, which is characterized in that the preset condition be include described The quantity of the labeled check information of URL is less than divided by the quotient of the quantity of the check information including the URL Default accounting threshold value.
6. the monitoring method of service node according to claim 1, which is characterized in that described pair of transmission is labeled described File in the service node of check information is handled, specifically:
For each labeled check information, believe being verified described in the service node for sending the check information The corresponding file of the URL in breath is handled.
7. a kind of monitoring method of service node, which is characterized in that be applied to service node, which comprises
When receiving the access request including URL, check information is generated, the check information includes the URL and the URL Corresponding check value;
The check information is sent to the monitoring system of service node, so that the monitoring system obtains in the check information The corresponding trusted check value of the URL, if the corresponding check value of the URL and the URL in the check information The corresponding trusted check value is inconsistent, marks the check information, and to sending the labeled check information File in the service node is handled.
8. the monitoring method of service node according to claim 1, which is characterized in that the generation check information it Before, further includes:
Judge whether the corresponding file of the URL is more than preset time;
If the corresponding file of the URL is less than preset time, the corresponding check value of the URL of local cache is obtained, And it generates and characterizes the outdated information that the corresponding file of the URL is less than the preset time;
If the corresponding file of the URL is more than preset time, according to described URL pairs in the corresponding source station the URL of acquisition The file answered obtains the corresponding check value of the URL, and it is more than described default for generating the corresponding file of the characterization URL The outdated information of time;The check information further includes the outdated information.
9. the monitoring method of service node according to claim 8, which is characterized in that the service node is content distribution The fringe node of network;
It is described to judge whether the corresponding file of the URL is more than preset time, comprising:
Whether the corresponding file of the URL for judging local cache is more than preset time;
If the corresponding file of the URL of local cache is less than preset time, determine that the corresponding file of the URL is less than institute State preset time;If the corresponding file of the URL of local cache is more than preset time, pass through the corresponding source station the URL Determine whether the corresponding file of the URL is more than the preset time;
If determining that the corresponding file of the URL is less than the preset time by the corresponding source station the URL, described in judgement The corresponding file of URL is less than the preset time;If determining the corresponding file of the URL by the corresponding source station the URL More than the preset time, determine that the corresponding file of the URL is more than preset time.
10. the monitoring method of service node according to claim 9, which is characterized in that the fringe node corresponds to one The intermediate node of a content distributing network;
It is described determine whether the corresponding file of the URL is more than the preset time by the corresponding source station the URL before, Further include: determine whether the corresponding file of the URL is more than the preset time by the intermediate node;
If it is described default to determine that the corresponding file of the URL is less than by the intermediate node corresponding with the fringe node Time reacquires the corresponding check value of the URL from the intermediate node;If the intermediate node determines that the URL is corresponding File be more than the preset time, whether the corresponding file of the URL is determined by the corresponding source station the URL into described The step of more than the preset time;
It is described to determine whether the corresponding file of the URL is more than the preset time by the corresponding source station the URL, specifically Are as follows:
Determine whether the corresponding file of the URL is more than the preset time by the intermediate node to the source station.
11. a kind of monitoring system of service node characterized by comprising storage assembly, content management component, and respectively It is connected to the components of data analysis of the storage assembly Yu the content management component;
The storage assembly is used to receive the check information of at least service node transmission;The check information includes URL and institute State the corresponding check value of URL;
The components of data analysis is used to that it is corresponding to obtain URL described in the check information for each check information Trusted check value, if the corresponding check value of the URL in the check information is corresponding with the URL described credible Appoint check value inconsistent, marks the check information;
The content management component is used to carry out the file in the service node for sending the labeled check information Processing.
12. the monitoring system of service node according to claim 11, which is characterized in that the components of data analysis is used for Judge whether the corresponding file of the URL in the check information is more than preset time;
When the URL corresponding file of the components of data analysis in the check information is less than preset time, Obtain the corresponding trusted check value of the URL of local cache;
When the components of data analysis is more than preset time for the corresponding file of the URL in the check information, root According to the corresponding file of the URL in the corresponding source station the URL of acquisition, the corresponding trusted school the URL is obtained Test value.
13. the monitoring system of service node according to claim 12, which is characterized in that the check information further includes table Levy the corresponding file of URL in the check information whether be more than the preset time outdated information;
The components of data analysis is used for the outdated information according to the corresponding file of the URL in the check information, Judge whether the corresponding file of the URL is more than preset time.
14. the monitoring system of service node according to claim 11, which is characterized in that the components of data analysis is also used For according to the quantity of the check information including the URL and including the labeled of the URL for each URL The check information quantity, determine whether the URL meets preset condition;
The components of data analysis be used for for each labeled check information, in the check information described in When URL meets preset condition, the file in the service node for sending the check information is handled.
15. the monitoring system of service node according to claim 11, which is characterized in that the preset condition be include institute The quantity for stating the labeled check information of URL is small divided by the quotient of the quantity of the check information including the URL In default accounting threshold value.
16. the monitoring system of service node according to claim 11, which is characterized in that the content management component is specific For believing being verified described in the service node for sending the check information for each labeled check information The corresponding file of the URL in breath is handled.
17. a kind of service node characterized by comprising at least one processor;And at least one described processor The memory of communication connection;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor is able to carry out service node described in any one of claim 7 to 10 Monitoring method.
CN201910555191.0A 2019-06-25 2019-06-25 Service node monitoring method and system and service node Active CN110460487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910555191.0A CN110460487B (en) 2019-06-25 2019-06-25 Service node monitoring method and system and service node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910555191.0A CN110460487B (en) 2019-06-25 2019-06-25 Service node monitoring method and system and service node

Publications (2)

Publication Number Publication Date
CN110460487A true CN110460487A (en) 2019-11-15
CN110460487B CN110460487B (en) 2022-04-05

Family

ID=68480852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910555191.0A Active CN110460487B (en) 2019-06-25 2019-06-25 Service node monitoring method and system and service node

Country Status (1)

Country Link
CN (1) CN110460487B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306753A (en) * 2020-10-30 2021-02-02 联想(北京)有限公司 Data restoration method, device and system
CN114285639A (en) * 2021-12-24 2022-04-05 云盾智慧安全科技有限公司 Website security protection method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255695A (en) * 2011-07-22 2011-11-23 乐视网信息技术(北京)股份有限公司 Data check method and system applied to peer-to-peer (p2p) network delivery system
CN103377251A (en) * 2012-04-27 2013-10-30 百度在线网络技术(北京)有限公司 File comparison method and device for HDFS (Hadoop Distributed File System)
CN103379139A (en) * 2012-04-17 2013-10-30 百度在线网络技术(北京)有限公司 A verification method and a verification system for distributed cache content, and apparatuses
US20170085563A1 (en) * 2015-09-18 2017-03-23 First Data Corporation System for validating a biometric input
CN107026828A (en) * 2016-02-02 2017-08-08 ***通信集团辽宁有限公司 A kind of anti-stealing link method cached based on internet and internet caching
CN108282543A (en) * 2018-03-05 2018-07-13 北京云端智度科技有限公司 A kind of CDN node content authentication method and system
CN108924595A (en) * 2018-08-15 2018-11-30 广东南方新媒体股份有限公司 Realize the method and system of TS slice door chain
CN109492436A (en) * 2018-11-29 2019-03-19 深圳市网心科技有限公司 A kind of file verification method and relevant apparatus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255695A (en) * 2011-07-22 2011-11-23 乐视网信息技术(北京)股份有限公司 Data check method and system applied to peer-to-peer (p2p) network delivery system
CN103379139A (en) * 2012-04-17 2013-10-30 百度在线网络技术(北京)有限公司 A verification method and a verification system for distributed cache content, and apparatuses
CN103377251A (en) * 2012-04-27 2013-10-30 百度在线网络技术(北京)有限公司 File comparison method and device for HDFS (Hadoop Distributed File System)
US20170085563A1 (en) * 2015-09-18 2017-03-23 First Data Corporation System for validating a biometric input
CN107026828A (en) * 2016-02-02 2017-08-08 ***通信集团辽宁有限公司 A kind of anti-stealing link method cached based on internet and internet caching
CN108282543A (en) * 2018-03-05 2018-07-13 北京云端智度科技有限公司 A kind of CDN node content authentication method and system
CN108924595A (en) * 2018-08-15 2018-11-30 广东南方新媒体股份有限公司 Realize the method and system of TS slice door chain
CN109492436A (en) * 2018-11-29 2019-03-19 深圳市网心科技有限公司 A kind of file verification method and relevant apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306753A (en) * 2020-10-30 2021-02-02 联想(北京)有限公司 Data restoration method, device and system
CN114285639A (en) * 2021-12-24 2022-04-05 云盾智慧安全科技有限公司 Website security protection method and device
CN114285639B (en) * 2021-12-24 2023-11-24 云盾智慧安全科技有限公司 Website safety protection method and device

Also Published As

Publication number Publication date
CN110460487B (en) 2022-04-05

Similar Documents

Publication Publication Date Title
CN106034330B (en) Mobile terminal flow processing method, apparatus and system based on content distributing network
CN108965381A (en) Implementation of load balancing, device, computer equipment and medium based on Nginx
CN109471845A (en) Blog management method, server and computer readable storage medium
CN105530127B (en) A kind of method and proxy server of proxy server processing network access request
US20120221899A1 (en) Methods, systems, and computer readable media for policy and charging rules function (pcrf) fault tolerance
CN109586969A (en) Content distributing network disaster recovery method, device, computer equipment and storage medium
CN110909013B (en) Service list generation method, device, equipment and computer readable storage medium
US9329961B2 (en) Testing development using real-time traffic
CN109600280B (en) Pressure testing system, method, device and computer readable storage medium
CN103607424B (en) Server connection method and server system
CN102938716B (en) Content distribution network acceleration test method and device
CN107239381A (en) The processing method of crash info, apparatus and system
CN110362473A (en) Test optimization method and device, storage medium, the terminal of environment
CN103428042A (en) Method and system for carrying out stress test on server
CN109587258A (en) Activating method and device are visited in a kind of service
CN109558320A (en) System detection method, device, system, equipment and computer readable storage medium
CN110460487A (en) The monitoring method and system of service node, service node
CN110166529A (en) It keeps logging in state method, apparatus, equipment and storage medium
CN104954431A (en) Network selection method, device and system
CN111338967A (en) Shunting test method and device, electronic equipment and storage medium
US8307245B2 (en) Scenario creating apparatus, scenario creating method, and storage medium storing scenario creating program
CN113849363A (en) Service monitoring method and related device
CN110460486A (en) The monitoring method and system of service node
CN106888238A (en) A kind of method of data synchronization and device
RU2532714C2 (en) Method of acquiring data when evaluating network resources and apparatus therefor

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