PCDN service detection method and device and medium
By identifying the resource request message sent by the client and the specified fields in the heartbeat message, combined with the analysis of the message monitoring server, the accurate detection of PCDN services is achieved, solving the problem of inaccurate detection in the existing technology, and improving the The accuracy and comprehensiveness of the inspection reduce operator costs.
Patent Information
- Application Number
- CN202411171066.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-12-03
AI Technical Summary
The prior art cannot accurately detect illegal home PCDN services, resulting in the outflow of IDC and CDN services to cheap home broadband, increasing operator costs, and lacking effective means of suppression.
By identifying the specified prefix and suffix fields in the resource request message and heartbeat message sent by the client, combined with the analysis of the message monitoring server, counting the PCDN service types and number of clients under the broadband account, and achieving accurate detection of PCDN service .
It improves the accuracy and comprehensiveness of PCDN service detection, can identify the types and number of PCDN boxes hanging on the terminal terminal, quickly detect illegal services, reduce operator costs, and promote the access volume of IDC and CDN services.
Smart Images

Figure CN119071183A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure at least relates to the field of network detection technology, and in particular to a PCDN service detection method, a PCDN service detection device, and a computer-readable storage medium. Background Art
[0002] Illegal home PCDN (P2P+CDN, Peer to Peer Content Delivery Network, peer-to-peer content distribution network) services have led to a large amount of IDC (Internet Data Center) and CDN (Content Delivery Network) services flowing out to PCDN, and operators' fee settlement has shifted to cheap home broadband revenue. It is necessary to suppress illegal PCDN services through detection and control means, thereby encouraging Internet companies to use IDC services and increase the business access volume of IDC and CDN.
[0003] Some existing PCDN service detection technologies are only used for suspected judgment, but no accurate judgment is made. For example, through the message log of 3A (Authentication, Authorization, Accounting), NETFLOW's 1:
[0004] 2000 sampling ratio, knowledge base analysis, etc. In the sampled data packets of NETFLOW, only one packet is sampled out of 2000 packets. First of all, the sampling ratio misses 1999 packets. It is only suspected that the knowledge base of the sampled source address and destination address segment of netflow is used for judgment. There are only two rules: the daily upstream traffic is greater than 100G, and the user accesses the PCDN service provider domain name through edpi. If the above features are identified, a label is added, and if they are not identified, no label is added. There is no accurate basis for judgment, and it is not accurate and persuasive to the end users. Summary of the invention
[0005] The technical problem to be solved by the present disclosure is to provide a PCDN service detection method, a PCDN service detection device and a computer-readable storage medium to solve the problem of how to detect PCDN services in view of the above-mentioned shortcomings.
[0006] In a first aspect, the present disclosure provides a PCDN service detection method, the method comprising:
[0007] Identify whether the resource request message sent by the client carries one of the specified suffix fields with one of the specified prefixes. If so,
[0008] Identify whether the client subsequently sends a heartbeat message, and the heartbeat message carries one of several designated resource service fields. If so,
[0009] Identify that the client has a PCDN service,
[0010] Among them, PCDN is a point-to-point content distribution network.
[0011] Further, it is identified whether the client subsequently sends a heartbeat message, and the heartbeat message carries one of several designated resource service fields, specifically including:
[0012] Obtaining several audio and video resource server website address fields where the audio and video resources requested by the resource request message are located,
[0013] Identify whether the client subsequently sends a heartbeat message carrying one of the audio and video resource server website address fields.
[0014] Further, identifying whether the resource request message sent by the client carries one of several specified suffix fields with one of several specified prefixes, specifically including:
[0015] Identify whether a first resource request message sent by the client to the CDN scheduling server carries a first designated suffix field with a first designated prefix, or,
[0016] Identify whether the second specified prefix in the second resource request message sent by the client to the specified resource server carries the second specified suffix field,
[0017] Among them, the CDN scheduling server and the designated resource server are used to schedule and provide audio and video resources to the client respectively. CDN is a content distribution network.
[0018] Further, wherein:
[0019] The first specified prefix is user-Agent, the first specified suffix field is HCDHCLIENT OHECLOUD field, and the corresponding client is JD Wireless Router, or the first specified suffix field is HCDNClient ANDROID_MOBILE field, and the corresponding client is iQIYI client.
[0020] The specified resource server is the One Cloud server, the second specified prefix is sid, the second specified suffix field is the OCPGxxxxxx field, and the corresponding client is the One Cloud box, or the second specified suffix field is the xxxxxxxxxPEER_STATUS field, and the corresponding client is the NetEase Cloud client.
[0021] Here, x is a replaceable character.
[0022] Furthermore, the method further comprises:
[0023] Identify whether the PeerList request message sent by the client to the PCDN scheduling server carries the first identification information with MAC as a prefix, and identifies the first identification information as the identification of JD Wireless Router, or carries the second identification information with SN as a prefix, and identifies the second identification information as the identification of the OneCloud Box.
[0024] Among them, MAC is the media access control address and SN is the serial number.
[0025] Furthermore, the method further comprises:
[0026] A message monitoring server is set up, and the message monitoring server monitors HTTP messages sent by the client, where the HTTP messages include a first resource request message, a second resource request message, a PeerList request message, and a heartbeat message.
[0027] Furthermore, the method further comprises:
[0028] The message monitoring server associates the client identified as having PCDN service with its broadband account.
[0029] Statistics on the types of PCDN services and the number of clients using PCDN services under the same broadband account.
[0030] Furthermore, the types of PCDN services and the number of clients with PCDN services under the same broadband account are counted, including:
[0031] Obtain the designated resource service field carried in the heartbeat message sent by the client associated with the same broadband account, and count the PCDN service types existing under the same broadband account according to the designated resource service field carried;
[0032] Obtain the user IP port number, first identification information or second identification information in a heartbeat message carrying one of several specified resource service fields sent by a client associated with the same broadband account, and count the number of clients with PCDN services under the same broadband account based on the number of user IP port numbers, first identification information or second identification information.
[0033] In a second aspect, the present disclosure provides a PCDN service detection device, the device comprising:
[0034] The first identification module is used to identify whether one of the specified suffix fields is carried in one of the specified prefixes in the resource request message sent by the client, and if so,
[0035] The second identification module is connected to the first identification module and is used to identify whether the client subsequently sends a heartbeat message, and the heartbeat message carries one of several designated resource service fields. If so,
[0036] The third identification module is connected to the second identification module and is used to identify that the client has a PCDN service.
[0037] Among them, PCDN is a point-to-point content distribution network.
[0038] In a third aspect, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the PCDN service detection method as described above is implemented.
[0039] The present disclosure provides a PCDN service detection method, a PCDN service detection device and a computer-readable storage medium. The detection of PCDN service is realized by identifying key fields in a message. First, it is identified whether a resource request message sent by a client carries a specified feature field in a specified form. Then, it is identified whether a heartbeat message sent by the client carries a field of a specified service feature. If both of the above two message features are detected, it means that the client has a PCDN service. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a flow chart of a PCDN service detection method according to an embodiment of the present disclosure;
[0041] Figure 2 It is a schematic diagram of collecting message information by a PCDN service detection method according to an embodiment of the present disclosure;
[0042] Figure 3 This is an embodiment of the present disclosure Figure 2 A schematic diagram of a message ① in FIG.
[0043] Figure 4 This is an embodiment of the present disclosure Figure 2 A schematic diagram of another message ① in FIG.
[0044] Figure 5 This is an embodiment of the present disclosure Figure 2 A schematic diagram of a message ② in FIG.
[0045] Figure 6 This is an embodiment of the present disclosure Figure 2 A schematic diagram of another message ② in FIG.
[0046] Figure 7 This is an embodiment of the present disclosure Figure 2 A schematic diagram of a message ③ in FIG.
[0047] Figure 8 This is an embodiment of the present disclosure Figure 2 A schematic diagram of another message ③ in FIG.
[0048] Fig. 9 This is an embodiment of the present disclosure Figure 2 A schematic diagram of a message ④ in FIG.
[0049] Fig.10 This is an embodiment of the present disclosure Figure 2 A schematic diagram of another message ④ in FIG.
[0050] Fig.11 It is a structural diagram of a PCDN service detection device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0051] In order to enable those skilled in the art to better understand the technical solution of the present disclosure, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.
[0052] It should be understood that the specific embodiments and drawings described herein are only used to explain the present disclosure rather than to limit the present disclosure.
[0053] It can be understood that, in the absence of conflict, the various embodiments of the present disclosure and the various features in the embodiments can be combined with each other.
[0054] It can be understood that, for the convenience of description, the drawings of the present disclosure only show parts related to the present disclosure, while parts irrelevant to the present disclosure are not shown in the drawings.
[0055] It can be understood that each unit and module involved in the embodiments of the present disclosure may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units and modules may be integrated into one physical structure.
[0056] It will be understood that, in the absence of conflict, the functions and steps marked in the flowcharts and block diagrams of the present disclosure may occur in an order different from that marked in the drawings.
[0057] It is understood that the flowcharts and block diagrams of the present disclosure illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to the various embodiments of the present disclosure. Each box in the flowchart or block diagram may represent a unit, module, program segment, or code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented by a hardware-based system that implements the specified functions, or may be implemented by a combination of hardware and computer instructions.
[0058] It can be understood that the units and modules involved in the embodiments of the present disclosure can be implemented by software or hardware, for example, the units and modules can be located in a processor.
[0059] Embodiment 1:
[0060] like Figure 1 As shown, the present disclosure provides a PCDN service detection method, the method
[0061] The law includes:
[0062] S1. Identify whether the resource request message sent by the client carries one of the specified suffix fields with one of the specified prefixes. If so,
[0063] S2. Identify whether the client subsequently sends a heartbeat message, and the heartbeat message carries one of several designated resource service fields. If so,
[0064] S3, identifying that the client has a PCDN service,
[0065] Among them, PCDN is a point-to-point content distribution network.
[0066] In this embodiment, the method detects the PCDN service by identifying the key fields in the message. First, it is identified whether the resource request message sent by the client carries the specified feature field in the specified form. If so, it indicates that the client may be performing a certain PCDN service resource request behavior; then it is identified whether the heartbeat message sent by the client carries the field of the specified service feature. If so, it indicates that the client may be performing a certain PCDN service resource sharing behavior; if both of the above two message features are detected, it indicates that the client is very likely to have a PCDN service. Among them, the specified form, the specified feature field, and the specified service feature field can all be set by those skilled in the art by collecting actually known PCDN service features.
[0067] Specifically, first, the user model of PCDN is sorted out. The operator sorts out the PCDN scheduling model based on the PCDN service model, and makes the judgment basis of relevant messages from the scheduling model. These are obtained based on experience. The processes involved in the messages used to judge PCDN services are as follows: Figure 2 After that, you can Figure 2 The characteristic fields carried by the messages ①②③④ respectively identify certain suspected PCDN service behaviors. Combining these message information can improve the recognition accuracy.
[0068] In one implementation, S1 identifies whether one of several specified suffix fields is carried with one of several specified prefixes in a resource request message sent by the client, specifically including:
[0069] Identify whether a first resource request message sent by the client to the CDN scheduling server carries a first designated suffix field with a first designated prefix, or,
[0070] Identify whether the second specified prefix in the second resource request message sent by the client to the specified resource server carries the second specified suffix field,
[0071] Among them, the CDN scheduling server and the designated resource server are used to schedule and provide audio and video resources to the client respectively. CDN is a content distribution network.
[0072] In this embodiment, since the current PCDN service is mainly used for sharing audio and video resources, users can obtain audio and video resources mainly through CDN scheduling, or directly download from a designated resource server, so these two types of messages are identified separately.
[0073] Specifically, in Figure 2 In the packet ① shown in the figure, if the captured packet is as follows Figure 3 As shown in the figure, in the user-Agent of the message, HCDHCLIENT OHECLOUD is carried, which is identified as JD Wireless Router. This message is initiated by JD Wireless Router to obtain the data of CDN node video source when there is a demand. The user can be marked first as one of the multiple factors to determine whether the user violates the rules; if the captured message is as follows Figure 4 As shown in the figure, if the message user-Agent carries HCDNClient ANDROID_MOBILE, it is judged that iQiyi obtains the video source data from the CDN node, proving that there is a suspicion of violation, and it is also marked first. Normally, iQiyi will not insert such a field value in the user-Agent. Figure 2 In the packet ② shown in the figure, if the captured packet is as follows Figure 5 As shown in the figure, the message carries sid:OCPGxxxxxx, which is identified as a Wanke Cloud box. This is the process of the box obtaining the peerlist from the server. If the captured packet is as follows Figure 6 As shown, if the message carries sid:xxxxxxxxxPEER_STATUS, it is judged that the user end of NetEase Cloud Music obtains the peerlist from the One Cloud server.
[0074] In one embodiment, wherein:
[0075] The first specified prefix is user-Agent, the first specified suffix field is HCDHCLIENT OHECLOUD field, and the corresponding client is JD Wireless Router, or the first specified suffix field is HCDNClient ANDROID_MOBILE field, and the corresponding client is iQIYI client.
[0076] The specified resource server is the One Cloud server, the second specified prefix is sid, the second specified suffix field is the OCPGxxxxxx field, and the corresponding client is the One Cloud box, or the second specified suffix field is the xxxxxxxxxPEER_STATUS field, and the corresponding client is the NetEase Cloud client.
[0077] Here, x is a replaceable character.
[0078] In this embodiment, the specific field features and the corresponding client relationships have been described above. Currently, the judgment conditions for PCDN detection and identification are mainly set for JD Wireless Router, iQiyi Client, One Cloud Box and NetEase Cloud Client. These are the features of PCDN business behaviors that have been discovered. If a new client type is found to have PCDN business in the future, its feature fields can be discovered by analyzing its message features, and the method of this embodiment can also be applied.
[0079] In one embodiment, the method further comprises:
[0080] Identify whether the PeerList request message sent by the client to the PCDN scheduling server carries the first identification information with MAC as a prefix, and identifies the first identification information as the identification of JD Wireless Router, or carries the second identification information with SN as a prefix, and identifies the second identification information as the identification of the OneCloud Box.
[0081] Among them, MAC is the media access control address and SN is the serial number.
[0082] In this embodiment, in order to strengthen the identification and facilitate the statistics of PCDN business violations, it is possible to identify whether the message carries the unique identifier of the client. JD Wireless Router generally carries a MAC address (Media Access Control Address) as the unique identifier, and Wanke Cloud Box generally uses SN (Serial Number) as the unique identifier.
[0083] Specifically, in Figure 2 In the packet ③ shown in the figure, if the captured packet is as follows Figure 7As shown in the figure, the message carries mac:"******", which is identified as the unique device identifier of JD Wireless Router. Since the MAC address is the unique identifier of the network device itself, the MAC address is carried in the HTTP message, which is also one of the characteristics of PCDN business behavior. If the captured packet is as follows Figure 8 As shown in the figure, the sn:"*****" is carried in the message to identify the unique identifier of the OneCloud device, and the sn serial number is the unique identifier of the network device itself.
[0084] In one implementation, S2 identifies whether the client subsequently sends a heartbeat message, and the heartbeat message carries one of several designated resource service fields, specifically including:
[0085] Obtaining several audio and video resource server website address fields where the audio and video resources requested by the resource request message are located,
[0086] Identify whether the client subsequently sends a heartbeat message carrying one of the audio and video resource server website address fields.
[0087] In this embodiment, the field specifying the service characteristics may specifically be the resource server URL information targeted by the client's previous message for resource request, such as the URL of an iQiyi video service resource. When the client shares its acquired video resources with other objects, it will carry the URL field of the iQiyi video service resource in the heartbeat message. The URL field may be different for different resources, and one service resource may have multiple URL information.
[0088] Specifically, in Figure 2 In the packet ④ shown in the figure, if the captured packet is as follows Fig. 9 As shown in Figure 10, the message carries Host:msg.XXX.com, which is identified as a heartbeat message of a certain website, indicating that it is a heartbeat message scheduled by PCDN, which may carry the unique ID (Identity) of the device, such as the MAC address of JD Wireless Router and the SN of One Cloud.
[0089] In one embodiment, the method further comprises:
[0090] A message monitoring server is set up, and the message monitoring server monitors HTTP messages sent by the client, where the HTTP messages include a first resource request message, a second resource request message, a PeerList request message, and a heartbeat message.
[0091] In this embodiment, by setting Figure 2The message monitoring server shown implements the method described in this embodiment. The message monitoring server mainly obtains the message information ① to ④ sent by the client, and then analyzes the characteristic fields in the message to determine whether the client is performing PCDN business behavior. Among them, message ① is a resource request message sent by the client to the CDN scheduling server, and the resource URL (Uniform Resource Locator) can be obtained from the CDN scheduling server; message ② is a resource request message sent by the client to the resource server (which may or may not be a CDN resource server) to obtain audio and video resources; message ③ is a PeerList request message sent by the client to the PCDN scheduling server, and the PeerList can be obtained; message ④ is a resource provision message sent by the client to several PCDN shared nodes and / or several Peer nodes, which can be several PCDN shared nodes and / or several Peer nodes to obtain resources.
[0092] Specifically, the HTTP (Hypertext Transfer Protocol) message can be obtained by capturing the packet on the router, and the key words can be captured by identifying the HTTP message. Figure 2 In the process from ① to ④, the identification position is the field value in the segmented identification message.
[0093] In one embodiment, the method further comprises:
[0094] The message monitoring server associates the client identified as having PCDN service with its broadband account.
[0095] Statistics on the types of PCDN services and the number of clients using PCDN services under the same broadband account.
[0096] In this embodiment, by Figure 2 The packet monitoring server shown performs centralized monitoring, which can comprehensively capture illegal PCDN services in the network, and further analyze whether there are any illegal behaviors under the user's broadband account and what kind of illegal behaviors exist.
[0097] In one implementation, counting the types of PCDN services and the number of clients with PCDN services under the same broadband account specifically includes:
[0098] Obtain the designated resource service field carried in the heartbeat message sent by the client associated with the same broadband account, and count the PCDN service types existing under the same broadband account according to the designated resource service field carried;
[0099] Obtain the user IP port number, first identification information or second identification information in a heartbeat message carrying one of several specified resource service fields sent by a client associated with the same broadband account, and count the number of clients with PCDN services under the same broadband account based on the number of user IP port numbers, first identification information or second identification information.
[0100] In this embodiment, the analysis of the illegal behavior of the associated broadband account may include:
[0101] Reorganize in big data, first the broadband account is connected to the IP (Internet Protocol) address obtained by the user. The association between the two can be collected and obtained in the normal traceability system to confirm the broadband account and the IP address and port number of the real-time user's network; obtain the MAC address or SN serial number that identifies the PCDN box, and then associate it with JD Wireless Router or Net Heart Cloud (Net Heart Cloud is the operator of the box), identify the website of the CDN scheduling application from the message ④, and then determine the business type of the application scheduling.
[0102] For the same broadband user, the method to identify how many PCDNs are connected is as follows: in the same http message, if there are different port numbers, it means that there are multiple PCDN boxes connected. Identify the types of messages ① to ④. Especially in ③, the number of MAC or SN appears in the same broadband account, which means that there are N PCDNs connected under the same broadband account. The numbers can be accumulated. For the same HTTP message report, the port numbers of each captured HTTP message are different and accumulated. If there is one, record it.
[0103] The method provided in this embodiment can improve the accuracy and comprehensiveness of PCDN detection, can achieve 100% detection, and can detect the type and number of PCDN boxes hung on the terminal end, so as to solve the application scenarios of PCDN for commercial enterprises and public broadband for operators, and can quickly detect a large number of illegal services. It is a detection method for PCDN services under fixed-line broadband networks provided at the operator level, which can identify abnormal users and quickly resolve cross-domain abnormal traffic.
[0104] Some technical terms in this embodiment are explained as follows:
[0105] CDN: CDN stands for Content Delivery Network. CDN publishes content to the "edge" side of the network that is closer to the user, and dispatches user requests to the network node server closest to the content based on the user's location, allowing users to obtain content nearby, thereby reducing the network pressure on the central server and improving user access response speed. CDN is not only able to cache video content, it can also distribute static resources of the website, which include various types of pictures, html, css, js, etc. In addition, the static content of mobile applications is similar. The installation package apk file, pictures and videos in the APP, etc. can all be distributed through CDN.
[0106] PCDN: (P2P CDN, Partial Content Delivery Network) integrates the new generation of P2P technology on the basis of CDN products, and makes full use of the massive fragmented computing, storage, network and other idle resources of the edge network to build a low-cost, high-quality content distribution network service. Through innovative distribution network optimization technology and precise intelligent scheduling system, it significantly reduces distribution costs while providing users with stable, high-quality distribution acceleration services. It is suitable for business scenarios such as video on demand, live broadcast, and large file downloads.
[0107] Embodiment 2:
[0108] like Fig.11 As shown, the present disclosure provides a PCDN service detection device, the device comprising:
[0109] The first identification module 1 is used to identify whether one of the specified suffix fields is carried in one of the specified prefixes in the resource request message sent by the client, and if so,
[0110] The second identification module 2 is connected to the first identification module 1 and is used to identify whether the client subsequently sends a heartbeat message, and the heartbeat message carries one of several designated resource service fields. If so,
[0111] The third identification module 3 is connected to the second identification module 2 and is used to identify that the client has a PCDN service.
[0112] Among them, PCDN is a point-to-point content distribution network.
[0113] In one implementation, the second identification module 2 specifically includes:
[0114] A designated service field unit is used to obtain several audio and video resource server website address fields where the audio and video resources requested by the resource request message are located.
[0115] The heartbeat message identification unit is connected to the designated service field unit and is used to identify whether the client subsequently sends a heartbeat message carrying one of the audio and video resource server website address fields.
[0116] In one implementation, the first identification module 1 specifically includes:
[0117] A first request message identification unit is used to identify whether a first resource request message sent by a client to a CDN scheduling server carries a first designated suffix field with a first designated prefix, and / or,
[0118] The second request message identification unit is used to identify whether the second specified prefix carries the second specified suffix field in the second resource request message sent by the client to the specified resource server.
[0119] Among them, the CDN scheduling server and the designated resource server are used to schedule and provide audio and video resources to the client respectively. CDN is a content distribution network.
[0120] In one embodiment, wherein:
[0121] The first specified prefix is user-Agent, the first specified suffix field is HCDHCLIENT OHECLOUD field, and the corresponding client is JD Wireless Router, or the first specified suffix field is HCDNClient ANDROID_MOBILE field, and the corresponding client is iQIYI client.
[0122] The specified resource server is the One Cloud server, the second specified prefix is sid, the second specified suffix field is the OCPGxxxxxx field, and the corresponding client is the One Cloud box, or the second specified suffix field is the xxxxxxxxxPEER_STATUS field, and the corresponding client is the NetEase Cloud client.
[0123] Here, x is a replaceable character.
[0124] In one embodiment, the device further includes a third request message identification unit, configured to:
[0125] Identify whether the PeerList request message sent by the client to the PCDN scheduling server carries the first identification information with MAC as a prefix, and identifies the first identification information as the identification of JD Wireless Router, or carries the second identification information with SN as a prefix, and identifies the second identification information as the identification of the OneCloud Box.
[0126] Among them, MAC is the media access control address and SN is the serial number.
[0127] In one embodiment, the device is specifically a message monitoring server, which is used to:
[0128] The HTTP messages sent by the monitoring client include a first resource request message, a second resource request message, a PeerList request message, and a heartbeat message.
[0129] In one embodiment, the device further comprises:
[0130] The account association unit is used to associate the client identified as having PCDN service with its broadband account.
[0131] The statistical unit is connected to the account association unit and is used to count the types of PCDN services and the number of clients with PCDN services under the same broadband account.
[0132] In one embodiment, the statistical unit specifically includes:
[0133] A type statistics unit, used to obtain a designated resource service field carried in a heartbeat message sent by a client associated with the same broadband account, and count the PCDN service types existing under the same broadband account according to the carried designated resource service field;
[0134] The quantity counting unit is used to obtain the user IP port number, the first identification information or the second identification information in the heartbeat message carrying one of several specified resource service fields sent by the client associated with the same broadband account, and count the number of clients with PCDN services under the same broadband account according to the number of the user IP port number, the first identification information or the second identification information.
[0135] Embodiment 3:
[0136] Embodiment 3 of the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the PCDN service detection method as described in Embodiment 1 or the PCDN service detection device as described in Embodiment 2 is implemented.
[0137] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.
[0138] In addition, the present disclosure may also provide a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the PCDN service detection method as described in Example 1. The computer device may be the PCDN service detection device as described in Example 2.
[0139] The memory is connected to the processor, the memory may be a flash memory or a read-only memory or other memory, and the processor may be a central processing unit or a single-chip microcomputer.
[0140] Embodiments 1-3 of the present disclosure provide a PCDN service detection method, a PCDN service detection device, and a computer-readable storage medium, which detect PCDN services by identifying key fields in messages. First, it is identified whether a resource request message sent by a client carries a specified feature field in a specified form, and then it is identified whether a heartbeat message sent by the client carries a field of a specified service feature. If both of the above two message features are detected, it indicates that the client has PCDN services.
[0141] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present disclosure, but the present disclosure is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and substance of the present disclosure, and these modifications and improvements are also considered to be within the scope of protection of the present disclosure.
Claims
1. A PCDN service detection method, characterized in that: The method comprises: Identify whether the resource request message sent by the client carries one of the specified suffix fields with one of the specified prefixes. If so, Identify whether the client subsequently sends a heartbeat message, and the heartbeat message carries one of several designated resource service fields. If so, Identify that the client has a PCDN service, Among them, PCDN is a point-to-point content distribution network.
2. The method according to claim 1, characterized in that Identify whether the client subsequently sends a heartbeat message, and the heartbeat message carries one of several designated resource service fields, specifically including: Obtaining several audio and video resource server website address fields where the audio and video resources requested by the resource request message are located, Identify whether the client subsequently sends a heartbeat message carrying one of the audio and video resource server website address fields.
3. The method according to claim 1 or 2, characterized in that: Identify whether the resource request message sent by the client carries one of several specified suffix fields with one of several specified prefixes, including: Identify whether a first resource request message sent by the client to the CDN scheduling server carries a first designated suffix field with a first designated prefix, or, Identify whether the second specified prefix in the second resource request message sent by the client to the specified resource server carries the second specified suffix field, Among them, the CDN scheduling server and the designated resource server are used to schedule and provide audio and video resources to the client respectively. CDN is a content distribution network.
4. The method according to claim 3, characterized in that: in: The first specified prefix is user-Agent, the first specified suffix field is HCDHCLIENT OHECLOUD field, and the corresponding client is JD Wireless Router, or the first specified suffix field is HCDNClient ANDROID_MOBILE field, and the corresponding client is iQIYI client. The specified resource server is the One Cloud server, the second specified prefix is sid, the second specified suffix field is the OCPGxxxxxx field, and the corresponding client is the One Cloud box, or the second specified suffix field is the xxxxxxxxxPEER_STATUS field, and the corresponding client is the NetEase Cloud client. Here, x is a replaceable character.
5. The method according to claim 4, characterized in that The method further comprises: Identify whether the PeerList request message sent by the client to the PCDN scheduling server carries the first identification information with MAC as a prefix, and identifies the first identification information as the identification of JD Wireless Router, or carries the second identification information with SN as a prefix, and identifies the second identification information as the identification of the OneCloud Box. Among them, MAC is the media access control address and SN is the serial number.
6. The method according to claim 5, characterized in that The method further comprises: A message monitoring server is set up, and the message monitoring server monitors HTTP messages sent by the client, where the HTTP messages include a first resource request message, a second resource request message, a PeerList request message, and a heartbeat message.
7. The method according to claim 6, characterized in that The method further comprises: The message monitoring server associates the client identified as having PCDN service with its broadband account. Statistics on the types of PCDN services and the number of clients using PCDN services under the same broadband account.
8. The method according to claim 7, characterized in that Statistics on the types of PCDN services and the number of clients with PCDN services under the same broadband account, including: Obtain the designated resource service field carried in the heartbeat message sent by the client associated with the same broadband account, and count the PCDN service types existing under the same broadband account according to the designated resource service field carried; Obtain the user IP port number, first identification information or second identification information in a heartbeat message carrying one of several specified resource service fields sent by a client associated with the same broadband account, and count the number of clients with PCDN services under the same broadband account based on the number of user IP port numbers, first identification information or second identification information.
9. A PCDN service detection device, characterized in that: The device comprises: The first identification module is used to identify whether one of the specified suffix fields is carried in one of the specified prefixes in the resource request message sent by the client, and if so, The second identification module is connected to the first identification module and is used to identify whether the client subsequently sends a heartbeat message, and the heartbeat message carries one of several designated resource service fields. If so, The third identification module is connected to the second identification module and is used to identify that the client has a PCDN service. Among them, PCDN is a point-to-point content distribution network.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the PCDN service detection method according to any one of claims 1 to 8 is implemented.
