Data traffic mirroring methods, devices, equipment and storage media
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-23
- Publication Date
- 2026-08-14
AI Technical Summary
[0005]本申请的目的,在于提供一种数据流量镜像方法、装置、设备及存储介质,通过在流量镜像启动阶段检测基站无线资源利用率,并依据预设阈值选择终端或UPF网元执行镜像任务,解决了现有固定镜像模式下镜像流量易占用端口带宽、高流量场景引发端口超载并过度消耗5G无线资源的问题,实现了网络资源的合理利用和正常业务流量的稳定传输
本申请实施例通过获取终端关联工业设备的地址信息并完成匹配,精准定位待镜像业务流,实现定向流量采集,提升了流量镜像的针对性。
Smart Images

Figure CN122579230A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of data processing technology, and in particular relates to a data traffic mirroring method, apparatus, device and storage medium. Background Technology
[0002] With the deep integration of 5G communication technology and the industrial internet, a large number of terminals and industrial equipment in industrial sites rely on 5G networks to carry out their work. During the operation and maintenance process, it is necessary to collect and analyze the traffic of specific services. Traffic mirroring technology has become the core means of 5G industrial network operation and maintenance.
[0003] In current 5G network scenarios, fixed port mirroring rules are commonly configured on switches to copy and collect business traffic between industrial equipment and terminals. The mirrored traffic is then forwarded to backend analysis equipment according to a preset link.
[0004] In this fixed mirroring mode, the mirrored traffic will continuously occupy the port bandwidth. When the base station's wireless resource load is high, it is very easy to cause port overload, resulting in excessive occupation of 5G wireless resources, which in turn interferes with the transmission of normal business traffic in industrial scenarios. Summary of the Invention
[0005] The purpose of this application is to provide a data traffic mirroring method, apparatus, device, and storage medium. By detecting the base station's wireless resource utilization rate during the traffic mirroring startup phase and selecting a terminal or UPF network element to perform the mirroring task according to a preset threshold, this solves the problems of mirrored traffic easily occupying port bandwidth and causing port overload and excessive consumption of 5G wireless resources in the existing fixed mirroring mode, thereby realizing the rational utilization of network resources and stable transmission of normal service traffic.
[0006] To achieve the above objectives, the solution proposed in this application is: In a first aspect, embodiments of this application provide a data traffic mirroring method, including: Obtain the first address information of the industrial equipment associated with the terminal; If the first address information matches the preset address information, obtain the second address information of the base station corresponding to the terminal; The base station's wireless resource utilization rate is obtained based on the second address information; When the terminal has already started data traffic mirroring, and the wireless resource utilization rate is greater than or equal to a preset threshold, the UPF network element is instructed to perform data traffic mirroring.
[0007] The method described in the embodiments of this application may also have the following additional technical features: Furthermore, when the terminal has already started data traffic mirroring, and the wireless resource utilization rate is greater than or equal to a preset threshold, the data traffic mirroring method also includes: instructing the terminal to turn off data traffic mirroring.
[0008] Furthermore, instructing the UPF network element to perform data traffic mirroring also includes: sending preset address information and preset service identification tags to the UPF network element so that the UPF network element performs data traffic mirroring based on the preset address information and preset service identification tags.
[0009] Furthermore, the data traffic mirroring method also includes: when the wireless resource utilization rate is less than a preset threshold, sending an add request to the core network equipment, the add request being used to instruct the terminal to be added to the service group corresponding to the terminal; Instruct the terminal to perform data traffic mirroring.
[0010] Furthermore, instructing the terminal to disable data traffic mirroring also includes sending a removal request to the core network equipment, the removal request being used to instruct the terminal to be removed from the service group corresponding to the terminal.
[0011] Furthermore, core network equipment includes NEF network elements and UDM network elements; Sending an add request to the core network equipment includes: sending an add request to the NEF network element so that the NEF network element forwards the add request to the UDM network element; the add request is also used to instruct the UDM network element to modify the terminal's preset identifier to an external identifier; wherein, the preset identifier is the identifier preset by the terminal; the external identifier is the identifier of the service group corresponding to the terminal.
[0012] Furthermore, core network equipment includes NEF network elements and UDM network elements; Sending a removal request to the core network equipment includes: sending a removal request to the NEF network element so that the NEF network element forwards the removal request to the UDM network element; the removal request is also used to instruct the UDM network element to modify the external identifier of the terminal to a preset identifier; wherein, the external identifier is the identifier of the service group corresponding to the terminal; the preset identifier is the identifier preset by the terminal.
[0013] Secondly, embodiments of this application provide a data traffic mirroring device, comprising: The first acquisition module is used to acquire the first address information of the industrial equipment associated with the terminal; The second acquisition module is used to acquire the second address information of the base station corresponding to the terminal when the first address information is consistent with the preset address information. The third acquisition module is used to acquire the wireless resource utilization rate of the base station based on the second address information; The mirroring adjustment module is used to instruct the UPF network element to perform data traffic mirroring when the wireless resource utilization rate is greater than or equal to a preset threshold, provided that data traffic mirroring has already been started on the terminal.
[0014] Thirdly, embodiments of this application provide a data traffic mirroring device, which includes a processor and a memory. The memory stores a computer program, which is loaded and executed by the processor to implement a data traffic mirroring method provided in the first aspect of embodiments of this application.
[0015] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, is used to implement a data traffic mirroring method provided in the first aspect of embodiments of this application.
[0016] The data traffic mirroring method provided in this application has the following advantages compared with the prior art: This application embodiment obtains and matches the address information of the terminal-associated industrial equipment, accurately locates the service flow to be mirrored, realizes targeted traffic collection, and improves the targeting of traffic mirroring.
[0017] This application embodiment collects the wireless resource utilization rate of the terminal accessing the base station in real time and combines it with a preset threshold to select the terminal or UPF network element as the mirror execution subject, breaking the limitation of fixed mirroring of traditional switches, and can flexibly select mirror nodes according to the real-time load of the 5G network.
[0018] In this embodiment, when the base station's wireless resource utilization rate is less than a preset threshold, the terminal performs traffic mirroring; when the wireless resource utilization rate is detected to be greater than or equal to the preset threshold, the mirroring task is automatically switched to the UPF network element for execution. This method can avoid the problem of mirrored traffic occupying wireless port bandwidth when wireless resources are scarce, prevent port overload and excessive consumption of wireless resources, and ensure stable transmission of normal business traffic in industrial scenarios. Attached Figure Description
[0019] Figure 1 A flowchart illustrating the data traffic mirroring method according to an embodiment of this application is shown; Figure 2 This paper illustrates a structural block diagram of the service-oriented architecture of the 5G core network according to an embodiment of this application. Figure 3 A structural block diagram of a data traffic mirroring device according to an embodiment of this application is shown; Figure 4 A structural block diagram of a computer device according to an embodiment of this application is shown. Detailed Implementation
[0020] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, the specific embodiments of this application will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, it should be noted that, for ease of description, only the parts relevant to this application are shown in the accompanying drawings, not the entire structure. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this application.
[0021] The terms “comprising” and “having”, and any variations thereof, used in this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0022] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0023] Reference Figure 1 This application provides a data traffic mirroring method, which is applied to the network management server in a 5G core network's Service-Based Architecture (SBA). For the specific composition of this architecture, please refer to... Figure 2 This method is designed for remote traffic mirroring scenarios in 5G industrial networks. It relies on RemoteSwitched Port Analyzer (RSPAN) technology to collect specified service flows. It can automatically switch mirroring execution nodes based on the wireless resource load of 5G base stations, while simplifying the traditional RSPAN multi-device linkage configuration process.
[0024] The data traffic processed in this application embodiment refers to uplink and downlink business data packets exchanged between industrial equipment and terminals, and external business servers. The core principle of traffic mirroring is: to completely copy the original business data packets that conform to the rules, while the original data packets are still transmitted according to normal routes, ensuring that core businesses such as industrial production and equipment communication are not affected; the copied mirrored data packets are tagged and encapsulated, and transmitted through a Generic Routing Encapsulation (GRE) tunnel, thereby achieving the collection and monitoring of specified business flows. This application embodiment only performs mirroring operations on data packets whose source or destination address matches the preset industrial equipment address; non-target traffic is not processed, achieving targeted collection and improving the accuracy of mirroring operations.
[0025] The method includes the following steps: Step 101: Obtain the first address information of the industrial equipment associated with the terminal.
[0026] This application embodiment deploys an independent network management server, which serves as the unified control core for the entire traffic mirroring strategy. It employs a centralized architecture to connect all network elements of the 5G core network and all industrial terminal devices on the access side. Unlike traditional distributed mirroring solutions that require configuring rules for each device individually, this application embodiment achieves unified formulation, distribution, and dynamic adjustment of the entire network mirroring strategy through a single control node, significantly improving the operational efficiency of the 5G industrial network.
[0027] Before executing any traffic mirroring task, the network administrator must complete a one-time initialization configuration with the network management server. All configuration information is stored in the local database of the network management server, supporting subsequent on-demand modifications and batch synchronization. Specific configuration content and functions include: Virtual Local Area Network (VLAN) tags corresponding to mirrored traffic: Assign a unique VLAN tag to each type of service flow to be mirrored to achieve logical isolation of mirrored traffic of different industrial services and avoid mixing of mirrored data of different services; Address information of industrial equipment to be mirrored: Enter the address information of all industrial equipment that needs to have its traffic collected, as the core basis for subsequent traffic filtering; Preset threshold for monitoring base station wireless resource utilization: Set a critical value for wireless resource load. When the base station load exceeds this threshold, the mirror node handover will be automatically triggered. Usually, this threshold is set to a value that can both ensure normal service transmission and reserve a certain amount of redundant bandwidth. Generic Routing Encapsulation (GRE) Labels and Various Generic Routing Encapsulation Tunnel Addresses: Configure the label parameters and tunnel identifiers required for GRE encapsulation to provide a dedicated transmission channel for mirrored data packets and ensure independent transmission of mirrored data.
[0028] During the initialization phase of the traffic mirroring task, the network management server first proactively sends device information query requests to terminals across the entire network through the core network control plane and the N1 interface. The terminals referred to in this embodiment include gateway-type terminals deployed in industrial sites, which connect to multiple industrial devices, such as industrial sensors, programmable logic controllers, CNC machine tools, and other production equipment, undertaking the function of aggregating and forwarding industrial data.
[0029] After receiving the query command, the terminal traverses all the downstream industrial devices connected locally, counts and summarizes the first address information of each associated industrial device, and finally sends the complete address list back to the network management server.
[0030] Specifically, the address information in this application embodiment adopts Internet Protocol (IP) address, which is a common address identification method for industrial Ethernet and 5G networks. It has good compatibility and scalability and can adapt to the networking needs of most industrial sites.
[0031] Step 102: If the first address information is consistent with the preset address information, obtain the second address information of the base station corresponding to the terminal.
[0032] In this embodiment of the application, the network management server is locally configured and stores preset address information. This preset address information is a list of IP addresses corresponding to industrial devices that need to have their traffic collected, pre-entered by the administrator. The network management server compares the first address information reported by the terminal with the locally stored preset address information field by field, and filters out terminals whose downstream links contain the target industrial devices.
[0033] This address matching step is a prerequisite for targeted traffic collection. Industrial sites typically have hundreds or thousands of terminals and industrial devices deployed. Through precise address matching, traffic mirroring can be performed only on designated industrial devices, avoiding invalid collection of all traffic across the entire network and reducing network resource consumption.
[0034] After confirming the target terminal, the network management server retrieves the locally maintained 5G network topology database. This database, synchronized in real time with access and mobility management function network elements, dynamically updates the topology association information between terminals, base stations, and core network elements, enabling precise location of the base station currently accessed by any terminal. Based on the target terminal's unique device identifier, the network management server searches the topology database for the base station information currently wirelessly accessed by the terminal, ultimately extracting the second address information corresponding to that base station.
[0035] Step 103: Obtain the wireless resource utilization rate of the base station based on the second address information.
[0036] After obtaining the second address information of the base station accessed by the target terminal, the network management server establishes a dedicated data interaction link through the N2 port between the base station and the access and mobility management function network element via the 5G core network control plane, and actively sends a resource status collection command to the base station to accurately obtain the current wireless resource utilization rate of the base station based on the second address information.
[0037] Specifically, this application uses Physical Resource Block (PRB) utilization as the core indicator for measuring wireless resource load. A PRB is the smallest scheduling unit for 5G wireless air interface resources. Each PRB corresponds to independent time-domain and frequency-domain resources, and its utilization can intuitively and accurately reflect the real-time load status of the 5G wireless air interface. Compared to other monitoring indicators, PRB utilization is strongly correlated with the transmission quality of industrial services and is the basis for determining whether to switch mirror nodes in this application.
[0038] The network management server periodically collects the PRB utilization rate of the base station according to a preset cycle. The cycle can be flexibly adjusted according to the real-time operation and maintenance needs of the industrial site. The PRB utilization rate ranges from 0 to 100%, which is used to classify the resource status of the base station. When the PRB utilization rate is lower than the preset threshold, it is determined that the wireless resources are in an idle state, and the terminal side can normally carry mirrored traffic. When the PRB utilization rate is greater than or equal to the preset threshold, it is determined that the wireless resources are in a high-load state, and the terminal side continuing to execute mirroring will occupy the normal service bandwidth.
[0039] Step 104: When the terminal has already started data traffic mirroring, and the wireless resource utilization rate is greater than or equal to a preset threshold, instruct the UPF network element to perform data traffic mirroring.
[0040] In this embodiment of the application, the network management server is pre-configured and stores a preset threshold for determining wireless resource utilization. This preset threshold serves as a critical standard for distinguishing between idle and high-load states of wireless resources and is used to compare with the collected base station PRB utilization. The network management server monitors the base station PRB utilization. When the terminal has already been running data traffic mirroring normally and the wireless resource utilization is detected to be greater than or equal to the preset threshold, it determines that the current 5G wireless air interface resources are scarce. Subsequently, it instructs the User Plane Function (UPF) network element to take over and execute data traffic mirroring via the core network control plane and N4 port.
[0041] Based on the linkage logic of this application embodiment, while sending mirroring-related instructions to the UPF network element, the network management server simultaneously sends a shutdown instruction to the terminal, requiring the terminal to stop local data traffic mirroring operations, so as to prevent the same traffic from being mirrored repeatedly and wasting network resources.
[0042] After the terminal completes the mirroring shutdown operation, the network management server sends a removal request to the core network equipment. This removal request is used to remove the terminal from the corresponding service group. In this embodiment of the application, the service group is a Virtual Network (VN) group, which is a logical group within the 5G core network used for service isolation and access control. Different service groups correspond to different network access rules and identification systems.
[0043] Specifically, the core equipment in this application embodiment includes a Network Exposure Function (NEF) network element and a Unified Data Management (UDM) network element. The NEF network element is responsible for cross-network element instruction forwarding and serves as the interaction hub between the network management server and the 5G core network; the UDM network element uniformly stores user subscription data, identifiers, and service group associations of all terminals across the network.
[0044] The network management server sends a removal request to the NEF network element, which forwards it to the UDM network element. This removal request instructs the UDM network element to restore the external identifier of the service group currently used by the terminal to the terminal's original preset identifier.
[0045] After receiving the removal request, the UDM network element retrieves the corresponding subscription data of the terminal, completes the identifier rollback operation, and releases the terminal from the current VN group. Once the operation is complete, the UDM network element transmits the processing result back to the network management server via the NEF network element, completing the corresponding configuration changes for the mirror subject switch.
[0046] Meanwhile, the network management server sends preset address information and preset service identification tags to the UPF network element, providing a basis for UPF to perform mirroring. After receiving the above configuration information, the UPF network element performs local persistent storage, generating a local UPF cache record. Subsequent traffic identification and matching work directly calls the cache content, eliminating the need for repeated interaction with the management server and reducing signaling overhead.
[0047] Furthermore, the UPF network element is configured with an uplink general routing encapsulation tunnel address, continuously receives the first uplink data packet uploaded by the terminal, and parses and extracts the first source address corresponding to the data packet; when the source address matches the preset address in the cache, the UPF network element completely copies the data packet, adds the preset service identifier label and GRE label in sequence, and then completes the mirror data packet transmission through the corresponding GRE tunnel.
[0048] The UPF network element is also configured with a downlink GRE tunnel address, continuously receiving the first downlink data packet sent by the external service server and parsing to extract the first destination address corresponding to the data packet. When the destination address matches the preset address in the cache, it also performs data packet copying and label encapsulation operations, and transmits the mirrored data packet through the downlink GRE tunnel. The UPF network element completes the mirroring of all uplink and downlink traffic, and the overall collection rules are consistent with those on the terminal side, ensuring uninterrupted mirrored services during the handover process.
[0049] Furthermore, when the base station's wireless resource utilization rate is less than a preset threshold and the system has not started the mirroring task, the network management server will send an add request to the core network equipment. This add request is used to add the terminal to the corresponding service group and simultaneously instruct the terminal to start data traffic mirroring.
[0050] In this embodiment of the application, the NEF network element and the UDM network element work together to complete the grouping operation. The network management server sends the add request to the NEF network element, which then forwards it to the UDM network element. This request is used to instruct the UDM network element to modify the original preset identifier of the terminal to the external identifier of the corresponding service group.
[0051] The network management server pre-binds VN groups to preset service identifiers, with each VN group corresponding to a unique preset service identifier. This mapping allows for rapid matching of target packets. The service flow to be mirrored is defined as a data packet whose source or destination address matches the address of the industrial equipment. The entire matching rule set is uniformly configured in the management server.
[0052] Compared to the cumbersome operation of manually creating a unified VLAN on all devices across the network, the embodiment of this application relies on the core network to automatically complete the binding of terminals to VN groups, eliminating the need for manual configuration of each device and significantly reducing the difficulty of configuration and the error rate of operation.
[0053] After the UDM network element modifies the terminal's subscription data and completes the identifier replacement, it sends the result back to the network management server via the NEF network element. Upon receiving the image startup command, the terminal stores the received configuration information locally, generating a local cache record. Subsequent traffic identification directly calls the cache, reducing signaling interaction.
[0054] The terminal is configured with both uplink and downlink GRE tunnel addresses. The terminal continuously receives second uplink data packets from downstream industrial equipment, parses and extracts the source address, and upon successful matching, copies the data packet, overlays the corresponding tag, and transmits the mirrored data through the uplink GRE tunnel. Simultaneously, the terminal receives second downlink data packets from UPF network elements, parses and extracts the destination address, and upon successful matching, performs the same mirroring encapsulation and forwarding operations. The terminal independently transmits mirrored data packets through the GRE tunnel, enabling the acquisition of full uplink and downlink service flows from industrial equipment.
[0055] Thus, this embodiment of the application completes the entire process of traffic mirroring initialization deployment, load monitoring, and dynamic switching of the execution entity. This embodiment of the application uses the base station PRB utilization rate as the switching basis. When radio resources are idle, the terminal performs mirroring, and when radio resources are under high load, the UPF network element performs mirroring. This fundamentally avoids the problem of mirrored traffic crowding out 5G radio port bandwidth and causing port overload, ensuring the stable operation of normal industrial services.
[0056] Existing traditional fixed switch mirroring solutions and conventional RSPAN technology have significant drawbacks. On the one hand, mirrored traffic continuously occupies port bandwidth, which can easily cause port overload in high-traffic scenarios. In 5G network environments, port overload will further consume excessive wireless resources and interfere with the transmission of normal business traffic in industrial scenarios. On the other hand, traditional RSPAN requires manually creating a unified VLAN on all devices participating in mirroring across the entire network. After adding relevant 5G core network configurations, the overall configuration process is cumbersome and complex, and configuration errors are very likely to occur.
[0057] This application embodiment relies on the collaborative operation of multiple network elements in the 5G core network to complete command forwarding, terminal grouping, and identifier changes. It overcomes the limitations of the traditional fixed mirroring mode of switches, preventing mirrored traffic from crowding out 5G wireless port bandwidth and causing port overload. This effectively protects wireless air interface resources and ensures stable transmission of normal business traffic in industrial scenarios. Simultaneously, it achieves targeted traffic collection through precise address information matching, reduces network element signaling overhead through local caching mechanisms, and uses GRE tunnels for traffic classification and forwarding. Only one initial configuration is required; subsequent processes such as IP lookup, VN group addition / deletion, mirroring startup / shutdown, and node switching are all automated, significantly simplifying configuration workload, reducing the risk of errors from manual operation, and comprehensively improving the rationality, operational efficiency, and practicality of 5G industrial network traffic mirroring deployment.
[0058] This application embodiment periodically collects base station PRB utilization rate, monitors real-time changes in 5G wireless air interface resource load, automatically switches the mirroring execution subject, and completes supporting configuration updates such as terminal mirroring startup / shutdown and terminal removal / addition to service groups. This application embodiment breaks through the traditional fixed mirroring node mode, dynamically adjusting the mirroring execution subject according to network operating status. During service operation, it promptly avoids port overload issues caused by mirrored traffic occupying wireless port bandwidth, continuously ensuring that 5G wireless resources are prioritized for normal industrial service transmission, and improving the adaptability and operational stability of the traffic mirroring solution to dynamic changes in network load. Simultaneously, this application embodiment completes service flow matching based on data packet source and destination addresses, accurately locating the traffic to be collected, possessing good scalability, and adapting to 5G industrial network deployment scenarios of different scales and topologies.
[0059] It should be noted that this application uses PRB utilization as the basis for determining wireless resource utilization. In actual 5G network scenarios, other indicators that can replace PRB utilization as the indicator of wireless resource utilization include: Wireless Channel Occupancy Rate (WCOR); Air Interface Bandwidth Utilization Rate (AIBUR); User Connection Load Rate (UCLR); Downlink Throughput Utilization Rate (DTUR); Uplink Throughput Utilization Rate (UTUR); Terminal Access Number Utilization Rate (TANUR); Random Access Channel Load Rate (RACLR); Signaling Channel Utilization Rate (SCUR); Air Interface Transmission Delay (AITD); Air Interface Packet Loss Rate (AIPLR); Base Station Transmit Power Utilization Rate (BSTPUR); Received Signal Strength Load (RSSL).
[0060] The above-mentioned indicators can be used individually or in combination as the wireless resource utilization rate in this application embodiment, replacing the PRB utilization rate to perform threshold comparison logic. These indicators can objectively reflect the real-time load status of the 5G base station's wireless air interface, channel, and access resources. When the indicator value reaches a preset threshold, it indicates that the current wireless resources are strained, which can trigger the switching action of the mirror execution subject. The technical principle and judgment process are fully compatible with the embodiments of this application and can be flexibly adapted to the monitoring needs of different industrial 5G networks.
[0061] Please refer to Figure 3 A data traffic mirroring device provided in this application embodiment includes: The first acquisition module 201 is used to acquire the first address information of the industrial equipment associated with the terminal; The second acquisition module 202 is used to acquire the second address information of the base station corresponding to the terminal when the first address information is consistent with the preset address information; The third acquisition module 203 is used to acquire the wireless resource utilization rate of the base station based on the second address information; The mirroring adjustment module 204 is used to instruct the UPF network element to perform data traffic mirroring when the wireless resource utilization rate is greater than or equal to a preset threshold, provided that the terminal has already started data traffic mirroring.
[0062] The data traffic mirroring device in this application embodiment can be a computer device or a component within the computer device, such as an integrated circuit or a chip. The computer device can be a terminal or other devices besides a terminal. For example, the computer device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle computer device, mobile internet device (MID), ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc., and can also be a server, network attached storage (NAS), personal computer (PC), etc. This application embodiment does not specifically limit the device.
[0063] The data traffic mirroring device provided in this application embodiment can achieve... Figure 1 The various processes implemented in the data traffic mirroring method embodiment will not be described again here to avoid repetition.
[0064] This application also provides a computer device, please refer to... Figure 4The computer device includes a processor 301 and a memory 302. The memory 302 stores a program or instruction that can run on the processor 301. When the program or instruction is executed by the processor 301, it implements each step of the above-mentioned data traffic mirroring method and achieves the same technical effect. To avoid repetition, it will not be described in detail here.
[0065] It should be noted that the computer device in the embodiments of this application includes the mobile computer device and the non-mobile computer device described above.
[0066] The memory 302 can be used to store software programs and various data. The memory 302 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 302 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 302 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0067] Processor 301 may include one or more processing units; optionally, processor 301 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 301.
[0068] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described data traffic mirroring method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0069] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described data traffic mirroring method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0070] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0071] This application also provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the data traffic mirroring method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0072] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0073] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A data traffic mirroring method, characterized in that, The data traffic mirroring method includes: Obtain the first address information of the industrial equipment associated with the terminal; If the first address information is consistent with the preset address information, the second address information of the base station corresponding to the terminal is obtained; The wireless resource utilization rate of the base station is obtained based on the second address information; When the terminal has already started data traffic mirroring, and the wireless resource utilization rate is greater than or equal to a preset threshold, the UPF network element is instructed to perform the data traffic mirroring.
2. The data traffic mirroring method according to claim 1, characterized in that, When the terminal has already initiated data traffic mirroring, and the wireless resource utilization rate is greater than or equal to a preset threshold, the data traffic mirroring method further includes: Instruct the terminal to turn off the data traffic mirroring.
3. The data traffic mirroring method according to claim 1, characterized in that, The instruction to the UPF network element to perform the data traffic mirroring also includes: The preset address information and preset service identification tag are sent to the UPF network element so that the UPF network element can perform the data traffic mirroring according to the preset address information and preset service identification tag.
4. The data traffic mirroring method according to claim 1, characterized in that, The data traffic mirroring method also includes: When the wireless resource utilization rate is less than a preset threshold, an add request is sent to the core network equipment. The add request is used to instruct the terminal to be added to the service group corresponding to the terminal. The terminal is instructed to perform the data traffic mirroring.
5. The data traffic mirroring method according to claim 2, characterized in that, The instruction to the terminal to turn off the data traffic mirroring also includes: A removal request is sent to the core network equipment, the removal request being used to instruct the terminal to be removed from the service group corresponding to the terminal.
6. The data traffic mirroring method according to claim 4, characterized in that, The core network equipment includes NEF network elements and UDM network elements; Sending the add request to the core network device includes: The add request is sent to the NEF network element so that the NEF network element forwards the add request to the UDM network element. The add request is also used to instruct the UDM network element to modify the terminal's preset identifier to an external identifier. The preset identifier is the identifier preset by the terminal, and the external identifier is the identifier of the service group corresponding to the terminal.
7. The data traffic mirroring method according to claim 5, characterized in that, The core network equipment includes NEF network elements and UDM network elements; Sending a removal request to the core network equipment includes: The removal request is sent to the NEF network element so that the NEF network element forwards the removal request to the UDM network element. The removal request is also used to instruct the UDM network element to modify the external identifier of the terminal to a preset identifier. The external identifier is the identifier of the service group corresponding to the terminal. The preset identifier is the identifier preset by the terminal.
8. A data traffic mirroring device, characterized in that, include: The first acquisition module is used to acquire the first address information of the industrial equipment associated with the terminal; The second acquisition module is used to acquire the second address information of the base station corresponding to the terminal when the first address information is consistent with the preset address information; The third acquisition module is used to acquire the wireless resource utilization rate of the base station based on the second address information; The mirroring adjustment module is used to instruct the UPF network element to perform the data traffic mirroring when the wireless resource utilization rate is greater than or equal to a preset threshold, provided that the terminal has already started data traffic mirroring.
9. A data traffic mirroring device, the data traffic mirroring device comprising a processor and a memory, the memory storing a computer program, characterized in that, The computer program is loaded and executed by the processor to implement a data traffic mirroring method as described in any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it is used to implement a data traffic mirroring method as described in any one of claims 1 to 8.