CN108173776A - Message forwarding method and device, computer readable storage medium - Google Patents
Message forwarding method and device, computer readable storage medium Download PDFInfo
- Publication number
- CN108173776A CN108173776A CN201711454168.XA CN201711454168A CN108173776A CN 108173776 A CN108173776 A CN 108173776A CN 201711454168 A CN201711454168 A CN 201711454168A CN 108173776 A CN108173776 A CN 108173776A
- Authority
- CN
- China
- Prior art keywords
- business
- outgoing interface
- object message
- establishment
- overload
- 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.)
- Pending
Links
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/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application, which provides a kind of message forwarding method and device, computer readable storage medium, this method, to be included:When the outgoing interface overload of the forwarding object message of selection, if the object message belongs to the new business of the outgoing interface, or the affiliated business of object message occupies business for the high bandwidth in the business of establishment of the outgoing interface, then chooses other outgoing interfaces not overloaded and forward the object message;Otherwise, the object message is forwarded by the outgoing interface;Wherein, it is to meet the business of predefined bandwidth condition that the high bandwidth, which occupies business,.By the technical solution of the application, it can effectively alleviate the situation of outgoing interface link congestion so that outgoing interface can be chronically at the state normally forwarded.Meanwhile it is unaffected to ensure that in the outgoing interface that part has created business (i.e. the smaller business of occupied bandwidth), can be normally carried out forwarding.
Description
Technical field
This application involves communication technique field more particularly to a kind of message forwarding method and device, computer-readable storages
Medium.
Background technology
Load-balancing device is based on link actual loading situation and flexible Routing Algorithm, can realize to having more interface band
The balanced of wide resource utilizes.But due to having more the difference of interface link actual bandwidth resource and the routing of practical business flow
Situation often will appear the situation that part outgoing interface link circuit resource reaches saturation.The network flow forwarded on each outgoing interface is
It has certain limitations, when the flow actually forwarded on a certain outgoing interface is more than for a long time limitation, it may appear that the message of part forwarding
Be dropped or be delayed situation about forwarding, so as to which the normal forwarding to network service has an impact.It is traditional at present for the problem
Load-balancing device is each equipped with link overload monitoring mechanism, to ensure that the practical flow forwarded of link does not exceed practical limit
System.The principle of link overload monitoring mechanism is as follows:The network flow of load-balancing device meeting real-time statistics outgoing interface link forwarding
Amount, and make comparisons with the flow threshold of the outgoing interface, if more than the flow threshold, judge that the outgoing interface overloads;So no longer
It is E-Packeted by the outgoing interface, congestion occurs to avoid the outgoing interface.However, load-balancing device is also configured with routing holding
Mechanism, to ensure that the flow for belonging to same business within a certain period of time is forwarded by same outgoing interface.As it can be seen that link surpasses
It carries monitoring mechanism and routing keeps mechanism to there is part conflict.
In the related art, when a certain outgoing interface overloads, by the new business data dispatch on the outgoing interface to other
The outgoing interface not overloaded, and the data (belonging to the business of establishment) forwarded by the outgoing interface yet by the outgoing interface into
Row forwarding, so as to avoid mechanism being kept to clash with routing.However, due to the diversity of network service, business has been created still
It is so likely to be such that the outgoing interface is chronically at overload condition, so as to cause the situation of packet loss or delay, influences on the outgoing interface
All normal forwardings for having created business.
Invention content
In view of this, the application provides a kind of message forwarding method and device, computer readable storage medium, can go out
When interface is in overload condition, the outgoing interface is not being influenced as possible in the case of establishment business, is reducing outgoing interface forwarding
Flow, so as to which the outgoing interface be avoided to be chronically at overload condition.
To achieve the above object, it is as follows to provide technical solution by the application:
According to the first aspect of the application, it is proposed that a kind of message forwarding method, applied to load-balancing device, the side
Method includes:
When the outgoing interface overload of the forwarding object message of selection, if the object message belongs to the newly-built of the outgoing interface
Business or the affiliated business of the object message occupy business for the high bandwidth in the business of establishment of the outgoing interface, then choose
Other outgoing interfaces not overloaded forward the object message;Otherwise, the object message is forwarded by the outgoing interface;Wherein,
It is to meet the business of predefined bandwidth condition that the high bandwidth, which occupies business,.
According to the second aspect of the application, it is proposed that a kind of apparatus for forwarding message, applied to load-balancing device, the dress
Put including:
Retransmission unit, when the outgoing interface overload of the forwarding object message of selection, if the object message belong to it is described go out
The new business of interface or the affiliated business of the object message occupy industry for the high bandwidth in the business of establishment of the outgoing interface
Business then chooses other outgoing interfaces not overloaded and forwards the object message;Otherwise, the target report is forwarded by the outgoing interface
Text;Wherein, it is to meet the business of predefined bandwidth condition that the high bandwidth, which occupies business,.
According to the third aspect of the application, it is proposed that a kind of computer readable storage medium is stored thereon with computer and refers to
It enables, is realized when which is executed by processor such as the step of any one of above-mentioned technical proposal the method.
By above technical scheme as it can be seen that when outgoing interface is in overload condition, the application belongs to the outgoing interface by determining
New business and high bandwidth occupy business (such service traffics occupies the relatively large bandwidth of the outgoing interface, if continuing to lead to
The data that outgoing interface forwarding high bandwidth occupies business are crossed, then will aggravate the situation of overload), and that chooses that other do not overload goes out to connect
Mouth forwarding new business and high bandwidth occupy the message of business, can effectively alleviate the situation of outgoing interface link congestion so that go out
Interface can be chronically at the state normally forwarded.Meanwhile it ensure that part has created business (i.e. occupied bandwidth in the outgoing interface
Smaller business) it is unaffected, it can be normally carried out forwarding.
Description of the drawings
Fig. 1 is the operation principle schematic diagram that routing keeps mechanism.
Fig. 2 is a kind of flow chart of message forwarding method shown in one exemplary embodiment of the application.
Fig. 3 is the flow chart of another message forwarding method shown in one exemplary embodiment of the application.
Fig. 4 is the structure diagram of a kind of electronic equipment shown in one exemplary embodiment of the application.
Fig. 5 is a kind of block diagram of apparatus for forwarding message shown in one exemplary embodiment of the application.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only merely for the purpose of description specific embodiment in term used in this application, and is not intended to be limiting the application.
It is also intended in the application and " one kind " of singulative used in the attached claims, " described " and "the" including majority
Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps
Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from
In the case of the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
Fig. 1 is referred to, Fig. 1 is the operation principle schematic diagram that routing keeps mechanism.As shown in Figure 1, load-balancing device 10
Outgoing interface 30 and outgoing interface 40 (are only shown, the actual bandwidth resource of each outgoing interface circuit is not by a plurality of outgoing interface circuit in figure
It E-Packets to ISP (Internet Service Provider, Internet Service Provider) together).It is assumed that user initiates for the first time
Network service data forwarded from load-balancing device 10 by outgoing interface 30 to ISP, and user subsequently initiates identical network
Business datum (i.e. network purpose is identical) is dispatched to outgoing interface 40 by load-balancing device 10, due to being forwarded by different outgoing interfaces
The source IP address of network data also differ, the data which subsequently forwards are it is possible that can be by server-side (i.e. opposite end
ISP) refusal, then lead to service disconnection.Therefore it needs to keep mechanism by routing so that follow-up identical network service number
According to being forwarded by outgoing interface 30 to ISP, to ensure that the network service is unaffected.
In the related art, when outgoing interface 30 overloads, by the new business data dispatch on outgoing interface 30 to other not
The outgoing interface of overload, and the data (belonging to the business of establishment) forwarded by outgoing interface 30 are carried out yet by outgoing interface 30
Forwarding, so as to avoid mechanism being kept to clash with routing.However, due to the diversity of network service, business has been created still
It is likely to be such that outgoing interface 30 is chronically at overload condition, so as to cause the situation of packet loss or delay, influences institute on outgoing interface 30
There is the normal forwarding of the business of establishment.
Therefore, the application gives by way of to scheduling outgoing interface and improves, above-mentioned present in the relevant technologies to solve
Technical problem.It is described in detail with reference to embodiment.
Fig. 2 is referred to, Fig. 2 is a kind of flow chart of message forwarding method shown in one exemplary embodiment of the application, should
Method is applied to load-balancing device, may comprise steps of:
Step 202, when the outgoing interface of the forwarding object message of selection overloads, go out to connect if the object message belongs to described
The new business or the affiliated business of the object message of mouth occupy industry for the high bandwidth in the business of establishment of the outgoing interface
Business then chooses other outgoing interfaces not overloaded and forwards the object message.
In the present embodiment, when the outgoing interface of the forwarding object message of selection overloads, if object message belongs to newly-built industry
Business (does not keep mechanism to conflict) with routing, then can choose other outgoing interfaces not overloaded and forward the object message, so as to
The flow of the outgoing interface of overload is avoided to continue to increase, alleviates the overload condition of the outgoing interface.If the affiliated business of object message is is somebody's turn to do
High bandwidth in the business of establishment of outgoing interface (the above-mentioned outgoing interface in overload condition) occupies business, and (high bandwidth occupies
Business is to meet the business of predefined bandwidth condition), then it can equally choose other outgoing interface forwarding object messages not overloaded.
Belong to the opposite larger business of occupied bandwidth in all business of the interface since high bandwidth occupies business, by by high bandwidth
The message of occupancy business is forwarded by the interface that other do not overload, can be chronically at overload condition to avoid the outgoing interface of overload;
Meanwhile in addition the message (being influenced on the overload of interface smaller) of the smaller business of opposite occupied bandwidth can normally turn in the interface
Hair, it is unaffected.
Wherein, load-balancing device record is with having the source IP address for having created business and the destination IP of each outgoing interface
Location;It can determine that the object message is directed to the affiliated type of service of the outgoing interface in the following manner:If the target report
Text source IP address and purpose IP address it is identical with the source IP address for having created business and purpose IP address of the outgoing interface or
Person is on the contrary, then the object message belongs to the establishment business of the outgoing interface, and otherwise, the object message belongs to described and goes out to connect
The new business of mouth.Meanwhile the business configuration of establishment of the load-balancing device record has aging duration;It has been created when any
Build in the ageing time of business do not forward belong to it is described it is any created business message when, any business that created is deleted
It removes.
In the present embodiment, it can determine whether the affiliated business of the object message is the outgoing interface in the following manner
The business of establishment in high bandwidth occupy business:First (the overload flow is described to the overload flow of the determining outgoing interface
Beyond the sum of the part of uplink threshold value and the part for exceeding downlink threshold value in downlink traffic in outgoing interface uplink traffic), then press
The business of establishment of the outgoing interface is ranked up according to the sequence of total flow from big to small, each total flow for having created business
It is the sum of respective transmission data and reception data;Choose the establishment industry of the outgoing interface successively further according to the sequence after sequence
Business, until the sum of selected total flow of business is not less than the overload flow.Meet above-mentioned condition (i.e. it is above-mentioned refer to it is pre-
Define bandwidth condition) the business of establishment can be determined as high bandwidth occupy business.Based on the above-mentioned choosing to having created business
It takes, then business can be occupied using the selected business of establishment as the high bandwidth.It specifically, can be in the outgoing interface
When the duration of sustained overload is more than predetermined threshold value, the sorting operation is performed.By setting predetermined threshold value sequence is performed to limit
The frequency of operation, can effectivelying prevent the frequency for performing above-mentioned sorting operation, excessively high (outgoing interface may only in a short time sometimes
In overload condition, and subsequently can soon quick-recovery to normal condition), cause to influence the performance of equipment.It should be noted that work as institute
When the uplink traffic for stating outgoing interface is more than that uplink threshold value or downlink traffic are more than downlink threshold value, the outgoing interface can be judged as surpassing
It carries.
Step 204, otherwise, the object message is forwarded by the outgoing interface.
By above technical scheme as it can be seen that when outgoing interface is in overload condition, the application belongs to the outgoing interface by determining
New business and high bandwidth occupy business (such service traffics occupies the relatively large bandwidth of the outgoing interface, if continuing to lead to
The data that outgoing interface forwarding high bandwidth occupies business are crossed, then will aggravate the situation of overload), and that chooses that other do not overload goes out to connect
Mouth forwarding new business and high bandwidth occupy the message of business, can effectively alleviate the situation of outgoing interface link congestion so that go out
Interface can be chronically at the state normally forwarded.Meanwhile it ensure that part has created business (i.e. occupied bandwidth in the outgoing interface
Smaller business) it is unaffected, it can be normally carried out forwarding.
In order to make it easy to understand, the technical solution of the application is described in detail below in conjunction with the accompanying drawings.
Fig. 3 is referred to, Fig. 3 is the flow chart of another message forwarding method shown in one exemplary embodiment of the application,
This method is applied to load-balancing device, may comprise steps of:
Step 302, object message is received.
Step 304, outgoing interface is chosen.
In the present embodiment, load-balancing device obtains forwarding object message by query routing sub-process and (receives
The message that forwards of needs) outgoing interface.
Step 306, whether the outgoing interface for judging to choose overloads, if overload, is transferred to step 308, is otherwise transferred to step
314。
In the present embodiment, the uplink traffic of each outgoing interface of load-balancing device real-time update (outgoing interface transmission data
Total amount) and downlink traffic (outgoing interface receives the total amount of data), and (be directed to and each go out with corresponding uplink threshold value, downlink threshold value
Interface is equipped with uplink threshold value and downlink threshold value) it is compared;When a certain outgoing interface uplink traffic be more than uplink threshold value or under
When row flow is more than downlink threshold value, at the time of judging the outgoing interface for overload, and record outgoing interface overload at this time, to determine that this goes out
The duration of interface sustained overload.
For example, load-balancing device can safeguard overload dispatch list as shown in Table 1:
Table 1
Step 308, judge whether object message belongs to the new business of selected outgoing interface, if belonging to, be transferred to step
Rapid 312, otherwise it is transferred to step 310.
Step 310, judge the affiliated business of object message whether be outgoing interface the business of establishment in high bandwidth occupy industry
Business occupies business if high bandwidth, is then transferred to step 312, is otherwise transferred to step 314.
In the present embodiment, when the outgoing interface of the forwarding object message of selection overloads, if object message belongs to newly-built industry
Business (does not keep mechanism to conflict) with routing, then can choose other outgoing interfaces not overloaded and forward the object message, so as to
The flow of the outgoing interface of overload is avoided to continue to increase, alleviates the overload condition of the outgoing interface.If the affiliated business of object message is is somebody's turn to do
High bandwidth in the business of establishment of outgoing interface (the above-mentioned outgoing interface in overload condition) occupies business, and (high bandwidth occupies
Business is to meet the business of predefined bandwidth condition), then it can equally choose other outgoing interface forwarding object messages not overloaded.
Belong to the opposite larger business of occupied bandwidth in all business of the interface since high bandwidth occupies business, by by high bandwidth
The message of occupancy business is forwarded by the interface that other do not overload, can be chronically at overload condition to avoid the outgoing interface of overload;
Meanwhile in addition the message (being influenced on the overload of interface smaller) of the smaller business of opposite occupied bandwidth can normally turn in the interface
Hair, it is unaffected.
Specifically, load-balancing device record is with having the source IP address for having created business and the destination IP of each outgoing interface
Location.It can so determine that object message is directed to the affiliated type of service of the outgoing interface in the following manner:If object message
Source IP address and purpose IP address are identical or opposite with the source IP address for having created business and purpose IP address of the outgoing interface
(belonging to same data flow), then object message belong to the establishment business of the outgoing interface, otherwise, object message belongs to this and goes out to connect
The new business of mouth.Meanwhile the business configuration of establishment of load-balancing device record has aging duration;When having created industry any
Do not forwarded in the ageing time of business belong to this it is any created business message when, this of deletion record any has created business.
After determining that object message belongs to establishment business, it can determine whether the affiliated business of object message is that this goes out in the following manner
High bandwidth in the business of establishment of interface occupies business:First (overload flow is outgoing interface to the overload flow of the determining outgoing interface
Beyond the sum of the part of uplink threshold value and the part for exceeding downlink threshold value in downlink traffic in uplink traffic), then according to total stream
The sequence of amount (each total flow for having created business is respective transmission data with receiving the sum of data) from big to small goes out to connect to this
The business of establishment of mouth is ranked up;Choose the establishment business of the outgoing interface, Zhi Daosuo successively further according to the sequence after sequence
The sum of total flow of business of selection is not less than overload flow.Wherein, meet above-mentioned condition and (also predefine bandwidth item
Part) the business of establishment can be determined as high bandwidth occupy business.Based on the above-mentioned selection to having created business, then can be with
Business is occupied using the selected business of establishment as high bandwidth.It should be noted that can outgoing interface sustained overload when
When length is more than predetermined threshold value, sorting operation is performed.The frequency for performing sorting operation, Ke Yiyou are limited by setting predetermined threshold value
Effect prevents the frequency for performing above-mentioned sorting operation, and excessively high (outgoing interface may be only in a short time in overload condition, then sometimes
It is continuous can soon quick-recovery to normal condition), lead to the performance of influence equipment.
For example, load-balancing device can record the practical details to E-Packet of each outgoing interface, and be directed to
Each outgoing interface generation forwarding data details table as shown in Table 2:
Table 2
Wherein, each list item in table 2 can be regarded as having created business.Load-balancing device is passing through a certain outgoing interface
When E-Packeting, the forwarding data details table of the outgoing interface can be traversed, there is identical source IP address with the message when existing
During with the list item of purpose IP address, the data length of the message is added in the transmission data of the list item;When presence and the report
When the source IP address of text, the opposite list item of purpose IP address, the data length of the message is added to the reception data of the list item
In;When there is no there is identical or opposite IP address and purpose IP address with the message, in forwarding data details table
In create a list item to record the details of the message;After cumulative data length or newly-built list item, need to " during update
Between " be updated.For example, load-balancing device is E-Packeted by outgoing interface Gige_1 (it is assumed that table 2 is the forwarding of the outgoing interface
Data details table), if the source IP address of the message is 1.1.1.1, purpose IP address 202.1.1.1, then in list item 1
The data length of the cumulative message in " transmission data " of (list item of serial number 1), and update " renewal time ";If the message
Source IP address is 202.1.1.1, and purpose IP address is 1.1.1.1 (response message for receiving opposite end return), then in list item 1
" receive data " in add up the data length of the message, and update " renewal time ".And it is each equipped with always for each list item
Change duration, when any list item does not update in the aging duration of the list item, delete the list item.
Based on the above-mentioned configuration to overload dispatch list and forwarding data details table, connect being selected by step 304
After mouthful, dispatch list can be overloaded by inquiry to determine whether selected outgoing interface overloads, if not overloading, will directly be received
To object message be forwarded by the outgoing interface;Otherwise, it needs further detailed by inquiring the forwarding data of the outgoing interface
Thin information table determines whether object message belongs to whether new business and its affiliated business are that high bandwidth occupies business.Its
In, it, can if there is the source IP address and purpose IP address identical or opposite with object message in forwarding data details table
To determine that object message belongs to the establishment business of selected outgoing interface, then needs further determine whether to occupy for high bandwidth
Business;Otherwise, it may be determined that object message belongs to new business, then directly trigger again routing sub-process to choose other not
The outgoing interface forwarding object message of overload.For example, the source IP address of object message is 1.1.1.3, purpose IP address is
202.1.1.3, it is that (it is assumed that predetermined threshold value is 3min, i.e., the outgoing interface persistently surpasses Gige_2 by the outgoing interface that step 304 is chosen
The duration of load is more than predetermined threshold value;Meanwhile the affiliated business of object message is included in the business of establishment of the outgoing interface).So, go out
The overload flow of interface Gige_2 is 50MB.Since the duration of outgoing interface Gige_2 sustained overloads is more than predetermined threshold value, triggering pair
The sorting operation of the list item of the forwarding data details table of outgoing interface Gige_2.It is assumed that the sequence according to total flow from big to small
The list item (having created business) of outgoing interface Gige_2 is ranked up, the sum of total flow of preceding 10 list items is obtained and is not less than
50MB;Can so choose preceding 10 list items it is corresponding created business as high bandwidth occupy business, that is, sort after before
" the overload scheduling " of 10 list items is "Yes".If the affiliated business of object message (the establishment business for outgoing interface Gige_2)
When " overload scheduling " is "Yes" (as ranking occupies business positioned at preceding 10 high bandwidth), then routing sub-process is triggered again to select
Take the outgoing interface forwarding object message that other do not overload;Otherwise, object message is forwarded yet by outgoing interface Gige_2.Certainly, originally
Determining for business is occupied for high bandwidth in application, other modes can also be used:For example, default ranking is chosen after sorted
It has created business and has occupied business as high bandwidth;As long as it can determine to occupy band to be opposite in all business of establishment of outgoing interface
Wide larger business, the application are limited not to this.
Step 312, other outgoing interface forwarding object messages not overloaded are chosen again.
Step 314, object message is forwarded by selected outgoing interface.
It should be noted that the specific value of the parameters such as predetermined threshold value, aging duration can be according to actual conditions in the application
Flexibly setting, the application are limited not to this.
By above technical scheme as it can be seen that when outgoing interface is in overload condition, the application belongs to the outgoing interface by determining
New business and high bandwidth occupy business (such service traffics occupies the relatively large bandwidth of the outgoing interface, if continuing to lead to
The data that outgoing interface forwarding high bandwidth occupies business are crossed, then will aggravate the situation of overload), and that chooses that other do not overload goes out to connect
Mouth forwarding new business and high bandwidth occupy the message of business, can effectively alleviate the situation of outgoing interface link congestion so that go out
Interface can be chronically at the state normally forwarded.Meanwhile it ensure that part has created business (i.e. occupied bandwidth in the outgoing interface
Smaller business) it is unaffected, it can be normally carried out forwarding.
Fig. 4 shows the structure diagram of the electronic equipment of the exemplary embodiment according to the application.It please refers to Fig.4,
In hardware view, which includes processor 402, internal bus 404, network interface 406, memory 408 and non-volatile
Property memory 410, is also possible that the required hardware of other business certainly.Processor 402 is from nonvolatile memory 410
It reads in corresponding computer program to memory 408 and then runs, apparatus for forwarding message is formed on logic level.Certainly, it removes
Except software realization mode, other realization methods, such as the side of logical device or software and hardware combining is not precluded in the application
Formula etc., that is to say, that the executive agent of following process flow is not limited to each logic unit or hardware or patrols
Collect device.
Fig. 5 is please referred to, in Software Implementation, which can include retransmission unit 501.Wherein:
Retransmission unit 501, when the outgoing interface overload of the forwarding object message of selection, if the object message belongs to described
The new business of outgoing interface or the affiliated business of the object message are occupied for the high bandwidth in the business of establishment of the outgoing interface
Business then chooses other outgoing interfaces not overloaded and forwards the object message;Otherwise, the target is forwarded by the outgoing interface
Message;Wherein, it is to meet the business of predefined bandwidth condition that the high bandwidth, which occupies business,.
Optionally, the load-balancing device record has the source IP address and destination IP that have created business of each outgoing interface
Address;Determine that the object message is directed to the affiliated type of service of the outgoing interface in the following manner:
If the source IP address and purpose IP address of the object message are with the source IP for having created business of the outgoing interface
Location is identical with purpose IP address or on the contrary, then the object message belongs to the establishment business of the outgoing interface, otherwise, described
Object message belongs to the new business of the outgoing interface.
Optionally, the business configuration of establishment of the load-balancing device record has aging duration;It has been created when any
Do not forwarded in the ageing time of business belong to it is described it is any created business message when, any business that created is deleted
It removes.
Optionally, in the following manner determine the affiliated business of object message whether be the outgoing interface establishment industry
High bandwidth in business occupies business:
Determine the overload flow of the outgoing interface, the overload flow is exceeds uplink threshold in the outgoing interface uplink traffic
The sum of the part of the part of value with exceeding downlink threshold value in downlink traffic;
The business of establishment of the outgoing interface is ranked up according to the sequence of total flow from big to small, it is each to have created industry
The total flow of business is respective transmission data with receiving the sum of data;
The establishment business of the outgoing interface is chosen successively according to sorted order, until total stream of selected business
The sum of amount is not less than the overload flow;
Business is occupied using the selected business of establishment as the high bandwidth.
Optionally, when the duration of the outgoing interface sustained overload is more than predetermined threshold value, the sorting operation is performed;Its
In, when the uplink traffic of the outgoing interface is more than uplink threshold value or downlink traffic is more than downlink threshold value, the outgoing interface is judged to
It is set to overload.
The function of each unit and the realization process of effect specifically refer to and step are corresponded in the above method in above device
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related part is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separate, and the component shown as unit can be or can also
It is not physical unit, you can be located at a place or can also be distributed in multiple network element.It can be according to reality
It needs that some or all of module therein is selected to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory of instruction, above-metioned instruction can be performed to complete the above method, this method by the processor of apparatus for forwarding message
It can include:
When the outgoing interface overload of the forwarding object message of selection, if the object message belongs to the newly-built of the outgoing interface
Business or the affiliated business of the object message occupy business for the high bandwidth in the business of establishment of the outgoing interface, then choose
Other outgoing interfaces not overloaded forward the object message;Otherwise, the object message is forwarded by the outgoing interface;Wherein,
It is to meet the business of predefined bandwidth condition that the high bandwidth, which occupies business,.
Optionally, the load-balancing device record has the source IP address and destination IP that have created business of each outgoing interface
Address;Determine that the object message is directed to the affiliated type of service of the outgoing interface in the following manner:
If the source IP address and purpose IP address of the object message are with the source IP for having created business of the outgoing interface
Location is identical with purpose IP address or on the contrary, then the object message belongs to the establishment business of the outgoing interface, otherwise, described
Object message belongs to the new business of the outgoing interface.
Optionally, the business configuration of establishment of the load-balancing device record has aging duration;It has been created when any
Do not forwarded in the ageing time of business belong to it is described it is any created business message when, any business that created is deleted
It removes.
Optionally, in the following manner determine the affiliated business of object message whether be the outgoing interface establishment industry
High bandwidth in business occupies business:
Determine the overload flow of the outgoing interface, the overload flow is exceeds uplink threshold in the outgoing interface uplink traffic
The sum of the part of the part of value with exceeding downlink threshold value in downlink traffic;
The business of establishment of the outgoing interface is ranked up according to the sequence of total flow from big to small, it is each to have created industry
The total flow of business is respective transmission data with receiving the sum of data;
The establishment business of the outgoing interface is chosen successively according to sorted order, until total stream of selected business
The sum of amount is not less than the overload flow;
Business is occupied using the selected business of establishment as the high bandwidth.
Optionally, when the duration of the outgoing interface sustained overload is more than predetermined threshold value, the sorting operation is performed;Its
In, when the uplink traffic of the outgoing interface is more than uplink threshold value or downlink traffic is more than downlink threshold value, the outgoing interface is judged to
It is set to overload.
Wherein, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-
ROM, tape, floppy disk and optical data storage devices etc., the application is limited not to this.
The foregoing is merely the preferred embodiment of the application, not limiting the application, all essences in the application
God and any modification, equivalent substitution, improvement and etc. within principle, done, should be included within the scope of the application protection.
Claims (11)
1. a kind of message forwarding method, which is characterized in that applied to load-balancing device, the method includes:
When the outgoing interface overload of the forwarding object message of selection, if the object message belongs to the newly-built industry of the outgoing interface
Business or the affiliated business of the object message occupy business for the high bandwidth in the business of establishment of the outgoing interface, then choose it
The outgoing interface that he does not overload forwards the object message;Otherwise, the object message is forwarded by the outgoing interface;Wherein, institute
It is to meet the business of predefined bandwidth condition to state high bandwidth and occupy business.
2. according to the method described in claim 1, it is characterized in that, load-balancing device record has had each outgoing interface
The source IP address and purpose IP address of establishment business;Determine that the object message is directed to the institute of the outgoing interface in the following manner
Belong to type of service:
If the source IP address for having created business of the source IP address and purpose IP address of the object message and the outgoing interface and
Purpose IP address is identical or on the contrary, then the object message belongs to the establishment business of the outgoing interface, otherwise, the target
Message belongs to the new business of the outgoing interface.
3. the according to the method described in claim 2, it is characterized in that, establishment business configuration of load-balancing device record
There is aging duration;Belong to any message for having created business when not forwarded in any ageing time for having created business
When, any business that created is deleted.
4. according to the method described in claim 1, it is characterized in that, the affiliated business of object message is determined in the following manner
Whether be the outgoing interface the business of establishment in high bandwidth occupy business:
Determine the overload flow of the outgoing interface, the overload flow is exceeds uplink threshold value in the outgoing interface uplink traffic
The sum of the part of part with exceeding downlink threshold value in downlink traffic;
According to the sequence of total flow from big to small the business of establishment of the outgoing interface is ranked up, each business that created
Total flow is respective transmission data with receiving the sum of data;
Choose the establishment business of the outgoing interface successively according to sorted order, until selected business total flow it
With not less than the overload flow;
Business is occupied using the selected business of establishment as the high bandwidth.
5. according to the method described in claim 4, it is characterized in that, the duration in the outgoing interface sustained overload is more than default threshold
During value, the sorting operation is performed;Wherein, under the uplink traffic of the outgoing interface is more than uplink threshold value or downlink traffic is more than
During row threshold value, the outgoing interface is judged as overloading.
6. a kind of apparatus for forwarding message, which is characterized in that applied to load-balancing device, described device includes:
Retransmission unit, when the outgoing interface overload of the forwarding object message of selection, if the object message belongs to the outgoing interface
New business or the affiliated business of the object message for the outgoing interface the business of establishment in high bandwidth occupy business,
It then chooses other outgoing interfaces not overloaded and forwards the object message;Otherwise, the object message is forwarded by the outgoing interface;
Wherein, it is to meet the business of predefined bandwidth condition that the high bandwidth, which occupies business,.
7. device according to claim 6, which is characterized in that the load-balancing device record has had each outgoing interface
The source IP address and purpose IP address of establishment business;Determine that the object message is directed to the institute of the outgoing interface in the following manner
Belong to type of service:
If the source IP address for having created business of the source IP address and purpose IP address of the object message and the outgoing interface and
Purpose IP address is identical or on the contrary, then the object message belongs to the establishment business of the outgoing interface, otherwise, the target
Message belongs to the new business of the outgoing interface.
8. device according to claim 7, which is characterized in that the establishment business configuration of the load-balancing device record
There is aging duration;Belong to any message for having created business when not forwarded in any ageing time for having created business
When, any business that created is deleted.
9. device according to claim 6, which is characterized in that determine the affiliated business of object message in the following manner
Whether be the outgoing interface the business of establishment in high bandwidth occupy business:
Determine the overload flow of the outgoing interface, the overload flow is exceeds uplink threshold value in the outgoing interface uplink traffic
The sum of the part of part with exceeding downlink threshold value in downlink traffic;
According to the sequence of total flow from big to small the business of establishment of the outgoing interface is ranked up, each business that created
Total flow is respective transmission data with receiving the sum of data;
Choose the establishment business of the outgoing interface successively according to sorted order, until selected business total flow it
With not less than the overload flow;
Business is occupied using the selected business of establishment as the high bandwidth.
10. device according to claim 9, which is characterized in that in the duration of the outgoing interface sustained overload be more than default
During threshold value, the sorting operation is performed;Wherein, when the uplink traffic of the outgoing interface is more than more than uplink threshold value or downlink traffic
During downlink threshold value, the outgoing interface is judged as overloading.
11. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor
It is realized during execution such as the step of any one of claim 1-5 the methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711454168.XA CN108173776A (en) | 2017-12-28 | 2017-12-28 | Message forwarding method and device, computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711454168.XA CN108173776A (en) | 2017-12-28 | 2017-12-28 | Message forwarding method and device, computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108173776A true CN108173776A (en) | 2018-06-15 |
Family
ID=62518914
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711454168.XA Pending CN108173776A (en) | 2017-12-28 | 2017-12-28 | Message forwarding method and device, computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108173776A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111131060A (en) * | 2019-12-23 | 2020-05-08 | 瑞斯康达科技发展股份有限公司 | Burst message processing method and device, electronic equipment and computer storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101022413A (en) * | 2007-03-26 | 2007-08-22 | 杭州华为三康技术有限公司 | Load equalizing method and route server |
CN103297347A (en) * | 2013-05-15 | 2013-09-11 | 杭州华三通信技术有限公司 | Load balance processing method and device |
CN103346971A (en) * | 2013-06-19 | 2013-10-09 | 华为技术有限公司 | Data forwarding method, controller, forwarding device and system |
CN103491020A (en) * | 2013-09-23 | 2014-01-01 | 迈普通信技术股份有限公司 | Load balancing method and device of multilink bound with different bandwidths |
US9417942B1 (en) * | 2012-03-29 | 2016-08-16 | Emc Corporation | Event-based in-band host registration |
US20170302560A1 (en) * | 2012-11-29 | 2017-10-19 | Futurewei Technologies, Inc. | Transformation and Unified Control of Hybrid Networks Composed of OpenFlow Switches and Other Programmable Switches |
-
2017
- 2017-12-28 CN CN201711454168.XA patent/CN108173776A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101022413A (en) * | 2007-03-26 | 2007-08-22 | 杭州华为三康技术有限公司 | Load equalizing method and route server |
US9417942B1 (en) * | 2012-03-29 | 2016-08-16 | Emc Corporation | Event-based in-band host registration |
US20170302560A1 (en) * | 2012-11-29 | 2017-10-19 | Futurewei Technologies, Inc. | Transformation and Unified Control of Hybrid Networks Composed of OpenFlow Switches and Other Programmable Switches |
CN103297347A (en) * | 2013-05-15 | 2013-09-11 | 杭州华三通信技术有限公司 | Load balance processing method and device |
CN103346971A (en) * | 2013-06-19 | 2013-10-09 | 华为技术有限公司 | Data forwarding method, controller, forwarding device and system |
CN103491020A (en) * | 2013-09-23 | 2014-01-01 | 迈普通信技术股份有限公司 | Load balancing method and device of multilink bound with different bandwidths |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111131060A (en) * | 2019-12-23 | 2020-05-08 | 瑞斯康达科技发展股份有限公司 | Burst message processing method and device, electronic equipment and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11057287B2 (en) | Systems and methods for setting a rate limit for a computing device | |
US20170048148A1 (en) | Method, apparatus, and system for load balancing of service chain | |
US9258247B2 (en) | Method and apparatus for load sharing | |
CN101106518B (en) | Service denial method for providing load protection of central processor | |
CN103297347B (en) | A kind of load balance process method and device | |
US10135736B1 (en) | Dynamic trunk distribution on egress | |
US10270693B2 (en) | Method and system for managing network communications | |
CA3076119C (en) | Packet transmission method and apparatus | |
CN101547159A (en) | Method and device for preventing network congestion | |
JP4452176B2 (en) | Load balancing in data networks | |
CN113746743A (en) | Data message transmission method and device | |
EP3186927B1 (en) | Improved network utilization in policy-based networks | |
CN112532594B (en) | Method and device for creating aggregation group and forwarding message | |
CN108173776A (en) | Message forwarding method and device, computer readable storage medium | |
CN101909005A (en) | Method and device for processing forwarding table | |
JP3560552B2 (en) | Method and apparatus for preventing a flood attack on a server | |
US10965585B2 (en) | Method for transmitting path load information and network node | |
CN109661037A (en) | A kind of SFC message forwarding method and equipment | |
CN107483334B (en) | Message forwarding method and device | |
CN110300069B (en) | Data transmission method, optimization device and system | |
CN112311678B (en) | Method and device for realizing message distribution | |
CN103428295A (en) | Method and system for monitoring P2P network application | |
Han et al. | A fine-grain partial MAC virtualization to support cross layer design in wireless ad hoc networks | |
US20220353198A1 (en) | Forwarding Information Obtaining Method and Apparatus | |
JP2019521609A (en) | Method and device for obtaining path information of data packet |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180615 |
|
RJ01 | Rejection of invention patent application after publication |