Dynamic allocation management method for exchange chip resources

By standardizing the resource status, service flow characteristics, and network environment information of the switching chip, the resource supply and demand relationship is constructed and configuration instructions are generated, which solves the problem of low resource utilization of the switching chip and realizes dynamic adjustment and optimized allocation of resources.

CN122069244APending Publication Date: 2026-05-19WUHAN FS COM TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
WUHAN FS COM TECHNOLOGY CO LTD
Filing Date
2026-04-22
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

In existing technologies, the resource allocation method of switching chips is difficult to coordinate with changes in real-time resource status, service flow characteristics and network environment, resulting in poor resource utilization, idle resources or insufficient resources during sudden service interruptions.

Method used

By standardizing the resource status, service flow characteristics, and network environment information of the switching chip, a target status dataset is formed. Based on this dataset, service flow classification and identification and resource constraint information determination are performed, resource supply and demand relationships are constructed, resource configuration instructions are generated, and the switching chip is controlled to perform adjustments. Strategy correction is then performed in conjunction with operation monitoring information.

Benefits of technology

It enables dynamic adjustment of switching chip resource allocation, improves resource utilization, reduces resource idleness and shortage, and adapts to changes in business and network environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122069244A_ABST
    Figure CN122069244A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data communication networks, in particular to a switching chip resource dynamic allocation management method. The method comprises the following steps: normalizing resource state information, service flow feature information and network environment information of a switch chip to obtain a target state data set; based on the target state data set, classifying and identifying the service flow, and determining service level information and resource constraint information corresponding to each type of service flow to obtain a target service characterization result; constructing a resource supply-demand relationship based on the target service characterization result and the resource state information, and performing analysis in combination with the service flow feature information to obtain a target allocation strategy; generating a resource configuration instruction based on the target allocation strategy, and controlling the switching chip to execute; and obtaining the executed operation monitoring information, and correcting the target allocation strategy based on the operation monitoring information to update a subsequent resource allocation instruction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data communication network technology, and in particular to a method for dynamic allocation and management of switching chip resources. Background Technology

[0002] Switching chips are core processing components in data communication networks, undertaking functions such as data forwarding, queue scheduling, table matching, and quality of service assurance. Their internal resources typically include cache resources, queue resources, forwarding table resources, and port bandwidth resources. With the increasing variety of network services, traffic exhibits characteristics of enhanced volatility, increased bursts, and the coexistence of differentiated service demands. During operation, switching chips not only need to cope with the different resource usage patterns of various service flows but also need to adapt to external network environment factors such as link status changes and topology changes. Therefore, the resource allocation method of switching chips has a significant impact on the operational capabilities of network devices. In existing technologies, switching chip resource allocation mostly adopts a static allocation method under preset rules or a simple adjustment method based on fixed threshold triggers. These methods typically divide resources according to pre-defined service models, making it difficult to coordinate processing based on the real-time resource status of the switching chip, service flow characteristics, and changes in the network environment. This results in resources being idle when some service loads are low, while resources may be insufficient when bursts of traffic or high-priority traffic arrive, leading to poor resource utilization of the switching chip. Therefore, how to improve the resource utilization of switching chips has become an urgent technical problem to be solved. Summary of the Invention

[0003] The main purpose of this application is to provide a dynamic allocation and management method for switching chip resources, which aims to solve the technical problem of how to improve the resource utilization of switching chips.

[0004] To achieve the above objectives, this application provides a method for dynamic allocation and management of switching chip resources, the method comprising the following steps: The resource status information, service flow characteristic information, and network environment information of the switching chip are standardized to obtain the target status dataset; Based on the target state dataset, the business flows are classified and identified, and the business level information and resource constraint information corresponding to each type of business flow are determined to obtain the target business representation results. Based on the target business representation results and the resource status information, a resource supply and demand relationship is constructed, and the resource supply and demand relationship is analyzed in conjunction with the business flow characteristic information to obtain a target allocation strategy; Based on the target allocation strategy, a resource configuration instruction for the switching chip is generated, and the switching chip is controlled to execute the resource configuration instruction to complete the resource allocation adjustment; The system obtains operational monitoring information after executing the resource configuration instruction, and modifies the target allocation strategy based on the operational monitoring information to update subsequent resource configuration instructions for the switching chip.

[0005] In one embodiment, the step of normalizing the resource status information, service flow characteristic information, and network environment information of the switching chip to obtain the target status dataset includes: The system acquires resource status information, service flow characteristic information, and network environment information of the switching chip. The resource status information includes buffer queue occupancy information, queue scheduling information, table entry occupancy information, and port load information. The service flow characteristic information includes service type identification information, traffic behavior information, and service demand information. The network environment information includes network topology status information and link status information. The data in the resource status information, the service flow feature information, and the network environment information are processed by field mapping, format unification, and time alignment. The aligned data is then processed by anomaly identification and invalid data removal to obtain a standard status information set. The data in the standard state information set are linked and integrated based on preset association rules to generate the corresponding target state dataset.

[0006] In one embodiment, the step of classifying and identifying business flows based on the target state dataset, and determining the business level information and resource constraint information corresponding to each type of business flow to obtain the target business representation result includes: Based on the business flow identification information, traffic behavior information and service demand information in the target state dataset, the classification and discrimination features corresponding to each business flow are extracted, and the business flows are classified based on the classification and discrimination features to obtain the business category information corresponding to each business flow. Based on the business category information and preset business rules, the business level information corresponding to each business flow is determined, and the resource constraint information corresponding to each business flow is obtained by associating the business level information with the service requirement conditions corresponding to each business flow. The business category information, the business level information, and the resource constraint information are correlated and integrated to obtain the target business representation result.

[0007] In one embodiment, the step of constructing a resource supply and demand relationship based on the target service characterization results and the resource status information, and analyzing the resource supply and demand relationship in conjunction with the service flow characteristic information to obtain a target allocation strategy, includes: Based on the service level information and resource constraint information in the target service representation results, the target resource requirements corresponding to various service flows are determined, the allocatable resource status related to various service flows is determined based on the resource status information, and the resource supply and demand relationship between various service flows and switching chip resources is constructed. Based on the business flow characteristic information, the resource supply and demand relationship is analyzed to determine the traffic change characteristics, resource demand change trends and resource gaps corresponding to various business flows, and to obtain resource analysis results corresponding to various business flows. Based on the resource supply and demand relationship and the resource analysis results, the resource allocation weights, resource adjustment order and resource allocation methods corresponding to various business flows are determined, and the target allocation strategy is determined according to the resource allocation weights, resource adjustment order and resource allocation methods.

[0008] In one embodiment, the step of generating resource configuration instructions for the switching chip based on the target allocation strategy and controlling the switching chip to execute the resource configuration instructions to complete the resource allocation adjustment includes: Based on the target allocation strategy, the target resource adjustment content corresponding to various service flows is determined, and the target resource adjustment content is converted into a set of instruction parameters corresponding to the switching chip resource control items; Based on the set of instruction parameters, a resource configuration instruction for the switching chip is generated, and the resource configuration instruction is sent to the switching chip through the management interface corresponding to the switching chip. The switching chip is controlled to update the corresponding resource control items based on the resource configuration instructions in order to complete the resource allocation adjustment.

[0009] In one embodiment, the step of obtaining operational monitoring information after executing the resource configuration instruction and modifying the target allocation strategy based on the operational monitoring information to update subsequent resource configuration instructions for the switching chip includes: The system acquires the resource operation status information, service bearer status information, and link transmission status information of the switching chip after executing the resource configuration instruction, and forms operation monitoring information corresponding to the resource configuration instruction. Based on the operational monitoring information, the resource allocation execution status corresponding to the target allocation strategy and the status changes of various business flows are determined, and the deviation relationship between the target allocation strategy and the current operational status is identified to obtain the basis for strategy correction. Based on the aforementioned strategy correction criteria, the resource allocation weights, resource adjustment order, and resource allocation methods in the target allocation strategy are corrected to generate an updated target allocation strategy. Subsequently, the resource configuration instructions for the switching chip are updated based on the updated target allocation strategy.

[0010] Furthermore, to achieve the above objectives, this application also proposes a dynamic allocation and management device for switching chip resources, the dynamic allocation and management device for switching chip resources comprising: The information processing module is used to standardize the resource status information, service flow characteristic information and network environment information of the switching chip to obtain the target status dataset. The classification and recognition module is used to classify and recognize the business flow based on the target state dataset, and determine the business level information and resource constraint information corresponding to each type of business flow to obtain the target business representation result. The supply and demand analysis module is used to construct the resource supply and demand relationship based on the target business characterization results and the resource status information, and to analyze the resource supply and demand relationship in combination with the business flow characteristic information to obtain the target allocation strategy; The resource allocation module is used to generate resource configuration instructions for the switching chip based on the target allocation strategy, and control the switching chip to execute the resource configuration instructions to complete the resource allocation adjustment; The instruction update module is used to obtain the operation monitoring information after the resource configuration instruction is executed, and to modify the target allocation strategy based on the operation monitoring information in order to update the subsequent resource configuration instructions for the switching chip.

[0011] In addition, to achieve the above objectives, this application also proposes a switching chip resource dynamic allocation management device, the device comprising: a memory, a processor, and a switching chip resource dynamic allocation management program stored in the memory and executable on the processor, the switching chip resource dynamic allocation management program being configured to implement the steps of the switching chip resource dynamic allocation management method described above.

[0012] In addition, to achieve the above objectives, this application also proposes a storage medium storing a dynamic allocation management program for switching chip resources, wherein when the switching chip resource dynamic allocation management program is executed by a processor, it implements the steps of the dynamic allocation management method for switching chip resources as described above.

[0013] In addition, to achieve the above objectives, this application also proposes a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the dynamic allocation and management method for switching chip resources as described above.

[0014] This application obtains a target status dataset by standardizing the resource status information, service flow characteristic information, and network environment information of the switching chip. Based on the target status dataset, service flows are classified and identified, and the service level information and resource constraint information corresponding to each type of service flow are determined to obtain the target service representation result. Based on the target service representation result and resource status information, a resource supply and demand relationship is constructed, and the resource supply and demand relationship is analyzed in conjunction with the service flow characteristic information to obtain a target allocation strategy. Based on the target allocation strategy, resource configuration instructions for the switching chip are generated, and the switching chip is controlled to execute the resource configuration instructions to complete the resource allocation adjustment. Operation monitoring information after the execution of the resource configuration instructions is obtained, and the target allocation strategy is corrected based on the operation monitoring information to update subsequent resource configuration instructions for the switching chip. This application standardizes the resource status information, service flow characteristic information, and network environment information of the switching chip to form a target status dataset for unified analysis. Based on the target status dataset, service flows are classified and identified to determine the service level information and resource constraint information corresponding to each type of service flow, thereby establishing a differentiated resource allocation basis for different service flows. On this basis, the resource supply and demand relationship is constructed by combining the target service characterization results and resource status information, and the resource supply and demand relationship is analyzed in conjunction with service flow characteristic information to obtain a target allocation strategy. Based on this, resource configuration instructions are generated and the switching chip is controlled to perform resource allocation adjustments. At the same time, after execution, operation monitoring information is obtained to revise the target allocation strategy and update subsequent resource configuration instructions. This enables the switching chip resource allocation to be continuously adjusted according to resource supply, service demand differences, and changes in operation status, thereby improving the resource utilization rate of the switching chip. Attached Figure Description

[0015] Figure 1 This is a flowchart illustrating the first embodiment of the dynamic allocation and management method for exchange chip resources in this application. Figure 2 This is a schematic diagram of a sub-process in the second embodiment of the dynamic allocation and management method for exchange chip resources in this application; Figure 3 This is a schematic diagram of a sub-process in the third embodiment of the dynamic allocation and management method for exchange chip resources in this application; Figure 4 This is a schematic diagram of the module structure of the dynamic allocation and management device for switching chip resources according to an embodiment of this application; Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the dynamic allocation and management method of switching chip resources in the embodiments of this application.

[0016] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0017] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application.

[0018] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0019] It should be noted that the switching chip is a core processing component in data communication networks, undertaking functions such as data forwarding, queue scheduling, table matching, and quality of service assurance. Its internal resources typically include cache resources, queue resources, forwarding table resources, and port bandwidth resources. With the increasing variety of network services, traffic exhibits characteristics of increased volatility, increased bursts, and the coexistence of differentiated service demands. During operation, the switching chip not only needs to cope with the different resource usage patterns of different service flows but also needs to adapt to external network environment factors such as link status changes and topology changes. Therefore, the resource allocation method of the switching chip has a significant impact on the operational capabilities of network devices. In existing technologies, the resource allocation of switching chips mostly adopts a static allocation method under preset rules or a simple adjustment method based on fixed threshold triggers. These methods typically divide resources according to a pre-defined service model, making it difficult to coordinate processing based on the real-time resource status of the switching chip, service flow characteristics, and changes in the network environment. This results in resources being idle when some service loads are low, while resources may be insufficient when bursts of traffic or high-priority traffic arrive, leading to poor resource utilization of the switching chip. Therefore, how to improve the resource utilization rate of switching chips has become an urgent technical problem to be solved.

[0020] The main solution of this application is as follows: The resource status information, service flow characteristic information, and network environment information of the switching chip are standardized to obtain a target status dataset; based on the target status dataset, service flows are classified and identified, and the service level information and resource constraint information corresponding to each type of service flow are determined to obtain target service representation results; based on the target service representation results and resource status information, a resource supply and demand relationship is constructed, and the resource supply and demand relationship is analyzed in conjunction with the service flow characteristic information to obtain a target allocation strategy; based on the target allocation strategy, resource configuration instructions for the switching chip are generated, and the switching chip is controlled to execute the resource configuration instructions to complete the resource allocation adjustment; operational monitoring information after the execution of the resource configuration instructions is obtained, and the target allocation strategy is corrected based on the operational monitoring information to update subsequent resource configuration instructions for the switching chip.

[0021] This application standardizes the resource status information, service flow characteristic information, and network environment information of the switching chip to form a target status dataset for unified analysis. Based on the target status dataset, service flows are classified and identified to determine the service level information and resource constraint information corresponding to each type of service flow, thereby establishing a differentiated resource allocation basis for different service flows. On this basis, the resource supply and demand relationship is constructed by combining the target service characterization results and resource status information, and the resource supply and demand relationship is analyzed in conjunction with service flow characteristic information to obtain a target allocation strategy. Based on this, resource configuration instructions are generated and the switching chip is controlled to perform resource allocation adjustments. At the same time, after execution, operation monitoring information is obtained to revise the target allocation strategy and update subsequent resource configuration instructions. This enables the switching chip resource allocation to be continuously adjusted according to resource supply, service demand differences, and changes in operation status, thereby improving the resource utilization rate of the switching chip.

[0022] It should be noted that the executing entity of the method in this embodiment can be a computing service device with data processing, network communication, and program execution functions, or it can be the aforementioned dynamic allocation and management device for switching chip resources with the same or similar functions. This embodiment and the following embodiments will be described using a dynamic allocation and management device for switching chip resources as an example.

[0023] Based on this, a first embodiment of the dynamic allocation and management method for switching chip resources in this application is proposed. Please refer to [link / reference]. Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the dynamic allocation and management method for exchange chip resources in this application.

[0024] In this embodiment, the method includes the following steps: S1: The resource status information, service flow characteristic information and network environment information of the switching chip are standardized to obtain the target status dataset; S2: Based on the target state dataset, classify and identify the business flows, and determine the business level information and resource constraint information corresponding to each type of business flow to obtain the target business representation result; It should be noted that resource status information refers to data characterizing the current operational status of various available resources of the switching chip. Service flow characteristic information refers to data characterizing the attributes and transmission requirements of each service flow. Network environment information refers to data characterizing the external operating environment of the network in which the switching chip is located. Normalization processing refers to the process of unifying multiple types of information from different sources, in different formats, and with different time bases. Service level information refers to the level description information determined based on the service flow category and its service requirements. Resource constraint information refers to the resource usage conditions or restrictions corresponding to various service flows. Target service characterization result refers to the result data formed after corresponding and integrating the service flow category information, service level information, and resource constraint information.

[0025] Specifically, firstly, the various types of raw information acquired from the switching chip side and the network side are uniformly organized. This involves first collecting current resource status information of the switching chip, such as the occupancy of buffers, queues, entries, and port resources; simultaneously collecting service flow characteristic information corresponding to service flows, such as service type identifiers, traffic behavior characteristics, service requirement parameters, and service flow identification information; and further collecting network environment information related to the current operation of the switching chip, such as topology changes and link status. Since the above information comes from different sources, has different expression formats, and may update at different times, it needs to be standardized to ensure uniformity in field expression, data format, time base, and validity judgment. The processed information is then integrated to form a target status dataset for subsequent analysis. In this way, the originally scattered resource-side, service-side, and environmental-side information are consolidated onto a single analytical basis, providing a unified input for subsequent service flow identification.

[0026] Furthermore, after obtaining the target state dataset, the service flows are classified and identified based on this dataset. Specifically, different service flows are categorized according to the service flow type, traffic volume, burst intensity, packet distribution characteristics, and service demand characteristics reflected in the target state dataset, thus determining the service category to which each service flow belongs. Then, combined with the service demand corresponding to each service flow, the corresponding service level information is determined for each type of service flow, and further, the resource constraint information corresponding to each type of service flow is determined. Here, the resource constraint information can be understood as a description of the constraints imposed on resource usage conditions by each type of service flow, such as constraints emphasizing latency, throughput, or transmission stability. Finally, the classification and identification results, service level information, and resource constraint information are integrated to obtain the target service representation results, thereby forming a structured description of the service attributes and resource demand attributes of each type of service flow.

[0027] By first standardizing the resource status information, service flow characteristic information, and network environment information of the switching chip, multiple types of information that were originally scattered and inconsistent can be unified onto a single data basis. This avoids subsequent service identification and resource analysis being based on partial or inconsistent data. On this basis, service flows are further classified and identified based on the target status dataset, and the corresponding service level information and resource constraint information for each type of service flow are determined. This clearly distinguishes the differences in category, service level, and resource requirements between different service flows, resulting in more targeted target service representations. Since subsequent resource allocation is not based on a mixed, general set of services, but rather on service objects whose categories, levels, and constraints have been distinguished, it provides a more accurate input basis for constructing resource supply and demand relationships and generating resource allocation strategies, making resource configuration closer to the actual needs of different service flows.

[0028] S3: Based on the target business representation results and the resource status information, construct the resource supply and demand relationship, and analyze the resource supply and demand relationship in conjunction with the business flow feature information to obtain the target allocation strategy; S4: Generate resource configuration instructions for the switching chip based on the target allocation strategy, and control the switching chip to execute the resource configuration instructions to complete the resource allocation adjustment; It should be noted that the resource supply and demand relationship refers to the relationship formed by mapping the resource demands of the service side to the resource supply status of the switching chip side. The target allocation strategy refers to the resource allocation scheme determined after analyzing service priorities, resource supply and demand, and service flow characteristics. Resource configuration instructions are configuration control instructions generated according to the target allocation strategy, which can be recognized and executed by the switching chip. Resource allocation adjustment refers to the process by which the switching chip reconfigures its internal resource control items according to the resource configuration instructions.

[0029] Specifically, based on the target service characterization results obtained in the previous step and the resource status information of the switching chip, the service-side demand and resource-side supply are matched to construct a resource supply and demand relationship. Specifically, based on the different service categories, service levels, and resource constraints reflected in the target service characterization results, the demand direction and degree of various service flows for different resource items can be determined. Then, combined with the current occupancy and availability of resources such as buffers, queues, entries, and bandwidth reflected in the resource status information, the resource supply status that the switching chip can provide at the current moment can be determined. Subsequently, the resource demands of different service flows or different service categories are associated with the supply status of the corresponding resource items to form a resource supply and demand relationship. Further, the resource supply and demand relationship is analyzed in conjunction with service flow characteristic information, such as determining whether the current service flow has a traffic growth trend, a tendency for sudden changes, or a continuous occupancy characteristic, and accordingly identifying changes in resource demand and resource gaps, thereby obtaining a target allocation strategy for the current service status. This target allocation strategy is essentially the determination of the allocation order, allocation focus, and allocation method corresponding to different service flows or different service categories in subsequent resource adjustments.

[0030] Furthermore, after obtaining the target allocation strategy, resource configuration instructions for the switching chip are generated based on this strategy, and the switching chip is controlled to execute the resource configuration instructions to complete the resource allocation adjustment. Specifically, the resource adjustment content involved in the target allocation strategy can be converted into configuration parameters corresponding to the resource control items of the switching chip, and further formed into resource configuration instructions that the switching chip can recognize; wherein, the resource configuration instructions may correspond to configuration operations on buffer capacity, virtual output queue priority, bandwidth quota, or other resource control items. Subsequently, the resource configuration instructions are sent to the switching chip through the management interface corresponding to the switching chip, and the switching chip performs update processing on the relevant resource items according to the resource configuration instructions, thereby transforming the aforementioned target allocation strategy from analysis results into actual resource adjustment actions, and finally completing the resource allocation adjustment.

[0031] By constructing resource supply and demand relationships based on target business representation results and resource status information, and analyzing these relationships in conjunction with business flow characteristic information, resource allocation can be shifted from being based solely on the current status of a single resource or a single business need. Instead, it becomes grounded in a correspondence between business demand and resource supply, making the target allocation strategy more closely aligned with the actual resource occupancy requirements of different business flows. Furthermore, by translating the target allocation strategy into executable resource configuration instructions for the switching chip and controlling the switching chip to complete resource allocation adjustments, the aforementioned analysis results can be practically implemented in the configuration process of the switching chip's internal resource items. Thus, switching chip resources can be specifically adjusted according to the differences in demand among different business flows and the current resource supply situation, reducing supply-demand mismatches, resource idleness, or uneven resource allocation during the resource configuration process, thereby providing a foundation for improving the resource utilization rate of the switching chip.

[0032] S5: Obtain the operation monitoring information after executing the resource configuration instruction, and modify the target allocation strategy based on the operation monitoring information to update the subsequent resource configuration instructions for the switching chip.

[0033] It should be noted that operational monitoring information refers to the operational status data collected by the switching chip after executing resource configuration instructions. The target allocation strategy refers to the resource allocation scheme determined based on resource supply and demand analysis in the preceding steps. Strategy correction refers to the process of readjusting the resource allocation parameters, allocation focus, or adjustment method in the original target allocation strategy based on operational monitoring information. Subsequent resource configuration instructions for the switching chip refer to the configuration control instructions regenerated according to the updated target allocation strategy after strategy correction, used for the next round of resource adjustments.

[0034] Specifically, after the switching chip executes the aforementioned resource configuration instructions, the execution results are continuously monitored to obtain corresponding operational monitoring information. Monitoring can focus on the service carrying status and resource usage status after the resource configuration adjustment. For example, service performance indicators and switching chip resource utilization are collected to characterize the actual operating status of various service flows and the actual occupancy of chip resources after the resource adjustment. Through this operational monitoring information, the actual feedback results after the execution of the resource configuration instructions can be obtained, enabling the switching chip resource adjustment to go beyond simply "policy issuance and execution" and further develop an observable description of the execution results.

[0035] Furthermore, after obtaining the operational monitoring information, the target allocation strategy is revised based on this information. Specifically, the current operational monitoring information is compared with the expected allocation state corresponding to the target allocation strategy to identify whether there is a deviation between the actual operational state after resource allocation and the expected target. When a deviation exists, the resource allocation parameters, resource adjustment order, or resource allocation emphasis in the target allocation strategy can be updated according to the deviation, thereby forming an updated target allocation strategy. Subsequently, based on the updated target allocation strategy, subsequent resource configuration instructions for the switching chip are generated, enabling the switching chip to continue executing resource adjustments according to the revised strategy in subsequent rounds, thus forming a continuous update mechanism for the subsequent configuration process.

[0036] By acquiring operational monitoring information after the switching chip executes resource configuration instructions, and then modifying the target allocation strategy based on this information, the resource allocation process can not only be adjusted once based on the results of the preceding analysis, but also re-evaluated and updated in conjunction with the actual operational status after execution. Thus, when there are discrepancies between the original target allocation strategy and the actual service carrying status and resource utilization status after execution, subsequent resource configuration instructions can be updated in a timely manner, ensuring that subsequent resource adjustments are closer to the current actual operational needs of the switching chip. Therefore, the resource allocation of the switching chip can form a continuous adjustment process of "execution—monitoring—correction—re-execution," reducing resource mismatch, resource idleness, or uneven resource allocation caused by changes in services or execution deviations, thereby providing support for continuously improving the resource utilization level of the switching chip.

[0037] This embodiment standardizes the resource status information, service flow characteristic information, and network environment information of the switching chip to obtain a target status dataset. Based on the target status dataset, service flows are classified and identified, and the service level information and resource constraint information corresponding to each type of service flow are determined to obtain the target service representation result. Based on the target service representation result and resource status information, a resource supply and demand relationship is constructed, and the resource supply and demand relationship is analyzed in conjunction with the service flow characteristic information to obtain a target allocation strategy. Based on the target allocation strategy, resource configuration instructions for the switching chip are generated, and the switching chip is controlled to execute the resource configuration instructions to complete the resource allocation adjustment. Operation monitoring information after the execution of the resource configuration instructions is obtained, and the target allocation strategy is corrected based on the operation monitoring information to update subsequent resource configuration instructions for the switching chip. This embodiment standardizes the resource status information, service flow characteristic information, and network environment information of the switching chip to form a target status dataset for unified analysis. Based on the target status dataset, service flows are classified and identified to determine the service level information and resource constraint information corresponding to each type of service flow, thereby establishing a differentiated resource allocation basis for different service flows. On this basis, the resource supply and demand relationship is constructed by combining the target service characterization results and resource status information, and the resource supply and demand relationship is analyzed in conjunction with the service flow characteristic information to obtain a target allocation strategy. Based on this, resource configuration instructions are generated and the switching chip is controlled to perform resource allocation adjustments. At the same time, after execution, operation monitoring information is obtained to correct the target allocation strategy and update subsequent resource configuration instructions. This enables the switching chip's resource allocation to be continuously adjusted according to resource supply, service demand differences, and changes in operation status, thereby improving the resource utilization rate of the switching chip.

[0038] Based on the first embodiment described above, a second embodiment of the dynamic allocation and management method for switching chip resources in this application is proposed. Please refer to... Figure 2 , Figure 2 This is a schematic diagram of a sub-process in the second embodiment of the dynamic allocation and management method for exchange chip resources in this application.

[0039] like Figure 2 As shown, in this embodiment, step S1 includes: S11: Obtain the resource status information, service flow characteristic information, and network environment information of the switching chip. The resource status information includes buffer queue occupancy information, queue scheduling information, table entry occupancy information, and port load information. The service flow characteristic information includes service type identification information, traffic behavior information, and service demand information. The network environment information includes network topology status information and link status information. S12: Perform field mapping, format unification, and time alignment on the data in the resource status information, the service flow feature information, and the network environment information, and perform anomaly identification and invalid data removal on the aligned data to obtain a standard status information set; S13: Based on preset association rules, the data in the standard state information set are associated and integrated to generate the corresponding target state dataset.

[0040] It should be noted that buffer queue occupancy information refers to the occupancy level and related status information of each queue in the switching chip's buffer. Queue scheduling information refers to information related to the queue scheduling mechanism in the switching chip. Entry occupancy information refers to the usage information of forwarding or access control related entries in the switching chip. Port load information refers to the status information of the service traffic currently carried by each port of the switching chip. Service demand information refers to the quality of service demand information corresponding to the service flow during transmission. Field mapping refers to the process of converting data fields from different sources and with different expressions into a unified field system. Preset association rules refer to the pre-defined rules and conditions used to correlate resource status information, service flow characteristic information, and network environment information.

[0041] Specifically, information on the resource side, service side, and environment side during the operation of the switching chip is collected and organized. Specifically, the internal acquisition module of the switching chip can obtain information such as buffer queue occupancy, queue scheduling, table entry occupancy, and port load to reflect the current occupancy and scheduling status of various resource items. Simultaneously, service type identification information, traffic behavior information, and service demand information are obtained through service flow identification or traffic acquisition mechanisms to characterize the category attributes, traffic change characteristics, and service quality requirements of different service flows. Furthermore, network topology status information and link status information are collected to describe changes in the network environment in which the switching chip operates. Because the above data sources may differ, their expression formats may vary, and the collection rhythm may also differ, it is necessary to first perform field mapping, format unification, and time alignment processing on the data in the resource status information, service flow characteristic information, and network environment information to form a consistent data foundation in terms of field definitions, representation structures, and time series references.

[0042] Furthermore, after initial unification, the aligned data undergoes quality control. Specifically, anomaly detection is performed on the aligned data to identify data items that significantly deviate from the normal range, data with distorted data collection, or data items that do not match the current analysis scenario. After identifying anomalous data, invalid data is removed, resulting in a standard state information set that can be used for subsequent analysis. Subsequently, based on preset association rules, the data in the standard state information set is associated and integrated. For example, the service type identification information, traffic behavior information, and service demand information corresponding to the same service flow are correlated with their resource occupancy in the switching chip and the current network topology and link status, thereby forming a target state dataset that can uniformly reflect resource status, service characteristics, and network environment. Thus, the originally scattered multi-source heterogeneous data is organized into a unified data foundation that can be directly used for subsequent service flow classification and identification and resource supply and demand analysis.

[0043] By first acquiring the resource status information, service flow characteristic information, and network environment information of the switching chip, the current operating status of the switching chip can be described from three dimensions: resource supply, service demand, and external environment. Further, through field mapping, format standardization, and time alignment, data from different sources, with inconsistent expressions and asynchronous timings, is unified into a single data foundation. Anomaly identification and invalid data removal improve data usability, resulting in a standard status information set. Based on this, data in the standard status information set is further integrated using preset association rules to generate a target status dataset. This ensures that the resource status, service flow characteristics, and network environment status of the switching chip are no longer isolated but form a comprehensive status representation with corresponding relationships. Since subsequent service flow classification and resource allocation analysis are based on this target status dataset, judgment biases caused by data dispersion, data distortion, or information fragmentation can be reduced, providing a data foundation for more accurate identification of service demands and the formulation of resource allocation strategies.

[0044] Based on the first embodiment described above, in this embodiment, step S2 includes: S21: Based on the business flow identification information, traffic behavior information and service demand information in the target state dataset, extract the classification and discrimination features corresponding to each business flow, and classify the business flow according to the classification and discrimination features to obtain the business category information corresponding to each business flow. S22: Based on the business category information and preset business rules, determine the business level information corresponding to each business flow, and based on the business level information, associate it with the service requirement conditions corresponding to each business flow to obtain the resource constraint information corresponding to each business flow. S23: The business category information, the business level information, and the resource constraint information are correlated and integrated to obtain the target business representation result.

[0045] It should be noted that classification and discrimination features refer to the feature information extracted from business flow identification information, traffic behavior information, and service demand information, which can be used to distinguish business flow categories. Preset business rules refer to the pre-set rule conditions used to determine the corresponding processing level for different business categories.

[0046] Specifically, firstly, based on the business flow identification information, traffic behavior information, and service demand information in the target state dataset, business attribute analysis and classification feature extraction are performed on each business flow. Specifically, the business flow identification information is first used to distinguish different business flow objects. Then, combined with the traffic behavior information and service demand information corresponding to each business flow, classification features reflecting the differences in business flow categories are extracted. For example, for business flows with strong traffic continuity and high latency requirements, features leaning towards real-time transmission can be extracted; for business flows with large traffic volumes and greater sensitivity to throughput, features leaning towards high-bandwidth transmission can be extracted. Then, based on these classification features, the business flows are categorized to obtain the business category information corresponding to each business flow. This process essentially transforms the originally scattered business flow state descriptions into categorized results that can be used for subsequent priority and constraint determination, clearly expressing the category differences between different business flows.

[0047] Furthermore, after obtaining the business category information, the level of each business flow is determined by combining it with preset business rules, and a resource constraint description is further formed. Specifically, based on the business category information, different categories of business flows are matched with preset business rules to determine the business level information corresponding to each business flow. Subsequently, the service demand conditions corresponding to each business flow are associated with the business level information to obtain the resource constraint information corresponding to each business flow. Here, the resource constraint information can be understood as the resource-side restrictions or demand conditions corresponding to this type of business flow in subsequent resource allocation, such as a greater emphasis on latency guarantee, throughput guarantee, or transmission stability guarantee. Finally, the business category information, the business level information, and the resource constraint information are associated and integrated to obtain the target business representation result. Thus, each business flow not only has a category attribute but also a corresponding processing level and resource constraint description, thereby forming a unified business representation foundation for subsequent resource supply and demand analysis.

[0048] By extracting classification features for each business flow based on business flow identification, traffic behavior, and service demand information from the target state dataset, and classifying business flows accordingly, the differences between different business flows can be effectively identified. Furthermore, by determining business level information based on business category information and preset business rules, and combining this with service demand conditions to obtain resource constraint information, not only can each business flow be distinguished, but its processing level and resource demand conditions are also further clarified. Finally, by associating and integrating business category information, business level information, and resource constraint information to form the target business representation result, a clearer and more structured business-side input can be provided for subsequent resource supply and demand relationship construction and resource allocation strategy generation. Since subsequent resource allocation is no longer uniformly processed for a general, mixed set of business flows, but rather differentiated for business flows with clearly defined categories, levels, and constraints, it helps improve the matching degree between resource allocation and business needs, providing a foundation for improving the utilization rate of switching chip resources.

[0049] This embodiment standardizes the resource status information, service flow characteristic information, and network environment information of the switching chip to obtain a target status dataset. Based on the target status dataset, service flows are classified and identified, and the service level information and resource constraint information corresponding to each type of service flow are determined to obtain the target service representation result. Based on the target service representation result and resource status information, a resource supply and demand relationship is constructed, and the resource supply and demand relationship is analyzed in conjunction with the service flow characteristic information to obtain a target allocation strategy. Based on the target allocation strategy, resource configuration instructions for the switching chip are generated, and the switching chip is controlled to execute the resource configuration instructions to complete the resource allocation adjustment. Operation monitoring information after the execution of the resource configuration instructions is obtained, and the target allocation strategy is corrected based on the operation monitoring information to update subsequent resource configuration instructions for the switching chip. This embodiment standardizes the resource status information, service flow characteristic information, and network environment information of the switching chip to form a target status dataset for unified analysis. Based on the target status dataset, service flows are classified and identified to determine the service level information and resource constraint information corresponding to each type of service flow, thereby establishing a differentiated resource allocation basis for different service flows. On this basis, the resource supply and demand relationship is constructed by combining the target service characterization results and resource status information, and the resource supply and demand relationship is analyzed in conjunction with the service flow characteristic information to obtain a target allocation strategy. Based on this, resource configuration instructions are generated and the switching chip is controlled to perform resource allocation adjustments. At the same time, after execution, operation monitoring information is obtained to correct the target allocation strategy and update subsequent resource configuration instructions. This enables the switching chip's resource allocation to be continuously adjusted according to resource supply, service demand differences, and changes in operation status, thereby improving the resource utilization rate of the switching chip.

[0050] Based on the second embodiment described above, a third embodiment of the dynamic allocation and management method for switching chip resources in this application is proposed. Please refer to... Figure 3 , Figure 3 This is a schematic diagram of a sub-process in the third embodiment of the dynamic allocation and management method for exchange chip resources in this application.

[0051] In this embodiment, step S3 includes: S31: Based on the service level information and resource constraint information in the target service representation results, determine the target resource requirements corresponding to various service flows, determine the allocatable resource status related to various service flows based on the resource status information, and construct the resource supply and demand relationship between various service flows and switching chip resources; S32: Analyze the resource supply and demand relationship based on the business flow characteristic information, determine the traffic change characteristics, resource demand change trends and resource gaps corresponding to various business flows, and obtain resource analysis results corresponding to various business flows; S33: Based on the resource supply and demand relationship and the resource analysis results, determine the resource allocation weight, resource adjustment order and resource allocation method corresponding to various business flows, and determine the target allocation strategy according to the resource allocation weight, the resource adjustment order and the resource allocation method.

[0052] It should be noted that target resource requirements refer to the descriptions of the demand for switching chip-related resources by various service flows, determined based on service level information and resource constraint information. Resource analysis results refer to the analysis results obtained after analyzing the resource supply and demand relationship based on service flow characteristic information. Resource allocation weight refers to the degree of emphasis assigned to different service flows or different service categories in the subsequent resource allocation process. Resource allocation method refers to the resource adjustment mode adopted for different service flows or different resource states. Target allocation strategy refers to the resource allocation scheme determined based on resource supply and demand relationship and resource analysis results.

[0053] Specifically, based on the service level information and resource constraint information obtained in the previous step of the target service representation results, the target resource requirements corresponding to various service flows are determined. Specifically, according to the service level to which different service flows belong, combined with their corresponding resource constraint information, the direction and degree of demand for resources such as buffer resources, queue scheduling resources, table entry resources, and bandwidth resources under the current operating state of different service flows can be clarified. Simultaneously, based on resource status information, the allocatable resource status related to various service flows is determined, such as the current occupancy, remaining status, and availability of various resource items. Then, the target resource requirements corresponding to various service flows are mapped to the current allocatable resource status of the switching chip, constructing the resource supply and demand relationship between various service flows and switching chip resources. This process essentially establishes a correspondence between the resource demand on the service side and the supply status on the resource side, ensuring that subsequent resource allocation is no longer based solely on individual services or resources, but rather on a supply-demand correspondence.

[0054] Furthermore, after establishing the resource supply and demand relationship, it is analyzed based on business flow characteristic information. Specifically, this involves combining the traffic volume, burst intensity, trend of change, and service demand characteristics of various business flows to determine the potential traffic change characteristics, resource demand trends, and resource gaps in the current and subsequent stages of each business flow, thereby obtaining resource analysis results corresponding to each business flow. Based on this, the resource supply and demand relationship and the resource analysis results are combined to determine the resource allocation weights, resource adjustment order, and resource allocation methods corresponding to each business flow. For example, business flows with stronger resource demands, higher business levels, and more significant resource gaps can be assigned higher resource allocation weights and prioritized in the resource adjustment order; for business flows with temporarily idle resources or weak demand, resource allocation methods such as transfer, recovery, or flexible adjustment can be adopted. Finally, the target allocation strategy is determined based on the resource allocation weights, resource adjustment order, and resource allocation methods, thus forming the basis for specific strategies for subsequent switching chip resource adjustments.

[0055] By determining the target resource requirements for various business flows based on business level information and resource constraint information from the target business representation results, and determining the allocable resource status based on resource status information, a correspondence can be established between business-side demand and resource-side supply, thus forming a resource supply and demand relationship. Further analysis of this resource supply and demand relationship, combined with business flow characteristic information, yields traffic change characteristics, resource demand change trends, and resource gaps. This allows resource allocation to consider not only the current resource occupancy status but also the dynamic characteristics of changing demands from different business flows. Based on this, resource allocation weights, resource adjustment order, and resource allocation methods are determined according to the resource supply and demand relationship and resource analysis results, forming a target allocation strategy. This enables the allocation of switching chip resources to be more targeted towards business flows with more urgent demand, higher levels, or more significant gaps, while simultaneously reallocating temporarily idle or weakly demanded resources. This reduces supply and demand mismatches, resource idleness, and allocation imbalances during resource allocation, providing direct support for improving the utilization rate of switching chip resources.

[0056] Based on the second embodiment described above, in this embodiment, step S4 includes: S41: Based on the target allocation strategy, determine the target resource adjustment content corresponding to various service flows, and convert the target resource adjustment content into a set of instruction parameters corresponding to the switching chip resource control item; S42: Based on the instruction parameter set, generate a resource configuration instruction for the switching chip, and send the resource configuration instruction to the switching chip through the management interface corresponding to the switching chip; S43: Control the switching chip to update the corresponding resource control items based on the resource configuration instructions to complete the resource allocation adjustment.

[0057] It should be noted that target resource adjustment content refers to specific resource adjustment items determined according to the target allocation strategy and applicable to various business flows. Switching chip resource control items refer to the configurable and updatable resource control objects within the switching chip. The instruction parameter set refers to the set of parameterized instruction descriptions formed after converting the target resource adjustment content. The management interface refers to the interface between the switching chip and external control units used to transmit configuration instructions. Resource control item updates refer to the process by which the switching chip adjusts the configuration status of the corresponding resource control objects according to resource configuration instructions.

[0058] Specifically, based on the target allocation strategy obtained in the preceding steps, the target resource adjustment content corresponding to various service flows is determined, and the target resource adjustment content is converted into a set of instruction parameters corresponding to the switching chip resource control items. Specifically, based on the resource allocation weights, resource adjustment order, and resource allocation methods determined in the target allocation strategy, the resource changes corresponding to various service flows in the current resource adjustment round can be identified. For example, for service flows with high resource demands, target resource adjustments such as buffer expansion, queue priority increase, or bandwidth quota increase can be determined; for service flows with decreased resource demands or those that can relinquish resources, target resource adjustments such as resource reduction, priority callback, or resource reclamation can be determined. Subsequently, these target resource adjustment contents are mapped according to the configurable resource control items of the switching chip, forming a set of instruction parameters corresponding one-to-one with each resource control item, transforming the resource adjustment requirements from a strategy-level description into a parameterized, executable control description. This process essentially realizes the conversion from "resource allocation strategy" to "chip resource control parameters."

[0059] Furthermore, after forming the instruction parameter set, a resource configuration instruction for the switching chip is generated based on the instruction parameter set, and the resource configuration instruction is sent to the switching chip through the management interface corresponding to the switching chip. Specifically, the parameter content corresponding to each resource control item can be encapsulated into a configuration command format that the switching chip can recognize, forming a resource configuration instruction that the switching chip can execute. Then, the resource configuration instruction is sent to the switching chip through the management interface corresponding to the switching chip. The switching chip parses the received resource configuration instruction and updates the corresponding resource control items based on the resource configuration instruction to complete the resource allocation adjustment. In other words, the target allocation strategy formed in the strategy analysis stage is not just a logical decision, but is further implemented in the process of adjusting the internal resource configuration state of the switching chip through instruction generation, interface issuance, and control item updates, thereby realizing the specific allocation of buffers, queue priorities, bandwidth quotas, and related resource items.

[0060] By determining the target resource adjustment content corresponding to various service flows based on the target allocation strategy, and converting the target resource adjustment content into a set of instruction parameters corresponding to the switching chip resource control items, the resource allocation requirements formed in the preliminary analysis stage can be concretized into parameter descriptions executable by the switching chip. Furthermore, resource configuration instructions are generated based on the instruction parameter set and sent to the switching chip through the corresponding management interface, ensuring that the resource allocation strategy is actually transmitted to the switching chip execution side. The switching chip then updates the corresponding resource control items based on the resource configuration instructions to complete the resource allocation adjustment, thus ensuring that the resource allocation result is truly implemented in the chip's internal resource configuration process. Therefore, the aforementioned target allocation strategy based on service needs and resource supply and demand can be translated from a strategy level into actual resource adjustment actions, avoiding the problem of resource allocation remaining at the analysis stage without execution. This allows the switching chip resource configuration to adjust accordingly to changes in service needs, providing a direct execution basis for improving the switching chip resource utilization rate.

[0061] In this embodiment, step S5 includes: S51: Obtain the resource operation status information, service bearer status information and link transmission status information of the switching chip after executing the resource configuration instruction, and form operation monitoring information corresponding to the resource configuration instruction; S52: Based on the operation monitoring information, determine the resource allocation execution status corresponding to the target allocation strategy and the status changes of various business flows, and identify the deviation relationship between the target allocation strategy and the current operation status to obtain the basis for strategy correction; S53: Based on the strategy correction criteria, the resource allocation weight, resource adjustment order, and resource allocation method in the target allocation strategy are corrected to generate an updated target allocation strategy, and the subsequent resource configuration instructions for the switching chip are updated based on the updated target allocation strategy.

[0062] It should be noted that service carrying status information refers to the status information related to the actual carrying effect of various service flows after the switching chip executes the resource configuration instructions. Link transmission status information refers to the information related to the transmission status on the link side after the switching chip executes the resource configuration instructions. Resource allocation execution status refers to the implementation status of the target allocation strategy after execution by the switching chip. Deviation relationship refers to the difference between the expected allocation status corresponding to the target allocation strategy and the current operating status.

[0063] Specifically, after the switching chip completes the execution of the previous round of resource configuration instructions, it continuously senses and collects the execution results to form operational monitoring information corresponding to the resource configuration instructions. Specifically, it can acquire resource operational status information based on the configuration results of internal resource items within the switching chip, reflecting the actual occupancy and operation of resource control items such as buffers, queues, entries, and bandwidth after adjustment; simultaneously, it can acquire service carrying status information based on the carrying results of various service flows under the current resource configuration conditions, reflecting the carrying and performance status of service flows during actual operation; in addition, it can acquire link transmission status information to reflect changes in link transmission conditions after resource adjustments. Then, the resource operational status information, service carrying status information, and link transmission status information are summarized and organized to form operational monitoring information corresponding to the current round of resource configuration instructions. Thus, the previous round of resource configuration does not end after execution, but further obtains a feedback data foundation corresponding to the execution results.

[0064] Furthermore, after obtaining the operational monitoring information, deviation identification and policy correction are performed on the target allocation strategy based on this information. Specifically, the execution status of resource allocation corresponding to the target allocation strategy and the status changes of various business flows are first determined based on the operational monitoring information. Then, the execution status and status changes are compared with the expected allocation status corresponding to the original target allocation strategy to identify the deviation relationship between the target allocation strategy and the current operational status, thereby obtaining the basis for policy correction. Subsequently, based on the policy correction basis, the resource allocation weights, resource adjustment order, and resource allocation methods in the target allocation strategy are corrected to generate an updated target allocation strategy. Further, the subsequent resource configuration instructions for the switching chip are updated based on the updated target allocation strategy. Thus, the resource adjustment process of the switching chip forms a continuous correction mechanism where the execution result of the previous round is fed back to the subsequent policy generation and instruction update.

[0065] By acquiring the resource operation status information, service bearer status information, and link transmission status information of the switching chip after executing resource configuration instructions, operational monitoring information corresponding to the resource configuration results of this round can be generated, enabling continuous perception of the actual operational status after resource configuration. Furthermore, based on this operational monitoring information, the execution status of resource allocation corresponding to the target allocation strategy and the status changes of various service flows can be determined, and the deviation relationship between the target allocation strategy and the current operational status can be identified. This allows for further judgment on whether the original resource allocation strategy matches the current actual operational needs. On this basis, the resource allocation weights, resource adjustment order, and resource allocation methods in the target allocation strategy can be corrected based on the strategy correction criteria, and subsequent resource configuration instructions for the switching chip can be updated. This ensures that subsequent resource configurations no longer mechanically repeat the previous strategy but are adaptively updated based on the execution results. Thus, the switching chip resource allocation can form a continuous process of "execution—monitoring—deviation identification—strategy correction—instruction update," thereby reducing resource mismatch, resource idleness, and allocation imbalance caused by service changes, link changes, or strategy lags, providing support for continuously improving the utilization rate of switching chip resources.

[0066] This embodiment standardizes the resource status information, service flow characteristic information, and network environment information of the switching chip to obtain a target status dataset. Based on the target status dataset, service flows are classified and identified, and the service level information and resource constraint information corresponding to each type of service flow are determined to obtain the target service representation result. Based on the target service representation result and resource status information, a resource supply and demand relationship is constructed, and the resource supply and demand relationship is analyzed in conjunction with the service flow characteristic information to obtain a target allocation strategy. Based on the target allocation strategy, resource configuration instructions for the switching chip are generated, and the switching chip is controlled to execute the resource configuration instructions to complete the resource allocation adjustment. Operation monitoring information after the execution of the resource configuration instructions is obtained, and the target allocation strategy is corrected based on the operation monitoring information to update subsequent resource configuration instructions for the switching chip. This embodiment standardizes the resource status information, service flow characteristic information, and network environment information of the switching chip to form a target status dataset for unified analysis. Based on the target status dataset, service flows are classified and identified to determine the service level information and resource constraint information corresponding to each type of service flow, thereby establishing a differentiated resource allocation basis for different service flows. On this basis, the resource supply and demand relationship is constructed by combining the target service characterization results and resource status information, and the resource supply and demand relationship is analyzed in conjunction with the service flow characteristic information to obtain a target allocation strategy. Based on this, resource configuration instructions are generated and the switching chip is controlled to perform resource allocation adjustments. At the same time, after execution, operation monitoring information is obtained to correct the target allocation strategy and update subsequent resource configuration instructions. This enables the switching chip's resource allocation to be continuously adjusted according to resource supply, service demand differences, and changes in operation status, thereby improving the resource utilization rate of the switching chip.

[0067] In one embodiment, the dynamic allocation and management method for switching chip resources mainly includes a three-level architecture of "data acquisition layer - intelligent decision-making layer - resource execution layer". Each level works together to realize the dynamic allocation and management of resources. The specific technical content is as follows: Data Acquisition Layer: Multi-dimensional State Awareness The data acquisition layer is responsible for collecting real-time and comprehensive data on the operating status of the switching chip and network service characteristics, providing data support for intelligent decision-making. The collected data includes: Chip resource status data includes: occupancy rate, remaining capacity, and read / write rate of each queue in the buffer; length and scheduling priority of the Virtual Output Queue (VOQ); utilization rate and remaining number of FIB / ACL entries; bandwidth utilization rate and port traffic rate of each port, etc. The sampling frequency is 10ms / time to ensure data real-time performance.

[0068] Network service characteristic data: Identify service types (such as voice, video, data, IoT communication, etc.) through deep packet inspection (DPI) technology; collect QoS parameters such as traffic size, burst intensity, packet length distribution, latency requirements, and packet loss rate threshold for each service flow; and record identification information such as source and destination IPs and port numbers of service flows to achieve accurate source tracing and classification of service flows.

[0069] Network environment data includes information on network topology changes (such as port start / stop and link failures) and link quality (such as bit error rate and latency), which is used to perceive the impact of the external environment on resource demand.

[0070] The data acquisition layer adopts a "hardware acquisition + software supplement" approach: a dedicated acquisition module is integrated inside the chip to directly obtain resource status data from the hardware level, reducing acquisition latency; at the software level, business flow characteristic data is supplemented through the NetFlow / IPFIX protocol to ensure data integrity. The acquired data is transmitted to the intelligent decision-making layer after standardization processing (such as format unification and outlier filtering).

[0071] Intelligent Decision Layer: Generation of Resource Allocation Strategies Based on Multiple Factors The intelligent decision-making layer is the core of this invention. Based on multi-dimensional data provided by the data acquisition layer, it generates resource allocation strategies through a three-step process of "business classification - requirement modeling - dynamic decision-making". Business Classification and Prioritization: Based on business characteristic data, machine learning-based classification algorithms (such as random forests) are used to automatically classify business flows. Simultaneously, combined with preset QoS level rules, priorities are assigned to each type of business. For example, real-time voice and industrial control services are classified as highest priority (P0), high-definition video and real-time gaming as medium priority (P1), and ordinary file transfer and web browsing as low priority (P2), ensuring priority resource allocation for critical businesses.

[0072] Business requirements and resource supply and demand modeling: Resource demand models are established for businesses of different priorities. For example, the demand model for P0-level businesses focuses on "low latency and zero packet loss" as the core objective, and associates resources such as buffer capacity and scheduling priority; P1-level businesses aim for "high throughput and low latency jitter," and associate resources such as bandwidth and buffers. At the same time, a resource supply and demand model is established based on chip resource status data to calculate the "available margin" and "demand gap" of various resources in real time.

[0073] Dynamic Decision Algorithm: Employs a "QoS-constrained weighted fair allocation" algorithm, combining service priority, resource supply and demand, and traffic trend prediction results to generate resource allocation strategies. Specifically, this includes: ① Priority Weighting: Allocating higher resource weights to high-priority services to ensure their needs are met first; ② Traffic Prediction: Using an ARIMA model based on historical traffic data to predict traffic changes within the next 100ms, adjusting resource allocation in advance to cope with sudden traffic surges; ③ Elastic Adjustment: When a certain type of resource is idle, it is automatically allocated to services with a large demand gap; when resources are scarce, idle resources from low-priority services are reclaimed in a tiered manner according to priority.

[0074] Resource Execution Layer: Precise Strategy Implementation and Feedback Optimization The resource execution layer is responsible for translating the resource allocation strategies generated by the intelligent decision-making layer into hardware configuration instructions for the switching chip, and providing real-time feedback on the execution results, forming a closed-loop optimization of "decision-execution-feedback": Resource configuration instruction generation: Convert resource allocation strategies (such as buffer capacity adjustment, VOQ priority setting, bandwidth quota allocation, etc.) into configuration instructions (such as register write commands) that the chip can recognize, and quickly issue them through the chip's management interface (such as PCIe, I2C), with a configuration response time of ≤50ms.

[0075] Execution performance monitoring: Real-time monitoring of business performance indicators (such as latency, packet loss rate, and throughput) and chip resource utilization after resource configuration, and feeding the monitoring data back to the intelligent decision-making layer as a basis for strategy optimization.

[0076] Closed-loop optimization: The intelligent decision-making layer compares the "expected performance target" with the "actual monitoring results". When the actual indicators deviate from the target (such as P0-level service latency exceeding the threshold), it automatically triggers policy adjustment, corrects resource allocation parameters, and ensures that service QoS continues to meet the requirements.

[0077] This application also provides a device for dynamic allocation and management of switching chip resources. Please refer to... Figure 4 , Figure 4 This is a schematic diagram of the module structure of the switching chip resource dynamic allocation management device according to an embodiment of this application. The switching chip resource dynamic allocation management device includes: The information processing module 401 is used to standardize the resource status information, service flow characteristic information and network environment information of the switching chip to obtain the target status dataset. The classification and recognition module 402 is used to classify and recognize the business flow based on the target state dataset, and determine the business level information and resource constraint information corresponding to each type of business flow to obtain the target business representation result; The supply and demand analysis module 403 is used to construct a resource supply and demand relationship based on the target business characterization results and the resource status information, and to analyze the resource supply and demand relationship in combination with the business flow characteristic information to obtain a target allocation strategy. The resource allocation module 404 is used to generate resource configuration instructions for the switching chip based on the target allocation strategy, and control the switching chip to execute the resource configuration instructions to complete the resource allocation adjustment; The instruction update module 405 is used to obtain the operation monitoring information after the resource configuration instruction is executed, and to modify the target allocation strategy based on the operation monitoring information in order to update the subsequent resource configuration instructions for the switching chip.

[0078] The switching chip resource dynamic allocation management device provided in this application adopts the switching chip resource dynamic allocation management method in the above embodiments, which can solve the technical problem of how to improve the resource utilization rate of switching chips. Compared with the prior art, the beneficial effects of the switching chip resource dynamic allocation management device provided in this application are the same as the beneficial effects of the switching chip resource dynamic allocation management method provided in the above embodiments, and other technical features in the switching chip resource dynamic allocation management device are the same as the features disclosed in the methods of the above embodiments, and will not be repeated here.

[0079] This application provides a dynamic allocation management device for switching chip resources. The device includes: at least one processor; and a memory communicatively connected to the at least one processor. The memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the dynamic allocation management method for switching chip resources in the above embodiments.

[0080] The following is for reference. Figure 5 , Figure 5 This is a schematic diagram of the hardware operating environment involved in the dynamic allocation and management method of switching chip resources in the embodiments of this application. It shows a schematic diagram of the structure of the device suitable for implementing the dynamic allocation and management of switching chip resources in the embodiments of this application. Figure 5 The illustrated device for dynamic allocation and management of switching chip resources is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0081] like Figure 5As shown, the switching chip resource dynamic allocation management device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the switching chip resource dynamic allocation management device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the switching chip resource dynamic allocation management device to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows a switching chip resource dynamic allocation management device with various systems, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems can be implemented alternatively.

[0082] In particular, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. When the computer program is executed by the processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0083] The switching chip resource dynamic allocation management device provided in this application, employing the switching chip resource dynamic allocation management method in the above embodiments, can solve the technical problem of how to improve the resource utilization rate of switching chips. Compared with the prior art, the beneficial effects of the switching chip resource dynamic allocation management device provided in this application are the same as those of the switching chip resource dynamic allocation management method provided in the above embodiments, and other technical features in this switching chip resource dynamic allocation management device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0084] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0085] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0086] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the dynamic allocation and management method for switching chip resources in the above embodiments.

[0087] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by the switching chip resource dynamic allocation management device, the switching chip resource dynamic allocation management device performs the following actions: standardizes the resource status information, service flow characteristic information, and network environment information of the switching chip to obtain a target status dataset; classifies and identifies service flows based on the target status dataset, and determines the service level information and resource constraint information corresponding to each type of service flow to obtain a target service representation result; constructs a resource supply and demand relationship based on the target service representation result and resource status information, and analyzes the resource supply and demand relationship in conjunction with the service flow characteristic information to obtain a target allocation strategy; generates resource configuration instructions for the switching chip based on the target allocation strategy, and controls the switching chip to execute the resource configuration instructions to complete the resource allocation adjustment; obtains operation monitoring information after executing the resource configuration instructions, and corrects the target allocation strategy based on the operation monitoring information to update subsequent resource configuration instructions for the switching chip. Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0088] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0089] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0090] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described dynamic allocation and management method for switching chip resources, thereby solving the technical problem of how to improve the resource utilization rate of switching chips. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the dynamic allocation and management method for switching chip resources provided in the above embodiments, and will not be repeated here.

[0091] This application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described dynamic allocation and management method for switching chip resources.

[0092] The computer program product provided in this application can solve the technical problem of how to improve the resource utilization rate of switching chips. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the dynamic allocation and management method for switching chip resources provided in the above embodiments, and will not be repeated here.

[0093] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.

Claims

1. A method for dynamic allocation and management of switching chip resources, characterized in that, The method includes: The resource status information, service flow characteristic information, and network environment information of the switching chip are standardized to obtain the target status dataset; Based on the target state dataset, the business flows are classified and identified, and the business level information and resource constraint information corresponding to each type of business flow are determined to obtain the target business representation results. Based on the target business representation results and the resource status information, a resource supply and demand relationship is constructed, and the resource supply and demand relationship is analyzed in conjunction with the business flow characteristic information to obtain a target allocation strategy; Based on the target allocation strategy, a resource configuration instruction for the switching chip is generated, and the switching chip is controlled to execute the resource configuration instruction to complete the resource allocation adjustment; The system obtains operational monitoring information after executing the resource configuration instruction, and modifies the target allocation strategy based on the operational monitoring information to update subsequent resource configuration instructions for the switching chip.

2. The method as described in claim 1, characterized in that, The step of standardizing the resource status information, service flow characteristic information, and network environment information of the switching chip to obtain the target status dataset includes: The system acquires resource status information, service flow characteristic information, and network environment information of the switching chip. The resource status information includes buffer queue occupancy information, queue scheduling information, table entry occupancy information, and port load information. The service flow characteristic information includes service type identification information, traffic behavior information, and service demand information. The network environment information includes network topology status information and link status information. The data in the resource status information, the service flow feature information, and the network environment information are processed by field mapping, format unification, and time alignment. The aligned data is then processed by anomaly identification and invalid data removal to obtain a standard status information set. The data in the standard state information set are linked and integrated based on preset association rules to generate the corresponding target state dataset.

3. The method as described in claim 1, characterized in that, The step of classifying and identifying business flows based on the target state dataset, determining the business level information and resource constraint information corresponding to each type of business flow, and obtaining the target business representation result includes: Based on the business flow identification information, traffic behavior information and service demand information in the target state dataset, the classification and discrimination features corresponding to each business flow are extracted, and the business flow is classified according to the classification and discrimination features to obtain the business category information corresponding to each business flow. Based on the business category information and preset business rules, the business level information corresponding to each business flow is determined, and the resource constraint information corresponding to each business flow is obtained by associating the business level information with the service requirement conditions corresponding to each business flow. The business category information, the business level information, and the resource constraint information are correlated and integrated to obtain the target business representation result.

4. The method as described in claim 1, characterized in that, The steps of constructing a resource supply and demand relationship based on the target business representation results and the resource status information, and analyzing the resource supply and demand relationship in conjunction with the business flow characteristic information to obtain a target allocation strategy include: Based on the service level information and resource constraint information in the target service representation results, the target resource requirements corresponding to various service flows are determined, the allocatable resource status related to various service flows is determined based on the resource status information, and the resource supply and demand relationship between various service flows and switching chip resources is constructed. Based on the business flow characteristic information, the resource supply and demand relationship is analyzed to determine the traffic change characteristics, resource demand change trends and resource gaps corresponding to various business flows, and to obtain resource analysis results corresponding to various business flows. Based on the resource supply and demand relationship and the resource analysis results, the resource allocation weights, resource adjustment order and resource allocation methods corresponding to various business flows are determined, and the target allocation strategy is determined according to the resource allocation weights, resource adjustment order and resource allocation methods.

5. The method as described in claim 1, characterized in that, The step of generating resource configuration instructions for the switching chip based on the target allocation strategy and controlling the switching chip to execute the resource configuration instructions to complete the resource allocation adjustment includes: Based on the target allocation strategy, the target resource adjustment content corresponding to various service flows is determined, and the target resource adjustment content is converted into a set of instruction parameters corresponding to the switching chip resource control items; Based on the set of instruction parameters, a resource configuration instruction for the switching chip is generated, and the resource configuration instruction is sent to the switching chip through the management interface corresponding to the switching chip. The switching chip is controlled to update the corresponding resource control items based on the resource configuration instructions in order to complete the resource allocation adjustment.

6. The method as described in claim 1, characterized in that, The step of obtaining operation monitoring information after executing the resource configuration instruction, and modifying the target allocation strategy based on the operation monitoring information to update subsequent resource configuration instructions for the switching chip, includes: The system acquires the resource operation status information, service bearer status information, and link transmission status information of the switching chip after executing the resource configuration instruction, and forms operation monitoring information corresponding to the resource configuration instruction. Based on the operational monitoring information, the resource allocation execution status corresponding to the target allocation strategy and the status changes of various business flows are determined, and the deviation relationship between the target allocation strategy and the current operational status is identified to obtain the basis for strategy correction. Based on the aforementioned strategy correction criteria, the resource allocation weights, resource adjustment order, and resource allocation methods in the target allocation strategy are corrected to generate an updated target allocation strategy. Subsequently, the resource configuration instructions for the switching chip are updated based on the updated target allocation strategy.

7. A device for dynamic allocation and management of switching chip resources, characterized in that, The device includes: The information processing module is used to standardize the resource status information, service flow characteristic information and network environment information of the switching chip to obtain the target status dataset. The classification and recognition module is used to classify and recognize the business flow based on the target state dataset, and determine the business level information and resource constraint information corresponding to each type of business flow to obtain the target business representation result. The supply and demand analysis module is used to construct the resource supply and demand relationship based on the target business characterization results and the resource status information, and to analyze the resource supply and demand relationship in combination with the business flow characteristic information to obtain the target allocation strategy; The resource allocation module is used to generate resource configuration instructions for the switching chip based on the target allocation strategy, and control the switching chip to execute the resource configuration instructions to complete the resource allocation adjustment; The instruction update module is used to obtain the operation monitoring information after the resource configuration instruction is executed, and to modify the target allocation strategy based on the operation monitoring information in order to update the subsequent resource configuration instructions for the switching chip.

8. A computer device, characterized in that, The device includes: a memory, a processor, and a switching chip resource dynamic allocation management program stored in the memory and executable on the processor, the switching chip resource dynamic allocation management program being configured to implement the steps of the switching chip resource dynamic allocation management method as described in any one of claims 1 to 6.

9. A storage medium, characterized in that, The storage medium stores a dynamic allocation management program for switching chip resources. When the processor executes the dynamic allocation management program for switching chip resources, it implements the steps of the dynamic allocation management method for switching chip resources as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the switching chip resource dynamic allocation management method as described in any one of claims 1 to 6.