Quality of service implementation method, main control board and readable storage medium

By transferring QoS service operations from the main processor to the switching chip for execution, using the hardware characteristics of the switching chip for high-precision traffic management, the problem of insufficient computing resources of the main processor is solved and efficient QoS service processing is achieved.

CN120567808APending Publication Date: 2025-08-29SUZHOU CENTEC COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510690913.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-27
Publication Date
2025-08-29

AI Technical Summary

Technical Problem

When the main processor of existing network devices performs QoS services, insufficient computing resources are caused, resulting in excessive usage and unstable traffic management accuracy.

Method used

The QoS service operations responsible for by the main processor are transferred to the switching chip execution, and high-precision traffic management is used to utilize the inherent hardware characteristics of the switching chip, including adding quality of service information and queue scheduling in the switching chip.

Benefits of technology

It realizes high-precision traffic management at the ASIC level, alleviates the performance pressure of the main processor, and improves the QoS service processing capabilities of network equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120567808A_ABST
    Figure CN120567808A_ABST
Patent Text Reader

Abstract

The invention provides a service quality service implementation method, a main control board and a readable storage medium, and relates to the technical field of network communication. According to the invention, the to-be-scheduled user service message from any interface daughter card received by the switching chip in the port expansion scene is sent to the main processor, and the main processor adds the appropriate service quality service information to the to-be-scheduled user service message to obtain the target user service message and feeds the target user service message back to the switching chip. The switching chip adds a target user service message into an adaptive extended queue group based on the service quality service information to perform service quality scheduling, and determines a target sub-card to which the target user service message should be transmitted at the same time; therefore, the inherent hardware characteristics of the switching chip are fully utilized to realize the high-precision flow management effect of the ASIC level, and the performance pressure of the main processor is effectively relieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a method for implementing a quality of service (QoS) service, a main control board, and a readable storage medium. Background Art

[0002] With the rapid development of network communication technology, QoS (Quality of Service) technology has been gradually and widely used to implement service traffic management functions of network devices (such as routers, switches, etc.) because it can allocate appropriate bandwidth to various user services under limited bandwidth resources, thereby providing end-to-end service quality assurance for various user services.

[0003] At present, network equipment used in current network applications usually includes a main control board and multiple interface daughter cards. The main control board is responsible for implementing QoS services and using multiple interface daughter cards to expand or enhance the main control board. Most main control boards require the main processor (for example, CPU (Central Processing Unit)) to be responsible for performing many QoS service operations on user service messages through software-driven means, including second and third layer message forwarding editing operations, service priority mapping / re-marking operations, message cache queue scheduling operations, message sending and receiving interface shaping operations, queue shaping operations, etc., while completing conventional message processing services. This allows the switching chip to only be used for simple second layer forwarding of user service messages processed by the main processor.

[0004] However, it is worth noting that with the increase in the number and / or types of user services, the main processor on the network equipment can no longer save more computing resources to cope with the ever-increasing QoS service volume. There are obvious problems of excessive main processor utilization and insufficient main processor performance. At the same time, the overall method of implementing QoS services through software drive has the problem of unstable traffic management accuracy. Summary of the Invention

[0005] In view of this, the purpose of this application is to provide a quality of service business implementation method, a main control board and a readable storage medium, which can transfer most of the QoS business operations originally responsible for the main processor to the switching chip in the port expansion scenario for execution, so as to make full use of the inherent hardware characteristics of the switching chip to achieve ASIC (Application-Specific Integrated Circuit) level high-precision traffic management effect, and simultaneously alleviate the performance pressure of the main processor.

[0006] In order to achieve the above objectives, the technical solutions adopted in the embodiments of the present application are as follows:

[0007] In a first aspect, the present application provides a method for implementing a quality of service service, which is applied to a switching chip in a main control board that is stacked with a main processor, wherein at least one physical port mapping of the switching chip is extended with multiple expansion ports, each expansion port can be divided into multiple sub-interfaces, wherein all sub-interfaces under the same expansion port are simultaneously bridged to a sub-card interface of a single interface sub-card; the implementation method includes:

[0008] Sending a user service message to be scheduled from any interface daughter card to the main processor to add quality of service service information, and receiving a target user service message fed back by the main processor, wherein the target user service message is a user service message to be scheduled to which quality of service service information has been added, and the quality of service service information includes the first logical destination sub-interface number, the first destination port identifier, and the first scheduling priority of the user service message to be scheduled at the switching chip;

[0009] adding the target user service message to a first extended queue group corresponding to the first logical destination sub-interface number according to the first scheduling priority for quality of service scheduling, and determining a first target sub-card to which the first logical destination sub-interface number points according to the first destination port identifier;

[0010] The target user service message after completing the service quality scheduling is transmitted to the first target sub-card for message forwarding.

[0011] In an optional embodiment, the implementation method further includes:

[0012] Sending a non-user service message to be forwarded from any interface daughter card to the main processor for adding chip outbound information, and receiving a first non-user service message fed back by the main processor, wherein the first non-user service message is a non-user service message to be forwarded to which chip outbound information has been added, and the chip outbound information includes the second logical destination sub-interface number and the second destination port identifier of the non-user service message to be forwarded at the switching chip;

[0013] Add the first non-user service packet to the basic queue group corresponding to the second destination port identifier for queue buffering and output, and determine the second target subcard to which the second logical destination sub-interface number points according to the second destination port identifier;

[0014] The first non-user service message output by the basic queue group is transmitted to the second target subcard for message forwarding.

[0015] In an optional embodiment, the implementation method further includes:

[0016] Sending a non-user service message to be forwarded from any interface daughter card to the main processor to add quality of service service information, and receiving a second non-user service message fed back by the main processor, wherein the second non-user service message is a non-user service message to be forwarded to which the quality of service service information has been added, and the quality of service service information includes a third logical destination sub-interface number, a third destination port identifier, and a second scheduling priority of the non-user service message to be forwarded at the switching chip;

[0017] adding the second non-user service message to the second extended queue group corresponding to the third logical destination sub-interface number according to the second scheduling priority for quality of service scheduling, and determining the third target sub-card pointed to by the third logical destination sub-interface number according to the third destination port identifier;

[0018] The second non-user service message after completing the quality of service scheduling is transmitted to the third target sub-card for message forwarding.

[0019] In an optional embodiment, for any one of the target user service message and the second non-user service message to be scheduled, adding the message to be scheduled to the target extended queue group corresponding to the logical destination sub-interface number of the message to be scheduled according to the scheduling priority of the message to be scheduled for quality of service scheduling includes:

[0020] Among the pre-built multiple idle extended queue groups, one idle extended queue group is allocated to the logical destination sub-interface number of the message to be scheduled as the target extended queue group, wherein each idle extended queue group includes multiple message buffer queues with different queue priorities, and the multiple message buffer queues in the same idle extended queue group have different message output rates;

[0021] A target cache queue matching the scheduling priority of the message to be scheduled is searched among the multiple message cache queues included in the target extended queue group, and the message to be scheduled is added to the target cache queue for queue cache output.

[0022] In an optional embodiment, when the destination port identifier of any one of the target user service message, the first non-user service message, and the second non-user service message to be forwarded belongs to the physical port number of the switching chip, the step of determining the target subcard to which the logical destination sub-interface number of the message to be forwarded points according to the destination port identifier of the message to be forwarded includes:

[0023] Extracting the actual sub-interface VLAN (Virtual Local Area Network) identifier associated with the target sub-card from the logical destination sub-interface number of the message to be forwarded;

[0024] Invoking an egress processing engine (EPE) module of the switching chip to perform a quality of service access control list match or a quality of service service classification list match on the port characteristics of all extended ports of the switching chip based on the actual sub-interface VLAN identifier and the destination port identifier of the message to be forwarded, to obtain an actual extended port number of the target extended port for the message to be forwarded;

[0025] According to the pre-configured mapping relationship between the subcard interface VLAN identifiers of all interface subcards and all extended port numbers, the actual subcard interface VLAN identifier of the target subcard to which the message to be forwarded needs to be transmitted is determined based on the actual extended port number.

[0026] In an optional embodiment, when the destination port identifier of any one of the to-be-forwarded messages, namely, the target user service message, the first non-user service message, and the second non-user service message, belongs to the extended port number of the switching chip, the step of determining the target sub-card to which the logical destination sub-interface number of the to-be-forwarded message points according to the destination port identifier of the to-be-forwarded message includes:

[0027] Invoke a BPE (Bridge Port Extern) multiplexer (MUX) of the switching chip to search for a target subcard interface VLAN ID that is directly mapped to the destination port ID of the message to be forwarded, based on a pre-configured mapping relationship between the subcard interface VLAN IDs of all interface subcards and all extended port numbers;

[0028] The found target sub-card interface VLAN identifier is used as the actual sub-card interface VLAN identifier of the target sub-card to which the message to be forwarded needs to be transmitted.

[0029] In an optional embodiment, for any one of the target user service message, the first non-user service message, and the second non-user service message, transmitting the message to be forwarded to the target subcard pointed to by the corresponding logical destination sub-interface number for message forwarding includes:

[0030] Adding the actual sub-card interface VLAN identifier of the target sub-card corresponding to the message to be forwarded to the message to be forwarded, and determining the target physical port directly connected to the corresponding target sub-card;

[0031] Based on the actual subcard interface VLAN ID of the target subcard, the message to be forwarded after adding the subcard interface VLAN ID is transmitted to the target subcard via the target physical port, so that the target subcard forwards the received message to be forwarded.

[0032] In an optional embodiment, the implementation method includes:

[0033] Constructing a plurality of idle extended queue groups according to the number of subcard interfaces of all interface subcards bridged with the switching chip and the number of sub-interface bridges of each subcard interface, wherein the number of idle extended queue groups constructed is less than or equal to the sum of the number of sub-interface bridges of all subcard interfaces;

[0034] A mapping relationship between the subcard interface VLAN identifiers of all interface subcards bridged by the switching chip and all extended port numbers is established, and a quality of service (QoS) access control list (ACL) or a quality of service (QoS) service classification list (SCL) related to the physical port number, extended port number and subcard interface VLAN identifier of the switching chip is constructed.

[0035] In a second aspect, the present application provides a main control board, including a main processor and a switching chip, wherein the switching chip is stacked and connected to the main processor, at least one physical port mapping of the switching chip is extended with multiple expansion ports, each expansion port can be divided into multiple sub-interfaces, wherein all sub-interfaces under the same expansion port are simultaneously bridged to a sub-card interface of a single interface sub-card;

[0036] The switching chip stores a computer program and can run the computer program to cooperate with the main processor to implement the quality of service service implementation method described in any one of the aforementioned implementation methods.

[0037] In a third aspect, the present application provides a readable storage medium having a computer program stored thereon. When the computer program is executed by a switching chip connected to the main processor stack in the main control board, the quality of service business implementation method described in any one of the aforementioned embodiments is implemented.

[0038] In this case, the beneficial effects of the embodiments of the present application may include the following:

[0039] This application sends the user service message to be scheduled from any interface sub-card received by the switching chip in the port extension scenario to the main processor, and the main processor adds appropriate service quality business information to the user service message to be scheduled to obtain the target user service message and feeds it back to the switching chip, so that the switching chip adds the target user service message to the adapted extension queue group for service quality scheduling based on the service quality business information, and at the same time determines the target sub-card to which the target user service message should be transmitted, so that the switching chip can automatically transmit the target user service message that has completed service quality scheduling to the corresponding target sub-card for message forwarding, thereby transferring most of the QoS business operations originally responsible for the main processor to the switching chip in the port extension scenario for execution, making full use of the inherent hardware characteristics of the switching chip to achieve ASIC-level high-precision traffic management effects, and effectively alleviating the performance pressure of the main processor.

[0040] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.

[0042] Figure 1 A schematic diagram showing the connection between the main control board and multiple interface daughter cards provided in an embodiment of the present application;

[0043] Figure 2 This is a flow chart of a method for implementing quality of service provided in an embodiment of the present application;

[0044] Figure 3 Flowchart 2 of the method for implementing quality of service provided in the embodiment of the present application;

[0045] Figure 4 Flowchart 3 of the method for implementing quality of service business provided in the embodiment of the present application;

[0046] Figure 5 This is the fourth flow chart of the quality of service business implementation method provided in the embodiment of the present application.

[0047] Icon: 10-main control board; 11-main processor; 12-switch chip; 20-interface daughter card. DETAILED DESCRIPTION

[0048] To make the objectives, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Generally, the components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations.

[0049] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for protection, but merely represents selected embodiments of the present application. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the present application without making any creative efforts shall fall within the scope of protection of the present application.

[0050] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.

[0051] In the description of this application, it should be understood that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, or are the orientation or position relationship in which the product of the application is usually placed when in use, or are the orientation or position relationship commonly understood by those skilled in the art. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on this application.

[0052] It should also be noted that, in the description of this application, unless otherwise expressly specified or limited, the terms "disposed," "installed," "connected," and "connected" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to internal connections between two components. Those skilled in the art will understand the specific meanings of the above terms in this application based on the specific circumstances.

[0053] In addition, in the description of the present application, it is understood that relational terms such as the terms "first" and "second" are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also include elements inherent to such process, method, article or equipment. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or equipment comprising the elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.

[0054] The following describes some embodiments of the present application in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments may be combined with each other.

[0055] Please refer to Figure 1 , Figure 1 1 is a connection diagram of the main control board 10 and multiple interface daughter cards 20 provided in an embodiment of the present application. In the embodiment of the present application, the main control board 10 and the multiple interface daughter cards 20 belong to the same network device. The main control board 10 includes a main processor 11 and a switching chip 12, wherein the main processor 11 can be implemented by a CPU, and the main processor 11 and the switching chip 12 are stacked and connected; the switching chip 12 may include multiple physical ports for external message receiving and sending operations (including receiving messages from outside the main control board 10 and sending messages to the outside of the main control board 10). Each physical port of the switching chip 12 can be expanded to form multiple extension ports based on BPE technology. Each extension port is connected to a sub-card interface of an interface sub-card 20 through a separate bridge; wherein, for each extension port that needs to be bridged to the interface sub-card 20, the extension port can be divided into multiple sub-interfaces, so that a sub-card interface of a single interface sub-card 20 can be bridged at the same time through all sub-interfaces under the same extension port, so that the corresponding interface sub-card 20 can use the sub-card interface bridged with the extension port to realize the message sending and receiving interaction function between the interface sub-card 20 and the switching chip 12; the same interface sub-card 20 can include multiple sub-card interfaces, and each sub-card interface is independently bridged to an extension port.

[0056] In an embodiment of the present application, for any interface sub-card 20 connected to the main control board 10, each sub-card interface of the interface sub-card 20 corresponds to a sub-card interface virtual local area network on the main control board 10, so that the identity information of the corresponding interface sub-card 20 on the main control board 10 can be effectively represented by the sub-card interface VLAN identifier of the corresponding sub-card interface virtual local area network and the physical port number to which the interface sub-card 20 is connected.

[0057] For a first sub-card interface of any interface sub-card 20 that bridges multiple sub-interfaces, all sub-interfaces bridged by the first sub-card interface are individually assigned to a sub-interface virtual LAN between the corresponding expansion port and the sub-card interface. At this time, the sub-interface virtual LANs of all the sub-interfaces will be assigned to the sub-card interface virtual LAN corresponding to the first sub-card interface. On this basis, when the interface sub-card 20 receives a message to be forwarded through a second sub-card interface (i.e., a sub-card interface of the corresponding interface sub-card 20 without a bridged sub-interface), it can be directly transmitted to the switching chip 12 included in the main control board 10 for processing via a first sub-card interface belonging to the same interface sub-card 20 as the second sub-card interface, wherein the aforementioned message to be forwarded can be added with a sub-interface virtual local area network identifier (i.e., a sub-interface VLAN identifier) ​​of a sub-interface bridged by the corresponding first sub-card interface at the interface sub-card 20, so that when the switching chip 12 receives a message to be forwarded, it can intuitively know which interface sub-card 20 uploaded the message to be forwarded through which first sub-card interface based on the association relationship between different sub-interface VLAN identifiers and different sub-card interface VLAN identifiers, and the mapping relationship between different sub-card interface VLAN identifiers and different extended port numbers, based on the sub-interface VLAN identifier recorded in the message to be forwarded.

[0058] In an embodiment of the present application, the main processor 11 included in the main control board 10 is mainly responsible for executing business decision operations involved in quality of service business (i.e., determining the actual QoS business operation content that the switching chip 12 needs to perform), and the switching chip 12 executes most of the QoS business operations that require the main processor to process in the existing technology by running a pre-cured specific computer program related to the quality of service business implementation function, so as to make full use of the inherent hardware characteristics of the switching chip 12 to achieve ASIC-level high-precision traffic management effects, and simultaneously alleviate the performance pressure of the main processor 11.

[0059] In the present application, in order to ensure that the switching chip 12 included in the above-mentioned main control board 10 can perform most of the QoS business operations that the main processor was originally responsible for in the prior art in the port expansion scenario, so as to make full use of the inherent hardware characteristics of the switching chip 12 to achieve ASIC-level high-precision traffic management effects and alleviate the performance pressure of the main processor 11, an embodiment of the present application provides a service quality business implementation method applied to the switching chip 12 included in the above-mentioned main control board 10 to achieve the aforementioned purpose. The service quality business implementation method provided by the present application is described in detail below.

[0060] Please refer to Figure 2 , Figure 2 This is one of the flow charts of the quality of service business implementation method provided in the embodiment of the present application. In the embodiment of the present application, the quality of service business implementation method may include steps S210 to S230 to utilize the inherent hardware characteristics of the switching chip 12 to achieve high-precision service quality management effects for registered users, thereby alleviating the performance pressure of the main processor 11.

[0061] Step S210: Send the user service message to be scheduled from any interface daughter card to the main processor to add service quality information, and receive the target user service message fed back by the main processor.

[0062] In this embodiment, the sub-interface VLAN ID recorded in the user service message to be scheduled uploaded by any interface sub-card 20 belongs to the registered user with QoS service requirements pre-configured at the main processor 11; when the switching chip 12 receives any user service message to be scheduled, it can be based on the source sub-interface VLAN ID of the source interface sub-card (that is, the interface sub-card 20 that uploaded the user service message to be scheduled) recorded in the user service message to be scheduled, according to the pre-configured association relationship between different sub-card interface VLAN IDs and different sub-interface VLAN IDs, as well as the sub-card interface of all interface sub-cards 20. The mapping relationship between the VLAN identifier and all extended port numbers is used to determine the source extended port number of the switching chip 12 for receiving the user service message to be scheduled, and based on the source extended port number and the corresponding source sub-interface VLAN identifier, the first logical source sub-interface number of the user service message to be scheduled at the switching chip 12 (that is, the logical interface number of the source sub-interface of the switching chip 12 for receiving the user service message to be scheduled) is comprehensively calculated, so as to ensure that the user service message to be scheduled can be sent to the main processor 11 normally by adding the first logical source sub-interface number to the user service message to be scheduled.

[0063] After receiving the user service message to be scheduled sent by the switching chip 12, the main processor 11 will determine the first scheduling priority that the user service message to be scheduled needs to be implemented at the switching chip 12 based on the QoS service requirement information recorded in the user service message to be scheduled, or the QoS service requirement information pre-configured by the registered user at the main processor 11 (including the upper limit of traffic bandwidth, the lower limit of traffic bandwidth, the scheduling priority distribution range, the committed information rate, the peak information rate, etc.), and at the same time, the main processor 11 will determine the first scheduling priority that the user service message to be scheduled needs to be implemented at the switching chip 12 based on the destination MAC (Media Access Control) in the user service message to be scheduled. Control, Media Access Control) address, based on the mapping relationship between the subcard interface VLAN identifiers of all interface subcards 20 and all extended port numbers, the association relationship between different subcard interface VLAN identifiers and different sub-interface VLAN identifiers, and the association relationship between all sub-interface VLAN identifiers involved in all interface subcards 20 and the learned MAC addresses, determine the extended port number and sub-interface VLAN identifier actually associated with the destination MAC address, calculate the first logical destination sub-interface number of the to-be-scheduled user service message at the switching chip 12 (that is, the logical interface number of the destination sub-interface of the switching chip 12 used to send the to-be-scheduled user service message), and use the extended port number actually associated with the destination MAC address to determine the first destination port identifier of the to-be-scheduled user service message at the switching chip 12 (that is, the physical port number or extended port number used to represent the message egress).

[0064] Then, the main processor 11 will use the first logical destination sub-interface number, the first destination port identifier and the first scheduling priority of the corresponding user service message to be scheduled at the switching chip 12 as the service quality business information adapted to the QoS business demand information of the user service message to be scheduled, and add it to the user service message to be scheduled to obtain the corresponding target user service message to complete the service quality business decision operation for the user service message to be scheduled.

[0065] Step S220: Add the target user service message to the first extended queue group corresponding to the first logical destination sub-interface number according to the first scheduling priority for service quality scheduling, and determine the first target sub-card pointed to by the first logical destination sub-interface number according to the first destination port identifier.

[0066] In this embodiment, after the switching chip 12 receives the target user service message fed back by the main processor 11, it extracts the first logical destination sub-interface number, the first destination port identifier, and the first scheduling priority recorded in the target user service message, so as to select the first cache queue adapted to the first scheduling priority in the first extended queue group corresponding to the first logical destination sub-interface number to perform queue caching output on the target user service message, thereby realizing the quality of service scheduling function for the target user service message, wherein the first extended queue group includes multiple message cache queues with different queue priorities, and the message output rates of the multiple message cache queues are different from each other, so as to ensure that there is a message cache queue in the first extended queue group that meets the QoS service requirements of the corresponding registered user. At this time, the step of "adding the target user service message to the first extended queue group corresponding to the first logical destination sub-interface number according to the first scheduling priority for quality of service scheduling" in step S220 may include:

[0067] Among the pre-built multiple idle extended queue groups, one idle extended queue group is allocated to the first logical destination sub-interface number of the target user service message as a first extended queue group, wherein each idle extended queue group includes multiple message buffer queues with different queue priorities, and the multiple message buffer queues in the same idle extended queue group have different message output rates;

[0068] A first cache queue matching the first scheduling priority of the target user service message is searched among the multiple message cache queues included in the first extended queue group, and the target user service message is added to the first cache queue for queue cache output.

[0069] During this process, the first extended queue group can be used as the target extended queue group for the corresponding target user service messages, and the first cache queue can be used as the target cache queue for the corresponding target user service messages; the message output rates of multiple message cache queues in the same idle extended queue group are adaptively configured according to the different QoS service demand information of the corresponding registered users, and different registered users (i.e., the first logical destination sub-interface number) each correspond to a different first extended queue group.

[0070] In this embodiment, when the switching chip 12 extracts the first destination port identifier and the first logical destination sub-interface number recorded in the target user service message, it further determines, based on the actual port type of the first destination port identifier, the first target sub-card (i.e., the interface sub-card 20 to which the target user service message needs to be transmitted) after leaving the switching chip 12. Specifically, when the actual port type of the first destination port identifier belongs to a physical port of the switching chip 12, it is necessary to determine the extended port actually associated with the destination MAC address of the target user service message, and then use the interface sub-card 20 connected to the extended port bridge as the corresponding first target sub-card. Furthermore, when the actual port type of the first destination port identifier belongs to an extended port of the switching chip 12, the interface sub-card 20 connected to the extended port bridge represented by the first destination port identifier can be directly used as the corresponding first target sub-card.

[0071] Therefore, when the first destination port identifier of the target user service message belongs to the physical port number of the switching chip 12, the step of "determining the first target subcard pointed to by the first logical destination sub-interface number according to the first destination port identifier" in the above step S220 may include:

[0072] Extracting the actual sub-interface VLAN identifier associated with the first target sub-card from the first logical destination sub-interface number of the target user service message; wherein the actual sub-interface VLAN identifier can be represented by the sub-interface VLAN identifier actually associated with the destination MAC address in the target user service message;

[0073] Calling the egress processing engine module of the switching chip 12 to perform a quality of service access control list match or a quality of service service classification list match on the port characteristics of all extended ports of the switching chip 12 based on the extracted actual sub-interface VLAN identifier and the first destination port identifier of the target user service message, and obtain the actual extended port number of the first extended port for the target user service message;

[0074] According to the pre-configured mapping relationship between the subcard interface VLAN identifiers of all interface subcards 20 and all extended port numbers, the actual subcard interface VLAN identifier of the first target subcard to which the target user service message needs to be transmitted is determined based on the actual extended port number of the first extended port.

[0075] During this process, the quality of service access control list and the quality of service service classification list both record the association between all physical port numbers, all extended port numbers, all sub-interface VLAN IDs, and all sub-card interface VLAN IDs. The first extended port can be used as the target extended port that the corresponding target user service message needs to pass through.

[0076] When the first destination port identifier of the target user service message belongs to the extended port number of the switching chip 12, the step of "determining the first target subcard to which the first logical destination sub-interface number points according to the first destination port identifier" in the above step S220 may include:

[0077] Invoke the BPE multiplexer of the switching chip 12 to search for the first subcard interface VLAN identifier directly mapped to the first destination port identifier of the target user service message based on the pre-configured mapping relationship between the subcard interface VLAN identifiers of all interface subcards 20 and all extended port numbers;

[0078] The found first sub-card interface VLAN identifier is used as the actual sub-card interface VLAN identifier of the first target sub-card to which the target user service message needs to be transmitted.

[0079] In this process, the first sub-card interface VLAN identifier may be used as the target sub-card interface VLAN identifier directly mapped to the first destination port identifier for the corresponding target user service message.

[0080] Step S230: The target user service message after the quality of service scheduling is transmitted to the first target sub-card for message forwarding.

[0081] In this embodiment, after the switching chip 12 completes the service quality scheduling operation for the target user service message and determines the actual sub-card interface VLAN ID of the first target sub-card to which the target user service message needs to arrive, the actual sub-card interface VLAN ID of the first target sub-card can be added to the corresponding target user service message, and the target physical port directly connected to the first target sub-card (i.e., the physical port to which the first extension port connected to the corresponding first target sub-card network bridge belongs) is determined. Then, based on the actual sub-card interface VLAN ID of the first target sub-card, the target user service message to which the sub-card interface VLAN ID is added is transmitted to the first target sub-card via the corresponding target physical port, so that the first target sub-card forwards the received target user service message, thereby completing the QoS service management operation for the registered user service message.

[0082] Therefore, the present application can transfer most of the QoS business operations that the main processor needs to implement for registered users in the prior art to the switching chip 12 in the port expansion scenario by executing the above steps S210 to S230, so as to make full use of the inherent hardware characteristics of the switching chip 12 to achieve high-precision service quality management effects for registered users and alleviate the performance pressure of the main processor 11.

[0083] Alternatively, see Figure 3, Figure 3 This is the second flow chart of the method for implementing the quality of service business provided by the embodiment of this application. Figure 2 Compared with the service quality business implementation method shown in Figure 3 The illustrated method for implementing the quality of service service may further include steps S240 to S260 , so as to utilize the inherent hardware characteristics of the switching chip 12 to implement a simple basic message caching and forwarding effect for non-registered users who do not have QOS service requirements.

[0084] Step S240: Send the non-user service message to be forwarded from any interface daughter card to the main processor to add chip outbound information, and receive the first non-user service message fed back by the main processor.

[0085] In this embodiment, the sub-interface VLAN ID recorded in the non-user service message to be forwarded uploaded by any interface sub-card 20 does not belong to the registered user pre-configured at the main processor 11. After receiving the non-user service message to be forwarded sent by the switching chip 12, the main processor 11 will detect whether the non-user service message to be forwarded contains QoS service requirement information, or detect whether the main processor 11 is configured with QoS service requirement information for non-registered users. If it is detected that there is no QoS service requirement information in the non-user service message to be forwarded, or the main processor 11 has not configured QoS service requirement information for non-registered users, it is determined that the non-user service message to be forwarded only needs to achieve a simple basic cache forwarding effect. At this time, the main processor 11 will, based on the destination MAC address in the non-user service message to be forwarded, the sub-card interface VLAN IDs of all interface sub-cards 20 and all extended The mapping relationship between the extended port numbers, the association relationship between different sub-card interface VLAN identifiers and different sub-interface VLAN identifiers, and the association relationship between all sub-interface VLAN identifiers and learned MAC addresses involved in all interface sub-cards 20 are determined to determine the extended port number and sub-interface VLAN identifier actually associated with the corresponding destination MAC address to calculate the second logical destination sub-interface number of the non-user service message to be forwarded at the switching chip 12 (that is, the logical interface number of the destination sub-interface of the switching chip 12 for sending the non-user service message to be forwarded), and use the extended port number actually associated with the destination MAC address to determine the second destination port identifier of the non-user service message to be forwarded at the switching chip 12.

[0086] Then, the main processor 11 will use the second logical destination sub-interface number and the second destination port identifier of the corresponding non-user service message to be forwarded at the switching chip 12 as the chip outbound information of the non-user service message to be forwarded, and add it to the non-user service message to be forwarded to obtain the corresponding first non-user service message, so as to complete the basic cache output decision operation for the non-user service message to be forwarded.

[0087] Step S250: Add the first non-user service message to the basic queue group corresponding to the second destination port identifier for queue buffering and output, and determine the second target subcard pointed to by the second logical destination sub-interface number according to the second destination port identifier.

[0088] In this embodiment, when the switching chip 12 receives the first non-user service message fed back by the main processor 11, it randomly selects a basic cache queue from the adapted basic queue group (which includes at least one basic cache queue, and the message output rates of the at least one basic cache queue can be the same or different) according to the second destination port identifier recorded in the first non-user service message, to perform queue cache output for the first non-user service message, thereby realizing the basic cache output function for the non-user service message. When the actual port type of the second destination port identifier belongs to the physical port of the switching chip 12, the basic queue group corresponding to the second destination port identifier is actually a queue group used by all extended ports under the corresponding physical port; and when the actual port type of the second destination port identifier belongs to the extended port of the switching chip 12, the basic queue group corresponding to the second destination port identifier is actually a queue group used solely by the corresponding extended port.

[0089] At the same time, the switching chip 12 further determines, based on the actual port type of the second destination port identifier recorded in the first non-user service message, the second target subcard (i.e., the interface subcard 20 to which the first non-user service message is intended to be transmitted) to which the first non-user service message needs to be transmitted after leaving the switching chip 12. Specifically, when the actual port type of the second destination port identifier belongs to a physical port of the switching chip 12, it is necessary to determine the extended port actually associated with the destination MAC address of the first non-user service message, and then use the interface subcard 20 connected to the extended port bridge as the corresponding second target subcard. Furthermore, when the actual port type of the second destination port identifier belongs to an extended port of the switching chip 12, the interface subcard 20 connected to the extended port bridge represented by the second destination port identifier can be directly used as the corresponding second target subcard.

[0090] Therefore, when the second destination port identifier of the first non-user service message belongs to the physical port number of the switching chip 12, the step of "determining the second target subcard pointed to by the second logical destination sub-interface number according to the second destination port identifier" in the above step S250 may include:

[0091] Extracting the actual sub-interface VLAN identifier associated with the second target sub-card from the second logical destination sub-interface number of the first non-user service message; wherein the actual sub-interface VLAN identifier can be represented by the sub-interface VLAN identifier actually associated with the destination MAC address in the first non-user service message;

[0092] calling the egress processing engine module of the switching chip 12 to perform a quality of service access control list match or a quality of service service classification list match on the port characteristics of all extended ports of the switching chip 12 based on the extracted actual sub-interface VLAN identifier and the second destination port identifier of the first non-user service message, and obtain an actual extended port number of the second extended port for the first non-user service message;

[0093] According to the pre-configured mapping relationship between the subcard interface VLAN identifiers of all interface subcards 20 and all extended port numbers, the actual subcard interface VLAN identifier of the second target subcard to which the first non-user service message needs to be transmitted is determined based on the actual extended port number of the second extended port.

[0094] During this process, the second extension port may serve as a target extension port through which the first non-user service message needs to pass.

[0095] When the second destination port identifier of the first non-user service message belongs to the extended port number of the switching chip 12, the step of "determining the second target subcard to which the second logical destination sub-interface number points according to the second destination port identifier" in the above step S250 may include:

[0096] Invoke the BPE multiplexer of the switching chip 12 to search for a second subcard interface VLAN identifier directly mapped to the second destination port identifier of the first non-user service message based on a pre-configured mapping relationship between the subcard interface VLAN identifiers of all interface subcards 20 and all extended port numbers;

[0097] The found second sub-card interface VLAN identifier is used as the actual sub-card interface VLAN identifier of the second target sub-card to which the first non-user service message needs to be transmitted.

[0098] In this process, the second sub-card interface VLAN identifier may be used as the target sub-card interface VLAN identifier directly mapped to the second destination port identifier corresponding to the first non-user service message.

[0099] Step S260: The first non-user service message output by the basic queue group is transmitted to the second target subcard for message forwarding.

[0100] In this embodiment, after the switching chip 12 completes the basic cache output operation for the first non-user service message and determines the actual sub-card interface VLAN ID of the second target sub-card to which the first non-user service message needs to go, the actual sub-card interface VLAN ID of the second target sub-card can be added to the corresponding first non-user service message, and the target physical port directly connected to the second target sub-card (i.e., the physical port to which the second extension port connected to the corresponding second target sub-card bridge belongs) is determined. Then, based on the actual sub-card interface VLAN ID of the second target sub-card, the first non-user service message to which the sub-card interface VLAN ID is added is transmitted to the second target sub-card via the corresponding target physical port, so that the second target sub-card forwards the received first non-user service message, thereby completing the basic cache forwarding effect for the unregistered user service message.

[0101] Therefore, the present application can fully utilize the inherent hardware characteristics of the switching chip 12 by executing the above steps S240 to S260 to achieve a simple basic message caching and forwarding effect for non-registered users who do not have QOS service requirements.

[0102] Alternatively, see Figure 4 , Figure 4 This is the third flow chart of the method for implementing the quality of service business provided by the embodiment of this application. Figure 2 Compared with the service quality business implementation method shown in Figure 4 The quality of service business implementation method shown may also include steps S270 to S290, which fully utilize the inherent hardware characteristics of the switching chip 12 to achieve high-precision service quality management effects for non-registered users with QOS business needs, thereby alleviating the performance pressure of the main processor 11.

[0103] Step S270: Send the non-user service message to be forwarded from any interface daughter card to the main processor to add service quality information, and receive the second non-user service message fed back by the main processor.

[0104] In this embodiment, after receiving the non-user service message to be forwarded sent by the switching chip 12, the main processor 11 detects whether QoS service requirement information is recorded in the non-user service message to be forwarded, or detects whether the main processor 11 is configured with QoS service requirement information for non-registered users. If the main processor 11 detects that QoS service requirement information is present in the non-user service message to be forwarded, or if the main processor 11 is configured with QoS service requirement information for non-registered users, the main processor 11 determines, based on the detected QoS service requirement information, a second scheduling priority to be implemented for the non-user service message to be forwarded at the switching chip 12. Simultaneously, the switching chip 12 determines the third logical destination sub-interface number and third destination port identifier corresponding to the non-user service message to be forwarded at the switching chip 12, referring to the specific method for determining the second logical destination sub-interface number and the second destination port identifier in step S240 above.

[0105] Then, the main processor 11 will use the third logical destination sub-interface number, the third destination port identifier and the second scheduling priority of the corresponding non-user service message to be forwarded at the switching chip 12 as the service quality business information adapted to the QoS business demand information of the non-user service message to be forwarded, and add it to the non-user service message to be forwarded to obtain the corresponding second non-user service message to complete the service quality business decision operation for the non-user service message to be forwarded.

[0106] Step S280: Add the second non-user service message to the second extended queue group corresponding to the third logical destination sub-interface number according to the second scheduling priority for service quality scheduling, and determine the third target sub-card pointed to by the third logical destination sub-interface number according to the third destination port identifier.

[0107] In this embodiment, when the switching chip 12 receives the second non-user service message fed back by the main processor 11, it extracts the third logical destination sub-interface number, the third destination port identifier, and the second scheduling priority recorded in the second non-user service message, so as to select a second cache queue adapted to the second scheduling priority from the second extended queue group corresponding to the third logical destination sub-interface number to perform queue caching output on the second non-user service message, thereby implementing a quality of service scheduling function for the second non-user service message, wherein the second extended queue group includes multiple message cache queues with different queue priorities, and the message output rates of each of the multiple message cache queues are different from each other, so as to ensure that there is a message cache queue in the second extended queue group that meets the QoS service requirements of the corresponding unregistered user. At this time, the step of "adding the second non-user service message to the second extended queue group corresponding to the third logical destination sub-interface number according to the second scheduling priority for quality of service scheduling" in step S270 may include:

[0108] Among the pre-built multiple idle extended queue groups, one idle extended queue group is allocated to the third logical destination sub-interface number of the second non-user service message as a second extended queue group, wherein each idle extended queue group includes multiple message buffer queues with different queue priorities, and the multiple message buffer queues in the same idle extended queue group have different message output rates;

[0109] A second cache queue matching the second scheduling priority of the second non-user service message is searched among the multiple message cache queues included in the second extended queue group, and the second non-user service message is added to the second cache queue for queue cache output.

[0110] During this process, the second extended queue group can serve as the target extended queue group corresponding to the second non-user service message, and the second cache queue can serve as the target cache queue corresponding to the second non-user service message; the message output rates of multiple message cache queues in the same idle extended queue group are adaptively configured according to the different QoS service requirement information of the corresponding non-registered users, and different unregistered users (i.e., the third logical destination sub-interface number) each correspond to a different second extended queue group.

[0111] In this embodiment, when the switch chip 12 extracts the third destination port identifier and the third logical destination sub-interface number recorded in the corresponding second non-user service packet, it further determines, based on the actual port type of the third destination port identifier, the third target sub-card (i.e., the interface sub-card 20 to which the corresponding second non-user service packet is intended to be transmitted) to which the corresponding second non-user service packet needs to be transmitted after leaving the switch chip 12. Specifically, when the actual port type of the third destination port identifier is a physical port of the switch chip 12, it is necessary to determine the extension port actually associated with the destination MAC address of the second non-user service packet, and then use the interface sub-card 20 connected to the extension port bridge as the corresponding third target sub-card. When the actual port type of the third destination port identifier is an extension port of the switch chip 12, the interface sub-card 20 connected to the extension port bridge represented by the third destination port identifier can be directly used as the corresponding third target sub-card.

[0112] Therefore, when the third destination port identifier of the second non-user service message belongs to the physical port number of the switching chip 12, the step of "determining the third target subcard pointed to by the third logical destination sub-interface number according to the third destination port identifier" in the above step S280 may include:

[0113] Extracting the actual sub-interface VLAN identifier associated with the third target sub-card from the third logical destination sub-interface number of the second non-user service message; wherein the actual sub-interface VLAN identifier can be represented by the sub-interface VLAN identifier actually associated with the destination MAC address in the second non-user service message;

[0114] calling the egress processing engine module of the switching chip 12 to perform a quality of service access control list match or a quality of service service classification list match on the port characteristics of all extended ports of the switching chip 12 based on the extracted actual sub-interface VLAN identifier and the third destination port identifier of the second non-user service message, and obtain an actual extended port number of the third extended port for the second non-user service message;

[0115] According to the pre-configured mapping relationship between the subcard interface VLAN identifiers of all interface subcards 20 and all extended port numbers, the actual subcard interface VLAN identifier of the third target subcard to which the second non-user service message needs to be transmitted is determined based on the actual extended port number of the third extended port.

[0116] In this process, the third extension port may serve as a target extension port through which the second non-user service message needs to pass.

[0117] When the third destination port identifier of the second non-user service message belongs to the extended port number of the switching chip 12, the step of "determining the third target subcard pointed to by the third logical destination sub-interface number according to the third destination port identifier" in the above step S280 may include:

[0118] Invoke the BPE multiplexer of the switching chip 12 to search for a third subcard interface VLAN identifier that is directly mapped to the third destination port identifier of the second non-user service message based on a pre-configured mapping relationship between the subcard interface VLAN identifiers of all interface subcards 20 and all extended port numbers;

[0119] The found third sub-card interface VLAN identifier is used as the actual sub-card interface VLAN identifier of the third target sub-card to which the second non-user service message needs to be transmitted.

[0120] In this process, the third sub-card interface VLAN identifier may be used as the target sub-card interface VLAN identifier directly mapped to the third destination port identifier corresponding to the second non-user service message.

[0121] Step S290: Transmit the second non-user service message after the quality of service scheduling is completed to the third target sub-card for message forwarding.

[0122] In this embodiment, after the switching chip 12 completes the QoS scheduling operation for the second non-user service message and determines the actual subcard interface VLAN ID of the third target subcard to which the second non-user service message needs to go, the switching chip 12 can add the actual subcard interface VLAN ID of the third target subcard to the corresponding second non-user service message and determine the target physical port directly connected to the third target subcard (i.e., the physical port to which the third extension port connected to the corresponding third target subcard network bridge belongs). Then, based on the actual subcard interface VLAN ID of the third target subcard, the second non-user service message to which the subcard interface VLAN ID has been added is transmitted to the third target subcard via the corresponding target physical port, so that the third target subcard forwards the received second non-user service message, thereby completing the QoS service management operation for the unregistered user service message.

[0123] Therefore, the present application can fully utilize the inherent hardware characteristics of the switching chip 12 by executing the above steps S270 to S290, achieve high-precision service quality management effects for non-registered users with QOS service needs, and alleviate the performance pressure of the main processor 11.

[0124] Alternatively, see Figure 5 , Figure 5 This is the fourth flow chart of the method for implementing the quality of service business provided by the embodiment of this application. Figure 2 、 Figure 3 or Figure 4 Compared with the service quality business implementation method shown in Figure 5 The quality of service business implementation method shown may also include steps S310 to S320 to utilize the inherent hardware characteristics of the switching chip 12 to ensure that the corresponding switching chip 12 can replace the main processor 11 to perform most QoS business operations, thereby achieving ASIC-level high-precision traffic management effects.

[0125] Step S310 : constructing a plurality of idle extended queue groups according to the number of daughter card interfaces of all interface daughter cards bridged with the switch chip and the number of sub-interface bridges of each daughter card interface.

[0126] In this embodiment, the number of corresponding idle extended queue groups constructed is less than or equal to the sum of the number of sub-interface bridges of all sub-card interfaces connected to the switching chip 12 bridge, wherein each constructed idle extended queue group includes multiple message cache queues with different queue priorities, and the message output rates of the multiple message cache queues in the same idle extended queue group are different, and the message output rate of each message cache queue is adaptively adjusted according to the different configured QoS service demand information.

[0127] Step S320, establish a mapping relationship between the sub-card interface VLAN IDs of all interface sub-cards bridged by the switching chip and all extended port numbers, and construct a quality of service access control list or quality of service service classification list related to the physical port number, extended port number and sub-card interface VLAN ID of the switching chip.

[0128] Therefore, the present application can implement high-precision traffic management at the ASIC level by executing the above steps S310 to S320 and utilizing the inherent hardware characteristics of the switching chip 12 to ensure that the corresponding switching chip 12 can replace the main processor 11 to perform most QoS business operations.

[0129] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.

[0130] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part. If the function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a readable storage medium and includes several instructions for causing the switching chip 12 stacked and connected to the main processor 11 included in the above-mentioned main control board 10 to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned readable storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program code.

[0131] Furthermore, it should be understood that improvements to a technology can be divided into hardware improvements (e.g., improvements to circuit structures such as diodes, transistors, and switches) and software improvements (improvements to method flows). However, with the advancement of technology, many current method flow improvements can now be considered direct improvements to hardware circuit modules. Designers almost always obtain the corresponding hardware circuit modules by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that a hardware physical module cannot achieve improvements to a method flow. For example, a programmable logic device (PLD) (e.g., a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by user programming of the device. Designers can "integrate" a digital system on a PLD through their own programming, without having to hire a chip manufacturer to design and produce a dedicated integrated circuit chip.

[0132] Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly done using "logic compiler" software. This is similar to the software compilers used during program development. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Among them, VHDL (Very High Speed ​​Integrated Circuit Hardware Description Language) and Verilog are currently the most commonly used.

[0133] Therefore, those skilled in the art should also be aware that by simply performing some logical programming on the method flow using the above-mentioned hardware description languages ​​and programming it into an integrated circuit, it is possible to easily obtain a hardware circuit module that implements the logical method flow, thereby obtaining a main control board 10 or switching chip 12 that directly utilizes hardware components to implement the aforementioned method flow.

[0134] The above are merely various embodiments of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A method for implementing quality of service business, characterized in that: A switching chip connected to a main processor stack in a main control board is applied, wherein at least one physical port of the switching chip is mapped to multiple expansion ports, each expansion port can be divided into multiple sub-interfaces, wherein all sub-interfaces under the same expansion port are simultaneously bridged to a sub-card interface of a single interface sub-card; the implementation method includes: Sending a user service message to be scheduled from any interface daughter card to the main processor to add quality of service service information, and receiving a target user service message fed back by the main processor, wherein the target user service message is a user service message to be scheduled to which quality of service service information has been added, and the quality of service service information includes the first logical destination sub-interface number, the first destination port identifier, and the first scheduling priority of the user service message to be scheduled at the switching chip; adding the target user service message to a first extended queue group corresponding to the first logical destination sub-interface number according to the first scheduling priority for quality of service scheduling, and determining a first target sub-card to which the first logical destination sub-interface number points according to the first destination port identifier; The target user service message after completing the service quality scheduling is transmitted to the first target sub-card for message forwarding.

2. The implementation method according to claim 1, characterized in that: The implementation method further includes: Sending a non-user service message to be forwarded from any interface daughter card to the main processor for adding chip outbound information, and receiving a first non-user service message fed back by the main processor, wherein the first non-user service message is a non-user service message to be forwarded to which chip outbound information has been added, and the chip outbound information includes the second logical destination sub-interface number and the second destination port identifier of the non-user service message to be forwarded at the switching chip; Add the first non-user service packet to the basic queue group corresponding to the second destination port identifier for queue buffering and output, and determine the second target subcard to which the second logical destination sub-interface number points according to the second destination port identifier; The first non-user service message output by the basic queue group is transmitted to the second target subcard for message forwarding.

3. The implementation method according to claim 1, characterized in that: The implementation method further includes: Sending a non-user service message to be forwarded from any interface daughter card to the main processor to add quality of service service information, and receiving a second non-user service message fed back by the main processor, wherein the second non-user service message is a non-user service message to be forwarded to which the quality of service service information has been added, and the quality of service service information includes a third logical destination sub-interface number, a third destination port identifier, and a second scheduling priority of the non-user service message to be forwarded at the switching chip; adding the second non-user service message to the second extended queue group corresponding to the third logical destination sub-interface number according to the second scheduling priority for quality of service scheduling, and determining the third target sub-card pointed to by the third logical destination sub-interface number according to the third destination port identifier; The second non-user service message after completing the quality of service scheduling is transmitted to the third target sub-card for message forwarding.

4. The implementation method according to claim 1 or 3, characterized in that: For any one of the target user service message and the second non-user service message to be scheduled, the step of adding the message to be scheduled to the target extended queue group corresponding to the logical destination sub-interface number of the message to be scheduled according to the scheduling priority of the message to be scheduled for quality of service scheduling includes: Among the pre-built multiple idle extended queue groups, one idle extended queue group is allocated to the logical destination sub-interface number of the message to be scheduled as the target extended queue group, wherein each idle extended queue group includes multiple message buffer queues with different queue priorities, and the multiple message buffer queues in the same idle extended queue group have different message output rates; A target cache queue matching the scheduling priority of the message to be scheduled is searched among the multiple message cache queues included in the target extended queue group, and the message to be scheduled is added to the target cache queue for queue cache output.

5. The implementation method according to any one of claims 1 to 3, characterized in that: In a case where the destination port identifier of any one of the target user service message, the first non-user service message, and the second non-user service message to be forwarded belongs to the physical port number of the switching chip, the step of determining, according to the destination port identifier of the message to be forwarded, the target subcard to which the logical destination sub-interface number of the message to be forwarded points, includes: Extracting the actual sub-interface VLAN ID associated with the target sub-card from the logical destination sub-interface number of the message to be forwarded; Calling the egress processing engine module of the switching chip to perform a quality of service access control list match or a quality of service service classification list match on the port characteristics of all extended ports of the switching chip based on the actual sub-interface VLAN identifier and the destination port identifier of the message to be forwarded, and obtaining the actual extended port number of the target extended port for the message to be forwarded; According to the pre-configured mapping relationship between the subcard interface VLAN identifiers of all interface subcards and all extended port numbers, the actual subcard interface VLAN identifier of the target subcard to which the message to be forwarded needs to be transmitted is determined based on the actual extended port number.

6. The implementation method according to any one of claims 1 to 3, characterized in that: In a case where the destination port identifier of any one of the target user service message, the first non-user service message, and the second non-user service message to be forwarded belongs to the extended port number of the switching chip, the step of determining, according to the destination port identifier of the message to be forwarded, the target subcard to which the logical destination sub-interface number of the message to be forwarded points, comprises: Invoke the BPE multiplexer of the switching chip to search for the target subcard interface VLAN identifier directly mapped to the destination port identifier of the message to be forwarded based on the pre-configured mapping relationship between the subcard interface VLAN identifiers of all interface subcards and all extended port numbers; The found target sub-card interface VLAN identifier is used as the actual sub-card interface VLAN identifier of the target sub-card to which the message to be forwarded needs to be transmitted.

7. The implementation method according to any one of claims 1 to 3, characterized in that: The step of transmitting any one of the target user service message, the first non-user service message, and the second non-user service message to be forwarded to the target subcard pointed to by the corresponding logical destination sub-interface number for message forwarding includes: Adding the actual sub-card interface VLAN identifier of the target sub-card corresponding to the message to be forwarded to the message to be forwarded, and determining the target physical port directly connected to the corresponding target sub-card; Based on the actual subcard interface VLAN ID of the target subcard, the message to be forwarded after adding the subcard interface VLAN ID is transmitted to the target subcard via the target physical port, so that the target subcard forwards the received message to be forwarded.

8. The implementation method according to any one of claims 1 to 3, characterized in that: The implementation method includes: Constructing a plurality of idle extended queue groups according to the number of subcard interfaces of all interface subcards bridged with the switching chip and the number of sub-interface bridges of each subcard interface, wherein the number of idle extended queue groups constructed is less than or equal to the sum of the number of sub-interface bridges of all subcard interfaces; Establish a mapping relationship between the subcard interface VLAN identifiers of all interface subcards bridged by the switching chip and all extended port numbers, and construct a quality of service access control list or a quality of service service classification list related to the physical port number, extended port number and subcard interface VLAN identifier of the switching chip.

9. A main control board, characterized in that: The system comprises a main processor and a switching chip, wherein the switching chip is stacked and connected to the main processor, at least one physical port of the switching chip is mapped and extended with multiple expansion ports, each expansion port can be divided into multiple sub-interfaces, wherein all sub-interfaces under the same expansion port are simultaneously bridged to a sub-card interface of a single interface sub-card; The switching chip stores a computer program and can run the computer program to cooperate with the main processor to implement the quality of service business implementation method according to any one of claims 1 to 8.

10. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a switching chip in a main control board that is stacked and connected to a main processor, the quality of service service implementation method according to any one of claims 1 to 8 is implemented.