CN102647348A - Method and system for load sharing - Google Patents
Method and system for load sharing Download PDFInfo
- Publication number
- CN102647348A CN102647348A CN2012100902995A CN201210090299A CN102647348A CN 102647348 A CN102647348 A CN 102647348A CN 2012100902995 A CN2012100902995 A CN 2012100902995A CN 201210090299 A CN201210090299 A CN 201210090299A CN 102647348 A CN102647348 A CN 102647348A
- Authority
- CN
- China
- Prior art keywords
- outer web
- current message
- outlet
- web portal
- record
- 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
Images
Abstract
The invention discloses a method and system for load sharing, and relates to the technical field of network communication. The method comprises the following steps of: S1: finding a routing table according to an IP (Internet Protocol) destination address of the current packet to obtain an exist corresponding to the current packet, determining whether the exit has a routing load sharing function, if so, executing a step S2, wherein the routing load sharing function is characterized in that the exit corresponds to at least two Internet entrances, and the exit and the Internet entrances are physical interfaces; S2: finding network address tables respectively corresponding to at least two Internet entrances according to the IP destination address of the current packet, if the network address tables are recorded, executing a step S3; and S3: sending the current packet via the Internet entrances corresponding to the record. The network to which the packet belongs is determined by finding the network address table, so that the secondary forwarding of the packets between Internets is avoided, and thus the forwarding speed of the packet is increased.
Description
Technical field
The present invention relates to network communications technology field, particularly a kind of method and system of load balancing.
Background technology
The movable reliability and stability to network of people's work, amusement etc. at present require increasingly high; The Intranet of the occasion of generally having relatively high expectations and different operators have two links (for example adopting the outer net of UNICOM and the outer net of telecommunications respectively) to realize load balancing; Guaranteeing can have another link as backup when a link breaks down; And work as two links all just often in order to reduce the flow pressure of a link; The flow mean allocation to an other link, has been improved network speed like this.When a link breaks down interface when cutting off, system all forwards flow to another link automatically and transmits, and has improved stability of network, reliability like this.The higher occasion that meets the demands can not be interrupted this demand to business need; Guarantee that loaded service is unaffected, but because during load balancing, Intranet through the network equipment when outer net sends message; All be directly to select the less link of flow to carry out transfer of data; Message is not sent to belonging network sometimes, causes between the outer net secondary of message is transmitted, and has had a strong impact on packet forwarding speed.
Summary of the invention
The technical problem that (one) will solve
The technical problem that the present invention will solve is: how to avoid between the outer net secondary of message is transmitted, improve packet forwarding speed.
(2) technical scheme
For solving the problems of the technologies described above, the invention provides a kind of method of load balancing, said method comprising the steps of:
S1: search routing table according to the IP destination address of current message and obtain the corresponding outlet of said current message; Judge whether said outlet has routing overhead and share function; If have, execution in step S2 then, it is that said outlet is corresponding with a plurality of outer web portals that said routing overhead is shared function; Said outlet comprises identical with said outer web portal quantity and outgoing interface one to one, and said outgoing interface is physical interface with outer web portal;
S2: according to the corresponding respectively network address list of said at least two the outer web portals of the IP destination address inquiry of said current message, if having record, then execution in step S3;
S3: said current message is sent through the pairing outer web portal of said record.
Preferably, among the step S2, if do not have a record, then execution in step S3 not selects an outer web portal in said at least two outer web portals to send said current message, and ending method.
Preferably, when an outer web portal in said at least two the outer web portals of said current message selection is sent, select the less outer web portal of flow in said at least two outer web portals.
Preferably, further comprising the steps of before the step S1:
S0: receive Intranet to current message that outer net sent.
The invention also discloses a kind of system of load balancing, said system comprises:
The load balancing judge module; Be used for searching routing table and obtain the corresponding outlet of said current message, judge whether said outlet has routing overhead and share function, if having according to the IP destination address of current message; Executive logging enquiry module then; It is that said outlet is corresponding with a plurality of outer web portals that said routing overhead is shared function, and said outlet comprises identical with said outer web portal quantity and outgoing interface one to one, and said outgoing interface is physical interface with outer web portal;
The record queries module is used for if having record, then carrying out sending module according to the corresponding respectively network address list of said at least two the outer web portals of the IP destination address inquiry of said current message;
Sending module is used for said current message is sent through the pairing outer web portal of said record.
(3) beneficial effect
The present invention judges the belonging network of message through the requester network address table, has avoided between the outer net secondary to message to transmit, thereby has improved packet forwarding speed.
Description of drawings
Fig. 1 is the flow chart according to the method for the load balancing of one embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment, specific embodiments of the invention describes in further detail.Following examples are used to explain the present invention, but are not used for limiting scope of the present invention.
Fig. 1 is the flow chart according to the method for the load balancing of one embodiment of the present invention; With reference to Fig. 1, the method for this execution mode may further comprise the steps:
S1: search routing table according to the IP destination address of current message and obtain the corresponding outlet of said current message; Judge whether said outlet has routing overhead and share function; If have; Execution in step S2 then; Otherwise directly said current message is sent by an only outer web portal; It is that said outlet is corresponding with a plurality of outer web portals that said routing overhead is shared function; Said outlet comprises identical with said outer web portal quantity and outgoing interface one to one, and said outgoing interface is physical interface with outer web portal;
S2: according to the corresponding respectively network address list of said at least two the outer web portals of the IP destination address inquiry of said current message, if having record, then execution in step S3;
S3: said current message is sent through the pairing outer web portal of said record.
When inquiring about, then handle, preferably according to the processing mode of prior art less than record; Among the step S2, if do not have a record, execution in step S3 not then; Select an outer web portal in said at least two outer web portals to send said current message, and ending method.
Preferably, when an outer web portal in said at least two the outer web portals of said current message selection is sent, select the less outer web portal of flow in said at least two outer web portals.
Preferably, further comprising the steps of before the step S1:
S0: receive Intranet to current message that outer net sent.
Embodiment 1
Carrying out the mode that routing overhead shares with two links that adopt UNICOM's net and telecommunications network below is that example describes.
Method in the present embodiment may further comprise the steps:
(1) receives Intranet to current message that outer net sent;
(2) search routing table according to the IP destination address of said current message and obtain the corresponding outlet of said current message, judge that said outlet has routing overhead and shares function, execution in step (3);
(3) inquire about the corresponding respectively network address list of said two outer web portals (said two outer web portals are respectively the inlet of UNICOM's net and telecommunications network) (promptly being respectively UNICOM's address table and cable address table) according to the IP destination address of said current message; If have record in UNICOM's address table; Then the inlet of said current message through UNICOM's net sent; If have record in the table of cable address; Then the inlet of said current message through telecommunications network sent; If not record (for example, the IP destination address of said current message belongs to other outer nets such as education network) in the address table, select then that the less outer web portal of flow sends in the inlet of UNICOM's net and telecommunications network.
The invention also discloses a kind of system of load balancing, said system comprises:
The load balancing judge module; Be used for searching routing table and obtain the corresponding outlet of said current message, judge whether said outlet has routing overhead and share function, if having according to the IP destination address of current message; Executive logging enquiry module then; It is that said outlet is corresponding with a plurality of outer web portals that said routing overhead is shared function, and said outlet comprises identical with said outer web portal quantity and outgoing interface one to one, and said outgoing interface is physical interface with outer web portal;
The record queries module is used for if having record, then carrying out sending module according to the corresponding respectively network address list of said at least two the outer web portals of the IP destination address inquiry of said current message;
Sending module is used for said current message is sent through the pairing outer web portal of said record.
Above execution mode only is used to explain the present invention; And be not limitation of the present invention; The those of ordinary skill in relevant technologies field under the situation that does not break away from the spirit and scope of the present invention, can also be made various variations and modification; Therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.
Claims (5)
1. the method for a load balancing is characterized in that, said method comprising the steps of:
S1: search routing table according to the IP destination address of current message and obtain the corresponding outlet of said current message; Judge whether said outlet has routing overhead and share function; If have, execution in step S2 then, it is that said outlet is corresponding with a plurality of outer web portals that said routing overhead is shared function; Said outlet comprises identical with said outer web portal quantity and outgoing interface one to one, and said outgoing interface is physical interface with outer web portal;
S2: according to the corresponding respectively network address list of said at least two the outer web portals of the IP destination address inquiry of said current message, if having record, then execution in step S3;
S3: said current message is sent through the pairing outer web portal of said record.
2. the method for claim 1 is characterized in that, among the step S2, if do not have a record, then execution in step S3 not selects an outer web portal in said at least two outer web portals to send said current message, and ending method.
3. method as claimed in claim 2 is characterized in that, when an outer web portal in said at least two the outer web portals of said current message selection is sent, selects the less outer web portal of flow in said at least two outer web portals.
4. like each described method in the claim 1~3, it is characterized in that, further comprising the steps of before the step S1:
S0: receive Intranet to current message that outer net sent.
5. the system of a load balancing is characterized in that, said system comprises:
The load balancing judge module; Be used for searching routing table and obtain the corresponding outlet of said current message, judge whether said outlet has routing overhead and share function, if having according to the IP destination address of current message; Executive logging enquiry module then; It is that said outlet is corresponding with a plurality of outer web portals that said routing overhead is shared function, and said outlet comprises identical with said outer web portal quantity and outgoing interface one to one, and said outgoing interface is physical interface with outer web portal;
The record queries module is used for if having record, then carrying out sending module according to the corresponding respectively network address list of said at least two the outer web portals of the IP destination address inquiry of said current message;
Sending module is used for said current message is sent through the pairing outer web portal of said record.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100902995A CN102647348A (en) | 2012-03-30 | 2012-03-30 | Method and system for load sharing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100902995A CN102647348A (en) | 2012-03-30 | 2012-03-30 | Method and system for load sharing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102647348A true CN102647348A (en) | 2012-08-22 |
Family
ID=46659932
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100902995A Pending CN102647348A (en) | 2012-03-30 | 2012-03-30 | Method and system for load sharing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102647348A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020176363A1 (en) * | 2001-05-08 | 2002-11-28 | Sanja Durinovic-Johri | Method for load balancing in routers of a network using overflow paths |
CN101022413A (en) * | 2007-03-26 | 2007-08-22 | 杭州华为三康技术有限公司 | Load equalizing method and route server |
CN101605091A (en) * | 2009-02-13 | 2009-12-16 | 华为技术有限公司 | A kind of multi-port load sharing method, device and network system |
-
2012
- 2012-03-30 CN CN2012100902995A patent/CN102647348A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020176363A1 (en) * | 2001-05-08 | 2002-11-28 | Sanja Durinovic-Johri | Method for load balancing in routers of a network using overflow paths |
CN101022413A (en) * | 2007-03-26 | 2007-08-22 | 杭州华为三康技术有限公司 | Load equalizing method and route server |
CN101605091A (en) * | 2009-02-13 | 2009-12-16 | 华为技术有限公司 | A kind of multi-port load sharing method, device and network system |
Non-Patent Citations (1)
Title |
---|
何辉等: "基于源/目的 IP 策略路由的地址规划与多出口方案", 《兰州工业高等专科学校学报》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101335709B (en) | Method for implementing load sharing among flow analysis servers and shunting equipment | |
KR101886291B1 (en) | Flow entry configuration method, apparatus, and system | |
EP3082309B1 (en) | Sdn controller, data centre system and router connection method | |
CN101009662B (en) | Message processing method, system and device based on the load balance technology | |
US8427943B2 (en) | Bandwidth-aware multicast load balancing on a multi-interface host | |
CN102347905A (en) | Network equipment and forwarded information updating method | |
CN102006242A (en) | Routing method of router and router | |
CN102195882A (en) | Method and device for selecting route according to data stream application type | |
CN105991793B (en) | The method and apparatus of message forwarding | |
CN103023773A (en) | Method, device and system for forwarding message in multi-topology network | |
CN102325079B (en) | Message transmission method and egress router | |
CN102025644A (en) | Method and device for load sharing | |
JP2020156088A (en) | Packet transmission method and device | |
CN101534253A (en) | Message forwarding method and device | |
CN101252531A (en) | Equipment, system and method for realizing load sharing and main standby switching | |
CN106341249A (en) | Redundant port switching method and device | |
CN105812257A (en) | Business chain router management system and use method thereof | |
EP3291486B1 (en) | Selective transmission of bidirectional forwarding detection (bfd) messages for verifying multicast connectivity | |
CN102647345A (en) | Load sharing method and system for IPSEC (Internet Protocol Security) data message | |
US9571346B2 (en) | Fault tolerant communication system, method, and device that uses tree searching | |
CN101304336B (en) | Method for directly and remotely managing optical network node build-in single disk | |
CN110380966A (en) | A kind of method and its relevant device finding forward-path | |
CN102647346A (en) | Method and system for shunting packet | |
CN101820391A (en) | Route forwarding method used for IP network and network equipment | |
CN102647348A (en) | Method and system for load sharing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120822 |