A method and device for detecting man-in-the-middle
By sending encrypted MAC/PHY layer parameter query signaling to the base station side in the 5G communication network and comparing the parameters reported by the UE, the problem of difficulty in detecting man-in-the-middle pseudo base stations with existing technology is solved, and effective identification and detection of man-in-the-middle attacks are achieved. defense.
Patent Information
- Application Number
- CN202010143006.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-04
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-03-04
AI Technical Summary
The existing technology is difficult to detect and identify the man-in-the-middle pseudo base station, especially when the main information block and the system message block of the man-in-the-middle imitate the real base station are completely consistent, and its existence cannot be effectively identified.
In the 5G communication network, the base station side delivers encrypted MAC/PHY layer parameter query signaling from the radio resource control RRC layer. The user equipment UE reports the corresponding parameters and compares them with the original parameters after decryption by the base station. If they are inconsistent It is deemed that there is an intermediary.
Even when the information about the man-in-the-middle is completely consistent with that of the real base station, the existence of the man-in-the-middle can still be detected, and alarm messages or defense instructions can be generated, which improves the ability to identify and defend against man-in-the-middle attacks.
Smart Images

Figure CN113365266B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication device detection, and in particular to a method and apparatus for man-in-the-middle detection. Background Art
[0002] Wireless communications may include, but are not limited to, wireless local area networks (WLANs) and mobile communication networks (e.g., 2G, 3G, 4G, and 5G communication networks). In wireless communications, attackers may set up fake base stations to eavesdrop, tamper with, impersonate, inject, and replay air interface messages, causing DOS attacks on terminals and networks. A middleman is one type of fake base station, including a fake base station part and a fake user equipment UE part. These middlemen can easily attack base stations and UEs and are difficult to detect.
[0003] Therefore, detecting and identifying these middlemen is an urgent problem to be solved. Summary of the invention
[0004] An embodiment of the present application provides a man-in-the-middle detection method for detecting and identifying a man-in-the-middle fake base station.
[0005] In a first aspect, an embodiment of the present application provides a method for detecting a man-in-the-middle, including:
[0006] Sending a first medium access control MAC layer parameter or a first physical PHY layer parameter to a user equipment UE;
[0007] Sending a MAC layer parameter query signaling or a PHY layer parameter query signaling to the UE through a radio resource control RRC layer, where the MAC layer parameter query signaling is used to instruct the UE to report a second MAC layer parameter corresponding to the MAC layer parameter query signaling and stored in the UE, and the PHY layer parameter query signaling is used to instruct the UE to report a second PHY layer parameter corresponding to the PHY layer parameter query signaling and stored in the UE;
[0008] Receiving a second MAC layer parameter or a second PHY layer parameter reported by the UE;
[0009] When the first MAC layer parameter is different from the second MAC layer parameter, or the first PHY layer parameter is different from the second PHY layer parameter, an alarm message indicating the existence of a middleman is generated or a defense instruction is executed.
[0010] In combination with the first aspect, in a possible implementation manner, before sending a MAC layer parameter query signaling or a PHY layer parameter query signaling to the UE through the radio resource control RRC layer, the method further includes:
[0011] The MAC layer parameter query signaling or the PHY layer parameter query signaling is encrypted by an encryption algorithm and an integrity protection algorithm.
[0012] In combination with the first aspect, in a possible implementation manner, after receiving the second MAC layer parameter or the second PHY layer parameter reported by the UE, the method further includes:
[0013] The second MAC layer parameter or the second PHY layer parameter is decrypted.
[0014] In combination with the first aspect, in a possible implementation, the first MAC layer parameter or the first PHY layer parameter includes one or more of a timing advance TA, a power headroom report PHR, a physical frame number and a subframe number, and a cell radio network temporary identifier C-RNTI.
[0015] In conjunction with the first aspect, in a possible implementation manner, the executing the defense instruction includes:
[0016] The encrypted scheduling request SR configuration signaling is sent down through the RRC layer, and the SR configuration signaling is used to instruct the UE to update the SR configuration parameters.
[0017] In a second aspect, an embodiment of the present application provides a method for detecting a man-in-the-middle, including:
[0018] Reporting a first MAC layer parameter or a first PHY layer parameter to the base station through the RRC layer, where the first MAC layer parameter is used to instruct the base station to compare the first MAC layer parameter with a second MAC layer parameter sent by the base station, and the first PHY layer parameter is used to instruct the base station to compare the first PHY layer parameter with a second PHY layer parameter sent by the base station;
[0019] When the first MAC layer parameter is different from the second MAC layer parameter, or the first PHY layer parameter is different from the second PHY layer parameter, the base station generates an alarm message indicating the existence of a middleman or executes a defense instruction.
[0020] In combination with the second aspect, in a possible implementation manner, before reporting the first MAC layer parameter or the first PHY layer parameter to the base station through the RRC layer, the method further includes:
[0021] The first MAC layer parameter or the first PHY layer parameter is encrypted by using an encryption algorithm and an integrity protection algorithm.
[0022] In combination with the second aspect, in a possible implementation method, the first MAC layer parameter or the first PHY layer parameter includes one or more of a timing advance TA, a power headroom report PHR, a physical frame number and a subframe number, and a cell radio network temporary identifier C-RNTI.
[0023] In a third aspect, an embodiment of the present application provides a communication device, including:
[0024] A sending unit, configured to send a first medium access control MAC layer parameter or a first physical PHY layer parameter to a user equipment UE;
[0025] The sending unit is further used to send a MAC layer parameter query signaling or a PHY layer parameter query signaling to the UE through a radio resource control RRC layer, wherein the MAC layer parameter query signaling is used to instruct the UE to report a second MAC layer parameter corresponding to the MAC layer parameter query signaling stored in the UE, and the PHY layer parameter query signaling is used to instruct the UE to report a second PHY layer parameter corresponding to the PHY layer parameter query signaling stored in the UE;
[0026] A receiving unit, configured to receive a second MAC layer parameter or a second PHY layer parameter reported by the UE;
[0027] A processing unit is used to generate an alarm message indicating the existence of a middleman or execute a defense instruction when the first MAC layer parameter is different from the second MAC layer parameter, or the first PHY layer parameter is different from the second PHY layer parameter.
[0028] In conjunction with the third aspect, in a possible implementation manner, the processing unit is further configured to:
[0029] The MAC layer parameter query signaling or the PHY layer parameter query signaling is encrypted by an encryption algorithm and an integrity protection algorithm.
[0030] In combination with the third aspect, in a possible implementation manner, the processing unit is further used to: decrypt the second MAC layer parameter or the second PHY layer parameter.
[0031] In combination with the third aspect, in a possible implementation method, the first MAC layer parameter or the first PHY layer parameter includes one or more of a timing advance TA, a power headroom report PHR, a physical frame number and a subframe number, and a cell radio network temporary identifier C-RNTI.
[0032] In conjunction with the third aspect, in a possible implementation manner, the processing unit is further configured to:
[0033] The encrypted scheduling request SR configuration signaling is sent down through the RRC layer, and the SR configuration signaling is used to instruct the UE to update the SR configuration parameters.
[0034] In a fourth aspect, an embodiment of the present application provides a communication device, including:
[0035] a sending unit, configured to report a first MAC layer parameter or a first PHY layer parameter to a base station through an RRC layer, wherein the first MAC layer parameter is used to instruct the base station to compare the first MAC layer parameter with a second MAC layer parameter issued by the base station, and the first PHY layer parameter is used to instruct the base station to compare the first PHY layer parameter with a second PHY layer parameter issued by the base station;
[0036] When the first MAC layer parameter is different from the second MAC layer parameter, or the first PHY layer parameter is different from the second PHY layer parameter, the base station generates an alarm message indicating the existence of a middleman or executes a defense instruction.
[0037] In conjunction with the fourth aspect, in a possible implementation manner, the device further includes:
[0038] A processing unit is configured to encrypt the first MAC layer parameter or the first PHY layer parameter by using an encryption algorithm and an integrity protection algorithm.
[0039] In combination with the fourth aspect, in a possible implementation method, the first MAC layer parameter or the first PHY layer parameter includes one or more of a timing advance TA, a power headroom report PHR, a physical frame number and a subframe number, and a cell radio network temporary identifier C-RNTI.
[0040] In a fifth aspect, an embodiment of the present application provides a communication system, including a base station and a UE;
[0041] The base station is used to perform the middleman detection method of the first aspect, and the UE is used to perform the middleman detection method of the first aspect and the second aspect. It can be seen from the above technical solutions that the embodiment of the present application has the following advantages:
[0042] The embodiment of the present application provides a method for detecting a man-in-the-middle, which utilizes the characteristics of the middleman forwarding communication data packets above the packet data convergence protocol PDCP layer, and the base station side queries the user equipment UE for medium access control MAC / physical PHY layer parameters through radio resource control RRC signaling, or the UE actively reports the MAC / PHY layer parameters from the RRC layer, and compares them with the MAC / PHY layer parameters obtained by the base station from the MAC layer, and determines the existence of a man-in-the-middle if they are inconsistent. The embodiment of the present application can still detect the existence of a man-in-the-middle when the man-in-the-middle is completely consistent with the real base station master information block MIB / system message block SIB. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 This is a 5G communication network architecture diagram in the embodiment of this application;
[0044] Figure 2 This is a working architecture diagram of a fake base station;
[0045] Figure 3 This is a schematic diagram of the 5G communication protocol stack in an embodiment of the present application;
[0046] Figure 4 This is an application scenario diagram in an embodiment of the present application;
[0047] Figure 5 A schematic diagram of a man-in-the-middle detection method in an embodiment of the present application;
[0048] Figure 6 This is a flowchart of the steps of the base station in the embodiment of the present application;
[0049] Figure 7 This is a flowchart of the steps of the UE in the embodiment of the present application;
[0050] Figure 8 A schematic diagram of another man-in-the-middle detection method provided in an embodiment of the present application;
[0051] Fig. 9 This is a flowchart of the steps of the base station in the embodiment of the present application;
[0052] Fig.10 This is a flowchart of the steps of the UE in the embodiment of the present application;
[0053] Fig.11 A scenario diagram of a man-in-the-middle detection method provided in an embodiment of the present application Figure 1 ;
[0054] Fig.12 A scenario diagram of a man-in-the-middle detection method provided in an embodiment of the present application Figure 2 ;
[0055] Fig.13 A scenario diagram of a man-in-the-middle detection method provided in an embodiment of the present application Figure 3 ;
[0056] Fig.14 A scenario diagram of a man-in-the-middle detection method provided in an embodiment of the present application Figure 4 ;
[0057] Fig.15 A scenario diagram of a man-in-the-middle detection method provided in an embodiment of the present application Figure 5 ;
[0058] Fig.16 A scenario diagram of a man-in-the-middle detection method provided in an embodiment of the present application Figure 6 ;
[0059] Fig.17 A scenario diagram of a man-in-the-middle detection method provided in an embodiment of the present application Figure 7 ;
[0060] Fig.18 A schematic diagram of a defense measure or defense strategy in an embodiment of the present application;
[0061] Fig.19 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;
[0062] Fig. 20 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;
[0063] Fig.21 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;
[0064] Fig. 22 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;
[0065] Fig.23 A schematic diagram of the structure of a communication system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0066] An embodiment of the present application provides a man-in-the-middle detection method for detecting and identifying a man-in-the-middle fake base station.
[0067] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "corresponding to" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0068] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0069] Wireless communications may include, but are not limited to, wireless local area networks (WLANs), mobile communication networks (e.g., 2G, 3G, 4G, and 5G communication networks). In wireless communications, attackers may set up pseudo base stations to eavesdrop, tamper with, counterfeit, inject, and replay air interface messages, causing DOS attacks on terminals and networks. A middleman is one type of pseudo base station, including a pseudo base station part and a pseudo user equipment UE part. These middlemen are prone to attack base stations and UEs, and are difficult to detect. The following section will describe specific embodiments based on the case of a 5G communication network, and other communication networks may refer to the embodiments of this application.
[0070] Figure 1 This is a diagram of the 5G communication network architecture in the embodiment of the present application. The 5G communication network architecture includes user equipment (UE), radio access network (RAN), etc.
[0071] UE can also be called terminal equipment, which can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; it can also be deployed on the water (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons and satellites, etc.). The terminal equipment can be a mobile phone, a tablet computer (pad), a computer with wireless transceiver function, a virtual reality (VR) device, an augmented reality (AR) device, a wireless device in industrial control, a wireless device in self-driving, a wireless device in remote medical, a wireless device in smart grid, a wireless device in transportation safety, a wireless device in smart city, a wireless device in smart home, etc.
[0072] RAN can be an access network using different access technologies. The corresponding functional entity is a device that can provide wireless communication functions for UE, which can also be called a base station. Base stations include but are not limited to: the next generation base station (gnodeB, gNB) in 5G, evolved node B (evolved node B, eNB), radio network controller (radio network controller, RNC), node B (node B, NB), base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved node B, or home node B, HNB), base band unit (Base Band Unit, BBU), transmission point (transmitting and receiving point, TRP), transmission point (transmitting point, TP), mobile switching center, etc. Among them, gNB is a 5G base station, which can also be called the base station protocol functional entity of 5G.
[0073] The 5G communication network architecture includes core network elements. For example, Access and Mobility Management Function (AMF) network elements and Authentication Sever Function (AUSF) network elements. Long-term keys and related functions are stored in the UE. When the UE performs two-way authentication with the core network elements (such as AMF, AUSF), it will use long-term keys and related functions to verify the authenticity of the network. The 5G communication network architecture also includes other network elements, such as User Plane Function (UPF) network elements, Session Management Function (SMF) network elements, etc., which will not be repeated in the embodiments of this application.
[0074] See also Figure 2 Taking the AMF network element as an example, the working architecture of the pseudo base station is as follows: Figure 2 As shown in Figure 1. The AMF network element is mainly responsible for access and mobility management. Figure 2The UE and the base station gNB are connected through the 5G UU port, and the UE and the base station can send RRC signaling and user plane data. The base station and the AMF are connected through the N2 interface, which is similar to the S1 interface and transmits messages between the RAN and the AMF. The UE and the AMF communicate through the N1 / NAS interface, and the messages between the UE and the AMF are usually transferred from the RAN to the AMF. Among them, the UE and the base station gNB are connected through the 5G UU port, and the UE and the base station can send RRC signaling and user plane data. The base station and the AMF are connected through the N2 interface, and the base station and the AMF communicate through the N2 protocol.
[0075] An attacker may deploy a fake base station to attract the terminal to stay on the fake base station. The fake base station includes a base station part (BSpart) and a fake terminal part (UE part). The functions of the base station part and the fake terminal part are deployed on the fake base station. The base station part function is used to attract the terminal to stay on the fake base station. If the terminal is in the idle state, when the terminal approaches the fake base station, it measures that the cell signal quality of the fake base station is good, and meets the cell reselection conditions. The terminal will trigger the cell reselection process to stay in the cell of the fake base station; if the terminal is in the connected state, when the terminal approaches the fake base station, it measures that the cell signal quality of the fake base station is good, and reports the measurement result to the serving cell. The serving cell will trigger the terminal to switch to the cell of the fake base station, so that the terminal stays in the cell of the fake base station. The fake UE part is used to forward or modify the communication data of the real UE, access the real base station as the real UE, and communicate with the AMF through the N2 protocol. This type of fake station can also be called a man-in-the-middle fake base station (MitM-FBS).
[0076] This type of middleman fake base station can eavesdrop, tamper, forge, inject, and replay air interface messages, causing DOS attacks on terminals and networks. It is usually difficult for the network side and the terminal side to detect the existence of the middleman.
[0077] In order to detect the middleman fake base station, the existing technology calculates the hash value of the received master information block (MIB) or system information block (SIB) through the UE, and carries the hash value of the MIB / SIB in the measurement report MR / logged MR (Measurement Report), and reports it to the real base station. The real base station compares them. If they are inconsistent, it is determined that there is a middleman. When the middleman fake base station completely imitates the MIB / SIB of the real base station, the existing technology cannot detect this type of middleman fake base station.
[0078] Therefore, an embodiment of the present application provides a man-in-the-middle detection method to solve the above technical problems.
[0079] Figure 3 This is a schematic diagram of the 5G communication protocol stack in the embodiment of the present application. In the control plane protocol stack, the UE and AMF can communicate at the NAS layer, and the UE can communicate with the gNB at the radio resource control (RRC) layer, the packet data convergence protocol (PDCP) layer, the radio link control (RLC) layer, the medium access control (MAC) layer, and the physical (PHY) layer. In the user plane protocol stack, the UE can communicate with the gNB at the SDAP layer, PDCP layer, RLC layer, MAC layer, and PHY layer. Through a large number of case analyses, we know that man-in-the-middle attacks forward data packets by transparently transmitting data above the PDCP layer. Below the PDCP layer, the real UE and the fake base station, and the fake UE and the real base station establish connections respectively, that is, the RLC, MAC, and PHY layers are independent of each other. Otherwise, it is necessary to ensure that the physical layer clocks, frames, etc. of the fake base station and the real base station are completely synchronized, and the scheduling of the MAC layer is completely consistent. However, in actual networking, due to the differences in the air interface environment between the real UE and the fake base station, and the fake UE and the real base station, it is impossible to ensure that the PHY and MAC layers on both sides are completely consistent, so the man-in-the-middle can only forward data packets above the PDCP layer. Therefore, the man-in-the-middle forwards data packets above the PDCP layer, and the MAC layer and PHY layer of the real UE and the fake base station, and the fake UE and the real base station are independent of each other and run separately, such as Figure 4 shown. Figure 4 This is an application scenario diagram in an embodiment of the present application.
[0080] Therefore, the embodiment of the present application is based on the perspective that the addition of a middleman causes changes in certain MAC / PHY parameters between the UE and the eNB. The base station sends a MAC / PHY layer parameter query message from the RRC layer after the security process is activated. The middleman can only pass it through to the UE. The parameters reported by the UE are encrypted and protected, and the middleman cannot crack or tamper with them. After decryption, the base station compares the MAC / PHY layer parameters sent before. If there is any inconsistency, there is a middleman.
[0081] Figure 5 FIG. 1 is a schematic diagram of a middleman detection method in an embodiment of the present application. In this method, the steps of the base station are as follows: Figure 6 As shown, including:
[0082] 601. The base station sends a MAC / PHY layer parameter query signaling.
[0083] It is understandable that the UE and the base station are in a state of having established a connection. Exemplarily, the UE and the base station can establish a connection by random access.
[0084] After the UE establishes a connection with the base station, the base station will send MAC / PHY layer parameters to the UE, and the UE will receive and store these MAC / PHY layer parameters. When the UE receives the MAC / PHY layer parameter query signaling from the base station, the UE can report these MAC / PHY layer parameters. In an embodiment of the present application, the base station can send a MAC / PHY layer parameter query message from the RRC layer after the security process is activated, and the UE can report the MAC / PHY layer parameters from the RRC layer.
[0085] In the absence of a middleman, the MAC / PHY layer parameters sent by the base station to the UE can be directly received and stored by the UE. In the presence of a middleman, the MAC / PHY layer parameters sent by the base station are generally received by the fake UE part of the middleman, and then the middleman sends the MAC / PHY layer parameters to the UE through the fake base station, and finally reaches the UE.
[0086] In the embodiment of the present application, the MAC / PHY layer parameter query signaling sent by the base station can be encrypted and fully protected, that is, processed by the encryption algorithm and the integrity protection algorithm. The middleman cannot crack and tamper with the encrypted and fully protected MAC / PHY layer parameter query signaling, so the middleman can only transparently transmit it to the UE.
[0087] It can be understood that after receiving the MAC / PHY layer parameter query signaling, the UE can decrypt the MAC / PHY layer parameter query signaling and then report the corresponding MAC / PHY layer parameters.
[0088] In the embodiment of the present application, the MAC / PHY layer parameters reported by the UE are also encrypted and fully secured. Therefore, the middleman cannot crack and tamper with the encrypted and fully secured MAC / PHY layer parameters, and the middleman can only transparently transmit (forward) the MAC / PHY layer parameters reported by the UE to the base station.
[0089] It can be understood that the MAC / PHY layer parameters refer to all parameters transmitted between the base station and the UE at the MAC layer and the PHY layer, and the embodiments of the present application are not limited to this.
[0090] 602. The base station receives MAC / PHY layer parameters.
[0091] In an embodiment of the present application, the base station can receive and decrypt the MAC / PHY layer parameters reported by the UE. After receiving the MAC / PHY layer parameters, the base station can verify whether the received MAC / PHY layer parameters are the same as the MAC / PHY layer parameters previously sent to the UE.
[0092] 603. The base station verifies whether the received MAC / PHY layer parameters are the same as the MAC / PHY layer parameters previously sent to the UE. If they are not the same, it is determined that a middleman exists.
[0093] It can be understood that the MAC / PHY layer parameters previously sent by the base station to the UE refer to the MAC / PHY layer parameters sent by the base station to the UE after the UR establishes a connection with the base station.
[0094] In an embodiment of the present application, the base station may compare the received MAC / PHY layer parameters with the MAC / PHY layer parameters previously sent to the UE. If they are different, it is determined that there is a middleman; if they are the same, it is determined that there is no middleman.
[0095] In some embodiments, the base station may compare one of the MAC / PHY layer parameters to determine whether a middleman exists. In other embodiments, the base station may compare multiple MAC / PHY layer parameters, and when one of the MAC / PHY layer parameters is different, it is determined that a middleman exists. In other embodiments, the base station may compare multiple MAC / PHY layer parameters, and when all of the MAC / PHY layer parameters are different, it is determined that a middleman exists.
[0096] 604. When the base station determines that there is a middleman, it sends out an alarm signal or executes a corresponding defense strategy.
[0097] In an embodiment of the present application, when the base station detects and determines that there is a middleman, an alarm signal may be issued. In other embodiments, after the base station determines that there is a middleman, it may guide the UE to get rid of the middleman and establish a secure connection with the base station. In other embodiments, after the base station determines that there is a middleman, it may broadcast the middleman so that other UEs will not establish a connection with the middleman. In actual applications, the base station may also adopt other defense strategies, which are not limited in the embodiments of the present application.
[0098] In this method, the UE steps are as follows: Figure 7 As shown, including:
[0099] 701. UE receives MAC / PHY layer parameter query signaling;
[0100] In the embodiment of the present application, the UE first establishes a connection with the base station. In the absence of a middleman, the UE directly establishes a secure connection with the base station. In the presence of a middleman, the UE establishes a connection with the base station through the middleman, that is, the UE establishes a connection with the middleman's pseudo base station, and the middleman's pseudo UE establishes a connection with the base station.
[0101] It is understandable that after the UE establishes a connection with the base station, it can accept and store the MAC / PHY layer parameters sent by the base station. This process is similar to that in the aforementioned embodiment and will not be repeated here.
[0102] After that, when the UE receives the MAC / PHY layer parameter query signaling sent by the base station. In the absence of a middleman, the UE directly receives the MAC / PHY layer parameter query signaling sent by the base station. In the presence of a middleman, the UE receives the MAC / PHY layer parameter query signaling sent by the base station through the middleman. Since the MAC / PHY layer parameter query signaling has been encrypted and fully secured, the middleman cannot crack or tamper with the MAC / PHY layer parameter query signaling, and can only transparently transmit the MAC / PHY layer parameter query signaling to the UE.
[0103] 702. The UE decrypts the MAC / PHY layer parameter query signaling;
[0104] After the UE receives the encrypted and secured MAC / PHY layer parameter query signaling, it can decrypt the MAC / PHY layer parameter query signaling to obtain the decrypted MAC / PHY layer parameter query signaling, and find the corresponding MAC / PHY layer parameters stored in the UE according to the decrypted MAC / PHY layer parameter query signaling.
[0105] 703. UE reports MAC / PHY layer parameters.
[0106] When the UE finds the corresponding MAC / PHY layer parameters, the UE can encrypt and secure the MAC / PHY layer parameters to obtain the encrypted and secured MAC / PHY layer parameters. Then, the UE can report the MAC / PHY layer parameters to the base station. In the absence of a middleman, the UE directly reports the MAC / PHY layer parameters to the base station. In the presence of a middleman, the UE can report the MAC / PHY layer parameters through the middleman. Since the MAC / PHY layer parameters are encrypted and secured by the UE, the middleman cannot crack or tamper with the MAC / PHY layer parameters and can only forward the MAC / PHY layer parameters to the base station.
[0107] In an embodiment of the present application, when the UE reports the MAC / PHY layer parameters, it can report through a newly added, newly defined RRC layer message, or it can use an existing RRC message to add an information element to carry the MAC / PHY layer parameters. This embodiment of the present application is not limited to this.
[0108] Figure 8 A schematic diagram of another middleman detection method provided in an embodiment of the present application. In this method, the steps of the base station are as follows Fig. 9 As shown, including:
[0109] 901. A base station establishes a connection with a UE.
[0110] In the absence of an intermediary, the base station directly establishes a connection with the UE. In the presence of an intermediary, the base station establishes a connection with the UE through the intermediary. For details, please refer to the above embodiments, which will not be repeated here.
[0111] 902. The base station sends MAC / PHY layer parameters to the UE.
[0112] In an embodiment of the present application, the base station may send MAC / PHY layer parameters to the UE. In the absence of a middleman, the base station directly sends the MAC / PHY layer parameters to the UE. In the presence of a middleman, the base station may send the MAC / PHY layer parameters to the UE through the middleman. It is understood that the base station may send the MAC / PHY layer parameters through the RRC layer.
[0113] 903. The base station receives MAC / PHY layer parameters actively reported by the UE.
[0114] In the embodiment of the present application, the UE does not need to wait for the base station to send the MAC / PHY layer parameter query signaling, but directly and actively reports the MAC / PHY layer parameters. It is understandable that the UE can first encrypt and secure the MAC / PHY layer parameters so that the middleman cannot crack or tamper with the MAC / PHY layer parameters.
[0115] In the absence of a middleman, the UE directly sends the encrypted and secured MAC / PHY layer parameters to the base station. In the presence of a middleman, the UE transmits the encrypted and secured MAC / PHY layer parameters to the base station through the middleman.
[0116] 904. The base station decrypts the MAC / PHY layer parameters and compares the MAC / PHY layer parameters with the MAC / PHY layer parameters previously sent to the UE. If they are different, it is determined that there is a middleman.
[0117] In the embodiment of the present application, the MAC / PHY layer parameters previously sent by the base station to the UE are the MAC / PHY layer parameters sent by the base station to the UE in step 902.
[0118] Step 904 is similar to step 603 in the above embodiment and will not be described again here.
[0119] In this method, the UE steps are as follows: Fig.10 As shown, including:
[0120] 1001. UE establishes a connection with a base station.
[0121] In the absence of a middleman, the UE can directly establish a connection with the base station. In the presence of a middleman, the UE can establish a connection with the base station through the middleman. Exemplarily, the UE can establish a connection with the base station in a random access manner.
[0122] 1002. The UE receives MAC / PHY layer parameters sent by the base station.
[0123] In the embodiment of the present application, after the UE establishes a connection with the base station, the base station may send down the MAC / PHY layer parameters, and the UE may receive the MAC / PHY layer parameters sent down by the base station. Specific details may refer to the above embodiment, which will not be repeated here.
[0124] 1003. The UE actively reports MAC / PHY layer parameters to the base station.
[0125] In an embodiment of the present application, the UE may actively report MAC / PHY layer parameters to the base station.
[0126] In some embodiments, the UE may set some determination conditions, and when the UE detects that the determination conditions are met, the UE reports the MAC / PHY layer parameters to the base station. In other embodiments, the UE may set a certain time threshold, and the UE reports the MAC / PHY layer parameters to the base station every period of time. In practical applications, the UE may also set other conditions for reporting MAC / PHY layer parameters, which are not limited in the embodiments of the present application.
[0127] The embodiments of the present application do not limit the MAC / PHY layer parameters. The MAC / PHY layer parameters may include but are not limited to timing advance (TA), power headroom report (PHR), physical frame number and subframe number, and cell radio network temporary identifier (Cell-Radio Network Temporary Identifier, C-RNTI). The embodiments of the present application will be further described below in conjunction with specific scenarios.
[0128] Fig.11 A scenario diagram of a man-in-the-middle detection method provided in an embodiment of the present application Figure 1 In this application scenario, the MAC / PHY layer parameter is the timing advance.
[0129] First, the UE establishes a connection with the base station by random access (possibly through an intermediary).
[0130] It is understandable that due to the round trip delay between the terminal (UE) and the base station, the time synchronization point of the terminal will be inconsistent with the time synchronization point of the base station. In order to eliminate the time synchronization deviation between the terminal and the base station, the terminal needs to make a time adjustment before transmitting the signal, and transmit according to the time synchronization point of the base station, that is, Timing Advance (TA), to ensure that the terminal's signal can accurately fall into the receiving time window of the base station.
[0131] The initial TA is calculated by the base station and sent to the UE through a random access response (RAR), and is subsequently dynamically adjusted by sending a TA Command in the MAC CE according to the UE's location. Since the distance between the real UE and the fake base station is not equal to the distance between the fake UE and the real base station, the TA sent by the fake base station to the real UE is inconsistent with the TA sent by the real base station to the fake UE. This can be used to query the TA value from the RRC layer to detect whether there is a middleman.
[0132] The TA Command carries the relative TA adjustment, i.e. the deviation (positive or negative) relative to the TA in the initial RAR. The UE reports the absolute TA at the RRC layer, i.e. the initial TA+ (relative TA-31).
[0133] Therefore, during the dynamic adjustment process, the TA value changes, and the TA value in the UE changes from TA1 and TA2 to TA3.
[0134] Then, when the base station sends the TA value inquiry signaling (UE TA Inquiry signaling), the middleman forwards the signaling. Since the signaling is encrypted and fully secured, the middleman cannot crack or tamper with the signaling. It is understandable that the base station can send the signaling through the RRC layer.
[0135] After receiving the TA value query signaling, the UE can decrypt and obtain the corresponding absolute TA value.
[0136] The UE encrypts and secures the corresponding absolute TA value and then reports it to the base station. Since the absolute TA value is encrypted and secure, the middleman cannot crack or tamper with the signaling, so the middleman can only forward the absolute TA value to the base station.
[0137] After receiving the absolute TA value, the base station compares the absolute TA value with the absolute TA value of the UE stored in the base station (the TA value of the UE set by the PHY layer). If they are different, it is determined that there is a middleman.
[0138] When the base station determines that there is a middleman, it can issue a warning or take defensive measures.
[0139] Fig.12 A scenario diagram of a man-in-the-middle detection method provided in an embodiment of the present application Figure 2 In this application scenario, the MAC / PHY layer parameter is the timing advance.
[0140] First, the UE establishes a connection with the base station by random access (possibly through an intermediary).
[0141] Then, the base station sends a TA command to the UE, where the TA command carries TA1, that is, carries the initial TA.
[0142] Then, the UE proactively reports a measurement report to the base station, and the measurement report carries the absolute TA value. In the presence of a middleman, the UE forwards the measurement report through the middleman. In some embodiments, the UE can encrypt and secure the measurement report so that the middleman cannot decrypt and tamper with the measurement report.
[0143] After receiving the measurement report, the base station compares whether the TA carried in the measurement report is consistent with the TA value of the UE set by the PHY layer. If they are inconsistent, it is determined that there is a middleman.
[0144] When the base station determines that there is a middleman, it can issue a warning or take defensive measures.
[0145] Other situations of this application scenario can refer to the aforementioned application scenario and will not be repeated here.
[0146] Fig.13 A scenario diagram of a man-in-the-middle detection method provided in an embodiment of the present application Figure 3 In this application scenario, the MAC / PHY layer parameter is PHR.
[0147] After the UE establishes a connection with the base station (through the middleman), the UE can communicate with the base station at the RRC layer.
[0148] The UE can report the PHR to the base station through the MAC CE, indicating the difference between the UE's expected transmit power and the UE's maximum transmit power, so that the base station can adjust the UE's transmit power to achieve the optimum.
[0149] Since the MAC layers of the real UE and the fake base station, and the MAC layers of the fake UE and the real base station are independent of each other and scheduled independently, the PHR Report of the real UE and the PHR Report of the fake UE are inconsistent. Taking advantage of this, the real base station can send RRC layer signaling to query the PHR Report reported by the UE after the initial access security process is established. The base station compares the PHR Report obtained by the RRC layer from the UE and the PHR Report obtained from the MAC layer. If they are inconsistent, it is determined that there is a middleman.
[0150] When the base station determines that there is a middleman, it can issue a warning or take defensive measures.
[0151] Fig.14 A scenario diagram of a man-in-the-middle detection method provided in an embodiment of the present application Figure 4 In this application scenario, the MAC / PHY layer parameter is PHR Report.
[0152] After the UE establishes a connection with the base station (through the middleman), the UE can communicate with the base station at the RRC layer.
[0153] The UE can report the PHR Report to the base station through the MAC CE, indicating the difference between the UE expected transmit power and the UE maximum transmit power, so that the base station can adjust the UE transmit power to achieve the optimal value.
[0154] Then, the UE reports the PHR Report to the base station through RRC layer signaling. In the embodiment of the present application, the UE can actively report the PHR Report to the base station through RRC layer signaling. In actual applications, the UE can set a judgment condition to trigger the operation of reporting the PHR Report, which is not limited in the embodiment of the present application. It is understandable that the UE can encrypt and fully secure the PHR Report so that the middleman cannot crack and tamper with the PHR Report.
[0155] The base station receives the PHR Report reported by the UE through the MAC CE, and the base station also receives the PHR Report reported by the UE through the RRC layer signaling. Then the base station can compare whether the PHR Report received from the RRC is consistent with the PHRReport received from the MAC layer. If they are inconsistent, the base station determines that there is a middleman.
[0156] When the base station determines that there is a middleman, it can issue a warning or take defensive measures.
[0157] Fig.15 A scenario diagram of a man-in-the-middle detection method provided in an embodiment of the present application Figure 5 In this application scenario, the MAC / PHY layer parameters are the physical frame number and subframe number.
[0158] First, after the UE establishes a connection with the base station (through an intermediary), the UE can communicate with the base station at the RRC layer.
[0159] The base station can send a physical frame query request to the UE via an RRC layer message, and record the frame number and subframe number when the physical frame query request is successfully sent. It is understandable that the base station can encrypt and fully secure the physical frame query request before sending it, so that a middleman cannot crack or tamper with the physical frame query request.
[0160] After receiving the physical frame query request, the UE responds and returns a physical frame query response to the base station, which carries the frame number and subframe number when the UE receives the physical frame query request. In some cases, the UE can encrypt and secure the physical frame query response before reporting it to the base station, so that a middleman cannot crack or tamper with the physical frame query response.
[0161] After receiving the physical frame query response, the base station can extract the corresponding frame number and / or subframe number, and compare it with the frame number and / or subframe number when the physical frame query request is successfully sent and saved in the local record. If they are different, it is determined that there is a middleman. In some cases, when one of the frame number or subframe number is different, the base station can determine that there is a middleman. In actual applications, the base station can also set other similar judgment conditions, which are not limited here.
[0162] When the base station determines that there is a middleman, it can issue a warning or take defensive measures.
[0163] Fig.16 A scenario diagram of a man-in-the-middle detection method provided in an embodiment of the present application Figure 6 In this application scenario, the MAC / PHY layer parameter is C-RNTI. During the random access process, the process of real UE accessing the fake base station and the fake UE accessing the real base station are independent, and C-RNTI is allocated by the fake base station and the real base station respectively. Therefore, after the security mode is established, C-RNTI query signaling can be sent down. After the base station obtains the C-RNTI reported by the UE, it compares them. If they are inconsistent, there is a middleman.
[0164] First, after the UE establishes a connection with the base station (through an intermediary), the UE can communicate with the base station at the RRC layer.
[0165] When there is no middleman, the base station directly allocates C-RNTI to the UE, so when the UE reports the C-RNTI, the C-RNTI is the same as the C-RNTI sent by the base station to the UE.
[0166] When there is a middleman, the base station assigns C-RNTI1 to the middleman's fake UE, and the middleman's fake base station assigns C-RNTI2 to the UE. Therefore, when the base station sends the UE C-RNTI inquiry signaling, the C-RNTI reported by the UE is C-RNTI2, which is different from the C-RNTI1 sent by the base station. Therefore, the base station can determine that there is a middleman.
[0167] In some cases, when the base station sends the UE C-RNTI inquiry signaling, the UE C-RNTI inquiry signaling can be encrypted and fully secured first, so that the middleman cannot decipher or tamper with the signaling. When the UE reports C-RNTI2, the C-RNTI2 can also be encrypted and fully secured first, so that the middleman cannot decipher or tamper with the C-RNTI2.
[0168] When the base station determines that there is a middleman, it can issue a warning or take defensive measures.
[0169] Fig.17 A scenario diagram of a man-in-the-middle detection method provided in an embodiment of the present application Figure 7 In this application scenario, the MAC / PHY layer parameter is C-RNTI.
[0170] First, after the UE establishes a connection with the base station (through an intermediary), the UE can communicate with the base station at the RRC layer.
[0171] When there is no middleman, the base station directly allocates C-RNTI to the UE, so when the UE reports the C-RNTI, the C-RNTI is the same as the C-RNTI sent by the base station to the UE.
[0172] When there is a middleman, the base station assigns C-RNTI1 to the middleman's fake UE, and the middleman's fake base station assigns C-RNTI2 to the UE. Therefore, when the UE actively reports C-RNTI2 at the RRC layer, the base station receives C-RNTI2 and compares it to find that C-RNTI2 is different from C-RNTI1 previously sent by the base station to the UE, and determines that there is a middleman.
[0173] It is understandable that the UE may set certain judgment conditions to trigger the operation of actively reporting C-RNTI2. For example, the UE reports C-RNTI2 to the base station at regular intervals. This embodiment of the present application does not limit this.
[0174] It is understandable that when the UE actively reports C-RNTI2, the C-RNTI2 can be encrypted and secured first, so that the middleman can only forward the C-RNTI2 but cannot crack or tamper with the C-RNTI2.
[0175] The other situations are similar to the previous application scenario and will not be described here.
[0176] When the base station determines that there is a middleman, it can issue a warning or take defensive measures.
[0177] Fig.18A schematic diagram of a defense measure or defense strategy in an embodiment of the present application. When the base station determines that there is a middleman, the base station changes the scheduling request (SR) configuration of the UE through a reconfiguration message, resulting in the pseudo base station being unable to detect the SR of the real UE, and thus unable to communicate through the middleman.
[0178] Before the base station reconfigures SR, the base station sends the SR configuration to the UE through MSG4. When the middleman receives the MSG4 through the fake UE, the middleman can unpack the MSG4 and obtain the SR configuration. Then, the fake base station part of the middleman sends the SR configuration to the UE through MSG4. At this time, the middleman can obtain the SR configuration, so when the UE initiates an SR request for resources according to the configuration, the fake UE can initiate an SR request for resources to the base array according to the previously obtained configuration.
[0179] When the base station determines that there is a middleman, the base station performs SR reconfiguration. The base station can send the SR configuration through the RRCConnReconfig signaling in ciphertext. The middleman cannot decrypt the RRC ConnReconfig signaling, so the middleman can only forward the transparent RRC ConnReconfig signaling. When the UE receives the RRC ConnReconfig signaling, the UE can decrypt and update the SR configuration, and then communicate with the base station through the reconfigured SR configuration. At this time, when the fake UE part of the middleman makes an SR request for resources based on the invalid configuration, the base station cannot detect the SR message on the PUCCH, so that the middleman cannot continue to attack the UE or the base station. It is understandable that in the presence of a middleman, after reconfiguring the SR configuration, the UE will be disconnected from the fake base station part of the middleman, so that the UE starts a new connection, which may be connected to the real base station. In the absence of a middleman, even if the SR configuration is reconfigured, the UE can still communicate normally with the real base station.
[0180] In actual applications, the base station may also reconfigure other MAC / PHY layer parameters to enable the UE to escape from man-in-the-middle attacks, which is not limited in the embodiments of the present application.
[0181] Fig.19 A structural schematic diagram of a communication device provided in an embodiment of the present application, the communication device may be a base station.
[0182] The communication device comprises:
[0183] The sending unit 1901 is used to send MAC / PHY layer parameter query signaling. The function of the sending unit is similar to that of step 601 in the above embodiment, and will not be repeated here.
[0184] The receiving unit 1902 is used to receive MAC / PHY layer parameters. The function of the receiving unit is similar to that of step 602 in the above embodiment, and will not be described again here.
[0185] The processing unit 1903 is used to verify whether the received MAC / PHY layer parameters are the same as the MAC / PHY layer parameters previously sent to the UE. If they are not the same, it is determined that there is a middleman.
[0186] The processing unit 1903 is further configured to send out an alarm signal or execute a corresponding defense strategy when it is determined that a middleman exists.
[0187] The function of the processing unit is similar to that of step 603 and step 604 in the aforementioned embodiment, and will not be repeated here.
[0188] Fig. 20 A schematic diagram of the structure of a communication device provided in an embodiment of the present application, the communication device may be a terminal device, and the communication device includes:
[0189] The receiving unit 2001 is used to receive the MAC / PHY layer parameter query signaling. The function of the receiving unit is similar to that of step 701 in the above embodiment, and will not be described again here.
[0190] The processing unit 2002 is used to decrypt the MAC / PHY layer parameter query signaling. The function of this processing unit is similar to that of step 702 in the above embodiment, and will not be repeated here.
[0191] The sending unit 2003 is used to report MAC / PHY layer parameters. The function of the sending unit is similar to that of step 703 in the above embodiment, and will not be described again here.
[0192] Fig.21 A structural schematic diagram of a communication device provided in an embodiment of the present application, the communication device may be a base station.
[0193] The communication device comprises:
[0194] The sending unit 2101 is used to send MAC / PHY layer parameters to the UE. The function of the sending unit is similar to that of step 902 in the above embodiment, and will not be described again here.
[0195] The receiving unit 2102 is used to receive the MAC / PHY layer parameters actively reported by the UE. The function of the receiving unit is similar to that of step 903 in the above embodiment, and will not be described again here.
[0196] Processing unit 2103 is used to decrypt the MAC / PHY layer parameters and compare the MAC / PHY layer parameters with the MAC / PHY layer parameters previously sent to the UE. If they are different, it is determined that there is a middleman. The function of this processing unit is similar to step 904 in the above embodiment and will not be repeated here.
[0197] Fig. 22 A schematic diagram of the structure of a communication device provided in an embodiment of the present application, the communication device may be a UE. The communication device includes:
[0198] The receiving unit 2201 is used to receive the MAC / PHY layer parameters sent by the base station. The function of the receiving unit is similar to that of step 1002 in the above embodiment, and will not be described again here.
[0199] The sending unit 2202 is used to actively report the MAC / PHY layer parameters to the base station. The function of the sending unit is similar to that of step 1003 in the above embodiment, and will not be described again here.
[0200] Fig.23 A schematic diagram of the structure of a communication system provided in an embodiment of the present application. The communication system may include a terminal device and a base station. The terminal device may also be referred to as a UE.
[0201] In one case, the base station and the aforementioned Fig.19 The corresponding communication device is similar, and the terminal device is the same as the aforementioned Fig. 20 The corresponding communication devices are similar and will not be described in detail here.
[0202] In another case, the base station and the aforementioned Fig.21 The corresponding communication device is similar, and the terminal device is the same as the aforementioned Fig. 22 The corresponding communication devices are similar and will not be described in detail here.
[0203] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0204] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0205] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0206] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0207] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
Claims
1. A man-in-the-middle detection method, It is characterized in that include: Sending a first medium access control MAC layer parameter or a first physical PHY layer parameter to a user equipment UE; Sending a MAC layer parameter query signaling or a PHY layer parameter query signaling to the UE through a radio resource control RRC layer, where the MAC layer parameter query signaling is used to instruct the UE to report a second MAC layer parameter corresponding to the MAC layer parameter query signaling and stored in the UE, and the PHY layer parameter query signaling is used to instruct the UE to report a second PHY layer parameter corresponding to the PHY layer parameter query signaling and stored in the UE; Receiving a second MAC layer parameter or a second PHY layer parameter reported by the UE; When the first MAC layer parameter is different from the second MAC layer parameter, or the first PHY layer parameter is different from the second PHY layer parameter, an alarm message indicating the presence of a middleman connecting the UE and the base station is generated or a defense instruction is executed.
2. The method according to claim 1, It is characterized in that Before sending MAC layer parameter query signaling or PHY layer parameter query signaling to the UE through the radio resource control RRC layer, the method further includes: The MAC layer parameter query signaling or the PHY layer parameter query signaling is encrypted by an encryption algorithm and an integrity protection algorithm.
3. The method according to claim 1, It is characterized in that After receiving the second MAC layer parameter or the second PHY layer parameter reported by the UE, the method further includes: The second MAC layer parameter or the second PHY layer parameter is decrypted.
4. The method according to claim 1, It is characterized in that The first MAC layer parameter or the first PHY layer parameter includes one or more of a timing advance TA, a power headroom report PHR, a physical frame number and a subframe number, and a cell radio network temporary identifier C-RNTI.
5. The method according to claim 1, It is characterized in that The execution defense instruction comprises: The encrypted scheduling request SR configuration signaling is sent down through the RRC layer, and the SR configuration signaling is used to instruct the UE to update the SR configuration parameters.
6. A method for detecting man-in-the-middle, It is characterized in that include: Reporting a first MAC layer parameter or a first PHY layer parameter to the base station through the RRC layer, where the first MAC layer parameter is used to instruct the base station to compare the first MAC layer parameter with a second MAC layer parameter sent by the base station, and the first PHY layer parameter is used to instruct the base station to compare the first PHY layer parameter with a second PHY layer parameter sent by the base station; When the first MAC layer parameter is different from the second MAC layer parameter, or the first PHY layer parameter is different from the second PHY layer parameter, the base station generates an alarm message indicating the presence of a middleman or executes a defense instruction, the middleman connecting the UE and the base station.
7. The method according to claim 6, It is characterized in that Before reporting the first MAC layer parameter or the first PHY layer parameter to the base station through the RRC layer, the method further includes: The first MAC layer parameter or the first PHY layer parameter is encrypted by using an encryption algorithm and an integrity protection algorithm.
8. The method according to claim 6, It is characterized in that The first MAC layer parameter or the first PHY layer parameter includes one or more of a timing advance TA, a power headroom report PHR, a physical frame number and a subframe number, and a cell radio network temporary identifier C-RNTI.
9. A communication device, It is characterized in that include: A sending unit, configured to send a first medium access control MAC layer parameter or a first physical PHY layer parameter to a user equipment UE; The sending unit is further used to send a MAC layer parameter query signaling or a PHY layer parameter query signaling to the UE through a radio resource control RRC layer, wherein the MAC layer parameter query signaling is used to instruct the UE to report a second MAC layer parameter corresponding to the MAC layer parameter query signaling stored in the UE, and the PHY layer parameter query signaling is used to instruct the UE to report a second PHY layer parameter corresponding to the PHY layer parameter query signaling stored in the UE; A receiving unit, configured to receive a second MAC layer parameter or a second PHY layer parameter reported by the UE; A processing unit is used to generate an alarm message indicating the existence of a middleman or execute a defense instruction when the first MAC layer parameter is different from the second MAC layer parameter, or the first PHY layer parameter is different from the second PHY layer parameter, and the middleman connects the UE and the base station.
10. The device according to claim 9, It is characterized in that The processing unit is also used for: The MAC layer parameter query signaling or the PHY layer parameter query signaling is encrypted by an encryption algorithm and an integrity protection algorithm.
11. The device according to claim 9, It is characterized in that The processing unit is further configured to: decrypt the second MAC layer parameter or the second PHY layer parameter.
12. The device according to claim 9, It is characterized in that The first MAC layer parameter or the first PHY layer parameter includes one or more of a timing advance TA, a power headroom report PHR, a physical frame number and a subframe number, and a cell radio network temporary identifier C-RNTI.
13. The device according to claim 9, It is characterized in that The processing unit is also used for: The encrypted scheduling request SR configuration signaling is sent down through the RRC layer, and the SR configuration signaling is used to instruct the UE to update the SR configuration parameters.
14. A communication device, It is characterized in that include: a sending unit, configured to report a first MAC layer parameter or a first PHY layer parameter to a base station through an RRC layer, wherein the first MAC layer parameter is used to instruct the base station to compare the first MAC layer parameter with a second MAC layer parameter issued by the base station, and the first PHY layer parameter is used to instruct the base station to compare the first PHY layer parameter with a second PHY layer parameter issued by the base station; When the first MAC layer parameter is different from the second MAC layer parameter, or the first PHY layer parameter is different from the second PHY layer parameter, the base station generates an alarm message indicating the presence of a middleman or executes a defense instruction, the middleman connecting the UE and the base station.
15. The device according to claim 14, It is characterized in that The device also includes: A processing unit is configured to encrypt the first MAC layer parameter or the first PHY layer parameter by using an encryption algorithm and an integrity protection algorithm.
16. The device according to claim 14, It is characterized in that The first MAC layer parameter or the first PHY layer parameter includes one or more of a timing advance TA, a power headroom report PHR, a physical frame number and a subframe number, and a cell radio network temporary identifier C-RNTI.
17. A communication system, It is characterized in that Including base station and UE; The base station is used to execute the middleman detection method described in any one of claims 1 to 5, and the UE is used to execute the middleman detection method described in any one of claims 6 to 8.
Citation Information
Patent Citations
Method for testing terminal accessing into pseudo base station and related product
CN107454599A
Apparatus for verifying certificate and method thereof, and recording medium storing program for executing method of the same in computer
KR1020130057678A
Method for Generating a Common Identifier for a Wireless Device in at Least Two Different Types of Networks
US20170245143A1
