Authority matching verification method and device of terminal and application, communication equipment, readable storage medium and program product
By extracting and verifying application identifiers, terminal information and dynamic passwords in the application data stream, the problem of terminal device permission verification in application-aware networks is solved, and the permission matching verification of terminals and applications is realized to ensure network security.
Patent Information
- Application Number
- CN202411007637.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-12
AI Technical Summary
In application-aware networks, the diversity of intermediate equipment between the terminal equipment and the operator network makes it difficult for operators to effectively verify the permissions of terminal equipment, affecting network security.
By receiving the application data stream sent by the terminal device, the application identification, terminal information and dynamic password are extracted, and the data stream comes from the target application and the designated access terminal, so as to realize the permission matching verification between the terminal and the application, and ensure the legality of the data stream and security.
No matter how the terminal equipment connects to the network, the operator network can effectively verify the permission matching of the data flow, prevent information forgery, and ensure network security.
Smart Images

Figure CN118944930A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security technology, and in particular to a method, device, communication equipment, computer-readable storage medium and computer program product for checking permission matching between a terminal and an application. Background Art
[0002] With the continuous development of network technology, application-aware networks have emerged. In application-aware networks, network service providers can provide high-quality network services and precise network operations and maintenance for different applications to meet their personalized needs. Among them, some applications may have strict requirements on terminal devices, requiring the network to verify the permissions of terminal devices. However, since users often connect to the network in different places and in different ways, there may be multiple intermediate devices between terminal devices and operator networks, making it difficult for operator networks to effectively verify terminal devices. Summary of the invention
[0003] Based on this, it is necessary to provide a method, device, communication equipment, computer-readable storage medium and computer program product for checking the permission matching between a terminal and an application in order to solve the above technical problems.
[0004] In a first aspect, the present application provides a method for checking the permissions matching between a terminal and an application, comprising:
[0005] receiving application information sent by a first network element; the application information is extracted by the first network element from an application data stream received from a terminal;
[0006] According to the application information, obtaining an application identifier, terminal information and a dynamic password corresponding to the application data flow;
[0007] Verify, based on the application identifier, the terminal information, and the dynamic password, whether the application data flow corresponds to a target application and comes from a designated access terminal corresponding to the target application, and obtain a verification result of a permission match between the terminal and the application of the application data flow;
[0008] The authority matching verification result is sent to the first network element.
[0009] In one of the embodiments, the method further includes: obtaining a target application identifier of the target application, and designated terminal information of each designated access terminal corresponding to the target application; determining a designated dynamic token bound to each designated terminal information; maintaining a first association relationship between the target application identifier, each designated terminal information and a designated dynamic password generated by each designated dynamic token; verifying whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, the terminal information and the dynamic password, and obtaining a permission matching verification result between the terminal and the application of the application data flow, including: obtaining a second association relationship between the application identifier, the terminal information and the dynamic password; comparing the second association relationship with each first association relationship; if there is a first association relationship matching the second association relationship, obtaining a permission matching verification result of the application data flow is verification passed; if there is no first association relationship matching the second association relationship, obtaining a permission matching verification result of the application data flow is verification failed.
[0010] In one of the embodiments, after determining the designated dynamic token bound to each designated terminal information, the method further includes: sending the designated dynamic token bound to each designated terminal information to the corresponding designated access terminal.
[0011] In a second aspect, the present application also provides a method for verifying the permissions of a terminal and an application, the method comprising:
[0012] Acquire an application identifier, terminal information, and a dynamic password; wherein the dynamic password is generated by a dynamic token bound to the terminal information;
[0013] Adding application information including the application identifier, the terminal information and the dynamic password to an application data stream;
[0014] The application data stream is sent to the first network element.
[0015] In one of the embodiments, adding the application information including the application identifier, the terminal information and the dynamic password to the application data stream includes: adding the application information to a data packet header of a first data packet of the application data stream.
[0016] In one of the embodiments, before sending the application data stream to the first network element, it also includes: setting the application-aware identification type of the data packet header of the first data packet of the application data stream to a preset code; the preset code is used to indicate that the type of the application data stream is a type that requires permission matching verification between the terminal and the application.
[0017] In one of the embodiments, before reading the dynamic password from the dynamic token bound to the terminal information, the method includes: receiving the dynamic token sent by the second network element.
[0018] In a third aspect, the present application also provides a method for verifying the permissions of a terminal and an application, the method comprising:
[0019] receiving application data stream from a terminal;
[0020] Extracting application information of the application data stream; wherein the application information includes an application identifier, terminal information and a dynamic password corresponding to the application data stream;
[0021] Sending the application information to the second network element;
[0022] receiving a permission matching verification result from the second network element; wherein the permission matching verification result is obtained by the second network element verifying whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, the terminal information, and the dynamic password;
[0023] If the permission matching check result is a pass, forwarding the application data stream to the network channel corresponding to the target application;
[0024] If the permission matching check result is a check failure, the application data flow is discarded.
[0025] In one of the embodiments, after receiving the application data stream from the terminal, it includes: determining whether the application-aware identification type of the data packet header of the first data packet of the application data stream is a preset code; the preset code is used to indicate that the type of the application data stream is a type that requires a permission match verification between the terminal and the application; if so, executing the step of extracting the application information of the application data stream.
[0026] In one of the embodiments, extracting the application information of the application data stream includes: extracting the application information from a data packet header of a first data packet of the application data stream.
[0027] In a fourth aspect, the present application further provides a system for checking the authority matching between a terminal and an application, the system comprising: a terminal, a first network element, and a second network element;
[0028] The terminal is used to obtain an application identifier, terminal information and a dynamic password; wherein the dynamic password is generated by a dynamic token bound to the terminal information; adding the application information including the application identifier, the terminal information and the dynamic password to an application data stream; and sending the application data stream to the first network element;
[0029] The first network element is configured to receive the application data stream from the terminal; extract the application information from the application data stream; and send the application information to the second network element;
[0030] The second network element is configured to receive the application information sent by the first network element; obtain the application identifier, the terminal information and the dynamic password corresponding to the application data flow according to the application information; verify whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, the terminal information and the dynamic password, and obtain the permission matching verification result of the terminal and the application of the application data flow; and send the permission matching verification result to the first network element;
[0031] The first network element is also used to receive the permission matching check result from the second network element; if the permission matching check result is a pass, the application data stream is forwarded to the network channel corresponding to the target application; if the permission matching check result is a fail, the application data stream is discarded.
[0032] In a fifth aspect, the present application also provides a terminal and an application permission matching verification device, including:
[0033] A receiving module, configured to receive application information sent by a first network element; the application information is extracted by the first network element from an application data stream received from a terminal;
[0034] An acquisition module, used to obtain an application identifier, terminal information and a dynamic password corresponding to the application data flow according to the application information;
[0035] A verification module, configured to verify, based on the application identifier, the terminal information, and the dynamic password, whether the application data flow corresponds to a target application and comes from a designated access terminal corresponding to the target application, and obtain a permission matching verification result of the terminal of the application data flow and the application permission;
[0036] A sending module is used to send the authority matching verification result to the first network element.
[0037] In a sixth aspect, the present application also provides a terminal and an application permission matching verification device, including:
[0038] An acquisition module, used to acquire an application identifier, terminal information and a dynamic password; wherein the dynamic password is generated by a dynamic token bound to the terminal information;
[0039] An adding module, used for adding application information including the application identifier, the terminal information and the dynamic password to the application data flow;
[0040] A sending module is used to send the application data stream to the first network element.
[0041] In a seventh aspect, the present application also provides a terminal and an application permission matching verification device, including:
[0042] A first receiving module, used for receiving an application data stream from a terminal;
[0043] An extraction module, used to extract application information of the application data stream; wherein the application information includes an application identifier, terminal information and a dynamic password corresponding to the application data stream;
[0044] A sending module, used for sending the application information to the second network element;
[0045] A second receiving module is used to receive the permission matching verification result from the second network element; wherein the permission matching verification result is obtained by the second network element verifying whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, the terminal information, and the dynamic password;
[0046] A forwarding module, configured to forward the application data stream to a network channel corresponding to the target application if the permission matching check result is a passed check;
[0047] The discarding module is used to discard the application data flow if the permission matching check result is a check failure.
[0048] In an eighth aspect, the present application further provides a communication device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0049] receiving application information sent by a first network element; the application information is extracted by the first network element from an application data stream received from a terminal;
[0050] According to the application information, obtaining an application identifier, terminal information and a dynamic password corresponding to the application data flow;
[0051] Verify, based on the application identifier, the terminal information, and the dynamic password, whether the application data flow corresponds to a target application and comes from a designated access terminal corresponding to the target application, and obtain a verification result of a permission match between the terminal and the application of the application data flow;
[0052] The authority matching verification result is sent to the first network element.
[0053] In a ninth aspect, the present application further provides a communication device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0054] Acquire an application identifier, terminal information, and a dynamic password; wherein the dynamic password is generated by a dynamic token bound to the terminal information;
[0055] Adding application information including the application identifier, the terminal information and the dynamic password to an application data stream;
[0056] The application data stream is sent to the first network element.
[0057] In a tenth aspect, the present application further provides a communication device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0058] receiving application data stream from a terminal;
[0059] Extracting application information of the application data stream; wherein the application information includes an application identifier, terminal information and a dynamic password corresponding to the application data stream;
[0060] Sending the application information to the second network element;
[0061] receiving a permission matching verification result from the second network element; wherein the permission matching verification result is obtained by the second network element verifying whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, the terminal information, and the dynamic password;
[0062] If the permission matching check result is a pass, forwarding the application data stream to the network channel corresponding to the target application;
[0063] If the permission matching check result is a check failure, the application data flow is discarded.
[0064] In an eleventh aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0065] receiving application information sent by a first network element; the application information is extracted by the first network element from an application data stream received from a terminal;
[0066] According to the application information, obtaining an application identifier, terminal information and a dynamic password corresponding to the application data flow;
[0067] Verify, based on the application identifier, the terminal information, and the dynamic password, whether the application data flow corresponds to a target application and comes from a designated access terminal corresponding to the target application, and obtain a verification result of a permission match between the terminal and the application of the application data flow;
[0068] The authority matching verification result is sent to the first network element.
[0069] In a twelfth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0070] Acquire an application identifier, terminal information, and a dynamic password; wherein the dynamic password is generated by a dynamic token bound to the terminal information;
[0071] Adding application information including the application identifier, the terminal information and the dynamic password to an application data stream;
[0072] The application data stream is sent to the first network element.
[0073] In a thirteenth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0074] receiving application data stream from a terminal;
[0075] Extracting application information of the application data stream; wherein the application information includes an application identifier, terminal information and a dynamic password corresponding to the application data stream;
[0076] Sending the application information to the second network element;
[0077] receiving a permission matching verification result from the second network element; wherein the permission matching verification result is obtained by the second network element verifying whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, the terminal information, and the dynamic password;
[0078] If the permission matching check result is a pass, forwarding the application data stream to the network channel corresponding to the target application;
[0079] If the permission matching check result is a check failure, the application data flow is discarded.
[0080] In a fourteenth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0081] receiving application information sent by a first network element; the application information is extracted by the first network element from an application data stream received from a terminal;
[0082] According to the application information, obtaining an application identifier, terminal information and a dynamic password corresponding to the application data flow;
[0083] Verify, based on the application identifier, the terminal information, and the dynamic password, whether the application data flow corresponds to a target application and comes from a designated access terminal corresponding to the target application, and obtain a verification result of a permission match between the terminal and the application of the application data flow;
[0084] The authority matching verification result is sent to the first network element.
[0085] In a fifteenth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0086] Acquire an application identifier, terminal information, and a dynamic password; wherein the dynamic password is generated by a dynamic token bound to the terminal information;
[0087] Adding application information including the application identifier, the terminal information and the dynamic password to an application data stream;
[0088] The application data stream is sent to the first network element.
[0089] In a sixteenth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0090] receiving application data stream from a terminal;
[0091] Extracting application information of the application data stream; wherein the application information includes an application identifier, terminal information and a dynamic password corresponding to the application data stream;
[0092] Sending the application information to the second network element;
[0093] receiving a permission matching verification result from the second network element; wherein the permission matching verification result is obtained by the second network element verifying whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, the terminal information, and the dynamic password;
[0094] If the permission matching check result is a pass, forwarding the application data stream to the network channel corresponding to the target application;
[0095] If the permission matching check result is a check failure, the application data flow is discarded.
[0096] The above-mentioned terminal and application permission matching verification method, device, communication equipment, computer-readable storage medium and computer program product first receive application information sent by the first network element, the application information is extracted by the first network element from the application data stream received from the terminal, and the application identifier, terminal information and dynamic password corresponding to the application data stream are obtained according to the application information, and then the application data stream is verified according to the application identifier, terminal information and dynamic password to see whether it corresponds to the target application and comes from the designated access terminal corresponding to the target application, and the permission matching verification result of the terminal and application permissions of the application data stream is obtained, and then the permission matching verification result is sent to the first network element. The method enables the terminal to add application information including application identifier, terminal information and dynamic password to the application data stream, and the first network element extracts the application information from the received application data stream, so that no matter how the terminal accesses the network, the operator network can obtain the application identifier, terminal information and dynamic password corresponding to the application data stream, and then can verify whether the application data stream corresponds to the target application and whether it comes from the designated access terminal corresponding to the target application according to the application identifier, terminal information and dynamic password, so as to effectively realize the permission matching verification of the terminal and application of the application data stream. Moreover, since the application identification, terminal information and dynamic password are used for verification at the same time during the verification process, information forgery can be effectively prevented. After obtaining the authority matching verification result, it is sent to the first network element, so that the first network element can process the received application data stream differently according to whether the authority matching verification result is verified, thereby effectively ensuring network security. BRIEF DESCRIPTION OF THE DRAWINGS
[0097] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0098] Figure 1 A schematic diagram of the structure of a system for checking the permissions of a terminal and an application in one embodiment;
[0099] Figure 2 An application environment diagram of a system for checking the authority matching between a terminal and an application in one embodiment;
[0100] Figure 3 is a schematic diagram of the format of a data packet header in one embodiment;
[0101] Figure 4 A schematic diagram of the format of an application-aware identification field in an embodiment;
[0102] Figure 5 A schematic diagram of a flow chart of a method for checking permissions matching between a terminal and an application in one embodiment;
[0103] Figure 6 A schematic diagram of a process for obtaining a permission matching verification result in one embodiment;
[0104] Figure 7 It is a flowchart of a method for checking the permissions between a terminal and an application in another embodiment;
[0105] Figure 8 It is a flowchart of a method for checking the permissions between a terminal and an application in another embodiment;
[0106] Fig. 9 It is a structural block diagram of a device for checking the authority matching between a terminal and an application in one embodiment;
[0107] Fig.10 It is a structural block diagram of a device for checking the authority matching between a terminal and an application in another embodiment;
[0108] Fig.11 It is a structural block diagram of a device for checking the authority matching between a terminal and an application in another embodiment;
[0109] Fig.12 is an internal structure diagram of a communication device in one embodiment;
[0110] Fig.13 FIG. 4 is a diagram showing the internal structure of a communication device in another embodiment. DETAILED DESCRIPTION
[0111] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0112] In an exemplary embodiment, Figure 1 As shown, a system for checking the authority matching between a terminal and an application is provided, and the system may include: a terminal, a first network element, and a second network element.
[0113] For example, the system in the embodiment of the present application can be applied to an application-aware IPv6 network (APNv6). Figure 2, which is an exemplary application environment of the terminal and application permission matching verification system in the embodiment of the present application. Among them, the terminal can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. Among them, the first network element can be a network edge node of the operator network, and the second network element can be a communication device in the operator network. Among them, the network node in the application environment can forward the data stream forwarded by the first network element so that it can be transmitted to the corresponding data receiving end.
[0114] Among them, the terminal can be used to obtain application identification, terminal information and dynamic password; wherein the dynamic password is generated by a dynamic token bound to the terminal information; the application information including the application identification, terminal information and dynamic password is added to the application data stream; and the application data stream is sent to the first network element.
[0115] Exemplarily, the terminal may be installed with an application, and a dynamic token bound to the terminal information of the terminal. Exemplarily, the application may be an application that requires a permission matching check between the terminal and the application, wherein the provider of the application may negotiate with the operator in advance to determine its corresponding application identifier. Exemplarily, the terminal information may include a unique identifier related to the hardware of the terminal, such as the Media Access Control (MAC) address of the network card of the terminal, or the International Mobile Equipment Identity (IMEI) of the terminal, or the Permanent Equipment Identifier (PEI) of the terminal, or other specific physical hardware codes of the terminal. Exemplarily, the dynamic token may be a dynamic security password software token uniquely bound to the terminal information, which can generate a dynamic password.
[0116] Among them, when the terminal runs the application for communication, it can obtain the application identification of the application, read the terminal information related to the hardware, and read the dynamic password from the dynamic token, and then add the application information including the application identification, terminal information and dynamic password to the application data flow of the application and send it to the network. Exemplarily, the application data flow can be a data flow based on application-aware IPv6 Networking (APNv6), which can be received by the first network element in the network.
[0117] Optionally, in some implementations, adding application information including an application identifier, terminal information, and a dynamic password to an application data stream may include: adding the application information to a data packet header of a first data packet of the application data stream.
[0118] Specifically, the application data stream may include multiple data packets, wherein the terminal may add application information including application identification, terminal information and dynamic password to the data packet header of the first data packet of the application data stream.
[0119] Exemplarily, the data packet header of the first data packet of the application data flow may be an application-aware IPv6 Networking (APNv6) data packet header. Figure 3 As shown, the data packet header may include fields such as application awareness identification type (APN-ID-Type), flags (Flags), network performance requirement parameter type (APN-Para-Type), application awareness identification (APN-ID), etc. Optionally, the data packet header may also include fields such as intent (Intent), network performance requirement parameter (APN-Para), etc.
[0120] Exemplarily, the application information including the application identifier, terminal information and dynamic password can be added to the application-aware identifier (APN-ID) field of the data packet header. Figure 4 As shown, the application perception identification (APN-ID) field may include application identification (APP-ID), terminal information (Host-ID), dynamic password (Dynamic Password), reserved field (Reserved) and other fields. Among them, the length of the application identification (APP-ID) field may be 32 bits (bit), the length of the terminal information (Host-ID) field may be 64 bits (bit), the length of the dynamic password (Dynamic Password) field may be 16 bits (bit), and the length of the reserved field (Reserved) field may be 16 bits (bit).
[0121] The first network element may be used to receive an application data stream from a terminal; extract application information from the application data stream; and send the application information to a second network element.
[0122] Exemplarily, the first network element may receive an application data stream from a terminal and extract application information therein. Then, the application information may be sent to the second network element. Optionally, in the case where the application information is added to a data packet header of a first data packet of the application data stream, the first network element may extract the application information from a data packet header of the first data packet of the application data stream.
[0123] Among them, the second network element can be used to receive application information sent by the first network element; obtain the application identifier, terminal information and dynamic password corresponding to the application data flow according to the application information; verify whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, terminal information and dynamic password, and obtain the permission matching verification result of the terminal and application of the application data flow; send the permission matching verification result to the first network element.
[0124] Exemplarily, after receiving the application information sent by the first network element, the second network element can obtain the application identifier, terminal information and dynamic password contained in the application information. Then, based on the application identifier, terminal information and dynamic password, it can be verified whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application, and obtain the corresponding terminal and application permission matching verification result. Among them, the target application can be an application that requires a terminal and application permission matching verification, which can correspond to one or more designated access terminals.
[0125] Optionally, the second network element may store a first association relationship between a target application identifier corresponding to the target application, designated terminal information of each designated access terminal corresponding to the target application, and a designated dynamic password corresponding to each designated access terminal. By comparing the second association relationship between the application identifier, terminal information, and dynamic password in the received application information with the stored first association relationship, a permission matching check between the terminal and the application of the application information flow can be implemented. Exemplarily, when there is a first association relationship that matches the second association relationship, it can be determined that the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application. When there is no first association relationship that matches the second association relationship, it can be determined that the application data flow does not correspond to the target application and / or does not come from the designated access terminal corresponding to the target application.
[0126] Wherein, when the verification determines that the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application, the result of the permission matching verification may be a verification pass; when the verification determines that the application data flow does not correspond to the target application and / or does not come from the designated access terminal corresponding to the target application, the result of the permission matching verification may be a verification failure. Then, the second network element may send the obtained permission matching verification result to the first network element.
[0127] Among them, the first network element can also be used to receive the permission matching check result from the second network element; if the permission matching check result is a pass, the application data stream is forwarded to the network channel corresponding to the target application; if the permission matching check result is a fail, the application data stream is discarded.
[0128] Exemplarily, the first network element may perform different processing on the application data flow according to the permission matching check result received from the second network element.
[0129] If the permission matching check result is a pass, the application data stream can be forwarded to the network channel corresponding to the target application. For example, the network channel can be a service level agreement (SLA) network channel corresponding to the target application. Figure 2 As shown, the network nodes in the network channel can further forward the application data flow to its corresponding data receiving end.
[0130] If the permission matching check result is a check failure, the application data flow may be discarded.
[0131] In the above-mentioned terminal and application authority matching verification system, by making the terminal add application information including application identification, terminal information, and dynamic password in the application data stream, and the first network element extracts the application information from the received application data stream and sends it to the second network element, so that no matter how the terminal accesses the network, the operator network can obtain the application identification, terminal information and dynamic password corresponding to the application data stream, and then can verify whether the application data stream corresponds to the target application and whether it comes from the designated access terminal corresponding to the target application according to the application identification, terminal information and dynamic password, so that the terminal and application authority matching verification of the application data stream can be effectively realized. Moreover, since the application identification, terminal information and dynamic password are used for verification at the same time during the verification process, the situation of information forgery can be effectively prevented. After obtaining the authority matching verification result, it is sent to the first network element, so that the first network element can perform different processing on the received application data stream according to whether the authority matching verification result is verified, so that network security can be effectively guaranteed.
[0132] In an exemplary embodiment, the terminal may also be used to: before sending the application data stream to the first network element, set the application-aware identification type of the data packet header of the first data packet of the application data stream to a preset code. The preset code is used to indicate that the type of the application data stream is a type that requires a permission match check between the terminal and the application.
[0133] For example, Figure 3 Taking the data packet header shown as an example, the terminal can set the application-aware identification type (APN-ID-Type) field therein to a preset code. The preset code can be pre-set by the operator network and is used to indicate that the type of application data flow is a code that requires a permission match check between the terminal and the application. By setting the application-aware identification type to the preset code, it can be indicated that the type of application data flow is a type that requires a permission match check between the terminal and the application.
[0134] The first network element can also be used to: after receiving the application data stream from the terminal, determine whether the application-aware identification type of the data packet header of the first data packet of the application data stream is a preset code; if so, execute the step of extracting application information of the application data stream.
[0135] After receiving the application data stream, the first network element first determines whether the application-aware identification type of the data packet header of its first data packet is the preset code. If the application-aware identification type is the preset code, it can be determined that the type of the application data stream is a type that requires a permission match check between the terminal and the application, and then the step of extracting the application information of the application data stream can be performed. It can be understood that if the application-aware identification type is not the preset code, it can be determined that the type of the application data stream is not a type that requires a permission match check between the terminal and the application, so that the permission match check between the terminal and the application can be omitted.
[0136] In this embodiment, by setting the application-aware identification type of the data packet header of the first data packet of the application data stream to a preset code, the first network element can determine whether it needs to perform a permission matching check between the terminal and the application when receiving the first data packet of the data stream, and adopt different processing methods based on the judgment result, thereby effectively improving the efficiency of the permission matching check between the terminal and the application and saving unnecessary costs.
[0137] In an exemplary embodiment, the second network element can also be used to obtain the target application identifier of the target application and the designated terminal information of each designated access terminal corresponding to the target application; determine the designated dynamic token bound to each designated terminal information; and maintain the first association relationship between the target application identifier, each designated terminal information and the designated dynamic password generated by each designated dynamic token.
[0138] Exemplarily, the second network element may store a target application identifier of the target application and designated terminal information of each designated access terminal corresponding thereto. The target application identifier may be determined in advance by negotiation between the operator and the provider of the target application. The designated terminal information of each designated access terminal corresponding to the target application may be pre-registered by the operator network, which may include a unique identifier related to the hardware of the designated access terminal that can be read by the application. Exemplarily, for each designated access terminal corresponding to the target application, a designated dynamic token uniquely bound to the designated terminal information of the designated access terminal may be determined respectively, and the designated dynamic token may generate a corresponding designated dynamic password.
[0139] Based on the target application identifier of the target application, the designated terminal information of each designated access terminal, and the designated dynamic token bound to each designated terminal information, the second network element can establish and maintain a first association relationship between the target application identifier, each designated terminal information, and the designated dynamic password generated by each designated dynamic token. Exemplarily, the second network element can store and maintain corresponding data through a database.
[0140] Among them, the second network element, when verifying whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application based on the application identification, terminal information, and dynamic password, and obtaining the permission matching verification result of the terminal and application of the application data flow, can also obtain the second association relationship between the application identification, terminal information, and dynamic password; compare the second association relationship with each first association relationship; if there is a first association relationship that matches the second association relationship, the permission matching verification result of the application data flow is that the verification passed; if there is no first association relationship that matches the second association relationship, the permission matching verification result of the application data flow is that the verification failed.
[0141] Based on each first association relationship, after obtaining the application identifier, terminal information, and dynamic password corresponding to the application data flow, the second network element can further obtain the corresponding second association relationship and compare the second association relationship with each first association relationship.
[0142] Among them, it can be understood that when the application data flow is sent by the designated access terminal corresponding to the target application through the target application, its corresponding application identifier can match the target application identifier, and the designated terminal information stored in the second network element also contains designated terminal information that matches the corresponding terminal information, and the designated dynamic token bound to the designated terminal information can have a corresponding relationship with the dynamic token installed on the terminal, so that the designated dynamic password generated by the designated dynamic token can match the dynamic password generated by the dynamic token.
[0143] Optionally, in an exemplary embodiment, the second network element may also be used to send the designated dynamic token bound to each designated terminal information to each corresponding designated access terminal after determining the designated dynamic token bound to each designated terminal information. The terminal may also be used to receive the dynamic token sent by the second network element. Based on this, when the terminal is a designated access terminal corresponding to the target application, it can directly obtain the designated dynamic token bound to the designated terminal information corresponding to the second network element, so that the token can be used to generate a dynamic password that is the same as the designated dynamic password corresponding to the designated terminal information.
[0144] It is understandable that, in some other implementations, the specified dynamic token bound to the specified terminal information may correspond to the dynamic token installed in the terminal, but they do not have to be exactly the same.
[0145] Based on this, when the application data stream is sent by the designated access terminal corresponding to the target application through the target application, the second association relationship between the corresponding application identifier, terminal information and dynamic password is compared with each first association relationship to obtain a first association relationship matching the second association relationship.
[0146] Based on this, when there is a first association relationship that matches the second association relationship, the permission matching check result of the application data flow can be obtained as passed; when there is no first association relationship that matches the second association relationship, the permission matching check result of the application data flow can be obtained as failed.
[0147] In this embodiment, the second network element maintains the first association relationship between the target application identifier, each designated terminal information and the designated dynamic password generated by each designated dynamic token, and after obtaining the second association relationship between the application identifier, terminal information and dynamic password of the application data flow, it is compared with each first association relationship, so as to efficiently obtain the permission matching verification result of the terminal and application of the application data flow.
[0148] In order to further explain the terminal and application permission matching verification system of the present application, the following is a detailed description of the system through an embodiment:
[0149] Please continue to refer to Figure 1 and Figure 2 The terminal and application permission matching verification system in the embodiment of the present application may include a terminal, a first network element, and a second network element.
[0150] Among them, the second network element can be used to obtain the target application identifier of the target application and the designated terminal information of each designated access terminal corresponding to the target application, determine the designated dynamic token bound to each designated terminal information, and maintain the first association relationship between the target application identifier, each designated terminal information and the designated dynamic password generated by each designated dynamic token.
[0151] The second network element may also be used to send a designated dynamic token bound with each designated terminal information to each corresponding designated access terminal.
[0152] The terminal may be used to receive a dynamic token sent by the second network element. Exemplarily, when the terminal is a designated access terminal corresponding to the target application, the dynamic token may be a designated dynamic token bound to the terminal information corresponding to the terminal.
[0153] The terminal can also be used to obtain an application identifier, terminal information and a dynamic password when running an application for communication, wherein the dynamic password is generated by a dynamic token bound to the terminal information. Then, the application information including the application identifier, terminal information and dynamic password can be added to the data packet header of the first data packet of the application data stream, and the application-aware identifier type of the data packet header of the first data packet of the application data stream can be set to a preset code. The preset code is used to indicate that the type of the application data stream is a type that requires a permission match check between the terminal and the application. Then, the application data stream can be sent to the first network element. The application data stream can be a data stream based on an application-aware IPv6 network (APNv6), and the data packet header can be an application-aware IPv6 network (APNv6) data packet header.
[0154] Among them, the first network element can be used to receive an application data stream from a terminal, and determine whether the application-aware identification type of the data packet header of the first data packet of the application data stream is a preset code. If so, extract application information from the data packet header of the first data packet of the application data stream, and send the application information to the second network element.
[0155] Among them, the second network element can also be used to receive application information sent by the first network element, and obtain the application identifier, terminal information and dynamic password corresponding to the application data flow according to the application information. Then, the second association relationship between the application identifier, terminal information and dynamic password can be obtained, and then the second association relationship can be compared with each first association relationship. Among them, if there is a first association relationship that matches the second association relationship, the permission matching verification result of the application data flow is obtained as verification passed. If there is no first association relationship that matches the second association relationship, the permission matching verification result of the application data flow is obtained as verification failed. Then, the obtained permission matching verification result can be sent to the first network element.
[0156] The first network element may also be used to receive the permission matching check result from the second network element. If the permission matching check result is a pass, the application data stream is forwarded to the network channel corresponding to the target application; if the permission matching check result is a fail, the application data stream is discarded.
[0157] In this embodiment, by adding application identification, terminal information and dynamic password to the APN packet header of the IPv6 data packet, the application identification, terminal information and dynamic password are packaged in the IP header during communication. The network extracts the information to implement the permission matching verification of the terminal and the application, and accesses or blocks the specific network path of the data packet to the application according to the verification result. In this process, the terminal information is a globally unique identification related to the hardware that can be read by the application, and the verification of the dynamic password is superimposed, which can effectively prevent the forgery of the data packet. Based on this, the system of this embodiment can realize the verification of the access terminal for accessing a specific application, and no matter how the user's terminal uses to access the network, the permission matching verification of the terminal and the application can be realized through the system.
[0158] Based on the same inventive concept, the embodiment of the present application also provides a method for checking the permissions matching between a terminal and an application, which can be applied to Figure 1 or Figure 2 In the application environment shown. Among them, the implementation scheme for solving the problem of the method for checking the permission matching between the terminal and the application provided in the embodiment of the present application is similar to the implementation scheme recorded in one or more embodiments of the method for checking the permission matching between the terminal and the application, so the specific limitations in the one or more embodiments of the method for checking the permission matching between the terminal and the application provided below can refer to the limitations of the method for checking the permission matching between the terminal and the application above, and will not be repeated here.
[0159] In an exemplary embodiment, Figure 5 As shown, a method for checking the permissions of a terminal and an application is provided, and the method is applied to Figure 1 or Figure 2Taking the second network element shown as an example, the following steps are included:
[0160] Step S501: receiving application information sent by a first network element.
[0161] The second network element may be a communication device in the operator network, which may be connected to the first network element and receive application information sent from the first network element. The first network element may be a network edge node of the operator network, which may receive an application data stream sent by a terminal, extract the corresponding application information from the application data stream, and then send it to the second network element. Exemplarily, the application data stream may be a data stream based on an application-aware IPv6 Networking (APNv6).
[0162] Step S502: Obtain the application identifier, terminal information and dynamic password corresponding to the application data flow according to the application information.
[0163] The application information may include an application identifier, terminal information, and a dynamic password. The application identifier may be an identifier of an application corresponding to the application data stream. Exemplarily, the application identifier may be determined in advance by negotiation between the provider of the application and the operator. The terminal information may include a unique identifier related to the hardware of the terminal that sends the application data stream, such as the media access control (MAC) address of the network card of the terminal, or the international mobile equipment identity (IMEI) of the terminal, or the permanent equipment identifier (PEI) of the terminal, or other specific physical hardware codes of the terminal. The dynamic password may be generated by a dynamic token installed by the terminal that is uniquely bound to the terminal information.
[0164] Step S503: Verify whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, terminal information and dynamic password, and obtain the result of the verification of the authority matching between the terminal and the application of the application data flow.
[0165] According to the application identifier, terminal information and dynamic password, it is possible to verify whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application, and obtain the corresponding terminal and application permission matching verification result. The target application may be an application that requires a terminal and application permission matching verification, which may correspond to one or more designated access terminals.
[0166] Optionally, the second network element may store a first association relationship between a target application identifier corresponding to the target application, designated terminal information of each designated access terminal corresponding to the target application, and a designated dynamic password corresponding to each designated access terminal. By comparing the second association relationship between the application identifier, terminal information, and dynamic password in the received application information with the stored first association relationship, a permission matching check between the terminal and the application of the application information flow can be implemented. Exemplarily, when there is a first association relationship that matches the second association relationship, it can be determined that the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application. When there is no first association relationship that matches the second association relationship, it can be determined that the application data flow does not correspond to the target application and / or does not come from the designated access terminal corresponding to the target application.
[0167] Among them, when the verification determines that the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application, the permission matching verification result may be a verification pass; when the verification determines that the application data flow does not correspond to the target application and / or does not come from the designated access terminal corresponding to the target application, the permission matching verification result may be a verification fail.
[0168] Step S504: Send the authority matching verification result to the first network element.
[0169] The second network element may send the obtained authority matching verification result to the first network element.
[0170] The above-mentioned method for checking the authority matching between the terminal and the application, by making the terminal add application information including application identification, terminal information, and dynamic password in the application data stream, and the first network element extracts the application information from the received application data stream, so that no matter how the terminal accesses the network, the operator network can obtain the application identification, terminal information, and dynamic password corresponding to the application data stream, and then can verify whether the application data stream corresponds to the target application and whether it comes from the designated access terminal corresponding to the target application according to the application identification, terminal information, and dynamic password, so as to effectively realize the authority matching verification between the terminal and the application of the application data stream. Moreover, since the application identification, terminal information, and dynamic password are used for verification at the same time during the verification process, the situation of information forgery can be effectively prevented. After obtaining the authority matching verification result, it is sent to the first network element, so that the first network element can perform different processing on the received application data stream according to whether the authority matching verification result is verified, so as to effectively ensure network security.
[0171] In an exemplary embodiment, Figure 6 As shown, the method may also include:
[0172] Step S601: acquiring a target application identifier of a target application and designated terminal information of each designated access terminal corresponding to the target application.
[0173] Exemplarily, the second network element may store a target application identifier of the target application and designated terminal information of each designated access terminal corresponding thereto. In this step, the target application identifier and the designated terminal information may be directly acquired.
[0174] The target application identifier may be determined by the operator and the provider of the target application in advance through negotiation. The designated terminal information of each designated access terminal corresponding to the target application may be pre-registered by the operator network, which may include a unique hardware-related identifier of the designated access terminal that can be read by the application.
[0175] Step S602: determine the designated dynamic token bound to each designated terminal information.
[0176] Exemplarily, for each designated access terminal corresponding to the target application, a designated dynamic token uniquely bound to the designated terminal information of the designated access terminal may be determined respectively, and the designated dynamic token may generate a corresponding designated dynamic password.
[0177] Step S603: maintaining a first association relationship between the target application identifier, each designated terminal information, and a designated dynamic password generated by each designated dynamic token.
[0178] Exemplarily, based on the target application identifier of the target application, the designated terminal information of each designated access terminal, and the designated dynamic token bound to each designated terminal information, a first association relationship between the target application identifier, each designated terminal information, and the designated dynamic password generated by each designated dynamic token can be established and maintained. Exemplarily, the second network element can store and maintain corresponding data through a database.
[0179] Among them, the step of verifying whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, terminal information, and dynamic password, and obtaining the result of the verification of the authority matching between the terminal and the application of the application data flow may include:
[0180] Step S604: obtaining a second association relationship between the application identifier, the terminal information, and the dynamic password.
[0181] Step S605: compare the second association relationship with each first association relationship.
[0182] Based on each first association relationship, in this step, the second association relationship between the application identifier, the terminal information and the dynamic password may be compared with each first association relationship.
[0183] Among them, it can be understood that when the application data flow is sent by the designated access terminal corresponding to the target application through the target application, its corresponding application identifier can match the target application identifier, and the designated terminal information stored in the second network element also contains designated terminal information that matches the corresponding terminal information, and the designated dynamic token bound to the designated terminal information can have a corresponding relationship with the dynamic token installed on the terminal, so that the designated dynamic password generated by the designated dynamic token can match the dynamic password generated by the dynamic token.
[0184] Step S606: If there is a first association relationship that matches the second association relationship, the permission matching check result of the application data flow is obtained as passed.
[0185] When there is a first association relationship matching the second association relationship, it can be determined that the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application. Based on this, the permission matching check result of the application data flow can be obtained as passed.
[0186] Step S607: If there is no first association relationship matching the second association relationship, the permission matching check result of the application data flow is obtained as failure to pass the check.
[0187] When there is no first association relationship matching the second association relationship, it can be determined that the application data flow does not correspond to the target application and / or does not come from the designated access terminal corresponding to the target application. Based on this, the permission matching check result of the application data flow can be obtained as verification failure.
[0188] In this embodiment, the second network element maintains the first association relationship between the target application identifier, each designated terminal information and the designated dynamic password generated by each designated dynamic token, and after obtaining the second association relationship between the application identifier, terminal information and dynamic password of the application data flow, it is compared with each first association relationship, so that the permission matching verification result of the terminal and application of the application data flow can be efficiently obtained.
[0189] In an exemplary embodiment, after determining the designated dynamic token bound to each designated terminal information, the method further includes: sending the designated dynamic token bound to each designated terminal information to each corresponding designated access terminal.
[0190] Based on this, the designated access terminal corresponding to the target application can directly obtain the designated dynamic token bound to the designated terminal information corresponding to it in the second network element, so as to use the token to generate a dynamic password identical to the designated dynamic password corresponding to the designated terminal information.
[0191] In this embodiment, by sending the designated dynamic token bound to each designated terminal information to each corresponding designated access terminal, the designated dynamic password maintained by the second network element can be kept consistent with the dynamic password generated by the dynamic token in the designated terminal, so that subsequent verification can be more convenient.
[0192] In an exemplary embodiment, Figure 7 As shown, a method for checking the permissions of a terminal and an application is provided, and the method is applied to Figure 1 or Figure 2 The terminal shown in the figure is used as an example for explanation, and the following steps are included:
[0193] Step S701, obtaining application identification, terminal information and dynamic password.
[0194] Exemplarily, the terminal may be installed with an application and a dynamic token bound to the terminal information of the terminal. When the terminal runs the application for communication, it may obtain the application identifier of the application, read the hardware-related terminal information, and read the dynamic password from the dynamic token bound to the terminal information.
[0195] Optionally, the application may be an application that requires a permission match check between the terminal and the application, wherein the provider of the application may negotiate with the operator in advance to determine its corresponding application identifier. Optionally, the terminal information may include a unique identifier related to the hardware of the terminal, such as the Media Access Control (MAC) address of the network card of the terminal, or the International Mobile Equipment Identity (IMEI) of the terminal, or the Permanent Equipment Identifier (PEI) of the terminal, or other specific physical hardware codes of the terminal. Optionally, the dynamic token may be a dynamic security password software token that is uniquely bound to the terminal information, which can generate a dynamic password.
[0196] Step S702: Add application information including application identification, terminal information and dynamic password to the application data flow.
[0197] The application data flow may be a data flow corresponding to the application, which may be a data flow based on an application-aware IPv6 Networking (APNv6). In this step, application information including an application identifier, terminal information, and a dynamic password may be added to the application data flow.
[0198] Step S703: Send the application data stream to the first network element.
[0199] The first network element may be a network edge node of an operator network, which may receive the application data stream sent by the terminal to the network.
[0200] The above-mentioned method for verifying the permission matching between the terminal and the application adds the application identifier, terminal information and dynamic password to the application data stream, and sends the application data stream to the first network element, so that no matter how the network is accessed, the operator network can obtain the application identifier, terminal information and dynamic password corresponding to the application data stream, and then the permission matching between the terminal and the application can be verified on the application data stream.
[0201] In an exemplary embodiment, adding application information including an application identifier, terminal information, and a dynamic password to an application data stream may include: adding the application information to a data packet header of a first data packet of the application data stream.
[0202] The application data stream may include multiple data packets. In this embodiment, the terminal may add application information including application identification, terminal information and dynamic password to the data packet header of the first data packet of the application data stream.
[0203] Exemplarily, the data packet header of the first data packet of the application data flow may be an application-aware IPv6 Networking (APNv6) data packet header. Figure 3 As shown, the data packet header may include fields such as application awareness identification type (APN-ID-Type), flags (Flags), network performance requirement parameter type (APN-Para-Type), application awareness identification (APN-ID), etc. Optionally, the data packet header may also include fields such as intent (Intent), network performance requirement parameter (APN-Para), etc.
[0204] Exemplarily, the application information including the application identifier, terminal information and dynamic password can be added to the application-aware identifier (APN-ID) field of the data packet header. Figure 4As shown, the application perception identification (APN-ID) field may include application identification (APP-ID), terminal information (Host-ID), dynamic password (Dynamic Password), reserved field (Reserved) and other fields. Among them, the length of the application identification (APP-ID) field may be 32 bits (bit), the length of the terminal information (Host-ID) field may be 64 bits (bit), the length of the dynamic password (Dynamic Password) field may be 16 bits (bit), and the length of the reserved field (Reserved) field may be 16 bits (bit).
[0205] In this embodiment, by adding application information to the data packet header of the first data packet of the application data stream, the first network element can extract the application information after receiving the first data packet of the application data stream, thereby effectively improving the overall verification efficiency.
[0206] In an exemplary embodiment, before sending the application data stream to the first network element, it may also include: setting the application-aware identification type of the data packet header of the first data packet of the application data stream to a preset code; the preset code is used to indicate that the type of the application data stream is a type that requires permission matching verification between the terminal and the application.
[0207] In this embodiment, the terminal may set the application-aware identification type of the data packet header of the first data packet of the application data stream to a preset code, thereby indicating that the type of the application data stream is a type that requires a permission match check between the terminal and the application.
[0208] For example, Figure 3 Taking the data packet header shown as an example, the terminal can set the application-aware identification type (APN-ID-Type) field therein to a preset code. The preset code can be pre-set by the operator network and is used to indicate that the type of application data flow is a code that requires a permission match check between the terminal and the application. By setting the application-aware identification type to the preset code, it can be indicated that the type of application data flow is a type that requires a permission match check between the terminal and the application.
[0209] In this embodiment, by setting the application-aware identification type of the data packet header of the first data packet of the application data stream to a preset code, the first network element can determine whether it needs to perform a permission matching check between the terminal and the application when receiving the first data packet of the data stream, and adopt different processing methods based on the judgment result, thereby effectively improving the efficiency of the permission matching check between the terminal and the application and saving unnecessary costs.
[0210] In an exemplary embodiment, before reading the dynamic password from the dynamic token bound to the terminal information, the method may include: receiving the dynamic token sent by the second network element.
[0211] In this embodiment, the dynamic token used to generate the dynamic password may be sent by the second network element.
[0212] Exemplarily, the second network element may be a communication device in an operator network. It may pre-acquire a target application identifier corresponding to a target application that needs to perform a terminal and application permission matching check, and determine the designated terminal information of each designated access terminal corresponding to the target application that needs to perform a terminal and application permission matching check, and further determine, for each designated access terminal, a designated dynamic token uniquely bound to the designated terminal information of the designated access terminal, and send it to the corresponding designated access terminal. Based on this, when the terminal is a designated access terminal corresponding to the target application, it may receive the designated dynamic token sent by the second network element, that is, the dynamic token bound to its terminal information.
[0213] In this embodiment, by receiving the dynamic token sent by the second network element, the token can be used to generate a dynamic password that is consistent with the designated dynamic password maintained by the second network element, thereby facilitating the subsequent verification process.
[0214] In an exemplary embodiment, Figure 8 As shown, a method for checking the permissions of a terminal and an application is provided, and the method is applied to Figure 1 or Figure 2 Taking the first network element shown as an example, the following steps are included:
[0215] Step S801: receiving an application data stream from a terminal.
[0216] The first network element may be a network edge node of an operator network, which may receive an application data stream sent by a terminal. Exemplarily, the application data stream may be a data stream based on an application-aware IPv6 network (APNv6).
[0217] Step S802: extract application information of the application data stream.
[0218] The application data stream may include application information, which may include an application identifier, terminal information, and a dynamic password corresponding to the application data stream.
[0219] Step S803: Send the application information to the second network element.
[0220] The second network element may be a communication device in an operator network. In this step, the first network element may send the extracted application information to the second network element.
[0221] Step S804: Receive the authority matching verification result from the second network element.
[0222] The second network element can verify whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, terminal information, and dynamic password contained in the application information, and obtain the permission matching verification result corresponding to the application data flow, and then send it to the first network element. In this step, the first network element can receive the permission matching verification result sent by the second network element.
[0223] Step S805: If the permission matching check result is passed, the application data stream is forwarded to the network channel corresponding to the target application.
[0224] Wherein, if the result of the permission matching check is that the check is passed, it can be determined that the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application. Based on this, in this step, the application data flow can be forwarded to the network channel corresponding to the target application. Exemplarily, the network channel can be the service level agreement (Service Level Agreement) network channel corresponding to the target application. Wherein, if Figure 2 As shown, the network nodes in the network channel can further forward the application data flow to its corresponding data receiving end.
[0225] Step S806: If the permission matching check result is a check failure, the application data flow is discarded.
[0226] If the result of the permission matching check is that the check fails, it can be determined that the application data flow does not correspond to the target application and / or does not come from the designated access terminal corresponding to the target application. Based on this, the application data flow can be discarded in this step.
[0227] The above-mentioned terminal and application permission matching verification method can realize efficient verification of the terminal and application permissions of the application data stream and effectively ensure network security by extracting application information from the received application data stream and sending it to the second network element, and then processing the application data stream differently according to the permission matching verification result received from the second network element.
[0228] In an exemplary embodiment, after receiving the application data stream from the terminal, it can also include: determining whether the application-aware identification type of the data packet header of the first data packet of the application data stream is a preset code; the preset code is used to indicate that the type of the application data stream is a type that requires a permission match verification between the terminal and the application; if so, executing the step of extracting the application information of the application data stream.
[0229] Exemplarily, the terminal may set the application-aware identification type of the data packet header of the first data packet of the application data stream to a preset code, thereby indicating that the type of the application data stream is a type that requires a permission match check between the terminal and the application.
[0230] For example, Figure 3 Taking the data packet header shown as an example, the terminal can set the application-aware identification type (APN-ID-Type) field therein to a preset code. The preset code can be pre-set by the operator network and is used to indicate that the type of application data flow is a code that requires a permission match check between the terminal and the application.
[0231] Based on this, in this embodiment, after receiving the application data stream from the terminal, it can first be determined whether the application-aware identification type of the data packet header of the first data packet is a preset code. If the application-aware identification type is the preset code, it can be determined that the type of the application data stream is a type that requires a permission match check between the terminal and the application, and then the step of extracting the application information of the application data stream can be performed.
[0232] It can be understood that if the application-aware identification type is not the preset code, it can be determined that the type of the application data stream is not a type that requires a permission match check between the terminal and the application, so the permission match check between the terminal and the application can be omitted.
[0233] In this embodiment, by determining whether the application-aware identification type of the data packet header of the first data packet of the application data stream is a preset code, it is possible to determine whether a permission matching check between the terminal and the application is required when the first data packet of the data stream is received, and to adopt different processing methods based on the determination result, thereby effectively improving the efficiency of the permission matching check between the terminal and the application and saving unnecessary costs.
[0234] In an exemplary embodiment, extracting the application information of the application data stream may include: extracting the application information from a data packet header of a first data packet of the application data stream.
[0235] The application data stream may include multiple data packets. Exemplarily, the terminal may add application information including an application identifier, terminal information, and a dynamic password to a data packet header of the first data packet of the application data stream.
[0236] Optionally, the data packet header of the first data packet of the application data flow may be an application-aware IPv6 Networking (APNv6) data packet header. Figure 3 As shown, the data packet header may include fields such as application-aware identification type (APN-ID-Type), flags (Flags), network performance requirement parameter type (APN-Para-Type), and application-aware identification (APN-ID). Optionally, the data packet header may also include fields such as intent (Intent), network performance requirement parameter (APN-Para), and so on. Optionally, application information including application identification, terminal information, and dynamic password may be added to the application-aware identification (APN-ID) field of the data packet header. Figure 4 As shown, the application perception identification (APN-ID) field may include application identification (APP-ID), terminal information (Host-ID), dynamic password (Dynamic Password), reserved field (Reserved) and other fields. Among them, the length of the application identification (APP-ID) field may be 32 bits (bit), the length of the terminal information (Host-ID) field may be 64 bits (bit), the length of the dynamic password (Dynamic Password) field may be 16 bits (bit), and the length of the reserved field (Reserved) field may be 16 bits (bit).
[0237] Based on this, the first network element can extract the application information contained in the data packet header of the first data packet in the application data flow.
[0238] In this embodiment, after receiving the first data packet of the application data flow, the application information contained therein is extracted and sent to the second network element, which can effectively improve the overall verification efficiency.
[0239] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0240] Based on the same inventive concept, the embodiment of the present application also provides a terminal and application permission matching verification device for implementing the terminal and application permission matching verification method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more terminal and application permission matching verification devices provided below can refer to the limitations of the terminal and application permission matching verification method above, and will not be repeated here.
[0241] In an exemplary embodiment, Fig. 9 As shown, a terminal and application permission matching verification device 900 is provided, including:
[0242] The receiving module 901 is configured to receive application information sent by a first network element; the application information is extracted by the first network element from an application data stream received from a terminal;
[0243] An acquisition module 902 is used to obtain an application identifier, terminal information and a dynamic password corresponding to the application data flow according to the application information;
[0244] A verification module 903 is used to verify whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, the terminal information, and the dynamic password, and obtain a permission matching verification result of the terminal of the application data flow and the application permission;
[0245] The sending module 904 is used to send the authority matching verification result to the first network element.
[0246] In an exemplary embodiment, the device may also include: a first acquisition module, used to acquire the target application identifier of the target application, and the designated terminal information of each designated access terminal corresponding to the target application; a determination module, used to determine the designated dynamic token bound to each designated terminal information; a maintenance module, used to maintain the first association relationship between the target application identifier, each designated terminal information and the designated dynamic password generated by each designated dynamic token; the verification module 903 is also used to: acquire the second association relationship between the application identifier, the terminal information and the dynamic password; compare the second association relationship with each first association relationship; if there is a first association relationship that matches the second association relationship, the permission matching verification result of the application data flow is obtained as verification passed; if there is no first association relationship that matches the second association relationship, the permission matching verification result of the application data flow is obtained as verification failed.
[0247] In an exemplary embodiment, the apparatus may further include: a first sending module, configured to send the designated dynamic token bound with each designated terminal information to each corresponding designated access terminal.
[0248] In an exemplary embodiment, Fig.10 As shown, a terminal and application authority matching verification device 1000 is provided, comprising:
[0249] The acquisition module 1001 is used to acquire the application identifier, the terminal information and the dynamic password; wherein the dynamic password is generated by a dynamic token bound to the terminal information;
[0250] An adding module 1002, configured to add the application information including the application identifier, the terminal information and the dynamic password to the application data flow;
[0251] The sending module 1003 is used to send the application data flow to the first network element.
[0252] In an exemplary embodiment, the adding module 1002 is further configured to: add the application information to a data packet header of a first data packet of the application data flow.
[0253] In an exemplary embodiment, the device may also include: a setting module, used to set the application-aware identification type of the data packet header of the first data packet of the application data stream to a preset code; the preset code is used to indicate that the type of the application data stream is a type that requires permission matching verification between the terminal and the application.
[0254] In an exemplary embodiment, the device may further include: a receiving module, configured to receive the dynamic token sent by the second network element.
[0255] In an exemplary embodiment, Fig.11 As shown, a terminal and application authority matching verification device 1100 is provided, including:
[0256] The first receiving module 1101 is used to receive an application data stream from a terminal;
[0257] An extraction module 1102 is used to extract application information of the application data flow; wherein the application information includes an application identifier, terminal information and a dynamic password corresponding to the application data flow;
[0258] The sending module 1103 is used to send the application information to the second network element;
[0259] The second receiving module 1104 is used to receive the permission matching verification result from the second network element; wherein the permission matching verification result is obtained by the second network element verifying whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, the terminal information, and the dynamic password;
[0260] The forwarding module 1105 is configured to forward the application data stream to the network channel corresponding to the target application if the permission matching check result is a pass;
[0261] The discarding module 1106 is configured to discard the application data flow if the permission matching check result is a check failure.
[0262] In an exemplary embodiment, the device may also include: a judgment module, used to determine whether the application-aware identification type of the data packet header of the first data packet of the application data stream is a preset code; the preset code is used to indicate that the type of the application data stream is a type that requires a permission match verification between the terminal and the application; and an execution module, used to, if so, execute the step of extracting the application information of the application data stream.
[0263] In an exemplary embodiment, the extraction module 1102 is further configured to extract the application information from a data packet header of a first data packet of the application data stream.
[0264] Each module in the above-mentioned terminal and application permission matching verification device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the communication device in the form of hardware, or can be stored in the memory in the communication device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0265] In an exemplary embodiment, a communication device is provided. The communication device may be a server, and its internal structure diagram may be as shown in FIG. Fig.12As shown. The communication device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the communication device is used to provide computing and control capabilities. The memory of the communication device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and can also store a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication device may be provided with a database, and the database may be used to store data such as a target application identifier, specified terminal information, and a specified dynamic password. The input / output interface of the communication device is used to exchange information between the processor and an external device. The communication interface of the communication device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for checking the authority matching between a terminal and an application is implemented.
[0266] In an exemplary embodiment, a communication device is provided. The communication device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.13 As shown. The communication device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the communication device is used to provide computing and control capabilities. The memory of the communication device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the communication device is used to exchange information between the processor and an external device. The communication interface of the communication device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a method for checking the authority matching between a terminal and an application is implemented.
[0267] Those skilled in the art will understand that Fig.12 or Fig.13 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the communication device to which the scheme of the present application is applied. The specific communication device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0268] In one embodiment, a communication device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0269] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0270] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0271] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0272] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0273] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0274] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for checking the authority matching between a terminal and an application, characterized in that: The method comprises: receiving application information sent by a first network element; the application information is extracted by the first network element from an application data stream received from a terminal; According to the application information, obtaining an application identifier, terminal information and a dynamic password corresponding to the application data flow; Verify, based on the application identifier, the terminal information, and the dynamic password, whether the application data flow corresponds to a target application and comes from a designated access terminal corresponding to the target application, and obtain a verification result of a permission match between the terminal and the application of the application data flow; The authority matching verification result is sent to the first network element.
2. The method according to claim 1, characterized in that The method further comprises: Acquire a target application identifier of the target application and designated terminal information of each designated access terminal corresponding to the target application; Determining a designated dynamic token bound to each of the designated terminal information; Maintaining a first association relationship between the target application identifier, each of the designated terminal information and a designated dynamic password generated by each of the designated dynamic tokens; The verifying, based on the application identifier, the terminal information, and the dynamic password, whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application, and obtaining the result of the verification of the authority matching between the terminal and the application of the application data flow, includes: Acquire a second association relationship between the application identifier, the terminal information and the dynamic password; comparing the second association relationship with each of the first association relationships; If there is the first association relationship that matches the second association relationship, the permission matching verification result of the application data flow is obtained as verification passed; If there is no first association relationship that matches the second association relationship, the permission matching check result of the application data flow is obtained as verification failure.
3. The method according to claim 2, characterized in that After determining the designated dynamic token bound to each designated terminal information, the method includes: The designated dynamic token bound with each designated terminal information is sent to each corresponding designated access terminal.
4. A method for checking the authority matching between a terminal and an application, characterized in that: The method comprises: Acquire an application identifier, terminal information, and a dynamic password; wherein the dynamic password is generated by a dynamic token bound to the terminal information; Adding application information including the application identifier, the terminal information and the dynamic password to an application data stream; The application data stream is sent to the first network element.
5. The method according to claim 4, characterized in that The adding the application information including the application identifier, the terminal information and the dynamic password to the application data flow includes: The application information is added to a data packet header of a first data packet of the application data stream.
6. The method according to claim 4, characterized in that Before sending the application data stream to the first network element, the method further includes: The application-aware identification type of the data packet header of the first data packet of the application data stream is set to a preset code; the preset code is used to indicate that the type of the application data stream is a type that requires a permission match check between the terminal and the application.
7. The method according to claim 4, characterized in that Before reading the dynamic password from the dynamic token bound to the terminal information, the method includes: The dynamic token sent by the second network element is received.
8. A method for checking the authority matching between a terminal and an application, characterized in that: The method comprises: receiving application data streams from terminals; Extracting application information of the application data stream; wherein the application information includes an application identifier, terminal information and a dynamic password corresponding to the application data stream; Sending the application information to the second network element; receiving a permission matching verification result from the second network element; wherein the permission matching verification result is obtained by the second network element verifying whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, the terminal information, and the dynamic password; If the permission matching check result is a pass, forwarding the application data stream to the network channel corresponding to the target application; If the permission matching check result is a check failure, the application data flow is discarded.
9. The method according to claim 8, characterized in that After receiving the application data stream from the terminal, the method includes: Determine whether the application-aware identification type of the data packet header of the first data packet of the application data stream is a preset code; the preset code is used to indicate that the type of the application data stream is a type that requires a permission match check between the terminal and the application; If yes, then the step of extracting the application information of the application data stream is performed.
10. The method according to claim 8, characterized in that The extracting the application information of the application data stream comprises: The application information is extracted from the data packet header of the first data packet of the application data stream.
11. A terminal and application authority matching verification system, characterized in that: The system comprises: a terminal, a first network element, and a second network element; The terminal is used to obtain an application identifier, terminal information and a dynamic password; wherein the dynamic password is generated by a dynamic token bound to the terminal information; adding the application information including the application identifier, the terminal information and the dynamic password to an application data stream; and sending the application data stream to the first network element; The first network element is configured to receive the application data stream from the terminal; extract the application information from the application data stream; and send the application information to the second network element; The second network element is configured to receive the application information sent by the first network element; obtain the application identifier, the terminal information and the dynamic password corresponding to the application data flow according to the application information; verify whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, the terminal information and the dynamic password, and obtain the permission matching verification result of the terminal and the application of the application data flow; and send the permission matching verification result to the first network element; The first network element is also used to receive the permission matching check result from the second network element; if the permission matching check result is a pass, the application data stream is forwarded to the network channel corresponding to the target application; if the permission matching check result is a fail, the application data stream is discarded.
12. A terminal and application authority matching verification device, characterized in that: The device comprises: A receiving module, configured to receive application information sent by a first network element; the application information is extracted by the first network element from an application data stream received from a terminal; An acquisition module, used to obtain an application identifier, terminal information and a dynamic password corresponding to the application data flow according to the application information; A verification module, configured to verify, based on the application identifier, the terminal information, and the dynamic password, whether the application data flow corresponds to a target application and comes from a designated access terminal corresponding to the target application, and obtain a permission matching verification result of the terminal of the application data flow and the application permission; A sending module is used to send the authority matching verification result to the first network element.
13. A terminal and application authority matching verification device, characterized in that: The device comprises: An acquisition module, used to acquire an application identifier, terminal information and a dynamic password; wherein the dynamic password is generated by a dynamic token bound to the terminal information; An adding module, used for adding application information including the application identifier, the terminal information and the dynamic password to the application data flow; A sending module is used to send the application data stream to the first network element.
14. A terminal and application authority matching verification device, characterized in that: The device comprises: A first receiving module, used for receiving an application data stream from a terminal; An extraction module, used to extract application information of the application data stream; wherein the application information includes an application identifier, terminal information and a dynamic password corresponding to the application data stream; A sending module, used for sending the application information to the second network element; A second receiving module is used to receive the permission matching verification result from the second network element; wherein the permission matching verification result is obtained by the second network element verifying whether the application data flow corresponds to the target application and comes from the designated access terminal corresponding to the target application according to the application identifier, the terminal information, and the dynamic password; A forwarding module, configured to forward the application data stream to a network channel corresponding to the target application if the permission matching check result is a passed check; The discarding module is used to discard the application data flow if the permission matching check result is a check failure.
15. A communication device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3, any one of claims 4 to 7, or any one of claims 8 to 10 are implemented.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method of any one of claims 1 to 3, any one of claims 4 to 7, or any one of claims 8 to 10 are implemented.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method of any one of claims 1 to 3, any one of claims 4 to 7, or any one of claims 8 to 10 are implemented.
