CN102170394A - Method and apparatus for message forwarding - Google Patents

Method and apparatus for message forwarding Download PDF

Info

Publication number
CN102170394A
CN102170394A CN2011100977535A CN201110097753A CN102170394A CN 102170394 A CN102170394 A CN 102170394A CN 2011100977535 A CN2011100977535 A CN 2011100977535A CN 201110097753 A CN201110097753 A CN 201110097753A CN 102170394 A CN102170394 A CN 102170394A
Authority
CN
China
Prior art keywords
interface
message
optimizes
described message
business
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
CN2011100977535A
Other languages
Chinese (zh)
Other versions
CN102170394B (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 Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201110097753.5A priority Critical patent/CN102170394B/en
Publication of CN102170394A publication Critical patent/CN102170394A/en
Application granted granted Critical
Publication of CN102170394B publication Critical patent/CN102170394B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This invention discloses a method and an apparatus for message forwarding and is applicable to IP packet network. The method comprises the following steps of: a compulsive or suggestive preferred outbound interface being set for a message by router equipment according to the business requirement of present business application; while forwarding the message via the router device, if a compulsive preferred outbound interface is judged to be set for the message, inquiring a forwarding list according to the target IP address of the message, and if the outbound interfaces corresponding to target IP address contain the compulsive preferred interface according to the inquiring, then forwarding the message according to the inquired outbound interface, otherwise, giving up the forwarding of the message; if the suggestive preferred outbound interface is judged to be set for the message, inquiring the forwarding list according to the target IP address of the message, and if the outbound interfaces corresponding to target IP address contain the suggestive preferred interface according to the inquiring, forwarding the message according to the inquired outbound interface; otherwise, forwarding the message according to default route forwarding strategies. By employing this invention, the flexibility and scalability of the equivalent routing load sharing mechanism can be improved.

Description

A kind of message forwarding method and device thereof
Technical field
The present invention relates to communication technical field, relate in particular to a kind of message forwarding method and device thereof.
Background technology
Equal-cost route is meant that pointing to same prefix in same system exists many next that come into force simultaneously to jump, and can be used for the flow of going to this prefix overlay address is transmitted respectively, reaches the purpose of effectively utilizing Internet resources.
Generally speaking, no matter flow from which next redirect is sent out, and all can arrive target device.Sharing of load is to occur in the 3rd layer, and be transparent to upper-layer service to the routing processing of message, but need under the particular case load balancing of flow is carried out certain limitation, otherwise can cause assignment of traffic unreasonable, even professional unavailable.Owing to networking and the professional problem that produces that cooperates, can be referred to as " equal-cost route under the professional relevant environment is used " to this type of.
Wherein, have a kind of scene need guarantee that Inside to OutSide (being that internal network is to external network) flow uses identical outgoing interface (or next jumping) with OutSide to Inside (external network is to the internal network) flow that takes place before, such scene belongs to professional available class scene.
Fig. 1 shows the group-network construction of the available class scene of a kind of business.Wherein, Intranet WEB server is to two ISP (Internet Service Provider, ISP) external user provides WEB service, on two outgoing interfaces of router, used NAT (Network Address Translation respectively, network address translation) function is used for the outer net address of the different WEB server that is distributed on ISP is shone upon.There is default route of equal value on the router, points to the corresponding outgoing interface of ISP A and ISP B respectively.
Above-mentioned networking requirement enters the service traffics of Intranet from ISP A interface, and its reverse flow need be transmitted through identical ISP.This is that ISP can open reverse address at network edge usually and resolve (uRPF), abandons the message that the source does not belong to this ISP because on the one hand; On the other hand, if reverse flow (being Inside to OutSide) uses different source addresses to carry out SNAT (Source Network Address Translation, the source address conversion), need the application of opposing traffic can cause upper-layer service unavailable for great majority.
Another kind of scene need guarantee according to the source IP address of internal user Inside to Outside flow to be carried out load balancing based on link-quality, and such scene belongs to bandwidth optimization class scene.
Fig. 2 shows a kind of group-network construction of bandwidth optimization class scene.Wherein, in order to make full use of the bandwidth of two ISP circuits renting, with the flow of internal user equal-cost route load balancing principle, according to source IP, be distributed on two ISP circuit Line1 and the Line2 according to the bandwidth ratio based on the user.Connective angle from three layers, any link all can be realized the service traffics forwarding, but be based on specific needs, as make full use of bandwidth, guarantee to allow the fixing nat address pool of outgoing interface of using of different users carry out SNAT, the message of guaranteeing identical sources IP is transmitted from fixing ISP circuit and is just become meaningful.
By scene illustrated in figures 1 and 2 as can be seen, consider the interface selection for availability of traffics influence under two kinds of scenes, scene shown in Figure 1 is and the NAT strong correlation that it also is strong correlation that docking port is selected, and selects mistake then professional obstructed; Scene shown in Figure 2 and NAT are weak relevant, and it also is weak relevant that docking port is selected, and for homogeneous turbulence not, need only all stream packets and have used identical outgoing interface then professional available.
For the available class scene of aforesaid business, use the incoming interface of original flow to transmit for satisfying reverse flow (Inside to Outside), there are two kinds of solutions at present:
Scheme one, professional flow to Outside to Inside are preserved last one and are jumped.A last hop-information of preserving comprises two layers of packaging information of message incoming interface, message, message for the Inside to Outside flow that belongs to correspondence is discerned, and when transmitting, skip normal routing, the packaging information of preserving before directly using encapsulates message, and sends according to the incoming interface of preserving.
The mode of scheme two, the reverse interface strategy route of employing coupling.This scheme and scheme one are similar, the professional incoming interface of preserving Outside to Inside message, for belonging to corresponding Inside to OutSide message, mate by the reverse flow incoming interface and the reverse interface of configuration of tactful route, if unanimity then transmit by this interface to message.
For aforesaid bandwidth optimization class scene, need newly-increased module, be used for distributing interface and record according to the source IP address of message, for follow-up flow, as long as mated the source IP address of record, then the outgoing interface from this record sends.If cooperate NAT, there is manufacturer to use viscosity IP address to guarantee that identical sources IP uses identical address pond (Juniper SreenOS:set dip sticky) at present, but do not guarantee that outgoing interface is identical, there is certain limitation.
The solution of above-mentioned two class scenes the common problem that exists comprise:
(1) business is preserved voluntarily and is transmitted and packaging information, and very flexible can't make full use of the support that forwarding base facility (comprise transmit, list item and forwarding strategy based on this such as adjacency list) provides; Carry out by oneself existing under the situation of multiple Linktype, its retractility is not enough.In addition, for the system that needs hardware supports, because of some professional specific (special) requirements, its forwarding of flow path may be inconsistent with the forward-path of other service traffics, thereby might need to forge voluntarily hardware table item and issue hardware and this list item is safeguarded, of a high price.
(2) owing in the solution of forwarding and related service, introduced tactful route, the scheme complexity is increased, also increased user's configuration effort amount, and hardware is transmitted the flexible and changeable forwarding strategy setting of the difficult support of product of form, and the processing of using hardware-accelerated this type of business is caused difficulty.
In addition, for the solution under the bandwidth optimization class scene, it organizes the forwarding process level of abstraction not enough voluntarily, not with other business, effectively cooperate as NAT, isolated carry out the timeliness that load balancing may influence the NAT business, transmit such as incoming interface not from reverse flow, and send, thereby cause the problems referred to above (1) from interface according to bandwidth calculation.
This shows that existing equal-cost route load balancing mechanism very flexible, retractility are poor, and can not well support the different system performance.
Summary of the invention
The invention provides a kind of message forwarding method and device thereof, to improve the flexibility and the retractility of equal-cost route load balancing mechanism.
Message forwarding method provided by the invention is applied to the IP packet network, comprising:
The business demand that routing device is used according to current business optimizes interface for the message setting, and the described interface that optimizes is that pressure optimizes interface or suggestion optimizes interface;
When described routing device is transmitted described message, if being judged as described message is provided with and forces to optimize interface, when then described routing device is transmitted according to the purpose IP address lookup of described message, optimize interface as if the pressure that comprises promising described message setting in the outgoing interface that inquires described purpose IP address correspondence, then transmit described message according to the outgoing interface that inquires; Otherwise, abandon transmitting described message;
If being judged as described message is provided with suggestion and optimizes interface, when then described routing device is transmitted according to the purpose IP address lookup of described message, optimize interface as if the suggestion that comprises promising described message setting in the outgoing interface that inquires described purpose IP address correspondence, then transmit described message according to the outgoing interface that inquires; Otherwise, transmit described message according to the default route forwarding strategy.
In the said method, described routing device comprises for the message setting optimizes the process of interface:
The current service application of described routing device judges whether that the service application of higher priority optimizes interface for described message being provided with;
If the service application that then keeps this higher priority is the interface that optimizes of described message setting, otherwise, for described message setting optimizes interface.
In the said method, described routing device comprises for the message setting optimizes the process of interface:
The current service application of described routing device judges whether and need optimize interface for described message setting, and be judged as under the situation that is, the service application that judges whether higher priority optimizes interface for described message being provided with, if there is the service application of higher priority to optimize interface for described message being provided with, the service application that then keeps this higher priority is the interface that optimizes of described message setting, otherwise, for described message setting optimizes interface.
In the said method, the business demand that described routing device is used according to current business comprises for the message setting optimizes interface:
The business demand that current business is used for need to guarantee internal network to external network traffic with the external network that takes place before during to internal network flow use same-interface, current business is applied as message and is provided with and forces to optimize interface, and it is the incoming interface of described external network to the internal network flow that this pressure optimizes interface; Perhaps
The business demand that current business is used for need to guarantee according to the source IP address of internal user to internal network when external network traffic is carried out load balancing based on link-quality, current business is applied as message and suggestion is set optimizes interface, and this suggestion optimizes the outgoing interface that interface is a current business session first packet.
Routing device provided by the invention is applied to the IP packet network, comprising:
Business application module is used for optimizing interface according to the business demand that current business is used for the message setting, and the described interface that optimizes is that pressure optimizes interface or suggestion optimizes interface;
Forwarding module, be used for when transmitting described message, if being judged as described message is provided with and forces to optimize interface, when then transmitting according to the purpose IP address lookup of described message, optimize interface as if the pressure that comprises promising described message setting in the outgoing interface that inquires described purpose IP address correspondence, then transmit described message according to the outgoing interface that inquires; Otherwise, abandon transmitting described message; If being judged as described message is provided with suggestion and optimizes interface, when then transmitting according to the purpose IP address lookup of described message, optimize interface as if the suggestion that comprises promising described message setting in the outgoing interface that inquires described purpose IP address correspondence, then transmit described message according to the outgoing interface that inquires; Otherwise, transmit described message according to the default route forwarding strategy.
In the above-mentioned routing device, described business application module specifically is used for, and judges whether that the business application module of higher priority optimizes interface for described message being provided with; If the service application that then keeps this higher priority is the interface that optimizes of described message setting, otherwise, for described message setting optimizes interface.
In the above-mentioned routing device, described business application module specifically is used for, judge whether and to optimize interface for described message setting, and be judged as under the situation that is, the service application that judges whether higher priority optimizes interface for described message being provided with, if there is the service application of higher priority to optimize interface for described message being provided with, the service application that then keeps this higher priority is the interface that optimizes of described message setting, otherwise, for described message setting optimizes interface.
In the above-mentioned routing device, described business application module specifically is used for, the business demand that current business is used for need to guarantee internal network to external network traffic with the external network that takes place before during to internal network flow use same-interface, force to optimize interface for message is provided with, it is the incoming interface of described external network to the internal network flow that this pressure optimizes interface; Perhaps,
The business demand that current business is used for need to guarantee according to the source IP address of internal user to internal network when external network traffic is carried out load balancing based on link-quality, optimize interface for message is provided with suggestion, this suggestion optimizes the outgoing interface that interface is a current business session first packet.
Useful technique effect of the present invention comprises:
Routing device is that message is provided with and forces to optimize interface or suggestion optimizes interface according to business demand; When forcing to optimize the message routing of interface for being provided with, existence and pressure optimize the identical exit port of interface, then E-Packet according to the outgoing interface that inquires, otherwise dropping packets, promptly in strict accordance with forcing to optimize the interface routing; When optimizing the interface routing for being provided with suggestion, range of choice expands the default route forwarding strategy to, and the default route forwarding strategy can be taken equal-cost route into account usually usually, promptly has the acquiescence routing engine to be made as to replenish and selects.As can be seen, on the one hand, introduced professional tendentiousness, can satisfy the different business demand, improved the flexibility of equal-cost route load balancing mechanism by optimizing interface; On the other hand, compared with prior art, do not need each service application to organize forwarding-table item voluntarily, avoided the restriction of hard-wired forwarding mechanism to a certain extent, improved equal-cost route load balancing mechanism retractility.
Description of drawings
Fig. 1 is the group-network construction schematic diagram of professional available class scene in the prior art;
Fig. 2 is the group-network construction schematic diagram of bandwidth optimization class scene in the prior art;
The overall procedure schematic diagram that Fig. 3 transmits for the message that the embodiment of the invention provides;
Fig. 4 is provided with the schematic flow sheet that message optimizes interface for what the embodiment of the invention provided;
The message forwarding process schematic diagram that Fig. 5 provides for the embodiment of the invention;
The structural representation of the routing device that Fig. 6 provides for the embodiment of the invention.
Embodiment
The problems referred to above at the prior art existence; the embodiment of the invention provides a kind of message to transmit scheme; thereby existing equal-cost route load balancing mechanism is improved; can setting optimizes interface to message before transmitting routing by business; thereby make routing device interface that optimizes according to this message when selecting to transmit route carry out routing, to satisfy service needed for message.
Below in conjunction with accompanying drawing the embodiment of the invention is described in detail.
As shown in Figure 3, the embodiment of the invention requires to be deployed in upper-layer service on the routing device and uses (as NAT module or other service module, as load balancing module etc.) and increase the function (step 301) that optimizes interface that message is set.Accordingly, the forwarding module that the embodiment of the invention requires routing device is when being provided with the message that optimizes interface and selecting route, carries out routing and transmits (step 302) according to the interface that optimizes of this message.Optimize interface and can comprise two types, a kind of is to force to optimize interface, and another kind is that suggestion optimizes interface.For forcing to optimize interface, routing device if inquire the route of this outgoing interface, then according to this message of routing forwarding that inquires, otherwise abandons this message when carrying out routing for E-Packeting.Optimize interface for suggestion, routing device if inquire the route of this outgoing interface, then according to this message of routing forwarding of inquiring, otherwise is selected other route for this message when carrying out routing for E-Packeting.
Further, in order preferentially to satisfy the demand of the high service application of priority, service application can optimize for the message setting in the process of interface, judge whether that at first the service application than own higher priority is that message being provided with optimizes interface, if service application than own higher priority is arranged for message being provided with optimizes interface, then no longer resets and optimize interface for this message; Otherwise, for this message setting optimizes interface.Like this, can use the interface that optimizes that is provided with according to high-priority service and carry out the message forwarding, thereby preferentially satisfy the high-priority service demands of applications, guarantee professional reasonability.
Service application can optimize interface type and outgoing interface for what the message setting adapted according to business demand.Concrete, for the available class scene of aforesaid business, use identical outgoing interface owing to will guarantee Inside to OutSide flow with the OutSide to Inside flow that takes place before, therefore service application is identical with the incoming interface of Outside to Inside flow to the outgoing interface of Inside to Outside flow set, service application setting this moment be that pressure optimizes interface; For aforesaid optimized broadband class scene, owing to will guarantee Inside to Outside flow to be carried out load balancing based on link-quality according to the source IP address of internal user, therefore service application can optimize interface according to the outgoing interface setting of the first packet of the conversation recording of NAT module, promptly, optimize interface and be set to the outgoing interface of the first packet of corresponding session, and the type that optimizes interface is set to suggestion and optimizes interface.
Usually, three of message layers of forwarding are handled and are comprised three phases:
Phase I: (comprise the uplink service processing) processing stage of up;
Second stage: (realize that by looking into fib table wherein FIB is the english abbreviation of Forward Information Base, promptly transmits usually) processing stage of the routing device routing;
Phase III: downlink processing stage (comprising that industry is handled down).
Above three phases is carried out in proper order, thereby finishes every function of three layers of forwarding of message.
The embodiment of the invention relates to the processing of above-mentioned phase I and second stage, wherein, optimize the setting of interface based on strategy by service application in the up stage, this is provided with the Route Selection that the result will influence second stage, in other words, the output of phase I can be used as the part of the input of second stage.
Below in conjunction with accompanying drawing the embodiment of the invention is explained in further detail.
Referring to Fig. 4, the service application that provides for the embodiment of the invention is provided with the schematic flow sheet that message optimizes interface.As shown in the figure, this flow process can comprise:
Step 401, service application is carried out Business Processing to message.
Concrete, for the NAT module is an example, the NAT module that is deployed on the routing device outgoing interface is carried out conventional message traffic processing, as carries out address transition with the service application.
Step 402, service application judge whether message is provided with and optimize interface that optimize interface if be provided with, then execution in step 403; Otherwise execution in step 404.
Concrete, because the service application that disposes on the routing device can have multiple, the service application of these kinds can have the function that is provided with that optimizes interface, therefore the higher service application of priority might be arranged for message being provided with optimizes interface, also may have the identical or lower service application of priority to optimize interface for message being provided with.
Step 403, service application judge whether this optimizes interface is the interface that optimizes of the higher service application setting of priority, if then execution in step 405, otherwise execution in step 404.
In this step, the interface that optimizes for the setting of higher priority service application then keeps the foundation that this is provided as follow-up Route Selection; For the interface that optimizes of the low service application setting of priority, then need to reset and optimize interface according to current service application; The interface that optimizes for the service application setting of equal priority then can keep also and can reset.
Step 404, service application optimizes interface for the message setting, and changes step 405 over to.
Concrete, according to aforementioned description, service application can optimize interface type and outgoing interface for what the message setting adapted according to business demand.When specific implementation, in the internal system of routing device, there is message buffer usually, wherein be provided with some control informations of this message corresponding to message.The embodiment of the invention can increase the relevant field that optimizes interface in corresponding message corresponding buffer region, as: increase optimizes interface type field, is used to store the type identification (pressure optimizes the interface type sign or suggestion optimizes the interface type sign) that optimizes interface; Increase optimizes interface field, is used to store the relevant parameter (as port numbers or address) that optimizes interface.
Step 405, service application this message of letting pass, and carry out subsequent treatment.
Concrete, service application this message of can letting pass carries out respective handling to follow-up processing module, as the forwarding module of letting pass carries out Route Selection and forwarding.
Because not all applied business all needs to optimize the setting of interface, can not need setting to optimize interface as flow-control module, and the NAT module need be provided with and optimizes interface, therefore, at this situation, can carry out following steps between step 401 in the above-mentioned flow process and step 402: service application judges whether to need to be provided with to optimize interface, be provided with if desired and optimize interface, then execution in step 402, otherwise do not optimize the setting of interface but carry out subsequent treatment, carry out routing forwarding as forwarding module that message is let pass and handle.
Service application in the stage of carrying out Route Selection for message, can select to transmit route to transmit this message for after the message setting optimizes interface according to the interface that optimizes of this message.
Referring to Fig. 5, the routing device that provides for the embodiment of the invention carries out the schematic flow sheet that message is transmitted according to the interface that optimizes of message.As shown in the figure, this flow process can comprise:
Step 501, routing device is based on the purpose IP address lookup FIB (promptly transmitting) of message.
Concrete, the forwarding module of routing device is when selecting route for message, based on the purpose IP address lookup FIB of this message, to find all routes that arrive this purpose IP address.Fib table Xiang Zhongke comprises information such as outgoing interface, next hop address, may have a plurality of outgoing interfaces or next jumping corresponding to same purpose IP address, promptly has a plurality of equal-cost routes.
Step 502, routing device judge whether to force to optimize interface for this message is provided with, if then execution in step 506, otherwise execution in step 503.
Concrete, but optimize the relevant field of interface in the message buffer of inner this message correspondence of the forwarding module inquiry system in the routing device, to judge whether forcing to optimize interface for this message is provided with.
Step 503, routing device judge whether to optimize interface for this message is provided with suggestion, if then execution in step 504, otherwise execution in step 505.
Concrete, but optimize the relevant field of interface in the message buffer of inner this message correspondence of the forwarding module inquiry system in the routing device, to judge whether optimizing interface for this message is provided with suggestion.
Step 504, routing device is provided with under the situation that suggestion optimizes interface being judged as this message, judges among the FIB whether purpose IP address that should message had with this suggestion to optimize the identical outgoing interface of interface, if having, then execution in step 508, otherwise execution in step 505.
Step 505, routing device is this message routing according to the acquiescence routing policy, changes step 508 then over to.
Wherein, the acquiescence routing policy can adopt present existing routing strategy.As, pairing all outgoing interfaces in purpose IP address (being the outgoing interface of equal-cost route) of this message of employing polling mode poll are selected one of them outgoing interface as this message then.When from the outgoing interface of these equal-cost routes, selecting the outgoing interface of this message, can also further adopt load balancing mechanism, perhaps consider factors such as allocated bandwidth.
Step 506, routing device are provided with and force to optimize under the situation of interface being judged as this message, judge among the FIB whether purpose IP address that should message existed with this pressure to optimize the identical outgoing interface of interface, if having, then execution in step 508; Otherwise, execution in step 507.
Step 507, routing device abandon this message.
Step 508, routing device is transmitted this message according to the outgoing interface that inquires.
Force to optimize interface and judge whether that suggestion optimizes the step of interface and the order of relevant treatment operations is changed for message is provided with for message is provided with to judging whether in the above-mentioned flow process, then formed another embodiment of the present invention.Its processing procedure and above-mentioned flow process are similar, do not repeat them here.
By above flow process as can be seen, routing device optimizes interface according to professional tendentiousness setting, and looking into the FIB routing stage in the flow process that E-Packets is according to carrying out routing for the interface that optimizes of message setting.Wherein, when forcing to optimize the message routing of interface for being provided with, optimize the interface routing (promptly in strict accordance with forcing, if existence and pressure optimize the identical exit port of interface, then E-Packet according to the outgoing interface that inquires, otherwise dropping packets), thereby can satisfy the application need of professional available class scene; When optimizing the interface routing for being provided with suggestion, range of choice expands equal-cost route to, thereby can satisfy bandwidth optimization class application need.Because the still forwarding process on basis that above-mentioned routing forwarding flow process is used, but introduced professional tendentiousness by optimizing interface, so the processing mode of two layers of packaging information and hardware forwarding table item relies on fully to transmit and handles, and do not need each business application module to organize voluntarily, in addition, unify routing because routing forwarding is handled according to the priority of business and interface mandatory, also strengthened the harmony that cooperates between each business.
After adopting the aforesaid way of the embodiment of the invention, application for the available class scene of business, when business application modules such as NAT module Inside to Outside message is provided with force to optimize interface after, then can carry out routing when transmitting routing according to this outgoing interface, guarantee the professional correctness of transmitting, not needing to introduce new functional module can realize.Use for the bandwidth optimization class, divide timing when the first message outgoing interface of new SIP being carried out outgoing interface based on the module of SIP (session initiation protocol), only need that suggestion is set and optimize interface, because when the networking with the available class of business cooperates, the still result of NAT module routing who finally comes into force (be provided with and force to optimize interface), load balancing based on bandwidth is still effective in the long run, the routing result of NAT module influence only at this moment is bigger, and the correlation between the business has also obtained good solution.
The above embodiment of the present invention solves to be had load balancing under the tendentious situation in business, except routing correctly, can also make the better collaborative work of different business, realizes high scalability and to the better support of different system form.
Need to prove that the above embodiment of the present invention can be applied to systems such as multi-interface gateway, secure router, fire compartment wall, perhaps other need carry out on the network equipment of message forwarding processing.
Based on identical technical conceive, the embodiment of the invention also provides a kind of routing device that can be applicable to above-mentioned flow process.
Referring to Fig. 6, the structural representation of the routing device that provides for the embodiment of the invention, this routing device can be applicable to the IP packet network, and this routing device can comprise:
Business application module 601 is used to the message setting to optimize interface, and the described interface that optimizes is that pressure optimizes interface or suggestion optimizes interface;
Forwarding module 602, be used for when transmitting described message, if being judged as described message is provided with and forces to optimize interface, when then transmitting according to the purpose IP address lookup of described message, optimize interface as if the pressure that comprises promising described message setting in the outgoing interface that inquires described purpose IP address correspondence, then transmit described message according to the outgoing interface that inquires; Otherwise, abandon transmitting described message; If being judged as described message is provided with suggestion and optimizes interface, when then transmitting according to the purpose IP address lookup of described message, optimize interface as if the suggestion that comprises promising described message setting in the outgoing interface that inquires described purpose IP address correspondence, then transmit described message according to the outgoing interface that inquires; Otherwise, transmit described message according to the default route forwarding strategy.
In the above-mentioned routing device, business application module 601 can judge whether that the business application module of higher priority optimizes interface for described message being provided with when optimizing interface for the message setting; If the service application that then keeps this higher priority is the interface that optimizes of described message setting, otherwise, for described message setting optimizes interface.
In the above-mentioned routing device, business application module 601 is when optimizing interface for the message setting, can judge whether and to optimize interface for described message setting, and be judged as under the situation that is, the service application that judges whether higher priority optimizes interface for described message being provided with, if there is the service application of higher priority to optimize interface for described message being provided with, the service application that then keeps this higher priority is the interface that optimizes of described message setting, otherwise, for described message setting optimizes interface.
In the above-mentioned routing device, business application module 601 can optimize interface for the message setting according to the business demand that current business is used.Concrete, the business demand that current business is used for need to guarantee internal network to external network traffic with the external network that takes place before during to internal network flow use same-interface, business application module 601 is forced to optimize interface for message is provided with, and it is the incoming interface of described external network to the internal network flow that this pressure optimizes interface; Perhaps, the business demand that current business is used for need to guarantee according to the source IP address of internal user to internal network when external network traffic is carried out load balancing based on link-quality, business application module 601 optimizes interface for message is provided with suggestion, and this suggestion optimizes the outgoing interface that interface is a current business session first packet.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a station terminal equipment (can be mobile phone, personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be looked protection scope of the present invention.

Claims (8)

1. a message forwarding method is applied to the IP packet network, it is characterized in that, comprising:
The business demand that routing device is used according to current business optimizes interface for the message setting, and the described interface that optimizes is that pressure optimizes interface or suggestion optimizes interface;
When described routing device is transmitted described message, if being judged as described message is provided with and forces to optimize interface, when then described routing device is transmitted according to the purpose IP address lookup of described message, optimize interface as if the pressure that comprises promising described message setting in the outgoing interface that inquires described purpose IP address correspondence, then transmit described message according to the outgoing interface that inquires; Otherwise, abandon transmitting described message;
If being judged as described message is provided with suggestion and optimizes interface, when then described routing device is transmitted according to the purpose IP address lookup of described message, optimize interface as if the suggestion that comprises promising described message setting in the outgoing interface that inquires described purpose IP address correspondence, then transmit described message according to the outgoing interface that inquires; Otherwise, transmit described message according to the default route forwarding strategy.
2. the method for claim 1 is characterized in that, described routing device comprises for the message setting optimizes the process of interface:
The current service application of described routing device judges whether that the service application of higher priority optimizes interface for described message being provided with;
If the service application that then keeps this higher priority is the interface that optimizes of described message setting, otherwise, for described message setting optimizes interface.
3. the method for claim 1 is characterized in that, described routing device comprises for the message setting optimizes the process of interface:
The current service application of described routing device judges whether and need optimize interface for described message setting, and be judged as under the situation that is, the service application that judges whether higher priority optimizes interface for described message being provided with, if there is the service application of higher priority to optimize interface for described message being provided with, the service application that then keeps this higher priority is the interface that optimizes of described message setting, otherwise, for described message setting optimizes interface.
4. as each described method of claim 1-3, it is characterized in that the business demand that described routing device is used according to current business comprises for the message setting optimizes interface:
The business demand that current business is used for need to guarantee internal network to external network traffic with the external network that takes place before during to internal network flow use same-interface, current business is applied as message and is provided with and forces to optimize interface, and it is the incoming interface of described external network to the internal network flow that this pressure optimizes interface; Perhaps
The business demand that current business is used for need to guarantee according to the source IP address of internal user to internal network when external network traffic is carried out load balancing based on link-quality, current business is applied as message and suggestion is set optimizes interface, and this suggestion optimizes the outgoing interface that interface is a current business session first packet.
5. a routing device is applied to the IP packet network, it is characterized in that, comprising:
Business application module is used for optimizing interface according to the business demand that current business is used for the message setting, and the described interface that optimizes is that pressure optimizes interface or suggestion optimizes interface;
Forwarding module, be used for when transmitting described message, if being judged as described message is provided with and forces to optimize interface, when then transmitting according to the purpose IP address lookup of described message, optimize interface as if the pressure that comprises promising described message setting in the outgoing interface that inquires described purpose IP address correspondence, then transmit described message according to the outgoing interface that inquires; Otherwise, abandon transmitting described message; If being judged as described message is provided with suggestion and optimizes interface, when then transmitting according to the purpose IP address lookup of described message, optimize interface as if the suggestion that comprises promising described message setting in the outgoing interface that inquires described purpose IP address correspondence, then transmit described message according to the outgoing interface that inquires; Otherwise, transmit described message according to the default route forwarding strategy.
6. routing device as claimed in claim 5 is characterized in that described business application module specifically is used for, and judges whether that the business application module of higher priority optimizes interface for described message being provided with; If the service application that then keeps this higher priority is the interface that optimizes of described message setting, otherwise, for described message setting optimizes interface.
7. routing device as claimed in claim 5, it is characterized in that, described business application module specifically is used for, judge whether and to optimize interface for described message setting, and be judged as under the situation that is, the service application that judges whether higher priority optimizes interface for described message being provided with, if there is the service application of higher priority to optimize interface for described message being provided with, the service application that then keeps this higher priority is the interface that optimizes of described message setting, otherwise, for described message setting optimizes interface.
8. as each described routing device of claim 5-7, it is characterized in that, described business application module specifically is used for, the business demand that current business is used for need to guarantee internal network to external network traffic with the external network that takes place before during to internal network flow use same-interface, force to optimize interface for message is provided with, it is the incoming interface of described external network to the internal network flow that this pressure optimizes interface; Perhaps,
The business demand that current business is used for need to guarantee according to the source IP address of internal user to internal network when external network traffic is carried out load balancing based on link-quality, optimize interface for message is provided with suggestion, this suggestion optimizes the outgoing interface that interface is a current business session first packet.
CN201110097753.5A 2011-04-19 2011-04-19 Method and apparatus for message forwarding Active CN102170394B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110097753.5A CN102170394B (en) 2011-04-19 2011-04-19 Method and apparatus for message forwarding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110097753.5A CN102170394B (en) 2011-04-19 2011-04-19 Method and apparatus for message forwarding

Publications (2)

Publication Number Publication Date
CN102170394A true CN102170394A (en) 2011-08-31
CN102170394B CN102170394B (en) 2014-02-12

Family

ID=44491377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110097753.5A Active CN102170394B (en) 2011-04-19 2011-04-19 Method and apparatus for message forwarding

Country Status (1)

Country Link
CN (1) CN102170394B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647347A (en) * 2012-03-30 2012-08-22 汉柏科技有限公司 Connection-based traffic processing method and system
CN103825823A (en) * 2014-02-21 2014-05-28 中国科学技术大学苏州研究院 Data forwarding method based on different priorities in software-defined network
CN104994178A (en) * 2015-05-12 2015-10-21 广东睿江科技有限公司 Network address translation method and device
US9935881B2 (en) 2012-09-28 2018-04-03 Huawei Technologies Co., Ltd. Method and apparatus of load sharing
CN116915777A (en) * 2023-09-13 2023-10-20 杭州立方控股股份有限公司 Intelligent parking management system and method for seat personnel cooperation

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1630268A (en) * 2003-12-19 2005-06-22 华为技术有限公司 A breakout routing method for multi-ISP local area network
CN1874305A (en) * 2006-03-22 2006-12-06 华为技术有限公司 Method of IP route selection
US7519733B1 (en) * 2004-05-13 2009-04-14 Cisco Technology, Inc. Arrangement in a router for establishing multicast group hierarchy and coalescence
CN101610296A (en) * 2009-07-21 2009-12-23 杭州华三通信技术有限公司 A kind of network address translation (NAT) outgoing interface balancing method and device
CN101656675A (en) * 2009-09-22 2010-02-24 中兴通讯股份有限公司 Load sharing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1630268A (en) * 2003-12-19 2005-06-22 华为技术有限公司 A breakout routing method for multi-ISP local area network
US7519733B1 (en) * 2004-05-13 2009-04-14 Cisco Technology, Inc. Arrangement in a router for establishing multicast group hierarchy and coalescence
CN1874305A (en) * 2006-03-22 2006-12-06 华为技术有限公司 Method of IP route selection
CN101610296A (en) * 2009-07-21 2009-12-23 杭州华三通信技术有限公司 A kind of network address translation (NAT) outgoing interface balancing method and device
CN101656675A (en) * 2009-09-22 2010-02-24 中兴通讯股份有限公司 Load sharing method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647347A (en) * 2012-03-30 2012-08-22 汉柏科技有限公司 Connection-based traffic processing method and system
CN102647347B (en) * 2012-03-30 2016-07-13 汉柏科技有限公司 Realize based on the processing method of flow connected and system
US9935881B2 (en) 2012-09-28 2018-04-03 Huawei Technologies Co., Ltd. Method and apparatus of load sharing
CN103825823A (en) * 2014-02-21 2014-05-28 中国科学技术大学苏州研究院 Data forwarding method based on different priorities in software-defined network
CN104994178A (en) * 2015-05-12 2015-10-21 广东睿江科技有限公司 Network address translation method and device
CN116915777A (en) * 2023-09-13 2023-10-20 杭州立方控股股份有限公司 Intelligent parking management system and method for seat personnel cooperation
CN116915777B (en) * 2023-09-13 2023-12-05 杭州立方控股股份有限公司 Intelligent parking management system and method for seat personnel cooperation

Also Published As

Publication number Publication date
CN102170394B (en) 2014-02-12

Similar Documents

Publication Publication Date Title
US11972306B2 (en) Routing optimizations in a network computing environment
US9160667B2 (en) System and method to route data in an anycast environment
CN100411381C (en) Communication method and system between mixed network VPN stations across different autonomous systems
EP2018756B1 (en) Address translation in a communication system
CN101789904A (en) Method and equipment for controlling flow
WO2005031533A2 (en) Model-based method and apparatus for determining mpls network properties
CN102170394B (en) Method and apparatus for message forwarding
US7720003B2 (en) Model-based method and apparatus for determining MPLS network properties
CN108833232B (en) PPPoE client implementation method based on VPP and PPPoE client
CN106254235A (en) A kind of method of load sharing and equipment thereof
EP2494798A1 (en) Methods and apparatus for wan/wlan unicast and multicast communication
CN100450065C (en) Method for providing communication between virtual special network stations
US20080291920A1 (en) System and method for managing communications
CN104811383A (en) Message forwarding method and equipment
CN103220217A (en) Route generating method and equipment
CN102215231A (en) Data forwarding method and gateway
Saravanan et al. Architecture and Future Trends on Next Generation Networks
US10158604B2 (en) Method for addressing messages in a computer network
CN101668010A (en) Method and device for sharing multi-interface data stream load in WiMAX system
CN107404546B (en) Communication method and device in SDN network
JP2004186748A (en) Voice data transmission/reception automatic selection system and method and ip terminal in ip network
US11743180B2 (en) System and method for routing traffic onto an MPLS network
CN103109504B (en) The pseudo-wire of the band control channel using skew is provided
JP6825702B2 (en) Gateway device, message transmission method and program
WO2016145577A1 (en) Access network system, and method and apparatus for processing data packet

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address