An information processing method, apparatus, device, and readable storage medium

By having DPI and NAT network elements jointly process the same session table, the problem of resource waste is solved, and efficient resource utilization is achieved.

CN117692490BActive Publication Date: 2026-11-20CHINA MOBILE COMM LTD RES INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211079787.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-05
Publication Date
2026-11-20
Estimated Expiration
2042-09-05

AI Technical Summary

Technical Problem

The existing DPI and NAT network elements maintain their own session tables, resulting in a waste of CPU and storage resources.

Method used

The first network element generates a session table and configures the fields, and the second network element fills in the corresponding fields to form a session log, thereby realizing the processing of the same session table and reducing resource waste.

Benefits of technology

It saves CPU and storage resources and improves resource utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117692490B_ABST
    Figure CN117692490B_ABST
Patent Text Reader

Abstract

The application discloses an information processing method and device, equipment and a readable storage medium, and relates to the technical field of communication, so as to save CPU resources and storage resources. The method comprises the following steps: in the case that an uplink message is received, a first network element generates a first session table and configures a first field of the first session table; the first network element sends the uplink message to a second network element, so that the second network element configures a second field of the first session table; the first network element forms a first session log according to the first session table which is configured with the first field and the second field; and the first network element stores the first session log in a user log storage system. The embodiment of the application can save CPU resources and storage resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to an information processing method, apparatus, device and readable storage medium. Background Technology

[0002] A Broadband Remote Access Server (BRAS) is a new type of access gateway designed for broadband network applications.

[0003] For BRAS devices, the most important step in promoting their generalization is the separation of forwarding and control.

[0004] The basic idea of ​​the control plane separation vBRAS system is to abstract the control plane functions of multiple BRAS devices and centrally deploy them in the cloud to form a unified BRAS controller (BRAS-CP, or CP for short); at the same time, the BRAS devices or other forwarding devices stripped of the control plane form BRAS repeaters (BRAS-UP, or UP). Thus, the control plane separation vBRAS system consists of CP and UP.

[0005] The existing DPI (Deep Packet Inspection) or NAT (Network Address Translation) network elements are configured as follows: Figure 1 As shown, the functions of each part are described below:

[0006] BRAS: BRAS is the access gateway for home broadband users, responsible for functions such as access control, authentication, and billing for home broadband users.

[0007] NAT: Since home broadband users are typically assigned private IP addresses, NAT needs to be deployed to translate public and private addresses. NAT can be inserted into a NAT panel within a BRAS device, or it can be a standalone NAT device attached to the BRAS.

[0008] DPI: To perform application-level traffic analysis and control functions, DPI capabilities need to be deployed. DPI can be a DPI board inserted into the BRAS device, or a standalone DPI device deployed next to the BRAS.

[0009] User log retention system: NAT logs, DPI logs, etc. are all sent to the user log retention system. The system generates a unified user log and saves it for later use by associating various logs.

[0010] NAT and DPI are two independent network elements, and each network element maintains a huge five-tuple session table. This approach will result in a waste of CPU and storage resources. Summary of the Invention

[0011] This application provides an information processing method, apparatus, device, and readable storage medium to save CPU and storage resources.

[0012] In a first aspect, embodiments of this application provide an information processing method, including:

[0013] Upon receiving an uplink message, the first network element generates a first session table and configures the first field of the first session table;

[0014] The first network element sends the uplink message to the second network element so that the second network element can configure the second field of the first session table;

[0015] The first network element generates a first session log based on a first session table configured with the first field and the second field.

[0016] The first network element stores the first session log in the user log system;

[0017] Wherein, the first network element is a DPI network element and the second network element is a NAT network element; or, the first network element is a NAT network element and the second network element is a DPI network element.

[0018] Optionally, if the first network element is a DPI network element and the second network element is a NAT network element, the first network element generates a first session table and configures the first field of the first session table, including:

[0019] The first network element performs service identification based on the uplink message and obtains the service identification result.

[0020] The first network element configures the first field and performs traffic processing based on the service identification result.

[0021] Optionally, if the first network element is a NAT network element and the second network element is a DPI network element, the first network element generates a first session table and configures the first field of the first session table, including:

[0022] The first network element performs service identification based on the uplink message and obtains the service identification result.

[0023] The first network element configures the first field based on the service identification result and performs NAT translation.

[0024] Optionally, the first network element forms a first session log based on a first session table configured with the first field and the second field, including:

[0025] The first network element receives a first indication sent by the second network element, the first indication being used to indicate that the second network element has configured the second field;

[0026] The first network element forms the first session log based on the first instruction and the first session table configured with the first field and the second field.

[0027] Optionally, the method further includes:

[0028] The first network element receives the first strategy sent by the Broadband Remote Access Server Controller (BRAS-CP).

[0029] Wherein, if the first network element is a DPI network element and the second network element is a NAT network element, the first strategy includes a DPI processing strategy;

[0030] If the first network element is a NAT network element and the second network element is a DPI network element, the first strategy includes a NAT shared address pool and / or a NAT processing strategy.

[0031] Optionally, the method further includes:

[0032] The first network element performs traffic statistics on the sessions corresponding to the first session table and maintains the sessions.

[0033] Optionally, the method further includes:

[0034] When the session becomes old or needs to be removed, the first network element deletes the session;

[0035] The first network element sends a second session log to the user log retention system, and the second session log indicates that the session has been deleted.

[0036] Optionally, if the first network element is a DPI network element and the second network element is a NAT network element, the method further includes:

[0037] The first network element receives downlink messages from the second network element;

[0038] The first network element performs DPI processing and traffic statistics based on the downlink message.

[0039] Optionally, if the first network element is a NAT network element and the second network element is a DPI network element, the method further includes:

[0040] The first network element receives downlink messages from the second network element;

[0041] The first network element performs NAT translation based on the downlink message.

[0042] Optionally, if the first network element is a DPI network element and the second network element is a NAT network element:

[0043] The first field includes one or more of the following:

[0044] Private source address, private source port, destination address, destination port, protocol type, L7 (Layer 7) protocol category, application category, application subcategory, traffic statistics;

[0045] The second field includes one or more of the following:

[0046] Public source address, public source port;

[0047] If the first network element is a NAT network element and the second network element is a DPI network element:

[0048] The first field includes one or more of the following:

[0049] Public source address, public source port;

[0050] The second field includes one or more of the following:

[0051] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics.

[0052] Secondly, embodiments of this application provide an information processing method, including:

[0053] The second network element receives the uplink message sent by the first network element;

[0054] The second network element configures the second field of the first session table according to the uplink message, wherein the first session table is generated by the first network element;

[0055] Wherein, the first network element is a DPI network element and the second network element is a NAT network element; or, the first network element is a NAT network element and the second network element is a DPI network element.

[0056] Optionally, the method further includes:

[0057] The second network element sends a first indication to the first network element, the first indication being used to indicate that the second network element has configured the second field.

[0058] Optionally, the method further includes:

[0059] The second network element receives the second strategy sent by BRAS-CP;

[0060] Wherein, if the first network element is a DPI network element and the second network element is a NAT network element, the second strategy includes a NAT shared address pool and / or a NAT processing strategy;

[0061] If the first network element is a NAT network element and the second network element is a DPI network element, the second strategy includes a DPI processing strategy.

[0062] Optionally, the first network element is a DPI network element and the second network element is a NAT network element, and the method further includes:

[0063] The second network element receives downlink packets and performs NAT translation;

[0064] The second network element sends the downlink message to the first network element.

[0065] Optionally, if the first network element is a NAT network element and the second network element is a DPI network element, the method further includes:

[0066] The second network element receives downlink packets, performs DPI processing on the downlink packets, and performs traffic statistics.

[0067] The second network element sends the downlink message to the first network element.

[0068] Optionally, if the first network element is a DPI network element and the second network element is a NAT network element:

[0069] The second field includes one or more of the following:

[0070] Public source address, public source port;

[0071] If the first network element is a NAT network element and the second network element is a DPI network element:

[0072] The second field includes one or more of the following:

[0073] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics.

[0074] Thirdly, embodiments of this application provide an information processing apparatus applied to a first network element, comprising:

[0075] The first generation module is used to generate a first session table and configure the first field of the first session table when an uplink message is received.

[0076] The first sending module is used to send the uplink message to the second network element so that the second network element can configure the second field of the first session table;

[0077] The second generation module is used to generate a first session log based on a first session table configured with the first field and the second field;

[0078] The second sending module is used to retain the first session log of the system in the user log;

[0079] Wherein, the first network element is a DPI network element and the second network element is a NAT network element; or, the first network element is a NAT network element and the second network element is a DPI network element.

[0080] Optionally, if the first network element is a DPI network element and the second network element is a NAT network element, the first generation module includes:

[0081] The first identification submodule is used to perform service identification based on the uplink message and obtain the service identification result;

[0082] The first generation submodule is used to configure the first field and perform traffic processing based on the business identification result.

[0083] Optionally, if the first network element is a NAT network element and the second network element is a DPI network element, the first generation module includes:

[0084] The second identification submodule is used to perform service identification based on the uplink message and obtain the service identification result.

[0085] The second generation submodule is used to configure the first field and perform NAT translation based on the business identification result.

[0086] Optionally, the second generation module includes:

[0087] A receiving submodule is configured to receive a first indication sent by the second network element, wherein the first indication is used to indicate that the second network element has configured the second field.

[0088] A generation submodule is used to generate the first session log based on the first instruction and a first session table configured with the first field and the second field.

[0089] Optionally, the device may further include:

[0090] The first receiving module is used to receive the first strategy sent by the Broadband Remote Access Server Controller (BRAS-CP).

[0091] Wherein, if the first network element is a DPI network element and the second network element is a NAT network element, the first strategy includes a DPI processing strategy;

[0092] If the first network element is a NAT network element and the second network element is a DPI network element, the first strategy includes a NAT shared address pool and / or a NAT processing strategy.

[0093] Optionally, the device may further include:

[0094] The first processing module is used to perform traffic statistics on the sessions corresponding to the first session table and maintain the sessions.

[0095] Optionally, the device may further include:

[0096] The second processing module is used to delete the session when the session becomes old or needs to be terminated;

[0097] The third sending module is used to send a second session log to the user log retention system, the second session log indicating that the session has been deleted.

[0098] Optionally, if the first network element is a DPI network element and the second network element is a NAT network element, the device may further include:

[0099] The second receiving module is used to receive downlink packets from the second network element;

[0100] The third processing module is used to perform DPI processing based on the downlink message and to perform traffic statistics.

[0101] Optionally, if the first network element is a NAT network element and the second network element is a DPI network element, the device may further include:

[0102] The third receiving module is used to receive downlink packets from the second network element;

[0103] The fourth processing module is used to perform NAT translation based on the downlink message.

[0104] Optionally, if the first network element is a DPI network element and the second network element is a NAT network element:

[0105] The first field includes one or more of the following:

[0106] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics;

[0107] The second field includes one or more of the following:

[0108] Public source address, public source port;

[0109] If the first network element is a NAT network element and the second network element is a DPI network element:

[0110] The first field includes one or more of the following:

[0111] Public source address, public source port;

[0112] The second field includes one or more of the following:

[0113] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics.

[0114] Fourthly, embodiments of this application provide an information processing apparatus applied to a second network element, comprising:

[0115] The first receiving module is used to receive uplink messages sent by the first network element;

[0116] The first configuration module is used to configure the second field of the first session table according to the uplink message, wherein the first session table is generated by the first network element;

[0117] Wherein, the first network element is a DPI network element and the second network element is a NAT network element; or, the first network element is a NAT network element and the second network element is a DPI network element.

[0118] Optionally, the device may further include:

[0119] The first sending module is used to send a first indication to the first network element, the first indication being used to indicate that the second network element has configured the second field.

[0120] Optionally, the device may further include:

[0121] The second receiving module is used to receive the second strategy sent by BRAS-CP;

[0122] Wherein, if the first network element is a DPI network element and the second network element is a NAT network element, the second strategy includes a NAT shared address pool and / or a NAT processing strategy;

[0123] If the first network element is a NAT network element and the second network element is a DPI network element, the second strategy includes a DPI processing strategy.

[0124] Optionally, the first network element is a DPI network element and the second network element is a NAT network element, and the device may further include:

[0125] The third receiving module is used to receive downlink packets and perform NAT translation;

[0126] The second sending module is used to send the downlink message to the first network element.

[0127] Optionally, if the first network element is a NAT network element and the second network element is a DPI network element, the device may further include:

[0128] The fourth receiving module is used to receive downlink packets, perform DPI processing on the downlink packets, and perform traffic statistics.

[0129] The third sending module is used to send the downlink message to the first network element.

[0130] Optionally, if the first network element is a DPI network element and the second network element is a NAT network element:

[0131] The second field includes one or more of the following:

[0132] Public source address, public source port;

[0133] If the first network element is a NAT network element and the second network element is a DPI network element:

[0134] The second field includes one or more of the following:

[0135] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics.

[0136] Fifthly, embodiments of this application provide an information processing apparatus applied to a first network element, comprising: a processor and a transceiver;

[0137] The processor is configured to generate a first session table and configure a first field of the first session table upon receiving an uplink message.

[0138] The transceiver is used to send the uplink message to the second network element so that the second network element can configure the second field of the first session table;

[0139] The processor is further configured to generate a first session log based on a first session table configured with the first field and the second field;

[0140] The transceiver is also used to store the first session log of the system in the user log;

[0141] Wherein, the first network element is a DPI network element and the second network element is a NAT network element; or, the first network element is a NAT network element and the second network element is a DPI network element.

[0142] Optionally, if the first network element is a DPI network element and the second network element is a NAT network element, the processor is further configured to:

[0143] Based on the uplink message, service identification is performed to obtain the service identification result;

[0144] Based on the business identification result, configure the first field and perform traffic processing.

[0145] Optionally, if the first network element is a NAT network element and the second network element is a DPI network element, the processor is further configured to:

[0146] Based on the uplink message, service identification is performed to obtain the service identification result;

[0147] Based on the business identification result, configure the first field and perform NAT translation.

[0148] Optionally, the processor is further configured to:

[0149] Receive a first indication sent by the second network element, the first indication being used to indicate that the second network element has configured the second field;

[0150] The first session log is formed based on the first instruction and the first session table configured with the first field and the second field.

[0151] Optionally, the processor is further configured to:

[0152] Receive the first policy sent by the Broadband Remote Access Server Controller (BRAS-CP);

[0153] Wherein, if the first network element is a DPI network element and the second network element is a NAT network element, the first strategy includes a DPI processing strategy;

[0154] If the first network element is a NAT network element and the second network element is a DPI network element, the first strategy includes a NAT shared address pool and / or a NAT processing strategy.

[0155] Optionally, the processor is further configured to:

[0156] Traffic statistics are performed on the sessions corresponding to the first session table, and the sessions are maintained.

[0157] Optionally, the processor is further configured to:

[0158] The session is deleted when it becomes old or needs to be terminated.

[0159] A second session log is sent to the user log retention system, the second session log indicating that the session has been deleted.

[0160] Optionally, if the first network element is a DPI network element and the second network element is a NAT network element, the processor is further configured to:

[0161] Receive downlink messages from the second network element;

[0162] DPI processing is performed on the downlink messages, and traffic statistics are also calculated.

[0163] Optionally, the processor is further configured to:

[0164] Receive downlink messages from the second network element;

[0165] Perform NAT translation based on the downlink message.

[0166] Optionally, if the first network element is a DPI network element and the second network element is a NAT network element:

[0167] The first field includes one or more of the following:

[0168] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics;

[0169] The second field includes one or more of the following:

[0170] Public source address, public source port;

[0171] If the first network element is a NAT network element and the second network element is a DPI network element:

[0172] The first field includes one or more of the following:

[0173] Public source address, public source port;

[0174] The second field includes one or more of the following:

[0175] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics.

[0176] Sixthly, embodiments of this application provide an information processing apparatus applied to a second network element, comprising: a processor and a transceiver;

[0177] The transceiver is used to receive uplink messages sent by the first network element.

[0178] The processor is configured to configure a second field of a first session table according to the uplink message, wherein the first session table is generated by the first network element;

[0179] Wherein, the first network element is a DPI network element and the second network element is a NAT network element; or, the first network element is a NAT network element and the second network element is a DPI network element.

[0180] Optionally, the processor is further configured to:

[0181] Send a first indication to the first network element, the first indication being used to indicate that the second network element has configured the second field.

[0182] Optionally, the processor is further configured to:

[0183] The second strategy for receiving BRAS-CP transmissions;

[0184] Wherein, if the first network element is a DPI network element and the second network element is a NAT network element, the second strategy includes a NAT shared address pool and / or a NAT processing strategy;

[0185] If the first network element is a NAT network element and the second network element is a DPI network element, the second strategy includes a DPI processing strategy.

[0186] Optionally, the first network element is a DPI network element and the second network element is a NAT network element, and the processor is further configured to:

[0187] Receive downlink packets and perform NAT translation;

[0188] The downlink message is sent to the first network element.

[0189] Optionally, if the first network element is a NAT network element and the second network element is a DPI network element, the processor is further configured to:

[0190] Receive downlink packets, perform DPI processing on the downlink packets, and perform traffic statistics;

[0191] The downlink message is sent to the first network element.

[0192] Optionally, if the first network element is a DPI network element and the second network element is a NAT network element:

[0193] The second field includes one or more of the following:

[0194] Public source address, public source port;

[0195] If the first network element is a NAT network element and the second network element is a DPI network element:

[0196] The second field includes one or more of the following:

[0197] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics.

[0198] In a seventh aspect, embodiments of this application also provide a communication device, including: a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps in the information processing method described above.

[0199] Eighthly, embodiments of this application also provide a readable storage medium storing a program that, when executed by a processor, implements the steps in the information processing method described above.

[0200] In this embodiment of the application, the first network element and the second network element process the same session table and generate the first session log based on the processed session table, thereby eliminating the need for the two network elements to maintain different session tables, thus saving CPU and storage resources. Attached Figure Description

[0201] Figure 1 This is a schematic diagram of DPI and NAT settings in existing technologies;

[0202] Figure 2 This is one of the flowcharts of the information processing method provided in the embodiments of this application;

[0203] Figure 3 This is the second flowchart of the information processing method provided in the embodiments of this application;

[0204] Figure 4 This is the third flowchart of the information processing method provided in the embodiments of this application;

[0205] Figure 5 This is the fourth flowchart of the information processing method provided in the embodiments of this application;

[0206] Figure 6 This is the fifth flowchart of the information processing method provided in the embodiments of this application;

[0207] Figure 7 This is the sixth flowchart of the information processing method provided in the embodiments of this application;

[0208] Figure 8 This is one of the structural diagrams of the information processing apparatus provided in the embodiments of this application;

[0209] Figure 9 This is a second structural diagram of the information processing device provided in the embodiments of this application;

[0210] Figure 10 This is the third structural diagram of the information processing device provided in the embodiments of this application;

[0211] Figure 11 This is the fourth structural diagram of the information processing device provided in the embodiments of this application;

[0212] Figure 12 This is the fifth structural diagram of the information processing device provided in the embodiments of this application;

[0213] Figure 13 This is the sixth structural diagram of the information processing device provided in the embodiments of this application;

[0214] Figure 14 This is the seventh structural diagram of the information processing device provided in the embodiments of this application;

[0215] Figure 15 This is the eighth structural diagram of the information processing device provided in the embodiments of this application. Detailed Implementation

[0216] In the embodiments of this application, the term "and / or" describes the relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following associated objects have an "or" relationship.

[0217] In the embodiments of this application, the term "multiple" refers to two or more, and other quantifiers are similar.

[0218] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0219] See Figure 2 , Figure 2 This is a flowchart of an information processing method provided in an embodiment of this application, applied to a first network element. In this embodiment, the first network element is a DPI network element, and the second network element is a NAT network element. Figure 2 As shown, it includes the following steps:

[0220] Step 201: Upon receiving an uplink message, the DPI network element generates a first session table and configures the first field of the first session table.

[0221] When a user's uplink packet arrives at the BRAS-UP, the BRAS-UP forwards the uplink packet to the DPI network element according to the traffic redirection strategy from the BRAS-CP. Upon receiving the uplink packet, the DPI network element generates a first session table and configures its first field. Optionally, the DPI network element can also perform traffic statistics on the sessions corresponding to the first session table and maintain the sessions throughout their entire lifecycle.

[0222] Specifically, when generating the first session table, the DPI network element can perform service identification based on the uplink packets to obtain a service identification result. This service identification result may include service type, protocol type, etc. Subsequently, the DPI network element configures the first field based on the service identification result and performs traffic processing.

[0223] The first session table may include the following information:

[0224] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, public source address, public source port, traffic statistics (1~N).

[0225] The first field includes one or more of the following:

[0226] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics (1~N).

[0227] In other words, the DPI network element needs to fill in the first field mentioned above based on the obtained uplink messages, etc.

[0228] Step 202: The DPI network element sends the uplink message to the NAT network element so that the NAT network element configures the second field of the first session table. That is, the NAT network element fills in the second field.

[0229] The second field includes one or more of the following:

[0230] Public source address, public source port.

[0231] If a DPI network element determines that an uplink packet needs to be discarded based on the received DPI policy, then the DPI network element will discard the packet instead of sending it to the NAT network element.

[0232] Step 203: The DPI network element forms a first session log based on the first session table configured with the first field and the second field.

[0233] In this step, the DPI network element receives a first indication sent by the NAT network element, the first indication indicating that the NAT network element has configured the second field. The DPI network element then generates the first session log based on the first indication and a first session table configured with the first and second fields.

[0234] In this application embodiment, the specific implementation of the first instruction is not limited. For example, the first instruction can be carried through a message between the NAT network element and the DPI network element.

[0235] The first session log may include the following information:

[0236] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, public source address, public source port, traffic statistics (1~N), ..., timestamp of the session generation.

[0237] Step 204: The DPI network element stores the first session log in the user log retention system.

[0238] In this embodiment of the application, the first network element and the second network element process the same session table and generate the first session log based on the processed session table, thereby eliminating the need for the two network elements to maintain different session tables, thus saving CPU and storage resources.

[0239] Optionally, based on the above embodiments, the DPI network element may also receive a first policy sent by the BRAS-CP, wherein the first policy includes a DPI processing policy. The DPI processing policy includes processing results for received uplink and downlink packets, such as forwarding or discarding.

[0240] In the downlink direction, the DPI network element receives downlink packets from the NAT network element and can perform DPI processing and traffic statistics based on the downlink packets. The processed downlink packets are then sent to the BRAS UP.

[0241] When the session ages or needs to be removed, the DPI network element deletes the session and sends a second session log to the user log retention system, the second session log indicating that the session has been deleted.

[0242] See Figure 3 , Figure 3 This is a flowchart of an information processing method provided in an embodiment of this application, applied to a first network element. In this embodiment, the first network element is a NAT network element, and the second network element is a DPI network element.

[0243] like Figure 3 As shown, it includes the following steps:

[0244] Step 301: Upon receiving an uplink packet, the NAT network element generates a first session table and configures the first field of the first session table.

[0245] When a user's uplink packet arrives at the BRAS-UP, the BRAS-UP forwards the uplink packet to the NAT network element according to the traffic redirection policy from the BRAS-CP. Upon receiving the uplink packet, the NAT network element generates a first session table and configures its first field. Optionally, the NAT network element can also perform traffic statistics on the sessions corresponding to the first session table and maintain the sessions throughout their entire lifecycle.

[0246] Specifically, when generating the first session table, the NAT network element can perform service identification based on the uplink packets to obtain a service identification result. This service identification result may include service type, protocol type, etc. Then, the NAT network element configures the first field based on the service identification result and performs NAT translation.

[0247] The first session table may include the following information:

[0248] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, public source address, public source port, traffic statistics (2~N).

[0249] The first field includes one or more of the following:

[0250] Public source address, public source port.

[0251] In other words, NAT network elements need to fill in the first field mentioned above based on the obtained uplink packets, etc.

[0252] Step 302: The NAT network element sends the uplink message to the DPI network element so that the DPI network element can configure the second field of the first session table. That is, the DPI network element fills in the second field.

[0253] The second field includes one or more of the following:

[0254] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics (1~N).

[0255] If a NAT element determines that an uplink packet needs to be discarded based on the received NAT policy, then the NAT element will discard the packet instead of sending it to the DPI element.

[0256] Step 303: The NAT network element forms a first session log based on a first session table configured with the first field and the second field.

[0257] In this step, the NAT network element receives a first indication sent by the DPI network element, the first indication indicating that the DPI network element has configured the second field. Based on the first indication and a first session table configured with the first and second fields, the NAT network element generates the first session log.

[0258] In this application embodiment, the specific implementation of the first instruction is not limited. For example, the first instruction can be carried through a message between the NAT network element and the DPI network element.

[0259] The first session log may include the following information:

[0260] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, public source address, public source port, traffic statistics (1~N), ..., timestamp of the session generation.

[0261] Step 304: The NAT network element stores the first session log in the user log retention system.

[0262] In this embodiment of the application, the first network element and the second network element process the same session table and generate the first session log based on the processed session table, thereby eliminating the need for the two network elements to maintain different session tables, thus saving CPU and storage resources.

[0263] Optionally, based on the above embodiments, the NAT network element may also receive a first policy sent by BRAS-CP, wherein the first policy package includes a NAT shared address pool and / or a NAT processing policy. The NAT processing policy includes processing results for received uplink and downlink packets, such as forwarding or dropping.

[0264] In the downlink direction, the NAT network element receives downlink packets from the DPI network element and performs NAT translation on the downlink packets. The processed downlink packets are then sent to the BRAS UP.

[0265] When the session ages or needs to be torn down, the NAT network element deletes the session and sends a second session log to the user log retention system, the second session log indicating that the session has been deleted.

[0266] See Figure 4 , Figure 4 This is a flowchart of an information processing method provided in an embodiment of this application, applied to a second network element. In this embodiment, the first network element is a DPI network element, and the second network element is a NAT network element. Figure 4 As shown, it includes the following steps:

[0267] Step 401: The NAT network element receives the uplink message sent by the DPI network element.

[0268] When a user's uplink packet arrives at the BRAS-UP, the BRAS-UP forwards the uplink packet to the DPI network element according to the traffic redirection policy from the BRAS-CP. Upon receiving the uplink packet, the DPI network element can forward it to the NAT network element. The NAT network element then receives the uplink packet.

[0269] Step 402: The NAT network element configures the second field of the first session table according to the uplink packet, wherein the first session table is generated by the DPI network element.

[0270] In this case, the second field includes one or more of the following:

[0271] Public source address, public source port.

[0272] Optionally, the NAT network element sends a first indication to the DPI network element, the first indication being used to indicate that the NAT network element has configured the second field.

[0273] The meaning of the first instruction can be referred to the description of the foregoing embodiments.

[0274] In this embodiment of the application, the first network element and the second network element process the same session table and generate the first session log based on the processed session table, thereby eliminating the need for the two network elements to maintain different session tables, thus saving CPU and storage resources.

[0275] Optionally, based on the above embodiments, the NAT network element may also receive a second policy sent by BRAS-CP, the second policy including a NAT shared address pool and / or a NAT processing policy.

[0276] Optionally, in the downlink direction, the NAT network element receives the downlink packet, performs NAT translation, and then sends the downlink packet to the DPI network element.

[0277] See Figure 5 , Figure 5 This is a flowchart of the information processing method provided in an embodiment of this application, applied to a second network element. In this embodiment, the first network element is a NAT network element, and the second network element is a DPI network element.

[0278] like Figure 5 As shown, it includes the following steps:

[0279] Step 501: The DPI network element receives the uplink message sent by the NAT network element.

[0280] When a user's uplink packet arrives at the BRAS-UP, the BRAS-UP forwards the uplink packet to the NAT network element according to the traffic redirection policy from the BRAS-CP. Upon receiving the uplink packet, the NAT network element can then forward it to the DPI network element. The DPI network element then receives the uplink packet.

[0281] Step 502: The DPI network element configures the second field of the first session table according to the uplink message, wherein the first session table is generated by the NAT network element.

[0282] In this case, the second field includes one or more of the following:

[0283] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics.

[0284] Optionally, the DPI network element sends a first indication to the NAT network element, the first indication being used to indicate that the DPI network element has configured the second field.

[0285] The meaning of the first instruction can be referred to the description of the foregoing embodiments.

[0286] In this embodiment of the application, the first network element and the second network element process the same session table and generate the first session log based on the processed session table, thereby eliminating the need for the two network elements to maintain different session tables, thus saving CPU and storage resources.

[0287] Optionally, based on the above embodiments, the DPI network element may also receive a second strategy sent by the BRAS-CP, the second strategy including a DPI processing strategy.

[0288] Optionally, in the downlink direction, the DPI network element receives the downlink packet, performs DPI processing on the downlink packet, performs traffic statistics, and then sends the downlink packet to the NAT network element.

[0289] As described in the background section, the NAT network element and the DP network element are two independent network elements, each maintaining a large five-tuple session table. In reality, the session tables of the NAT and DP network elements are based on the exact same five-tuple sessions, with most fields being identical. This duplication of entries between the two network elements wastes significant valuable CPU and storage resources. Furthermore, to generate user logs, the user log retention system needs to retrieve logs from both the NAT and DP network elements and correlate them based on the five-tuple, timestamps, etc. This correlation not only consumes the performance of the user log retention system, but more importantly, due to clock asynchrony between the NAT and DP network elements or log processing anomalies (such as partial log transmission failure in a certain network element), many user logs cannot be correlated.

[0290] To address the aforementioned issues, in this embodiment, the DPI network element and the NAT network element perform service identification / control and NAT translation based on the same session table. Through the collaborative cooperation of the DPI and NAT network elements, the same session table field is filled in, thereby saving CPU and storage resources. The DPI and NAT network elements can be two different modules on the same device / board, or they can be two different devices / boards. Since a complete log is generated based on the same session table without requiring association by a log retention system, the problem of log incompatibility is avoided.

[0291] The solutions in this application are applicable to both control-transfer separation vBRAS systems and standalone BRAS devices. The specific implementation process of this application's embodiments is described below using a control-transfer separation vBRAS system as an example. Specifically, a DPI network element is used as the first network element, and a NAT network element is used as the second network element.

[0292] like Figure 6 As shown, the process (uplink traffic) of the information processing method in this application embodiment may include:

[0293] Step 601: The BRAS CP sends the public address pool and related NAT policies to the NAT network element, sends the related DPI processing policies to the DPI network element, and sends the traffic diversion policy that the traffic needs to be processed by the DPI network element to the BRAS UP.

[0294] Step 602: When a user dials in to go online, BRAS UP sends the user's online message to BRAS CP through a Layer 2 tunnel;

[0295] Step 603: BRAS CP completes user authentication, assigns a private user address to the user and sends it to CPE (Customer Premise Equipment); BRAS CP generates user forwarding entries and sends them to BRASUP;

[0296] Step 604: The user data plane packet arrives at the BRAS UP, and the BRAS UP sends the packet to the DPI network element according to the diversion policy issued by the BRAS CP.

[0297] Step 605: The DPI network element generates a session table, performs traffic statistics for the session, and maintains the session throughout its entire lifecycle.

[0298] Step 606: The DPI network element performs service identification, fills in the relevant fields for DPI identification, and processes traffic based on the identification results;

[0299] The session entries generated by the DPI network element are: (private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, public source address, public source port, traffic statistics 1~N, ...). Among them, the public source address and public source port fields are not configured, and the other fields are filled in by the DPI network element.

[0300] Step 607: The DPI network element sends user plane data packets to the NAT network element for processing (for packets whose DPI processing policy is to discard, they are not sent to the NAT but are discarded directly).

[0301] Step 608: The NAT network element generates and fills in fields such as public source address and public source port according to the relevant policies issued by BRAS CP, and performs NAT translation accordingly;

[0302] Step 609: The NAT network element notifies the DPI network element that the NAT-related field configuration for this session has been completed, namely, the public source address and public source port fields have been filled in;

[0303] Step 610: The DPI network element sends the generation log of this session to the user log retention system;

[0304] The generation log sent by DPI includes: (private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, public source address, public source port, traffic statistics 1 to N, ..., timestamp of the session generation);

[0305] Step 611: User traffic is converted by NAT elements to access the Internet.

[0306] like Figure 7As shown, the process (downlink traffic) of the information processing method in this application embodiment may include:

[0307] Step 701: Downlink traffic packets arrive at the NAT network element;

[0308] Step 702: The NAT network element performs NAT translation on the packet according to the session table and sends the translated packet to the DPI network element;

[0309] Step 703: The DPI network element performs corresponding DPI processing on the downlink traffic packets and performs traffic statistics for the session;

[0310] Step 704: The message processed by the DPI network element is sent to the UP, and the UP forwards the message to the CPE according to the user forwarding table;

[0311] Step 705: When the session subsequently ages or needs to be terminated, DPI deletes the session and sends the termination log of the session to the user log retention system.

[0312] As can be seen from the above embodiments, the above scheme can save CPU and storage resources. Furthermore, since a complete log is generated based on the same session table and does not require association by the log retention system, the problem of logs being unable to be associated can be avoided.

[0313] This application also provides an information processing device applied to a first network element. See also... Figure 8 , Figure 8 This is a structural diagram of the information processing apparatus provided in an embodiment of this application. For example... Figure 8 As shown, the information processing device includes:

[0314] The first generation module 801 is used to generate a first session table and configure a first field of the first session table when an uplink message is received; the first sending module 802 is used to send the uplink message to a second network element so that the second network element can configure a second field of the first session table; the second generation module 803 is used to form a first session log based on the first session table configured with the first field and the second field; the second sending module 804 is used to store the first session log in the user log system.

[0315] The first network element is a DPI network element, and the second network element is a NAT network element.

[0316] Optionally, the first generation module includes:

[0317] The first identification submodule is used to perform service identification based on the uplink message and obtain the service identification result;

[0318] The first generation submodule is used to configure the first field and perform traffic processing based on the business identification result.

[0319] Optionally, the second generation module includes:

[0320] A receiving submodule is configured to receive a first indication sent by the second network element, wherein the first indication is used to indicate that the second network element has configured the second field.

[0321] A generation submodule is used to generate the first session log based on the first instruction and a first session table configured with the first field and the second field.

[0322] Optionally, the device may further include:

[0323] The first receiving module is used to receive the first strategy sent by BRAS-CP;

[0324] The first strategy includes a DPI processing strategy.

[0325] Optionally, the device may further include:

[0326] The first processing module is used to perform traffic statistics on the sessions corresponding to the first session table and maintain the sessions.

[0327] Optionally, the device may further include:

[0328] The second processing module is used to delete the session when the session becomes old or needs to be terminated;

[0329] The third sending module is used to send a second session log to the user log retention system, the second session log indicating that the session has been deleted.

[0330] Optionally, the device may further include:

[0331] The second receiving module is used to receive downlink packets from the second network element;

[0332] The third processing module is used to perform DPI processing based on the downlink message and to perform traffic statistics.

[0333] Optionally, the first field includes one or more of the following:

[0334] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics;

[0335] The second field includes one or more of the following:

[0336] Public source address, public source port.

[0337] The apparatus provided in this application embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0338] This application also provides an information processing device applied to a first network element. See also... Figure 9 , Figure 9 This is a structural diagram of the information processing apparatus provided in an embodiment of this application. For example... Figure 9 As shown, the information processing device includes:

[0339] The first generation module 901 is used to generate a first session table and configure a first field of the first session table when an uplink message is received; the first sending module 902 is used to send the uplink message to a second network element so that the second network element can configure a second field of the first session table; the second generation module 903 is used to form a first session log based on the first session table configured with the first field and the second field; the second sending module 904 is used to store the first session log in the user log system.

[0340] The first network element is a NAT network element, and the second network element is a DPI network element.

[0341] Optionally, the first generation module includes:

[0342] The second identification submodule is used to perform service identification based on the uplink message and obtain the service identification result.

[0343] The second generation submodule is used to configure the first field and perform NAT translation based on the business identification result.

[0344] Optionally, the second generation module includes:

[0345] A receiving submodule is configured to receive a first indication sent by the second network element, wherein the first indication indicates that the second network element has configured the second field.

[0346] A generation submodule is used to generate the first session log based on the first instruction and a first session table configured with the first field and the second field.

[0347] Optionally, the device may further include:

[0348] The first receiving module is used to receive the first policy sent by BRAS-CP; the first policy includes a NAT shared address pool and / or a NAT processing policy.

[0349] Optionally, the device may further include:

[0350] The first processing module is used to perform traffic statistics on the sessions corresponding to the first session table and maintain the sessions.

[0351] Optionally, the device may further include:

[0352] The second processing module is used to delete the session when the session becomes old or needs to be terminated;

[0353] The third sending module is used to send a second session log to the user log retention system, the second session log indicating that the session has been deleted.

[0354] Optionally, the device may further include:

[0355] The third receiving module is used to receive downlink packets from the second network element;

[0356] The fourth processing module is used to perform NAT translation based on the downlink message.

[0357] Optionally, the first field includes one or more of the following:

[0358] Public source address, public source port;

[0359] The second field includes one or more of the following:

[0360] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics.

[0361] The apparatus provided in this application embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0362] This application also provides an information processing apparatus applied to a second network element. See also... Figure 10 , Figure 10 This is a structural diagram of the information processing apparatus provided in an embodiment of this application. For example... Figure 10 As shown, the information processing device includes:

[0363] The first receiving module 1001 is used to receive uplink messages sent by the first network element; the first configuration module 1002 is used to configure the second field of the first session table according to the uplink messages, wherein the first session table is generated by the first network element.

[0364] The first network element is a DPI network element, and the second network element is a NAT network element.

[0365] Optionally, the device may further include:

[0366] The first sending module is used to send a first indication to the first network element, the first indication being used to indicate that the second network element has configured the second field.

[0367] Optionally, the device may further include:

[0368] The second receiving module is used to receive the second strategy sent by BRAS-CP;

[0369] The second strategy includes a NAT shared address pool and / or a NAT processing strategy;

[0370] Optionally, the device may further include:

[0371] The third receiving module is used to receive downlink packets and perform NAT translation;

[0372] The second sending module is used to send the downlink message to the first network element.

[0373] Optionally, the second field includes one or more of the following:

[0374] Public source address, public source port;

[0375] If the first network element is a NAT network element and the second network element is a DPI network element:

[0376] The apparatus provided in this application embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0377] This application also provides an information processing apparatus applied to a second network element. See also... Figure 11 , Figure 11 This is a structural diagram of the information processing apparatus provided in an embodiment of this application. For example... Figure 11 As shown, the information processing device includes:

[0378] The first receiving module 1101 is used to receive uplink messages sent by the first network element; the first configuration module 1102 is used to configure the second field of the first session table according to the uplink messages, wherein the first session table is generated by the first network element.

[0379] The first network element is a NAT network element, and the second network element is a DPI network element.

[0380] Optionally, the device may further include:

[0381] The first sending module is used to send a first indication to the first network element, the first indication being used to indicate that the second network element has configured the second field.

[0382] Optionally, the device may further include:

[0383] The second receiving module is used to receive the second strategy sent by BRAS-CP;

[0384] The second strategy includes a DPI processing strategy.

[0385] Optionally, the device may further include:

[0386] The fourth receiving module is used to receive downlink packets, perform DPI processing on the downlink packets, and perform traffic statistics.

[0387] The third sending module is used to send the downlink message to the first network element.

[0388] Optionally, the second field includes one or more of the following:

[0389] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics.

[0390] The apparatus provided in this application embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0391] This application also provides an information processing device applied to a first network element. See also... Figure 12 , Figure 12 This is a structural diagram of the information processing apparatus provided in an embodiment of this application. For example... Figure 12 As shown, the information processing device includes: a processor 1201 and a transceiver 1202;

[0392] The processor 1201 is configured to generate a first session table and configure a first field of the first session table upon receiving an uplink message.

[0393] The transceiver 1202 is used to send the uplink message to the second network element so that the second network element can configure the second field of the first session table;

[0394] The processor 1201 is further configured to generate a first session log based on a first session table configured with the first field and the second field;

[0395] The transceiver 1202 is also used to store the first session log of the system in the user log;

[0396] The first network element is a DPI network element, and the second network element is a NAT network element.

[0397] Optionally, the processor 1201 is further configured to:

[0398] Based on the uplink message, service identification is performed to obtain the service identification result;

[0399] Based on the business identification result, configure the first field and perform traffic processing.

[0400] Optionally, the processor 1201 is further configured to:

[0401] Receive a first indication sent by the second network element, the first indication being used to indicate that the second network element has configured the second field;

[0402] The first session log is formed based on the first instruction and the first session table configured with the first field and the second field.

[0403] Optionally, the processor 1201 is further configured to:

[0404] The first strategy for receiving BRAS-CP transmissions;

[0405] The first strategy includes a DPI processing strategy.

[0406] Optionally, the processor is further configured to:

[0407] Traffic statistics are performed on the sessions corresponding to the first session table, and the sessions are maintained.

[0408] Optionally, the processor is further configured to:

[0409] The session is deleted when it becomes old or needs to be terminated.

[0410] A second session log is sent to the user log retention system, the second session log indicating that the session has been deleted.

[0411] Optionally, the processor 1201 is further configured to:

[0412] Receive downlink messages from the second network element;

[0413] DPI processing is performed on the downlink messages, and traffic statistics are also calculated.

[0414] Optionally, the first field includes one or more of the following:

[0415] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics;

[0416] The second field includes one or more of the following:

[0417] Public source address, public source port.

[0418] The apparatus provided in this application embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0419] This application also provides an information processing device applied to a first network element. See also... Figure 13 , Figure 13 This is a structural diagram of the information processing apparatus provided in an embodiment of this application. For example... Figure 13 As shown, the information processing device includes: a processor 1301 and a transceiver 1302;

[0420] The processor 1301 is configured to generate a first session table and configure a first field of the first session table upon receiving an uplink message.

[0421] The transceiver 1302 is used to send the uplink message to the second network element so that the second network element can configure the second field of the first session table;

[0422] The processor 1301 is further configured to generate a first session log based on a first session table configured with the first field and the second field;

[0423] The transceiver 1302 is also used to retain the first session log of the system in the user log;

[0424] The first network element is a NAT network element, and the second network element is a DPI network element.

[0425] Optionally, the processor 1301 is further configured to:

[0426] Based on the uplink message, service identification is performed to obtain the service identification result;

[0427] Based on the business identification result, configure the first field and perform NAT translation.

[0428] Optionally, the processor 1301 is further configured to:

[0429] Receive a first indication sent by the second network element, the first indication being used to indicate that the second network element has configured the second field;

[0430] The first session log is formed based on the first instruction and the first session table configured with the first field and the second field.

[0431] Optionally, the processor 1301 is further configured to:

[0432] The first strategy for receiving BRAS-CP transmissions;

[0433] The first strategy includes a NAT shared address pool and / or a NAT processing strategy.

[0434] Optionally, the processor 1301 is further configured to:

[0435] Traffic statistics are performed on the sessions corresponding to the first session table, and the sessions are maintained.

[0436] Optionally, the processor 1301 is further configured to:

[0437] The session is deleted when it becomes old or needs to be terminated.

[0438] A second session log is sent to the user log retention system, the second session log indicating that the session has been deleted.

[0439] Optionally, the processor 1301 is further configured to:

[0440] Receive downlink messages from the second network element;

[0441] Perform NAT translation based on the downlink message.

[0442] Optionally, the first field includes one or more of the following:

[0443] Public source address, public source port;

[0444] The second field includes one or more of the following:

[0445] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics.

[0446] The apparatus provided in this application embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0447] This application also provides an information processing apparatus applied to a second network element. See also... Figure 14 , Figure 14 This is a structural diagram of the information processing apparatus provided in an embodiment of this application. For example... Figure 14 As shown, the information processing device includes: a processor 1401 and a transceiver 1402;

[0448] The transceiver 1402 is used to receive uplink messages sent by the first network element; the processor 1401 is used to configure a second field of the first session table according to the uplink message, wherein the first session table is generated by the first network element.

[0449] The first network element is a DPI network element, and the second network element is a NAT network element.

[0450] Optionally, the processor 1401 is further configured to:

[0451] Send a first indication to the first network element, the first indication being used to indicate that the second network element has configured the second field.

[0452] Optionally, the processor 1401 is further configured to:

[0453] The second strategy for receiving BRAS-CP transmissions;

[0454] The second strategy includes a shared NAT address pool and / or a NAT processing strategy.

[0455] Optionally, the processor 1401 is further configured to:

[0456] Receive downlink packets and perform NAT translation;

[0457] The downlink message is sent to the first network element.

[0458] Optionally, the second field includes one or more of the following:

[0459] Public source address, public source port.

[0460] The apparatus provided in this application embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0461] This application also provides an information processing apparatus applied to a second network element. See also... Figure 15 , Figure 15 This is a structural diagram of the information processing apparatus provided in an embodiment of this application. For example... Figure 15 As shown, the information processing device includes: a processor 1501 and a transceiver 1502;

[0462] The transceiver 1502 is used to receive uplink messages sent by the first network element;

[0463] The processor 1501 is configured to configure a second field of a first session table according to the uplink message, wherein the first session table is generated by the first network element;

[0464] The first network element is a NAT network element, and the second network element is a DPI network element.

[0465] Optionally, the processor 1501 is further configured to:

[0466] Send a first indication to the first network element, the first indication being used to indicate that the second network element has configured the second field.

[0467] Optionally, the processor 1501 is further configured to:

[0468] The second strategy for receiving BRAS-CP transmissions;

[0469] The second strategy includes a DPI processing strategy.

[0470] Optionally, the processor 1501 is further configured to:

[0471] Receive downlink packets, perform DPI processing on the downlink packets, and perform traffic statistics;

[0472] The downlink message is sent to the first network element.

[0473] Optionally, the second field includes one or more of the following:

[0474] Private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, traffic statistics.

[0475] The apparatus provided in this application embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0476] It should be noted that the division of units in the embodiments of this application is illustrative and only represents one logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated units described above can be implemented in hardware or as software functional units.

[0477] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0478] This application provides a communication device, including: a memory, a processor, and a program stored in the memory and executable on the processor; the processor is configured to read the program from the memory to implement the steps in the information processing method described above.

[0479] This application also provides a readable storage medium storing a program. When executed by a processor, this program implements the various processes of the above-described information processing method embodiments and achieves the same technical effects. To avoid repetition, it will not be described again here. The readable storage medium can be any available medium or data storage device that the processor can access, including but not limited to magnetic storage (e.g., floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (e.g., CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (e.g., ROMs, EPROMs, EEPROMs, non-volatile memory (NAND flash), solid-state drives (SSDs)).

[0480] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0481] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0482] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. An information processing method, characterized in that, include: Upon receiving an uplink message, the first network element generates a first session table and configures the first field of the first session table; The first network element sends the uplink message to the second network element so that the second network element can configure the second field of the first session table; The first network element generates a first session log based on a first session table configured with the first field and the second field. The first network element sends the first session log to the user log retention system; Wherein, the first network element is a Deep Packet Resolution (DPI) network element, the second network element is a Network Address Translation (NAT) network element, and the first field includes one or more of the following: private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, and traffic statistics; the second field includes one or more of the following: public source address and public source port. Alternatively, the first network element is a NAT network element, the second network element is a DPI network element, and the first field includes one or more of the following: public source address, public source port; the second field includes one or more of the following: private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, and traffic statistics. The first network element forms a first session log based on a first session table configured with the first field and the second field, including: The first network element receives a first indication sent by the second network element, the first indication being used to indicate that the second network element has configured the second field; The first network element forms the first session log based on the first instruction and the first session table configured with the first field and the second field.

2. The method according to claim 1, characterized in that, If the first network element is a DPI network element and the second network element is a NAT network element, the first network element generates a first session table and configures the first field of the first session table, including: The first network element performs service identification based on the uplink message and obtains the service identification result. The first network element configures the first field and performs traffic processing based on the service identification result.

3. The method according to claim 1, characterized in that, If the first network element is a NAT network element and the second network element is a DPI network element, the first network element generates a first session table and configures the first field of the first session table, including: The first network element performs service identification based on the uplink message and obtains the service identification result. The first network element configures the first field based on the service identification result and performs NAT translation.

4. The method according to claim 1, characterized in that, The method further includes: The first network element receives the first strategy sent by the Broadband Remote Access Server Controller (BRAS-CP). Wherein, if the first network element is a DPI network element and the second network element is a NAT network element, the first strategy includes a DPI processing strategy; If the first network element is a NAT network element and the second network element is a DPI network element, the first strategy includes a NAT shared address pool and / or a NAT processing strategy.

5. The method according to claim 1, characterized in that, The method further includes: The first network element performs traffic statistics on the sessions corresponding to the first session table and maintains the sessions.

6. The method according to claim 5, characterized in that, The method further includes: When the session becomes old or needs to be removed, the first network element deletes the session; The first network element sends a second session log to the user log retention system, and the second session log indicates that the session has been deleted.

7. The method according to claim 1, characterized in that, If the first network element is a DPI network element and the second network element is a NAT network element, the method further includes: The first network element receives downlink messages from the second network element; The first network element performs DPI processing and traffic statistics based on the downlink message.

8. The method according to claim 1, characterized in that, If the first network element is a NAT network element and the second network element is a DPI network element, the method further includes: The first network element receives downlink messages from the second network element; The first network element performs NAT translation based on the downlink message.

9. An information processing method, characterized in that, include: The second network element receives the uplink message sent by the first network element; The second network element configures the second field of the first session table according to the uplink message, wherein the first session table is generated by the first network element; The second network element sends a first instruction to the first network element, the first instruction indicating that the second network element has configured the second field. The first network element then forms a first session log based on the first instruction and a first session table configured with the first and second fields, and sends the first session log to the user log retention system. The first field is configured by the first network element for the first session table. Wherein, the first network element is a DPI network element, the second network element is a NAT network element, and the first field includes one or more of the following: private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, and traffic statistics; the second field includes one or more of the following: public source address and public source port. Alternatively, the first network element is a NAT network element, the second network element is a DPI network element, and the first field includes one or more of the following: public source address, public source port; the second field includes one or more of the following: private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, and traffic statistics.

10. The method according to claim 9, characterized in that, The method further includes: The second network element receives the second strategy sent by BRAS-CP; Wherein, if the first network element is a DPI network element and the second network element is a NAT network element, the second strategy includes a NAT shared address pool and / or a NAT processing strategy; If the first network element is a NAT network element and the second network element is a DPI network element, the second strategy includes a DPI processing strategy.

11. The method according to claim 9, characterized in that, The first network element is a DPI network element, the second network element is a NAT network element, and the method further includes: The second network element receives downlink packets and performs NAT translation; The second network element sends the downlink message to the first network element.

12. The method according to claim 9, characterized in that, If the first network element is a NAT network element and the second network element is a DPI network element, the method further includes: The second network element receives downlink packets, performs DPI processing on the downlink packets, and performs traffic statistics. The second network element sends the downlink message to the first network element.

13. An information processing device, applied to a first network element, characterized in that, include: The first generation module is used to generate a first session table and configure the first field of the first session table when an uplink message is received. The first sending module is used to send the uplink message to the second network element so that the second network element can configure the second field of the first session table; The second generation module is used to generate a first session log based on a first session table configured with the first field and the second field; The second sending module is used to send the first session log to the user log retention system; Wherein, the first network element is a DPI network element, the second network element is a NAT network element, and the first field includes one or more of the following: private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, and traffic statistics; the second field includes one or more of the following: public source address and public source port. Alternatively, the first network element is a NAT network element, the second network element is a DPI network element, and the first field includes one or more of the following: public source address, public source port; the second field includes one or more of the following: private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, and traffic statistics. Specifically, the second generation module is used to: receive a first indication sent by the second network element, the first indication indicating that the second network element has configured the second field; and form the first session log according to the first indication and a first session table configured with the first field and the second field.

14. An information processing device applied to a second network element, characterized in that, include: The first receiving module is used to receive uplink messages sent by the first network element; The first configuration module is used to configure the second field of the first session table according to the uplink message, wherein the first session table is generated by the first network element; The information processing device is further configured to send a first instruction to the first network element, the first instruction indicating that the second network element has configured the second field, and the first network element, based on the first instruction and a first session table configured with the first field and the second field, forms a first session log and sends the first session log to the user log retention system; the first field is configured by the first network element for the first session table; Wherein, the first network element is a DPI network element, the second network element is a NAT network element, and the first field includes one or more of the following: private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, and traffic statistics; the second field includes one or more of the following: public source address and public source port. Alternatively, the first network element is a NAT network element, the second network element is a DPI network element, and the first field includes one or more of the following: public source address, public source port; the second field includes one or more of the following: private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, and traffic statistics.

15. An information processing device applied to a first network element, characterized in that, include: Processor and transceiver; The processor is configured to generate a first session table and configure a first field of the first session table upon receiving an uplink message. The transceiver is used to send the uplink message to the second network element so that the second network element can configure the second field of the first session table; The processor is further configured to generate a first session log based on a first session table configured with the first field and the second field; The transceiver is also used to send the first session log to the user log retention system; Wherein, the first network element is a DPI network element, the second network element is a NAT network element, and the first field includes one or more of the following: private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, and traffic statistics; the second field includes one or more of the following: public source address and public source port. Alternatively, the first network element is a NAT network element, the second network element is a DPI network element, and the first field includes one or more of the following: public source address, public source port; the second field includes one or more of the following: private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, and traffic statistics. The transceiver is further configured to: receive a first indication sent by the second network element, the first indication indicating that the second network element has configured the second field; The processor is specifically used to: form the first session log according to the first instruction and a first session table configured with the first field and the second field.

16. An information processing device applied to a second network element, characterized in that, include: Processor and transceiver; The transceiver is used to receive uplink messages sent by the first network element. The processor is configured to configure a second field of a first session table according to the uplink message, wherein the first session table is generated by the first network element; The transceiver is further configured to send a first indication to the first network element, the first indication indicating that the second network element has configured the second field, and the first network element, based on the first indication and a first session table configured with the first field and the second field, forms a first session log and sends the first session log to the user log retention system; the first field is configured by the first network element for the first session table; Wherein, the first network element is a DPI network element, the second network element is a NAT network element, and the first field includes one or more of the following: private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, and traffic statistics; the second field includes one or more of the following: public source address and public source port. Alternatively, the first network element is a NAT network element, the second network element is a DPI network element, and the first field includes one or more of the following: public source address, public source port; the second field includes one or more of the following: private source address, private source port, destination address, destination port, protocol type, L7 protocol category, application category, application subcategory, and traffic statistics.

17. A communication device, comprising: A memory, a processor, and a program stored in the memory and executable on the processor; characterized in that the processor is configured to read the program from the memory to implement the steps of the information processing method as described in any one of claims 1 to 12.

18. A readable storage medium for storing a program, characterized in that, When the program is executed by the processor, it implements the steps of the information processing method as described in any one of claims 1 to 12.

Citation Information

Patent Citations

  • Packet processing method, apparatus and system

    CN105340217A

  • Message processing method and system, and storage medium

    CN109361608A