WO2017008579A1 - Method and device for realizing qos service - Google Patents
Method and device for realizing qos service Download PDFInfo
- Publication number
- WO2017008579A1 WO2017008579A1 PCT/CN2016/083035 CN2016083035W WO2017008579A1 WO 2017008579 A1 WO2017008579 A1 WO 2017008579A1 CN 2016083035 W CN2016083035 W CN 2016083035W WO 2017008579 A1 WO2017008579 A1 WO 2017008579A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- port
- trunk
- physical member
- traffic management
- management chip
- Prior art date
Links
Images
Classifications
-
- 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
Definitions
- the implementation method further includes:
- the determined traffic management chip port distributes the service packet of the QoS service to the physical member port included in the TRUNK port.
- the QoS service of the trunk port is released, and the usage state of the traffic management chip port corresponding to the physical member port included in the TRUNK port is set to be used by the physical member port corresponding to the traffic management chip port.
- FIG. 6 is a structural diagram of a message format in a third embodiment of the present invention.
- the configuration module 21 is configured to configure the TRUNK interface to apply for a QoS service overlay request.
- the control module 23 is configured to select a physical member port included in the determined TRUNK port, and access the QoS service by using the corresponding traffic management chip port.
- control module 23 in the foregoing embodiment is configured to: Corresponding relationship between the interface module port and the traffic management chip port, determining the traffic management chip port corresponding to the selected physical member port, setting the usage status of the determined traffic management chip port to the TRUNK port, and writing the configuration information of the QoS service The traffic management chip runs.
- S303 Select a physical member port included in the determined TRUNK port, and access the QoS service by using the corresponding traffic management chip port.
- determining, by the foregoing embodiment, the physical member port included in the TRUNK interface includes: obtaining a member port identifier of all the physical member interfaces of the TRUNK interface, and determining, according to the obtained member port identifier, that the TRUNK port is included. Physical member port.
- the QoS service implementation method in the embodiment of the present invention may be implemented by a traffic management chip.
- FIG. 4 is a flowchart of a method for implementing a QoS service according to a third embodiment of the present invention. As shown in FIG. 4, the method for implementing a QoS service provided in this embodiment includes the following steps:
- the 10 physical member ports (physical ports) of the interface module correspond to the 10 physical ports of the traffic management chip, as shown in Table 1 below.
- the physical member ports of the interface module in the same row in Table 1 are in a one-to-one correspondence relationship with the traffic management chip ports.
- PORT 0 corresponding to the physical member port 1 is idle, and PORT0 is used as the PORT of the TRUNK 64.
- Table 3 The usage is shown in Table 3.
- the traffic management chip control module compares the changes of the member ports before and after, and determines that the 7 ports are deleted from the TRUNK64.
- the physical member port 7 reassigns the PORT, and the PORT4 corresponding to the 5-port traversal is marked as idle, and the PORT4 is assigned as the new PORT of the physical member port 7.
- the usage is shown in Table 5.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Disclosed are a method and device for realizing a QoS service, the method comprising: configuring a TRUNK port to apply for a QoS service superposition request; determining physical member ports contained in the TRUNK port; and selecting one of the determined physical member ports contained in the TRUNK port, and using a traffic management chip port corresponding thereto to access a QoS service. By means of the embodiments of the present invention, when a QoS service is accessed at a TRUNK port, a physical member port in the TRUNK port is accessed rather than using a dedicated TRUNK port resource, i.e. a logical port using a physical port, thereby saving TRUNK port hardware resources, and expanding the number of TRUNK ports that can support the QoS service.
Description
本文涉及但不限于计算机技术领域,尤其涉及一种用于中继(TRUNK)口的服务质量(QoS)业务的实现方法及装置。This document relates to, but is not limited to, the field of computer technology, and in particular, to a method and an apparatus for implementing a quality of service (QoS) service for a trunk (TRUNK) port.
中继(TRUNK)技术,为链路聚合技术,通过将多条物理链路绑定为一条逻辑链路,可以实现:服务器和服务器之间、交换机与交换机之间、路由器与路由器之间通过两个或多个端口并行连接和同时传输,来达到增加链路带宽和提高链路吞吐量的目的,当某一链路连接异常时,依然可以通信的目的,实现最大幅度提高整个网络处理能力。The trunk (TRUNK) technology, which is a link aggregation technology, can be implemented by binding multiple physical links into one logical link: between the server and the server, between the switch and the switch, and between the router and the router. One or more ports are connected in parallel and transmitted at the same time to increase the link bandwidth and improve the link throughput. When a link is abnormally connected, the communication can still be communicated to maximize the processing capacity of the entire network.
服务质量(QoS)技术,服务质量是相对网络业务而言的,在保证某类业务的服务质量的同时,就是在损害其它业务的服务质量,因为网络资源总和是有限的,只要存在抢夺网络资源的情况,就会出现服务质量的要求;比如,网络总带宽为100兆比特每秒(Mbps),而BT(bit torrent)下载占用了90Mbps,其他业务就只能占用剩下的10Mbps,而如果限制BT下载占用的最大带宽为50Mbps,则也就提高了其他业务的服务质量,使其他业务能够占用最少50Mbps的带宽,但是这是以损害BT业务的服务质量为前提的。QoS技术是在流量管理芯片上实现的。Quality of Service (QoS) technology, the quality of service is relative to the network service. While guaranteeing the service quality of a certain type of service, it is harming the service quality of other services, because the sum of network resources is limited, as long as there is a robbing of network resources. In the case of service quality, for example, the total bandwidth of the network is 100 megabits per second (Mbps), while the BT (bit torrent) download occupies 90 Mbps, and other services can only occupy the remaining 10 Mbps. Limiting the maximum bandwidth occupied by BT downloads is 50 Mbps, which improves the service quality of other services, enabling other services to occupy a minimum of 50 Mbps of bandwidth, but this is premised on damaging the quality of service of BT services. QoS technology is implemented on the traffic management chip.
在TRUNK口上实现QOS业务,一方面满足用户QOS需求,另一方面TRUNK口的优势也很好的体现,如图1所示,一般在TRUNK口上实现QOS业务需要接口模块以及流量管理芯片模块都必须存在额外的TRUNK口硬件资源,即相关技术中可支持QoS调度的TRUNK口个数受到限制。The QOS service is implemented on the trunk port to meet the QOS requirements of the user. On the other hand, the advantages of the TRUNK port are also well reflected. As shown in Figure 1, the QOS service needs to be implemented on the TRUNK port. The interface module and the traffic management chip module are required. There is an additional TRUNK port hardware resource, that is, the number of TRUNK ports that can support QoS scheduling in the related art is limited.
因此,如何解决相关技术中可支持QoS调度的TRUNK口个数受到限制问题,是本领域技术人员亟待解决的技术问题。Therefore, how to solve the problem that the number of the trunk ports that can support the QoS scheduling in the related art is limited is a technical problem to be solved by those skilled in the art.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供了一种QoS业务的实现方法及装置,能够解决可支持QoS调度的TRUNK口个数受到限制的问题。The embodiment of the invention provides a method and a device for implementing a QoS service, which can solve the problem that the number of TRUNK ports that can support QoS scheduling is limited.
本发明实施例提供了一种服务质量QoS业务的实现方法,其包括:配置TRUNK口申请QoS业务叠加请求;确定TRUNK口所包含的物理成员口;选择确定的所述TRUNK口所包含的一个物理成员口,利用其对应的流量管理芯片端口接入QoS业务。An embodiment of the present invention provides a method for implementing a QoS service, which includes: configuring a TRUNK interface to apply for a QoS service overlay request; determining a physical member port included in the TRUNK interface; and selecting a physical component included in the determined TRUNK interface The member port accesses the QoS service by using its corresponding traffic management chip port.
可选的,所述选择确定的TRUNK口所包含的一个物理成员口,利用其对应的流量管理芯片端口接入QoS业务包括:Optionally, the one physical member port included in the selected TRUNK port accessing the QoS service by using the corresponding traffic management chip port includes:
根据接口模块端口与流量管理芯片端口的对应关系,确定选择的所述物理成员口对应的流量管理芯片端口,将确定出的该流量管理芯片端口的使用状态设置为TRUNK口使用,将QoS业务的配置信息写入流量管理芯片运行。The traffic management chip port corresponding to the selected physical member port is determined according to the correspondence between the interface module port and the traffic management chip port, and the determined use state of the traffic management chip port is set to be used by the TRUNK port, and the QoS service is used. The configuration information is written to the traffic management chip to run.
可选的,所述接入QoS业务之后,所述实现方法还包括:Optionally, after the accessing the QoS service, the implementation method further includes:
控制所述确定出的流量管理芯片端口将QoS业务的业务报文分发至所述TRUNK口所包含的物理成员口。And the determined traffic management chip port distributes the service packet of the QoS service to the physical member port included in the TRUNK port.
可选的,所述接入QoS业务之后,所述实现方法还包括:Optionally, after the accessing the QoS service, the implementation method further includes:
解除所述TRUNK口的QoS业务,将所述TRUNK口所包含的物理成员口所对应的流量管理芯片端口的使用状态设置为与流量管理芯片端口对应的物理成员口使用。The QoS service of the trunk port is released, and the usage state of the traffic management chip port corresponding to the physical member port included in the TRUNK port is set to be used by the physical member port corresponding to the traffic management chip port.
可选的,确定TRUNK口所包含的物理成员口包括:Optionally, determining the physical member ports included in the TRUNK interface includes:
获取所述TRUNK口下所有物理成员口的成员口标识;Obtain the member port IDs of all physical member interfaces of the TRUNK interface.
根据获取的所述成员口标识确定所述TRUNK口所包含的物理成员口。The physical member port included in the trunk port is determined according to the obtained member port identifier.
可选的,所述实现方法还包括:Optionally, the implementing method further includes:
获取所述TRUNK口变化后所有物理成员口的成员口标识;Obtain the member port ID of all physical member interfaces after the change of the TRUNK interface.
根据变化后所有物理成员口的成员口标识进行TRUNK口内物理成员口添加和/或删除操作。Add and/or delete physical member ports in the trunk port based on the member port IDs of all physical member interfaces.
本发明实施例还提供了一种用于链路聚合TRUNK口的服务质量QoS业务实现装置,其包括:
The embodiment of the invention further provides a quality of service QoS service implementation device for a link aggregation TRUNK interface, which includes:
配置模块设置为,配置TRUNK口申请QoS业务叠加请求;The configuration module is configured to configure the TRUNK interface to apply for a QoS service overlay request.
确定模块设置为,确定所述TRUNK口所包含的物理成员口;The determining module is configured to determine a physical member port included in the trunk port;
控制模块设置为,选择确定的所述TRUNK口所包含的一个物理成员口,利用其对应的流量管理芯片端口接入QoS业务。The control module is configured to select a physical member port included in the determined TRUNK port, and access the QoS service by using the corresponding traffic management chip port.
可选的,所述控制模块是设置为:Optionally, the control module is configured to:
根据接口模块端口与流量管理芯片端口的对应关系,确定选择的所述物理成员口对应的流量管理芯片端口,将确定出的该流量管理芯片端口的使用状态设置为TRUNK口使用,将QoS业务的配置信息写入流量管理芯片运行。The traffic management chip port corresponding to the selected physical member port is determined according to the correspondence between the interface module port and the traffic management chip port, and the determined use state of the traffic management chip port is set to be used by the TRUNK port, and the QoS service is used. The configuration information is written to the traffic management chip to run.
可选的,所述控制模块还设置为:Optionally, the control module is further configured to:
在接入QoS业务之后,控制所述确定出的流量管理芯片端口将QoS业务的业务报文分发至所述TRUNK口所包含的物理成员口。After the QoS service is accessed, the determined traffic management chip port is configured to distribute the service packet of the QoS service to the physical member port included in the TRUNK port.
可选的,所述控制模块还设置为:在接入QoS业务之后,解除所述TRUNK口的QoS业务,将所述TRUNK口所包含的物理成员口所对应的流量管理芯片端口的使用状态设置为与流量管理芯片端口对应的物理成员口使用。Optionally, the control module is further configured to: after accessing the QoS service, cancel the QoS service of the trunk port, and set the usage state of the traffic management chip port corresponding to the physical member port included in the TRUNK port. Used for the physical member port corresponding to the traffic management chip port.
可选的,所述确定模块是设置为:Optionally, the determining module is configured to:
获取所述TRUNK口下所有物理成员口的成员口标识;Obtain the member port IDs of all physical member interfaces of the TRUNK interface.
根据获取的所述成员口标识确定所述TRUNK口所包含的物理成员口。The physical member port included in the trunk port is determined according to the obtained member port identifier.
可选的,所述控制模块还设置为:Optionally, the control module is further configured to:
获取所述TRUNK口变化后所有物理成员口的成员口标识;Obtain the member port ID of all physical member interfaces after the change of the TRUNK interface.
根据变化后所有物理成员口的成员口标识进行TRUNK口内物理成员口添加和/或删除操作。Add and/or delete physical member ports in the trunk port based on the member port IDs of all physical member interfaces.
本发明实施例的有益效果:Advantageous effects of embodiments of the present invention:
本发明实施例提供了一种用于TRUNK口的QoS业务的实现方法,在TRUNK口接入QoS业务时,不是使用专用的TRUNK口资源,而是接入到TRUNK口中的物理成员口上,即逻辑端口使用了物理端口,节省了TRUNK口硬件资源,并扩容了可支持QoS业务的TRUNK口个数,解决了现有技术中可支持QoS调度的TRUNK口个数受到限制的问题。
An embodiment of the present invention provides a method for implementing a QoS service for a trunk port. When a Trunk service is accessed by a TRUNK interface, a dedicated TRUNK port resource is used, but is accessed to a physical member port of the TRUNK port, that is, logic. The port uses the physical port, which saves the hardware resources of the trunk port and expands the number of trunk ports that can support QoS services. This solves the problem that the number of trunk ports that can support QoS scheduling in the prior art is limited.
与相关技术相比,本发明提供的技术方案,包括:配置TRUNK口申请QoS业务叠加请求;确定TRUNK口所包含的物理成员口;选择确定的TRUNK口所包含的一个物理成员口,利用其对应的流量管理芯片端口接入QoS业务。通过本发明实施例,在TRUNK口接入QoS业务时,不是使用专用TRUNK口资源,而是接入到TRUNK口中的物理成员口上,即逻辑端口使用了物理端口,节省了TRUNK口硬件资源,并扩容了可支持QoS业务的TRUNK口个数,解决了现有技术中可支持QoS调度的TRUNK口个数受到限制的问题。Compared with the related art, the technical solution provided by the present invention includes: configuring a TRUNK interface to apply for a QoS service overlay request; determining a physical member port included in the TRUNK interface; selecting a physical member port included in the determined TRUNK interface, and using the corresponding The traffic management chip port accesses the QoS service. In the embodiment of the present invention, when the QoS service is accessed by the trunk port, the physical port of the logical port is used instead of the dedicated TRUNK port, and the logical port uses the physical port, which saves the hardware resources of the TRUNK port. The number of TRUNK ports that can support QoS services is expanded, which solves the problem that the number of TRUNK ports that can support QoS scheduling in the prior art is limited.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为相关技术中TRUNK口实现QOS业务硬件结构图;1 is a hardware structure diagram of a QOS service implemented by a TRUNK port in the related art;
图2为本发明第一实施例提供的QoS业务的实现装置的结构示意图;2 is a schematic structural diagram of an apparatus for implementing a QoS service according to a first embodiment of the present invention;
图3为本发明第二实施例提供的QoS业务的实现方法的流程图;3 is a flowchart of a method for implementing a QoS service according to a second embodiment of the present invention;
图4为本发明第三实施例提供的QoS业务的实现方法的流程图;4 is a flowchart of a method for implementing a QoS service according to a third embodiment of the present invention;
图5为本发明第三实施例中TRUNK口实现QOS业务硬件结构图;FIG. 5 is a structural diagram of hardware implementation of a QOS service implemented by a trunk port according to a third embodiment of the present invention; FIG.
图6为本发明第三实施例中报文格式结构图。FIG. 6 is a structural diagram of a message format in a third embodiment of the present invention.
下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
第一实施例:First embodiment:
图2为本发明第一实施例提供的QoS业务的实现装置的结构示意图,由图2可知,在本实施例中,本发明实施例提供的QoS业务的实现装置包括:2 is a schematic structural diagram of an apparatus for implementing a QoS service according to a first embodiment of the present invention. As shown in FIG. 2, in this embodiment, an apparatus for implementing a QoS service according to an embodiment of the present invention includes:
配置模块21设置为,配置TRUNK口申请QoS业务叠加请求;The configuration module 21 is configured to configure the TRUNK interface to apply for a QoS service overlay request.
确定模块22设置为,确定TRUNK口所包含的物理成员口;The determining module 22 is configured to determine a physical member port included in the TRUNK port;
控制模块23设置为,选择确定的TRUNK口所包含的一个物理成员口,利用其对应的流量管理芯片端口接入QoS业务。The control module 23 is configured to select a physical member port included in the determined TRUNK port, and access the QoS service by using the corresponding traffic management chip port.
可选的,在一些实施例中,上述实施例中的控制模块23是设置为:根据
接口模块端口与流量管理芯片端口的对应关系,确定选择的物理成员口对应的流量管理芯片端口,将确定出的流量管理芯片端口的使用状态设置为TRUNK口使用,将QoS业务的配置信息写入流量管理芯片运行。Optionally, in some embodiments, the control module 23 in the foregoing embodiment is configured to:
Corresponding relationship between the interface module port and the traffic management chip port, determining the traffic management chip port corresponding to the selected physical member port, setting the usage status of the determined traffic management chip port to the TRUNK port, and writing the configuration information of the QoS service The traffic management chip runs.
可选的,在一些实施例中,上述实施例中的控制模块23还设置为:在接入QoS业务之后,控制确定出的流量管理芯片端口将QoS业务的业务报文分发至TRUNK口所包含的物理成员口。Optionally, in some embodiments, the control module 23 in the foregoing embodiment is further configured to: after accessing the QoS service, control the determined traffic management chip port to distribute the service packet of the QoS service to the TRUNK port. Physical member port.
可选的,在一些实施例中,上述实施例中的控制模块23还设置为:在接入QoS业务之后,解除TRUNK口的QoS业务,将TRUNK口所包含的物理成员口所对应的流量管理芯片端口的使用状态设置为与流量管理芯片端口对应的物理成员口使用。Optionally, in some embodiments, the control module 23 in the foregoing embodiment is further configured to: after accessing the QoS service, cancel the QoS service of the TRUNK interface, and manage the traffic corresponding to the physical member port included in the TRUNK interface. The usage status of the chip port is set to be used by the physical member port corresponding to the traffic management chip port.
可选的,在一些实施例中,上述实施例中的确定模块22是设置为:获取TRUNK口下所有物理成员口的成员口标识;根据获取的成员口标识确定TRUNK口所包含的物理成员口。Optionally, in some embodiments, the determining module 22 in the foregoing embodiment is configured to: obtain a member port identifier of all the physical member ports of the TRUNK port; and determine a physical member port included in the TRUNK port according to the obtained member port identifier. .
可选的,在一些实施例中,上述实施例中的控制模块23还设置为:获取TRUNK口变化后所有物理成员口的成员口标识;根据变化后所有物理成员口的成员口标识进行TRUNK口内物理成员口添加和/或删除操作。Optionally, in some embodiments, the control module 23 in the foregoing embodiment is further configured to: obtain the member port identifier of all physical member interfaces after the change of the TRUNK interface; and perform the TRUNK port according to the member port identifier of all the physical member interfaces after the change. Physical member port addition and/or deletion operations.
第二实施例:Second embodiment:
图3为本发明第二实施例提供的QoS业务的实现方法的流程图,由图3可知,在本实施例中,本发明实施例提供的QoS业务实现方法包括以下步骤:FIG. 3 is a flowchart of a method for implementing a QoS service according to a second embodiment of the present invention. As shown in FIG. 3, in the embodiment, the QoS service implementation method provided by the embodiment of the present invention includes the following steps:
S301:配置TRUNK口申请QoS业务叠加请求;S301: Configure a trunk port to apply for a QoS service overlay request.
S302:确定TRUNK口所包含的物理成员口;S302: Determine a physical member port included in the TRUNK port.
S303:选择确定的TRUNK口所包含的一个物理成员口,利用其对应的流量管理芯片端口接入QoS业务。S303: Select a physical member port included in the determined TRUNK port, and access the QoS service by using the corresponding traffic management chip port.
可选的,在一些实施例中,上述实施例中的选择确定的TRUNK口所包含的一个物理成员口,利用其对应的流量管理芯片端口接入QoS业务包括:根据接口模块端口与流量管理芯片端口的对应关系,确定选择的物理成员口对应的流量管理芯片端口,将确定出的该流量管理芯片端口的使用状态设置为TRUNK口使用,将QoS业务的配置信息写入流量管理芯片运行。
Optionally, in some embodiments, the physical member port included in the TRUNK interface determined by the selection in the foregoing embodiment uses the corresponding traffic management chip port to access the QoS service, including: according to the interface module port and the traffic management chip. The corresponding relationship between the ports determines the traffic management chip port corresponding to the selected physical member port, sets the determined usage status of the traffic management chip port to the TRUNK port, and writes the configuration information of the QoS service to the traffic management chip.
可选的,在一些实施例中,上述实施例中的方法在接入QoS业务之后,还包括:控制确定出的流量管理芯片端口将QoS业务的业务报文分发至TRUNK口所包含的物理成员口。Optionally, in some embodiments, after accessing the QoS service, the method in the foregoing embodiment further includes: controlling the determined traffic management chip port to distribute the service packet of the QoS service to the physical member included in the TRUNK interface. mouth.
可选的,在一些实施例中,上述实施例中的方法在接入QoS业务之后,还包括:解除TRUNK口的QoS业务,将TRUNK口所包含的物理成员口所对应的流量管理芯片端口的使用状态设置为与流量管理芯片端口对应的物理成员口使用。Optionally, in some embodiments, after accessing the QoS service, the method in the foregoing embodiment further includes: releasing the QoS service of the TRUNK interface, and configuring the traffic management chip port corresponding to the physical member port included in the TRUNK interface. The usage status is set to be used by the physical member port corresponding to the traffic management chip port.
可选的,在一些实施例中,上述实施例中的确定TRUNK口所包含的物理成员口包括:获取TRUNK口下所有物理成员口的成员口标识,根据获取的成员口标识确定TRUNK口所包含的物理成员口。Optionally, in some embodiments, determining, by the foregoing embodiment, the physical member port included in the TRUNK interface includes: obtaining a member port identifier of all the physical member interfaces of the TRUNK interface, and determining, according to the obtained member port identifier, that the TRUNK port is included. Physical member port.
可选的,在一些实施例中,上述实施例中的方法还包括:获取TRUNK口变化后所有物理成员口的成员口标识,根据变化后所有物理成员口的成员口标识进行TRUNK口内物理成员口添加和/或删除操作。Optionally, in some embodiments, the method in the foregoing embodiment further includes: obtaining a member port identifier of all the physical member interfaces after the change of the TRUNK interface, and performing the physical member port of the TRUNK interface according to the member port identifier of all the physical member interfaces after the change Add and/or delete operations.
需要说明的是,本发明实施例QoS业务实现方法可以由流量管理芯片实施。It should be noted that the QoS service implementation method in the embodiment of the present invention may be implemented by a traffic management chip.
本发明实施例还提供一种计算机存储介质,计算机存储介质中存储有计算机可执行指令,计算机可执行指令用于执行上述QoS业务的实现方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to implement the foregoing QoS service.
现结合实际应用场景对本发明实施例做进一步的诠释说明。The embodiments of the present invention are further explained in the context of actual application scenarios.
第三实施例:Third embodiment:
图4为本发明第三实施例提供的QoS业务的实现方法的流程图,由图4可知,在本实施例提供的QoS业务实现方法包括以下步骤:4 is a flowchart of a method for implementing a QoS service according to a third embodiment of the present invention. As shown in FIG. 4, the method for implementing a QoS service provided in this embodiment includes the following steps:
S401:设备初始化。S401: Device initialization.
初始状态:没有任何TRUNK接入QOS业务,接口模块的10个物理成员口(物理端口)与流量管理芯片的10个物理端口一一对应,如下表1所示,
表1中同一行的接口模块的物理成员口和流量管理芯片端口成一一对应的映射关系。Initial state: There is no TRUNK access to the QOS service. The 10 physical member ports (physical ports) of the interface module correspond to the 10 physical ports of the traffic management chip, as shown in Table 1 below.
The physical member ports of the interface module in the same row in Table 1 are in a one-to-one correspondence relationship with the traffic management chip ports.
接口模块的物理成员口Physical member port of the interface module | 流量管理芯片端口Traffic management chip port |
物理成员口1Physical member port 1 | PORT0PORT0 |
物理成员口2Physical member port 2 | PORT1PORT1 |
物理成员口3Physical member port 3 | PORT2PORT2 |
物理成员口4Physical member port 4 | PORT3PORT3 |
物理成员口5 |
PORT4PORT4 |
物理成员口6 |
PORT5PORT5 |
物理成员口7 |
PORT6PORT6 |
物理成员口8 |
PORT7PORT7 |
物理成员口9 |
PORT8PORT8 |
物理成员口10 |
PORT9PORT9 |
表1Table 1
S402:TRUNK口申请QOS业务叠加流程:S402: The TRUNK port applies for the QOS service overlay process:
本步骤包括:This step includes:
配置模块配置TRUNK唯一标识(ID),如TRUNK 64,加入5个物理成员口(1、5、7、8)到TRUNK 64,然后配置QoS业务到TRUNK 64上。The configuration module configures the unique identifier (ID) of the TRUNK. For example, the TRUNK 64 adds five physical member interfaces (1, 5, 7, and 8) to the TRUNK 64, and then configures the QoS service to the TRUNK 64.
配置模块将参数TRUNK 64、成员口ID(1、5、7、8)、QoS树透传给表管理模块。The configuration module transparently transmits the parameter TRUNK 64, the member port ID (1, 5, 7, and 8) and the QoS tree to the table management module.
确定模块将参数TRUNK 64、成员口ID(1、5、7、8)、QOS树透传给流量管理芯片的控制模块。The determining module transparently transmits the parameter TRUNK 64, the member port ID (1, 5, 7, 8), and the QOS tree to the control module of the traffic management chip.
流量管理芯片的控制模块在接收到确定的信息后,将物理成员口(1、5、7、8)对应的PORT置为未使用(空闲),使用情况如表2所示。以第二行为例,物理成员口2对应的流量管理芯片端口的使用情况为PORT1使用表示:物理成员口2被映射为给流量管理芯片端口PORT1进行接入QoS业务使用。
After receiving the determined information, the control module of the traffic management chip sets the PORT corresponding to the physical member ports (1, 5, 7, and 8) to be unused (idle), as shown in Table 2. In the second behavior example, the usage of the traffic management chip port corresponding to the physical member port 2 is PORT1. The physical member port 2 is mapped to use the traffic management chip port PORT1 for access QoS service.
接口模块的物理成员口Physical member port of the interface module | 流量管理芯片端口的使用情况Traffic Management Chip Port Usage |
物理成员口1Physical member port 1 | PORT0未使用PORT0 is not used |
物理成员口2Physical member port 2 | PORT1使用PORT1 use |
物理成员口3Physical member port 3 | PORT2使用PORT2 use |
物理成员口4Physical member port 4 | PORT3使用PORT3 use |
物理成员口5 |
PORT4未使用PORT4 is not used |
物理成员口6 |
PORT5使用PORT5 use |
物理成员口7 |
PORT6未使用PORT6 is not used |
物理成员口8 |
PORT7未使用PORT7 is not used |
物理成员口9 |
PORT8使用PORT8 use |
物理成员口10 |
PORT9使用PORT9 use |
表2Table 2
然后从(1、5、7、8)对应PORT中从小遍历一个PORT为TRUNK 64使用,物理成员口1对应的PORT 0空闲,则PORT0作为TRUNK 64的PORT,使用情况如表3所示。Then, from the corresponding PORT of (1, 5, 7, 8), a PORT is traversed for TRUNK 64. The PORT 0 corresponding to the physical member port 1 is idle, and PORT0 is used as the PORT of the TRUNK 64. The usage is shown in Table 3.
接口模块的物理成员口Physical member port of the interface module | 流量管理芯片端口的使用情况Traffic Management Chip Port Usage |
物理成员口1Physical member port 1 | PORT0TRUNK64使用PORT0TRUNK64 use |
物理成员口2Physical member port 2 | PORT1使用PORT1 use |
物理成员口3Physical member port 3 | PORT2使用PORT2 use |
物理成员口4Physical member port 4 | PORT3使用PORT3 use |
物理成员口5 |
PORT4未使用PORT4 is not used |
物理成员口6 |
PORT5使用PORT5 use |
物理成员口7 |
PORT6未使用PORT6 is not used |
物理成员口8 |
PORT7未使用PORT7 is not used |
物理成员口9 |
PORT8使用PORT8 use |
物理成员口10 |
PORT9使用PORT9 use |
表3
table 3
流量管理芯片控制模块将QOS树生成QOS调度使用的调度器、队列信息,将队列号回填给确定模块,将QOS配置信息下发给SDK,写入芯片。The traffic management chip control module generates the scheduler and queue information used by the QOS scheduling in the QOS tree, and backfills the queue number to the determining module, and sends the QOS configuration information to the SDK for writing to the chip.
此后,QOS调度在PORT 0上进行,在接入QOS用户之后,所有的背景业务也切到PORT0上。PORT0最终会将报文分发到接口模块的物理成员口(1、5、7、8)。相关技术中只有TRUNK口才可以发往所有物理成员口,物理成员口是不能分发到其他物理成员口的,本发明实施例,物理成员口的报文在发往其他物理成员口的时候封装4B的头如图6。4B头填充了发往的目的成员口(本案例将包含四种报文头分别填充1、5、7、8),报文就能正确的分发到其他物理成员口了。物理成员口实现TRUNK口的QOS就实现了。Thereafter, the QOS scheduling is performed on PORT 0. After accessing the QOS user, all background services are also switched to PORT0. PORT0 will eventually distribute the packets to the physical member ports (1, 5, 7, and 8) of the interface module. In the related art, only the TRUNK interface can be sent to all the physical member interfaces, and the physical member interfaces cannot be distributed to other physical member interfaces. In the embodiment of the present invention, the packets of the physical member interface are encapsulated in the 4B when sent to other physical member interfaces. The header is shown in Figure 6. The 4B header is populated with the destination member port (this case will contain four types of packet headers filled with 1, 5, 7, and 8 respectively), and the message can be correctly distributed to other physical member interfaces. The physical member port implements the QOS of the TRUNK port.
综上,QOS生效是在TRUNK口中加入的物理成员口上生效,节省了TRUNK部分的硬件资源。In summary, the QOS takes effect on the physical member ports that are added to the TRUNK interface, which saves the hardware resources of the TRUNK part.
S403:TRUNK口的物理成员口添加操作:S403: Adding physical member ports of the TRUNK interface:
配置模块配置9号口新加入到TRUNK64中。The configuration module configuration port 9 is newly added to the TRUNK64.
配置模块将参数TRUNK64、成员口ID(1、5、7、8、9)透传给表管理模块。The configuration module transparently transmits the parameter TRUNK64 and member port IDs (1, 5, 7, 8, and 9) to the table management module.
接口模块的物理成员口Physical member port of the interface module | 流量管理芯片端口的使用情况Traffic Management Chip Port Usage |
物理成员口1Physical member port 1 | PORT0TRUNK64使用PORT0TRUNK64 use |
物理成员口2Physical member port 2 | PORT1使用PORT1 use |
物理成员口3Physical member port 3 | PORT2使用PORT2 use |
物理成员口4Physical member port 4 | PORT3使用PORT3 use |
物理成员口5 |
PORT4未使用PORT4 is not used |
物理成员口6 |
PORT5使用PORT5 use |
物理成员口7 |
PORT6未使用PORT6 is not used |
物理成员口8 |
PORT7未使用PORT7 is not used |
物理成员口9 |
PORT8未使用PORT8 is not used |
物理成员口10 |
PORT9使用PORT9 use |
表4
Table 4
确定模块将参数TRUNK64、原始成员口ID(1、5、7、8)、新成员口ID(1、5、7、8、9)透传给流量管理芯片控制模块。The determining module transparently transmits the parameter TRUNK64, the original member port ID (1, 5, 7, 8), and the new member port ID (1, 5, 7, 8, 9) to the traffic management chip control module.
流量管理芯片管理模块通过比较前后物理成员口ID的变化,确定物理成员9要加入到TRUNK 64中。将9端口对应的PORT8置为未使用(空闲)。使用情况如表4所示。The traffic management chip management module determines that the physical member 9 is to be added to the TRUNK 64 by comparing the changes of the physical member port IDs before and after. Set PORT8 corresponding to port 9 to unused (idle). The usage is shown in Table 4.
S404:TRUNK口的物理成员口删除操作:S404: Physical member port deletion of the TRUNK interface:
配置模块配置7端口从TRUNK64中删除 Configuration module configuration 7 port is deleted from TRUNK64
配置模块将参数TRUNK64、成员口ID(1、5、8、9)透传给表管理模块。The configuration module transparently transmits the parameter TRUNK64 and member port IDs (1, 5, 8, and 9) to the table management module.
确定模块将参数TRUNK64、原始成员口ID(1、5、7、8、9)、新成员口ID(1、5、8、9)透传给流量管理芯片控制模块。The determining module transparently transmits the parameter TRUNK64, the original member port ID (1, 5, 7, 8, 9) and the new member port ID (1, 5, 8, 9) to the traffic management chip control module.
流量管理芯片控制模块比较前后成员口的变化确定7端口从TRUNK64中删除。物理成员口7重新分配PORT,从小开始遍历5口对应的PORT4标记为空闲,分配PORT4为物理成员口7的新PORT。使用情况如表5所示。The traffic management chip control module compares the changes of the member ports before and after, and determines that the 7 ports are deleted from the TRUNK64. The physical member port 7 reassigns the PORT, and the PORT4 corresponding to the 5-port traversal is marked as idle, and the PORT4 is assigned as the new PORT of the physical member port 7. The usage is shown in Table 5.
接口模块的物理成员口Physical member port of the interface module | 流量管理芯片端口的使用情况Traffic Management Chip Port Usage |
物理成员口1Physical member port 1 | PORT0TRUNK64使用PORT0TRUNK64 use |
物理成员口2Physical member port 2 | PORT1使用PORT1 use |
物理成员口3Physical member port 3 | PORT2使用PORT2 use |
物理成员口4Physical member port 4 | PORT3使用PORT3 use |
物理成员口5 |
PORT4使用PORT4 use |
物理成员口6 |
PORT5使用PORT5 use |
物理成员口7 |
PORT6未使用PORT6 is not used |
物理成员口8 |
PORT7未使用PORT7 is not used |
物理成员口9 |
PORT8未使用PORT8 is not used |
物理成员口10 |
PORT9使用PORT9 use |
表5table 5
S405:解除业务,TRUNK口释放:
S405: The service is released, and the TRUNK port is released:
配置模块将TRUNK64上的所有QOS业务解除。The configuration module releases all QOS services on the TRUNK64.
配置模块将参数TRUNK64、成员口ID(1、5、8、9)、QOS树透传给表管理模块。The configuration module transparently transmits the parameter TRUNK64, the member port ID (1, 5, 8, and 9) and the QOS tree to the table management module.
确定模块将参数TRUNK64、成员口ID(1、5、8、9)、QOS树透传给流量管理芯片的控制模块。The determining module transparently transmits the parameter TRUNK64, the member port ID (1, 5, 8, 9) and the QOS tree to the control module of the traffic management chip.
流量管理芯片控制模块将QOS调度使用的调度器、队列回收,QOS参数恢复默认值下发给SDK,写入芯片。The traffic management chip control module reclaims the scheduler and queue used by the QOS scheduling, and restores the default value of the QOS parameters to the SDK for writing to the chip.
流量管理芯片管理模块释放TRUNK64使用的PORT0置为空闲。使用情况如表6所示。The traffic management chip management module releases PORT0 used by TRUNK64 to be idle. The usage is shown in Table 6.
接口模块的物理成员口Physical member port of the interface module | 流量管理芯片端口的使用情况Traffic Management Chip Port Usage |
物理成员口1Physical member port 1 | PORT0未使用PORT0 is not used |
物理成员口2Physical member port 2 | PORT1使用PORT1 use |
物理成员口3Physical member port 3 | PORT2使用PORT2 use |
物理成员口4Physical member port 4 | PORT3使用PORT3 use |
物理成员口5 |
PORT4使用PORT4 use |
物理成员口6 |
PORT5使用PORT5 use |
物理成员口7 |
PORT6未使用PORT6 is not used |
物理成员口8 |
PORT7未使用PORT7 is not used |
物理成员口9 |
PORT8未使用PORT8 is not used |
物理成员口10 |
PORT9使用PORT9 use |
表6Table 6
TRUNK64现有物理成员口(1、5、8、9)都分配新的PORT。分配原则从最小的索引开始遍历。使用情况如表7。The existing physical member ports (1, 5, 8, and 9) of TRUNK64 are assigned new PORTs. The allocation principle starts from the smallest index. The usage is shown in Table 7.
本发明使用物理口成员口实现了TRUNK口的QOS,节省了接口模块和流量管理芯片模块的端口硬件资源。在资源有限的情况下,可以很好的发挥作用。
The invention implements the QOS of the TRUNK port by using the physical port member port, and saves the port hardware resources of the interface module and the traffic management chip module. In the case of limited resources, it can work well.
接口模块的物理成员Physical member of the interface module | 流量管理芯片端口的使用情况Traffic Management Chip Port Usage |
物理成员口1Physical member port 1 | PORT0使用PORT0 use |
物理成员口2Physical member port 2 | PORT1使用PORT1 use |
物理成员口3Physical member port 3 | PORT2使用PORT2 use |
物理成员口4Physical member port 4 | PORT3使用PORT3 use |
物理成员口5 |
PORT4使用PORT4 use |
物理成员口6 |
PORT5使用PORT5 use |
物理成员口7 |
PORT6使用PORT6 use |
物理成员口8 |
PORT7使用PORT7 use |
物理成员口9 |
PORT8使用PORT8 use |
物理成员口10 |
PORT9使用PORT9 use |
表7Table 7
将图1与图5进行对比可知:本发明实施例和相关技术中的实现TRUNK口QOS方法在硬件方面的区别包括:本发明实施例节省了接口模块以及流量管理芯片的端口资源,所以硬件区别显而易见:图1是相关技术的接口模块和流量管理芯片的端口部分硬件结构,假设端口模块的1~10端口是物理端口,11端口是TRUNK口,流量管理芯片模块的PORT0~PORT9是物理端口,PORT10~PORT13是TRUNK口;图5是本发明实施例的两硬件结构,本发明实施例的端口部分硬件结构将TRUNK口部分省去,接口模块只包括1~10物理成员口,流量管理芯片只包括PORT0~PORT9物理端口,本发明实施例的硬件部分更简单、更节省资源。Comparing FIG. 1 with FIG. 5, it can be seen that the difference in hardware between the embodiment and the related art in the implementation of the TRUNK port QOS method includes: the embodiment of the present invention saves the port resources of the interface module and the traffic management chip, so the hardware difference It is obvious that FIG. 1 is a hardware structure of a port module of a related art interface and a traffic management chip. It is assumed that ports 1 to 10 of the port module are physical ports, port 11 is a trunk port, and ports 0 to PORT 9 of the traffic management chip module are physical ports. PORT10 to PORT13 are the TRUNK ports. FIG. 5 is a schematic diagram of the hardware structure of the embodiment of the present invention. The hardware structure of the port part of the embodiment of the present invention is omitted from the TRUNK port. The interface module includes only 1 to 10 physical member ports, and the traffic management chip only Including the PORT0 to PORT9 physical ports, the hardware part of the embodiment of the present invention is simpler and more resource-saving.
本发明实施例和相关技术中实现TRUNK口QOS方法在实现方法方面的区别包括:The differences between the implementation methods and the related technologies in implementing the TRUNK port QOS method in the embodiments of the present invention include:
在TRUNK口申请以及叠加QOS业务流程中,确定模块透传TRUNKID、TRUNK所有物理成员口ID、QOS树信息给所述流量管理芯片控制模块,相关技术在此步骤中只需透传TRUNK ID和QOS树信息;流量管理芯片控制模块将TRUNK口的所有物理成员口对应的PORT置为空闲,然后选取TRUNK口的一个物理成员口对应的PORT为TRUNK口使用,将此物理成员
口标记为使用、TRUNK使用,相关技术在此步骤中,流量管理芯片控制模块是从TRUNK口资源中申请一个为TRUNK口使用;流量管理芯片控制模块将QOS树生成调度器、队列信息以及配置参数触发SDK写入芯片。QOS调度就可以在TRUNK口实现了,调度完成之后,作为TRUNK口的物理成员口将报文再发往其他物理成员口,相关技术的物理成员口的报文不能发往其它物理成员口。本发明实施例作为TRUNK口的物理成员口发送报文时,封装4B的头如图6,4B的头填充了发往的目的物理成员口。In the TRUNK interface application and the superimposed QOS service flow, the determining module transparently transmits the TRUNKID, the TRUNK physical member port ID, and the QOS tree information to the traffic management chip control module, and the related technology only needs to transparently transmit the TRUNK ID and the QOS in this step. The information management chip control module sets the PORT corresponding to all physical member ports of the trunk port to be idle, and then selects the PORT corresponding to a physical member port of the TRUNK port to be used by the TRUNK port.
The port is marked for use, and TRUNK is used. In this step, the traffic management chip control module applies for a TRUNK port from the TRUNK port resource; the traffic management chip control module generates a scheduler, queue information, and configuration parameters for the QOS tree. Trigger the SDK to write to the chip. The QOS scheduling can be implemented on the TRUNK interface. After the scheduling is complete, the physical member interface of the TRUNK interface sends the packets to other physical member interfaces. The packets of the physical member interfaces of the related technologies cannot be sent to other physical member interfaces. In the embodiment of the present invention, when the packet is sent as a physical member port of the TRUNK interface, the header of the encapsulation 4B is as shown in FIG. 6, and the header of the 4B is filled with the destination physical member port.
在TRUNK口的物理成员口添加、删除操作流程中,QOS业务在线的情况下,配置模块添加或删除物理成员口,配置模块透传TRUNKID、新的TRUNK物理成员口ID、QOS树信息给确定模块,相关技术在此步骤中只需透传TRUNKID和QOS树信息;确定模块透传TRUNKID、新的TRUNK成员口ID、旧的物理成员口ID、QOS树信息给流量管理芯片控制模块,相关技术在此步骤中只需透传TRUNKID和QOS树信息;流量管理芯片控制模块通过比较新旧物理成员口的ID值来确定哪些是添加的物理成员口,哪些是删除的物理成员口,添加到TRUNK口中物理成员口对应的物理口置为空闲,从TRUNK中删除的物理成员口重新分配物理端口,相关技术不执行此步骤。In the process of adding and deleting physical member interfaces of the trunk port, the QOS service is online. The configuration module adds or deletes physical member interfaces. The configuration module transparently transmits the TRUNKID, the new TRUNK physical member port ID, and the QOS tree information to the determining module. In this step, the related technology only needs to transparently transmit the TRUNKID and QOS tree information; determine that the module transparently transmits the TRUNKID, the new TRUNK member port ID, the old physical member port ID, and the QOS tree information to the traffic management chip control module. In this step, only the TRUNKID and QOS tree information is transparently transmitted. The traffic management chip control module compares the ID values of the new and old physical member interfaces to determine which physical member interfaces are added and which are deleted physical member interfaces. The physical port of the member interface is set to be idle. The physical member port that is deleted from the TRUNK is reassigned. The related technology does not perform this step.
在TRUNK口释放过程中,配置模块配置TRUNK端口解除所有QOS业务,配置模块透传TRUNKID、TRUNK物理成员口ID、QOS树信息给确定模块;确定模块透传TRUNKID、TRUNK成员口ID、QOS树信息给流量管理芯片控制模块,相关技术在此步骤中只需透传TRUNKID和QOS树信息;流量管理芯片控制模块将QOS调度使用的调度器、队列的回收信息、去使能信息以及配置信息触发SDK写入芯片;流量管理芯片控制模块将TRUNK口对应的物理成员端口置为空闲,并将TRUNK的所有物理成员口都重新分配物理端口,相关技术在此步骤只需释放TRUNK口使用的TRUNK口资源。During the release of the trunk port, the configuration module configures the trunk port to release all QOS services. The configuration module transparently transmits the TRUNKID, the TRUNK physical member ID, and the QOS tree information to the determining module. The module transmits the TRUNKID, the TRUNK member ID, and the QOS tree information. To the traffic management chip control module, the related technology only needs to transparently transmit the TRUNKID and QOS tree information in this step; the traffic management chip control module triggers the SDK, the queue recovery information, the deactivation information, and the configuration information to trigger the SDK. The chip is written to the chip; the traffic management chip control module sets the physical member port corresponding to the TRUNK port to be idle, and reassigns all physical member ports of the TRUNK to the physical port. In this step, the TRUNK port resource used by the TRUNK port is released. .
综上可知,通过本发明实施例的实施,存在以下有益效果:In summary, through the implementation of the embodiments of the present invention, the following beneficial effects exist:
相关技术的流量管理芯片模块包含TRUNK口硬件资源N个,那么支持QOS的TRUNK口个数最多N个。缺点是耗费资源,端口模块以及流量管理芯片模块都要为TRUNK口预留资源。在模块资源有限时,可支持QOS的TRUNK口个数受到限制,无法实现支持QOS的TRUNK口个数达到满配(原
则上,支持QOS的TRUNK口最大数目可以和端口总数相等)。在本发明实施案例的方案中,在TRUNK口接入QOS业务时,不是使用TRUNK口资源,而是接入到TRUNK口中的物理成员口上,即逻辑端口使用了物理端口,节省了TRUNK口硬件资源,并扩容了可支持QOS业务的TRUNK口个数。The related art traffic management chip module includes N hardware resources of the TRUNK port, and the number of TRUNK ports supporting the QOS is at most N. The disadvantage is that resources are consumed, and the port module and the traffic management chip module must reserve resources for the trunk port. When the module resources are limited, the number of TRUNK ports that can support QOS is limited, and the number of TRUNK ports that support QOS cannot be fully matched.
Then, the maximum number of TRUNK ports supporting QOS can be equal to the total number of ports. In the solution of the embodiment of the present invention, when the trunk port is connected to the QOS service, the TRUNK port resource is used instead of the physical member port of the TRUNK port, that is, the logical port uses the physical port, which saves the hardware resources of the TRUNK port. And expand the number of trunk ports that can support QOS services.
以上仅是本发明的可选实施方式而已,并非对本发明做任何形式上的限制,凡是依据本发明的技术实质对以上实施方式所做的任意简单修改、等同变化、结合或修饰,均仍属于本发明技术方案的保护范围。The above is only an alternative embodiment of the present invention, and is not intended to limit the present invention in any way. Any simple modification, equivalent change, combination or modification of the above embodiments according to the technical essence of the present invention still belongs to The scope of protection of the technical solution of the present invention.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的每个模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。”One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, being executed by a processor and stored in a memory. Programs/instructions to implement their respective functions. The invention is not limited to any specific form of combination of hardware and software. ”
虽然本申请所揭露的实施方式如上,但所述的内容仅为便于理解本申请而采用的实施方式,并非用以限定本申请,如本发明实施方式中的具体的实现方法。任何本申请所属领域内的技术人员,在不脱离本申请所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。The embodiments disclosed in the present application are as described above, but the descriptions are only for the purpose of understanding the present application, and are not intended to limit the present application, such as the specific implementation method in the embodiments of the present invention. Any modifications and changes in the form and details of the embodiments may be made by those skilled in the art without departing from the spirit and scope of the disclosure. The scope defined by the appended claims shall prevail.
上述技术方案节省了TRUNK口硬件资源,实现了可支持QoS业务的TRUNK口的扩容。
The above technical solution saves the hardware resources of the trunk port and realizes the expansion of the trunk port that can support the QoS service.
Claims (12)
- 一种服务质量QoS业务的实现方法,所述实现方法包括:A method for implementing a quality of service QoS service, where the implementation method includes:配置中继TRUNK口申请QoS业务叠加请求;Configure the trunk trunk port to apply for QoS service overlay request.确定所述TRUNK口所包含的物理成员口;Determining a physical member port included in the trunk port;选择确定的所述TRUNK口所包含的一个物理成员口,利用其对应的流量管理芯片端口接入QoS业务。Selecting a physical member port included in the determined TRUNK port, and accessing the QoS service by using its corresponding traffic management chip port.
- 如权利要求1所述的实现方法,其中,所述选择确定的TRUNK口所包含的一个物理成员口,利用其对应的流量管理芯片端口接入QoS业务包括:The implementation method of claim 1, wherein the selecting a physical member port included in the determined TRUNK port to access the QoS service by using the corresponding traffic management chip port comprises:根据接口模块端口与流量管理芯片端口的对应关系,确定选择的所述物理成员口对应的流量管理芯片端口,将确定出的该流量管理芯片端口的使用状态设置为TRUNK口使用,将QoS业务的配置信息写入流量管理芯片运行。The traffic management chip port corresponding to the selected physical member port is determined according to the correspondence between the interface module port and the traffic management chip port, and the determined use state of the traffic management chip port is set to be used by the TRUNK port, and the QoS service is used. The configuration information is written to the traffic management chip to run.
- 如权利要求2所述的实现方法,所述接入QoS业务之后,所述实现方法还包括:The implementation method of claim 2, after the accessing the QoS service, the implementation method further includes:控制所述确定出的流量管理芯片端口将QoS业务的业务报文分发至所述TRUNK口所包含的物理成员口。And the determined traffic management chip port distributes the service packet of the QoS service to the physical member port included in the TRUNK port.
- 如权利要求1所述的实现方法,所述接入QoS业务之后,所述实现方法还包括:The implementation method of claim 1, after the accessing the QoS service, the implementation method further includes:解除所述TRUNK口的QoS业务,将所述TRUNK口所包含的物理成员口所对应的流量管理芯片端口的使用状态设置为与流量管理芯片端口对应的物理成员口使用。The QoS service of the trunk port is released, and the usage state of the traffic management chip port corresponding to the physical member port included in the TRUNK port is set to be used by the physical member port corresponding to the traffic management chip port.
- 如权利要求1至4任一项所述的实现方法,其中,所述确定TRUNK口所包含的物理成员口包括:The implementation method of any one of claims 1 to 4, wherein the determining the physical member port included in the TRUNK port comprises:获取所述TRUNK口下所有物理成员口的成员口标识;Obtain the member port IDs of all physical member interfaces of the TRUNK interface.根据获取的所述成员口标识确定所述TRUNK口所包含的物理成员口。The physical member port included in the trunk port is determined according to the obtained member port identifier.
- 如权利要求5所述的实现方法,所述实现方法还包括:The implementation method of claim 5, the implementing method further comprising:获取所述TRUNK口变化后所有物理成员口的成员口标识; Obtain the member port ID of all physical member interfaces after the change of the TRUNK interface.根据变化后所有物理成员口的成员口标识进行TRUNK口内物理成员口添加和/或删除操作。Add and/or delete physical member ports in the trunk port based on the member port IDs of all physical member interfaces.
- 一种服务质量QoS业务的实现装置,所述实现装置包括:An apparatus for implementing a quality of service QoS service, where the implementation apparatus includes:配置模块设置为,配置TRUNK口申请QoS业务叠加请求;The configuration module is configured to configure the TRUNK interface to apply for a QoS service overlay request.确定模块设置为,确定所述TRUNK口所包含的物理成员口;The determining module is configured to determine a physical member port included in the trunk port;控制模块设置为,选择确定的所述TRUNK口所包含的一个物理成员口,利用其对应的流量管理芯片端口接入QoS业务。The control module is configured to select a physical member port included in the determined TRUNK port, and access the QoS service by using the corresponding traffic management chip port.
- 如权利要求7所述的实现装置,其中,所述控制模块是设置为:The implementation device of claim 7, wherein the control module is configured to:根据接口模块端口与流量管理芯片端口的对应关系,确定选择的所述物理成员口对应的流量管理芯片端口,将确定出的该流量管理芯片端口的使用状态设置为TRUNK口使用,将QoS业务的配置信息写入流量管理芯片运行。The traffic management chip port corresponding to the selected physical member port is determined according to the correspondence between the interface module port and the traffic management chip port, and the determined use state of the traffic management chip port is set to be used by the TRUNK port, and the QoS service is used. The configuration information is written to the traffic management chip to run.
- 如权利要求8所述的实现装置,所述控制模块还设置为:The implementation device of claim 8, the control module is further configured to:在接入QoS业务之后,控制所述确定出的流量管理芯片端口将QoS业务的业务报文分发至所述TRUNK口所包含的物理成员口。After the QoS service is accessed, the determined traffic management chip port is configured to distribute the service packet of the QoS service to the physical member port included in the TRUNK port.
- 如权利要求7所述的实现装置,所述控制模块还设置为:在接入QoS业务之后,解除所述TRUNK口的QoS业务,将所述TRUNK口所包含的物理成员口所对应的流量管理芯片端口的使用状态设置为与流量管理芯片端口对应的物理成员口使用。The implementation device of claim 7, the control module is further configured to: after accessing the QoS service, cancel the QoS service of the TRUNK port, and manage traffic corresponding to the physical member port included in the TRUNK port. The usage status of the chip port is set to be used by the physical member port corresponding to the traffic management chip port.
- 如权利要求7至10任一项所述的实现装置,其中,所述确定模块是设置为:The implementation device according to any one of claims 7 to 10, wherein the determining module is configured to:获取所述TRUNK口下所有物理成员口的成员口标识;Obtain the member port IDs of all physical member interfaces of the TRUNK interface.根据获取的所述成员口标识确定所述TRUNK口所包含的物理成员口。The physical member port included in the trunk port is determined according to the obtained member port identifier.
- 如权利要求11所述的实现装置,所述控制模块还设置为:The implementation device of claim 11, the control module is further configured to:获取所述TRUNK口变化后所有物理成员口的成员口标识;Obtain the member port ID of all physical member interfaces after the change of the TRUNK interface.根据变化后所有物理成员口的成员口标识进行TRUNK口内物理成员口添加和/或删除操作。 Add and/or delete physical member ports in the trunk port based on the member port IDs of all physical member interfaces.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510414889.2 | 2015-07-14 | ||
CN201510414889.2A CN106357553B (en) | 2015-07-14 | 2015-07-14 | QoS service realization method and device for TRUNK port |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017008579A1 true WO2017008579A1 (en) | 2017-01-19 |
Family
ID=57757779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/083035 WO2017008579A1 (en) | 2015-07-14 | 2016-05-23 | Method and device for realizing qos service |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106357553B (en) |
WO (1) | WO2017008579A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114710441B (en) * | 2022-03-25 | 2023-08-18 | 苏州浪潮智能科技有限公司 | Link aggregation method, system, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1809022A (en) * | 2005-01-17 | 2006-07-26 | 华为技术有限公司 | Ethernet device stacking method and its system |
CN1925452A (en) * | 2006-10-11 | 2007-03-07 | 杭州华为三康技术有限公司 | Data transferring system, method and network transferring apparatus |
KR20070081500A (en) * | 2006-02-13 | 2007-08-17 | 삼성전자주식회사 | Apparatus and method for controlling data transmission in mobile communication system |
CN101945046A (en) * | 2010-09-15 | 2011-01-12 | 中兴通讯股份有限公司 | Method and system for configuring mapping of qualify of service of virtual private LAN service network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635683A (en) * | 2009-08-27 | 2010-01-27 | 中兴通讯股份有限公司 | Method and device for transmitting service based on link aggregation |
-
2015
- 2015-07-14 CN CN201510414889.2A patent/CN106357553B/en active Active
-
2016
- 2016-05-23 WO PCT/CN2016/083035 patent/WO2017008579A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1809022A (en) * | 2005-01-17 | 2006-07-26 | 华为技术有限公司 | Ethernet device stacking method and its system |
KR20070081500A (en) * | 2006-02-13 | 2007-08-17 | 삼성전자주식회사 | Apparatus and method for controlling data transmission in mobile communication system |
CN1925452A (en) * | 2006-10-11 | 2007-03-07 | 杭州华为三康技术有限公司 | Data transferring system, method and network transferring apparatus |
CN101945046A (en) * | 2010-09-15 | 2011-01-12 | 中兴通讯股份有限公司 | Method and system for configuring mapping of qualify of service of virtual private LAN service network |
Also Published As
Publication number | Publication date |
---|---|
CN106357553A (en) | 2017-01-25 |
CN106357553B (en) | 2021-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11646967B2 (en) | Packet control method and network apparatus | |
CN111542064B (en) | Container arrangement management system and arrangement method for wireless access network | |
CN107222353B (en) | Support protocol-independent software-defined network virtualization management platform | |
US8447872B2 (en) | Load balancing in a storage system | |
US10122623B2 (en) | Control device and control method in SDN network | |
WO2015117385A1 (en) | Network virtualization processing method, device and system | |
US20240272932A1 (en) | Method and apparatus for live migration based on remote direct memory access, and device | |
WO2021208780A1 (en) | Management method for cdn function virtualization, electronic device, and computer readable medium | |
CN101257457A (en) | Method for network processor to copy packet and network processor | |
CN106911779A (en) | A kind of cloud platform virtual machine obtains IP method and devices | |
CN107846313A (en) | A kind of method and the network equipment of network service template generation | |
CN107005441A (en) | Dial testing method, call-testing system and calculate node | |
WO2017050036A1 (en) | Resource allocation information transmission and data distribution method and device | |
CN109564502A (en) | Treating method and apparatus applied to the access request in storage equipment | |
WO2017008579A1 (en) | Method and device for realizing qos service | |
US11381497B2 (en) | Path selection method and device | |
WO2022057481A1 (en) | Memory resource allocation method and network device | |
CN108418752A (en) | Method and device for creating aggregation group | |
CN113127144A (en) | Processing method, processing device and storage medium | |
CN109327360B (en) | Port multiplexing method and device | |
US20130156034A1 (en) | Packet transmission control device, packet transmission control method, and program | |
CN105704037A (en) | Table item storage method and controller | |
CN104601494B (en) | A kind of FC-AE interchangers and exchange method | |
CN116489064B (en) | A method and device for constructing a multi-modal network test environment that combines internal and external fields | |
CN115412502B (en) | Network port expansion and message rapid equalization processing method |
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: 16823726 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: 16823726 Country of ref document: EP Kind code of ref document: A1 |