Information processing method and related equipment

By using the port pre-allocation table to identify terminal devices in a broadband service communication network, the problem of not being able to effectively identify terminal devices is solved, accurate positioning and fault resolution in service quality events is achieved, and service quality is improved.

CN119892746APending Publication Date: 2025-04-25HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311380290.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-23
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In the communication network of broadband services, terminal equipment cannot be effectively identified, resulting in the inability to determine the specific terminal equipment when a service quality event occurs, affecting the service quality.

Method used

By generating and using a port pre-allocation table, this table indicates the public IP addresses and port number ranges assigned by multiple terminal devices respectively, ensuring that the port number ranges of any two terminal devices with the same public IP address are not overlapped. Based on this table, the terminal device that sends the public network application stream can be identified.

Benefits of technology

It realizes that terminal equipment that can accurately locate network failures when service quality events occur, thereby improving service quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892746A_ABST
    Figure CN119892746A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an information processing method and related equipment, which are used for identifying terminal equipment according to an application flow. In the application, firstly, a port pre-allocation table is received, the port pre-allocation table is used for indicating public network IP addresses and port number ranges respectively allocated to a plurality of terminal devices, the public network IP addresses allocated to the plurality of terminal devices are different, and the port number ranges are different from the public network IP addresses allocated to the plurality of terminal devices. The ranges of the port numbers distributed by any two terminal devices which are distributed with the same public network IP address in the port pre-distribution table are not overlapped. Therefore, when the first public network IP address and the first port number of the public network application flow are obtained, the first terminal device corresponding to the first public network IP address and the first port number can be determined based on the port pre-allocation table, and the first terminal device is one terminal device in the multiple terminal devices, so that the terminal device corresponding to the public network application flow can be identified and sent. Therefore, when the poor-service-quality event occurs, the terminal device with the network fault can be determined, so that the service quality is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to an information processing method and related equipment. Background Art

[0002] Broadband service refers to the way in which network providers provide network services to users. Broadband services have been popularized in households, but there is still much room for improvement in the quality of their services.

[0003] In the communication network of broadband services, the terminal device can send application streams to the gateway device, the gateway device forwards the application streams to the OLT, and the OLT forwards the application streams to the application server. The gateway device can be set up in the home, and the OLT can have a built-in application stream detection (deep packet inspection, DPI) interception board to intercept the application stream, obtain the flow information therein, and upload it to the experience assurance management platform. After the experience assurance management platform obtains the flow information, it can perform data analysis to determine the service quality poor event.

[0004] Among them, the source IP address in the application flow sent by the terminal device is a private network (internet protocol, IP) address. The gateway device, as a network address translation (NAT) device, can convert the private IP address in the application flow sent by the terminal device into a public IP address. Therefore, the application flow intercepted by the gateway device and the traffic information obtained are at the household level (one gateway device is regarded as one household). When a poor service quality event occurs, the experience assurance management platform can only determine the gateway device with the problem based on the traffic information, and cannot further determine the terminal device with the problem. Summary of the invention

[0005] The embodiments of the present application provide an information processing method and related devices for identifying a terminal device based on an application flow.

[0006] The first aspect of the present application provides an information processing method, in which a port pre-allocation table is first received, and the port pre-allocation table is used to indicate the public network IP addresses and port number ranges respectively allocated to multiple terminal devices, wherein the public network IP addresses allocated to the multiple terminal devices are not exactly the same, and the port number ranges allocated to any two terminal devices that are allocated the same public network IP address in the port pre-allocation table do not overlap. Then, when the first public network IP address and the first port number of the public network application flow are obtained, the first terminal device corresponding to the first public network IP address and the first port number can be determined based on the port pre-allocation table. The first terminal device is one of the multiple terminal devices, so that the terminal device corresponding to the sending of the public network application flow can be identified, and then when a poor service quality event occurs, the terminal device where the network failure occurs can be determined to improve the service quality.

[0007] In some possible implementations, the entries of the port pre-allocation table include a public IP address, a port number range, and device information, and the device information includes a MAC address of one of the multiple terminal devices, so that the corresponding terminal device can be identified by the MAC address.

[0008] In some possible implementations, the device information includes a device account and a device type, so more information about the corresponding terminal device can be further obtained through the device account and the device type to improve service quality.

[0009] In some possible implementations, the device information includes access mode, access frequency and signal strength, so more information about the corresponding terminal device can be further obtained through the device account and device type to improve service quality.

[0010] In some possible implementations, after receiving the public network application flow, the first public network IP address and the first port number can be obtained from the public network application flow, so that the terminal device identification device can obtain the first flow information of the public network application flow.

[0011] In some possible implementations, by receiving first flow information, the first flow information includes the first public IP address and the first port number in the public application flow, so that the terminal device identification device obtains the first public IP address and the first port number of the public application flow.

[0012] The second aspect of the present application provides an information processing method, in which a port pre-allocation table is first generated, and the port pre-allocation table is used to indicate the public network IP addresses and port number ranges respectively allocated to multiple terminal devices, wherein the public network IP addresses allocated to the multiple terminal devices are not the same, and the port number ranges allocated to any two terminal devices that are allocated the same public network IP address in the port pre-allocation table do not overlap. Then, the port pre-allocation table is sent. Then, when the device that receives the port pre-allocation table receives an application flow, it can obtain the public network IP address and port number of the application flow, and then identify the corresponding terminal device, and then when a poor service quality event occurs, it can determine the terminal device where the network failure occurs to improve the service quality.

[0013] In some possible implementations, before generating the port pre-allocation table, the method includes: accessing multiple terminal devices; recording the private IP addresses and device information of the multiple terminal devices to obtain multiple private IP addresses; determining the public IP address corresponding to each private IP address in the multiple private IP addresses to obtain a NAT table entry, wherein the NAT table entry is used to indicate the mapping from the private IP address to the public IP address, wherein the public IP addresses mapped to any two private IP addresses in the multiple private IP addresses are not exactly the same. Then, the port pre-allocation table can be generated based on the public IP address, the private IP address and the device information.

[0014] In some possible implementations, the method further includes: receiving a private network application flow sent by a first terminal device, the source IP address of the private network application flow is a first private network IP address, and the first terminal device is one of the multiple terminal devices; converting the first private network IP address into a first public network IP address based on the NAT table entry to obtain a public network application flow, the first public network IP address is the public network IP address mapped to the first private network IP address based on the NAT table entry; and sending the public network application flow. Then, the public network IP address and port number of the application flow can be obtained, and then the corresponding terminal device can be identified according to the port pre-allocation table, and then when a poor service quality event occurs, the terminal device where the network failure occurs can be determined to improve the service quality.

[0015] In some possible implementations, the entries of the port pre-allocation table include a public IP address, a port number range, and device information, and the device information includes a MAC address of one of the multiple terminal devices, so that the corresponding terminal device can be identified by the MAC address.

[0016] In some possible implementations, the device information includes a device account and a device type, so more information about the corresponding terminal device can be further obtained through the device account and the device type to improve service quality.

[0017] In some possible implementations, the device information includes access mode, access frequency and signal strength, so more information about the corresponding terminal device can be further obtained through the device account and device type to improve service quality.

[0018] A third aspect of the present application provides a terminal device identification device, which is used to execute any of the methods described in the first aspect.

[0019] A fourth aspect of the present application provides a gateway device, wherein the terminal device identification device is used to execute any of the methods described in the second aspect.

[0020] A fifth aspect of the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes any one of the methods in the first aspect, the second aspect, or the third aspect.

[0021] In a sixth aspect, the present application provides a computer program product, which includes computer execution instructions, which are stored in a computer-readable storage medium; at least one processor of a device can read the computer execution instructions from the computer-readable storage medium, and at least one processor executes the computer execution instructions so that the device implements the method provided by the first aspect or any possible implementation of the first aspect.

[0022] In a seventh aspect, the present application provides a communication device, which may include at least one processor, a memory, and a communication interface. At least one processor is coupled to the memory and the communication interface. The memory is used to store instructions, at least one processor is used to execute the instructions, and the communication interface is used to communicate with other communication devices under the control of at least one processor. When the instruction is executed by at least one processor, the at least one processor executes the method in the first aspect or any possible implementation of the first aspect.

[0023] An eighth aspect of the present application provides a chip system, which includes a processor for supporting the implementation of the functions involved in the above-mentioned first aspect or any possible implementation method of the first aspect.

[0024] In a possible design, the chip system may also include a memory, which is used to store necessary program instructions and data. The chip system may be composed of a chip, or may include a chip and other discrete devices.

[0025] Among them, the technical effects brought about by the third to eighth aspects or any possible implementation methods thereof can refer to the technical effects brought about by different possible implementation methods of the first aspect or the second aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1-1 A schematic diagram of the structure of a communication network provided in an embodiment of the present application;

[0027] Figure 1-2 A schematic diagram of the structure of a communication network provided in an embodiment of the present application;

[0028] Figure 2-1 A flowchart of an information processing method provided in an embodiment of the present application;

[0029] Figure 2-2 A schematic diagram of the attribution of network failures for this application;

[0030] Figure 3 A flowchart of an information processing method provided in an embodiment of the present application;

[0031] Figure 4 Another flowchart of an information processing method provided by an embodiment of the present application;

[0032] Figure 5 Another flowchart of an information processing method provided by an embodiment of the present application;

[0033] Figure 6 Another schematic diagram of the structure of a gateway device provided in an embodiment of the present application;

[0034] Figure 7 Another structural schematic diagram of a terminal device identification device provided in an embodiment of the present application;

[0035] Figure 8 A schematic diagram of the structure of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] The embodiments of the present application provide an information processing method and related devices for identifying a terminal device based on an application flow.

[0037] The embodiments of the present application are described below in conjunction with the accompanying drawings.

[0038] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0039] This application can be applied to communication networks. Figure 1-1 and Figure 1-2 As shown, the communication network 100 includes: a terminal device 110, a gateway device 120, an optical line terminal (OLT) 130, a broadband access server (BRAS) 140, an experience assurance management platform 150 and an application server 160.

[0040] The user terminal 110 may be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal device 110.

[0041] The gateway device 120 may be an access point (AP), an access controller (AC), a router / switch or an optical network terminal (ONT). The gateway device 120 may be set up in a home, an office or other applicable scenarios. For example, an ONT may be set up in a home, also known as an "optical modem". The ONT uses a large-scale integrated chip with a simple circuit, low power consumption, high reliability, and a complete alarm status indication and a perfect network management function.

[0042] Among them, a router / switch is a hardware device that connects two or more user devices and acts as a gateway between user devices. A router / switch is a dedicated intelligent network device that can read the destination address in a message and decide how to transmit the message according to the destination address. A router / switch can understand different protocols, such as the Ethernet protocol used in a local area network and the transmission control protocol / internet protocol (TCP / IP) protocol used in the Internet. In this way, a router / switch can analyze the destination addresses of messages sent from various types of networks, convert non-TCP / IP addresses into TCP / IP addresses, or vice versa; and then transmit each message to the destination address along the best transmission path according to the routing algorithm, so a router / switch can connect a non-TCP / IP network to the Internet.

[0043] OLT 130 is the core component of the optical access network based on optical fiber, which is equivalent to the switch or router in the traditional communication network, and is also a multi-service providing platform. OLT 130 is generally placed at the central office, providing the optical fiber interface of the passive optical fiber network for users. The functions that OLT 130 can achieve include: on the one hand, the signals carrying various services are aggregated at the central office, and sent to the access network according to a certain signal format for transmission to the end user, and on the other hand, the signals from the end user are sent to various service networks according to the service type.

[0044] BRAS140 is a new access gateway for broadband network applications, which can complete data access of user bandwidth, realize broadband Internet access for commercial buildings and residents in residential areas, support ISP wholesale services to users, etc. Exemplarily, a dynamic point-to-point protocol (PPP) connection is established between BRAS140 and terminal device 110. Exemplarily, the network side interface of BRAS140 is connected to the core network device, so that BRAS140 can send a billing start message after the terminal device 110 goes online.

[0045] In some possible implementations, the OLT 130 or the BRAS 140 may have a built-in DPI interception board. The DPI interception board is used to intercept the application flow to obtain the traffic information between the terminal device 110 and the application server 160, and upload it to the experience assurance management platform 150. It should be noted that DPI is a traffic detection and control technology based on the application layer. Enterprises and Internet service providers often use DPI to identify and prevent network attacks, track user behavior, block malware, and monitor network traffic. DPI checks the data and metadata associated with a single application flow. When the application flow approaches the checkpoint, DPI intercepts any protocol violations, viruses, spam, and other anomalies, and prevents the application flow from continuing to pass the checkpoint.

[0046] The experience assurance management platform 150 is used to achieve effective connection between the physical network and business intent, to realize centralized management, control and analysis of the global network downward, to enable resource cloudification, full life cycle automation, and intelligent closed loop driven by data analysis for business and business intent. The experience assurance management platform 150 is mainly used in scenarios such as operator networks, data centers, enterprise campuses, and enterprise dedicated lines, making the network simpler, smarter, more open and secure, and accelerating the business transformation and innovation of operators and enterprises. Exemplarily, the experience assurance management platform 150 can be used as a campus network analyzer, collecting network data in real time through telemetry, using big data analysis and machine learning algorithms to learn network behavior and identify fault modes, helping operation and maintenance personnel to proactively discover most network problems and create an excellent network service assurance experience.

[0047] In the embodiment of the present application, the experience assurance management platform 150 is used as a home network management system, as a cloud management system, for remotely managing the home gateway device 120. In the embodiment of the present application, the DPI interception board built into the gateway device 130 intercepts the application flow data, obtains the flow information between the gateway device 120 and the server, and uploads it to the experience assurance management platform 150. After the experience assurance management platform 150 obtains the flow information, it can perform data analysis to determine the poor service quality event.

[0048] The application server 160 is used to respond to service requests and process them, and provide reliable services. For example, the application server 160 receives a service request from the terminal device 110 and responds to the service request. Therefore, in general, the application server 160 should have the ability to undertake services and guarantee services. The application server 160 needs to have strong processing power, high stability, high reliability, high security, scalability and manageability. In the embodiment of the present application, the application server 160 can be an x86 server, which is also called a complex instruction set computer (CISC) architecture server, that is, a personal computer (PC) server, which is based on the PC architecture and uses an Intel (Intel) or other x86 instruction set compatible processor chip and a Windows operating system.

[0049] The application server 160 may have relatively large differences due to different configurations or performances, and may include at least one central processing unit (CPU) (e.g., at least one processor) and memory, and at least one storage medium (e.g., at least one mass storage device) for storing application programs or data. Among them, the memory and the storage medium may be temporary storage or permanent storage. The program stored in the storage medium may include at least one module, and each module may include a series of instruction operations on the application server 160. Furthermore, the central processing unit may be configured to communicate with the storage medium and execute a series of instruction operations in the storage medium on the application server 160. The application server 160 may also include at least one power supply, at least one wired or wireless network interface, at least one input and output interface, and / or at least one operating system, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, NetWare, etc. In some feasible implementations, the application server 160 may also be a cloud server, which is not limited here.

[0050] In the communication network 100, the terminal device 110 can send an application flow to the gateway device 120, and the source IP address of the application flow is a private network IP address. Then, the gateway device 120 converts the private network IP address of the application flow into a public network IP address to obtain a new application flow, and the gateway device 120 forwards the new application flow to the OLT 130. Then, the OLT 130 forwards the new application flow to the BRAS 140, and the BRAS 140 sends the new application flow to the application server 160 through the bearer network, so that the application server 160 provides services for the terminal device 110 based on the new application flow. Among them, the gateway device 120 can be set in a home. Figure 1-1 As shown, OLT 130 has a built-in deep packet inspection (DPI) interception board for intercepting application flow data, obtaining traffic information of new application flows between gateway device 120 and application server 160, and uploading it to experience assurance management platform 140. Figure 1-2 As shown, BRAS 140 has a built-in DPI interception board for intercepting application flow data, obtaining traffic information of new application flows between the gateway device 120 and the application server 160, and uploading it to the experience assurance management platform 140. After obtaining the traffic information, the experience assurance management platform 140 can perform data analysis to determine the poor service quality event.

[0051] However, since the source IP address of the new application flow sent by the gateway device 120 to the OLT 130 is a public IP address, the traffic information intercepted by the DPI is at the household level (one ONT is regarded as one household). When a poor service quality event occurs, the experience assurance management platform 140 can only determine the gateway device 120 with the problem based on the traffic information, and cannot further determine the terminal device 110 with the problem.

[0052] To this end, the present application provides an information processing method and related devices for identifying terminal devices based on application flows.

[0053] In the present application, a port pre-allocation table is first received, and the port pre-allocation table is used to indicate the public network IP addresses and port number ranges respectively allocated to multiple terminal devices, wherein the public network IP addresses allocated to the multiple terminal devices are not exactly the same, and the port number ranges allocated to any two terminal devices that are allocated the same public network IP address in the port pre-allocation table do not overlap. Then, when the first public network IP address and the first port number of the public network application flow are obtained, the first terminal device corresponding to the first public network IP address and the first port number can be determined based on the port pre-allocation table. The first terminal device is one of the multiple terminal devices, so that the terminal device corresponding to the public network application flow can be identified, and then when a poor service quality event occurs, the terminal device where the network failure occurs can be determined to improve the service quality.

[0054] In the present application, the OLT or BRAS can intercept the application flow and identify the terminal device based on the application flow, or the OLT or BRAS can obtain traffic information based on the application flow and send it to the experience assurance management platform, and then the experience assurance management platform identifies the terminal device based on the traffic information. The following four embodiments are described respectively. Among them, embodiment one is used to describe the OLT intercepting the application flow and identifying the terminal device based on the application flow; embodiment two is used to describe the BRAS intercepting the application flow and identifying the terminal device based on the application flow; embodiment three is used to describe the OLT obtaining traffic information based on the application flow, sending it to the experience assurance management platform, and then the experience assurance management platform identifies the terminal device based on the traffic information; embodiment four is used to describe the BRAS obtaining traffic information based on the application flow, sending it to the experience assurance management platform, and then the experience assurance management platform identifies the terminal device based on the traffic information.

[0055] See also Figure 2-1 As shown, the information processing method provided in the first embodiment of the present application mainly includes the following steps:

[0056] 201. A gateway device is connected to multiple terminal devices.

[0057] In the embodiment of the present application, when the terminal device is turned on, it can access the gateway device. In some possible implementations, each of the multiple terminal devices can be connected to the gateway device via a transmission medium (such as a twisted pair) or a wireless method (such as Wi-Fi), which is not limited here.

[0058] Exemplarily, a laptop computer or a smart TV (terminal device) can be connected to an optical modem (ONT) via a twisted pair (wired) or Wi-Fi (wireless), or a laptop computer or a smart TV (terminal device) can be connected to a home router via Wi-Fi (wireless), and a home router can be connected to an optical modem (ONT) via a twisted pair. This is not limited here.

[0059] As another example, a mobile phone or tablet (terminal device) can be connected to an optical modem (ONT) via Wi-Fi, or a mobile phone or tablet (terminal device) can be connected to a home router via Wi-Fi (wireless), and a home router can be connected to an optical modem (ONT) via a twisted pair cable, without limitation here.

[0060] 202. The gateway device records the private network IP addresses and device information of multiple terminal devices to obtain multiple private network IP addresses.

[0061] In the embodiment of the present application, after multiple terminal devices access the gateway device, each of the multiple terminal devices can communicate with the dynamic host configuration protocol (DHCP) server through the gateway device, so that each of the multiple terminal devices obtains the private network IP address (including subnet mask) configured by the DHCP server. Then, each of the multiple terminal devices can access the network based on the configured private network IP address to communicate with other devices accessing the network, such as application servers that provide business services.

[0062] It should be noted that the private network IP addresses configured for multiple terminal devices connected to the same gateway device are different. For example, the multiple terminal devices are mobile phones, tablet computers, laptops, smart watches, smart glasses, and smart TVs, and the private network IP addresses obtained are 192.168.1.5, 192.168.1.6, 192.168.1.7, 192.168.1.8, 192.168.1.9, and 192.168.1.10, respectively, which are not limited here.

[0063] In an embodiment of the present application, after each of the multiple terminal devices is configured with a private IP address, the gateway device can record the private IP address of each of the multiple terminal devices to obtain multiple private IP addresses.

[0064] 203. The gateway device determines a public IP address corresponding to each of the multiple private IP addresses, and obtains a NAT entry, where the NAT entry is used to indicate a mapping from a private IP address to a public IP address, wherein the public IP addresses mapped to any two of the multiple private IP addresses are not exactly the same.

[0065] In some possible implementations, the gateway device may be allocated a certain number of public IP addresses, such as 202.49.1.1 to 255. Among the multiple terminal devices in the local area network formed by the gateway device, the gateway device may allocate different public IP addresses to different terminal devices. That is, two terminal devices connected to the same gateway device may be allocated the same public IP address or different public IP addresses.

[0066] Exemplarily, as shown in Table 1, it is an example of different public IP addresses allocated by the gateway device to different terminal devices.

[0067] Table 1

[0068] Device Type MAC Address Public IP address cell phone AF:XX 202.49.1.2 Tablet EF:XX 202.49.1.2 Laptop AE:FE 202.49.1.2 Smartwatch BF:XX 202.49.1.3 Smart glasses CF:XX 202.49.1.3 Smart TV DE:FE 202.49.1.3

[0069] Among them, the public IP addresses assigned to mobile phones, tablets, and laptops (terminal devices) are all 202.49.1.2, and the public IP addresses assigned to smart watches, smart glasses, and smart TVs (terminal devices) are all 202.49.1.3. Among them, the MAC address is the unique identifier of a terminal device.

[0070] In an embodiment of the present application, after the gateway device allocates public IP addresses to multiple terminal devices, the gateway device can generate corresponding NAT entries. In some possible implementations, the NAT entry includes multiple entries, each of which is a mapping from a private IP address to a public IP address. It should be noted that different private IP addresses can be mapped to the same public IP address.

[0071] Exemplarily, as shown in Table 2, it is an example of NAT table entries generated by a gateway device for multiple terminal devices.

[0072] Table 2

[0073] Private IP address Public IP address 192.168.1.5 202.49.1.2 192.168.1.6 202.49.1.2 192.168.1.7 202.49.1.2 192.168.1.8 202.49.1.3 192.168.1.9 202.49.1.3 192.168.1.10 202.49.1.3

[0074] Among them, private IP addresses 192.168.1.5, 192.168.1.6, and 192.168.1.7 are mapped to the same public IP address 202.49.1.2; private IP addresses 192.168.1.8, 192.168.1.9, and 192.168.1.10 are mapped to the same public IP address 202.49.1.3.

[0075] In some possible implementations, the NAT entry may also include device information of each terminal device in the multiple terminal devices, such as device type, MAC address, and device account, which is not limited here. Exemplarily, as shown in Table 3, another example of NAT entries generated by the gateway device for multiple terminal devices.

[0076] Table 3

[0077] Device Type MAC Address Private IP address Public IP address Device Account cell phone AF:XX 192.168.1.5 202.49.1.2 35… flat EF:XX 192.168.1.6 202.49.1.2 26… television AE:FE 192.168.1.7 202.49.1.2 18… Smartwatch BF:XX 192.168.1.8 202.49.1.3 26… Smart glasses CF:XX 192.168.1.9 202.49.1.3 36… Smart TV DE:FE 192.168.1.10 202.49.1.3 27…

[0078] In some possible implementations, the NAT table entry may also include network information of each terminal device in the multiple terminal devices, such as access mode, access frequency band (if access mode is Wi-Fi), signal strength, etc., which is not limited here. Exemplarily, as shown in Table 4, another example of NAT table entries generated by the gateway device for multiple terminal devices.

[0079] Table 4

[0080]

[0081] In some possible implementations, the NAT table entry may further include other information, which is not limited here.

[0082] 204. The gateway device generates a port pre-allocation table, where the port pre-allocation table is used to indicate the public IP addresses and port number ranges respectively allocated to multiple terminal devices, wherein the public IP addresses allocated to the multiple terminal devices are not exactly the same, and the port number ranges allocated to any two terminal devices that are allocated the same public IP address in the port pre-allocation table do not overlap.

[0083] In some possible implementations, after the gateway device generates NAT table entries corresponding to multiple terminal devices, the gateway device can allocate a port number range (i.e., one or more port numbers) to the multiple terminal devices based on the NAT table entries to obtain a port pre-allocation table. In the port pre-allocation table, different port numbers can be allocated to different terminal devices with the same public IP address, and the port numbers allocated between different terminal devices with the same public IP address do not overlap.

[0084] In some possible implementations, the port pre-allocation table includes multiple table entries, each of which includes a public IP address, a port number range, and device information, and the device information includes a MAC address of one of the multiple terminal devices.

[0085] Exemplarily, as shown in Table 5, it is an example of a gateway device generating a port pre-allocation table for multiple terminal devices.

[0086] Table 5

[0087] MAC Address Public IP address Port number range AF:XX 202.49.1.2 10001~11000 EF:XX 202.49.1.2 11001~12000 AE:FE 202.49.1.2 12001~13000 BF:XX 202.49.1.3 10001~11000 CF:XX 202.49.1.3 11001~12000 DE:FE 202.49.1.3 12001~13000

[0088] Among them, the port numbers assigned to mobile phones (mac address: AF:XX) and smart watches (mac address: BF:XX) are both 1000111000, but the public IP addresses corresponding to mobile phones and smart watches are different; the port numbers assigned to tablet computers (mac address: EF:XX) and smart glasses (mac address: CF:XX) are both 11001~12000, but the public IP addresses corresponding to tablet computers (mac address: AE:FE) and smart glasses (mac address: DE:FE) are different; the port numbers assigned to laptops and smart TVs are both 12001~13000, but the public IP addresses corresponding to laptops and smart TVs are different.

[0089] It should be noted that the port number is used to distinguish different terminal devices with the same public IP address. For example, a mobile phone and a tablet have the same public IP address 202.49.1.2, but the port number range of the mobile phone is 10001-11000, while the port number range of the tablet is 11001-12000. If the public IP address of an application flow is 202.49.1.2 and its port number is 10010, then it can be determined that the origin of the application flow is a mobile phone; if the public IP address of an application flow is 202.49.1.2 and its port number is 11010, then it can be determined that the origin of the application flow is a tablet.

[0090] It should be noted that a terminal device can distinguish different data streams through different port numbers. For example, for a mobile phone, its public IP address is 202.49.1.2, and the port number range is 10001 to 11000. Then, the port number of the application stream sent by a chat software in the mobile phone is 10001, and the port number of the application stream sent by a game software in the mobile phone is 10002.

[0091] In some possible implementations, the gateway device may generate a port pre-allocation table that fixes all port numbers. For example, all port numbers of the gateway device are 10001-13000, wherein mobile phones, tablet computers, and laptops with the same public IP address are respectively allocated port numbers in the range of 10001-11000, 11001-12000, and 12001-13000.

[0092] In some possible implementations, the gateway device may generate a fixed port pre-allocation table for a portion of the port numbers, and leave the other portion of the port numbers to be allocated. When the port numbers of a certain terminal device are insufficient, more port numbers may be allocated to the terminal device, forming a semi-dynamic allocation of port numbers. For example, all the port numbers of the gateway device are 10001 to 20000, wherein the mobile phones, tablet computers, and laptops with the same public network IP address are respectively allocated port numbers ranging from 10001 to 11000, 11001 to 12000, and 12001 to 13000. The remaining port numbers to be allocated are 13001 to 20000. When the port numbers of the laptop are insufficient, 13001 to 14000 may be allocated to the laptop.

[0093] In some possible implementations, the gateway device may generate a fixed port pre-allocation table, but set all port numbers to be allocated. When a terminal device needs a port number, the port number is allocated to the terminal device, forming a fully dynamic allocation of port numbers. For example, all port numbers of the gateway device are 10001 to 20000. For mobile phones, tablet computers and laptops with the same public network IP address, when the mobile phone is online, the gateway device allocates port numbers in the range of 10001 to 11000 for the mobile phone; when the tablet computer is online, the gateway device allocates port numbers in the range of 11001 to 12000 for the tablet computer; when the laptop computer is online, the gateway device allocates port numbers in the range of 12001 to 13000 for the laptop computer. The remaining port numbers to be allocated are 13001 to 20000. When the port numbers of laptops are insufficient, 13001 to 14000 can be allocated to laptops; when the port numbers of mobile phones are insufficient, 14001 to 15000 can be allocated to mobile phones; when the port numbers of tablets are insufficient, 15001 to 16000 can be allocated to tablets. The remaining port numbers will continue to be allocated.

[0094] In some possible implementations, there may be other ways of allocating port numbers, which are not limited here.

[0095] In some possible implementations, the device information includes a device account and a device type of one of the multiple terminal devices.

[0096] Exemplarily, as shown in Table 6, it is an example of a gateway device generating a port pre-allocation table for multiple terminal devices.

[0097] Table 6

[0098] Device Account Device Type MAC Address Public IP address Port number range 35… cell phone AF:XX 202.49.1.2 10001~11000 26… Tablet EF:XX 202.49.1.2 11001~12000 18… Laptop AE:FE 202.49.1.2 12001~13000 26… Smartwatch BF:XX 202.49.1.3 10001~11000 36… Smart glasses CF:XX 202.49.1.3 11001~12000 27… Smart TV DE:FE 202.49.1.3 12001~13000

[0099] In some possible implementations, the device information includes an access mode, an access frequency (if using a Wi-Fi access mode), and a signal strength of one of the multiple terminal devices.

[0100] Exemplarily, as shown in Table 7, it is an example of a gateway device generating a port pre-allocation table for multiple terminal devices.

[0101] Table 7

[0102] Device Account Device Type MAC Address Public IP address Port number range Access method Access frequency band Signal Strength 35… cell phone AF:XX 202.49.1.2 10001~11000 Wi-Fi 2.4Ghz 6db 26… Tablet EF:XX 202.49.1.2 11001~12000 Wi-Fi 5.0Ghz 3db 18… Laptop AE:FE 202.49.1.2 12001~13000 wired - - 26… Smartwatch BF:XX 202.49.1.3 10001~11000 Wi-Fi 2.4Ghz 6db 36… Smart glasses CF:XX 202.49.1.3 11001~12000 Wi-Fi 5.0Ghz 3db 27… Smart TV DE:FE 202.49.1.3 12001~13000 wired - -

[0103] 205. The gateway device sends the port pre-allocation table to the OLT.

[0104] In the embodiment of the present application, after the gateway device generates the port pre-allocation table, the port pre-allocation table can be sent to the OLT. In some possible implementations, the gateway device can periodically send the port pre-allocation table to the OLT, or after updating the port pre-allocation table and obtaining the updated port pre-allocation table, send the updated pre-allocation table to the OLT, which is not limited here.

[0105] 206. The first terminal device sends a private network application flow to the gateway device. The source IP address of the private network application flow is the first private network IP address. The first terminal device is one of the multiple terminal devices.

[0106] In an embodiment of the present application, the first terminal device is one of a plurality of terminal devices connected to a gateway device. The first private network IP address is a private network IP address configured for the first terminal device, and the first port number is related to the service to which the private network application flow belongs. When the first terminal device is connected to the gateway device, the first terminal device can send a private network application flow to the gateway device, the destination of the private network application flow is an application server, the source IP address of the private network application flow is the first private network IP address of the first terminal device, and the source port number of the private network application flow is the first port number.

[0107] Exemplarily, the first terminal device is a mobile phone, the source IP address of the private network application flow is 192.168.1.5 (ie, the first private network IP address), ie, the private network IP address of the mobile phone, the private network application flow comes from the chat software, and the source port number of the private network application flow is 10001.

[0108] Exemplarily, as shown in Table 8, it is an example of multiple application flows sent by the first terminal device to the gateway device.

[0109] Table 8

[0110] Timestamp Private IP address Port Number 11:00 192.168.1.5 10001 11:01 192.168.1.5 11010 12:00 192.168.1.5 11011

[0111] As shown in Table 8, the source IP addresses of multiple application flows are the private IP address 192.168.1.5, indicating that they all come from the same terminal device, and the timestamps of sending each application flow are 11:00 / 11:01 / 12:00. However, the port numbers of multiple application flows are different, so it can be determined that these application flows come from different application types, such as chat software, games, and shopping applications.

[0112] 207. The gateway device converts the private network application flow into a public network application flow, where the source IP address of the public network application flow is the first public network IP address corresponding to the first private network IP address.

[0113] In an embodiment of the present application, after the gateway device receives the private network application flow, it can obtain the first private network IP address in the private network application flow, and determine the first public network IP address corresponding to the first private network IP address according to the NAT table entry. Exemplarily, the first private network IP address is 192.168.1.5, and the NAT table entry shown in Table 2 can determine the corresponding first public network IP address to be 202.49.1.2. Another exemplary embodiment, the first private network IP address is 192.168.1.10, and the NAT table entry shown in Table 2 can determine the corresponding first public network IP address to be 202.49.1.3.

[0114] It should be noted that the gateway device does not change the source port number of the private network application flow, that is, the source port number of the public network application flow is still the first port number.

[0115] Exemplarily, as shown in Table 9, it is an example of multiple application streams sent by different terminal devices and received by the gateway device.

[0116] Table 9

[0117] Timestamp Private IP address Port Number 11:00 192.168.1.5 10001 11:01 192.168.1.5 11010 11:40 192.168.1.6 10001 11:45 192.168.1.6 10001 11:50 192.168.1.8 11011 12:00 192.168.1.5 11011

[0118] As shown in Table 9, the application flows with the same private IP address come from the same terminal device. For example, the three application flows with the private IP address of 192.168.1.5 come from the same terminal device, the two application flows with the private IP address of 192.168.1.6 come from the same terminal device, and the one application flow with the private IP address of 192.168.1.8 comes from another terminal device. It can be seen that the above six application flows come from three different terminal devices. The three application flows from the same terminal device (private IP address is 192.168.1.5) have different port numbers, indicating that the three application flows come from different application types. The two application flows from the same terminal device (private IP address is 192.168.1.6) have the same port number, indicating that the two application flows come from the same application type.

[0119] Exemplarily, then, the gateway device may convert the private IP addresses of multiple application flows as shown in Table 9 into public IP addresses. Exemplarily, as shown in Table 10, it is an example of the gateway device converting the private IP addresses of multiple application flows received into public IP addresses.

[0120] Table 10

[0121] Timestamp Public IP address Port Number 11:00 202.49.1.2 10001 11:01 202.49.1.2 11010 11:40 202.49.1.2 10001 11:45 202.49.1.2 10001 11:50 202.49.1.3 11011 12:00 202.49.1.2 11011

[0122] As shown in Table 10, the private IP addresses 192.168.1.5 and 192.168.1.6 can be determined to have a corresponding public IP address of 202.49.1.2 according to Tables 3 to 5, and the private IP address 192.168.1.8 can be determined to have a corresponding public IP address of 202.49.1.3 according to Tables 3 to 5, thus obtaining Table 10. However, the gateway device does not change the port number of the application flow.

[0123] 208. The gateway device sends the public network application flow.

[0124] In an embodiment of the present application, after the gateway device converts the first private network IP address in the private network application flow into the first public network IP address and obtains the public network application flow, the public network application flow can be sent to the application server through the gateway device.

[0125] 209. The OLT intercepts the public network application flow, and obtains the first public network IP address and the first port number in the public network application flow.

[0126] In an embodiment of the present application, the OLT can obtain the source IP address in the public network application flow to obtain the first public network IP address. The OLT can also obtain the port number of the public network application flow to obtain the first port number. Exemplarily, the OLT can obtain the five-tuple (source IP address, source port number, destination source IP address, destination port number and transport layer protocol) of the public network application flow, wherein the source IP address is the first public network IP address, and the source port number is the first port number. For example, the first port number is 10001, and the first public network IP address is 202.49.1.2.

[0127] 210. The OLT determines a first terminal device corresponding to a first public network IP address and a first port number based on a port pre-allocation table, where the first terminal device is one of the multiple terminal devices.

[0128] In an embodiment of the present application, when the OLT determines that the data flow corresponding to the private network application flow is a poor service quality event, the OLT can identify the corresponding first terminal device through the port pre-allocation table according to the first port number and the first public network IP address of the private network application flow. Exemplarily, the first port number is 10001, and the first public network IP address is 202.49.1.2. Based on the port pre-allocation table shown in Table 5, it can be determined that the first terminal device is a terminal device with a MAC address of AF:XX. Exemplarily, based on the port pre-allocation table shown in Table 6, it can be determined that the MAC address of the first terminal device is AF:XX, the device type is a mobile phone, and the device account is 35... The terminal device. Exemplarily, based on the port pre-allocation table shown in Table 7, it can be determined that the MAC address of the first terminal device is AF:XX, the device type is a mobile phone, the device account is 35..., the access method is Wi-Fi, the access frequency band is 2.4Ghz, and the signal strength is 6db.

[0129] Exemplarily, as shown in Table 11, it is an example of an OLT identifying a corresponding terminal device according to a public network IP address and a port pre-allocation table (taking Table 5 as an example) in a plurality of application flows to be received.

[0130] Table 11

[0131] Timestamp Public IP address Port Number MAC Address 11:00 202.49.1.2 10001 AF:XX 11:01 202.49.1.2 11010 EF:XX 11:40 202.49.1.2 10001 AF:XX 11:45 202.49.1.2 10001 AF:XX 11:50 202.49.1.3 11011 CF:XX 12:00 202.49.1.2 11011 EF:XX

[0132] As shown in Table 11, the MAC address of the terminal device from which each application flow comes can be determined. Since the MAC address is a unique identifier of the terminal device, the corresponding terminal device is determined.

[0133] In some possible implementations, if the port pre-allocation table is as shown in Tables 6 to 7, the OLT may also determine more information of the terminal device.

[0134] Exemplarily, as shown in Table 12, it is an example of the OLT identifying more information of the corresponding terminal device according to the public network IP addresses and port pre-allocation table (taking Table 6 as an example) in the multiple application flows to be received.

[0135] Table 12

[0136] Timestamp Public IP address Port Number MAC Address Device Account Device Type 11:00 202.49.1.2 10001 AF:XX 35… cell phone 11:01 202.49.1.2 11010 EF:XX 26… Tablet 11:40 202.49.1.2 10001 AF:XX 35… cell phone 11:45 202.49.1.2 10001 AF:XX 35… cell phone 11:50 202.49.1.3 11011 CF:XX 36… Smart glasses 12:00 202.49.1.2 11011 EF:XX 26… Tablet

[0137] As shown in Table 11, the device account and device type of the terminal device from which each application flow comes can be determined.

[0138] Exemplarily, as shown in Table 13, it is an example of an OLT identifying more information of a corresponding terminal device according to the public network IP addresses and port pre-allocation table (taking Table 7 as an example) in multiple application flows to be received.

[0139] Table 13

[0140] Timestamp Public IP address Port Number MAC Address Device Account Device Type Access method Access frequency band Signal Strength 11:00 202.49.1.2 10001 AF:XX 35… cell phone Wi-Fi 2.4Ghz 6db 11:01 202.49.1.2 11010 EF:XX 26… Tablet Wi-Fi 5.0Ghz 3db 11:40 202.49.1.2 10001 AF:XX 35… cell phone Wi-Fi 2.4Ghz 6db 11:45 202.49.1.2 10001 AF:XX 35… cell phone Wi-Fi 2.4Ghz 6db 11:50 202.49.1.3 11011 CF:XX 36… Smart glasses Wi-Fi 5.0Ghz 3db 12:00 202.49.1.2 11011 EF:XX 26… Tablet Wi-Fi 5.0Ghz 3db

[0141] As shown in Table 13, the device account and device type of the terminal device from which each application flow comes can be determined.

[0142] In the present application, a port pre-allocation table is first received, and the port pre-allocation table is used to indicate the public network IP addresses and port number ranges respectively allocated to multiple terminal devices, wherein the public network IP addresses allocated to the multiple terminal devices are not exactly the same, and the port number ranges allocated to any two terminal devices that are allocated the same public network IP address in the port pre-allocation table do not overlap. Then, when the first public network IP address and the first port number of the public network application flow are obtained, the first terminal device corresponding to the first public network IP address and the first port number can be determined based on the port pre-allocation table. The first terminal device is one of the multiple terminal devices, so that the terminal device corresponding to the public network application flow can be identified, and then when a poor service quality event occurs, the terminal device where the network failure occurs can be determined to improve the service quality.

[0143] For example, Figure 2-2 As shown, currently 20% of network problems are attributed to the resource side (i.e., the server, i.e., 20% of the poor quality events can determine the corresponding server), 10% of network problems are attributed to the network side (i.e., gateway devices, BRAS, OLT, etc., plus 10% of the poor quality events can determine the corresponding gateway devices, BRAS, OLT), and the remaining 70% of network problems are attributed to the home side (i.e., terminal devices, respectively, Wi-Fi access terminal devices have network problems, or other access terminal devices have network problems). This application locates the source of the remaining 70% of network problems by identifying the terminal devices.

[0144] See also Figure 3 As shown, the information processing method provided in the second embodiment of the present application mainly includes the following steps:

[0145] 301. A gateway device is connected to multiple terminal devices.

[0146] 302. The gateway device records the private network IP addresses and device information of multiple terminal devices to obtain multiple private network IP addresses.

[0147] 303. The gateway device determines a public IP address corresponding to each of the multiple private IP addresses, and obtains a NAT entry, where the NAT entry is used to indicate a mapping from a private IP address to a public IP address, wherein the public IP addresses mapped to any two of the multiple private IP addresses are not exactly the same.

[0148] 304. The gateway device generates a port pre-allocation table, where the port pre-allocation table is used to indicate the public IP addresses and port number ranges respectively allocated to multiple terminal devices, wherein the public IP addresses allocated to the multiple terminal devices are not exactly the same, and the port number ranges allocated to any two terminal devices that are allocated the same public IP address in the port pre-allocation table do not overlap.

[0149] Steps 301-304 are the same as steps 201-204 and are not described in detail here.

[0150] 305. The gateway device sends the port pre-allocation table to the BRAS.

[0151] In the embodiment of the present application, after the gateway device generates the port pre-allocation table, the port pre-allocation table can be sent to the BRAS. In some possible implementations, the gateway device can periodically send the port pre-allocation table to the BRAS, or after updating the port pre-allocation table and obtaining the updated port pre-allocation table, send the updated pre-allocation table to the BRAS, which is not limited here.

[0152] 306. The first terminal device sends a private network application flow to the gateway device. The source IP address of the private network application flow is the first private network IP address. The first terminal device is one of the multiple terminal devices.

[0153] 307. The gateway device converts the private network application flow into a public network application flow, where the source IP address of the public network application flow is the first public network IP address corresponding to the first private network IP address.

[0154] 308. The gateway device sends the public network application flow.

[0155] Steps 306-308 are the same as steps 206-208 and are not described in detail here.

[0156] 309. The BRAS intercepts the public network application flow, and obtains the first public network IP address and the first port number in the public network application flow.

[0157] 310. The BRAS determines a first terminal device corresponding to a first public network IP address and a first port number based on a port pre-allocation table, where the first terminal device is one of a plurality of terminal devices.

[0158] Please refer to the steps performed by the OLT in steps 206-208, which will not be described in detail here.

[0159] In the present application, a port pre-allocation table is first received, and the port pre-allocation table is used to indicate the public network IP addresses and port number ranges respectively allocated to multiple terminal devices, wherein the public network IP addresses allocated to the multiple terminal devices are not exactly the same, and the port number ranges allocated to any two terminal devices that are allocated the same public network IP address in the port pre-allocation table do not overlap. Then, when the first public network IP address and the first port number of the public network application flow are obtained, the first terminal device corresponding to the first public network IP address and the first port number can be determined based on the port pre-allocation table. The first terminal device is one of the multiple terminal devices, so that the terminal device corresponding to the public network application flow can be identified, and then when a poor service quality event occurs, the terminal device where the network failure occurs can be determined to improve the service quality.

[0160] See also Figure 4 As shown, the information processing method provided in the third embodiment of the present application mainly includes the following steps:

[0161] 401. A gateway device is connected to multiple terminal devices.

[0162] 402. The gateway device records the private network IP addresses and device information of multiple terminal devices to obtain multiple private network IP addresses.

[0163] 403. The gateway device determines a public IP address corresponding to each of the multiple private IP addresses, and obtains a NAT entry, where the NAT entry is used to indicate a mapping from a private IP address to a public IP address, wherein the public IP addresses mapped to any two of the multiple private IP addresses are not exactly the same.

[0164] 404. The gateway device generates a port pre-allocation table, where the port pre-allocation table is used to indicate the public IP addresses and port number ranges respectively allocated to multiple terminal devices, wherein the public IP addresses allocated to the multiple terminal devices are not exactly the same, and the port number ranges allocated to any two terminal devices that are allocated the same public IP address in the port pre-allocation table do not overlap.

[0165] 405. The gateway device sends the port pre-allocation table to the OLT.

[0166] Steps 401-405 are the same as steps 201-205 and are not described in detail here.

[0167] 406. The OLT sends the port pre-allocation table to the experience assurance management platform.

[0168] In an embodiment of the present application, after the OLT receives the port pre-allocation table sent by the gateway device, it can forward the port pre-allocation table to the experience assurance management platform.

[0169] 407. The first terminal device sends a private network application flow to the gateway device. The source IP address of the private network application flow is the first private network IP address. The first terminal device is one of the multiple terminal devices.

[0170] 408. The gateway device converts the private network application flow into a public network application flow, where the source IP address of the public network application flow is the first public network IP address corresponding to the first private network IP address.

[0171] 409. The gateway device sends the public network application flow.

[0172] 410. The OLT intercepts a public network application flow, and obtains a first public network IP address and a first port number in the public network application flow.

[0173] Steps 407-409 are the same as steps 206-209 and are not described in detail here.

[0174] 411. The OLT sends first flow information to the experience assurance management platform, where the first flow information includes a first public network IP address and a first port number in a public network application flow.

[0175] In an embodiment of the present application, after the OLT receives the public network application flow sent by the gateway device, the OLT can obtain the five-tuple information in the public network application flow, thereby obtaining the source IP address and the first port number, thereby obtaining the flow information of the public network application flow. Then, the OLT can send the first flow information to the experience assurance management platform, and the first flow information includes the first public network IP address and the first port number of the public network application flow.

[0176] 412. The experience assurance management platform determines a first terminal device corresponding to the first public network IP address and the first port number based on the port pre-allocation table, where the first terminal device is one of the multiple terminal devices.

[0177] Please refer to the steps performed by the OLT in steps 206-208, which will not be described in detail here.

[0178] In the present application, a port pre-allocation table is first received, and the port pre-allocation table is used to indicate the public network IP addresses and port number ranges respectively allocated to multiple terminal devices, wherein the public network IP addresses allocated to the multiple terminal devices are not exactly the same, and the port number ranges allocated to any two terminal devices that are allocated the same public network IP address in the port pre-allocation table do not overlap. Then, when the first public network IP address and the first port number of the public network application flow are obtained, the first terminal device corresponding to the first public network IP address and the first port number can be determined based on the port pre-allocation table. The first terminal device is one of the multiple terminal devices, so that the terminal device corresponding to the public network application flow can be identified, and then when a poor service quality event occurs, the terminal device where the network failure occurs can be determined to improve the service quality.

[0179] See also Figure 5 As shown, the information processing method provided in the fourth embodiment of the present application mainly includes the following steps:

[0180] 501. A gateway device is connected to multiple terminal devices.

[0181] 502. The gateway device records the private network IP addresses and device information of multiple terminal devices to obtain multiple private network IP addresses.

[0182] 503. The gateway device determines a public IP address corresponding to each of the multiple private IP addresses, and obtains a NAT entry, where the NAT entry is used to indicate a mapping from a private IP address to a public IP address, wherein the public IP addresses mapped to any two of the multiple private IP addresses are not exactly the same.

[0183] 504. The gateway device generates a port pre-allocation table, where the port pre-allocation table is used to indicate the public IP addresses and port number ranges respectively allocated to multiple terminal devices, wherein the public IP addresses allocated to the multiple terminal devices are not exactly the same, and the port number ranges allocated to any two terminal devices that are allocated the same public IP address in the port pre-allocation table do not overlap.

[0184] 505. The gateway device sends the port pre-allocation table to the BRAS.

[0185] Steps 401-405 are the same as steps 201-205 and are not described in detail here.

[0186] 506. The BRAS sends the port pre-allocation table to the experience assurance management platform.

[0187] In an embodiment of the present application, after the BRAS receives the port pre-allocation table sent by the gateway device, it can forward the port pre-allocation table to the experience assurance management platform.

[0188] 507. The first terminal device sends a private network application flow to the gateway device. The source IP address of the private network application flow is the first private network IP address. The first terminal device is one of the multiple terminal devices.

[0189] 508. The gateway device converts the private network application flow into a public network application flow, where the source IP address of the public network application flow is the first public network IP address corresponding to the first private network IP address.

[0190] 509. The gateway device sends the public network application flow.

[0191] 510. The BRAS intercepts a public network application flow, and obtains a first public network IP address and a first port number in the public network application flow.

[0192] Steps 507-510 are the same as steps 306-309 and are not described in detail here.

[0193] 511. The BRAS sends first flow information to the experience assurance management platform, where the first flow information includes a first public network IP address and a first port number in a public network application flow.

[0194] Please refer to the steps performed by the OLT in step 411, which will not be described in detail here.

[0195] 512. The experience assurance management platform determines a first terminal device corresponding to the first public network IP address and the first port number based on the port pre-allocation table, where the first terminal device is one of the multiple terminal devices.

[0196] Please refer to step 412, which will not be described in detail here.

[0197] In the present application, a port pre-allocation table is first received, and the port pre-allocation table is used to indicate the public network IP addresses and port number ranges respectively allocated to multiple terminal devices, wherein the public network IP addresses allocated to the multiple terminal devices are not exactly the same, and the port number ranges allocated to any two terminal devices that are allocated the same public network IP address in the port pre-allocation table do not overlap. Then, when the first public network IP address and the first port number of the public network application flow are obtained, the first terminal device corresponding to the first public network IP address and the first port number can be determined based on the port pre-allocation table. The first terminal device is one of the multiple terminal devices, so that the terminal device corresponding to the public network application flow can be identified, and then when a poor service quality event occurs, the terminal device where the network failure occurs can be determined to improve the service quality.

[0198] In the present application, a port pre-allocation table is first received, and the port pre-allocation table is used to indicate the public network IP addresses and port number ranges respectively allocated to multiple terminal devices, wherein the public network IP addresses allocated to the multiple terminal devices are not exactly the same, and the port number ranges allocated to any two terminal devices that are allocated the same public network IP address in the port pre-allocation table do not overlap. Then, when the first public network IP address and the first port number of the public network application flow are obtained, the first terminal device corresponding to the first public network IP address and the first port number can be determined based on the port pre-allocation table. The first terminal device is one of the multiple terminal devices, so that the terminal device corresponding to the public network application flow can be identified, and then when a poor service quality event occurs, the terminal device where the network failure occurs can be determined to improve the service quality.

[0199] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0200] In order to better implement the above-mentioned solution of the embodiment of the present application, relevant devices for implementing the above-mentioned solution are also provided below.

[0201] See also Figure 6 As shown, a terminal device identification device 600 provided in an embodiment of the present application may include: a transceiver module 610, used to receive a port pre-allocation table, the port pre-allocation table is used to indicate public IP addresses and port number ranges respectively allocated to multiple terminal devices, wherein the public IP addresses allocated to the multiple terminal devices are not exactly the same, and there is no overlap in the port number ranges allocated to any two terminal devices that are allocated the same public IP address in the port pre-allocation table; a processing module 620, used to obtain a first public IP address and a first port number of a public application flow; the processing module 620 is also used to determine a first terminal device corresponding to the first public IP address and the first port number based on the port pre-allocation table, the first terminal device being one of the multiple terminal devices.

[0202] In some possible implementations, the transceiver module 610 is further used to receive a public network application flow; the processing module 620 is further used to obtain the first public network IP address and the first port number from the public network application flow.

[0203] In some possible implementations, the transceiver module 610 is specifically used to: receive first flow information, where the first flow information includes the first public network IP address and the first port number in the public network application flow.

[0204] See also Figure 7 As shown, a gateway device 700 provided in an embodiment of the present application may include: a processing module 710, used to generate a port pre-allocation table, the port pre-allocation table is used to indicate public IP addresses and port number ranges respectively allocated to multiple terminal devices, wherein the public IP addresses allocated to the multiple terminal devices are not exactly the same, and the port number ranges allocated to any two terminal devices allocated the same public IP address in the port pre-allocation table have no overlap; a transceiver module 720, used to prepare for sending the port pre-allocation table.

[0205] In some possible implementations, the processing module 710 is also used to access multiple terminal devices; the processing module 710 is also used to record the private IP addresses and device information of the multiple terminal devices to obtain multiple private IP addresses; the processing module 710 is also used to determine the public IP address corresponding to each private IP address among the multiple private IP addresses to obtain a NAT table entry, and the NAT table entry is used to indicate the mapping from the private IP address to the public IP address, wherein the public IP addresses mapped to any two private IP addresses among the multiple private IP addresses are not exactly the same.

[0206] In some possible implementations, the transceiver module 720 is also used to receive a private network application flow sent by a first terminal device, the source IP address of the private network application flow is a first private network IP address, and the first terminal device is one of the multiple terminal devices; the processing module 710 is also used to convert the first private network IP address in the private network application flow into a first public network IP address based on the NAT table entry to obtain a public network application flow, the source IP address of the public network application flow is the first public network IP address, and the first public network IP address is the public network IP address mapped to the first private network IP address based on the NAT table entry; the transceiver module 720 is also used to send the public network application flow.

[0207] It should be noted that the information interaction, execution process, etc. between the modules / units of the above-mentioned device are based on the same concept as the method embodiment of the present application, and the technical effects they bring are the same as those of the method embodiment of the present application. For specific contents, please refer to the description in the method embodiment shown above in the present application, and will not be repeated here.

[0208] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a program, and the program executes some or all of the steps recorded in the above method embodiment.

[0209] Next, another communication device provided by the embodiment of the present application is introduced. Figure 8 As shown, the communication device 800 includes:

[0210] Receiver 801, transmitter 802, processor 803 and memory 804. In some embodiments of the present application, the receiver 801, transmitter 802, processor 803 and memory 804 may be connected via a bus or other means, wherein: Figure 8 The example of connecting through bus is taken in the following.

[0211] The memory 804 may include a read-only memory and a random access memory, and provides instructions and data to the processor 803. A portion of the memory 804 may also include a non-volatile random access memory (NVRAM). The memory 804 stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic services and processing hardware-based tasks.

[0212] The processor 803 controls the operation of the communication device 800, and the processor 803 may also be referred to as a central processing unit (CPU). In a specific application, the various components of the communication device 800 are coupled together through a bus system, wherein the bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, various buses are referred to as bus systems in the figure.

[0213] The method disclosed in the above embodiment of the present application can be applied to the processor 803, or implemented by the processor 803. The processor 803 can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 803. The above processor 803 can be a general processor, a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 804, and the processor 803 reads the information in the memory 804 and completes the steps of the above method in combination with its hardware.

[0214] The receiver 801 may be used to receive input digital or character information and generate signal input related to relevant settings and function control. The transmitter 802 may include a display device such as a display screen. The transmitter 802 may be used to output digital or character information through an external interface.

[0215] In the embodiment of the present application, the processor 803 is used to execute the aforementioned information processing method.

[0216] In another possible design, when the terminal device identification device 600, the gateway device 700 or the communication device 800 is a chip, it includes: a processing unit and a communication unit, the processing unit may be, for example, a processor, and the communication unit may be, for example, an input / output interface, a pin or a circuit, etc. The processing unit may execute the computer execution instructions stored in the storage unit so that the chip in the terminal executes the method for sending wireless report information of any one of the above-mentioned first aspects. Optionally, the storage unit is a storage unit in the chip, such as a register, a cache, etc., and the storage unit may also be a storage unit in the terminal located outside the chip, such as a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM), etc.

[0217] The processor mentioned in any of the above places may be a general-purpose central processing unit, a microprocessor, an ASIC, or one or more integrated circuits for controlling the execution of the program of the above method.

[0218] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0219] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including application-specific integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0220] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0221] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

Claims

1. An information processing method, characterized in that: include: Receive a port pre-allocation table, the port pre-allocation table being used to indicate public network IP addresses and port number ranges respectively allocated to a plurality of terminal devices, wherein the public network IP addresses allocated to the plurality of terminal devices are not identical, and the port number ranges allocated to any two terminal devices allocated the same public network IP address in the port pre-allocation table do not overlap; Obtain a first public network IP address and a first port number of a public network application flow; A first terminal device corresponding to the first public IP address and the first port number is determined based on the port pre-allocation table, where the first terminal device is one of the multiple terminal devices.

2. The method according to claim 1, characterized in that: The table entries of the port pre-allocation table include a public IP address, a port number range and device information, and the device information includes a MAC address of one of the multiple terminal devices.

3. The method according to claim 2, characterized in that: The device information includes a device account and a device type.

4. The method according to claim 2 or 3, characterized in that: The device information includes access mode, access frequency and signal strength.

5. The method according to any one of claims 1 to 4, characterized in that: The obtaining of the first public network IP address and the first port number of the public network application flow comprises: Receiving the public network application flow; The first public network IP address and the first port number are obtained from the public network application flow.

6. The method according to claims 1-4, characterized in that: The obtaining of the first public network IP address and the first port number of the public network application flow comprises: Receive first flow information, where the first flow information includes the first public network IP address and the first port number of the public network application flow.

7. An information processing method, characterized in that: include: Generate a port pre-allocation table, the port pre-allocation table is used to indicate the public network IP addresses and port number ranges respectively allocated to multiple terminal devices, wherein the public network IP addresses allocated to the multiple terminal devices are not exactly the same, and the port number ranges allocated to any two terminal devices allocated the same public network IP address in the port pre-allocation table do not overlap; The port pre-allocation table is sent.

8. The method according to claim 7, characterized in that: Before generating the port pre-allocation table, the method comprises: Access multiple terminal devices; Recording the private network IP addresses and device information of the multiple terminal devices to obtain multiple private network IP addresses; Determine the public IP address corresponding to each private IP address among the multiple private IP addresses, and obtain a NAT table entry, wherein the NAT table entry is used to indicate the mapping from the private IP address to the public IP address, wherein the public IP addresses mapped to any two private IP addresses among the multiple private IP addresses are not exactly the same.

9. The method according to claim 8, characterized in that: The method further comprises: Receiving a private network application flow sent by a first terminal device, wherein the source IP address of each application flow in the private network application flow is a first private network IP address, and the first terminal device is one of the multiple terminal devices; Convert the first private network IP address in the private network application flow into a first public network IP address based on the NAT table entry to obtain a public network application flow, where the first public network IP address is a public network IP address mapped to the first private network IP address based on the NAT table entry; Send the public network application flow.

10. The method according to any one of claims 7 to 9, characterized in that: The table entries of the port pre-allocation table include a public IP address, a port number range and device information, and the device information includes a MAC address of one of the multiple terminal devices.

11. The method according to claim 10, characterized in that: The device information includes a device account and a device type.

12. The method according to claim 10 or 11, characterized in that: The device information includes access mode, access frequency and signal strength.

13. A terminal device identification device, characterized in that: include: A transceiver module, used for receiving a port pre-allocation table, wherein the port pre-allocation table is used for indicating public network IP addresses and port number ranges respectively allocated to a plurality of terminal devices, wherein the public network IP addresses allocated to the plurality of terminal devices are not exactly the same, and the port number ranges allocated to any two terminal devices allocated the same public network IP address in the port pre-allocation table do not overlap; A processing module, used to obtain a first public network IP address and a first port number of a public network application flow; The processing module is further used to determine a first terminal device corresponding to the first public IP address and the first port number based on the port pre-allocation table, where the first terminal device is one of the multiple terminal devices.

14. The terminal device identification device according to claim 13, characterized in that: The transceiver module is further used to receive the public network application flow; The processing module is further used to obtain the first public network IP address and the first port number from the public network application flow.

15. The terminal device identification device according to claim 13 or 14, characterized in that: The transceiver module is specifically used for: Receive first flow information, where the first flow information includes the first public network IP address and the first port number of the public network application flow.

16. A gateway device, characterized in that: include: A processing module, configured to generate a port pre-allocation table, wherein the port pre-allocation table is used to indicate public network IP addresses and port number ranges respectively allocated to a plurality of terminal devices, wherein the public network IP addresses allocated to the plurality of terminal devices are not identical, and the port number ranges allocated to any two terminal devices allocated the same public network IP address in the port pre-allocation table do not overlap; The transceiver module is used to send the port pre-allocation table.

17. The gateway device according to claim 16, characterized in that: The processing module is also used to access multiple terminal devices; The processing module is further used to record the private network IP addresses and device information of the multiple terminal devices to obtain multiple private network IP addresses; The processing module is also used to determine the public IP address corresponding to each private IP address among the multiple private IP addresses, and obtain a NAT table entry, wherein the NAT table entry is used to indicate the mapping from the private IP address to the public IP address, wherein the public IP addresses mapped to any two private IP addresses among the multiple private IP addresses are not exactly the same.

18. The gateway device according to claim 17, characterized in that: The transceiver module is further used to receive a private network application flow sent by a first terminal device, the source IP address of the private network application flow is a first private network IP address, and the first terminal device is one of the multiple terminal devices; The processing module is further configured to convert the first private network IP address in the private network application flow into a first public network IP address based on the NAT table entry to obtain a public network application flow, wherein the first public network IP address is a public network IP address mapped to the first private network IP address based on the NAT table entry; The transceiver module is also used to send the public network application flow.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, and the program causes a computer device to execute the method according to any one of claims 1 to 12.

20. A computer program product, characterized in that The computer program product includes computer-executable instructions, which are stored in a computer-readable storage medium; at least one processor of a device reads the computer-executable instructions from the computer-readable storage medium, and the at least one processor executes the computer-executable instructions so that the device performs the method as described in any one of claims 1-12.

21. A communication device, characterized in that: The communication device includes at least one processor, a memory and a communication interface; The at least one processor is coupled to the memory and the communication interface; The memory is used to store instructions, the processor is used to execute the instructions, and the communication interface is used to communicate with other communication devices under the control of the at least one processor; When the instructions are executed by the at least one processor, the at least one processor is caused to perform the method according to any one of claims 1 to 12.

22. A chip system, characterized in that: The chip system includes a processor and a memory, the memory and the processor are interconnected via a line, instructions are stored in the memory, and the processor is used to execute the method as described in any one of claims 1-12.

Citation Information

Cited By

  • Information processing method and related device

    EP4727087A1

  • Information processing method and related device

    WO2025086653A1