WO2020248996A1 - QoS处理及控制方法及网络接口控制器 - Google Patents
QoS处理及控制方法及网络接口控制器 Download PDFInfo
- Publication number
- WO2020248996A1 WO2020248996A1 PCT/CN2020/095287 CN2020095287W WO2020248996A1 WO 2020248996 A1 WO2020248996 A1 WO 2020248996A1 CN 2020095287 W CN2020095287 W CN 2020095287W WO 2020248996 A1 WO2020248996 A1 WO 2020248996A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- qos
- data
- network
- system bus
- mapping relationship
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2491—Mapping quality of service [QoS] requirements between different networks
Definitions
- This application relates to the field of data forwarding technology, and in particular to a QoS processing method, device and electronic equipment. This application also relates to QoS control methods, devices and electronic equipment. This application also relates to a network interface controller.
- QoS Quality of Service
- Network applications generally involve data communication networks between servers and system bus interconnection networks within servers (hereinafter referred to as system bus interconnection networks).
- the so-called data communication network refers to a network used for data communication between servers.
- a data center network has a complete QoS setting to reduce interference between traffic and ensure the quality of service between different traffic.
- the system bus interconnection network also has a similar QoS mechanism.
- the PCIE bus supports TC and VC two-level QoS mechanisms.
- TC refers to the TC (Traffic Class) in the TLP header of the PCIE, with a value range of 0-7 , The larger the value, the higher the priority, and the 0 priority is the lowest, indicating the service quality classification of the bus transaction layer.
- VC is a virtual channel of the PCIE bus.
- the PCIE bus device maps the TC value to the VC value for data transmission.
- the problem in the prior art is that the QoS mechanism of the data communication network and the QoS mechanism of the system bus interconnection network are in a completely isolated state.
- the network interface controller In the network card, the QoS mechanism of the data communication network and the QoS mechanism of the system bus interconnection network are two disconnected QoS domains.
- the traffic that gets high quality of service in the data center network may be only the lowest quality of service inside the server.
- the network application cannot obtain the required communication performance and cannot realize end-to-end QoS control.
- the existing equipment does not support the full set of PCIE bus specifications when implementing the PCIE bus function. For example, all traffic is mapped to TC0 (the lowest priority) and VC0 (the lowest priority), thus, the system bus interconnection network
- the QoS system is completely missing.
- This application provides a QoS processing method, which solves the problem of QoS domain isolation between the data communication network and the system bus interconnection network.
- This application provides a QoS processing method, including:
- mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network is established; wherein, The mapping relationship is used to perform QoS control on the data transmitted between the data communication network and the system bus interconnection network.
- mapping relationship includes:
- the first QoS configuration data obtain the first mapping relationship between the communication queue for storing the data and the QoS label of the system bus interconnection network transmission layer, and the system bus interconnection network QoS label and the system bus The second mapping relationship between the link layer QoS labels of the interconnection network;
- the first mapping relationship includes at least one of the following information: system bus interconnection network transport layer QoS label, system bus interconnection network link layer QoS label;
- the second QoS domain includes: data communication network Network layer QoS label.
- Optional also includes:
- the mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network is obtained.
- Optional also includes:
- QoS control is performed on the data transmitted between the data communication network and the system bus interconnection network.
- This application provides a QoS control method, including:
- QoS control is performed on the data transmitted between the data communication network and the system bus interconnection network.
- the obtaining the mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network includes:
- the first mapping relationship, the second mapping relationship, and the third mapping relationship are used as the mapping between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network Relationship; wherein, the first QoS domain includes at least one of the following information: system bus interconnection network transport layer QoS label, system bus interconnection network link layer QoS label; the second QoS domain includes: data communication network Network layer QoS label.
- the performing QoS control on the data transmitted between the data communication network and the system bus interconnection network according to the mapping relationship includes:
- the data is scheduled from the communication queue to the target flow category queue corresponding to the system bus interconnection network transmission layer QoS label.
- Optional also includes:
- the data is scheduled from the target flow category queue to the target virtual channel queue corresponding to the system bus interconnection network link layer QoS label.
- the performing QoS control on the data transmitted between the data communication network and the system bus interconnection network according to the mapping relationship includes:
- the marked data is transmitted to the data communication network, and the QoS control is performed in the data communication network according to the QoS label information of the marked data.
- Optional also includes:
- the corresponding network virtual channel information is obtained, and the data is forwarded to the target device in the data communication network.
- the performing QoS control on the data transmitted between the data communication network and the system bus interconnection network according to the mapping relationship includes: according to the first mapping relationship and the second mapping relationship At least one, QoS control is performed on the data sent from the data communication network to the system bus interconnection network.
- the performing QoS control on the data transmitted between the data communication network and the system bus interconnection network according to the mapping relationship includes: performing the QoS control on the system bus interconnection network according to the third mapping relationship Data sent to the data communication network is subject to QoS control.
- the performing QoS control on the data transmitted between the data communication network and the system bus interconnection network according to the mapping relationship includes at least one of the following processing:
- the data sent from the data communication network to the system bus interconnection network is dispatched from the input message queue to the virtual channel queue of the system bus interconnection network link layer, wherein the input message queue is stored by the data The communication queue of data sent from the communication network to the system bus interconnection network;
- the data sent from the system bus interconnection network to the data communication network is dispatched from the output message queue to the differential service code point queue of the data communication network network layer, wherein the output message queue is stored by the system bus The communication queue of data sent by the interconnection network to the data communication network.
- the dispatching of the data sent from the data communication network to the system bus interconnection network from the input message queue to the virtual channel queue at the link layer of the system bus interconnection network includes:
- the data is scheduled from the input message queue to a target virtual channel queue matching the QoS configuration data.
- it further includes: obtaining the second traffic manager data of the flow category queue;
- the scheduling the data from the input message queue to the target virtual channel queue matching the QoS configuration data according to the mapping relationship and the QoS configuration data included in the first traffic manager data includes: according to the Mapping relationship and QoS configuration data included in the second traffic manager data, scheduling the data from the input message queue to a target flow category queue that matches the QoS configuration data included in the second traffic manager data; According to the mapping relationship and the QoS configuration data included in the first traffic manager data, the data of the target flow category queue is scheduled to a target virtual channel queue that matches the QoS configuration data included in the first traffic manager data.
- the present application also provides a network interface controller that connects to the system bus interconnection network in the first computing device through the system bus, and connects the first computing device to the data communication network, where the data communication network is the first computing device
- the data communication network with the second computing device includes: a first QoS domain obtaining module, a second QoS domain obtaining module, a QoS mapping control module, and a network interface engine; wherein,
- the first QoS domain obtaining module is configured to obtain first QoS configuration data for the system bus interconnection network
- the second QoS domain obtaining module is configured to obtain second QoS configuration data for the data communication network
- the QoS mapping control module is configured to establish a first QoS domain of the system bus interconnection network and a second QoS domain of the data communication network according to the first QoS configuration data and the second QoS configuration data The mapping relationship between;
- the network interface engine is configured to perform QoS control on the data transmitted between the first computing device and the second computing device according to the mapping relationship.
- the QoS mapping control module is configured to: obtain the mapping relationship between the communication queue of the network interface controller and the system bus transport layer QoS label, and the system bus transport layer QoS label according to the first QoS configuration data Mapping relationship with the QoS label of the system bus link layer; obtaining the mapping relationship between the communication queue of the network interface controller and the differential service code point according to the second QoS configuration data.
- a network status module is used to obtain at least one of the first status information of the data communication network and the second status information of the system bus interconnection network, and the At least one type of state information is sent to the QoS mapping control module; the QoS mapping control module is configured to adjust the mapping relationship according to the at least one type of state information.
- the network interface engine includes at least one of an input QoS control sub-module and an output QoS control sub-module; wherein, the input QoS control sub-module is used to check the data communication network
- the network interface controller performs QoS control on the data sent to the system bus interconnection network; the output QoS control submodule is used to perform QoS control on the data sent from the system bus interconnection network to the data communication network through the network interface controller QoS control.
- the output QoS control submodule is configured to perform scheduling on the data from the output queue of the network interface controller communication queue to the differential services code point queue.
- the input QoS control sub-module is configured to send the data in the communication queue of the network interface controller to the system bus interconnection network according to the first QoS configuration data of the traffic manager bound to the flow category queue Scheduling to the flow class queue matching the first QoS configuration data; according to the second QoS configuration data of the traffic manager bound to the virtual channel queue, scheduling the flow class queue data to match the second QoS configuration data The virtual channel queue.
- the input QoS control sub-module is configured to send the data in the communication queue of the network interface controller to the system bus interconnection network according to the second QoS configuration data of the traffic manager bound to the virtual channel queue Scheduling to a virtual channel queue matching the second QoS configuration data.
- This application also provides a QoS control method, including:
- the data sent to the system bus interconnection network is scheduled from the input message queue to the virtual channel queue of the link layer of the system bus interconnection network through multi-level scheduling; wherein, the input message queue is the storage place The communication queue of the data.
- the scheduling of data sent to the system bus interconnection network from the input message queue to the virtual channel queue of the system bus interconnection network link layer through multi-level scheduling according to the QoS configuration information includes:
- the data is scheduled from the input message queue to a target virtual channel queue matching the QoS configuration data.
- it further includes: obtaining the second traffic manager data of the flow category queue;
- the scheduling the data from the input message queue to the target virtual channel queue matching the QoS configuration data according to the mapping relationship and the QoS configuration data included in the first traffic manager data includes: according to the Mapping relationship and QoS configuration data included in the second traffic manager data, scheduling the data from the input message queue to a target flow category queue that matches the QoS configuration data included in the second traffic manager data; According to the mapping relationship and the QoS configuration data included in the first traffic manager data, the data of the target flow category queue is scheduled to a target virtual channel queue that matches the QoS configuration data included in the first traffic manager data.
- This application also provides a QoS processing device, including:
- the first QoS configuration data obtaining unit is configured to obtain the first QoS configuration data for the system bus interconnection network
- a second QoS configuration data obtaining unit configured to obtain second QoS configuration data for the data communication network
- the mapping unit is configured to establish a mapping between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network according to the first QoS configuration data and the second QoS configuration data Relationship; wherein the mapping relationship is used to perform QoS control on the data transmitted between the data communication network and the system bus interconnection network.
- This application also provides a QoS control device, including:
- a mapping relationship obtaining unit configured to obtain a mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network;
- the QoS control unit is configured to perform QoS control on the data transmitted between the data communication network and the system bus interconnection network according to the mapping relationship.
- This application also provides an electronic device, including:
- a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions:
- mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network is established; wherein, The mapping relationship is used to perform QoS control on the data transmitted between the data communication network and the system bus interconnection network.
- This application also provides an electronic device, including:
- a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions:
- QoS control is performed on the data transmitted between the data communication network and the system bus interconnection network.
- This application also provides a network traffic scheduling method, including:
- mapping relationship scheduling is performed for the data traffic transmitted between the data communication network and the system bus interconnection network.
- the QoS control method provided by the present application establishes a connection between the first QoS domain of the system bus interconnection network and the data communication network according to the first QoS configuration data of the system bus interconnection network and the second QoS configuration data of the data communication network.
- the mapping relationship between the second QoS domains associates the QoS domains between the data communication network and the system bus interconnection network, and solves the problem of isolation between the two QoS domains; further, the mapping relationship is used to match the
- the data transmitted between the data communication network and the system bus interconnection network is subjected to QoS control, which can realize end-to-end QoS control.
- the QoS control method provided by the present application is based on the mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network, and the interaction between the data communication network and the system bus QoS control of data transmitted between the connected networks can perform consistent QoS control on the data transmitted in the two networks, thereby solving the end-to-end QoS control problem of data transmission between the data communication network and the system bus interconnection network.
- a network interface controller provided by the present application includes: a first QoS domain obtaining module, a second QoS domain obtaining module, a QoS mapping control module, and a network interface engine; through the first QoS domain obtaining module and the second QoS domain obtaining module
- the data used to establish the mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network can be obtained, and the mapping relationship can be established through the QoS mapping control module, which solves the problem of the data communication network
- the problem of QoS domain isolation between the system bus interconnection network and the system bus interconnection network; through the network interface engine, end-to-end QoS control can be performed on the data transmitted in the system bus interconnection network and the data communication network according to the mapping relationship.
- the network traffic scheduling method provided by the present application establishes a mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network, and according to the mapping relationship, the data communication network
- the data traffic transmitted between the system bus interconnection networks is scheduled to realize end-to-end QoS control for the data traffic.
- Figure 1 is a schematic diagram of a network environment for data transmission between a system bus interconnection network and a data communication network;
- FIG. 2 is a processing flowchart of a QoS processing method provided by the first embodiment of the present application
- FIG. 3 is a processing flowchart of a QoS control method provided by the second embodiment of the present application.
- FIG. 4 is a schematic diagram of a network interface controller provided by the third embodiment of the present application.
- FIG. 5 is a schematic structural diagram of a network interface controller provided by the third embodiment of the present application.
- FIG. 6 is a schematic diagram of the structure of an input QoS control submodule included in the third embodiment of the present application.
- FIG. 7 is a processing flowchart of a QoS control method provided by the fourth embodiment of the present application.
- FIG. 8 is a schematic diagram of a QoS processing apparatus provided by the fifth embodiment of the present application.
- FIG. 9 is a schematic diagram of a QoS control device provided by the sixth embodiment of the present application.
- Figure 10 is a schematic diagram of an electronic device provided by the present application.
- FIG. 11 is a processing flowchart of a network traffic scheduling method provided by the ninth embodiment of the present application.
- This application provides a QoS processing method, device and electronic equipment.
- This application also provides a QoS control method, device and equipment.
- the application also provides a network interface controller. Detailed descriptions are given in the following embodiments one by one.
- the first embodiment of the present application provides a QoS processing method, which is used to establish a mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network to interconnect the data communication network and the system bus
- the QoS domains between networks are associated.
- the data center network 101 is a data communication network, specifically a network used for data communication between servers. It can provide QoS control for data traffic through the included network forwarding device, reduce interference between traffic, and ensure different traffic Quality of service between.
- the system bus interconnection network 102 is a system bus interconnection network in a server, that is, a network formed by a communication bus interconnecting various devices in the server.
- the so-called system bus can be PCIE bus, CCIX bus, OpenCAPI bus, GenZ bus, CXL bus, It can provide QoS control for the data traffic transmitted in the system bus interconnection network in the server.
- the system bus interconnection network adopting PCIE bus generally includes two QoS mechanisms of TC and VC.
- the network interface controller 103 is used to transmit data between the data center network 101 and the system bus interconnection network 102, and may be, for example, a network card connecting the data communication network and the system bus interconnection network.
- the network interface controller 103 performs data transmission between the network interface controller 103 and the data center network 101 through a communication queue (Queue Pair, abbreviated as QP), and provides a first QoS domain for transmitting data between the network interface controller 103 and the data center network 101 Data is controlled by QoS.
- QP communication queue
- the communication queue can be the hardware queue on the network card, there are multiple QPs in the network interface controller, and the communication of a Socket link can be completed by one QP, as shown in the figure QP0, QP1,..., QPn-1; the network interface controller 103 performs data transmission through the mapping between the traffic class queue (TC) and the virtual channel (VC) of the system bus interconnection network 102, and provides a second QoS domain for the network interface controller 103
- the data transmitted with the system bus interconnection network 102 is subject to QoS control.
- the first QoS domain and the second QoS domain are in an isolated state. Therefore, end-to-end QoS control cannot be performed on the data transmitted between the data center network 101 and the system bus interconnection network 103.
- the traffic that is guaranteed by the high quality of service may only be guaranteed by the minimum service quality inside the server.
- the QoS processing method shown in FIG. 2 includes: step S201 to step S203.
- Step S201 Obtain first QoS configuration data for the system bus interconnection network.
- the first QoS configuration data is system bus interconnection network QoS configuration information, for example, may be system bus interconnection global QoS configuration information in the server, and global QoS configuration information used by multiple bus devices connected on the system bus in the server , Such as display card, sound card and other bus devices use global QoS configuration information.
- This step is to obtain the first QoS configuration data for the system bus interconnection network.
- the QoS configuration information bound to the interface between the network interface controller and the system bus can be obtained from the configuration information of the network interface controller connecting the data communication network and the system bus interconnection network in the server.
- Step S202 Obtain second QoS configuration data for the data communication network.
- the second QoS configuration data is the QoS configuration information of the data communication network.
- it may be the global QoS configuration information of the data center network, and the global QoS configuration information used by each forwarding device of the data center network, such as switching devices such as routers and switches. Use the same QoS configuration information for the specified traffic.
- This step is to obtain the second QoS configuration data for the data communication network.
- the QoS configuration information bound on the interface between the network interface controller and the data communication network can be obtained from the configuration information of the network interface controller connecting the data communication network and the system bus interconnection network in the server.
- Step S203 Establish a mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network according to the first QoS configuration data and the second QoS configuration data; Wherein, the mapping relationship is used to perform QoS control on data transmitted between the data communication network and the system bus interconnection network.
- mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network is established through the following processing:
- the first QoS configuration data obtain the first mapping relationship between the communication queue for storing the data and the QoS label of the system bus interconnection network transmission layer, and the system bus interconnection network QoS label and the system bus The second mapping relationship between the link layer QoS labels of the interconnection network;
- the first mapping relationship includes at least one of the following information: system bus interconnection network transport layer QoS label, system bus interconnection network link layer QoS label;
- the second QoS domain includes: data communication network Network layer QoS label.
- the transport layer QoS label is a label that identifies the difference in transport layer services, which can be the TC field of the system bus transaction layer TLP packet;
- the link layer QoS label is a label that identifies the link layer service difference, which can be a system bus link The VC field in the layer header.
- the network layer QoS label of the data communication network may be the qos label of the Ethernet network layer, that is, the DSCP value of the IP packet.
- the network card accepts the bus interconnection global QoS configuration information for the interface between the network card and the system bus side, and obtains the mapping relationship between QP (ie, network card communication queue) and SysTC from the bus interconnection global QoS configuration information, where SysTC is System bus transport layer QoS label, taking the mapping relationship as the first mapping relationship; obtaining the mapping relationship between SysTC and SysVC from the bus interconnection global QoS configuration information, where SysVC is the system bus link layer QoS label ; Use the mapping relationship as the second mapping relationship.
- QP ie, network card communication queue
- SysTC System bus transport layer QoS label
- the network card accepts the global QoS configuration for the interface with the network side of the data center, obtains the mapping relationship between QP (that is, the network card communication queue) and DSCP (that is, the QoS domain in the IP packet) from the global QoS configuration, and converts the mapping relationship As the third mapping relationship.
- QP that is, the network card communication queue
- DSCP that is, the QoS domain in the IP packet
- mapping relationship between the two QoS systems of the first QoS and the second QoS domain that is, the mapping relationship between the two QoS systems, Including: the QoS mapping relationship from the network card communication queue in the direction of entering the server to the network card traffic class queue and then to the virtual channel of the system bus; the QoS mapping relationship from the communication queue in the direction of the server entering the data communication network to the DSCP of the IP packet.
- it further includes adjusting the first QoS domain and the data communication network of the system bus interconnection network according to at least one of the network status of the data communication network and the network status of the system bus interconnection.
- the mapping relationship between the second QoS domains wherein, the network state of the data communication network includes at least one state information of network delay and congestion state; the network state of the system bus interconnection network includes at least one state information of network delay and congestion state.
- the mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network is obtained.
- QoS control is performed on the data transmitted between the data communication network and the system bus interconnection network.
- it further includes storing the mapping relationship in a table. Specifically include the following processing:
- first mapping relationship table and the third mapping relationship table respectively further include a reserved mapping area for storing the mapping relationship of the non-communication queue number index, and the mapping relationship of the non-communication queue number index is used for the non-communication queue number index. Flow control of specific traffic bound to the queue.
- the first mapping relationship table and the second mapping relationship table are used to perform QoS control on the data entering the system bus interconnection network in the server;
- the third mapping relationship table is used to output the system bus interconnection network in the server and enter the data communication between the servers
- the network data is subject to QoS control.
- the network interface engine of the network card reads the mapping relationship table information to perform QoS mapping.
- the data communication network switching equipment such as a switch, Perform DSCP to network queue (NetVC) mapping, and finally realize end-to-end QoS control.
- NetworkVC network queue
- QoS control is specifically performed on the data packets transmitted between the data communication network and the system bus interconnection network through the following processing:
- QoS control is performed on the data packets sent from the data communication network to the system bus interconnection network according to the first mapping relationship and the second mapping relationship.
- QoS control is specifically performed on the data packets transmitted between the data communication network and the system bus interconnection network through the following processing:
- QoS control is performed on the data packets sent from the system bus interconnection network to the data communication network.
- the QoS of the input direction is established.
- the mapping relationship and the QoS mapping relationship in the output direction can be implemented separately, for example:
- the first QoS configuration data obtain the first mapping relationship between the communication queue for storing the data and the QoS label of the system bus interconnection network transmission layer, and the system bus interconnection network QoS label and the system bus A second mapping relationship between interconnection network link layer QoS labels; using the first mapping relationship and the second mapping relationship as the input direction QoS mapping relationship;
- a third mapping relationship between the communication queue and the data communication network layer QoS label is obtained; and the third mapping relationship is used as the output direction QoS mapping relationship.
- the establishment of at least one of the QoS mapping relationship in the input direction and the QoS mapping relationship in the output direction is within the protection scope of this application. Furthermore, in establishing the QoS mapping relationship in the input direction, the establishment of at least one of the first mapping relationship and the second mapping relationship is within the protection scope of this application.
- QoS control is performed on the data transmitted between the data communication network and the system bus interconnection network.
- the obtaining the mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network includes:
- the first mapping relationship includes at least one of the following information: system bus interconnection network transport layer QoS label, system bus interconnection network link layer QoS label;
- the second QoS domain includes: data communication network Network layer QoS label.
- QoS control is performed on the data transmitted between the data communication network and the system bus interconnection network through the following processing:
- the data is scheduled from the communication queue to the target flow category queue corresponding to the system bus interconnection network transmission layer QoS label.
- An implementation of this embodiment includes performing two-level scheduling on the data, that is, scheduling the data to the virtual channel queue of the system bus interconnection network through two-level scheduling. Specifically include the following processing:
- the data is scheduled from the target flow category queue to the target virtual channel queue corresponding to the system bus interconnection network link layer QoS label.
- An implementation of this embodiment includes performing QoS control on data sent from the system bus interconnection network to the data communication network, which specifically includes the following processing:
- the marked data is transmitted to the data communication network, and the QoS control is performed in the data communication network according to the QoS label information of the marked data.
- the performing QoS control in the data communication network according to the QoS label information of the marked data includes the following processing: obtaining the corresponding network according to the mapping relationship between the differential service code point in the switch of the data communication network and the virtual channel of the network The virtual channel information forwards the data to the target device in the data communication network.
- the following processing is included to perform QoS control on data sent from the system bus interconnection network to the data communication network: according to at least one of the first mapping relationship and the second mapping relationship, the data The data sent from the communication network to the system bus interconnection network is subject to QoS control.
- the following processing is included to perform QoS control on the data sent from the data communication network to the system bus interconnection network: according to the third mapping relationship, the data sent from the system bus interconnection network to the data communication network Perform QoS control.
- At least one of the following processes is included to schedule data:
- the data sent from the data communication network to the system bus interconnection network is dispatched from the input message queue to the virtual channel queue of the system bus interconnection network link layer, wherein the input message queue is stored by the data The communication queue of data sent from the communication network to the system bus interconnection network;
- the data sent from the system bus interconnection network to the data communication network is dispatched from the output message queue to the differential service code point queue of the data communication network network layer, wherein the output message queue is stored by the system bus The communication queue of data sent by the interconnection network to the data communication network.
- the data sent from the data communication network to the system bus interconnection network is scheduled from the input message queue to the virtual channel queue of the system bus interconnection network link layer, including:
- the data is scheduled from the input message queue to a target virtual channel queue matching the QoS configuration data.
- it further includes performing two-level scheduling on the data, specifically including the following processing:
- the data is scheduled from the input message queue to a target flow that matches the QoS configuration data included in the second traffic manager data Category queue
- the data of the target flow category queue is scheduled to a target virtual channel queue that matches the QoS configuration data included in the first traffic manager data.
- the QoS processing method is used to establish a mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network, so as to connect the QoS domain between the data communication network and the system bus interconnection network Associated, further end-to-end QoS control.
- the second embodiment of the present application provides a QoS control method.
- the QoS control method shown in FIG. 3 includes: step S301 to step S302.
- Step S301 Obtain the mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network.
- the first QoS domain includes at least one of the following information: a system bus interconnection network transport layer QoS label, a system bus interconnection network link layer QoS label;
- the second QoS domain includes: data communication Network layer QoS label.
- the following processing is included to obtain the mapping relationship:
- the first mapping relationship, the second mapping relationship, and the third mapping relationship are used as the mapping between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network relationship.
- At least one of the first mapping relationship and the second mapping relationship is used to perform QoS control on the data sent from the data communication network to the system bus interconnection network, which can also be said to be input to the network card or server QoS control is performed on the direction;
- the third mapping relationship is used to perform QoS control on the data sent from the system bus interconnection network to the data communication network, which can also be said to perform QoS control on the output direction of the network card or server.
- Step S302 Perform QoS control on the data transmitted between the data communication network and the system bus interconnection network according to the mapping relationship.
- QoS control is performed on the data sent from the data communication network to the system bus interconnection network through the following processing:
- the data is scheduled from the communication queue to the target flow category queue corresponding to the system bus interconnection network transmission layer QoS label.
- the data is scheduled from the input message queue (that is, the communication queue used to store the data) to the target flow category queue as the first-level scheduling, it may further include performing the second-level scheduling on the data, and the target The flow class queue is scheduled to the target virtual channel queue, and QoS control is performed on the data through two-level scheduling. Specifically include the following processing:
- the data is scheduled from the target flow category queue to the target virtual channel queue corresponding to the system bus interconnection network link layer QoS label.
- the data can also be directly scheduled from the communication queue to the target virtual channel queue according to the QoS configuration information.
- QoS control is performed on the data sent from the system bus interconnection network to the data communication network through the following processing:
- the marked data is transmitted to the data communication network, and the QoS control is performed in the data communication network according to the QoS label information of the marked data.
- the data from the system bus interconnection network exits the system bus interconnection network and enters the data communication network, it further includes the following processing to realize end-to-end QoS control: according to the differential service code point in the switch of the data communication network Mapping relationship with the network virtual channel, obtain corresponding network virtual channel information, and forward the data to the target device in the data communication network.
- performing QoS control on data sent from the data communication network to the system bus interconnection network through the following processing includes: according to at least one of the first mapping relationship and the second mapping relationship, Data sent to the system bus interconnection network is subject to QoS control.
- QoS control is performed on the data sent from the system bus interconnection network to the data communication network through the following processing, including: performing QoS on the data sent from the system bus interconnection network to the data communication network according to the third mapping relationship control.
- At least one of the following processing methods is included to perform QoS control on the data transmitted between the data communication network and the system bus interconnection network:
- Method 1 According to the mapping relationship, the data sent from the data communication network to the system bus interconnection network is dispatched from the input message queue to the virtual channel queue of the system bus interconnection network link layer, wherein the input message queue is A communication queue storing data sent from the data communication network to the system bus interconnection network; specifically including: obtaining the first traffic manager data of the virtual channel queue; according to the mapping relationship and the QoS configuration data included in the first traffic manager data , Scheduling the data from the input message queue to a target virtual channel queue matching the QoS configuration data.
- the method further includes: obtaining the second traffic manager data of the flow category queue; according to the mapping relationship and the QoS configuration data included in the second traffic manager data, scheduling the data from the input message queue to the The target flow category queue matching the QoS configuration data included in the second traffic manager data; according to the mapping relationship and the QoS configuration data included in the first traffic manager data, the target flow category queue data is scheduled to be The QoS configuration data included in the first traffic manager data matches the target virtual channel queue.
- Method 2 According to the mapping relationship, the data sent from the system bus interconnection network to the data communication network is dispatched from the output message queue to the differential service code point queue of the data communication network network layer, wherein the output message queue is stored The communication queue of data sent from the system bus interconnection network to the data communication network.
- the QoS control method is used to determine the data transmitted between the data communication network and the system bus interconnection network according to the mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network Carry out QoS control and realize end-to-end QoS control.
- the third embodiment of the present application provides a network interface controller.
- the network interface controller connects to the system bus interconnection network in the first computing device through the system bus, and connects the first computing device to the data communication network.
- the data communication network is the first computing device and the second computing device. Data communication network between devices.
- the network interface controller will be described below with reference to FIGS. 4 to 6.
- the network interface controller shown in FIG. 4 includes: a first QoS domain obtaining module 401, a second QoS domain obtaining module 402, a QoS mapping control module 403, and a network interface engine 404; among them,
- the first QoS domain obtaining module 401 is configured to obtain first QoS configuration data for the system bus interconnection network
- the second QoS domain obtaining module 402 is configured to obtain second QoS configuration data for the data communication network
- the QoS mapping control module 403 is configured to establish a first QoS domain of the system bus interconnection network and a second QoS of the data communication network according to the first QoS configuration data and the second QoS configuration data The mapping relationship between domains;
- the network interface engine 404 is configured to perform QoS control on the data transmitted between the first computing device and the second computing device according to the mapping relationship.
- the first QoS configuration data may be a global QoS configuration of a system bus interconnection network in the server;
- the second QoS configuration data may be a global QoS configuration of a data communication network.
- the QoS mapping control module is configured to obtain the mapping relationship between the communication queue of the network interface controller and the QoS label of the system bus transmission layer, and the system bus transmission layer QoS label and the system bus link according to the first QoS configuration data The mapping relationship between layer QoS labels; obtaining the mapping relationship between the communication queue of the network interface controller and the differential services code point according to the second QoS configuration data.
- the QoS mapping control module obtains the mapping relationship between QP (communication queue) and SysTC according to the first QoS configuration information, writes the mapping relationship into the first mapping relationship table; obtains the relationship between SysTC and SysVC The mapping relationship is written into the second mapping relationship table, where SysTC is the QoS information of the transmission layer of the system bus interconnection network, and SysVC is the QoS information of the link layer of the system bus interconnection network.
- the QoS mapping control module obtains the mapping relationship between QP (communication queue) and DSCP (QoS domain in IP packet) according to the second QoS configuration data, writes the mapping relationship into the third mapping relationship table, and further The third mapping relationship is used to perform QoS control on the data that enters the data communication network switching device from the network card.
- the data communication network switching device such as a switch, performs DSCP to network queue (NetVC) mapping to achieve End-to-end QoS control.
- the first mapping relationship table and the second mapping relationship table respectively include reserved mapping areas for storing the mapping relationship of the non-communication queue number index.
- the network interface controller further includes: a network status module; the network status module is used to obtain at least one of the first status information of the data communication network and the second status information of the system bus interconnection network A type of status information, which sends the at least one type of status information to the QoS mapping control module.
- the acquired network status of the data center network includes at least one of the network delay and congestion status; for example, the acquired The network state of the system bus interconnection network includes at least one state information of network delay and congestion state; correspondingly, the QoS mapping control module is configured to adjust the mapping relationship according to the at least one state information, that is, according to The network status dynamically modifies at least one of the first mapping relationship table storing the mapping relationship between QP and SysTC, the second mapping relationship table storing the mapping relationship between SysTC and SysVC, and the third mapping relationship table storing the mapping relationship between QP and DSCP. Relational tables.
- the network interface engine includes at least one of an input QoS control sub-module and an output QoS control sub-module; wherein, the input QoS control sub-module is used for data communication network
- the network interface controller performs QoS control on data sent to the system bus interconnection network; the output QoS control sub-module is used to control the data sent from the system bus interconnection network to the data communication network through the network interface controller Perform QoS control. That is, the input QoS control sub-module is used to perform QoS guarantee on data in the input direction; the output QoS control sub-module is used to perform QoS guarantee on data in the output direction.
- the network interface engine may also include the network message sending and receiving functions of the standard network interface controller, such as Transaction Layer Process (TLP), DMA engine, interrupt management, unpacking, congestion control, etc.
- TLP Transaction Layer Process
- the input QoS control sub-module is specifically configured to send the communication queue of the network interface controller to the system bus interconnection network according to the first QoS configuration data of the traffic manager bound to the flow category queue According to the second QoS configuration data of the traffic manager bound to the virtual channel queue, the data of the flow class queue is scheduled to match the second QoS configuration data. Virtual channel queue for data matching.
- Figure 5 shows a schematic diagram of the input QoS control sub-module.
- the input QoS control sub-module in the figure includes two levels of scheduling.
- the first level of scheduling is based on the binding of each SysTC queue 501 TM (Traffic Manager) 502, each QP input message queue 503 to send data to the system bus interconnection network, scheduling to the target flow category queue, that is, the target SysTC queue, for example, the configuration of TM includes QP0, allocates SysTC0 60% bandwidth, then TM schedules according to the configuration; the second level of scheduling schedules SysTC queue data to the corresponding target virtual channel queue according to each virtual channel queue, namely TM505 bound to SysVC queue 504, for example
- the TM configuration includes allocating SysVC0 30% bandwidth for SysTC0, and then TM will schedule according to the configuration.
- the SysTC queue is removed, and the QP is used to input the message queue to the first level scheduling of the SysVC queue.
- the input QoS control submodule is used to schedule the data in the communication queue of the network interface controller to be sent to the system bus interconnection network according to the second QoS configuration data of the traffic manager bound to the virtual channel queue To the virtual channel queue matching the second QoS configuration data.
- the output QoS control sub-module is used to schedule the data from the output queue of the network interface controller communication queue to the differential services code point queue. That is, the QoS guarantee of the output direction data is performed.
- the output QoS control sub-module can also implement Shaper to shape traffic.
- FIG. 6, is a schematic diagram of a network interface controller actually implemented.
- the figure includes: the system bus interconnection global QoS configuration 601 is used to obtain the first QoS configuration data and provide it to the QoS mapping control module.
- the data center network global QoS configuration 602 is used to obtain the second QoS configuration data and provide it to the QoS mapping control module.
- the data center network and system bus interconnection network status module 603 is used to obtain the network status of the data center network and the system bus interconnection network and provide it to the QoS mapping control module.
- the QoS mapping control module 604 is configured to establish a first mapping relationship table storing the mapping relationship between QP and SysTC and a second mapping relationship table storing the mapping relationship between SysTC and SysVC according to the first QoS configuration data; establish according to the second QoS configuration data A third mapping relationship table storing the mapping relationship between QP and DSCP; at least one of the three mapping relationship tables is updated according to the network status of the data center network and the system bus interconnection network.
- the network interface engine 605 includes two modules: iQoS and eQoS; among them, the eQoS module is used to control the QoS of data in the input direction; the eQoS module is used to control the QoS of data in the input direction.
- the QoS label mapping process from the data communication network to the system bus interconnection network includes: mapping from DSCP to QP, according to the DSCP and QP in the data Direct mapping from QP to SysTC, by querying the first mapping table that stores the mapping relationship between QP and SysTC; mapping from SysTC to SysVC, by querying the second mapping table that stores the mapping relationship between SysTC and SysVC .
- the QoS label change process of data from the system bus network to the data communication network change from SysVC to SysTC, and then further change to QP, and consume bus messages through the QP of the network interface engine,
- the QP queue is determined according to the message address; the change from QP to DSCP is achieved by querying the third mapping table storing the mapping relationship between QP and DSCP; the mapping from DSCP to NetVC is achieved by querying the mapping table of DSCP and NetVC in the switch.
- the fourth embodiment of the present application provides a QoS control method.
- the QoS control method shown in FIG. 7 includes: step S701 to step S702.
- Step S701 Obtain QoS configuration information of the system bus interconnection network.
- the global QoS configuration information of the system bus interconnection network is acquired.
- the data sent to the system bus interconnection network is also obtained, specifically to obtain the data sent from the data communication network to the system bus interconnection network, so as to perform QoS control on the data in the input direction.
- Step S702 According to the QoS configuration information, the data sent to the system bus interconnection network is scheduled from the input message queue to the virtual channel queue of the system bus interconnection network link layer through multi-level scheduling; wherein, the input message queue Is the communication queue storing the data.
- the data is scheduled from the input message queue to the virtual channel queue of the link layer of the system bus interconnection network through the following first-level scheduling:
- the data is scheduled from the input message queue to a target virtual channel queue matching the QoS configuration data.
- two levels of scheduling are included to perform QoS control on the data, which specifically includes the following processing:
- the data is scheduled from the input message queue to a target flow that matches the QoS configuration data included in the second traffic manager data Category queue
- the data of the target flow category queue is scheduled to a target virtual channel queue matching the QoS configuration data included in the first traffic manager data.
- the fifth embodiment of the present application provides a QoS processing device.
- Fig. 8 shows a schematic diagram of the apparatus provided by the fifth embodiment. The device will be described below in conjunction with FIG. 8.
- the QoS processing device shown in FIG. 8 includes:
- the first QoS configuration data obtaining unit 801 is configured to obtain first QoS configuration data for the system bus interconnection network
- the second QoS configuration data obtaining unit 802 is configured to obtain second QoS configuration data for the data communication network
- the mapping unit 803 is configured to establish a connection between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network according to the first QoS configuration data and the second QoS configuration data. Mapping relationship; wherein the mapping relationship is used to perform QoS control on data transmitted between the data communication network and the system bus interconnection network.
- the first QoS configuration data obtaining unit 801 is specifically configured to:
- the first QoS configuration data obtain the first mapping relationship between the communication queue for storing the data and the QoS label of the system bus interconnection network transmission layer, and the system bus interconnection network QoS label and the system bus The second mapping relationship between the link layer QoS labels of the interconnection network;
- the first mapping relationship includes at least one of the following information: system bus interconnection network transport layer QoS label, system bus interconnection network link layer QoS label;
- the second QoS domain includes: data communication network Network layer QoS label.
- the device further includes a network state obtaining unit, and the network state obtaining unit is configured to:
- the mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network is obtained.
- the device further includes a QoS control unit, and the QoS control unit is configured to:
- QoS control is performed on the data transmitted between the data communication network and the system bus interconnection network.
- the sixth embodiment of the present application provides a QoS control device.
- Fig. 9 shows a schematic diagram of the apparatus provided by the sixth embodiment. The device will be described below in conjunction with FIG. 9.
- the QoS control device shown in FIG. 9 includes:
- a mapping relationship obtaining unit 901 configured to obtain a mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network;
- the QoS control unit 902 is configured to perform QoS control on the data transmitted between the data communication network and the system bus interconnection network according to the mapping relationship.
- mapping relationship obtaining unit 901 is specifically configured to:
- the first mapping relationship, the second mapping relationship, and the third mapping relationship are used as the mapping between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network Relationship; wherein, the first QoS domain includes at least one of the following information: system bus interconnection network transport layer QoS label, system bus interconnection network link layer QoS label; the second QoS domain includes: data communication network Network layer QoS label.
- the QoS control unit 902 is specifically configured to:
- the data is scheduled from the communication queue to the target flow category queue corresponding to the system bus interconnection network transmission layer QoS label.
- the device further includes a primary scheduling unit, and the primary scheduling unit is configured to:
- the data is scheduled from the target flow category queue to the target virtual channel queue corresponding to the system bus interconnection network link layer QoS label.
- the QoS control unit 902 is specifically configured to:
- the marked data is transmitted to the data communication network, and QoS control is performed in the data communication network according to the QoS label information of the marked data.
- the device further includes a DSCP control unit, and the DSCP control unit is configured to:
- the corresponding network virtual channel information is obtained, and the data is forwarded to the target device in the data communication network.
- the QoS control unit 902 is specifically configured to: perform QoS control on the data sent from the data communication network to the system bus interconnection network according to at least one of the first mapping relationship and the second mapping relationship.
- the QoS control unit 902 is specifically configured to: perform QoS control on the data sent from the system bus interconnection network to the data communication network according to the third mapping relationship.
- the QoS control unit 902 is specifically used for at least one of the following processing:
- the data sent from the data communication network to the system bus interconnection network is dispatched from the input message queue to the virtual channel queue of the system bus interconnection network link layer, wherein the input message queue is stored by the data The communication queue of data sent from the communication network to the system bus interconnection network;
- the data sent from the system bus interconnection network to the data communication network is dispatched from the output message queue to the differential service code point queue of the data communication network network layer, wherein the output message queue is stored by the system bus The communication queue of data sent by the interconnection network to the data communication network.
- the QoS control unit 902 is specifically configured to:
- the data is scheduled from the input message queue to a target virtual channel queue matching the QoS configuration data.
- the QoS control unit 902 is specifically configured to:
- the data is scheduled from the input message queue to a target flow that matches the QoS configuration data included in the second traffic manager data Category queue
- the data of the target flow category queue is scheduled to a target virtual channel queue matching the QoS configuration data included in the first traffic manager data.
- the seventh embodiment of the present application provides an electronic device.
- Fig. 10 shows a schematic diagram of the electronic device. The electronic device will be described below with reference to FIG. 10.
- the electronic equipment shown in Figure 10 includes:
- mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network is established; wherein, The mapping relationship is used to perform QoS control on the data transmitted between the data communication network and the system bus interconnection network.
- the processor is further configured to execute the following computer executable instructions:
- the first QoS configuration data obtain the first mapping relationship between the communication queue for storing the data and the QoS label of the system bus interconnection network transmission layer, and the system bus interconnection network QoS label and the system bus The second mapping relationship between the link layer QoS labels of the interconnection network;
- the first mapping relationship includes at least one of the following information: system bus interconnection network transport layer QoS label, system bus interconnection network link layer QoS label;
- the second QoS domain includes: data communication network Network layer QoS label.
- the processor is further configured to execute the following computer executable instructions:
- the mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network is obtained.
- the processor is further configured to execute the following computer executable instructions:
- QoS control is performed on the data transmitted between the data communication network and the system bus interconnection network.
- the eighth embodiment of the present application provides an electronic device.
- the schematic diagram is similar to Figure 10.
- the electronic equipment will be described below.
- a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions:
- QoS control is performed on the data transmitted between the data communication network and the system bus interconnection network.
- the processor is further configured to execute the following computer executable instructions:
- the first mapping relationship, the second mapping relationship, and the third mapping relationship are used as the mapping between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network Relationship; wherein, the first QoS domain includes at least one of the following information: system bus interconnection network transport layer QoS label, system bus interconnection network link layer QoS label; the second QoS domain includes: data communication network Network layer QoS label.
- the processor is further configured to execute the following computer executable instructions:
- the data is scheduled from the communication queue to the target flow category queue corresponding to the system bus interconnection network transmission layer QoS label.
- the processor is further configured to execute the following computer executable instructions:
- the data is scheduled from the target flow category queue to the target virtual channel queue corresponding to the system bus interconnection network link layer QoS label.
- the processor is further configured to execute the following computer executable instructions:
- the marked data is transmitted to the data communication network, and the QoS control is performed in the data communication network according to the QoS label information of the marked data.
- the processor is further configured to execute the following computer executable instructions:
- the corresponding network virtual channel information is obtained, and the data is forwarded to the target device in the data communication network.
- the processor is further configured to execute the following computer-executable instructions: according to at least one of the first mapping relationship and the second mapping relationship, perform data sent from the data communication network to the system bus interconnection network QoS control.
- the processor is further configured to execute the following computer executable instructions: perform QoS control on the data sent from the system bus interconnection network to the data communication network according to the third mapping relationship.
- the processor is further configured to execute at least one of the following computer executable instructions:
- the data sent from the data communication network to the system bus interconnection network is dispatched from the input message queue to the virtual channel queue of the system bus interconnection network link layer, wherein the input message queue is stored by the data The communication queue of data sent from the communication network to the system bus interconnection network;
- the data sent from the system bus interconnection network to the data communication network is dispatched from the output message queue to the differential service code point queue of the data communication network network layer, wherein the output message queue is stored by the system bus The communication queue of data sent by the interconnection network to the data communication network.
- the processor is further configured to execute the following computer executable instructions:
- the data is scheduled from the input message queue to a target virtual channel queue matching the QoS configuration data.
- the processor is further configured to execute the following computer-executable instructions: obtain second traffic manager data of the flow category queue;
- the data is scheduled from the input message queue to a target flow that matches the QoS configuration data included in the second traffic manager data Category queue
- the data of the target flow category queue is scheduled to a target virtual channel queue matching the QoS configuration data included in the first traffic manager data.
- the ninth embodiment of the present application provides a network traffic scheduling method. The method will be described below with reference to FIG. 11.
- the network traffic scheduling method shown in FIG. 11 includes: step S1101 to step S1104.
- Step S1101 Obtain the first QoS configuration data for the system bus interconnection network.
- the first QoS configuration data is system bus interconnection network QoS configuration information, for example, may be system bus interconnection global QoS configuration information in the server, and global QoS configuration information used by multiple bus devices connected on the system bus in the server , Such as display card, sound card and other bus devices use global QoS configuration information.
- This step is to obtain the first QoS configuration data for the system bus interconnection network.
- the QoS configuration information bound to the interface between the network interface controller and the system bus can be obtained from the configuration information of the network interface controller connecting the data communication network and the system bus interconnection network in the server.
- Step S1102 Obtain second QoS configuration data for the data communication network.
- the second QoS configuration data is the QoS configuration information of the data communication network.
- it may be the global QoS configuration information of the data center network, and the global QoS configuration information used by each forwarding device of the data center network, such as switching devices such as routers and switches. Use the same QoS configuration information for the specified traffic.
- This step is to obtain the second QoS configuration data for the data communication network.
- the QoS configuration information bound on the interface between the network interface controller and the data communication network can be obtained from the configuration information of the network interface controller connecting the data communication network and the system bus interconnection network in the server.
- Step S1103 Establish a mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network according to the first QoS configuration data and the second QoS configuration data.
- mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network is established through the following processing:
- the first QoS configuration data obtain the first mapping relationship between the communication queue used to store the data and the QoS label of the system bus interconnection network transmission layer, and the system bus interconnection network QoS label and the system bus The second mapping relationship between the link layer QoS labels of the interconnection network;
- the first mapping relationship includes at least one of the following information: system bus interconnection network transport layer QoS label, system bus interconnection network link layer QoS label;
- the second QoS domain includes: data communication network Network layer QoS label.
- the transport layer QoS label is a label that identifies the difference in transport layer services, which can be the TC field of the system bus transaction layer TLP packet;
- the link layer QoS label is a label that identifies the link layer service difference, which can be a system bus link The VC field in the layer header.
- the network layer QoS label of the data communication network may be the qos label of the Ethernet network layer, that is, the DSCP value of the IP packet.
- the network card accepts the bus interconnection global QoS configuration information for the interface between the network card and the system bus side, and obtains the mapping relationship between QP (ie, network card communication queue) and SysTC from the bus interconnection global QoS configuration information, where SysTC is System bus transport layer QoS label, taking the mapping relationship as the first mapping relationship; obtaining the mapping relationship between SysTC and SysVC from the bus interconnection global QoS configuration information, where SysVC is the system bus link layer QoS label ; Use the mapping relationship as the second mapping relationship.
- QP ie, network card communication queue
- SysTC System bus transport layer QoS label
- the network card accepts the global QoS configuration for the interface with the network side of the data center, obtains the mapping relationship between QP (that is, the network card communication queue) and DSCP (that is, the QoS domain in the IP packet) from the global QoS configuration, and converts the mapping relationship As the third mapping relationship.
- QP that is, the network card communication queue
- DSCP that is, the QoS domain in the IP packet
- mapping relationship between the two QoS systems of the first QoS and the second QoS domain that is, the mapping relationship between the two QoS systems, Including: the QoS mapping relationship from the network card communication queue in the direction of entering the server to the network card traffic class queue and then to the virtual channel of the system bus; the QoS mapping relationship from the communication queue in the direction of the server entering the data communication network to the DSCP of the IP packet.
- it further includes adjusting the first QoS domain of the system bus interconnection network and the data communication network according to at least one of the network status of the data communication network and the network status of the system bus interconnection.
- the mapping relationship between the second QoS domains wherein, the network state of the data communication network includes at least one state information of network delay and congestion state; the network state of the system bus interconnection network includes at least one state information of network delay and congestion state.
- the mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network is obtained.
- Step S1104 scheduling the data traffic transmitted between the data communication network and the system bus interconnection network according to the mapping relationship.
- the data traffic is scheduled to realize end-to-end QoS control for the data traffic.
- it further includes storing the mapping relationship in a table. Specifically include the following processing:
- first mapping relationship table and the third mapping relationship table respectively further include a reserved mapping area for storing the mapping relationship of the non-communication queue number index, and the mapping relationship of the non-communication queue number index is used for the non-communication queue number index. Flow control of specific traffic bound to the queue.
- the first mapping relationship table and the second mapping relationship table are used to perform QoS control on the data entering the system bus interconnection network in the server;
- the third mapping relationship table is used to output the system bus interconnection network in the server and enter the data communication between the servers
- the network data is subject to QoS control.
- the network interface engine of the network card reads the mapping relationship table information to perform QoS mapping.
- the data communication network switching equipment such as a switch, Perform DSCP to network queue (NetVC) mapping, and finally realize end-to-end QoS control.
- NetworkVC network queue
- QoS control is specifically performed on the data packets transmitted between the data communication network and the system bus interconnection network through the following processing:
- QoS control is performed on the data packets sent from the data communication network to the system bus interconnection network according to the first mapping relationship and the second mapping relationship.
- QoS control is specifically performed on the data packets transmitted between the data communication network and the system bus interconnection network through the following processing:
- QoS control is performed on the data packets sent from the system bus interconnection network to the data communication network.
- the QoS of the input direction is established.
- the mapping relationship and the QoS mapping relationship in the output direction can be implemented separately, for example:
- the first QoS configuration data obtain the first mapping relationship between the communication queue for storing the data and the QoS label of the system bus interconnection network transmission layer, and the system bus interconnection network QoS label and the system bus A second mapping relationship between interconnection network link layer QoS labels; using the first mapping relationship and the second mapping relationship as the input direction QoS mapping relationship;
- a third mapping relationship between the communication queue and the data communication network layer QoS label is obtained; and the third mapping relationship is used as the output direction QoS mapping relationship.
- the establishment of at least one of the QoS mapping relationship in the input direction and the QoS mapping relationship in the output direction is within the protection scope of this application. Furthermore, in establishing the QoS mapping relationship in the input direction, the establishment of at least one of the first mapping relationship and the second mapping relationship is within the protection scope of this application.
- QoS control is performed on the data transmitted between the data communication network and the system bus interconnection network.
- the obtaining the mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network includes:
- the first mapping relationship includes at least one of the following information: a system bus interconnection network transport layer QoS label, a system bus interconnection network link layer QoS label;
- the second QoS domain includes: a data communication network Network layer QoS label.
- QoS control is performed on the data transmitted between the data communication network and the system bus interconnection network through the following processing:
- the data is scheduled from the communication queue to the target flow category queue corresponding to the system bus interconnection network transmission layer QoS label.
- An implementation of this embodiment includes performing two-level scheduling on the data, that is, scheduling the data to the virtual channel queue of the system bus interconnection network through two-level scheduling. Specifically include the following processing:
- the data is scheduled from the target flow category queue to the target virtual channel queue corresponding to the system bus interconnection network link layer QoS label.
- An implementation of this embodiment includes performing QoS control on data sent from the system bus interconnection network to the data communication network, which specifically includes the following processing:
- the marked data is transmitted to the data communication network, and the QoS control is performed in the data communication network according to the QoS label information of the marked data.
- the performing QoS control in the data communication network according to the QoS label information of the marked data includes the following processing: according to the mapping relationship between the differential service code point in the switch of the data communication network and the virtual channel of the network, the corresponding network is obtained The virtual channel information forwards the data to the target device in the data communication network.
- the following processing is included to perform QoS control on data sent from the system bus interconnection network to the data communication network: according to at least one of the first mapping relationship and the second mapping relationship, the data The data sent from the communication network to the system bus interconnection network is subject to QoS control.
- the following processing is included to perform QoS control on the data sent from the data communication network to the system bus interconnection network: according to the third mapping relationship, the data sent from the system bus interconnection network to the data communication network Perform QoS control.
- At least one of the following processes is included to schedule data:
- the data sent from the data communication network to the system bus interconnection network is dispatched from the input message queue to the virtual channel queue of the system bus interconnection network link layer, wherein the input message queue is stored by the data The communication queue of data sent from the communication network to the system bus interconnection network;
- the data sent from the system bus interconnection network to the data communication network is dispatched from the output message queue to the differential service code point queue of the data communication network network layer, wherein the output message queue is stored by the system bus The communication queue of data sent by the interconnection network to the data communication network.
- the data sent from the data communication network to the system bus interconnection network is scheduled from the input message queue to the virtual channel queue of the system bus interconnection network link layer, including:
- the data is scheduled from the input message queue to a target virtual channel queue matching the QoS configuration data.
- it further includes performing two-level scheduling on the data, specifically including the following processing:
- the data is scheduled from the input message queue to a target flow that matches the QoS configuration data included in the second traffic manager data Category queue
- the data of the target flow category queue is scheduled to a target virtual channel queue matching the QoS configuration data included in the first traffic manager data.
- the method is used to establish a mapping relationship between the first QoS domain of the system bus interconnection network and the second QoS domain of the data communication network, thereby associating the QoS domains between the data communication network and the system bus interconnection network , In order to carry out end-to-end QoS control for network traffic.
- the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
- processors CPU
- input/output interfaces network interfaces
- memory volatile and non-volatile memory
- the memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
- RAM random access memory
- ROM read-only memory
- flash RAM flash memory
- Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
- the information can be computer-readable instructions, data structures, program modules, or other data.
- Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
- computer-readable media does not include non-transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
- this application can be provided as methods, systems or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
- a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请公开了一种QoS处理及控制方法及网络接口控制器,所述QoS处理方法包括:获得针对系统总线互连网络的第一QoS配置数据;获得针对数据通信网络的第二QoS配置数据;根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述映射关系用于对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。采用上述方法,解决了数据通信网络和系统总线互连网络之间的QoS域隔离问题。
Description
本申请要求2019年06月10日递交的申请号为201910497729.7、发明名称为“QoS处理及控制方法及网络接口控制器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及数据转发技术领域,具体涉及一种QoS处理方法、装置及电子设备。本申请同时还涉及QoS控制方法、装置及电子设备。本申请同时还涉及一种网络接口控制器。
随着网络应用的普及与推广,针对网络传输的数据流量进行QoS控制越来越重要,通过Qos控制能保障网络应用业务不被延迟或丢弃,提升用户体验。所谓QoS(Quality of Service,服务质量),是为指定的网络通信提供更好的服务能力的网络技术。网络应用一般涉及服务器间的数据通信网络和服务器内系统总线互连网络(以下称系统总线互连网络)。所谓数据通信网络是指用于服务器间数据通信的网络,例如数据中心网络,已经有完善的QoS设置,用来降低流量间干扰,保障不同流量间的服务质量。系统总线互连网络也有类似的QoS机制,如PCIE总线支持TC和VC两级QoS机制,其中,所谓TC是指PCIE的TLP头部的TC(Traffic Class,流量类别),取值范围0~7,值越大优先级越高,0优先级最低,表示总线事务层处理的服务质量分级。VC是PCIE总线的虚拟通道,PCIE总线设备将TC值映射到VC值进行数据传输。但是现有技术中存在的问题是,数据通信网络的QoS机制和系统总线互连网络的QoS机制处于完全隔离的状态,例如,在连接数据通信网络和系统总线互连网络的网络接口控制器(网卡)中,数据通信网络的QoS机制和系统总线互连网络的QoS机制是不连通的两个QoS域,在数据中心网络中得到高服务质量保障的流量,在服务器内部却可能只是最低服务质量保障,最终导致网络应用得不到所需的通信性能,无法实现端对端QoS控制。甚至,现有的设备在实现PCIE总线功能时未支持PCIE总线规范的全集,例如,所有流量均被映射至TC0(优先级最低)和VC0(优先级最低),从而,系统总线互连网络的QoS体系完全缺失。
因此,如何消除数据通信网络和系统总线互连网络之间的QoS域隔离状态,是需要 解决的问题。
发明内容
本申请提供一种QoS处理方法,解决了数据通信网络和系统总线互连网络之间的QoS域隔离问题。
本申请提供一种QoS处理方法,包括:
获得针对系统总线互连网络的第一QoS配置数据;
获得针对数据通信网络的第二QoS配置数据;
根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述映射关系用于对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
可选的,所述根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系,包括:
根据所述第一QoS配置数据,获得用于存储所述数据的通信队列与系统总线互连网络传输层QoS标签之间的第一映射关系,以及系统总线互连网络传输层QoS标签与系统总线互连网络链路层QoS标签之间的第二映射关系;
根据所述第二QoS配置数据,获得所述通信队列与数据通信网络网络层QoS标签之间的第三映射关系;
根据所述第一映射关系、所述第二映射关系以及所述第三映射关系,得到所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述第一QoS域包括下述至少一种信息:系统总线互连网络传输层QoS标签、系统总线互连网络链路层QoS标签;所述第二QoS域包括:数据通信网络网络层QoS标签。
可选的,还包括:
获得所述系统总线互连网络的第一网络状态信息;
获得所述数据通信网络的第二网络状态信息;
根据第一网络状态信息和第二网络状态信息中的至少一种信息,对第一映射关系、第二映射关系以及第三映射关系进行调整;
根据调整后的第一映射关系、第二映射关系以及第三映射关系,得到所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系。
可选的,还包括:
根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
本申请提供一种QoS控制方法,包括:
获得系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系;
根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
可选的,所述获得系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系,包括:
获得所述数据通信网络和所述系统总线互连网络之间用于存储所述数据的通信队列与系统总线互连网络传输层QoS标签之间的第一映射关系,以及系统总线互连网络传输层QoS标签与系统总线互连网络链路层QoS标签之间的第二映射关系;
获得所述通信队列与数据通信网络网络层QoS标签之间的第三映射关系;
将所述第一映射关系、所述第二映射关系以及所述第三映射关系,作为所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述第一QoS域包括下述至少一种信息:系统总线互连网络传输层QoS标签、系统总线互连网络链路层QoS标签;所述第二QoS域包括:数据通信网络网络层QoS标签。
可选的,所述根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制,包括:
获得由数据通信网络发往系统总线互连网络的数据;
从所述数据中获得通信队列号;
根据所述通信队列号以及所述映射关系包括的第一映射关系,获得用于标记数据的对应所述通信队列号的系统总线互连网络传输层QoS标签;
根据所述系统总线互连网络传输层QoS标签,将所述数据由所述通信队列调度到对应所述系统总线互连网络传输层QoS标签的目标流类别队列。
可选的,还包括:
获得所述目标流类别队列中的数据;
根据用于标记所述数据的系统总线互连网络传输层QoS标签以及第二映射关系,获得用于标记所述数据的对应所述系统总线互连网络传输层QoS标签的系统总线互连网络链路层QoS标签;
根据所述系统总线互连网络链路层QoS标签,将所述数据由所述目标流类别队列调度到对应所述系统总线互连网络链路层QoS标签的目标虚拟通道队列。
可选的,所述根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制,包括:
获得来自系统总线互连网络的数据;
根据所述数据的地址,获得用于将所述数据发往数据通信网络的输出消息队列的通信队列号;
根据所述通信队列号以及所述映射关系包括的第三映射关系,获得对应所述通信队列号的数据通信网络网络层QoS标签,使用所述数据通信网络网络层QoS标签标记所述数据;
将标记后的数据传输到数据通信网络,在数据通信网络中根据标记后的数据的QoS标签信息进行QoS控制。
可选的,还包括:
根据数据通信网络的交换机中的差分服务代码点与网络虚拟通道映射关系,获得对应的网络虚拟通道信息,将所述数据转发给数据通信网络中的目标设备。
可选的,所述根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制,包括:根据第一映射关系和第二映射关系中的至少一种,对由数据通信网络发往系统总线互连网络的数据进行QoS控制。
可选的,所述根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制,包括:根据第三映射关系对由系统总线互连网络发往数据通信网络的数据进行QoS控制。
可选的,所述根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制,包括下述至少一种处理:
根据所述映射关系,将数据通信网络发往系统总线互连网络的数据,由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列,其中,所述输入消息队列为存放由数据通信网络发往系统总线互连网络的数据的通信队列;
根据所述映射关系,将由系统总线互连网络发往数据通信网络的数据,由输出消息队列调度到数据通信网络网络层的差分服务代码点队列,其中,所述输出消息队列为存放由系统总线互连网络发往数据通信网络的数据的通信队列。
可选的,所述根据所述映射关系,将数据通信网络发往系统总线互连网络的数据, 由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列,包括:
获得虚拟通道队列的第一流量管理器数据;
根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述QoS配置数据匹配的目标虚拟通道队列。
可选的,还包括:获得流类别队列的第二流量管理器数据;
所述根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述QoS配置数据匹配的目标虚拟通道队列,包括:根据所述映射关系以及所述第二流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述第二流量管理器数据包括的QoS配置数据匹配的目标流类别队列;根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述目标流类别队列的数据调度到与所述第一流量管理器数据包括的QoS配置数据匹配的目标虚拟通道队列。
本申请还提供一种网络接口控制器,通过系统总线接入第一计算设备内的系统总线互连网络,并将第一计算设备接入数据通信网络,所述数据通信网络为第一计算设备与第二计算设备之间的数据通信网络,包括:第一QoS域获得模块、第二QoS域获得模块、QoS映射控制模块以及网络接口引擎;其中,
所述第一QoS域获得模块,用于获得针对系统总线互连网络的第一QoS配置数据;
所述第二QoS域获得模块,用于获得针对数据通信网络的第二QoS配置数据;
所述QoS映射控制模块,用于根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;
所述网络接口引擎,用于根据所述映射关系,对第一计算设备和第二计算设备之间传输的数据进行QoS控制。
可选的,所述QoS映射控制模块,用于:根据第一QoS配置数据获得所述网络接口控制器的通信队列与系统总线传输层QoS标签之间的映射关系,以及系统总线传输层QoS标签与系统总线链路层QoS标签之间的映射关系;根据第二QoS配置数据获得所述网络接口控制器的通信队列与差分服务代码点的映射关系。
可选的,还包括:网络状态模块;所述网络状态模块,用于获取数据通信网络的第一状态信息和系统总线互连网络的第二状态信息中的至少一种状态信息,将所述至少一种状态信息发送给QoS映射控制模块;所述QoS映射控制模块用于根据所述至少一种状 态信息调整所述映射关系。
可选的,所述网络接口引擎,包括输入端QoS控制子模块和输出端QoS控制子模块中的至少一个子模块;其中,所述输入端QoS控制子模块用于对由数据通信网络通过所述网络接口控制器发往系统总线互连网络的数据进行QoS控制;所述输出端QoS控制子模块用于对由系统总线互连网络通过所述网络接口控制器发往数据通信网络的数据进行QoS控制。
可选的,所述输出端QoS控制子模块,用于对所述数据进行从网络接口控制器通信队列的输出队列到差分服务代码点队列间的调度。
可选的,所述输入端QoS控制子模块用于根据流类别队列绑定的流量管理器的第一QoS配置数据,将网络接口控制器的通信队列中要发往系统总线互连网络的数据调度到与所述第一QoS配置数据匹配的流类别队列;根据虚拟通道队列绑定的流量管理器的第二QoS配置数据,将流类别队列的数据调度到与所述第二QoS配置数据匹配的虚拟通道队列。
可选的,所述输入端QoS控制子模块用于根据虚拟通道队列绑定的流量管理器的第二QoS配置数据,将网络接口控制器的通信队列中要发往系统总线互连网络的数据调度到与所述第二QoS配置数据匹配的虚拟通道队列。
本申请还提供一种QoS控制方法,包括:
获得系统总线互连网络的QoS配置信息;
根据所述QoS配置信息,通过多级调度将发往系统总线互连网络的数据由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列;其中,所述输入消息队列为存放所述数据的通信队列。
可选的,所述根据所述QoS配置信息,通过多级调度将发往系统总线互连网络的数据由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列,包括:
获得虚拟通道队列的第一流量管理器数据;
根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述QoS配置数据匹配的目标虚拟通道队列。
可选的,还包括:获得流类别队列的第二流量管理器数据;
所述根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述QoS配置数据匹配的目标虚拟通道队列,包括:根据所述映射关系以及所述第二流量管理器数据包括的QoS配置数据,将所述数据由所述输 入消息队列调度到与所述第二流量管理器数据包括的QoS配置数据匹配的目标流类别队列;根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述目标流类别队列的数据调度到与所述第一流量管理器数据包括的QoS配置数据匹配的目标虚拟通道队列。
本申请还提供一种QoS处理装置,包括:
第一QoS配置数据获得单元,用于获得针对系统总线互连网络的第一QoS配置数据;
第二QoS配置数据获得单元,用于获得针对数据通信网络的第二QoS配置数据;
映射单元,用于根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述映射关系用于对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
本申请还提供一种QoS控制装置,包括:
映射关系获得单元,用于获得系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系;
QoS控制单元,用于根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
本申请还提供一种电子设备,包括:
存储器,以及处理器;所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:
获得针对系统总线互连网络的第一QoS配置数据;
获得针对数据通信网络的第二QoS配置数据;
根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述映射关系用于对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
本申请还提供一种电子设备,包括:
存储器,以及处理器;所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:
获得系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系;
根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数 据进行QoS控制。
本申请还提供一种网络流量调度方法,包括:
获得针对系统总线互连网络的第一QoS配置数据;
获得针对数据通信网络的第二QoS配置数据;
根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;
根据所述映射关系针对在所述数据通信网络和所述系统总线互连网络之间传输的数据流量进行调度。
与现有技术相比,本申请具有以下优点:
本申请提供的一种QoS控制方法,通过根据系统总线互连网络的第一QoS配置数据和数据通信网络的第二QoS配置数据,建立系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系,将数据通信网络和系统总线互连网络之间的QoS域关联起来,解决了两个QoS域的隔离问题;进一步,将所述映射关系用于对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制,能够实现端对端QoS控制。
本申请提供的一种QoS控制方法,通过根据系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制,能够对两个网络中传输的数据进行一致的QoS控制,从而解决了数据通信网络和系统总线互连网络之间数据传输的端对端QoS控制问题。
本申请提供的一种网络接口控制器,包括:第一QoS域获得模块、第二QoS域获得模块、QoS映射控制模块以及网络接口引擎;通过第一QoS域获得模块和第二QoS域获得模块能够获得用于建立系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系的数据,通过QoS映射控制模块,能够建立所述映射关系,解决了数据通信网络和系统总线互连网络之间的QoS域隔离问题;通过网络接口引擎,能根据所述映射关系,对系统总线互连网络和数据通信网络中传输的数据进行端对端QoS控制。
本申请提供的网络流量调度方法,通过在系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间建立映射关系,根据所述映射关系针对在所述数据通信网络和所述系统总线互连网络之间传输的数据流量进行调度,实现针对所述数据流量的端对端QoS控制。
图1是系统总线互连网络与数据通信网络之间进行数据传输的网络环境示意图;
图2是本申请第一实施例提供的一种QoS处理方法的处理流程图;
图3是本申请第二实施例提供的一种QoS控制方法的处理流程图;
图4是本申请第三实施例提供的一种网络接口控制器示意图;
图5是本申请第三实施例提供的一种网络接口控制器结构示意图;
图6是本申请第三实施例包括的输入端QoS控制子模块结构示意图;
图7是本申请第四实施例提供的一种QoS控制方法的处理流程图;
图8是本申请第五实施例提供的一种QoS处理装置示意图;
图9是本申请第六实施例提供的一种QoS控制装置示意图;
图10是本申请提供的一种电子设备示意图;
图11是本申请第九实施例提供的一种网络流量调度方法的处理流程图。
在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。
本申请提供一种QoS处理方法、装置及电子设备。本申请还提供一种QoS控制方法、装置及设备。本申请还提供一种网络接口控制器。在下面的实施例中逐一进行详细说明。
本申请第一实施例提供一种QoS处理方法,用于在系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间建立映射关系,将数据通信网络和系统总线互连网络之间的QoS域关联起来。
为便于理解,首先介绍系统总线互连网络与数据通信网络之间进行数据传输的网络环境。
请参考图1,图中,数据中心网络101为数据通信网络,具体是用于服务器间数据通信的网络,能够通过包含的网络转发设备给数据流量提供QoS控制,降低流量间干扰,保障不同流量间的服务质量。系统总线互连网络102是服务器内系统总线互连网络,即服务器内互连各种设备的通信总线构成的网络,所谓系统总线可以是PCIE总线、CCIX总线、OpenCAPI总线、GenZ总线、CXL总线,能够给在服务器内系统总线互连网络中传输的数据流量提供QoS控制,例如,采用PCIE总线的系统总线互连网络,一般包括 TC和VC两级QoS机制。网络接口控制器103用于在数据中心网络101和系统总线互连网络102之间传输数据,例如可以是连接数据通信网络和系统总线互连网络的网卡。网络接口控制器103通过通信队列(Queue Pair,缩写为QP)与数据中心网络101之间进行数据传输,并提供第一QoS域用于对网络接口控制器103与数据中心网络101之间传输的数据进行QoS控制,其中,通信队列可以为网卡上的硬件队列,网络接口控制器内有多个QP,一个Socket链接的通信可以由一个QP完成,如图中所示的QP0、QP1、…、QPn-1;网络接口控制器103通过流量类别队列(TC)与系统总线互连网络102的虚拟通道(VC)之间映射进行数据传输,并提供第二QoS域用于对网络接口控制器103与系统总线互连网络102之间传输的数据进行QoS控制。现有技术中,第一QoS域与第二QoS域处于隔离状态,因此针对在数据中心网络101和系统总线互连网络103之间传输的数据无法进行端对端QoS控制,在数据中心网络中得到高服务质量保障的流量,在服务器内部却可能只是最低服务质量保障。
以下结合图2对本申请第一实施例提供的所述QoS处理方法进行说明。
图2所示的QoS处理方法,包括:步骤S201至步骤S203。
步骤S201,获得针对系统总线互连网络的第一QoS配置数据。
所述第一QoS配置数据,为系统总线互连网络QoS配置信息,例如,可以是服务器内系统总线互连全局QoS配置信息,服务器内系统总线上连接的多个总线设备使用的全局QoS配置信息,如显示卡、声卡等总线设备使用全局QoS配置信息。
本步骤为获得针对系统总线互连网络的第一QoS配置数据。具体可以从连接数据通信网络与服务器内系统总线互连网络的网络接口控制器的配置信息中获得所述网络接口控制器与系统总线的接口上绑定的QoS配置信息。
步骤S202,获得针对数据通信网络的第二QoS配置数据。
所述第二QoS配置数据,为数据通信网络的QoS配置信息,例如,可以是数据中心网络全局QoS配置信息,数据中心网络的各转发设备使用的全局QoS配置信息,如路由器、交换机等交换设备针对指定流量使用相同的QoS配置信息。
本步骤是获得针对数据通信网络的第二QoS配置数据。具体可以从连接数据通信网络与服务器内系统总线互连网络的网络接口控制器的配置信息中获得所述网络接口控制器与数据通信网络的接口上绑定的QoS配置信息。
步骤S203,根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中, 所述映射关系用于对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
本实施例中,通过下述处理建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系:
根据所述第一QoS配置数据,获得用于存储所述数据的通信队列与系统总线互连网络传输层QoS标签之间的第一映射关系,以及系统总线互连网络传输层QoS标签与系统总线互连网络链路层QoS标签之间的第二映射关系;
根据所述第二QoS配置数据,获得所述通信队列与数据通信网络网络层QoS标签之间的第三映射关系;
根据所述第一映射关系、所述第二映射关系以及所述第三映射关系,得到所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述第一QoS域包括下述至少一种信息:系统总线互连网络传输层QoS标签、系统总线互连网络链路层QoS标签;所述第二QoS域包括:数据通信网络网络层QoS标签。
实际应用中,传输层QoS标签是标识传输层服务差异的标签,可以是系统总线事务层TLP包的TC字段;链路层QoS标签是标识链路层服务差异的标签,可以是系统总线链路层包头中的VC字段。数据通信网络网络层QoS标签可以是以太网网络层的qos标签,即IP包的DSCP值。
以网卡连接数据中心网络和服务器内的系统总线互连网络为例,将所述方法应用于网卡。网卡接受针对所述网卡与系统总线侧接口的总线互连全局QoS配置信息,从所述总线互连全局QoS配置信息中获取QP(即网卡通信队列)与SysTC之间的映射关系,其中SysTC是系统总线传输层QoS标签,将所述映射关系作为第一映射关系;从所述总线互连全局QoS配置信息中获取SysTC与SysVC之间的映射关系,其中,SysVC是系统总线链路层QoS标签;将所述映射关系作为第二映射关系。网卡接受针对与数据中心网络侧接口的全局QoS配置,从所述全局QoS配置中获取QP(即网卡通信队列)与DSCP(即IP包中的QoS域)间的映射关系,将所述映射关系作为第三映射关系。将第一映射关系、第二映射关系、第三映射关系作为所述第一QoS和第二QoS域这两种QoS体系之间的映射关系,即所述两种QoS体系之间的映射关系,包括:进入服务器内方向的网卡通信队列到网卡流量类别队列再到系统总线虚拟通道的QoS映射关系;出服务器进入数据通信网络方向的通信队列到IP包的DSCP的QoS映射关系。
本实施例的一个实施方式中,还包括根据数据通信网络的网络状态以及系统总线互 连的网络状态两种信息中的至少一种信息调整系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系。其中,数据通信网络的网络状态,包括网络延迟、拥塞状态中的至少一种状态信息;系统总线互连网络的网络状态,包括网络延迟、拥塞状态中的至少一种状态信息。具体包括下述处理:
获得所述系统总线互连网络的第一网络状态信息;
获得所述数据通信网络的第二网络状态信息;
根据第一网络状态信息和第二网络状态信息中的至少一种信息,对第一映射关系、第二映射关系以及第三映射关系进行调整;
根据调整后的第一映射关系、第二映射关系以及第三映射关系,得到所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系。
本实施例的一种实施方式中,还包括下述处理:
根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
本实施例的一种实施方式中,还包括将映射关系存储到表中。具体包括下述处理:
将所述第一映射关系存储到以所述通信队列的队列号为索引的第一映射关系表;将所述第二映射关系存储到第二映射关系表;将所述第三映射关系存储到以所述通信队列的队列号为索引的第三映射关系表。
进一步,所述第一映射关系表和第三映射关系表分别还包括用于存储非通信队列号索引的映射关系的预留映射区,所述非通信队列号索引的映射关系用于未与通信队列绑定的特定流量的流量控制。
沿用以网卡连接数据中心网络和服务器内的系统总线互连网络的例子。将QP与SysTC映射关系写入第一映射关系表;将SysTC与SysVC之间的映射关系写入第二映射关系表;将QP与DSCP的映射关系写入第三映射关系表。其中,第一映射关系表以及第二映射关系表用于对进入服务器内系统总线互连网络的数据进行QoS控制;第三映射关系表用于出服务器内系统总线互连网络进入服务器间数据通信网络的数据进行QoS控制。实际应用中,网卡的网络接口引擎读取映射关系表信息进行QoS映射,对于出服务器内系统总线互连网络进入服务器间数据通信网络的数据,离开服务器后由数据通信网络的交换设备例如交换机,进行DSCP到网络队列(NetVC)的映射,最终实现端对端QoS控制。
本实施例的一种实施方式中,具体通过下述处理对在所述数据通信网络和所述系统 总线互连网络之间传输的数据包进行QoS控制:
查询第一映射关系表,获得第一映射关系;
根据所述第一映射关系查询第二映射关系表获得第二映射关系;
根据第一映射关系和第二映射关系对由数据通信网络发往系统总线互连网络的数据包进行QoS控制。
本实施例的一种实施方式中,具体通过下述处理对在所述数据通信网络和所述系统总线互连网络之间传输的数据包进行QoS控制:
查询第三映射关系表,获得第三映射关系;
根据第三映射关系对由系统总线互连网络发往数据通信网络的数据包进行QoS控制。
需要说明的是,如果将进入服务器内系统总线互连网络的数据作为输入方向的数据,将出服务器内系统总线互连网络进入数据通信网络的数据作为输出方向的数据,则建立输入方向的QoS映射关系与建立输出方向的QoS映射关系可以分别单独实施,例如:
根据所述第一QoS配置数据,获得用于存储所述数据的通信队列与系统总线互连网络传输层QoS标签之间的第一映射关系,以及系统总线互连网络传输层QoS标签与系统总线互连网络链路层QoS标签之间的第二映射关系;将所述第一映射关系以及所述第二映射关系作为输入方向QoS映射关系;
根据所述第二QoS配置数据,获得所述通信队列与数据通信网络网络层QoS标签之间的第三映射关系;将所述第三映射关系作为输出方向QoS映射关系。
建立输入方向QoS映射关系和输出方向QoS映射关系中的至少一种映射关系,均属于本申请保护范围。甚至,在建立输入方向QoS映射关系中,建立第一映射关系和第二映射关系中的至少一种映射关系,均属于本申请保护范围。
本实施例中,还包括下述处理:
获得系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系;
根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
其中,所述获得系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系,包括:
获得所述数据通信网络和所述系统总线互连网络之间用于存储所述数据的通信队列 与系统总线互连网络传输层QoS标签之间的第一映射关系,以及系统总线互连网络传输层QoS标签与系统总线互连网络链路层QoS标签之间的第二映射关系;
获得所述通信队列与数据通信网络网络层QoS标签之间的第三映射关系;
根据所述第一映射关系、所述第二映射关系以及所述第三映射关系,得到所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述第一QoS域包括下述至少一种信息:系统总线互连网络传输层QoS标签、系统总线互连网络链路层QoS标签;所述第二QoS域包括:数据通信网络网络层QoS标签。
本实施例中,通过下述处理对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制:
获得由数据通信网络发往系统总线互连网络的数据;
从所述数据中获得通信队列号;
根据所述通信队列号以及所述映射关系包括的第一映射关系,获得用于标记数据的对应所述通信队列号的系统总线互连网络传输层QoS标签;
根据所述系统总线互连网络传输层QoS标签,将所述数据由所述通信队列调度到对应所述系统总线互连网络传输层QoS标签的目标流类别队列。
本实施例的一个实施方式中包括对所述数据进行二级调度,即通过两级调度将所述数据调度到系统总线互连网络的虚拟通道队列。具体包括下述处理:
获得所述目标流类别队列中的数据;
根据用于标记所述数据的系统总线互连网络传输层QoS标签以及第二映射关系,获得用于标记所述数据的对应所述系统总线互连网络传输层QoS标签的系统总线互连网络链路层QoS标签;
根据所述系统总线互连网络链路层QoS标签,将所述数据由所述目标流类别队列调度到对应所述系统总线互连网络链路层QoS标签的目标虚拟通道队列。
本实施例的一个实施方式中,包括对由系统总线互连网络发往数据通信网络的数据进行QoS控制,具体包括下述处理:
获得来自系统总线互连网络的数据;
根据所述数据的地址,获得用于将所述数据发往数据通信网络的输出消息队列的通信队列号;
根据所述通信队列号以及所述映射关系包括的第三映射关系,获得对应所述通信队列号的数据通信网络网络层QoS标签,使用所述数据通信网络网络层QoS标签标记所述 数据;
将标记后的数据传输到数据通信网络,在数据通信网络中根据标记后的数据的QoS标签信息进行QoS控制。
其中,所述在数据通信网络中根据标记后的数据的QoS标签信息进行QoS控制,包括下述处理:根据数据通信网络的交换机中的差分服务代码点与网络虚拟通道映射关系,获得对应的网络虚拟通道信息,将所述数据转发给数据通信网络中的目标设备。
本实施例的一个实施方式中,包括下述处理对由系统总线互连网络发往数据通信网络的数据进行QoS控制:根据第一映射关系和第二映射关系中的至少一种,对由数据通信网络发往系统总线互连网络的数据进行QoS控制。
本实施例的一个实施方式中,包括下述处理对由数据通信网络发往系统总线互连网络的数据进行QoS控制:根据第三映射关系对由系统总线互连网络发往数据通信网络的数据进行QoS控制。
本实施例的一个实施方式中,包括下述至少一种处理对数据进行调度:
根据所述映射关系,将数据通信网络发往系统总线互连网络的数据,由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列,其中,所述输入消息队列为存放由数据通信网络发往系统总线互连网络的数据的通信队列;
根据所述映射关系,将由系统总线互连网络发往数据通信网络的数据,由输出消息队列调度到数据通信网络网络层的差分服务代码点队列,其中,所述输出消息队列为存放由系统总线互连网络发往数据通信网络的数据的通信队列。
其中,所述根据所述映射关系,将数据通信网络发往系统总线互连网络的数据,由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列,包括:
获得虚拟通道队列的第一流量管理器数据;
根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述QoS配置数据匹配的目标虚拟通道队列。
本实施例的一个实施方式中,还包括对所述数据进行两级调度,具体包括下述处理:
获得流类别队列的第二流量管理器数据;
根据所述映射关系以及所述第二流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述第二流量管理器数据包括的QoS配置数据匹配的目标流类别队列;
根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述目标流类 别队列的数据调度到与所述第一流量管理器数据包括的QoS配置数据匹配的目标虚拟通道队列。
至此,对本申请第一实施例提供的QoS处理方法进行了详细介绍。所述QoS处理方法,用于在系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间建立映射关系,以便将数据通信网络和系统总线互连网络之间的QoS域关联起来,进一步进行端对端QoS控制。
以上述实施例为基础,本申请第二实施例提供了一种QoS控制方法。
以下结合图3对本申请第二实施例提供的所述QoS控制方法进行说明。
图3所示的QoS控制方法,包括:步骤S301至步骤S302。
步骤S301,获得系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系。
本实施例中,所述第一QoS域包括下述至少一种信息:系统总线互连网络传输层QoS标签、系统总线互连网络链路层QoS标签;所述第二QoS域包括:数据通信网络网络层QoS标签。具体包括下述处理获得所述映射关系:
获得所述数据通信网络和所述系统总线互连网络之间用于存储所述数据的通信队列与系统总线互连网络传输层QoS标签之间的第一映射关系,以及系统总线互连网络传输层QoS标签与系统总线互连网络链路层QoS标签之间的第二映射关系;
获得所述通信队列与数据通信网络网络层QoS标签之间的第三映射关系;
将所述第一映射关系、所述第二映射关系以及所述第三映射关系,作为所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系。
其中,所述第一映射关系和所述第二映射关系中的至少一种用于针对由数据通信网络发往系统总线互连网络的数据进行QoS控制,也可以说是对网卡或服务器的输入方向进行QoS控制;所述第三映射关系用于针对由系统总线互连网络发往数据通信网络的数据进行QoS控制,也可以说是对网卡或服务器的输出方向进行QoS控制。
步骤S302,根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
本实施例中,通过下述处理对由数据通信网络发往系统总线互连网络的数据进行QoS控制:
获得由数据通信网络发往系统总线互连网络的数据;
从所述数据中获得通信队列号;
根据所述通信队列号以及所述映射关系包括的第一映射关系,获得用于标记数据的对应所述通信队列号的系统总线互连网络传输层QoS标签;
根据所述系统总线互连网络传输层QoS标签,将所述数据由所述通信队列调度到对应所述系统总线互连网络传输层QoS标签的目标流类别队列。
如果将所述数据由输入消息队列(即用于存储所述数据的通信队列)调度到目标流类别队列作为一级调度,则进一步还可以包括对所述数据进行二级调度,由所述目标流类别队列调度到目标虚拟通道队列,通过两级调度对所述数据进行QoS控制。具体包括下述处理:
获得所述目标流类别队列中的数据;
根据用于标记所述数据的系统总线互连网络传输层QoS标签以及第二映射关系,获得用于标记所述数据的对应所述系统总线互连网络传输层QoS标签的系统总线互连网络链路层QoS标签;
根据所述系统总线互连网络链路层QoS标签,将所述数据由所述目标流类别队列调度到对应所述系统总线互连网络链路层QoS标签的目标虚拟通道队列。
当然,也可以根据QoS配置信息直接将所述数据由通信队列调度到目标虚拟通道队列。
本实施例中,通过下述处理由系统总线互连网络发往数据通信网络的数据进行QoS控制:
获得来自系统总线互连网络的数据;
根据所述数据的地址,获得用于将所述数据发往数据通信网络的输出消息队列的通信队列号;
根据所述通信队列号以及所述映射关系包括的第三映射关系,获得对应所述通信队列号的数据通信网络网络层QoS标签,使用所述数据通信网络网络层QoS标签标记所述数据;
将标记后的数据传输到数据通信网络,在数据通信网络中根据标记后的数据的QoS标签信息进行QoS控制。
进一步,在所述来自系统总线互连网络的数据出系统总线互连网络进入数据通信网络后,还包括下述处理以实现端对端QoS控制:根据数据通信网络的交换机中的差分服务代码点与网络虚拟通道映射关系,获得对应的网络虚拟通道信息,将所述数据转发给 数据通信网络中的目标设备。
本实施例中,通过下述处理对由数据通信网络发往系统总线互连网络的数据进行QoS控制,包括:根据第一映射关系和第二映射关系中的至少一种,对由数据通信网络发往系统总线互连网络的数据进行QoS控制。
本实施例中,通过下述处理对由系统总线互连网络发往数据通信网络的数据进行QoS控制,包括:根据第三映射关系对由系统总线互连网络发往数据通信网络的数据进行QoS控制。
本实施例的一个实施方式中,包括下述至少一种处理方式对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制:
方式一、根据所述映射关系,将数据通信网络发往系统总线互连网络的数据,由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列,其中,所述输入消息队列为存放由数据通信网络发往系统总线互连网络的数据的通信队列;具体包括:获得虚拟通道队列的第一流量管理器数据;根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述QoS配置数据匹配的目标虚拟通道队列。进一步还包括:获得流类别队列的第二流量管理器数据;根据所述映射关系以及所述第二流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述第二流量管理器数据包括的QoS配置数据匹配的目标流类别队列;根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述目标流类别队列的数据调度到与所述第一流量管理器数据包括的QoS配置数据匹配的目标虚拟通道队列。
方式二、根据所述映射关系,将由系统总线互连网络发往数据通信网络的数据,由输出消息队列调度到数据通信网络网络层的差分服务代码点队列,其中,所述输出消息队列为存放由系统总线互连网络发往数据通信网络的数据的通信队列。
至此,对本申请第二实施例提供的QoS控制方法进行了详细介绍。所述QoS控制方法,用于根据系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系,对在数据通信网络和系统总线互连网络之间传输的数据进行QoS控制,实现了端对端QoS控制。
以上述实施例为基础,本申请第三实施例提供了一种网络接口控制器。所述网络接口控制器,通过系统总线接入第一计算设备内的系统总线互连网络,并将第一计算设备接入数据通信网络,所述数据通信网络为第一计算设备与第二计算设备之间的数据通信 网络。以下结合图4至图6对所述网络接口控制器进行说明。
图4所示的网络接口控制器,包括:第一QoS域获得模块401、第二QoS域获得模块402、QoS映射控制模块403以及网络接口引擎404;其中,
所述第一QoS域获得模块401,用于获得针对系统总线互连网络的第一QoS配置数据;
所述第二QoS域获得模块402,用于获得针对数据通信网络的第二QoS配置数据;
所述QoS映射控制模块403,用于根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;
所述网络接口引擎404,用于根据所述映射关系,对第一计算设备和第二计算设备之间传输的数据进行QoS控制。
本实施例中,所述第一QoS配置数据可以为服务器内系统总线互连网络全局QoS配置;所述第二QoS配置数据可以为数据通信网络全局QoS配置。所述QoS映射控制模块用于:根据第一QoS配置数据获得所述网络接口控制器的通信队列与系统总线传输层QoS标签之间的映射关系,以及系统总线传输层QoS标签与系统总线链路层QoS标签之间的映射关系;根据第二QoS配置数据获得所述网络接口控制器的通信队列与差分服务代码点的映射关系。将第一映射关系、第二映射关系以及第三映射关系中的至少一种映射关系的信息提供给网络接口引擎。
例如,实际应用中,QoS映射控制模块根据第一QoS配置信息,获取QP(通信队列)与SysTC之间的映射关系,将所述映射关系写入第一映射关系表;获取SysTC与SysVC之间的映射关系,将所述映射关系写入第二映射关系表,其中,SysTC为系统总线互连网络传输层层QoS信息,SysVC为系统总线互连网络链路层QoS信息。再如,QoS映射控制模块根据第二QoS配置数据获得QP(通信队列)与DSCP(IP包中的QoS域)间的映射关系,将所述映射关系写入第三映射关系表,进一步所述第三映射关系用于针对出网卡进入数据通信网络交换设备的数据进行QoS控制,在所述数据离开网卡后,由数据通信网络的交换设备例如交换机进行DSCP到网络队列(NetVC)的映射,实现端对端QoS控制。进一步,针对不与QP(通信队列)绑定的特定流量,第一映射关系表、第二映射关系表分别包含预留映射区,用于存储非通信队列号索引的映射关系。
本实施例中,所述网络接口控制器,还包括:网络状态模块;所述网络状态模块,用于获取数据通信网络的第一状态信息和系统总线互连网络的第二状态信息中的至少一 种状态信息,将所述至少一种状态信息发送给QoS映射控制模块,例如,获取的数据中心网络的网络状态,包括网络延迟、拥塞状态中的至少一种状态信息;再如,获取的系统总线互连网络的网络状态,包括网络延迟、拥塞状态中的至少一种状态信息;相应的,所述QoS映射控制模块用于根据所述至少一种状态信息调整所述映射关系,即根据网络状态动态修改存储有QP与SysTC映射关系的第一映射关系表、存储有SysTC与SysVC映射关系的第二映射关系表和存储有QP与DSCP映射关系第三映射关系表中的至少一种映射关系表。
本实施例中,所述网络接口引擎,包括输入端QoS控制子模块和输出端QoS控制子模块中的至少一个子模块;其中,所述输入端QoS控制子模块用于对由数据通信网络通过所述网络接口控制器发往系统总线互连网络的数据进行QoS控制;所述输出端QoS控制子模块用于对由系统总线互连网络通过所述网络接口控制器发往数据通信网络的数据进行QoS控制。即,输入端QoS控制子模块用于对输入方向的数据进行QoS保障;输出端QoS控制子模块用于对输出方向的数据进行QoS保障。当然,所述网络接口引擎还可以包括标准网络接口控制器的网络消息收发功能,例如事务层协议处理(Transaction Layer Process,TLP)、DMA引擎、中断管理、拆包打包、拥塞控制等。
本实施例中,所述输入端QoS控制子模块具体用于根据流类别队列绑定的流量管理器的第一QoS配置数据,将网络接口控制器的通信队列中要发往系统总线互连网络的数据调度到与所述第一QoS配置数据匹配的流类别队列;根据虚拟通道队列绑定的流量管理器的第二QoS配置数据,将流类别队列的数据调度到与所述第二QoS配置数据匹配的虚拟通道队列。请参考图5,图5给出了输入端QoS控制子模块的原理示意图,图中的输入端QoS控制子模块,包含两级调度,其中,第一级调度根据每个SysTC队列501绑定的TM(Traffic Manager,流量管理器)502,将每个QP输入消息队列503要发往系统总线互连网络的数据,调度至目标流类别队列,即目标SysTC队列,例如,TM的配置中包括针对QP0,分配SysTC0 60%带宽,则TM按照所述配置进行调度;第二级调度根据每个虚拟通道队列即SysVC队列504绑定的TM505,将SysTC队列的数据调度至相应目标虚拟通道队列,例如TM的配置中包括针对SysTC0,分配SysVC0 30%带宽,则TM将按照所述配置进行调度。
本实施例的一个实施方式中,去掉SysTC队列,使用QP输入消息队列到SysVC队列的一级调度。具体的,所述输入端QoS控制子模块用于根据虚拟通道队列绑定的流量管理器的第二QoS配置数据,将网络接口控制器的通信队列中要发往系统总线互连网络 的数据调度到与所述第二QoS配置数据匹配的虚拟通道队列。
本实施例中,所述输出端QoS控制子模块,用于对所述数据进行从网络接口控制器通信队列的输出队列到差分服务代码点队列间的调度。即,进行输出方向数据的QoS保障。当然,所述输出端QoS控制子模块,还可以实现Shaper对流量进行整形。
请参考图6,图6为实际实施的一种网络接口控制器的示意图,图中包括:系统总线互连全局QoS配置601用于获取第一QoS配置数据,并提供给QoS映射控制模块。数据中心网络全局QoS配置602,用于获取第二QoS配置数据,并提供给QoS映射控制模块。数据中心网络及系统总线互连网络状态模块603,用于获取数据中心网络以及系统总线互连网络的网络状态,并提供给QoS映射控制模块。QoS映射控制模块604,用于根据第一QoS配置数据建立存储有QP与SysTC映射关系的第一映射关系表以及存储有SysTC与SysVC映射关系的第二映射关系表;根据第二QoS配置数据建立存储有QP与DSCP映射关系的第三映射关系表;根据数据中心网络以及系统总线互连网络的网络状态更新三个映射关系表中的至少一个映射关系表。网络接口引擎605包括:iQoS和eQoS两个模块;其中,eQoS模块用于控制输入方向的数据的QoS;eQoS模块,用于控制输入方向的数据的QoS。
沿用图6所示的例子,实际应用中,使用所述网络接口控制器,从数据通信网络到系统总线互连网络的QoS标签映射过程包括:由DSCP映射为QP,根据数据中的DSCP和QP号直接进行映射;由QP映射到SysTC,通过查询存储有QP与SysTC映射关系的第一映射关系表实现;由SysTC映射为SysVC,通过查询存储有SysTC与SysVC映射关系的第二映射关系表实现。实际应用中,使用所述网络接口控制器,从系统总线网络到数据通信网络的数据的QoS标签变化过程:由SysVC变化为SysTC,再进一步变化为QP,通过网络接口引擎的QP消费总线消息,根据消息地址确定QP队列;由QP变化为DSCP,通过查询存储有QP与DSCP映射关系的第三映射关系表实现;由DSCP映射为NetVC,通过查询交换机中的DSCP与NetVC映射表实现。
以上述实施例为基础,本申请第四实施例提供了一种QoS控制方法。
以下结合图7对本申请第四实施例提供的所述QoS控制方法进行说明。
图7所示的QoS控制方法,包括:步骤S701至步骤S702。
步骤S701,获得系统总线互连网络的QoS配置信息。
本实施例中,获取系统总线互连网络的全局QoS配置信息。并且,还获得发往系统 总线互连网络的数据,具体为获得由数据通信网络发往系统总线互连网络的数据,以便对输入方向的数据进行QoS控制。
步骤S702,根据所述QoS配置信息,通过多级调度将发往系统总线互连网络的数据由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列;其中,所述输入消息队列为存放所述数据的通信队列。
本实施例中,通过下述一级调度将所述数据由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列:
获得虚拟通道队列的第一流量管理器数据;
根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述QoS配置数据匹配的目标虚拟通道队列。
本实施例的一个实施方式中,包括两级调度对所述数据进行QoS控制,具体包括下述处理:
获得虚拟通道队列的第一流量管理器数据;
获得流类别队列的第二流量管理器数据;
根据所述映射关系以及所述第二流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述第二流量管理器数据包括的QoS配置数据匹配的目标流类别队列;
根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述目标流类别队列的数据调度到与所述第一流量管理器数据包括的QoS配置数据匹配的目标虚拟通道队列。
与第一实施例相对应,本申请第五实施例提供一种QoS处理装置。图8示出了第五实施例提供的装置示意图。以下结合图8对所述装置进行说明。
图8所示的QoS处理装置,包括:
第一QoS配置数据获得单元801,用于获得针对系统总线互连网络的第一QoS配置数据;
第二QoS配置数据获得单元802,用于获得针对数据通信网络的第二QoS配置数据;
映射单元803,用于根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述映射关系用于对在所述数据通信网络和所述系统总线互连网络之间传输的数 据进行QoS控制。
可选的,所述第一QoS配置数据获得单元801,具体用于:
根据所述第一QoS配置数据,获得用于存储所述数据的通信队列与系统总线互连网络传输层QoS标签之间的第一映射关系,以及系统总线互连网络传输层QoS标签与系统总线互连网络链路层QoS标签之间的第二映射关系;
根据所述第二QoS配置数据,获得所述通信队列与数据通信网络网络层QoS标签之间的第三映射关系;
根据所述第一映射关系、所述第二映射关系以及所述第三映射关系,得到所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述第一QoS域包括下述至少一种信息:系统总线互连网络传输层QoS标签、系统总线互连网络链路层QoS标签;所述第二QoS域包括:数据通信网络网络层QoS标签。
可选的,所述装置还包括网络状态获得单元,所述网络状态获得单元用于:
获得所述系统总线互连网络的第一网络状态信息;
获得所述数据通信网络的第二网络状态信息;
根据第一网络状态信息和第二网络状态信息中的至少一种信息,对第一映射关系、第二映射关系以及第三映射关系进行调整;
根据调整后的第一映射关系、第二映射关系以及第三映射关系,得到所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系。
可选的,所述装置还包括QoS控制单元,所述QoS控制单元用于:
根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
与第二实施例相对应,本申请第六实施例提供一种QoS控制装置。图9示出了第六实施例提供的装置示意图。以下结合图9对所述装置进行说明。
图9所示的QoS控制装置,包括:
映射关系获得单元901,用于获得系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系;
QoS控制单元902,用于根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
可选的,所述映射关系获得单元901具体用于:
获得所述数据通信网络和所述系统总线互连网络之间用于存储所述数据的通信队列与系统总线互连网络传输层QoS标签之间的第一映射关系,以及系统总线互连网络传输层QoS标签与系统总线互连网络链路层QoS标签之间的第二映射关系;
获得所述通信队列与数据通信网络网络层QoS标签之间的第三映射关系;
将所述第一映射关系、所述第二映射关系以及所述第三映射关系,作为所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述第一QoS域包括下述至少一种信息:系统总线互连网络传输层QoS标签、系统总线互连网络链路层QoS标签;所述第二QoS域包括:数据通信网络网络层QoS标签。
可选的,所述QoS控制单元902具体用于:
获得由数据通信网络发往系统总线互连网络的数据;
从所述数据中获得通信队列号;
根据所述通信队列号以及所述映射关系包括的第一映射关系,获得用于标记数据的对应所述通信队列号的系统总线互连网络传输层QoS标签;
根据所述系统总线互连网络传输层QoS标签,将所述数据由所述通信队列调度到对应所述系统总线互连网络传输层QoS标签的目标流类别队列。
可选的,所述装置还包括一级调度单元,所述一级调度单元用于:
获得所述目标流类别队列中的数据;
根据用于标记所述数据的系统总线互连网络传输层QoS标签以及第二映射关系,获得用于标记所述数据的对应所述系统总线互连网络传输层QoS标签的系统总线互连网络链路层QoS标签;
根据所述系统总线互连网络链路层QoS标签,将所述数据由所述目标流类别队列调度到对应所述系统总线互连网络链路层QoS标签的目标虚拟通道队列。
可选的,所述QoS控制单元902具体用于:
获得来自系统总线互连网络的数据;
根据所述数据的地址,获得用于将所述数据发往数据通信网络的输出消息队列的通信队列号;
根据所述通信队列号以及所述映射关系包括的第三映射关系,获得对应所述通信队列号的数据通信网络网络层QoS标签,使用所述数据通信网络网络层QoS标签标记所述数据;
将标记后的数据传输到数据通信网络,在数据通信网络中根据标记后的数据的QoS 标签信息进行QoS控制。
可选的,所述装置还包括DSCP控制单元,所述DSCP控制单元用于:
根据数据通信网络的交换机中的差分服务代码点与网络虚拟通道映射关系,获得对应的网络虚拟通道信息,将所述数据转发给数据通信网络中的目标设备。
可选的,所述QoS控制单元902具体用于:根据第一映射关系和第二映射关系中的至少一种,对由数据通信网络发往系统总线互连网络的数据进行QoS控制。
可选的,所述QoS控制单元902具体用于:根据第三映射关系对由系统总线互连网络发往数据通信网络的数据进行QoS控制。
可选的,所述QoS控制单元902具体用于下述至少一种处理:
根据所述映射关系,将数据通信网络发往系统总线互连网络的数据,由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列,其中,所述输入消息队列为存放由数据通信网络发往系统总线互连网络的数据的通信队列;
根据所述映射关系,将由系统总线互连网络发往数据通信网络的数据,由输出消息队列调度到数据通信网络网络层的差分服务代码点队列,其中,所述输出消息队列为存放由系统总线互连网络发往数据通信网络的数据的通信队列。
可选的,所述QoS控制单元902具体用于:
获得虚拟通道队列的第一流量管理器数据;
根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述QoS配置数据匹配的目标虚拟通道队列。
可选的,所述QoS控制单元902具体用于:
获得流类别队列的第二流量管理器数据;
根据所述映射关系以及所述第二流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述第二流量管理器数据包括的QoS配置数据匹配的目标流类别队列;
根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述目标流类别队列的数据调度到与所述第一流量管理器数据包括的QoS配置数据匹配的目标虚拟通道队列。
与第一实施例相对应,本申请第七实施例提供一种电子设备。图10示出了所述电子设备的示意图。以下结合图10对所述电子设备进行说明。
图10所示的电子设备,包括:
存储器1001,以及处理器1002;所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:
获得针对系统总线互连网络的第一QoS配置数据;
获得针对数据通信网络的第二QoS配置数据;
根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述映射关系用于对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
可选的,所述处理器还用于执行下述计算机可执行指令:
根据所述第一QoS配置数据,获得用于存储所述数据的通信队列与系统总线互连网络传输层QoS标签之间的第一映射关系,以及系统总线互连网络传输层QoS标签与系统总线互连网络链路层QoS标签之间的第二映射关系;
根据所述第二QoS配置数据,获得所述通信队列与数据通信网络网络层QoS标签之间的第三映射关系;
根据所述第一映射关系、所述第二映射关系以及所述第三映射关系,得到所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述第一QoS域包括下述至少一种信息:系统总线互连网络传输层QoS标签、系统总线互连网络链路层QoS标签;所述第二QoS域包括:数据通信网络网络层QoS标签。
可选的,所述处理器还用于执行下述计算机可执行指令:
获得所述系统总线互连网络的第一网络状态信息;
获得所述数据通信网络的第二网络状态信息;
根据第一网络状态信息和第二网络状态信息中的至少一种信息,对第一映射关系、第二映射关系以及第三映射关系进行调整;
根据调整后的第一映射关系、第二映射关系以及第三映射关系,得到所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系。
可选的,所述处理器还用于执行下述计算机可执行指令:
根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
与第二实施例相对应,本申请第八实施例提供一种电子设备。其示意图类似图10。 以下对所述电子设备进行说明。
第八实施例提供的电子设备,包括:
存储器,以及处理器;所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:
获得系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系;
根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
可选的,所述处理器还用于执行下述计算机可执行指令:
获得所述数据通信网络和所述系统总线互连网络之间用于存储所述数据的通信队列与系统总线互连网络传输层QoS标签之间的第一映射关系,以及系统总线互连网络传输层QoS标签与系统总线互连网络链路层QoS标签之间的第二映射关系;
获得所述通信队列与数据通信网络网络层QoS标签之间的第三映射关系;
将所述第一映射关系、所述第二映射关系以及所述第三映射关系,作为所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述第一QoS域包括下述至少一种信息:系统总线互连网络传输层QoS标签、系统总线互连网络链路层QoS标签;所述第二QoS域包括:数据通信网络网络层QoS标签。
可选的,所述处理器还用于执行下述计算机可执行指令:
获得由数据通信网络发往系统总线互连网络的数据;
从所述数据中获得通信队列号;
根据所述通信队列号以及所述映射关系包括的第一映射关系,获得用于标记数据的对应所述通信队列号的系统总线互连网络传输层QoS标签;
根据所述系统总线互连网络传输层QoS标签,将所述数据由所述通信队列调度到对应所述系统总线互连网络传输层QoS标签的目标流类别队列。
可选的,所述处理器还用于执行下述计算机可执行指令:
获得所述目标流类别队列中的数据;
根据用于标记所述数据的系统总线互连网络传输层QoS标签以及第二映射关系,获得用于标记所述数据的对应所述系统总线互连网络传输层QoS标签的系统总线互连网络链路层QoS标签;
根据所述系统总线互连网络链路层QoS标签,将所述数据由所述目标流类别队列调 度到对应所述系统总线互连网络链路层QoS标签的目标虚拟通道队列。
可选的,所述处理器还用于执行下述计算机可执行指令:
获得来自系统总线互连网络的数据;
根据所述数据的地址,获得用于将所述数据发往数据通信网络的输出消息队列的通信队列号;
根据所述通信队列号以及所述映射关系包括的第三映射关系,获得对应所述通信队列号的数据通信网络网络层QoS标签,使用所述数据通信网络网络层QoS标签标记所述数据;
将标记后的数据传输到数据通信网络,在数据通信网络中根据标记后的数据的QoS标签信息进行QoS控制。
可选的,所述处理器还用于执行下述计算机可执行指令:
根据数据通信网络的交换机中的差分服务代码点与网络虚拟通道映射关系,获得对应的网络虚拟通道信息,将所述数据转发给数据通信网络中的目标设备。
可选的,所述处理器还用于执行下述计算机可执行指令:根据第一映射关系和第二映射关系中的至少一种,对由数据通信网络发往系统总线互连网络的数据进行QoS控制。
可选的,所述处理器还用于执行下述计算机可执行指令:根据第三映射关系对由系统总线互连网络发往数据通信网络的数据进行QoS控制。
可选的,所述处理器还用于执行下述至少一种计算机可执行指令:
根据所述映射关系,将数据通信网络发往系统总线互连网络的数据,由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列,其中,所述输入消息队列为存放由数据通信网络发往系统总线互连网络的数据的通信队列;
根据所述映射关系,将由系统总线互连网络发往数据通信网络的数据,由输出消息队列调度到数据通信网络网络层的差分服务代码点队列,其中,所述输出消息队列为存放由系统总线互连网络发往数据通信网络的数据的通信队列。
可选的,所述处理器还用于执行下述计算机可执行指令:
获得虚拟通道队列的第一流量管理器数据;
根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述QoS配置数据匹配的目标虚拟通道队列。
可选的,所述处理器还用于执行下述计算机可执行指令:获得流类别队列的第二流量管理器数据;
根据所述映射关系以及所述第二流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述第二流量管理器数据包括的QoS配置数据匹配的目标流类别队列;
根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述目标流类别队列的数据调度到与所述第一流量管理器数据包括的QoS配置数据匹配的目标虚拟通道队列。
以上述实施例为基础,本申请第九实施例提供一种网络流量调度方法。以下结合图11对所述方法进行说明。
图11所示的网络流量调度方法,包括:步骤S1101至步骤S1104。
步骤S1101,获得针对系统总线互连网络的第一QoS配置数据。
所述第一QoS配置数据,为系统总线互连网络QoS配置信息,例如,可以是服务器内系统总线互连全局QoS配置信息,服务器内系统总线上连接的多个总线设备使用的全局QoS配置信息,如显示卡、声卡等总线设备使用全局QoS配置信息。
本步骤为获得针对系统总线互连网络的第一QoS配置数据。具体可以从连接数据通信网络与服务器内系统总线互连网络的网络接口控制器的配置信息中获得所述网络接口控制器与系统总线的接口上绑定的QoS配置信息。
步骤S1102,获得针对数据通信网络的第二QoS配置数据。
所述第二QoS配置数据,为数据通信网络的QoS配置信息,例如,可以是数据中心网络全局QoS配置信息,数据中心网络的各转发设备使用的全局QoS配置信息,如路由器、交换机等交换设备针对指定流量使用相同的QoS配置信息。
本步骤是获得针对数据通信网络的第二QoS配置数据。具体可以从连接数据通信网络与服务器内系统总线互连网络的网络接口控制器的配置信息中获得所述网络接口控制器与数据通信网络的接口上绑定的QoS配置信息。
步骤S1103,根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系。
本实施例中,通过下述处理建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系:
根据所述第一QoS配置数据,获得用于存储所述数据的通信队列与系统总线互连网络传输层QoS标签之间的第一映射关系,以及系统总线互连网络传输层QoS标签与系统 总线互连网络链路层QoS标签之间的第二映射关系;
根据所述第二QoS配置数据,获得所述通信队列与数据通信网络网络层QoS标签之间的第三映射关系;
根据所述第一映射关系、所述第二映射关系以及所述第三映射关系,得到所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述第一QoS域包括下述至少一种信息:系统总线互连网络传输层QoS标签、系统总线互连网络链路层QoS标签;所述第二QoS域包括:数据通信网络网络层QoS标签。
实际应用中,传输层QoS标签是标识传输层服务差异的标签,可以是系统总线事务层TLP包的TC字段;链路层QoS标签是标识链路层服务差异的标签,可以是系统总线链路层包头中的VC字段。数据通信网络网络层QoS标签可以是以太网网络层的qos标签,即IP包的DSCP值。
以网卡连接数据中心网络和服务器内的系统总线互连网络为例,将所述方法应用于网卡。网卡接受针对所述网卡与系统总线侧接口的总线互连全局QoS配置信息,从所述总线互连全局QoS配置信息中获取QP(即网卡通信队列)与SysTC之间的映射关系,其中SysTC是系统总线传输层QoS标签,将所述映射关系作为第一映射关系;从所述总线互连全局QoS配置信息中获取SysTC与SysVC之间的映射关系,其中,SysVC是系统总线链路层QoS标签;将所述映射关系作为第二映射关系。网卡接受针对与数据中心网络侧接口的全局QoS配置,从所述全局QoS配置中获取QP(即网卡通信队列)与DSCP(即IP包中的QoS域)间的映射关系,将所述映射关系作为第三映射关系。将第一映射关系、第二映射关系、第三映射关系作为所述第一QoS和第二QoS域这两种QoS体系之间的映射关系,即所述两种QoS体系之间的映射关系,包括:进入服务器内方向的网卡通信队列到网卡流量类别队列再到系统总线虚拟通道的QoS映射关系;出服务器进入数据通信网络方向的通信队列到IP包的DSCP的QoS映射关系。
本实施例的一个实施方式中,还包括根据数据通信网络的网络状态以及系统总线互连的网络状态两种信息中的至少一种信息调整系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系。其中,数据通信网络的网络状态,包括网络延迟、拥塞状态中的至少一种状态信息;系统总线互连网络的网络状态,包括网络延迟、拥塞状态中的至少一种状态信息。具体包括下述处理:
获得所述系统总线互连网络的第一网络状态信息;
获得所述数据通信网络的第二网络状态信息;
根据第一网络状态信息和第二网络状态信息中的至少一种信息,对第一映射关系、第二映射关系以及第三映射关系进行调整;
根据调整后的第一映射关系、第二映射关系以及第三映射关系,得到所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系。
步骤S1104,根据所述映射关系针对在所述数据通信网络和所述系统总线互连网络之间传输的数据流量进行调度。
本实施例中,根据所述映射关系,对所述数据流量进行调度,实现针对所述数据流量的端到端QoS控制。
本实施例的一种实施方式中,还包括将映射关系存储到表中。具体包括下述处理:
将所述第一映射关系存储到以所述通信队列的队列号为索引的第一映射关系表;将所述第二映射关系存储到第二映射关系表;将所述第三映射关系存储到以所述通信队列的队列号为索引的第三映射关系表。
进一步,所述第一映射关系表和第三映射关系表分别还包括用于存储非通信队列号索引的映射关系的预留映射区,所述非通信队列号索引的映射关系用于未与通信队列绑定的特定流量的流量控制。
沿用以网卡连接数据中心网络和服务器内的系统总线互连网络的例子。将QP与SysTC映射关系写入第一映射关系表;将SysTC与SysVC之间的映射关系写入第二映射关系表;将QP与DSCP的映射关系写入第三映射关系表。其中,第一映射关系表以及第二映射关系表用于对进入服务器内系统总线互连网络的数据进行QoS控制;第三映射关系表用于出服务器内系统总线互连网络进入服务器间数据通信网络的数据进行QoS控制。实际应用中,网卡的网络接口引擎读取映射关系表信息进行QoS映射,对于出服务器内系统总线互连网络进入服务器间数据通信网络的数据,离开服务器后由数据通信网络的交换设备例如交换机,进行DSCP到网络队列(NetVC)的映射,最终实现端对端QoS控制。
本实施例的一种实施方式中,具体通过下述处理对在所述数据通信网络和所述系统总线互连网络之间传输的数据包进行QoS控制:
查询第一映射关系表,获得第一映射关系;
根据所述第一映射关系查询第二映射关系表获得第二映射关系;
根据第一映射关系和第二映射关系对由数据通信网络发往系统总线互连网络的数据包进行QoS控制。
本实施例的一种实施方式中,具体通过下述处理对在所述数据通信网络和所述系统总线互连网络之间传输的数据包进行QoS控制:
查询第三映射关系表,获得第三映射关系;
根据第三映射关系对由系统总线互连网络发往数据通信网络的数据包进行QoS控制。
需要说明的是,如果将进入服务器内系统总线互连网络的数据作为输入方向的数据,将出服务器内系统总线互连网络进入数据通信网络的数据作为输出方向的数据,则建立输入方向的QoS映射关系与建立输出方向的QoS映射关系可以分别单独实施,例如:
根据所述第一QoS配置数据,获得用于存储所述数据的通信队列与系统总线互连网络传输层QoS标签之间的第一映射关系,以及系统总线互连网络传输层QoS标签与系统总线互连网络链路层QoS标签之间的第二映射关系;将所述第一映射关系以及所述第二映射关系作为输入方向QoS映射关系;
根据所述第二QoS配置数据,获得所述通信队列与数据通信网络网络层QoS标签之间的第三映射关系;将所述第三映射关系作为输出方向QoS映射关系。
建立输入方向QoS映射关系和输出方向QoS映射关系中的至少一种映射关系,均属于本申请保护范围。甚至,在建立输入方向QoS映射关系中,建立第一映射关系和第二映射关系中的至少一种映射关系,均属于本申请保护范围。
本实施例中,还包括下述处理:
获得系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系;
根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
其中,所述获得系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系,包括:
获得所述数据通信网络和所述系统总线互连网络之间用于存储所述数据的通信队列与系统总线互连网络传输层QoS标签之间的第一映射关系,以及系统总线互连网络传输层QoS标签与系统总线互连网络链路层QoS标签之间的第二映射关系;
获得所述通信队列与数据通信网络网络层QoS标签之间的第三映射关系;
根据所述第一映射关系、所述第二映射关系以及所述第三映射关系,得到所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中, 所述第一QoS域包括下述至少一种信息:系统总线互连网络传输层QoS标签、系统总线互连网络链路层QoS标签;所述第二QoS域包括:数据通信网络网络层QoS标签。
本实施例中,通过下述处理对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制:
获得由数据通信网络发往系统总线互连网络的数据;
从所述数据中获得通信队列号;
根据所述通信队列号以及所述映射关系包括的第一映射关系,获得用于标记数据的对应所述通信队列号的系统总线互连网络传输层QoS标签;
根据所述系统总线互连网络传输层QoS标签,将所述数据由所述通信队列调度到对应所述系统总线互连网络传输层QoS标签的目标流类别队列。
本实施例的一个实施方式中包括对所述数据进行二级调度,即通过两级调度将所述数据调度到系统总线互连网络的虚拟通道队列。具体包括下述处理:
获得所述目标流类别队列中的数据;
根据用于标记所述数据的系统总线互连网络传输层QoS标签以及第二映射关系,获得用于标记所述数据的对应所述系统总线互连网络传输层QoS标签的系统总线互连网络链路层QoS标签;
根据所述系统总线互连网络链路层QoS标签,将所述数据由所述目标流类别队列调度到对应所述系统总线互连网络链路层QoS标签的目标虚拟通道队列。
本实施例的一个实施方式中,包括对由系统总线互连网络发往数据通信网络的数据进行QoS控制,具体包括下述处理:
获得来自系统总线互连网络的数据;
根据所述数据的地址,获得用于将所述数据发往数据通信网络的输出消息队列的通信队列号;
根据所述通信队列号以及所述映射关系包括的第三映射关系,获得对应所述通信队列号的数据通信网络网络层QoS标签,使用所述数据通信网络网络层QoS标签标记所述数据;
将标记后的数据传输到数据通信网络,在数据通信网络中根据标记后的数据的QoS标签信息进行QoS控制。
其中,所述在数据通信网络中根据标记后的数据的QoS标签信息进行QoS控制,包括下述处理:根据数据通信网络的交换机中的差分服务代码点与网络虚拟通道映射关系, 获得对应的网络虚拟通道信息,将所述数据转发给数据通信网络中的目标设备。
本实施例的一个实施方式中,包括下述处理对由系统总线互连网络发往数据通信网络的数据进行QoS控制:根据第一映射关系和第二映射关系中的至少一种,对由数据通信网络发往系统总线互连网络的数据进行QoS控制。
本实施例的一个实施方式中,包括下述处理对由数据通信网络发往系统总线互连网络的数据进行QoS控制:根据第三映射关系对由系统总线互连网络发往数据通信网络的数据进行QoS控制。
本实施例的一个实施方式中,包括下述至少一种处理对数据进行调度:
根据所述映射关系,将数据通信网络发往系统总线互连网络的数据,由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列,其中,所述输入消息队列为存放由数据通信网络发往系统总线互连网络的数据的通信队列;
根据所述映射关系,将由系统总线互连网络发往数据通信网络的数据,由输出消息队列调度到数据通信网络网络层的差分服务代码点队列,其中,所述输出消息队列为存放由系统总线互连网络发往数据通信网络的数据的通信队列。
其中,所述根据所述映射关系,将数据通信网络发往系统总线互连网络的数据,由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列,包括:
获得虚拟通道队列的第一流量管理器数据;
根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述QoS配置数据匹配的目标虚拟通道队列。
本实施例的一个实施方式中,还包括对所述数据进行两级调度,具体包括下述处理:
获得流类别队列的第二流量管理器数据;
根据所述映射关系以及所述第二流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述第二流量管理器数据包括的QoS配置数据匹配的目标流类别队列;
根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述目标流类别队列的数据调度到与所述第一流量管理器数据包括的QoS配置数据匹配的目标虚拟通道队列。
至此,对本申请第九实施例提供的网络流量调度方法进行了详细介绍。所述方法,用于在系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间建立映射关系,从而将数据通信网络和系统总线互连网络之间的QoS域关联起来,以便针对网络流 量进行端到端QoS控制。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
1、计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
2、本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请虽然以较佳实施例公开如上,但其并不是用来限定本申请,任何本领域技术人员在不脱离本申请的精神和范围内,都可以做出可能的变动和修改,因此本申请的保护范围应当以本申请权利要求所界定的范围为准。
Claims (30)
- 一种QoS处理方法,其特征在于,包括:获得针对系统总线互连网络的第一QoS配置数据;获得针对数据通信网络的第二QoS配置数据;根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述映射关系用于对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
- 根据权利要求1所述的方法,其特征在于,所述根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系,包括:根据所述第一QoS配置数据,获得用于存储所述数据的通信队列与系统总线互连网络传输层QoS标签之间的第一映射关系,以及系统总线互连网络传输层QoS标签与系统总线互连网络链路层QoS标签之间的第二映射关系;根据所述第二QoS配置数据,获得所述通信队列与数据通信网络网络层QoS标签之间的第三映射关系;根据所述第一映射关系、所述第二映射关系以及所述第三映射关系,得到所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述第一QoS域包括下述至少一种信息:系统总线互连网络传输层QoS标签、系统总线互连网络链路层QoS标签;所述第二QoS域包括:数据通信网络网络层QoS标签。
- 根据权利要求2所述的方法,其特征在于,还包括:获得所述系统总线互连网络的第一网络状态信息;获得所述数据通信网络的第二网络状态信息;根据第一网络状态信息和第二网络状态信息中的至少一种信息,对第一映射关系、第二映射关系以及第三映射关系进行调整;根据调整后的第一映射关系、第二映射关系以及第三映射关系,得到所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系。
- 根据权利要求1或2所述的方法,其特征在于,还包括:根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
- 一种QoS控制方法,其特征在于,包括:获得系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系;根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
- 根据权利要求5所述的方法,其特征在于,所述获得系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系,包括:获得所述数据通信网络和所述系统总线互连网络之间用于存储所述数据的通信队列与系统总线互连网络传输层QoS标签之间的第一映射关系,以及系统总线互连网络传输层QoS标签与系统总线互连网络链路层QoS标签之间的第二映射关系;获得所述通信队列与数据通信网络网络层QoS标签之间的第三映射关系;将所述第一映射关系、所述第二映射关系以及所述第三映射关系,作为所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述第一QoS域包括下述至少一种信息:系统总线互连网络传输层QoS标签、系统总线互连网络链路层QoS标签;所述第二QoS域包括:数据通信网络网络层QoS标签。
- 根据权利要求6所述的方法,其特征在于,所述根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制,包括:获得由数据通信网络发往系统总线互连网络的数据;从所述数据中获得通信队列号;根据所述通信队列号以及所述映射关系包括的第一映射关系,获得用于标记数据的对应所述通信队列号的系统总线互连网络传输层QoS标签;根据所述系统总线互连网络传输层QoS标签,将所述数据由所述通信队列调度到对应所述系统总线互连网络传输层QoS标签的目标流类别队列。
- 根据权利要求7所述的方法,其特征在于,还包括:获得所述目标流类别队列中的数据;根据用于标记所述数据的系统总线互连网络传输层QoS标签以及第二映射关系,获得用于标记所述数据的对应所述系统总线互连网络传输层QoS标签的系统总线互连网络链路层QoS标签;根据所述系统总线互连网络链路层QoS标签,将所述数据由所述目标流类别队列调度到对应所述系统总线互连网络链路层QoS标签的目标虚拟通道队列。
- 根据权利要求6所述的方法,其特征在于,所述根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制,包括:获得来自系统总线互连网络的数据;根据所述数据的地址,获得用于将所述数据发往数据通信网络的输出消息队列的通信队列号;根据所述通信队列号以及所述映射关系包括的第三映射关系,获得对应所述通信队列号的数据通信网络网络层QoS标签,使用所述数据通信网络网络层QoS标签标记所述数据;将标记后的数据传输到数据通信网络,在数据通信网络中根据标记后的数据的QoS标签信息进行QoS控制。
- 根据权利要求9所述的方法,其特征在于,还包括:根据数据通信网络的交换机中的差分服务代码点与网络虚拟通道映射关系,获得对应的网络虚拟通道信息,将所述数据转发给数据通信网络中的目标设备。
- 根据权利要求6所述的方法,其特征在于,所述根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制,包括:根据第一映射关系和第二映射关系中的至少一种,对由数据通信网络发往系统总线互连网络的数据进行QoS控制。
- 根据权利要求6所述的方法,其特征在于,所述根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制,包括:根据第三映射关系对由系统总线互连网络发往数据通信网络的数据进行QoS控制。
- 根据权利要求5所述的方法,其特征在于,所述根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制,包括下述至少一种处理:根据所述映射关系,将数据通信网络发往系统总线互连网络的数据,由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列,其中,所述输入消息队列为存放由数据通信网络发往系统总线互连网络的数据的通信队列;根据所述映射关系,将由系统总线互连网络发往数据通信网络的数据,由输出消息队列调度到数据通信网络网络层的差分服务代码点队列,其中,所述输出消息队列为存放由系统总线互连网络发往数据通信网络的数据的通信队列。
- 根据权利要求13所述的方法,其特征在于,所述根据所述映射关系,将数据通 信网络发往系统总线互连网络的数据,由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列,包括:获得虚拟通道队列的第一流量管理器数据;根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述QoS配置数据匹配的目标虚拟通道队列。
- 根据权利要求14所述的方法,其特征在于,还包括:获得流类别队列的第二流量管理器数据;所述根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述QoS配置数据匹配的目标虚拟通道队列,包括:根据所述映射关系以及所述第二流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述第二流量管理器数据包括的QoS配置数据匹配的目标流类别队列;根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述目标流类别队列的数据调度到与所述第一流量管理器数据包括的QoS配置数据匹配的目标虚拟通道队列。
- 一种网络接口控制器,其特征在于,通过系统总线接入第一计算设备内的系统总线互连网络,并将第一计算设备接入数据通信网络,所述数据通信网络为第一计算设备与第二计算设备之间的数据通信网络,包括:第一QoS域获得模块、第二QoS域获得模块、QoS映射控制模块以及网络接口引擎;其中,所述第一QoS域获得模块,用于获得针对系统总线互连网络的第一QoS配置数据;所述第二QoS域获得模块,用于获得针对数据通信网络的第二QoS配置数据;所述QoS映射控制模块,用于根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;所述网络接口引擎,用于根据所述映射关系,对第一计算设备和第二计算设备之间传输的数据进行QoS控制。
- 根据权利要求16所述的网络接口控制器,其特征在于,所述QoS映射控制模块,用于:根据第一QoS配置数据获得所述网络接口控制器的通信队列与系统总线传输层QoS标签之间的映射关系,以及系统总线传输层QoS标签与系统总线链路层QoS标签之间的映射关系;根据第二QoS配置数据获得所述网络接口控制器的通信队列与差分服务代码点的映射关系。
- 根据权利要求16所述的网络接口控制器,其特征在于,还包括:网络状态模块;所述网络状态模块,用于获取数据通信网络的第一状态信息和系统总线互连网络的第二状态信息中的至少一种状态信息,将所述至少一种状态信息发送给QoS映射控制模块;所述QoS映射控制模块用于根据所述至少一种状态信息调整所述映射关系。
- 根据权利要求16所述的网络接口控制器,其特征在于,所述网络接口引擎,包括输入端QoS控制子模块和输出端QoS控制子模块中的至少一个子模块;其中,所述输入端QoS控制子模块用于对由数据通信网络通过所述网络接口控制器发往系统总线互连网络的数据进行QoS控制;所述输出端QoS控制子模块用于对由系统总线互连网络通过所述网络接口控制器发往数据通信网络的数据进行QoS控制。
- 根据权利要求19所述的网络接口控制器,其特征在于,所述输出端QoS控制子模块,用于对所述数据进行从网络接口控制器通信队列的输出队列到差分服务代码点队列间的调度。
- 根据权利要求19所述的网络接口控制器,其特征在于,所述输入端QoS控制子模块用于根据流类别队列绑定的流量管理器的第一QoS配置数据,将网络接口控制器的通信队列中要发往系统总线互连网络的数据调度到与所述第一QoS配置数据匹配的流类别队列;根据虚拟通道队列绑定的流量管理器的第二QoS配置数据,将流类别队列的数据调度到与所述第二QoS配置数据匹配的虚拟通道队列。
- 根据权利要求19所述的网络接口控制器,其特征在于,所述输入端QoS控制子模块用于根据虚拟通道队列绑定的流量管理器的第二QoS配置数据,将网络接口控制器的通信队列中要发往系统总线互连网络的数据调度到与所述第二QoS配置数据匹配的虚拟通道队列。
- 一种QoS控制方法,其特征在于,包括:获得系统总线互连网络的QoS配置信息;根据所述QoS配置信息,通过多级调度将发往系统总线互连网络的数据由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列;其中,所述输入消息队列为存放所述数据的通信队列。
- 根据权利要求23所述的方法,其特征在于,所述根据所述QoS配置信息,通过多级调度将发往系统总线互连网络的数据由输入消息队列调度到系统总线互连网络链路层的虚拟通道队列,包括:获得虚拟通道队列的第一流量管理器数据;根据映射关系以及第一流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述QoS配置数据匹配的目标虚拟通道队列。
- 根据权利要求24所述的方法,其特征在于,还包括:获得流类别队列的第二流量管理器数据;所述根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述QoS配置数据匹配的目标虚拟通道队列,包括:根据所述映射关系以及所述第二流量管理器数据包括的QoS配置数据,将所述数据由所述输入消息队列调度到与所述第二流量管理器数据包括的QoS配置数据匹配的目标流类别队列;根据所述映射关系以及第一流量管理器数据包括的QoS配置数据,将所述目标流类别队列的数据调度到与所述第一流量管理器数据包括的QoS配置数据匹配的目标虚拟通道队列。
- 一种QoS处理装置,其特征在于,包括:第一QoS配置数据获得单元,用于获得针对系统总线互连网络的第一QoS配置数据;第二QoS配置数据获得单元,用于获得针对数据通信网络的第二QoS配置数据;映射单元,用于根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述映射关系用于对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
- 一种QoS控制装置,其特征在于,包括:映射关系获得单元,用于获得系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系;QoS控制单元,用于根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
- 一种电子设备,其特征在于,包括:存储器,以及处理器;所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:获得针对系统总线互连网络的第一QoS配置数据;获得针对数据通信网络的第二QoS配置数据;根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网 络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;其中,所述映射关系用于对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
- 一种电子设备,其特征在于,包括:存储器,以及处理器;所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令:获得系统总线互连网络的第一QoS域与数据通信网络的第二QoS域之间的映射关系;根据所述映射关系,对在所述数据通信网络和所述系统总线互连网络之间传输的数据进行QoS控制。
- 一种网络流量调度方法,其特征在于,包括:获得针对系统总线互连网络的第一QoS配置数据;获得针对数据通信网络的第二QoS配置数据;根据所述第一QoS配置数据和所述第二QoS配置数据,建立所述系统总线互连网络的第一QoS域与所述数据通信网络的第二QoS域之间的映射关系;根据所述映射关系针对在所述数据通信网络和所述系统总线互连网络之间传输的数据流量进行调度。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910497729.7 | 2019-06-10 | ||
CN201910497729.7A CN110581776B (zh) | 2019-06-10 | 2019-06-10 | QoS处理及控制方法及网络接口控制器 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020248996A1 true WO2020248996A1 (zh) | 2020-12-17 |
Family
ID=68810855
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/095287 WO2020248996A1 (zh) | 2019-06-10 | 2020-06-10 | QoS处理及控制方法及网络接口控制器 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110581776B (zh) |
WO (1) | WO2020248996A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110581776B (zh) * | 2019-06-10 | 2022-06-21 | 阿里巴巴集团控股有限公司 | QoS处理及控制方法及网络接口控制器 |
CN114625220B (zh) * | 2021-04-09 | 2024-07-19 | 深圳宏芯宇电子股份有限公司 | 服务器及其数据处理方法 |
CN113806258B (zh) * | 2021-11-16 | 2022-02-18 | 苏州浪潮智能科技有限公司 | 一种动态自适应的虚拟通道映射方法、装置及存储介质 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106161285A (zh) * | 2015-03-31 | 2016-11-23 | 华为技术有限公司 | 一种网络资源分配方法及装置 |
US20170099337A1 (en) * | 2015-10-01 | 2017-04-06 | At&T Intellectual Property I, L.P. | Quality of service system for a service provider that provides media content via a satellite media distribution system and a terrestrial media distribution system |
CN107483220A (zh) * | 2016-06-08 | 2017-12-15 | 杭州海康威视数字技术股份有限公司 | 一种服务质量控制方法、装置及系统 |
CN107645407A (zh) * | 2014-12-08 | 2018-01-30 | 华为技术有限公司 | 一种适配QoS的方法和装置 |
US20190004988A1 (en) * | 2017-06-28 | 2019-01-03 | Western Digital Technologies, Inc. | Queue depth management for host systems accessing a peripheral component interconnect express (pcie) device via a pcie switch |
CN110581776A (zh) * | 2019-06-10 | 2019-12-17 | 阿里巴巴集团控股有限公司 | QoS处理及控制方法及网络接口控制器 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105183565B (zh) * | 2015-09-30 | 2018-12-07 | 华为技术有限公司 | 计算机、服务质量控制方法及装置 |
CN108965159B (zh) * | 2017-05-24 | 2021-01-05 | 华为技术有限公司 | 服务质量控制方法、设备及系统 |
CN109275151B (zh) * | 2017-07-17 | 2020-12-08 | 华为技术有限公司 | 一种通信方法、设备和系统 |
-
2019
- 2019-06-10 CN CN201910497729.7A patent/CN110581776B/zh active Active
-
2020
- 2020-06-10 WO PCT/CN2020/095287 patent/WO2020248996A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107645407A (zh) * | 2014-12-08 | 2018-01-30 | 华为技术有限公司 | 一种适配QoS的方法和装置 |
CN106161285A (zh) * | 2015-03-31 | 2016-11-23 | 华为技术有限公司 | 一种网络资源分配方法及装置 |
US20170099337A1 (en) * | 2015-10-01 | 2017-04-06 | At&T Intellectual Property I, L.P. | Quality of service system for a service provider that provides media content via a satellite media distribution system and a terrestrial media distribution system |
CN107483220A (zh) * | 2016-06-08 | 2017-12-15 | 杭州海康威视数字技术股份有限公司 | 一种服务质量控制方法、装置及系统 |
US20190004988A1 (en) * | 2017-06-28 | 2019-01-03 | Western Digital Technologies, Inc. | Queue depth management for host systems accessing a peripheral component interconnect express (pcie) device via a pcie switch |
CN110581776A (zh) * | 2019-06-10 | 2019-12-17 | 阿里巴巴集团控股有限公司 | QoS处理及控制方法及网络接口控制器 |
Also Published As
Publication number | Publication date |
---|---|
CN110581776B (zh) | 2022-06-21 |
CN110581776A (zh) | 2019-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020248996A1 (zh) | QoS处理及控制方法及网络接口控制器 | |
US11991246B2 (en) | Cloud scale multi-tenancy for RDMA over converged ethernet (RoCE) | |
CA2968964C (en) | Source ip address transparency systems and methods | |
US9634944B2 (en) | Multi-level iSCSI QoS for target differentiated data in DCB networks | |
TW201607272A (zh) | 產生具有有限拓撲資訊之資料流 | |
US10574477B2 (en) | Priority tagging based solutions in fc sans independent of target priority tagging capability | |
WO2016191990A1 (zh) | 一种报文转换方法及装置 | |
CN110022264A (zh) | 控制网络拥塞的方法、接入设备和计算机可读存储介质 | |
US20100002714A1 (en) | PCI express network | |
CN108322467A (zh) | 基于ovs的虚拟防火墙配置方法、电子设备及存储介质 | |
US11995017B2 (en) | Multi-plane, multi-protocol memory switch fabric with configurable transport | |
CN108768667B (zh) | 一种用于多核处理器片内核间网络通信的方法 | |
US20200351215A1 (en) | Data Stream Sending Method and System, and Device | |
CN107222342A (zh) | 一种集群管理网络配置方法 | |
US20230344777A1 (en) | Customized processing for different classes of rdma traffic | |
CN107547346A (zh) | 一种报文传输方法和装置 | |
US20240291889A1 (en) | CLOUD SCALE MULTI-TENANCY FOR RDMA OVER CONVERGED ETHERNET (RoCE) | |
US20240323255A1 (en) | Class-based queueing for scalable multi-tenant rdma traffic | |
US10715437B2 (en) | Deadline driven packet prioritization for IP networks | |
CN109428842A (zh) | 一种QoS信息传送方法和装置 | |
US9143580B2 (en) | Brokering and provisioning in high-speed networks | |
CN114125983A (zh) | 移动网络用户面的路由方法、会话管理实体、系统和介质 | |
CN109639707B (zh) | 基于网闸的数据传输方法、设备、系统和介质 | |
US20240106760A1 (en) | Network device level optimizations for latency sensitive rdma traffic | |
US20230344778A1 (en) | Network device level optimizations for bandwidth sensitive rdma traffic |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20822335 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20822335 Country of ref document: EP Kind code of ref document: A1 |