CN110138610A - A kind of sending method and device of service message - Google Patents

A kind of sending method and device of service message Download PDF

Info

Publication number
CN110138610A
CN110138610A CN201910390140.7A CN201910390140A CN110138610A CN 110138610 A CN110138610 A CN 110138610A CN 201910390140 A CN201910390140 A CN 201910390140A CN 110138610 A CN110138610 A CN 110138610A
Authority
CN
China
Prior art keywords
service
class
message
preset
priority
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910390140.7A
Other languages
Chinese (zh)
Other versions
CN110138610B (en
Inventor
顾成杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN201910390140.7A priority Critical patent/CN110138610B/en
Publication of CN110138610A publication Critical patent/CN110138610A/en
Application granted granted Critical
Publication of CN110138610B publication Critical patent/CN110138610B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2408Traffic characterised by specific attributes, e.g. priority or QoS for supporting different services, e.g. a differentiated services [DiffServ] type of service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types

Abstract

The embodiment of the present application provides the sending method and device of a kind of service message, is related to field of communication technology.This method comprises: identifying the class of service of received each service message according to preset class of service recognition rule;According to the corresponding relationship of preset class of service and priority, the priority of each class of service is determined;According to the priority of each class of service, preset outlet total bandwidth and preset bandwidth allocation algorithm, the bandwidth allocation of each class of service is determined;The each service message for belonging to the class of service is sent according to the bandwidth allocation of the class of service for each class of service.It can satisfy the transmission requirement of service message using the application.

Description

A kind of sending method and device of service message
Technical field
This application involves fields of communication technology, more particularly to the sending method and device of a kind of service message.
Background technique
In the prior art, the network equipment would generally receive the service message that multiple terminals are sent, the industry that then will be received Business message is sent to the corresponding target device of each service message.Wherein, the classification of service message is different, the transmission of service message It is required that it is also different, for example, the service message permission higher delay of interactive video classification, and IP (Internet Protocol, mutually Networking protocol) voice class service message require low latency.
The rate that the service message of different business classification is transmitted to the network equipment is different, in the business report for allowing higher delay The rate of text is higher, and requires in the lower situation of the rate of the service message of low latency, and in the same period, the network equipment is connect The service message of the permission higher delay received is more than the service message of the requirement low latency received.Because the network equipment is adopted mostly With the processing strategie of message first in first out, allow the bandwidth of the service message of higher delay higher so the network equipment is distributed to, And distribute to and require the bandwidth of the service message of low latency lower, cause the transmission delay for the service message for requiring low latency compared with Height is not able to satisfy the transmission requirement of service message.
Summary of the invention
The sending method and device for being designed to provide a kind of service message of the embodiment of the present application, can satisfy business report The transmission requirement of text.Specific technical solution is as follows:
In a first aspect, providing a kind of sending method of service message, which comprises
According to preset class of service recognition rule, the class of service of received each service message is identified;
According to the corresponding relationship of preset class of service and priority, the priority of each class of service is determined;
According to the priority of each class of service, preset outlet total bandwidth and preset bandwidth allocation algorithm, determine each The bandwidth allocation of a class of service;
The each industry for belonging to the class of service is sent according to the bandwidth allocation of the class of service for each class of service Business message.
Optionally, the priority, preset outlet total bandwidth and preset bandwidth allocation according to each class of service Algorithm determines the bandwidth allocation of each class of service, comprising:
For the class of service of each service message, by the value of the priority of each class of service and the first preset value The sum of as the corresponding reference value of the class of service;
Calculate the sum of the reference value of the corresponding reference value of all classs of service;
For each class of service, by the ratio of the sum of the value of the priority of the class of service and the reference value, as The bandwidth ratio of the class of service;
The industry is calculated according to the bandwidth ratio and preset outlet total bandwidth of the class of service for each class of service The bandwidth allocation for classification of being engaged in.
Optionally, described according to preset class of service recognition rule, identify the service class of received each service message Before other step, the method also includes:
Judge whether the total amount of data of currently received service message is greater than preset threshold;
If so, executing described according to preset class of service recognition rule, the industry of the received each service message of identification The step of classification of being engaged in.
Optionally, the class of service recognition rule is that port identification rule or payload characteristic recognition rule or stream statistics are special Levy recognition rule.
Optionally, described to be directed to each class of service, according to the bandwidth allocation of the class of service, transmission belongs to the service class Other each service message, comprising:
It is for each class of service, each service message storage for belonging to the class of service is corresponding to the class of service In packet queue;
For each class of service, according to the bandwidth allocation of the class of service, the corresponding grouping team of the class of service is sent Message in column.
Optionally, described to send the class of service pair according to the bandwidth allocation of the class of service for each class of service The message in packet queue answered, comprising:
For each class of service, by the ratio of the bandwidth allocation of the class of service and the preset outlet total bandwidth, Message as the class of service sends ratio;
For each class of service, the message according to the class of service sends ratio and preset message sending threshold value, meter The message for calculating the class of service sends number;
According to the priority of each class of service, successively message preceding in the corresponding packet queue of each class of service is sent Number service message is sent.
Second aspect, provides a kind of sending device of service message, and described device includes:
Identification module, for identifying the business of received each service message according to preset class of service recognition rule Classification;
First determining module determines each service class for the corresponding relationship according to preset class of service and priority Other priority;
Second determining module, for the priority, preset outlet total bandwidth and preset band according to each class of service Wide allocation algorithm determines the bandwidth allocation of each class of service;
Sending module, for being directed to each class of service, according to the bandwidth allocation of the class of service, transmission belongs to the business Each service message of classification.
Optionally, second determining module, is specifically used for:
For the class of service of each service message, by the value of the priority of each class of service and the first preset value The sum of as the corresponding reference value of the class of service;
Calculate the sum of the reference value of the corresponding reference value of all classs of service;
For each class of service, by the ratio of the sum of the value of the priority of the class of service and the reference value, as The bandwidth ratio of the class of service;
The industry is calculated according to the bandwidth ratio and preset outlet total bandwidth of the class of service for each class of service The bandwidth allocation for classification of being engaged in.
Optionally, described device further includes judgment module;The judgment module, for judging currently received service message Total amount of data whether be greater than preset threshold;If so, it is described according to preset class of service to trigger the identification module execution The step of recognition rule, the class of service of the received each service message of identification.
Optionally, the class of service recognition rule is that port identification rule or payload characteristic recognition rule or stream statistics are special Levy recognition rule.
Optionally, the sending module, comprising:
Storage unit, for being directed to each class of service, each service message storage for belonging to the class of service is arrived should In the corresponding packet queue of class of service;
Transmission unit, according to the bandwidth allocation of the class of service, it is corresponding to send the class of service for each class of service Packet queue in message.
Optionally, the transmission unit, is specifically used for:
For each class of service, by the ratio of the bandwidth allocation of the class of service and the preset outlet total bandwidth, Message as the class of service sends ratio;
For each class of service, the message according to the class of service sends ratio and preset message sending threshold value, meter The message for calculating the class of service sends number;
According to the priority of each class of service, successively message preceding in the corresponding packet queue of each class of service is sent Number service message is sent.
The third aspect provides a kind of electronic equipment, including processor and machine readable storage medium, described machine readable Storage medium is stored with the machine-executable instruction that can be executed by the processor, and the processor can be performed by the machine Instruction promotes: realizing method and step described in first aspect.
Fourth aspect provides a kind of computer readable storage medium, is stored in the computer readable storage medium Computer program realizes method and step described in first aspect when the computer program is executed by processor.
5th aspect, provides a kind of computer program product comprising instruction, when run on a computer, so that Computer executes method described in first aspect.
The sending method and device of a kind of service message provided by the embodiments of the present application, can be according to preset class of service Recognition rule identifies the class of service of received each service message;It is closed according to preset class of service is corresponding with priority System, determines the priority of each class of service;According to the priority of each class of service, preset outlet total bandwidth and preset Bandwidth allocation algorithm determines the bandwidth allocation of each class of service;Distribution for each class of service, according to the class of service Bandwidth sends each service message for belonging to the class of service.Compared with the prior art, the application identifies received service message Class of service, and determine the priority of each class of service, then the priority according to each class of service, is each business The service message bandwidth allocation of classification, bandwidth allocation is reasonable, and according to the bandwidth allocation of each class of service, transmission belongs to the business Each service message of classification, can satisfy the transmission requirement of service message.
Certainly, implement the application any product or method it is not absolutely required to and meanwhile reach all the above excellent Point.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of sending method flow chart of service message provided by the embodiments of the present application;
Fig. 2 is a kind of transmission schematic diagram of service message provided by the embodiments of the present application;
Fig. 3 is a kind of sending method flow chart of service message provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of the sending device of service message provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
The embodiment of the present application provides a kind of sending method of service message of offer, is applied to gateway, router, exchange The network equipments such as machine.The network equipment can identify received each service message according to preset class of service recognition rule Class of service.Then, the network equipment determines each class of service according to the corresponding relationship of preset class of service and priority Priority, and according to the priority of each class of service, preset outlet total bandwidth and preset bandwidth allocation algorithm, it determines each The bandwidth allocation of a class of service.In turn, for each class of service, bandwidth allocation of the network equipment according to the class of service, Send each service message for belonging to the class of service.Compared with the prior art, the application identifies the industry of received service message Business classification, and determine the priority of each class of service, then the priority according to each class of service, is each class of service Service message bandwidth allocation, bandwidth allocation is reasonable, and according to the bandwidth allocation of each class of service, transmission belongs to the class of service Each service message, can satisfy the transmission requirement of service message.
Below in conjunction with specific embodiment, to a kind of sending method progress of service message provided by the embodiments of the present application Detailed description, as shown in Figure 1, specific step is as follows.
Step 101, according to preset class of service recognition rule, the class of service of received each service message is identified.
Wherein, class of service recognition rule is port identification rule or payload characteristic recognition rule or statistical flow characteristic identification Rule.
In the embodiment of the present application, the network equipment can receive the service message that each terminal is sent.Wherein, service message can Think the service message of ip voice classification, the service message of interactive video classification, the service message of stream-type video classification, key The other service message of classes of data traffic, the service message of interactive data classification, the other service message of transaction class, big block number According to the service message etc. of transmission classification.For example, the network equipment can will carry out the synchronous service message of data and transmission electronics postal The service message of part is identified as chunk data transmission classification.The network equipment can also know the service message in addition to above-mentioned classification It Wei not best effort classification.
For example, the service message of ip voice classification is VoIP (Voice over Internet Protocol, internet language Association of Musicians's view) message, the service message of interactive video classification is interactive animation game (Interactive Flash Game) Message, the service message of stream-type video classification are live video message, and the service message of critical data class of service is SMTP (Simple Mail Transfer Protocol, Simple Mail Transfer protocol) message, the service message of interactive data classification For Telnet (Telnet) message, the other service message of transaction class is DNS (Domain Name System, domain name system System) protocol massages, the service message that chunk data transmits classification is FTP (File Transfer Protocol, file transmission association View) message.The above is only examples, are not particularly limited.
The network equipment can be known according to port identification rule or payload characteristic recognition rule or statistical flow characteristic recognition rule The class of service of not each service message.
For each service message, after identifying the class of service of the service message, the network equipment can be by the business The class of service of message marks in the service message.For example, the network equipment can mark the class of service of the service message In DSCP (Differentiated Services Code Point, differentiated services code points) field of the service message.
Optionally, according to preset class of service recognition rule, the class of service of received each service message is identified Before, this method further include: judge whether the total amount of data of currently received service message is greater than preset threshold;If so, holding The step of going according to preset class of service recognition rule, identifying the class of service of received each service message.
In the embodiment of the present application, according to preset class of service recognition rule, received each service message is identified Before class of service, the network equipment can count current time before preset time period in received each service message number According to total amount, and judge whether total amount of data is greater than preset threshold.
If it is greater, then showing that the bandwidth of the network equipment is insufficient, the network equipment needs reasonably for each type of service Service message bandwidth allocation.At this point, the network equipment is executed according to preset class of service recognition rule, received each industry is identified The step of class of service of business message.
If it is not greater, then will be connect according to traditional message transmitting party formula (such as processing rule of message first in first out) The each service message received is sent.For example, the network equipment can be according to the successive suitable of each service message receiving time Sequence sends each service message received.
Step 102, according to the corresponding relationship of preset class of service and priority, the service class of each service message is determined Other priority.
The corresponding relationship of class of service and priority is previously stored in the embodiment of the present application, in the network equipment.Transmission is wanted Higher service message is sought, the priority of corresponding class of service is also higher.Referring to table 1, class of service is the excellent of ip voice First grade is 8, and class of service is that the priority of interactive video is 7, and class of service is that the priority of stream-type video is 6, service class Not Wei the priority of critical data business be 5, class of service is that the priority of interactive data is 4, and class of service is office The priority of reason is 3, and class of service is that the priority of chunk data transmission is 2, and class of service is that the priority of best effort is 1。
Table 1
Priority Class of service
8 Ip voice
7 Interactive video
6 Stream-type video
5 Critical data business
4 Interactive data
3 Issued transaction
2 Chunk data transmission
1 Best effort
The network equipment can determine that each class of service is corresponding according to the corresponding relationship of preset class of service and priority Priority, the priority as the service message.For example, class of service is that chunk data transmits classification, the network equipment can be with Determine that the corresponding priority of the class of service is 2, then the priority of the service message of chunk data transmission classification is also 2.
Step 103, it is calculated according to the priority of each class of service, preset outlet total bandwidth and preset bandwidth allocation Method determines the bandwidth allocation of each class of service.
Herein, the bandwidth allocation of some class of service refers to the bandwidth of the service message distribution for the class of service.
In the embodiment of the present application, the network equipment can calculate the sum of the value of priority of each class of service identified, Then by the ratio of the sum of the value of the priority of each class of service and the value of priority of calculating multiplied by the preset total band in outlet Width, the bandwidth allocation as the class of service.For example, the class of service of the received service message of the network equipment have class of service A, The priority of class of service B and class of service C, class of service A are 1, and the priority of class of service B is 2, and class of service C's is excellent First grade is 3, and preset outlet total bandwidth is M, and the sum of class of service A, value of priority of class of service B and class of service C are 6, then the bandwidth allocation of class of service A is M*1/6, and the bandwidth allocation of class of service B is M*2/6, the bandwidth allocation of class of service C For M*3/6.
In another example, in step 103, the network equipment can determine the priority of each class of service of identification Value and the sum of the first preset value, as the corresponding reference value of the class of service.Wherein, the first preset value can be by technical staff It rule of thumb sets, for example is set as 1.Then, the network equipment calculate the corresponding reference value of all classs of service reference value it With.For each class of service, the network equipment is by the ratio of the value of the priority of the class of service and the sum of reference value, as this The bandwidth ratio of class of service, then by the product of the bandwidth ratio of the class of service and preset outlet total bandwidth, as the industry The bandwidth allocation for classification of being engaged in.
For example, the class of service of network equipment identification has class of service A, class of service B and class of service C, class of service A Priority be 1, the priority of class of service B is 2, and the priority of class of service C is 3, and preset outlet total bandwidth is M, the One preset value is 1, then the corresponding reference value of class of service A is 2, and the corresponding reference value of class of service B is 3, and class of service C is corresponding Reference value be 4, class of service A, class of service B and class of service C the sum of reference value be 9, then the distribution band of class of service A Width is M*1/9, and the bandwidth allocation of class of service B is M*2/9, and the bandwidth allocation of class of service C is M*3/9.
From citing as can be seen that the case where the first preset value is 1, the bandwidth of network equipment distribution is M*1/9+M*2/ 9+M*3/9=M*2/3, the network equipment are reserved with the bandwidth of M*1/3 also to cope with emergency case, avoid making because of emergency case At network congestion.Wherein, the first preset value is higher, and the reserved bandwidth of the network equipment is bigger, and technical staff can be according to practical feelings Condition sets the first preset value.User can also be further to guarantee to belong to by reserved bandwidth allocation to specified class of service The transmission quality of the service message of the class of service is met the requirements.
Step 104, for each class of service, according to the bandwidth allocation of the class of service, transmission belongs to the class of service Each service message.
In the embodiment of the present application, for each class of service, the network equipment is by the bandwidth allocation of the class of service and presets Outlet total bandwidth ratio, as the class of service message send ratio, according to the class of service message send ratio Example and preset message sending threshold value, the message for calculating the class of service send number.Then according to the priority of class of service Sequence from high to low, the message for successively sending each class of service send number service message.
For example, the class of service of network equipment identification has class of service A, class of service B and class of service C, class of service A Priority be 1, the priority of class of service B is 2, and the priority of class of service C is 3, and preset outlet total bandwidth is M, industry The bandwidth allocation of business classification A is M*1/9, and the bandwidth allocation of class of service B is M*2/9, and the bandwidth allocation of class of service C is M*3/ 9, preset message sending threshold value is N, then it is N* (M*1/9)/M=N/9, class of service B that the message of class of service A, which sends number, Message to send number be N* (M*2/9)/M=N*2/9, it is N* (M*3/9)/M=N*3/ that the message of class of service C, which sends number, 9。
In one example, step 104 detailed process can be with are as follows: is directed to each class of service, will belong to the class of service Each service message store into the corresponding packet queue of the class of service;For each class of service, according to the service class Other bandwidth allocation sends the message in the corresponding packet queue of the class of service.
In the embodiment of the present application, for each class of service, the network equipment can will belong to the business report of the class of service Text, according to receiving time sequencing, store into the corresponding packet queue of the class of service.Then, for each industry Business classification, bandwidth allocation of the network equipment according to the class of service send the message in the corresponding packet queue of the class of service.
Optionally, for each class of service, according to the bandwidth allocation of the class of service, it is corresponding to send the class of service Message in packet queue, detailed process can be with are as follows: each class of service are directed to, by the bandwidth allocation of the class of service and default Outlet total bandwidth ratio, as the class of service message send ratio;For each class of service, according to the business The message of classification sends ratio and preset message sending threshold value, and the message for calculating the class of service sends number;According to each The priority of class of service, successively to message preceding in the corresponding packet queue of each class of service send number service message into Row is sent.
In the embodiment of the present application, for each class of service, the network equipment can by the bandwidth allocation of the class of service with The ratio of preset outlet total bandwidth, the message as the class of service send ratio, and the message according to the class of service Transmission ratio and preset message sending threshold value, the message for calculating the class of service send number.
For example, the class of service of network equipment identification has class of service A, class of service B and class of service C, class of service A Priority be 1, the priority of class of service B is 2, and the priority of class of service C is 3, and preset outlet total bandwidth is M, industry The bandwidth allocation of business classification A is M*1/9, and the bandwidth allocation of class of service B is M*2/9, and the bandwidth allocation of class of service C is M*3/ 9, preset message sending threshold value is N, then it is N* (M*1/9)/M=N/9, class of service B that the message of class of service A, which sends number, Message to send number be N* (M*2/9)/M=N*2/9, it is N* (M*3/9)/M=N*3/ that the message of class of service C, which sends number, 9。
Then, the network equipment can be according to the priority of each class of service, grouping team corresponding to each class of service Message in column is sent, and specific transmission process can be with are as follows: according to priority from high to low suitable of each class of service Sequence successively sends number service message to message preceding in the corresponding packet queue of each class of service and is moved to forwarding queue In, and the service message in forwarding queue is successively sent, the network equipment, which can recycle, executes the transmission process.
For example, with reference to Fig. 2, class of service A corresponds to packet queue A, and class of service B corresponds to packet queue B, class of service C It is 1 that the corresponding message of corresponding packet queue C, class of service A, which sends number, and it is 2 that the corresponding message of class of service B, which sends number, It is 4 that the corresponding message of class of service C, which sends number, and service message is followed successively by 1,2,3,4 in packet queue A, industry in packet queue B Business message is followed successively by 5,6,7,8,9,10, and service message is followed successively by 11,12 in packet queue C.The network equipment will successively be grouped team Arrange the service message 1 in A, the service message 5,6 in packet queue B, the service message 11,12 in packet queue C is moved to and turns It sends out in queue, then successively the message in forwarding queue is sent.Wherein, the number of service message is small in packet queue C Send number 4 in the corresponding message of class of service C, in such cases, the network equipment by all messages in packet queue C according to Order is moved in forwarding queue.
Compared with the prior art, the application identifies the class of service of received service message, and determines each class of service Priority, the then priority according to each class of service is the service message bandwidth allocation of each class of service, bandwidth point With reasonable, according to the bandwidth allocation of each class of service, each service message for belonging to the class of service sent, can satisfy industry The transmission requirement of business message.
The embodiment of the present application also provides a kind of sending method examples of service message, and referring to Fig. 3, specific step is as follows.
Step 301, judge whether the total amount of data of currently received service message is greater than preset threshold.
Step 302, if more than identifying received each service message then according to preset class of service recognition rule Class of service.
Step 303, according to the corresponding relationship of preset class of service and priority, the preferential of each class of service is determined Grade.
Step 304, it is calculated according to the priority of each class of service, preset outlet total bandwidth and preset bandwidth allocation Method determines the bandwidth allocation of each class of service.
Step 305, for each class of service, according to the bandwidth allocation of the class of service, transmission belongs to the class of service Each service message.
Wherein, step 302-305 can refer to step 101-104 respectively, and details are not described herein by the application.
The embodiment of the present application can reasonably be the industry of each type of service in the insufficient situation of bandwidth of the network equipment Business message bandwidth allocation.According to the bandwidth allocation of each class of service, each service message for belonging to the class of service is sent, it can To meet the transmission requirement of service message.
Based on the same technical idea, as shown in figure 4, the embodiment of the present application also provides a kind of transmission of service message dresses It sets, which includes:
Identification module 401, for identifying the industry of received each service message according to preset class of service recognition rule Business classification;
First determining module 402 determines each business for the corresponding relationship according to preset class of service and priority The priority of classification;
Second determining module 403, for according to the priority of each class of service, preset outlet total bandwidth and preset Bandwidth allocation algorithm determines the bandwidth allocation of each class of service;
Sending module 404, for being directed to each class of service, according to the bandwidth allocation of the class of service, transmission belongs to this Each service message of class of service.
Optionally, second determining module 402, is specifically used for:
For the class of service of each service message, by the value of the priority of each class of service and the first preset value The sum of as the corresponding reference value of the class of service;
Calculate the sum of the reference value of the corresponding reference value of all classs of service;
For each class of service, by the ratio of the sum of the value of the priority of the class of service and the reference value, as The bandwidth ratio of the class of service;
The industry is calculated according to the bandwidth ratio and preset outlet total bandwidth of the class of service for each class of service The bandwidth allocation for classification of being engaged in.
Optionally, described device further includes judgment module;The judgment module, for judging currently received service message Total amount of data whether be greater than preset threshold;If so, it is described according to preset class of service to trigger the identification module execution The step of recognition rule, the class of service of the received each service message of identification.
Optionally, the class of service recognition rule is that port identification rule or payload characteristic recognition rule or stream statistics are special Levy recognition rule.
Optionally, the sending module 404, comprising:
Storage unit, for being directed to each class of service, each service message storage for belonging to the class of service is arrived should In the corresponding packet queue of class of service;
Transmission unit, according to the bandwidth allocation of the class of service, it is corresponding to send the class of service for each class of service Packet queue in message.
Optionally, the transmission unit, is specifically used for:
For each class of service, by the ratio of the bandwidth allocation of the class of service and the preset outlet total bandwidth, Message as the class of service sends ratio;
For each class of service, the message according to the class of service sends ratio and preset message sending threshold value, meter The message for calculating the class of service sends number;
According to the priority of each class of service, successively message preceding in the corresponding packet queue of each class of service is sent Number service message is sent.
The embodiment of the present application also provides a kind of electronic equipment, as shown in figure 5, include processor 501, communication interface 502, Memory 503 and communication bus 504, wherein processor 501, communication interface 502, memory 503 are complete by communication bus 504 At mutual communication,
Memory 503, for storing computer program;
Processor 501 when for executing the program stored on memory 503, realizes following steps:
According to preset class of service recognition rule, the class of service of received each service message is identified;
According to the corresponding relationship of preset class of service and priority, the priority of each class of service is determined;
According to the priority of each class of service, preset outlet total bandwidth and preset bandwidth allocation algorithm, determine each The bandwidth allocation of a class of service;
The each industry for belonging to the class of service is sent according to the bandwidth allocation of the class of service for each class of service Business message.
Optionally, the priority, preset outlet total bandwidth and preset bandwidth allocation according to each class of service Algorithm determines the bandwidth allocation of each class of service, comprising:
For the class of service of each service message, by the value of the priority of each class of service and the first preset value The sum of as the corresponding reference value of the class of service;
Calculate the sum of the reference value of the corresponding reference value of all classs of service;
For each class of service, by the ratio of the sum of the value of the priority of the class of service and the reference value, as The bandwidth ratio of the class of service;
The industry is calculated according to the bandwidth ratio and preset outlet total bandwidth of the class of service for each class of service The bandwidth allocation for classification of being engaged in.
Optionally, described according to preset class of service recognition rule, identify the service class of received each service message Before other step, the method also includes:
Judge whether the total amount of data of currently received service message is greater than preset threshold;
If so, executing described according to preset class of service recognition rule, the industry of the received each service message of identification The step of classification of being engaged in.
Optionally, the class of service recognition rule is that port identification rule or payload characteristic recognition rule or stream statistics are special Levy recognition rule.
Optionally, described to be directed to each class of service, according to the bandwidth allocation of the class of service, transmission belongs to the service class Other each service message, comprising:
It is for each class of service, each service message storage for belonging to the class of service is corresponding to the class of service In packet queue;
For each class of service, according to the bandwidth allocation of the class of service, the corresponding grouping team of the class of service is sent Message in column.
Optionally, described to send the class of service pair according to the bandwidth allocation of the class of service for each class of service The message in packet queue answered, comprising:
For each class of service, by the ratio of the bandwidth allocation of the class of service and the preset outlet total bandwidth, Message as the class of service sends ratio;
For each class of service, the message according to the class of service sends ratio and preset message sending threshold value, meter The message for calculating the class of service sends number;
According to the priority of each class of service, successively message preceding in the corresponding packet queue of each class of service is sent Number service message is sent.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
In another embodiment provided by the present application, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with computer program in storage medium, the computer program realizes any of the above-described service message when being executed by processor Sending method the step of.
In another embodiment provided by the present application, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes the sending method of any service message in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk SolidState Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For electronic equipment, computer readable storage medium, computer program product embodiments, implement since it is substantially similar to method Example, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application It is interior.

Claims (14)

1. a kind of sending method of service message, which is characterized in that the described method includes:
According to preset class of service recognition rule, the class of service of received each service message is identified;
According to the corresponding relationship of preset class of service and priority, the priority of each class of service is determined;
According to the priority of each class of service, preset outlet total bandwidth and preset bandwidth allocation algorithm, each industry is determined The bandwidth allocation for classification of being engaged in;
The each business report for belonging to the class of service is sent according to the bandwidth allocation of the class of service for each class of service Text.
2. the method according to claim 1, wherein the priority according to each class of service, preset Total bandwidth and preset bandwidth allocation algorithm are exported, determines the bandwidth allocation of each class of service, comprising:
For the class of service of each service message, by the sum of the value of the priority of each class of service and the first preset value As the corresponding reference value of the class of service;
Calculate the sum of the reference value of the corresponding reference value of all classs of service;
For each class of service, by the ratio of the sum of the value of the priority of the class of service and the reference value, as the industry The bandwidth ratio for classification of being engaged in;
The service class is calculated according to the bandwidth ratio and preset outlet total bandwidth of the class of service for each class of service Other bandwidth allocation.
3. the method according to claim 1, wherein described according to preset class of service recognition rule, identification Before the step of class of service of received each service message, the method also includes:
Judge whether the total amount of data of currently received service message is greater than preset threshold;
If so, executing described according to preset class of service recognition rule, the service class of the received each service message of identification Other step.
4. the method according to claim 1, wherein the class of service recognition rule be port identification rule or Payload characteristic recognition rule or statistical flow characteristic recognition rule.
5. the method according to claim 1, wherein described be directed to each class of service, according to the class of service Bandwidth allocation, send and belong to each service message of the class of service, comprising:
For each class of service, the corresponding grouping of the class of service is arrived into each service message storage for belonging to the class of service In queue;
For each class of service, according to the bandwidth allocation of the class of service, send in the corresponding packet queue of the class of service Message.
6. according to the method described in claim 5, it is characterized in that, described be directed to each class of service, according to the class of service Bandwidth allocation, send the message in the corresponding packet queue of the class of service, comprising:
For each class of service, by the ratio of the bandwidth allocation of the class of service and the preset outlet total bandwidth, as The message of the class of service sends ratio;
For each class of service, the message according to the class of service sends ratio and preset message sending threshold value, and calculating should The message of class of service sends number;
According to the priority of each class of service, number successively is sent to message preceding in the corresponding packet queue of each class of service A service message is sent.
7. a kind of sending device of service message, which is characterized in that described device includes:
Identification module, for identifying the class of service of received each service message according to preset class of service recognition rule;
First determining module determines each class of service for the corresponding relationship according to preset class of service and priority Priority;
Second determining module, for according to the priority, preset outlet total bandwidth and preset bandwidth of each class of service point With algorithm, the bandwidth allocation of each class of service is determined;
Sending module, for being directed to each class of service, according to the bandwidth allocation of the class of service, transmission belongs to the class of service Each service message.
8. device according to claim 7, which is characterized in that second determining module is specifically used for:
For the class of service of each service message, by the sum of the value of the priority of each class of service and the first preset value As the corresponding reference value of the class of service;
Calculate the sum of the reference value of the corresponding reference value of all classs of service;
For each class of service, by the ratio of the sum of the value of the priority of the class of service and the reference value, as the industry The bandwidth ratio for classification of being engaged in;
The service class is calculated according to the bandwidth ratio and preset outlet total bandwidth of the class of service for each class of service Other bandwidth allocation.
9. device according to claim 7, which is characterized in that described device further includes judgment module;The judgment module, For judging whether the total amount of data of currently received service message is greater than preset threshold;If so, triggering the identification module Execute described according to preset class of service recognition rule, the step of identifying the class of service of received each service message.
10. device according to claim 7, which is characterized in that the class of service recognition rule is port identification rule Or payload characteristic recognition rule or statistical flow characteristic recognition rule.
11. device according to claim 7, which is characterized in that the sending module, comprising:
The each service message storage for belonging to the class of service is arrived the business for being directed to each class of service by storage unit In the corresponding packet queue of classification;
Transmission unit, according to the bandwidth allocation of the class of service, sends corresponding point of the class of service for each class of service Message in group queue.
12. device according to claim 11, which is characterized in that the transmission unit is specifically used for:
For each class of service, by the ratio of the bandwidth allocation of the class of service and the preset outlet total bandwidth, as The message of the class of service sends ratio;
For each class of service, the message according to the class of service sends ratio and preset message sending threshold value, and calculating should The message of class of service sends number;
According to the priority of each class of service, number successively is sent to message preceding in the corresponding packet queue of each class of service A service message is sent.
13. a kind of electronic equipment, which is characterized in that including processor and machine readable storage medium, the machine readable storage Media storage has the machine-executable instruction that can be executed by the processor, and the processor is by the machine-executable instruction Promote: realizing any method and step of claim 1-6.
14. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program realizes claim 1-6 any method and step when the computer program is executed by processor.
CN201910390140.7A 2019-05-10 2019-05-10 Service message sending method and device Active CN110138610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910390140.7A CN110138610B (en) 2019-05-10 2019-05-10 Service message sending method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910390140.7A CN110138610B (en) 2019-05-10 2019-05-10 Service message sending method and device

Publications (2)

Publication Number Publication Date
CN110138610A true CN110138610A (en) 2019-08-16
CN110138610B CN110138610B (en) 2022-04-22

Family

ID=67573480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910390140.7A Active CN110138610B (en) 2019-05-10 2019-05-10 Service message sending method and device

Country Status (1)

Country Link
CN (1) CN110138610B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110765059A (en) * 2019-09-29 2020-02-07 苏州浪潮智能科技有限公司 PCIE data priority management method and device
CN111030943A (en) * 2019-12-13 2020-04-17 迈普通信技术股份有限公司 Message processing method and device, forwarding equipment and storage medium
CN112055020A (en) * 2020-09-04 2020-12-08 北京明朝万达科技股份有限公司 Message screening method and device and data transmission system
CN112565108A (en) * 2020-12-07 2021-03-26 中国平安人寿保险股份有限公司 Method, device, equipment and storage medium for controlling service flow
CN113055306A (en) * 2019-12-26 2021-06-29 北京华为数字技术有限公司 Message forwarding method and related equipment
CN113285886A (en) * 2021-06-11 2021-08-20 北京天融信网络安全技术有限公司 Bandwidth allocation method and device, electronic equipment and readable storage medium
CN115002033A (en) * 2022-05-25 2022-09-02 建信金融科技有限责任公司 Flow control method, device, equipment, storage medium and computer product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079501A (en) * 2014-06-05 2014-10-01 深圳市邦彦信息技术有限公司 Queue scheduling method based on multiple priorities
CN105591970A (en) * 2015-08-31 2016-05-18 杭州华三通信技术有限公司 Traffic control method and device
CN105721350A (en) * 2016-03-04 2016-06-29 深圳市共进电子股份有限公司 Intelligent bandwidth allocation method and apparatus
CN108600118A (en) * 2018-03-30 2018-09-28 新华三技术有限公司 Message processing method, device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079501A (en) * 2014-06-05 2014-10-01 深圳市邦彦信息技术有限公司 Queue scheduling method based on multiple priorities
CN105591970A (en) * 2015-08-31 2016-05-18 杭州华三通信技术有限公司 Traffic control method and device
CN105721350A (en) * 2016-03-04 2016-06-29 深圳市共进电子股份有限公司 Intelligent bandwidth allocation method and apparatus
CN108600118A (en) * 2018-03-30 2018-09-28 新华三技术有限公司 Message processing method, device and electronic equipment

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110765059A (en) * 2019-09-29 2020-02-07 苏州浪潮智能科技有限公司 PCIE data priority management method and device
CN111030943A (en) * 2019-12-13 2020-04-17 迈普通信技术股份有限公司 Message processing method and device, forwarding equipment and storage medium
CN113055306A (en) * 2019-12-26 2021-06-29 北京华为数字技术有限公司 Message forwarding method and related equipment
CN113055306B (en) * 2019-12-26 2022-10-28 北京华为数字技术有限公司 Message forwarding method and related equipment
CN112055020A (en) * 2020-09-04 2020-12-08 北京明朝万达科技股份有限公司 Message screening method and device and data transmission system
CN112565108A (en) * 2020-12-07 2021-03-26 中国平安人寿保险股份有限公司 Method, device, equipment and storage medium for controlling service flow
CN112565108B (en) * 2020-12-07 2024-04-05 中国平安人寿保险股份有限公司 Service flow control method, device, equipment and storage medium
CN113285886A (en) * 2021-06-11 2021-08-20 北京天融信网络安全技术有限公司 Bandwidth allocation method and device, electronic equipment and readable storage medium
CN113285886B (en) * 2021-06-11 2021-10-15 北京天融信网络安全技术有限公司 Bandwidth allocation method and device, electronic equipment and readable storage medium
CN115002033A (en) * 2022-05-25 2022-09-02 建信金融科技有限责任公司 Flow control method, device, equipment, storage medium and computer product
CN115002033B (en) * 2022-05-25 2023-06-20 建信金融科技有限责任公司 Flow control method, device, equipment, storage medium and computer product

Also Published As

Publication number Publication date
CN110138610B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN110138610A (en) A kind of sending method and device of service message
CN111769998B (en) Method and device for detecting network delay state
CN103999414B (en) A kind of method and apparatus of attribution for the congestion contribution of the shared resource of relative users register
US9059921B2 (en) Method, network, and computer product for flow based quality of service
CN105556916B (en) The information statistical method and device of network flow
US11165716B2 (en) Data flow processing method and device
CN105337819A (en) Data processing method of broadband access gateway, broadband access gateway and network system
JP2006506845A (en) How to select a logical link for a packet in a router
CN101815032A (en) Method for classifying and isolating information based on integrated network security service architecture
CN112600684B (en) Bandwidth management and configuration method of cloud service and related device
JP2015057931A (en) Network apparatus, communication system, and detection method and program for abnormal traffic
CN110022259A (en) Message arrival rate determines method, apparatus, data statistics server and storage medium
CN107547430A (en) A kind of file transmitting method and device
CN102413051B (en) Method and device for scheduling quality of service (QOS)
CN107846341A (en) Method, relevant apparatus and the system of schedules message
CN107135185A (en) A kind of attack processing method, equipment and system
CN106921534A (en) Data traffic monitoring and managing method and device
Buzhin et al. Evaluation of Telecommunication Equipment Delays in Software-Defined Networks
US11870707B2 (en) Bandwidth management and configuration method for cloud service, and related apparatus
CN113395612A (en) Data forwarding method in optical fiber communication and related device
CN113206794B (en) Forwarding speed limiting method and device
CN110213170A (en) A kind of method and device of message transmissions
CN111262752B (en) In-band telemetry method and device
US7821933B2 (en) Apparatus and associated methodology of processing a network communication flow
CN114827018B (en) SDN route selection method and device based on service class and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant