Message processing
By including multiple policy items in the policy table and dynamically determining the policy offset value based on the feature information of the message, the problem of static existing TCAM actions is solved, and the flexibility and dynamicity of message processing are achieved.
Patent Information
- Application Number
- PCT/CN2023/121079
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-09-25
- Publication Date
- 2025-04-03
AI Technical Summary
The actions set by existing TCAM after matching are all static and cannot dynamically select the executed actions, resulting in lack of flexibility in message processing.
By including multiple policy items in the policy table and dynamically determine the policy offset value based on the specified feature information of the message, timing processing results and counting processing results, the target policy item is dynamically selected and policy processing is performed.
It improves the flexibility of message processing, and can dynamically execute different processing strategies according to different conditions to meet complex network needs.
Smart Images

Figure CN2023121079_03042025_PF_FP_ABST
Abstract
Description
Message processing Background Art
[0001] TCAM (Ternary Content Addressable Memory) is widely used in interactive chip scenarios. It can be used to flexibly identify packets or specific flows and set corresponding actions, such as rate limiting and redirection. Currently, the actions set after TCAM matching are static and cannot be dynamically selected for execution. BRIEF DESCRIPTION OF THE DRAWINGS
[0002] FIG1 is a schematic diagram of an example of a message processing method disclosed herein;
[0003] FIG2 is a schematic diagram of an example of a policy table of the present disclosure;
[0004] FIG3 is a schematic diagram of an example of a policy matching process of the present disclosure;
[0005] FIG4 is a schematic diagram of another example of the strategy matching process of the present disclosure;
[0006] FIG5 is a schematic diagram of another example of the strategy matching process of the present disclosure;
[0007] FIG6 is a schematic diagram of another example of a policy table of the present disclosure;
[0008] FIG7 is a schematic diagram of a message processing device according to the present disclosure. DETAILED DESCRIPTION
[0009] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present disclosure and to make the above-mentioned purposes, features and advantages of the embodiments of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure are further described in detail below with reference to the accompanying drawings.
[0010] FIG1 is a schematic diagram of a message processing method provided by an embodiment of the present disclosure. As shown in FIG1 , the message processing method may include the following processes 100 to 130:
[0011] Process 100: determining a matching policy table index base address based on designated characteristic information of the message; wherein the policy table index base address points to a starting position of a policy table, and the policy table includes a plurality of policy items.
[0012] In an embodiment of the present disclosure, a network device, such as a switching device, may obtain specified feature information of a received message and query a matching policy table index base address based on the specified feature information of the message.
[0013] When a matching policy table index base address is found, subsequent processing 110 to 130 may be continued.
[0014] If no matching policy table index base address is found, the message may be forwarded.
[0015] The specified characteristic information of the message may include, but is not limited to, one or more of the message's source IP address, destination IP address, source port, destination port, transmission protocol, and other characteristics.
[0016] For example, the source IP address, destination IP address, source port, destination port, and transport protocol of a message, that is, the five-tuple information of the message, may be used as the designated characteristic information.
[0017] At step 110 , a policy offset value is determined.
[0018] In the embodiment of the present disclosure, in order to improve the flexibility of message processing, a policy table may include multiple policy items. Different policy items may include different processing policies.
[0019] In one example, different policy items correspond to different processing policies.
[0020] In another example, some policy items in the same policy table include the same processing policies.
[0021] The processing strategy may include but is not limited to discarding, redirecting, sending to a CPU (Central Processing Unit), or setting QoS (Quality of Service).
[0022] When the matching policy table index base address is determined based on the designated characteristic information of the message, the policy offset value corresponding to the message also needs to be determined.
[0023] The policy offset value is used to locate the policy item in the policy table to determine the specific processing strategy for the message.
[0024] Optionally, the policy offset value corresponding to the message may be determined based on one or more dynamic policy factors such as the port status, the link status, the timing processing result of the message, the counting processing result, and the like.
[0025] Accordingly, for messages that match the policy table index base address, corresponding information such as port status or link status, or message timing processing results or counting processing results can be obtained based on the preset dynamic policy factors, and the policy offset value corresponding to the message can be determined based on the obtained information.
[0026] For example, assuming that the preset dynamic policy factor is a timing processing result of a message, the message can be timed to obtain a timing processing result corresponding to the message, and then, based on the timing processing result corresponding to the message, a policy offset value corresponding to the message can be determined.
[0027] Process 120: Determine the target policy item based on the policy table index base address and the policy offset value.
[0028] In the embodiment of the present disclosure, the starting position of the corresponding policy table can be determined based on the policy table index base address, and the policy item corresponding to the message, ie, the target policy item, can be determined in the policy table based on the policy offset value.
[0029] Process 130: Perform policy processing on the message based on the target policy item.
[0030] In the embodiment of the present disclosure, when the target policy item corresponding to the message is determined, policy processing can be performed on the message based on the target policy item.
[0031] For example, assuming that the processing policy in the target policy item corresponding to the message is to discard the message, the message can be discarded.
[0032] For another example, assuming that the processing policy in the target policy item corresponding to the message is to redirect the message, the message can be redirected.
[0033] In the example shown in Figure 1, by setting a policy table including multiple policy items, for the received message, the matching policy table index base address can be determined based on the specified feature address of the message, and the policy offset value can be determined. Based on the policy table index base address and the policy offset value, the target policy item corresponding to the message can be determined, and the message can be policy-processed based on the target policy item, thereby improving the flexibility of message processing.
[0034] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present disclosure, the technical solutions provided by the embodiments of the present disclosure are described below with reference to specific examples.
[0035] To increase message processing flexibility, a policy table can include multiple policy items, and different policy items correspond to different processing policies. For any message that matches the policy table, the policy offset value corresponding to the message is determined. Based on the policy offset value, the corresponding policy item is determined in the policy table, and policy processing is performed on the message based on the policy item.
[0036] Taking the policy table shown in FIG2 as an example, it is assumed that the network device provides multiple policy tables, each policy table includes multiple policy table items, each policy table item in the same policy table corresponds to a different offset value, and the processing policies included in different policy table items are not exactly the same.
[0037] Please refer to FIG3 , which is an example of a policy matching process provided in an embodiment of the present disclosure.
[0038] As shown in FIG. 3 , for a received message 30 , the network device may obtain specified feature information of the message 30 and search the TCAM 310 for a matching policy table index base address 301 and a timer index 302 .
[0039] When a matching policy index base address 301 and timer index 302 are found, a timer processing unit (Timer Process) 320 may determine a corresponding timer based on the timer index 302 and use the timer to determine a timing processing result 303 of the message.
[0040] For example, a timing cycle of a timer may be pre-sliced, and different slices may correspond to different timing processing results.
[0041] Taking the timing period as 24 hours as an example, the corresponding output from 0 to 8 o'clock is 0; the corresponding output from 8 to 18 o'clock is 1; and the corresponding output from 18 to 24 o'clock is 2.
[0042] Taking a timing period of 20 seconds as an example, the corresponding output from 0 to 10 seconds is 0; the corresponding output from 11 to 20 seconds is 1.
[0043] The policy mapping unit (Policy Map) 330 can determine the policy offset value 304 based on the timing processing result 303 of the message, and then the policy execution unit (Policy Process) 340 can determine the target policy item corresponding to the message based on the matched policy table index base address 301 and the determined policy offset value 304, and perform policy processing on the message based on the target policy item.
[0044] For example, suppose there is a Web service that requires normal access from 0:00 to 8:00, access is prohibited from 8:00 to 18:00, and speed-restricted access is allowed from 18:00 to midnight. For the data flow accessing the Web service, policy table 1 in Figure 2 can be assigned to it, and timer 1 can be assigned. The timing processing logic of the timer refers to the example with a timing period of 24 hours.
[0045] For a received message, the network device may determine a matching policy table index base address and a timer index based on the destination IP address and destination port of the message.
[0046] For the message accessing the Web service, the matched policy table index base address points to the starting position of policy table 1 in FIG2 , and the matched timer index points to timer 1 .
[0047] The timer processing unit 320 may determine a timing processing result of the message using timer 1. The policy mapping unit 330 may determine a policy offset value corresponding to the message based on the timing processing result.
[0048] Among them, when the current system time is between 0:00 and 8:00, the timer output result is 0, and the corresponding policy offset value is 0; when the current system time is between 8:00 and 18:00, the timer output result is 1, and the corresponding policy offset value is 1; when the current system time is between 18:00 and 24:00, the timer output result is 2, and the corresponding policy offset value is 2.
[0049] The policy execution unit 340 may determine the corresponding target policy item based on the matched policy table index base address and the determined policy offset value, and further determine the corresponding processing policy.
[0050] In this example, if the current system time is between 00:00 and 8:00, the policy execution unit 340 does not need to perform special processing on the message, and the network device forwards it normally. If the current system time is between 8:00 and 18:00, the policy execution unit 340 can discard the message. If the current system time is between 18:00 and 24:00, the policy execution unit 340 can limit the rate of the message. This allows normal access to the web service from 00:00 to 8:00, prohibition from 8:00 to 18:00, and limited access from 18:00 to 24:00.
[0051] Please refer to FIG4 , which is another example of a policy matching process provided in an embodiment of the present disclosure.
[0052] As shown in FIG. 4 , for a received message 40 , the network device may obtain designated feature information of the message and query a matching policy table index base address 401 and a counter index 402 in a TCAM 410 .
[0053] When a matching policy index base address 401 and counter index 402 are found, a count processing unit (Count Process) 420 may determine a corresponding counter based on the counter index 402 and use the counter to determine a count processing result 403 of the message.
[0054] The counter can count packets in multiple dimensions and obtain the counting results.
[0055] The multiple dimensions may include time, color, forwarding type, etc.
[0056] For example, the counting processing results may include the total number of packets and bytes, the number of broadcast forwarded packets and bytes, the number of packets and bytes in a certain unit time, the average rate in a certain unit time, etc.
[0057] The counter can be bound to a port, a tunnel, or a forwarding queue, etc., for counting the port, tunnel, or forwarding queue; or the counter can also be bound to a policy engine.
[0058] For example, you can calculate the average port rate over 10 seconds.
[0059] It should be noted that, considering that the counting processing unit also needs to use time information when performing rate statistics through a counter, a timer can be set for the counting processing unit to be used for statistics of rate, or the number of messages or bytes per unit time.
[0060] The policy mapping unit (Policy Map) 430 can determine the policy offset value 404 based on the counting processing result 403 of the message, and then the policy execution unit (Policy Process) 440 can determine the target policy item corresponding to the message based on the matched policy table index base address 401 and the determined policy offset value 404, and perform policy processing on the message based on the target policy item.
[0061] For example, suppose there is a service flow A that requires sending one packet to the CPU for every 20 packets it sends, for example, the 20th packet. For service flow A, its quintuple information can be bound to policy table 2 in Figure 2 and assigned counter 1. Counter 1's counting logic includes the following: cyclically counting between 0 and 20, outputting 0 if the count result is 20; otherwise, outputting 1; or, if the count result is an integer multiple of 20, outputting 0; otherwise, outputting 1.
[0062] For the message of the service flow A, the matched policy table index base address points to the starting position of the policy table 2 in FIG2 , and the matched counter index points to counter 1 .
[0063] The counting processing unit 420 may determine a counting processing result of the message using the counter 1. The policy mapping unit 430 may determine a policy offset value corresponding to the message based on the counting processing result.
[0064] When the count result of the counter is 20, the counter outputs 0, and the corresponding policy offset value is 0; when the count result of the counter is not 20, the counter outputs 1, and the corresponding policy offset value is 1.
[0065] The policy execution unit 440 may determine the corresponding target policy item based on the matched policy table index base address and the determined policy offset value, and further determine the corresponding processing policy.
[0066] In this example, for packets from service flow A with a corresponding count of 20, the target policy item matching the target policy item specifies "Send to CPU." Policy execution unit 440 can send these packets to the CPU for processing. For packets from service flow A with a count other than 20, the target policy item matching the target policy item specifies "No Processing." Policy execution unit 440 does not need to perform any special processing on these packets, and the network device forwards them normally. This allows service flow A to send one packet to the CPU for every 20 packets it sends.
[0067] Please refer to FIG5 , which is another example of a policy matching process provided in an embodiment of the present disclosure.
[0068] As shown in FIG. 5 , for a received message 50 , the network device may obtain specified feature information of the message 50 and search the TCAM 510 for a matching policy table index base address 501 , a timer index 502 , and a counter index 503 .
[0069] When the matching policy table index base address 501, timer index 502, and counter index 503 are queried, on the one hand, the timer processing unit (Timer Process) 520 can determine the corresponding timer based on the timer index 502, and use the timer to determine the timing processing result 504 of the message.
[0070] For example, a timing cycle of a timer may be pre-sliced, and different slices may correspond to different timing processing results.
[0071] Taking the timing period as 24 hours as an example, the corresponding output from 0 to 8 o'clock is 0; the corresponding output from 8 to 18 o'clock is 1; and the corresponding output from 18 to 24 o'clock is 2.
[0072] Taking a timing period of 20 seconds as an example, the corresponding output from 0 to 10 seconds is 0; the corresponding output from 11 to 20 seconds is 1.
[0073] On the other hand, the counter processing unit (Count Process) 530 may determine the corresponding counter based on the counter index 503 and use the counter to determine the counting processing result 505 of the message.
[0074] The counter can count packets in multiple dimensions and obtain the counting results.
[0075] The multiple dimensions may include time, color, forwarding type, etc.
[0076] For example, the counting processing results may include the total number of packets and bytes, the number of broadcast forwarded packets and bytes, the number of packets and bytes in a certain unit time, the average rate in a certain unit time, etc.
[0077] The counter can be bound to a port, tunnel, or forwarding queue to count the number of packets received by the port, tunnel, or forwarding queue.
[0078] It should be noted that, in the embodiments of the present disclosure, the execution order of the timing process and the counting process is not limited. The timing process may be executed first and then the counting process; or the counting process may be executed first and then the timing process.
[0079] The policy mapping unit (Policy Map) 430 can determine the policy offset value 506 based on the timing processing result 504 and the counting processing result 505 of the message. Then, the policy execution unit (Policy Process) 440 can determine the target policy item corresponding to the message based on the matched policy table index base address 501 and the determined policy offset value 506, and perform policy processing on the message based on the target policy item.
[0080] For example, suppose there is a service flow B, which requires that from 0 to 8 o'clock, if the traffic rate of port 1 is between 0 and 1 Gbps, the traffic is forwarded through port 1; if the traffic rate of port 1 exceeds 1 Gbps, the message is rate-limited; from 8 to 18 o'clock, if the traffic rate of port 1 is between 0 and 1 Gbps, the traffic is forwarded through port 1; if the traffic rate of port 1 exceeds 1 Gbps, the message is redirected to port 2 for forwarding; from 18 to 24 o'clock, if the traffic rate of port 1 is between 0 and 1 Gbps, the traffic is forwarded through port 1; if the traffic rate of port 1 exceeds 1 Gbps, the message is discarded.
[0081] For the service flow B, the five-tuple information of the service flow B can be bound to the policy table 3 in Figure 6, and timer 2 and counter 2 are allocated.
[0082] The timing processing logic of timer 2 includes: 0 to 8 o'clock, the corresponding output is 0; 8 to 18 o'clock, the corresponding output is 1; 18 to 24 o'clock, the corresponding output is 2.
[0083] The counting processing logic of the counter 2 includes: when the traffic rate of the port 1 is between 0 and 1 Gbps, the corresponding output is 0; when the traffic rate of the port 1 exceeds 1 Gbps, the corresponding output is 1.
[0084] For the message of service flow B, the matched policy table index base address points to the starting position of policy table 3 in Figure 6, the matched timer index points to timer 2, and the matched counter index points to counter 2.
[0085] The timer processing unit 520 may use the timer 2 to determine the counting processing result of the message.
[0086] Among them, when the current system time is between 0 and 8 o'clock, the output result of timer 2 is 0; when the current system time is between 8 and 18 o'clock, the output result of timer 2 is 1; when the current system time is between 18 and 24 o'clock, the output result of timer 2 is 2.
[0087] The counting processing unit 530 may use the counter 2 to determine the counting processing result of the message.
[0088] When the traffic rate of port 1 is between 0 and 1 Gbps, the output result of counter 2 is 0; when the traffic rate of port 1 exceeds 1 Gbps, the output result of counter 2 is 1.
[0089] The policy mapping unit 540 may determine a policy offset value corresponding to the message based on the timing processing result and the counting processing result.
[0090] In one example, the upper bit of the policy offset value may be determined based on a timing processing result of the message, and the lower bit of the policy offset value may be determined based on a counting processing result of the message.
[0091] For example, when the output result of the timer is 1 and the output result of the counter is 0, the corresponding policy offset value may be 10; when the output result of the timer is 0 and the output result of the counter is 1, the corresponding policy offset value may be 01.
[0092] In another example, the lower bit of the policy offset value may be determined based on a timing processing result of the message, and the upper bit of the policy offset value may be determined based on a counting processing result of the message.
[0093] For example, when the output result of the timer is 1 and the output result of the counter is 0, the corresponding policy offset value may be 01; when the output result of the timer is 0 and the output result of the counter is 1, the corresponding policy offset value may be 10.
[0094] In this example, it is taken that the upper bit of the policy offset value is determined based on the timing processing result of the message, and the lower bit of the policy offset value is determined based on the counting processing result of the message.
[0095] The policy mapping unit 540 may determine the upper bits of the policy offset value based on the timing processing result of the timer 2 , and determine the lower bits of the policy offset value based on the counting processing result of the counter 2 .
[0096] For example, if the output result of timer 2 is 0, the corresponding policy offset value is 00; if the output result of timer 2 is 1, the corresponding policy offset value is 10; if the output result of timer 2 is 2, the corresponding policy offset value is 20; if the output result of timer 2 is 0, the corresponding policy offset value is 1; if the output result of timer 2 is 1, the corresponding policy offset value is 11; if the output result of timer 2 is 2, the corresponding policy offset value is 21.
[0097] The policy execution unit 550 may determine the corresponding target policy item based on the matched policy table index base address and the determined policy offset value, and further determine the corresponding processing policy.
[0098] In this example, when the policy offset value is 00, the processing policy in the target policy item it matches is no processing, and the policy execution unit 550 does not need to perform special processing on the message and forwards it normally through port 1; when the policy offset value is 01, the processing policy in the target policy item it matches is rate limit processing, and the policy execution unit 550 can limit the rate of the message; when the policy offset value is 10, the processing policy in the target policy item it matches is no processing, and the policy execution unit 550 does not need to perform special processing on the message and forwards it normally through port 1; when the policy offset value is 11, the processing policy in the target policy item it matches is redirection to port 2 for forwarding, and the policy execution unit 550 can redirect the message to port 2 for forwarding; when the policy offset value is 20, the processing policy in the target policy item it matches is no processing, and the policy execution unit 550 does not need to perform special processing on the message and forwards it normally through port 1; when the policy offset value is 21, the processing policy in the target policy item it matches is discarding the message, and the policy execution unit 550 can discard the received message.
[0099] It should be noted that, in the embodiment of the present disclosure, the basis for determining the policy offset value corresponding to the message is not limited to the above-mentioned timing processing result and / or counting processing result, and it may also include other basis, such as port status, link status, etc.
[0100] For example, for a business flow, a main forwarding port and a backup forwarding port are pre-set. When the main forwarding port is normal, the messages of the business flow are forwarded through the main forwarding port; when the main forwarding port fails, the messages of the business flow are forwarded through the backup forwarding port. Based on this, different policy offset values can be determined according to the status of the main forwarding port, and then different processing strategies for the business flow can be determined.
[0101] Figure 7 is a schematic diagram of a message processing device according to an embodiment of the present disclosure. The device 70 includes a plurality of network interfaces 71 and a switching device 72 provided with a storage medium; the storage medium is used to store a policy table.
[0102] The switching device 72 may be implemented by hardware (eg, a processor of an application specific integrated circuit (ASIC)), or by a combination of software and hardware, which is not specifically limited in the embodiment of the present disclosure.
[0103] For example, the switching device 72 may be a switching chip, and the storage medium in the switching chip may be a TCAM. The TCAM stores at least one policy table. A policy table includes multiple different policy items, and the processing policies corresponding to different policy items are not completely the same.
[0104] The switching device 72 may be configured to perform the following processes:
[0105] For a message received by any network interface, a matching policy table index base address is determined based on the specified characteristic information of the message; wherein the policy table index base address points to the starting position of the policy table, and the policy table includes multiple policy items; a policy offset value is determined; based on the policy table index base address and the policy offset value, a target policy is queried in a storage medium; and policy processing is performed on the message based on the target policy.
[0106] In an example, the switching device 72 further performs the following processing: determining a matching timer index based on the specified feature information of the message.
[0107] The switching device 72 may specifically perform the following processing: determining a corresponding timer based on the timer index; determining a timing processing result of the message using the timer; and determining a policy offset value based on the timing processing result of the message.
[0108] In one example, the switching device 72 further performs the following processing: determining a matching counter index based on the specified characteristic information of the message.
[0109] The switching device 72 may specifically perform the following processing: determining a corresponding counter based on the counter index; determining a counting processing result of the message using the counter; and determining a policy offset value based on the counting processing result of the message.
[0110] In one example, the switching device 72 further performs the following processing: determining a matching timer index and counter index based on the specified feature information of the message.
[0111] The switching device 72 can specifically perform the following processing: determine the corresponding timer based on the timer index; and, based on the counter index, determine the corresponding counter; use the timer to determine the timing processing result of the message; and, use the counter to determine the counting processing result of the message; determine the policy offset value based on the timing processing result of the message and the timing processing result.
[0112] In one example, the switching device 72 may specifically perform the following processing: determine the high bit of the policy offset value based on the timing processing result of the message, and determine the low bit of the policy offset value based on the counting processing result of the message; or determine the high bit of the policy offset value based on the counting processing result of the message, and determine the low bit of the policy offset value based on the timing processing result of the message.
[0113] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
Claims
1. A message processing method, characterized in that: include: Based on the specified characteristic information of the message, determine the matching policy table index base address; wherein the policy table index base address points to the starting position of the policy table, and the policy table includes multiple policy items; Determine a policy offset value; Determine a target policy item based on the policy table index base address and the policy offset value; The message is subjected to policy processing based on the target policy item.
2. The method according to claim 1, characterized in that: The method further comprises: Determining a matching timer index based on the specified characteristic information of the message; The determining of the policy offset value includes: Based on the timer index, determining a corresponding timer; Determine the timing processing result of the message by using the timer; A policy offset value is determined based on a timing processing result of the message.
3. The method according to claim 1, characterized in that: The method further comprises: Determining a matching counter index based on the specified characteristic information of the message; The determining of the policy offset value includes: Based on the counter index, determining a corresponding counter; Determine the counting result of the message by using the counter; A policy offset value is determined based on a counting processing result of the message.
4. The method according to claim 1, characterized in that: The method further comprises: Determine a matching timer index and a counter index based on the specified characteristic information of the message; The determining of the policy offset value includes: Based on the timer index, determining a corresponding timer; and, based on the counter index, determining a corresponding counter; Determine the timing processing result of the message by using the timer; and determine the counting processing result of the message by using the counter; A policy offset value is determined based on a timing processing result of the message and the timing processing result.
5. The method according to claim 4, characterized in that The determining the policy offset value based on the timing processing result of the message and the timing processing result includes: Determine the high bit of the policy offset value based on the timing processing result of the message, and determine the low bit of the policy offset value based on the counting processing result of the message; or, The high bit of the policy offset value is determined based on the counting processing result of the message, and the low bit of the policy offset value is determined based on the timing processing result of the message.
6. A message processing device, characterized in that: The device includes a plurality of network interfaces and a switching device provided with a storage medium; wherein the storage medium is used to store a policy table; The switching device is used for: For a message received by any network interface, a matching policy table index base address is determined based on the specified characteristic information of the message; wherein the policy table index base address points to the starting position of the policy table, and the policy table includes multiple policy items; Determine a policy offset value; Based on the policy table index base address and the policy offset value, query and determine the target policy in the storage medium; The message is subjected to policy processing based on the target policy.
7. The device according to claim 6, characterized in that The switching device is further used for: Determining a matching timer index based on the specified characteristic information of the message; The switching device is specifically used for: Based on the timer index, determining a corresponding timer; Determine the timing processing result of the message by using the timer; A policy offset value is determined based on a timing processing result of the message.
8. The device according to claim 6, characterized in that The switching device is further used for: Determining a matching counter index based on the specified characteristic information of the message; The switching device is specifically used for: Based on the counter index, determining a corresponding counter; Determine the counting result of the message by using the counter; A policy offset value is determined based on a counting processing result of the message.
9. The device according to claim 6, characterized in that The switching device is further used for: Determine a matching timer index and a counter index based on the specified characteristic information of the message; The switching device is specifically used for: Based on the timer index, determining a corresponding timer; and, based on the counter index, determining a corresponding counter; Using the timer, determining the timing processing result of the message; and using the counter, determining the The counting processing result of the above message; A policy offset value is determined based on a timing processing result of the message and the timing processing result.
10. The device according to claim 9, characterized in that The switching device is specifically used for: Determine the high bit of the policy offset value based on the timing processing result of the message, and determine the low bit of the policy offset value based on the counting processing result of the message; or, The high bit of the policy offset value is determined based on the counting processing result of the message, and the low bit of the policy offset value is determined based on the timing processing result of the message.
Citation Information
Patent Citations
Secondary session query function based filtering and distribution device and method thereof
CN103179109A
Gateway management method and device
CN106330473A
Field processor for a network device
US20050135399A1