Content of the invention
The invention provides a kind of qos service implementation method for trunk mouth and device, existing to solveThere is the problem that the trunk mouth number that can support qos scheduling in technology is restricted.
The invention provides a kind of service quality qos business realizing side for link aggregation trunk mouthMethod, comprising: configuration trunk mouth application qos business superposition request;Determine that trunk mouth is comprisedPhysical member's mouth;Select physical member's mouth, access qos using its corresponding traffic management chip portBusiness.
Further, select physical member's mouth, access qos using its corresponding traffic management chip portBusiness includes: according to the corresponding relation of interface module port and traffic management chip port, determines selectedPhysical member's mouth corresponding traffic management chip port, by the service condition setting of this traffic management chip portUse for trunk mouth, qos service configuration information write chip is run.
Further, after accessing qos business, also include: traffic management chip port is by service messageIt is distributed to physical member's mouth that trunk mouth is comprised.
Further, after accessing qos business, also include: release the qos business of trunk mouth,The use state setting of the traffic management chip port corresponding to physical member's mouth that trunk mouth is comprisedUse for corresponding physical member's mouth.
Further, determine that physical member's mouth that trunk mouth is comprised includes: obtain the mark of trunk mouthKnow, obtain the member port mark of all physics member ports under trunk mouth, identified according to member port and determine thingReason member port.
Further, also include: obtain the member port mark of all physics member ports after the change of trunk mouth,According to the member port mark of all physics member ports after change carry out in trunk mouth physical member's mouth add and/Or deletion action.
The invention provides a kind of service quality qos business realizing dress for link aggregation trunk mouthPut, comprising: configuration module, for configuring the superposition request of trunk mouth application qos business;Determine mouldBlock, for determining physical member's mouth that trunk mouth is comprised;Control module, for selecting a physicsMember port, accesses qos business using its corresponding traffic management chip port.
Further, control module is used for according to interface module port pass corresponding with traffic management chip portSystem, determines the corresponding traffic management chip port of selected physical member's mouth, by this traffic management die terminalsThe service condition of mouth is set to trunk mouth and uses, and qos service configuration information write chip is run.
Further, after accessing qos business, control module is additionally operable to control traffic management chip portService message is distributed to physical member's mouth that trunk mouth is comprised.
Further, after accessing qos business, control module is additionally operable to release the qos of trunk mouthBusiness, the use shape of the traffic management chip port corresponding to physical member's mouth that trunk mouth is comprisedState is set to corresponding physical member's mouth and uses.
Further, determining module is used for obtaining the mark of trunk mouth, obtains property under trunk mouthThe member port mark of reason member port, identifies according to member port and determines physical member's mouth.
Further, control module is additionally operable to obtain the member of all physics member ports after trunk mouth changesMouth mark, carries out physical member in trunk mouth according to the member port mark of all physics member ports after changeMouth adds and/or deletion action.
Beneficial effects of the present invention:
The invention provides a kind of new qos service implementation method for trunk mouth, in trunkWhen mouth accesses qos business, it is not using special trunk mouth resource, but is linked into trunk mouthIn physical member's mouth on, that is, logic port employs physical port, saves trunk mouth hardware resource,And dilatation can support the trunk mouth number of qos business, solve and can support qos in prior artThe problem that the trunk mouth number of scheduling is restricted.
Specific embodiment
Now combined by specific embodiment and by way of accompanying drawing, the present invention is made with further annotation explanation.
First embodiment:
The structural representation of the qos business realizing device that Fig. 2 provides for first embodiment of the invention, by Fig. 2Understand, in the present embodiment, the qos business realizing device 2 that the present invention provides includes:
Configuration module 21, for configuring the superposition request of trunk mouth application qos business;
Determining module 22, for determining physical member's mouth that trunk mouth is comprised;
Control module 23, for selecting physical member's mouth, using its corresponding traffic management chip portAccess qos business.
In certain embodiments, the control module 23 in above-described embodiment is used for according to interface module port and streamBuret manages the corresponding relation of chip port, determines the corresponding traffic management die terminals of selected physical member's mouthMouthful, the service condition of this traffic management chip port is set to trunk mouth and uses, qos business is joinedConfidence breath write chip runs.
In certain embodiments, the control module 23 in above-described embodiment, after accessing qos business, is gone backFor controlling traffic management chip port that service message is distributed to physical member's mouth that trunk mouth is comprised.
In certain embodiments, the control module 23 in above-described embodiment, after accessing qos business, is gone backFor releasing the qos business of trunk mouth, corresponding to physical member's mouth that trunk mouth is comprisedThe use state of traffic management chip port is set to corresponding physical member's mouth and uses.
In certain embodiments, the determining module 22 in above-described embodiment is used for obtaining the mark of trunk mouth,Obtain the member port mark of all physics member ports under trunk mouth, identified according to member port and determine that physics becomesMember's mouth.
In certain embodiments, the control module 23 in above-described embodiment is additionally operable to obtain the change of trunk mouthAfterwards all physics member ports member port mark, according to change after all physics member ports member port identify intoIn row trunk mouth, physical member's mouth adds and/or deletion action.
Second embodiment:
The flow chart of the qos service implementation method that Fig. 3 provides for second embodiment of the invention, from the figure 3, it may be seen thatIn the present embodiment, the qos service implementation method that the present invention provides comprises the following steps:
S301: configuration trunk mouth application qos business superposition request;
S302: determine physical member's mouth that trunk mouth is comprised;
S303: select physical member's mouth, access qos industry using its corresponding traffic management chip portBusiness.
In certain embodiments, one physical member's mouth of the selection in above-described embodiment, using its corresponding streamBuret is managed chip port access qos business and is included: according to interface module port and traffic management chip portCorresponding relation, determines the corresponding traffic management chip port of selected physical member's mouth, by this traffic managementThe service condition of chip port is set to trunk mouth and uses, by qos service configuration information write chip fortuneOK.
In certain embodiments, the method in above-described embodiment, after accessing qos business, also includes: streamService message is distributed to physical member's mouth that trunk mouth is comprised by buret reason chip port.
In certain embodiments, the method in above-described embodiment, after accessing qos business, also includes: solutionExcept the qos business of trunk mouth, the flowtube corresponding to physical member's mouth that trunk mouth is comprisedThe use state of reason chip port is set to corresponding physical member's mouth and uses.
In certain embodiments, physical member's mouth bag that the determination trunk mouth in above-described embodiment is comprisedInclude: obtain the mark of trunk mouth, obtain the member port mark of all physics member ports under trunk mouth,Identified according to member port and determine physical member's mouth.
In certain embodiments, the method in above-described embodiment also includes: obtains institute after the change of trunk mouthThe member port having physical member's mouth identifies, and is carried out according to the member port mark of all physics member ports after changeIn trunk mouth, physical member's mouth adds and/or deletion action.
In conjunction with concrete application scene, the present invention is done with further annotation explanation.
3rd embodiment:
The flow chart of the qos service implementation method that Fig. 4 provides for third embodiment of the invention, as shown in Figure 4,In the present embodiment, the qos service implementation method that the present invention provides comprises the following steps:
S401: equipment initializes.
Original state: do not have any trunk to access qos business, 10 physical ports of interface moduleCorrespond with 10 physical ports of traffic management chip module, as shown in table 1 below.
| Interface module port | Traffic management chip port and service condition |
| Port 1 | Port0 port 1 uses |
| Port 2 | Port1 port 2 uses |
| Port 3 | Port2 port 3 uses |
| Port 4 | Port3 port 4 uses |
| Port 5 | Port4 port 5 uses |
| Port 6 | Port5 port 6 uses |
| Port 7 | Port6 port 7 uses |
| Port 8 | Port7 port 8 uses |
| Port 9 | Port8 port 9 uses |
| Port 10 | Port9 port 10 uses |
Table 1
S402:trunk mouth application qos business superposition flow process:
This step includes:
Configuration module configures trunkid, such as trunk64, add 5 physical member's mouths (1,5,7,8) arrive trunk64, then configuration qos business is on trunk64.
Parameter trunk64, member port id (1,5,7,8), qos tree are passed through table by configuration moduleManagement module.
Parameter trunk64, member port id (1,5,7,8), qos tree are passed through by table management moduleTraffic management management of software ic module.
Traffic management management of software ic module after the information receiving table management module, by member port (1,5,7,8) corresponding port is set to the free time, and service condition is as shown in table 2.
| Interface module port | Traffic management chip port and service condition |
| Port 1 | Port0 does not use |
| Port 2 | Port1 port 2 uses |
| Port 3 | Port2 port 3 uses |
| Port 4 | Port3 port 4 uses |
| Port 5 | Port4 does not use |
| Port 6 | Port5 port 6 uses |
| Port 7 | Port6 does not use |
| Port 8 | Port7 does not use |
| Port 9 | Port8 port 9 uses |
| Port 10 | Port9 port 10 uses |
Table 2
Then make for trunk64 from one port of little traversal from (1,5,7,8) corresponding portWith 1 mouthful of corresponding port 0 is idle, then port0 is as the port of trunk64, service conditionAs shown in table 3.
| Interface module port | Traffic management chip port and service condition |
| Port 1 | Port0trunk64 uses |
| Port 2 | Port1 port 2 uses |
| Port 3 | Port2 port 3 uses |
| Port 4 | Port3 port 4 uses |
| Port 5 | Port4 does not use |
| Port 6 | Port5 port 6 uses |
| Port 7 | Port6 does not use |
| Port 8 | Port7 does not use |
| Port 9 | Port8 port 9 uses |
| Port 10 | Port9 port 10 uses |
Table 3
Qos tree is generated scheduler, the queuing message that qos scheduling uses by traffic management management of software ic module,Queue number is backfilled to table management module, qos configuration information is handed down to sdk, write chip.
Hereafter, qos scheduling is carried out on port 0, after accessing qos user, all of backgroundBusiness also switches on port0.Port0 eventually by message be distributed to interface module physical member's mouth (1,5、7、8).Only have trunk eloquence can be sent to all physics member ports in conventional art, each physics becomesMember's mouth can not be distributed to other physical member's mouths, and the present invention will improve, the report of each physical member's mouthLiterary composition is sent to the head such as Fig. 6 encapsulating 4b when other physical member's mouths again.4b head is filled with the purpose being sent toMember port (present case will comprise four kinds of headings and fill 1,5,7,8 respectively), message just can correctly divideIt is dealt into other physical member's mouths.The qos of the existing trunk mouth of physical member's cause for gossip is achieved that.
To sum up, qos comes into force is to come into force on the member port of addition in trunk mouth, saves trunkPartial hardware resource.
Physical member's mouth interpolation operation of s403:trunk mouth:
Configuration module configures No. 9 mouths and is newly added in trunk64.
Parameter trunk64, member port id (1,5,7,8,9) are passed through table management mould by configuration moduleBlock.
Table management module is by parameter trunk64, originating member mouth id (1,5,7,8), newcomer's mouthId (1,5,7,8,9) passes through traffic management management of software ic module.
Traffic management management of software ic module is passed through to compare the change of before and after member port id, determines that 9 ports will addTo in trunk64.Corresponding for 9 ports port8 is set to the free time.Service condition is as shown in table 4.
| Interface module port | Traffic management chip port and service condition |
| Port 1 | Port0trunk64 uses |
| Port 2 | Port1 port 2 uses |
| Port 3 | Port2 port 3 uses |
| Port 4 | Port3 port 4 uses |
| Port 5 | Port4 does not use |
| Port 6 | Port5 port 6 uses |
| Port 7 | Port6 does not use |
| Port 8 | Port7 does not use |
| Port 9 | Port8 does not use |
| Port 10 | Port9 port 10 uses |
Table 4
Physical member's mouth deletion action of s404:trunk mouth:
Configuration module configures 7 ports and deletes from trunk64
Parameter trunk64, member port id (1,5,8,9) are passed through table management module by configuration module.
Table management module is by parameter trunk64, originating member mouth id (1,5,7,8,9), newcomerMouth id (1,5,8,9) passes through traffic management management of software ic module.
The change that traffic management management of software ic module compares before and after's member port determines 7 ports from trunk64Delete.Port is redistributed in 7 ports, begins stepping through 5 mouthfuls of corresponding port4 and is labeled as the free time from little,Distribution port4 is the new port of 7 ports.Service condition is as shown in table 5.
| Interface module port | Traffic management chip port and service condition |
| Port 1 | Port0trunk64 uses |
| Port 2 | Port1 port 2 uses |
| Port 3 | Port2 port 3 uses |
| Port 4 | Port3 port 4 uses |
| Port 5 | Port4 port 7 uses |
| Port 6 | Port5 port 6 uses |
| Port 7 | Port6 does not use |
| Port 8 | Port7 does not use |
| Port 9 | Port8 does not use |
| Port 10 | Port9 port 10 uses |
Table 5
S405: release business, trunk mouth discharges:
All qos business on trunk64 are released by configuration module.
Parameter trunk64, member port id (1,5,8,9), qos tree are passed through table by configuration moduleManagement module.
Parameter trunk64, member port id (1,5,8,9), qos tree are passed through by table management moduleTraffic management management of software ic module.
Traffic management management of software ic module by qos scheduling, reclaim by the scheduler using, queue, qos parameterRecover default value and be handed down to sdk, write chip.
The port0 that traffic management management of software ic module discharges trunk64 use is set to the free time.Service conditionAs shown in table 6.
| Interface module port | Traffic management chip port and service condition |
| Port 1 | Port0 does not use |
| Port 2 | Port1 port 2 uses |
| Port 3 | Port2 port 3 uses |
| Port 4 | Port3 port 4 uses |
| Port 5 | Port4 port 7 uses |
| Port 6 | Port5 port 6 uses |
| Port 7 | Port6 does not use |
| Port 8 | Port7 does not use |
| Port 9 | Port8 does not use |
| Port 10 | Port9 port 10 uses |
Table 6
The existing member port of trunk64 (1,5,8,9) all distributes new port.Distribution principle is fromLittle index begins stepping through.Service condition such as table 7.
| Interface module port | Traffic management chip port and service condition |
| Port 1 | Port0 port 1 uses |
| Port 2 | Port1 port 2 uses |
| Port 3 | Port2 port 3 uses |
| Port 4 | Port3 port 4 uses |
| Port 5 | Port4 port 7 uses |
| Port 6 | Port5 port 6 uses |
| Port 7 | Port6 port 5 uses |
| Port 8 | Port7 port 8 uses |
| Port 9 | Port8 port 9 uses |
| Port 10 | Port9 port 10 uses |
Table 7
The present invention achieves the qos of trunk mouth using port member port, saves interface module and streamBuret manages the port hardware resource of chip module.In the case of resource-constrained, can be very good to play a role.
Fig. 1 and Fig. 5 are contrasted and is understood: the present invention and the trunk mouth qos method of realizing commonly used are existedThe difference of hardware aspect includes: the present invention is it is important that save interface module and traffic management chip modulePort resource, so hardware difference is apparent: Fig. 1 is interface module and the traffic management core of conventional artThe port section hardware configuration of piece module it is assumed that 1~10 port of port module is physical port, 11 portsIt is trunk mouth, the port0~port9 of traffic management chip module is physical port,Port10~port13 is trunk mouth;Fig. 5 is the hardware configuration of two modules of the present invention, thisTrunk oral area is divided and saves by bright port section hardware configuration, and interface module only includes 1~10 physical port,Traffic management chip module only includes port0~port9 physical port, and the hardware components of the present invention are simplerSingle, more save resources.
The present invention and conventional difference in terms of implementation method for the trunk mouth qos method of realizing include:
In trunk mouth application and superposition qos operation flow, table management module transparent transmission trunkid,Trunk all physics member port id, qos tree information gives described traffic management management of software ic module, traditionTechnology only needs transparent transmission trunkid and qos tree information in this step;Traffic management management of software ic module willThe corresponding port of all physics member ports of trunk mouth is set to the free time, then chooses the one of trunk mouthThe corresponding port of individual member port is that trunk mouth uses, and this port is labeled as using, trunkUse, in this step, traffic management management of software ic module is Shen from trunk mouth resource to conventional artPlease one be trunk mouth use;Described traffic management management of software ic module by qos tree generate scheduler,Queuing message and the described sdk of configuration parameter triggering write chip.Qos scheduling just can be in trunkMouth achieves, and after scheduling completes, message is sent to other things by physical member's mouth as trunk mouth againReason member port, the message of physical member's mouth of conventional art can not be sent to other physical member's mouths.The present invention existsOn conventional art improve, as trunk mouth physical member's mouth send message when, encapsulation 4b head as scheme6,4b head is filled with the purpose physical member's mouth being sent to.
In physical member's mouth interpolation of trunk mouth, deletion action flow process, the online situation of qos businessUnder, configuration module is added or deletion of physically member port, configuration module transparent transmission trunkid, new trunkMember port id, qos tree information gives described table management module, and conventional art only needs transparent transmission in this stepTrunkid and qos tree information;Described table management module transparent transmission trunkid, new trunk becomeMember mouth id, old member port id, qos tree information give described traffic management management of software ic module, traditional skillArt only needs transparent transmission trunkid and qos tree information in this step;Described traffic management management of software ic moduleDetermine which is the member port adding by the id value of relatively new and old member port, which is the member port deleted,It is added to the corresponding port of physical member's mouth in trunk mouth and be set to the free time, the thing deleted from trunkReason member port redistributes physical port, and conventional art does not execute this step.
During the release of trunk mouth, configuration module configuration trunk port releases all qos business,Configuration module transparent transmission trunkid, trunk member port id, qos tree information gives described table management module;Described table management module transparent transmission trunkid, trunk member port id, qos tree information gives described flowManaging chip management module, conventional art only needs transparent transmission trunkid and qos tree information in this step;Qos is dispatched the scheduler using, the recovery information of queue, goes to make by described traffic management management of software ic moduleCan information and configuration information triggering sdk write chip;Described traffic management management of software ic module is by trunkThe corresponding physical member port of mouth is set to the free time, and all member ports of trunk are all redistributed physicsPort, conventional art only need to discharge the trunk mouth resource of trunk mouth use in this step.
In summary, by the enforcement of the present invention, at least there is following beneficial effect:
The traffic management chip module of conventional art comprises trunk mouth hardware resource n, then supportMost n of the trunk mouth number of qos.Shortcoming is to expend resource, port module and traffic management corePiece module will reserve resource for trunk mouth.When each module resource is limited, can support qos'sTrunk mouth number is restricted that to reach full configuration (former it is impossible to realize supporting the trunk mouth number of qosThen go up, support that the trunk mouth maximum number of qos can be equal with port sum).Implement in the present inventionIn the scheme of case, when trunk mouth accesses qos business, it is not using trunk mouth resource, andIt is that on the physical member's mouth being linked in trunk mouth, that is, logic port employs physical port, savesTrunk mouth hardware resource, and dilatation can support the trunk mouth number of qos business.
The above is only the specific embodiment of the present invention, not the present invention done with any pro forma restriction,Every technical spirit according to the present invention embodiment of above is made arbitrarily simply modification, equivalent variations,In conjunction with or modify, all still fall within the protection domain of technical solution of the present invention.