CN110278250B - Terminal selection method, device and storage medium - Google Patents

Terminal selection method, device and storage medium Download PDF

Info

Publication number
CN110278250B
CN110278250B CN201910495916.1A CN201910495916A CN110278250B CN 110278250 B CN110278250 B CN 110278250B CN 201910495916 A CN201910495916 A CN 201910495916A CN 110278250 B CN110278250 B CN 110278250B
Authority
CN
China
Prior art keywords
data transmission
terminal
parameter information
transmission parameter
combined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910495916.1A
Other languages
Chinese (zh)
Other versions
CN110278250A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910495916.1A priority Critical patent/CN110278250B/en
Publication of CN110278250A publication Critical patent/CN110278250A/en
Application granted granted Critical
Publication of CN110278250B publication Critical patent/CN110278250B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/535Tracking the activity of the user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a terminal selection method, a terminal selection device and a storage medium, wherein the embodiment of the application determines the parameter type of parameter information to be acquired; acquiring first data transmission parameter information between a first terminal and a server in a network within a first preset time period according to the parameter type; acquiring second data transmission parameter information between a second terminal and the server within a second preset time period according to the parameter type, wherein the length of the second preset time period is greater than that of the first preset time period; acquiring data transmission similarity between the first terminal and the second terminal based on the first data transmission parameter information and the second data transmission parameter information; and selecting the target terminal from the second terminals based on the similarity, so that the accuracy of terminal selection is improved.

Description

Terminal selection method, device and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a terminal selection method, apparatus, and storage medium.
Background
At present, when a target terminal similar to a first terminal is selected from a large number of second terminals, the adopted method generally performs rough selection according to the experience of an analyst, and has no more accurate selection standard and no more accurate data support, so that the similar target terminal cannot be accurately selected.
For example, when evaluating the cost of a new user of a Content Delivery Network (CDN) in a CDN Network system, the cost of an old user similar to the cost of the new user is also typically used for evaluation. Selecting similar users similar to the new user from the old users is also a terminal selection method, the new user is equivalent to a first terminal, the old user is equivalent to a second terminal, and the similar users are equivalent to target terminals. For example, to evaluate a new user of a short video class, an old user of a short video of the same class is selected and evaluated according to the cost condition of the old user, but the cost of the user of the same class may be different due to different busy and idle time periods or different source returning conditions, and therefore the selected result is not accurate.
Disclosure of Invention
In view of this, embodiments of the present application provide a terminal selection method, an apparatus, and a storage medium, which may improve accuracy of terminal selection.
In a first aspect, an embodiment of the present application provides a terminal selection method, including:
determining the parameter type of the parameter information to be acquired;
acquiring first data transmission parameter information between a first terminal and a server in a network within a first preset time period according to the parameter type;
acquiring second data transmission parameter information between a second terminal and a server in the network within a second preset time period according to the parameter type, wherein the length of the second preset time period is greater than that of the first preset time period;
acquiring data transmission similarity between a first terminal and a second terminal based on first data transmission parameter information and second data transmission parameter information;
and selecting a target terminal similar to the data transmission of the first terminal from the second terminals based on the data transmission similarity.
In some embodiments, obtaining, according to the parameter type, first data transmission parameter information between the first terminal and a server in the network within a first preset time period includes:
when the parameter type is a first parameter type, acquiring first subdata transmission parameter information between a first terminal and a first hierarchical server in a network as first data transmission parameter information;
when the parameter type is a second parameter type, acquiring first subdata transmission information between the first terminal and a first hierarchical server in the network and second subdata transmission parameters between the first hierarchical server and a second hierarchical server in the network;
and obtaining first data transmission parameter information based on the first subdata transmission parameter information and the second subdata transmission parameter information.
In some embodiments, the first data parameter information includes a first data transmission parameter, and an acquisition time corresponding to the first data transmission parameter; the second data parameter information comprises a second data transmission parameter and acquisition time corresponding to the second data transmission parameter;
acquiring data transmission similarity between the first terminal and the second terminal based on the first data transmission information and the second data transmission parameter information, including:
determining selection reference time according to the parameter number corresponding to the parameter type;
selecting a first data transmission parameter to be combined from the first data transmission information according to the selection reference time;
combining the first data transmission parameters to be combined to obtain first combined data transmission parameter information;
selecting a second data transmission parameter to be combined from the second data transmission information according to the selection reference time;
combining the second data transmission parameters to be combined to obtain second combined data transmission parameter information;
and acquiring the data transmission similarity of the first terminal and the second terminal according to the first combined data transmission parameter information and the second combined data transmission parameter information.
In some embodiments, determining the parameter type of the parameter information to be acquired includes:
acquiring a first data transmission quantity between a first terminal and a first hierarchical server in a network;
acquiring a second data transmission quantity between a first level server in the network and a second level server in the network;
acquiring the ratio of the first data transmission quantity to the second data transmission quantity;
and determining the parameter type of the parameter information to be acquired according to the ratio.
In some embodiments, the terminal selection method further comprises:
generating first data transmission change information corresponding to the first terminal according to the first combined data transmission parameter information;
generating second data transmission change information corresponding to the second terminal according to the second combined data transmission parameter information;
selecting target data transmission change information from the second data transmission change information according to the target terminal;
selecting the data transmission similarity between the first terminal and the target terminal from the data transmission similarities between the first terminal and the second terminal according to the target terminal;
and outputting the first data transmission change information and the target data transmission change information, and the data transmission similarity of the first terminal and the target terminal.
In some embodiments, obtaining the data transmission similarity between the first terminal and the second terminal according to the first combined data transmission parameter information and the second combined data transmission parameter information includes:
carrying out magnitude comparison on the first combined data transmission parameter information and the second combined data transmission parameter information to obtain a magnitude comparison result;
determining a similarity measurement function according to the magnitude comparison result;
and acquiring the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information according to the similarity measurement function, and taking the data transmission similarity as the data transmission similarity of the first terminal and the second terminal.
In some embodiments, obtaining the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information according to a similarity metric function includes:
creating a first eigenvector and a second eigenvector according to the first combined transmission parameter information and the second combined data transmission parameter information;
acquiring an included angle parameter between the first characteristic vector and the second characteristic vector;
and carrying out normalization processing on the included angle parameters to obtain the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information.
In some embodiments, obtaining the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information according to a similarity metric function includes:
creating a first eigenvector and a second eigenvector according to the first combined transmission parameter information and the second combined data transmission parameter information;
acquiring the Euclidean distance between the first characteristic vector and the second characteristic vector;
and carrying out normalization processing on the Euclidean distance to obtain the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information.
In a second aspect, an embodiment of the present application provides a terminal selection apparatus, including:
the determining unit is used for determining the parameter type of the parameter information to be acquired;
the first acquisition unit is used for acquiring first data transmission parameter information between a first terminal and a server in a network within a first preset time period according to the parameter type;
the second acquisition unit is used for acquiring second data transmission parameter information between the second terminal and a server in the network within a second preset time period according to the parameter type;
the computing unit is used for acquiring data transmission similarity between the first terminal and the second terminal based on the first data transmission parameter information and the second data transmission parameter information;
and the selecting unit is used for selecting a target terminal similar to the data transmission of the first terminal from the second terminals based on the data transmission similarity.
In a third aspect, a storage medium is provided in an embodiment of the present application, having a computer program stored thereon, which, when run on a computer, causes the computer to perform a terminal selection method as provided in any of the embodiments of the present application.
The method comprises the steps of determining the parameter type of parameter information to be acquired; acquiring first data transmission parameter information between a first terminal and a server in a network within a first preset time period according to the parameter type; acquiring second data transmission parameter information between a second terminal and the server within a second preset time period according to the parameter type, wherein the length of the second preset time period is greater than that of the first preset time period; acquiring data transmission similarity between the first terminal and the second terminal based on the first data transmission parameter information and the second data transmission parameter information; and selecting a target terminal similar to the data transmission of the first terminal from the second terminals based on the data transmission similarity. According to the embodiment of the application, the data transmission similarity between the first terminal and the second terminal is calculated, the target terminal is selected based on the data transmission similarity, accurate data support is provided for terminal selection, and therefore the accuracy of terminal selection is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a terminal selection method provided in an embodiment of the present application.
Fig. 2 is a flowchart illustrating a terminal selection method according to an embodiment of the present application.
Fig. 3 is another schematic flow chart of a terminal selection method according to an embodiment of the present application.
Fig. 4a is a schematic diagram of a terminal device interface provided in an embodiment of the present application.
Fig. 4b is a schematic diagram of data transmission change information of the first terminal outputting content according to an embodiment of the present application.
Fig. 4c is a schematic diagram of data transmission change information of the first target terminal outputting content according to an embodiment of the present application.
Fig. 4d is a schematic diagram of data transmission change information of the second target terminal outputting the content according to the embodiment of the present application.
Fig. 4e is a schematic diagram of data transmission change information of the third target terminal outputting the content according to the embodiment of the present application.
Fig. 4f is a schematic diagram of data transmission change information of a fourth target terminal outputting content according to an embodiment of the present application.
Fig. 4g is a schematic diagram of data transmission change information of a fifth target terminal outputting content according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a terminal selection method according to an embodiment of the present application.
Fig. 6 is a schematic diagram of a network device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a terminal selection method, a terminal selection device and a storage medium.
An embodiment of the present invention provides a terminal selection system, including any one of the terminal selection devices provided in the embodiments of the present invention, where the terminal selection device may be specifically integrated in a terminal device, and the terminal device may include: a mobile phone, a tablet Computer, a notebook Computer, or a Personal Computer (PC).
In addition, the terminal selection system may further include other devices, such as a server and the like.
For example, referring to fig. 1, the user selection system includes a terminal device and a server, the terminal device and the server being linked through a network. The network includes network entities such as routers and gateways.
The terminal device may obtain the parameter type, the first preset time period, and the second preset time period, and obtain the data transmission parameter information in the preset time period according to the parameter type, for example, when the parameter type obtained by the terminal device is the first parameter type and the first preset time period is obtained, the terminal device may obtain the first data transmission parameter information in the first preset time period.
In another embodiment, the terminal device may also retrieve the first data transmission parameter information and the second data transmission parameter information from the server through a network link.
The terminal equipment acquires data transmission similarity between the first terminal and the second terminal based on the first data transmission parameter information and the second data transmission parameter information; and selecting a target terminal similar to the data transmission of the first terminal from the second terminal based on the data transmission similarity, for example, the target terminal is a terminal similar to the first terminal, that is, a target user similar to the user of the first terminal is selected, and the target user is the user of the target terminal.
In an embodiment, the terminal device may further send, to the server, a similarity between the target terminal and the first terminal and data transmission parameter information of the corresponding target terminal, and the server may store the similarity and the parameter information, or forward the similarity and the parameter information to other terminal devices, for example, the similarity and the parameter information may be forwarded to a terminal device of the cost evaluation system, so that the cost evaluation system evaluates the cost of the first terminal for using the network according to the cost of the target terminal for using the network.
The above example of fig. 1 is only an example of a system architecture for implementing the embodiment of the present invention, and the embodiment of the present invention is not limited to the system architecture shown in fig. 1, and various embodiments of the present invention are proposed based on the system architecture.
The following are detailed below. The numbers in the following examples are not intended to limit the order of preference of the examples.
The present embodiment will be described from the perspective of a terminal selection device, which may be integrated in a terminal device, such as a mobile phone, a tablet Computer, a notebook Computer, or a Personal Computer (PC).
As shown in fig. 2, a terminal selection method is provided, which may be executed by a processor of a terminal device, and the specific flow of the terminal selection method is as follows:
101. and determining the parameter type of the parameter information to be acquired.
The parameter type may be divided according to actual requirements, for example, the parameter information to be acquired may be divided into a first parameter type and a second parameter type based on a hierarchy of servers participating in data transmission, where the parameter information of the first parameter type may include data transmission parameter information between the first terminal or the second terminal and a first hierarchy server in a network, and the parameter information of the second parameter type includes data transmission parameter information between the first terminal or the second terminal and the first hierarchy server in the network, and data transmission parameter information between the first hierarchy server in the network and a second hierarchy server in the network.
For example, the parameter type may be determined by obtaining in advance the data transmission amount between the first terminal and the first-tier server in the network, and the data transmission amount between the first-tier server and the second-tier server.
For example, in an embodiment, the step of determining the parameter type of the parameter information to be acquired includes:
acquiring a first data transmission quantity between the first terminal and a first hierarchical server in a network;
acquiring a second data transmission quantity between a first level server in the network and a second level server in the network;
acquiring the ratio of the first data transmission quantity to the second data transmission quantity;
and determining the parameter type of the parameter information to be acquired according to the ratio.
The first data transmission amount may be the number of bytes of data transmitted between the first terminal and the first tier server within a certain preset time period, and correspondingly, the second data transmission amount is the number of bytes of data transmitted between the first terminal and the second tier server within the same preset time period.
In an embodiment, the parameter type may be determined according to a magnitude relationship between the ratio and a certain preset value. For example, if the ratio is greater than a predetermined value, the parameter type is the first parameter type, and if the ratio is less than the predetermined value, the parameter type is the second parameter type. For example, if the ratio of the first data transmission amount to the second data transmission amount is greater than a certain preset value, the data transmission between the first tier server and the second tier server may be ignored, and only the data transmission parameter information between the first terminal and the first tier server is acquired as the first data transmission parameter information. For another example, in another embodiment, the terminal device may obtain the parameter type selected by the user according to the parameter type selection box.
For example, a "parameter type" selection box is set on an interface for acquiring parameter information by the terminal device. The selection box has two options which are respectively a first parameter type and a second parameter type, the user can click the corresponding options, and the terminal equipment can acquire the parameter types selected by the user.
102. And acquiring first data transmission parameter information between the first terminal and a server in the network within a first preset time period according to the parameter type.
The first terminal may be a terminal accessing a server in the network, a terminal acquiring a service of the server in the network, or the like.
The first data transmission parameter information refers to information that can represent a data transmission state between the first terminal and a server in the network, and may include, for example, a data transmission rate, a data transmission amount, and the like. .
In an embodiment, the data transmission information further includes time information, for example, the first data transmission parameter information may include an acquisition time within a first preset time period, and a data transmission parameter corresponding to the acquisition time.
The method for acquiring the first data transmission parameter information may be various, for example, the first data transmission parameter information may be acquired according to a parameter information acquisition instruction. For example, the parameter information obtaining instruction may carry a first preset time period, a terminal device number, a parameter type, and the like set by the user, and the terminal device may analyze the parameter obtaining instruction and obtain corresponding first data transmission parameter information according to the first preset time period, the terminal device number, and the parameter type.
In order to facilitate triggering the command, a command interface may be provided, wherein the representation form of the command interface may be various, for example, the form of an input box, a selection box, an icon, a button, and the like.
In an embodiment, a selection frame of "start time", "end time", and "first terminal number" and a confirmation button may be set on a setting interface for acquiring parameter information, and a user selects a start time point and an end time point in the selection frame, respectively, and inputs a number of a first terminal, at this time, the terminal may acquire a first preset time period and the number of the first terminal, and then when the user clicks the confirmation button, a parameter information acquisition instruction may be triggered, and at this time, the terminal may acquire parameter information of the first terminal in the first preset time period according to the parameter information acquisition instruction, the first preset time period, and the number of the first terminal.
The method for obtaining the first data transmission parameter information based on the parameter type may be various, for example, a parameter type setting selection box may be set on a page of the terminal device, and after the user determines an option in the selection box, the terminal device may obtain the corresponding parameter type, and obtain the first data transmission parameter information from a local storage or from a network side device based on the parameter type.
In an embodiment, to obtain more accurate data transmission similarity and further improve the accuracy of selecting a similar target terminal, different sub-data transmission parameter information may be obtained according to different parameter types as the first data transmission parameter information, and specifically, in an embodiment, the step of obtaining the first data transmission parameter information between the first terminal and a server in the network within a first preset time period according to the parameter types includes:
when the parameter type is a first parameter type, acquiring first subdata transmission parameter information between a first terminal and a first hierarchical server in a network as first data transmission parameter information;
when the parameter type is a second parameter type, acquiring first subdata transmission parameter information between the first terminal and a first level server in the network and second subdata transmission parameter information between the first level server and a second level server in the network;
and obtaining first data transmission parameter information based on the first subdata transmission parameter information and the second subdata transmission parameter information.
The first sub-data transmission parameter information refers to information representing a data transmission state between the first terminal and a first hierarchical server in the network, for example, the first sub-data transmission parameter information may include an acquisition time within a first preset time period and a data transmission parameter corresponding to the acquisition time, and the data transmission parameter may be a data transmission rate.
Accordingly, the second sub-data transmission parameter information is information indicating a data transmission status between the first hierarchical server and the second hierarchical server in the network in response to the request of the first terminal.
103. And acquiring second data transmission parameter information between a second terminal and a server in the network within a second preset time period according to the parameter type, wherein the length of the second preset time period is greater than that of the first preset time period.
Wherein, the second terminal refers to the content of the service or product provided by the network. For example, the second terminal may be a terminal that accesses a server in the network, a terminal that obtains a service of the server in the network, or the like.
The second data transmission parameter information refers to information that may represent a data transmission state between the second terminal and a server in the network, for example, the second data transmission parameter information may include an acquisition time within a second preset time period and a data transmission parameter corresponding to the acquisition time, and the data transmission parameter may be a data transmission rate. And the second preset time period is a set of acquisition times of the second data transmission parameters. That is, the data transmission parameters occurring within the second preset time period are collected as the second data transmission parameters.
In an embodiment, in order to calculate the similarity, the second preset time period includes one or more unit time periods having the same time interval as the first preset time period, and the number of the acquisition time included in each unit time period and the number of the data transmission parameters corresponding to the acquisition time are the same.
In an embodiment, to avoid the similarity calculation difference due to the different busy/idle times, the unit time period may be selected according to the busy/idle time period, for example, one day may be selected as the unit time period.
In an embodiment, acquiring, according to the parameter type, second data transmission parameter information between the second terminal and a server in the network within a second preset time period includes:
when the parameter type is the first parameter type, acquiring third subdata transmission information between the second terminal and a first-level server in the network as second data transmission parameter information;
when the parameter type is a second parameter type, acquiring third subdata transmission parameter information between the second terminal and a first hierarchical server in the network and fourth subdata transmission parameter information between the first hierarchical server and a second hierarchical server in the network;
and obtaining second data transmission parameter information based on the third sub-data transmission parameter information and the fourth sub-data transmission parameter information.
The third sub-data transmission parameter information is information representing a data transmission state between the second terminal and the first hierarchical server in the network, for example, the second sub-data transmission parameter information may include an acquisition time within a first preset time period and a data transmission parameter corresponding to the acquisition time, and the data transmission parameter may be a data transmission rate.
Accordingly, the fourth sub-data transmission parameter information is information indicating a data transmission status between the first tier server and the second tier server in the network in response to the request of the second terminal.
104. Acquiring data transmission similarity between the first terminal and the second terminal based on the first data transmission parameter information and the second data transmission parameter information;
the data transmission similarity is a parameter for measuring the similarity between the data transmission state between the first terminal and the server and the data transmission state between the second terminal and the server.
The first data parameter information comprises a first data transmission parameter and acquisition time corresponding to the first data transmission parameter; the second data parameter information comprises a second data transmission parameter and acquisition time corresponding to the second data transmission parameter;
in an embodiment, acquiring data transmission similarity between the first terminal and the second terminal based on the first data transmission information and the second data transmission parameter information includes:
determining selection reference time according to the parameter number corresponding to the parameter type;
selecting a first data transmission parameter to be combined from the first data transmission information according to the selection reference time;
combining the first data transmission parameters to be combined to obtain first combined data transmission parameter information;
selecting second data transmission parameter information to be combined from the second data transmission information according to the selection reference time;
combining the second data transmission parameter information to be combined to obtain second combined data transmission parameter information;
and acquiring the data transmission similarity between the first terminal and the second terminal according to the first combined data transmission parameter information and the second combined data transmission parameter information.
And selecting the reference time as the acquisition time of the data transmission parameters to be selected. According to the number of the parameters to be selected and the first preset time period, the selection reference time can be determined, and then the data transmission parameters are selected according to the reference time.
Before using the terminal selection system, the number of parameters corresponding to the parameter types needs to be predefined.
For example, the first parameter type may be predefined to correspond to m parameters, and the second parameter type may correspond to 2m parameters, for example, m parameters may be selected from the first sub data transmission parameter information, and m parameters may be selected from the second sub data transmission parameter information.
In an embodiment, the terminal selection system stores a mapping relationship between the parameter type and the parameter number, and after the parameter type is determined, the corresponding parameter number can be obtained.
In an embodiment, the data transmission parameters acquired at the selection reference time may be selected from the first data transmission parameter information as first data transmission parameters to be combined, and the first data transmission parameters to be combined are sorted and combined according to the acquisition time sequence as first combined data transmission parameter information.
Similarly, the data transmission parameters acquired at the selection reference time are selected from the second data transmission parameter information to serve as second data transmission parameters to be combined, and the second data transmission parameters are sequenced according to the acquisition time sequence and serve as second combined data transmission parameter information.
Therefore, when a target terminal similar to the data transmission of the first terminal is selected, the first data transmission parameter and the second data transmission parameter can be compared and calculated in a one-to-one correspondence mode according to the reference time, the obtained data transmission similarity is obtained according to the reference time, the situation that the data transmission states are different due to different busy and idle times is avoided, and the data transmission similarity degree of the first terminal and the second terminal can be judged more accurately.
In an embodiment, acquiring the data transmission similarity between the first terminal and the second terminal according to the first combined data transmission parameter information and the second combined data transmission parameter information includes:
carrying out magnitude comparison on the first combined data transmission parameter information and the second combined data transmission parameter information to obtain a magnitude comparison result;
determining a similarity measurement function according to the magnitude comparison result;
and acquiring the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information according to the similarity measurement function, and taking the data transmission similarity as the data transmission similarity of the first terminal and the second terminal.
For example, the comparison object is the first data transmission parameter to be combined and the second data transmission parameter to be combined, and the magnitude comparison result may be classified into magnitude similarity and magnitude dissimilarity.
In an embodiment, whether the magnitude is similar or not may be determined by comparing the value ranges of the data transmission parameters, for example, if the difference between the magnitude of the first to-be-combined data transmission parameter and the magnitude of the second to-be-combined data transmission parameter is small, the magnitude comparison result is that the magnitudes are similar. On the contrary, if the magnitude difference between the value range of the first to-be-combined data transmission parameter and the value range of the second to-be-combined data transmission parameter is large, the magnitude comparison result is that the magnitudes are dissimilar.
In an embodiment, the minimum value, the maximum value and the mode of the first data transmission parameter to be combined and the minimum value, the maximum value and the average value of the second data transmission parameter to be combined may be obtained, and the difference between the minimum value, the difference between the maximum values and the difference between the average values of the two values are correspondingly calculated.
In an embodiment, determining the similarity metric function according to the magnitude comparison result may specifically include the following cases:
(1) if the magnitude comparison result shows that the magnitudes are not similar, an Euclidean distance algorithm can be selected as a similarity measurement function.
The similarity calculated by the Euclidean distance algorithm can show the similarity of the magnitude of data transmission.
(2) If the magnitude comparison result is that the magnitudes are similar, a cosine distance algorithm can be selected as a similarity measurement function.
The similarity calculated by the cosine distance algorithm can show the similarity of the change trend of data transmission.
In an embodiment, the terminal may obtain the similarity metric function through the function setting instruction, and obtain the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information according to the similarity metric function. For example, the function setting instruction carries a similarity measurement function set by the user, and the terminal device analyzes the function setting instruction to obtain the similarity measurement function.
In one embodiment, in order to trigger the function setting instruction, a function setting instruction interface may be provided.
For example, a "function type" selection box and a confirmation button are set on the function obtaining interface, the selection box has three options which are an euclidean distance function, a cosine distance function and a custom function, and a user can click the corresponding options to select the similarity measurement function and click the confirmation button to trigger the function setting instruction button.
In an embodiment, a user-defined function is selected, and after a confirmation button is clicked, a function editing page can be entered, and the function editing function can be used as a user-defined similarity measurement function on the function editing page, and the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information is obtained through the user-defined similarity measurement function.
In an embodiment, obtaining the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information according to the similarity metric function includes:
creating a first eigenvector and a second eigenvector according to the first combined transmission parameter information and the second combined data transmission parameter information;
acquiring Euclidean distance between the first feature vector and the second feature vector;
and carrying out normalization processing on the Euclidean distance to obtain the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information.
The first eigenvector is formed by arranging the first data transmission parameters to be combined according to the acquisition time sequence, the first eigenvector is a multi-dimensional vector, the dimension of the first eigenvector is the parameter number, and the coordinate of the first eigenvector is the first data transmission parameter to be combined.
The first characteristic vector is formed by arranging the transmission parameters of the second data to be combined according to the acquisition time, the second characteristic vector is a multi-dimensional vector, the dimension of the second characteristic vector is the number of the parameters, and the coordinate of the second characteristic vector is the transmission parameter of the second data to be combined.
In an embodiment, the step of calculating the euclidean distance may specifically include:
calculating the square of the distance of each dimension of the first characteristic vector and the second characteristic vector;
adding the squares of the distances of each dimension to obtain the square of the Euclidean distance;
and obtaining the Euclidean distance according to the square of the Euclidean distance.
In an embodiment, the obtaining the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information according to the similarity metric function includes:
creating a first eigenvector and a second eigenvector according to the first combined transmission parameter information and the second combined data transmission parameter information;
acquiring an included angle parameter between the first characteristic vector and the second characteristic vector;
and carrying out normalization processing on the included angle parameters to obtain the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information.
The first eigenvector is a multi-dimensional vector, the dimension of the vector is the number of parameters, and the coordinate of the vector is the first data transmission parameter to be combined.
The first characteristic vector is formed by arranging the data transmission parameters to be combined according to the acquisition time, the second characteristic vector is a multi-dimensional vector, the dimension of the vector is the number of the parameters, and the coordinate of the vector is the transmission parameter of the data to be combined.
In an embodiment, the obtaining of the included angle parameter may specifically include the following steps:
calculating a vector inner product of the first feature vector and the second feature vector;
calculating the vector length of the first feature vector and the second feature vector;
and calculating the cosine of the included angle according to the vector length and the vector inner product.
105. And selecting a target terminal similar to the data transmission of the first terminal from the second terminals based on the data transmission similarity.
The target terminals refer to a preset number of terminals with higher data transmission similarity with the first terminal.
In an embodiment, the selecting step may specifically include:
sequencing the second terminals according to the magnitude sequence of the data transmission similarity to obtain a second terminal sequence;
and selecting a preset number of terminals from the second terminal sequence as target terminals.
In an embodiment, the method further comprises:
generating first data transmission change information corresponding to the first terminal according to the first combined data transmission parameter information;
generating second data transmission change information corresponding to the second terminal according to the second combined data transmission parameter information;
selecting the data transmission similarity between the first terminal and the target terminal from the data transmission similarities between the first terminal and the second terminal according to the target terminal;
and outputting the first data transmission change information, the target data transmission change information and the data transmission similarity of the first terminal and the target terminal.
The first data transmission variation information represents a variation trend of the first data transmission information with time, and may have various expressions, specifically, may be represented as a bandwidth trend graph, as shown in fig. 4b, where bandwidth represents a data quantity that can be transmitted in a fixed time, that is, a capacity that can transmit data in a transmission pipeline.
The second data transmission change information represents a change trend of the second data transmission information over time, and may have a plurality of expression forms, specifically, may be expressed as a bandwidth trend graph.
The target data transmission change information represents a change trend of data transmission information between a target terminal and a server in a network along with time, and can be represented in various forms, specifically, a bandwidth trend graph, wherein the abscissa of the bandwidth trend graph is different times of a day, the ordinate is bandwidth data corresponding to the different times, and the bandwidth data refers to the data volume which can pass through a link in unit time. The unit is bps, the number of bits that can be transmitted per second. As shown in fig. 4c, 4d, 4e, 4f and 4 g.
In one embodiment, the terminal selection system stores a mapping relationship between the second terminal and its bandwidth trend graph. After the target terminal is determined, the terminal device can also output a number corresponding to the target terminal.
In an embodiment, in order to conveniently and intuitively obtain the target terminal and the data transmission similarity between the target terminal and the first terminal, the terminal selection system may output the first data transmission change information and the target data transmission change information, and the data transmission similarity between the first terminal and the target terminal.
In another embodiment, the second data transfer rate trend graph may be obtained directly from a local or external storage unit. For example, the terminal opens a parameter information acquisition interface, calls the local gallery through the parameter information acquisition interface, and selects the second data transmission rate trend graph from the local gallery.
As can be seen from the above, the embodiment of the present invention can determine the parameter type of the parameter information to be acquired; acquiring first data transmission parameter information between a first terminal and a server in a network within a first preset time period according to the parameter type; acquiring second data transmission parameter information between a second terminal and the server within a second preset time period according to the parameter type, wherein the length of the second preset time period is greater than that of the first preset time period; acquiring data transmission similarity between the first terminal and the second terminal based on the first data transmission parameter information and the second data transmission parameter information; and selecting a target terminal similar to the data transmission of the first terminal from the second terminals based on the data transmission similarity. According to the embodiment of the application, the data transmission similarity between the first terminal and the second terminal is calculated, the target terminal is selected based on the data transmission similarity, accurate data support is provided for terminal selection, and therefore the accuracy of terminal selection is improved.
According to the method described in the foregoing embodiment, the following will be described in further detail by way of example in which the terminal selection device is specifically integrated in a terminal device.
Referring to fig. 3, a specific process of the terminal selection method according to the embodiment of the present invention is as follows:
201. and the terminal equipment receives a target terminal selection instruction.
The target terminal selection instruction can be triggered through an instruction interface on an interface of the terminal device, and the instruction interface can include presentation forms such as an input box, a selection box, an icon and a button.
In an embodiment, an interface of the terminal device is provided with a "first terminal number" input box, a "first preset time period" selection box, a "second preset time period" selection box and a confirmation button, and after a user inputs the first terminal number on the interface of the terminal device and selects the first preset time period and the second preset time period, the terminal device may obtain corresponding information, and then click the confirmation button, which may trigger a target terminal selection instruction.
202. And the terminal equipment determines the parameter type of the parameter information to be acquired according to the target terminal selection instruction.
In an embodiment, a parameter type selection box may be set on an interface for acquiring parameter information by a terminal device, a user may select a first parameter type or a second parameter type in the selection box, and the terminal device acquires the parameter type selected by the user.
After the user determines the contents of all the selection boxes and the input boxes and triggers the target terminal selection instruction, the terminal device can acquire corresponding data transmission parameter information according to the target terminal selection instruction.
In an embodiment, the terminal device is further provided with a function type selection box, as shown in fig. 4a, when a similar user of a new user of some content distribution network is selected, an appid input box, a start time selection box, an end time selection box, a data source month selection box, a comparison data type selection box, a distance algorithm selection box and a submit button may be set on the interface of the terminal device. The number of the new user can be input into the appid input box, and the first preset time is determined according to the starting time selection box and the ending time selection box and serves as a parameter acquisition time set of the new user. A second preset time may be determined in the data source month selection box as the set of parameter acquisition times for the old user.
Wherein comparing the data types comprises selecting a comparison OC bandwidth or selecting an edge and a comparison intermediate source bandwidth. In some content distribution networks, the content in the origin server is cached in the edge, and when the user uses the network, the user generally only needs to send a request to the edge server, and the edge server can respond. If the edge server does not have the information needed by the user or the source server is updated, the edge server sends a request to the source server and can respond to the request of the user. When the comparison OC bandwidth is selected, only the data transmission status between the new user and the edge server needs to be compared with the data transmission status between the old user and the edge server. When comparing the edge and intermediate source bandwidths is chosen, it is also necessary to compare the data transmission status between the edge server and the intermediate source server in response to the requests of the new user and the old user.
The distance algorithm is a similarity measurement function, and the distance algorithm selection box is a function type selection box. The distance algorithm comprises two choices of trend similarity and magnitude similarity, the selection trends are similar, and the terminal equipment calculates the data transmission similarity by adopting an Euclidean distance formula; and if the selected magnitudes are similar, the terminal equipment calculates the data transmission similarity by adopting a cosine distance formula.
Wherein the new user refers to a user of the first terminal and the old user refers to a user of the second terminal. Bandwidth data is a data transmission parameter. The terminal device may calculate the data transmission similarity using the test bandwidth data in the first preset time period and the bandwidth data in the second preset time period.
In another embodiment, the terminal device does not set the parameter type selection box on the page, and the terminal device may obtain a first data transmission amount between the first terminal and a first tier server in the network and a second data transmission amount between the first tier server in the network and a second tier server in the network. And obtaining the ratio of the two, and then obtaining the parameter type according to the ratio of the two.
For example, if the ratio of the first data transmission amount to the second data transmission amount is greater than a predetermined value, the parameter type is the first parameter type. If the ratio is smaller than the preset value, the parameter type is a second parameter type.
After the parameter type, the first preset time period, the second preset time period and the first terminal number are determined, corresponding data transmission parameter information can be obtained according to the parameter type, the first preset time period, the second preset time period and the first terminal number.
203. And the network equipment in the system acquires the first data transmission parameter information and the second data transmission parameter information according to the parameter types.
In an embodiment, the terminal device may obtain corresponding first data transmission parameter information from the local storage according to the parameter type.
For example, when the parameter type is the first parameter type, data transmission between the first tier server and the second tier server may be omitted, and only the first sub-data transmission parameter information is acquired as the first data transmission parameter information, and only the third sub-data transmission parameter information is acquired as the second data transmission parameter information, so that it is also relatively simple to calculate the similarity.
Accordingly, when the parameter type is the second parameter type, data transmission between the first tier server and the second tier server is not negligible. The first sub data transmission parameter information and the second sub data transmission parameter information must be obtained as the first data transmission parameter information. Likewise, third sub-data transmission parameter information and fourth sub-data transmission parameter information are acquired as second data transmission parameter information. When the data transmission similarity is obtained, the first sub-data transmission parameter information and the third sub-data transmission parameter information, and the second sub-data transmission parameter information and the fourth sub-data transmission parameter information must be correspondingly compared, so that the target terminal with the data transmission state similar to that of the first terminal can be obtained.
In one embodiment, for example, in some content distribution networks, the content in the source server is cached in the edge, and when the user uses the network, the user generally only needs to send a request to the edge server, and the edge server can respond, and at this time, only data transmission occurs between the user and the edge server, so that the first sub-data transmission parameter information is used as the first data transmission parameter information. If the edge server does not have information required by the user or the source server is updated, the edge server sends a request to the source server and can respond to the request of the user, and at the moment, data transmission occurs between the user and the edge server and between the edge server and the source server. Accordingly, the first data transmission parameter information includes first sub data transmission parameter information and second sub data transmission parameter information. The edge server is a first-level server, the source server is a second-level server, and the user is a user of the first terminal.
In another embodiment, the terminal device may also obtain the corresponding first data transmission parameter information from the server through the network link.
204. And the terminal equipment acquires the data transmission similarity between the first terminal and the second terminal based on the first data transmission parameter information and the second data transmission parameter information.
For example, after the terminal device obtains the first data transmission parameter information and the second data transmission parameter information, the data transmission similarity may be calculated according to a similarity measurement function.
Before calculating the data transmission similarity, the first data transmission parameter to be combined and the second data transmission parameter to be combined are selected according to the number of parameters corresponding to the parameter types.
For example, the parameter number corresponding to the parameter type may be predefined in the terminal device, the reference time may be selected according to the parameter number and the first preset time period, the first to-be-combined data transmission parameter may be selected from the first data transmission parameter information according to the reference time, and the second to-be-combined data transmission parameter may be selected from the second data transmission parameter information.
For example, the number of parameters corresponding to the first parameter type may be predefined as m; the number of the parameters corresponding to the second parameter type is 2m, and the parameters include m first sub data transmission parameters and m second sub data transmission parameters.
For example, a first parameter type may be predefined to include 288 data transmission parameters per unit time period, a second parameter type may correspond to 576 data transmission parameter information per unit time period, the unit time period is one day, the first preset time period is one day, and then the meaning of selecting the reference time is to collect the data transmission parameters every 5 minutes.
The data transmission parameters selected according to the selection reference time can better correspond to each other, because the acquisition time of the first data transmission parameters contained in the first data transmission parameter information is the same as the acquisition time of the second data transmission parameters contained in the second data transmission parameter information in position within the unit time period.
For example, the first data transmission parameter and the second data transmission parameter acquired at 0 point and 5 points of each day may be selected as the first data transmission parameter to be combined and the second data transmission parameter to be combined, respectively.
The data transmission similarity can be calculated by converting the data transmission parameters to be combined and the second data transmission parameters to be combined into a first eigenvector and a second eigenvector, and substituting the first eigenvector and the second eigenvector into a similarity measurement function.
The first eigenvector is a multidimensional vector formed by first data transmission parameters according to the acquisition time of the first data transmission parameters, and the second eigenvector is a multidimensional vector formed by second data transmission parameters according to the acquisition time of the second data transmission parameters.
The terminal device can select the similarity metric function through magnitude comparison.
For example, when the equivalence levels are similar, the data transmission similarity can be obtained by calculating the euclidean distance, and when the equivalence levels are not similar, the data transmission similarity can be obtained by the included angle parameter.
The terminal device may determine whether the magnitudes are similar by comparing the minimum value, the maximum value, and the average value of the first data transmission parameter to be combined and the second data transmission parameter to be combined.
The terminal device may also select the similarity metric function by accepting a function setting instruction or a target terminal selection instruction.
In an embodiment, the terminal device may further calculate the similarity through a custom function, and details of the steps are not described again.
For example, in one embodiment, the Euclidean distance may be calculated using the following formula:
Figure GDA0003267297810000201
then, normalization processing needs to be performed on the euclidean distance to obtain data transmission similarity between the first combined transmission parameter information and the second combined data transmission parameter information, and in an embodiment, normalization processing may be performed by using the following formula:
Figure GDA0003267297810000211
the value range of d' obtained after normalization treatment is [0, 1 ]. Therefore, the terminal equipment can judge the similarity degree according to the data transmission similarity d obtained by calculation. Specifically, it may be predefined that the closer the data transmission similarity is to 1, the higher the similarity is, and the closer the data transmission similarity is to 0, the lower the similarity is. Thus, the terminal device can select the target terminal according to the data transmission similarity value.
For example, in one embodiment, the cosine of the included angle may be calculated by the following formula;
Figure GDA0003267297810000212
normalizing the cosine of the included angle to obtain the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information, wherein in an embodiment, the normalization can be performed by using the following formula:
d=0.5+0.5×d′
the value range of d' obtained after normalization treatment is [0, 1 ]. Therefore, the terminal equipment can judge the similarity degree according to the data transmission similarity data. Specifically, it may be predefined that the closer the data transmission similarity is to 1, the higher the similarity is, and the closer the data transmission similarity is to 0, the lower the similarity is. Thus, the terminal device can select the target terminal according to the data transmission similarity value.
205. And the terminal equipment selects a target terminal similar to the data transmission of the first terminal from the second terminal based on the data transmission similarity.
And sequencing the calculated data transmission similarity from large to small, selecting a preset number of second terminals as target terminals, and outputting and displaying the target terminals on a display page of the terminal equipment.
For example, 5 second terminals with the highest data transmission similarity may be selected as the target terminal in the terminal device in a predefined manner.
The terminal selection system of the present invention may also select a second terminal that is least similar to the first terminal as the target terminal, for example, predefined and selected 10 second terminals with the lowest data transmission similarity in the terminal device as the target terminal.
In an embodiment, the terminal selection system may store a mapping relationship between the second terminal and its bandwidth trend graph. After the target terminal is determined, the terminal device can also output a number corresponding to the target terminal.
The output content may be presented in various forms, for example, the number of the target terminal, the data transmission parameter change information of the target terminal, and the data transmission similarity between the target terminal and the first terminal may be output. In an embodiment, the output pages shown in fig. 4b to 4g sequentially show the bandwidth trend graph and the similar results of the first terminal, where the similar results include the bandwidth trend graph, the number and the data transmission similarity between the bandwidth trend graph and the number of the plurality of target terminals and the first terminal, and the plurality of target terminals are sequentially arranged from large to small according to the data transmission similarity.
In an embodiment, the terminal device further generates a first data transmission rate variation trend graph and a second data transmission rate variation trend graph according to the first data transmission parameter information and the second data transmission parameter information, respectively.
For example, after the target terminal is determined, the number of the first terminal, the first data transmission rate variation trend graph, the number of the target terminal, the data transmission rate variation trend graph of the target terminal, and the data transmission similarity between the target terminal and the first terminal may be displayed on the display page of the terminal device.
As can be seen from the above, in the embodiment of the present invention, based on the instruction of the user, the data transmission parameter information between the first terminal and the server in the network, and the data transmission parameter information between the second terminal and the server in the network, the data transmission similarity is calculated, and then the target terminal similar to the data transmission of the first terminal is selected from the second terminal according to the data transmission similarity. Since the data transmission similarity is provided as data support, the terminal device can more accurately select the target terminal most similar to the first terminal.
In order to better implement the method, an embodiment of the present invention further provides a terminal selection device, where the terminal selection device may be specifically integrated in an electronic device, and the electronic device may be a terminal device, a server, a personal computer, or the like.
For example, in this embodiment, the method in the embodiment of the present invention will be described in detail by taking the example that the terminal selection device is integrated in the terminal device.
For example, as shown in fig. 5, the terminal selection apparatus may include a determination unit 301, a first acquisition unit 302, a second acquisition unit 303, a calculation unit 304, and a selection unit 305. The following were used:
a determining unit 301, configured to determine a parameter type of parameter information to be acquired; the parameter types include a first parameter type and a second parameter type.
In some embodiments, the determining unit 301 may be specifically configured to:
acquiring a first data transmission quantity between the first terminal and a first hierarchical server in a network;
acquiring a second data transmission quantity between a first level server in the network and a second level server in the network;
acquiring the ratio of the first data transmission quantity to the second data transmission quantity;
and determining the parameter type of the parameter information to be acquired according to the ratio.
In some embodiments, the determining subunit 301 may further determine the parameter type selected by the user according to the parameter type selection box.
A second obtaining unit 302, configured to obtain, according to the parameter type, first data transmission parameter information between the first terminal and a server in the network within a first preset time period;
in some embodiments, the first obtaining subunit 302 may be specifically configured to:
when the parameter type is a first parameter type, acquiring first subdata transmission parameter information between a first terminal and a first hierarchical server in a network as first data transmission parameter information;
when the parameter type is a second parameter type, acquiring first subdata transmission parameter information between the first terminal and a first level server in the network and second subdata transmission parameter information between the first level server and a second level server in the network;
and obtaining first data transmission parameter information based on the first subdata transmission parameter information and the second subdata transmission parameter information.
(iii) a second obtaining unit 303, configured to obtain, according to the parameter type, second data transmission parameter information between the second terminal and a server in the network within a second preset time period;
a calculating unit 304, configured to obtain data transmission similarity between the first terminal and the second terminal based on the first data transmission parameter information and the second data transmission parameter information;
in some embodiments, the calculation unit 304 may include a combination subunit, a function selection subunit, a first calculation subunit, and a second calculation subunit, as follows:
(1) and the combining subunit is used for selecting a first data transmission parameter to be combined from the first data transmission parameter information and selecting a second data transmission parameter to be combined from the second data transmission parameter information.
In some embodiments, the combining subunit may be further to:
determining selection reference time according to the parameter number corresponding to the parameter type;
selecting a first data transmission parameter to be combined from the first data transmission information according to the selection reference time;
combining the first data transmission parameters to be combined to obtain first combined data transmission parameter information;
selecting second data transmission parameter information to be combined from the second data transmission information according to the selection reference time;
combining the second data transmission parameter information to be combined to obtain second combined data transmission parameter information;
and acquiring the data transmission similarity between the first terminal and the second terminal according to the first combined data transmission parameter information and the second combined data transmission parameter information.
(2) And the function selection subunit is used for determining the similarity measurement function.
In some embodiments, the function selection subunit may be further operable to:
carrying out magnitude comparison on the first combined data transmission parameter information and the second combined data transmission parameter information to obtain a magnitude comparison result;
determining a similarity measurement function according to the magnitude comparison result;
and acquiring the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information according to the similarity measurement function, and taking the data transmission similarity as the data transmission similarity of the first terminal and the second terminal.
(3) And the first calculating subunit is used for calculating the data transmission similarity through the Euclidean distance algorithm.
In some embodiments, the first computing subunit may be further to:
creating a first eigenvector and a second eigenvector according to the first combined transmission parameter information and the second combined data transmission parameter information;
acquiring an included angle parameter between the first characteristic vector and the second characteristic vector;
and carrying out normalization processing on the included angle parameters to obtain the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information.
(4) And the second calculating subunit is used for calculating the data transmission similarity through a cosine distance algorithm.
In some embodiments, the second computing subunit may be further to:
creating a first eigenvector and a second eigenvector according to the first combined transmission parameter information and the second combined data transmission parameter information;
acquiring an included angle parameter between the first characteristic vector and the second characteristic vector;
and carrying out normalization processing on the included angle parameters to obtain the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information.
A selecting unit 305, configured to select a target terminal similar to the first terminal in data transmission from the second terminals based on the data transmission similarity.
In an embodiment, the selecting unit 305 may specifically be configured to:
sequencing the second terminals according to the magnitude sequence of the data transmission similarity to obtain a second terminal sequence;
and selecting a preset number of terminals from the second terminal sequence as target terminals.
In an embodiment, the terminal selection apparatus further includes an output unit 306 for outputting the terminal selection result.
In an embodiment, the output unit 306 may specifically be configured to:
generating first data transmission change information corresponding to the first terminal according to the first combined data transmission parameter information;
generating second data transmission change information corresponding to the second terminal according to the second combined data transmission parameter information;
selecting target data transmission change information from the second data transmission change information according to the target terminal;
selecting the data transmission similarity between the first terminal and the target terminal from the data transmission similarities between the first terminal and the second terminal according to the target terminal;
and outputting the first data transmission change information, the target data transmission change information and the data transmission similarity of the first terminal and the target terminal.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the content recommendation apparatus of the present embodiment determines the parameter type of the parameter information to be acquired by the determination unit; acquiring first data transmission parameter information between a first terminal and a server in a network within a first preset time period by a first acquisition unit according to the parameter type; acquiring second data transmission parameter information between a second terminal and a server in the network within a second preset time period by a second acquisition unit according to the parameter type; acquiring, by the computing unit 304, data transmission similarity between the first terminal and the second terminal based on the first data transmission parameter information and the second data transmission parameter information; and selecting a target terminal similar to the data transmission of the first terminal from the second terminals by the selecting unit based on the data transmission similarity.
According to the scheme, the target terminal can be selected according to the data transmission similarity by calculating the data transmission similarity, so that the accuracy of selecting the target terminal is improved.
The embodiment of the invention also provides a terminal device, which can be integrated with any terminal selection device provided by the embodiment of the invention, and the terminal device can be a mobile phone, a tablet computer, a micro processing box, an unmanned aerial vehicle, an image acquisition device or the like.
For example, as shown in fig. 6, it shows a schematic structural diagram of a terminal device according to an embodiment of the present invention, specifically:
the terminal device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and input module 404 components. Those skilled in the art will appreciate that the server architecture shown in FIG. 6 is not meant to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the server, connects various parts of the entire server using various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the server. In some embodiments, processor 401 may include one or more processing cores; in some embodiments, processor 401 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the server, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The terminal device further includes a power supply 403 for supplying power to the various components, and in some embodiments, the power supply 403 may be logically connected to the processor 401 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The terminal device may also include an input module 404, the input module 404 being operable to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the server may further include a display unit and the like, which will not be described in detail herein. Specifically, in this embodiment, the processor 401 in the server loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application program stored in the memory 402, thereby implementing various functions as follows:
determining the parameter type of the parameter information to be acquired;
acquiring first data transmission parameter information between a first terminal and a server in a network within a first preset time period according to the parameter type;
acquiring second data transmission parameter information between a second terminal and the server within a second preset time period according to the parameter type, wherein the length of the second preset time period is greater than that of the first preset time period;
acquiring data transmission similarity between the first terminal and the second terminal based on the first data transmission parameter information and the second data transmission parameter information;
and selecting a target terminal similar to the data transmission of the first terminal from the second terminals based on the similarity.
The above detailed implementation of each operation can refer to the foregoing embodiments, and is not described herein again.
As can be seen from the above, the terminal device of this embodiment may determine the parameter type of the parameter information to be acquired; acquiring first data transmission parameter information between a first terminal and a server in a network within a first preset time period according to the parameter type; acquiring second data transmission parameter information between a second terminal and the server within a second preset time period according to the parameter type, wherein the length of the second preset time period is greater than that of the first preset time period; acquiring data transmission similarity between the first terminal and the second terminal based on the first data transmission parameter information and the second data transmission parameter information; and selecting a target terminal similar to the data transmission of the first terminal from the second terminals based on the similarity. According to the scheme of the invention, the data transmission similarity between the first terminal and the second terminal is calculated, and the target terminal is selected based on the data transmission similarity, so that accurate data support is provided for the selection of the terminal, and therefore, the accuracy of terminal selection is improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the content recommendation methods provided in the present application. For example, the instructions may perform the steps of:
determining the parameter type of the parameter information to be acquired;
acquiring first data transmission parameter information between a first terminal and a server in a network within a first preset time period according to the parameter type;
acquiring second data transmission parameter information between a second terminal and the server within a second preset time period according to the parameter type, wherein the length of the second preset time period is greater than that of the first preset time period;
acquiring data transmission similarity between the first terminal and the second terminal based on the first data transmission parameter information and the second data transmission parameter information;
and selecting a target terminal similar to the data transmission of the first terminal from the second terminals based on the similarity.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any content recommendation method provided in the embodiments of the present application, beneficial effects that can be achieved by any content recommendation method provided in the embodiments of the present application may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The foregoing detailed description is directed to a terminal method, an apparatus, a server, and a storage medium provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A method for selecting a terminal, comprising:
determining the parameter type of the parameter information to be acquired;
acquiring first data transmission parameter information between a first terminal and a server in a network within a first preset time period according to the parameter type; the first data transmission parameter information comprises a first data transmission parameter and acquisition time corresponding to the first data transmission parameter;
acquiring second data transmission parameter information between a second terminal and the server within a second preset time period according to the parameter type, wherein the length of the second preset time period is greater than that of the first preset time period; the second data transmission parameter information comprises second data transmission parameters and acquisition time corresponding to the second data transmission parameters;
determining selection reference time according to the parameter number corresponding to the parameter type;
selecting a first data transmission parameter to be combined from the first data transmission parameters according to the selection reference time;
combining the first data transmission parameters to be combined to obtain first combined data transmission parameter information;
selecting second data transmission parameter information to be combined from the second data transmission parameters according to the selection reference time;
combining the second data transmission parameter information to be combined to obtain second combined data transmission parameter information;
acquiring data transmission similarity between a first terminal and a second terminal according to the first combined data transmission parameter information and the second combined data transmission parameter information;
and selecting a target terminal similar to the data transmission of the first terminal from the second terminals based on the data transmission similarity.
2. The method for selecting a terminal according to claim 1, wherein the obtaining, according to the parameter type, first data transmission parameter information between the first terminal and a server in a network within a first preset time period comprises:
when the parameter type is a first parameter type, acquiring first subdata transmission parameter information between a first terminal and a first hierarchical server in a network as first data transmission parameter information;
when the parameter type is a second parameter type, acquiring first subdata transmission parameter information between the first terminal and a first level server in the network and second subdata transmission parameter information between the first level server and a second level server in the network;
and obtaining first data transmission parameter information based on the first subdata transmission parameter information and the second subdata transmission parameter information.
3. The terminal selection method of claim 1, wherein the determining the parameter type of the parameter information to be obtained comprises:
acquiring a first data transmission quantity between the first terminal and a first hierarchical server in a network;
acquiring a second data transmission quantity between a first level server in the network and a second level server in the network;
acquiring the ratio of the first data transmission quantity to the second data transmission quantity;
and determining the parameter type of the parameter information to be acquired according to the ratio.
4. The terminal selection method of claim 1, wherein the method further comprises:
generating first data transmission change information corresponding to the first terminal according to the first combined data transmission parameter information;
generating second data transmission change information corresponding to the second terminal according to the second combined data transmission parameter information;
selecting target data transmission change information from the second data transmission change information according to the target terminal;
and outputting the first data transmission change information, the target data transmission change information and the data transmission similarity of the first terminal and the target terminal.
5. The terminal selection method of claim 1, wherein the obtaining of the data transmission similarity between the first terminal and the second terminal according to the first combined data transmission parameter information and the second combined data transmission parameter information comprises:
carrying out magnitude comparison on the first combined data transmission parameter information and the second combined data transmission parameter information to obtain a magnitude comparison result;
determining a similarity measurement function according to the magnitude comparison result;
and acquiring the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information according to the similarity measurement function, and taking the data transmission similarity as the data transmission similarity of the first terminal and the second terminal.
6. The terminal selection method of claim 5, wherein the obtaining the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information according to the similarity metric function comprises:
creating a first eigenvector and a second eigenvector according to the first combined transmission parameter information and the second combined data transmission parameter information;
acquiring an included angle parameter between the first characteristic vector and the second characteristic vector;
and carrying out normalization processing on the included angle parameters to obtain the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information.
7. The terminal selection method of claim 5, wherein the obtaining the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information according to the similarity metric function comprises:
creating a first eigenvector and a second eigenvector according to the first combined transmission parameter information and the second combined data transmission parameter information;
acquiring Euclidean distance between the first feature vector and the second feature vector;
and carrying out normalization processing on the Euclidean distance to obtain the data transmission similarity of the first combined transmission parameter information and the second combined data transmission parameter information.
8. A terminal selection apparatus, comprising:
the determining unit is used for determining the parameter type of the parameter information to be acquired;
the first acquisition unit is used for acquiring first data transmission parameter information between the first terminal and a server in the network within a first preset time period according to the parameter type; the first data transmission parameter information comprises a first data transmission parameter and acquisition time corresponding to the first data transmission parameter;
the second obtaining unit is used for obtaining second data transmission parameter information between a second terminal and a server in the network within a second preset time period according to the parameter type; the second data transmission parameter information comprises second data transmission parameters and acquisition time corresponding to the second data transmission parameters;
the calculating unit is used for determining and selecting reference time according to the parameter quantity corresponding to the parameter type; selecting a first data transmission parameter to be combined from the first data transmission parameters according to the selection reference time; combining the first data transmission parameters to be combined to obtain first combined data transmission parameter information; selecting second data transmission parameter information to be combined from the second data transmission parameters according to the selection reference time; combining the second data transmission parameter information to be combined to obtain second combined data transmission parameter information; acquiring data transmission similarity between a first terminal and a second terminal according to the first combined data transmission parameter information and the second combined data transmission parameter information;
and the selecting unit is used for selecting a target terminal similar to the data transmission of the first terminal from the second terminals based on the data transmission similarity.
9. A computer-readable storage medium, on which a computer program is stored, which, when the computer program is run on a computer, causes the computer to perform the terminal selection method according to any one of claims 1 to 7.
CN201910495916.1A 2019-06-10 2019-06-10 Terminal selection method, device and storage medium Active CN110278250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910495916.1A CN110278250B (en) 2019-06-10 2019-06-10 Terminal selection method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910495916.1A CN110278250B (en) 2019-06-10 2019-06-10 Terminal selection method, device and storage medium

Publications (2)

Publication Number Publication Date
CN110278250A CN110278250A (en) 2019-09-24
CN110278250B true CN110278250B (en) 2021-11-30

Family

ID=67960607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910495916.1A Active CN110278250B (en) 2019-06-10 2019-06-10 Terminal selection method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110278250B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111967043B (en) * 2020-07-29 2023-08-11 深圳开源互联网安全技术有限公司 Method, device, electronic equipment and storage medium for determining data similarity

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6915284B2 (en) * 2002-04-18 2005-07-05 Hewlett-Packard Development Company, Lp. System and method for automated message response, within a system for harvesting community knowledge
CN103166917A (en) * 2011-12-12 2013-06-19 阿里巴巴集团控股有限公司 Method and system for network equipment identity recognition
CN103793513A (en) * 2014-02-10 2014-05-14 济南大学 Telecom tariff optimizing system and method based on adjacent mass data rapid analysis
CN104133851A (en) * 2014-07-07 2014-11-05 小米科技有限责任公司 Audio similarity detecting method, audio similarity detecting device and electronic equipment
CN104462093A (en) * 2013-09-13 2015-03-25 Sap欧洲公司 Personal recommendation scheme
CN105045916A (en) * 2015-08-20 2015-11-11 广东顺德中山大学卡内基梅隆大学国际联合研究院 Mobile game recommendation system and recommendation method thereof
CN105701706A (en) * 2016-01-28 2016-06-22 北京量科邦信息技术有限公司 A method for determining the credit rating of a user according to credit standing of contact persons
CN106204162A (en) * 2016-07-26 2016-12-07 郑州郑大智能科技股份有限公司 New networking power consumer electricity consumption mode prediction method under a kind of internet environment
CN106529189A (en) * 2016-11-24 2017-03-22 腾讯科技(深圳)有限公司 User classifying method, application server and application client-side
CN108664287A (en) * 2018-05-11 2018-10-16 腾讯科技(深圳)有限公司 Export method, apparatus, terminal and the storage medium of operation guide
CN109213597A (en) * 2018-08-01 2019-01-15 平安科技(深圳)有限公司 Resource allocation methods, device, computer equipment and computer readable storage medium
CN109308456A (en) * 2018-08-31 2019-02-05 北京字节跳动网络技术有限公司 The information of target object determines method, apparatus, equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6915284B2 (en) * 2002-04-18 2005-07-05 Hewlett-Packard Development Company, Lp. System and method for automated message response, within a system for harvesting community knowledge
CN103166917A (en) * 2011-12-12 2013-06-19 阿里巴巴集团控股有限公司 Method and system for network equipment identity recognition
CN104462093A (en) * 2013-09-13 2015-03-25 Sap欧洲公司 Personal recommendation scheme
CN103793513A (en) * 2014-02-10 2014-05-14 济南大学 Telecom tariff optimizing system and method based on adjacent mass data rapid analysis
CN104133851A (en) * 2014-07-07 2014-11-05 小米科技有限责任公司 Audio similarity detecting method, audio similarity detecting device and electronic equipment
CN105045916A (en) * 2015-08-20 2015-11-11 广东顺德中山大学卡内基梅隆大学国际联合研究院 Mobile game recommendation system and recommendation method thereof
CN105701706A (en) * 2016-01-28 2016-06-22 北京量科邦信息技术有限公司 A method for determining the credit rating of a user according to credit standing of contact persons
CN106204162A (en) * 2016-07-26 2016-12-07 郑州郑大智能科技股份有限公司 New networking power consumer electricity consumption mode prediction method under a kind of internet environment
CN106529189A (en) * 2016-11-24 2017-03-22 腾讯科技(深圳)有限公司 User classifying method, application server and application client-side
CN108664287A (en) * 2018-05-11 2018-10-16 腾讯科技(深圳)有限公司 Export method, apparatus, terminal and the storage medium of operation guide
CN109213597A (en) * 2018-08-01 2019-01-15 平安科技(深圳)有限公司 Resource allocation methods, device, computer equipment and computer readable storage medium
CN109308456A (en) * 2018-08-31 2019-02-05 北京字节跳动网络技术有限公司 The information of target object determines method, apparatus, equipment and storage medium

Also Published As

Publication number Publication date
CN110278250A (en) 2019-09-24

Similar Documents

Publication Publication Date Title
US10686686B2 (en) Performance monitoring in a distributed storage system
US20120317266A1 (en) Application Ratings Based On Performance Metrics
CN109993627B (en) Recommendation method, recommendation model training device and storage medium
CN112907128A (en) Data analysis method, device, equipment and medium based on AB test result
CN107453916A (en) A kind of topological realization method and a kind of cloud messenger service monitor supervision platform
US8307011B2 (en) System and method for determining overall utilization
CN114661830B (en) Data processing method, device, terminal and storage medium
CN113010805A (en) Index data processing method, device, equipment and storage medium
CN105027155A (en) Unifying cloud services for online sharing
CN110278250B (en) Terminal selection method, device and storage medium
CN105471938B (en) Server load management method and device
CN114040348A (en) Intelligent household equipment management method and device, electronic equipment and medium
CN108347355B (en) Application state detection method and device
US20140214826A1 (en) Ranking method and system
US9530024B2 (en) Recommendation system for protecting user privacy
CN115660344A (en) User scheduling method and device, electronic equipment and storage medium
CN110990219B (en) Computer monitoring method based on prediction model
EP2533177A1 (en) Application ratings based on performance metrics
CN114441848A (en) Power consumption determination method and device, electronic equipment and storage medium
CN111598390B (en) Method, device, equipment and readable storage medium for evaluating high availability of server
CN113298115A (en) User grouping method, device, equipment and storage medium based on clustering
CN109271580B (en) Search method, device, client and search engine
CN111104465A (en) CDN service data display method and device and electronic equipment
CN116485262B (en) Evaluation method of pricing strategy, electronic equipment and storage medium
CN116932789A (en) Content search method, device, terminal, storage medium, and program product

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