CN101984593B - A kind of method and switch realizing switch load sharing - Google Patents

A kind of method and switch realizing switch load sharing Download PDF

Info

Publication number
CN101984593B
CN101984593B CN201010525187.9A CN201010525187A CN101984593B CN 101984593 B CN101984593 B CN 101984593B CN 201010525187 A CN201010525187 A CN 201010525187A CN 101984593 B CN101984593 B CN 101984593B
Authority
CN
China
Prior art keywords
hop
outgoing interface
physics outgoing
load sharing
physics
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.)
Active
Application number
CN201010525187.9A
Other languages
Chinese (zh)
Other versions
CN101984593A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201010525187.9A priority Critical patent/CN101984593B/en
Publication of CN101984593A publication Critical patent/CN101984593A/en
Application granted granted Critical
Publication of CN101984593B publication Critical patent/CN101984593B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of method and the switch that realize switch load sharing, the method comprises: after the multiple next-hop IP of network segment routing configuration, judge whether each next-hop IP configured has physics outgoing interface, the next-hop IP with physics outgoing interface is directly issued to the load sharing that the chip load sharing list item exchanging control chip maintenance is used for carrying out data traffic.The present invention is after configuration next-hop IP, judge whether each next-hop IP has outgoing interface in advance, the load sharing list item exchanging control chip is issued to by there being the next-hop IP of outgoing interface, form effective traffic sharing, the next-hop IP temporary cache without outgoing interface is not issued the load sharing list item exchanging control chip, after the outgoing interface information of this next-hop IP to be obtained, be issued to the load sharing list item exchanging control chip again; Maximally utilise equipment existing resource.

Description

A kind of method and switch realizing switch load sharing
Technical field
The present invention relates to the switch load sharing technology in the communications field, particularly relate to a kind of method and the switch that realize switch load sharing.
Background technology
Switch is different from router, the information that must obtain whole route before forwarding data could correctly forward the packet, if route outgoing interface information does not get next hop information entirely or not, then exchange control chip and message is forwarded to line card temporarily, trigger soft forwarding by line card, or directly abandon.
The method of carrying out load sharing according to the down hop of static routing of configuration in prior art is the multiple down hop of routing configuration for some network segments, these down hops is formed a load sharing group.When routing device receives the message of certain IP address of this network segment of access, query routing information, according to pre-configured load-sharing strategy, determines the outgoing interface of the down hop of message.
Problems of the prior art are that some next-hop IP user configured may not exist in the network environment of reality or routing device does not also learn the physics outgoing interface information of its correspondence.These down hops have invalid outgoing interface concerning exchange control chip, cause directly abandoning and can cause loss of forwarded packets, if message is gone to line card, greatly can increase the burden of line card, affect message repeating efficiency.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method and the switch that realize switch load sharing, improves the utilance exchanging control chip.
In order to solve the problems of the technologies described above, the invention provides a kind of method realizing switch load sharing, comprise: after the multiple next-hop IP of network segment routing configuration, judge whether each next-hop IP configured has physics outgoing interface, the next-hop IP with physics outgoing interface is directly issued to the load sharing that the chip load sharing list item exchanging control chip maintenance is used for carrying out data traffic.
Further, said method can also have following characteristics:
After judging whether each next-hop IP configured has physics outgoing interface, when part next-hop IP does not have physics outgoing interface, the next-hop IP buffer memory of physics outgoing interface will do not had, obtain after this does not have the physics outgoing interface information of the next-hop IP of physics outgoing interface at switch, the physics outgoing interface information of the new acquisition of this next-hop IP and correspondence is issued to the load sharing exchanging chip load sharing list item that control chip safeguards and be used for carrying out data traffic.
Further, said method can also have following characteristics:
To not have the next-hop IP buffer memory of physics outgoing interface to database, machine to be exchanged obtains after this does not have the physics outgoing interface information of the next-hop IP of physics outgoing interface, deletes corresponding next-hop IP from database.
Further, said method can also have following characteristics:
After judging whether each next-hop IP configured has physics outgoing interface, when each next-hop IP does not all have physics outgoing interface, each next-hop IP is set to point to line card, is pointed to the route data of this next-hop IP by line card process.
Further, said method can also have following characteristics:
After switch obtains and does not have the physics outgoing interface information of the next-hop IP of physics outgoing interface, and when judging that this next-hop IP has been set to point to line card, cancel the setting pointing to line card, and the physics outgoing interface information of the new acquisition of this next-hop IP and correspondence is issued to the chip load sharing list item exchanging control chip and safeguard, for carrying out the load sharing of data traffic.
Further, said method can also have following characteristics:
One of when judging whether each next-hop IP configured has physics outgoing interface, in the following ways: in inquiry Host routes table, whether next-hop IP has physics outgoing interface; Whether be whether next-hop IP has physics outgoing interface in the static configuration of inquiring user; From the physics outgoing interface of message flow learning next-hop IP.
In order to solve the problems of the technologies described above, the invention provides a kind of switch realizing switch load sharing; Described switch, for for after the multiple next-hop IP of network segment routing configuration, judge whether each next-hop IP configured has physics outgoing interface, the next-hop IP with physics outgoing interface is directly issued to the load sharing that the chip load sharing list item exchanging control chip maintenance is used for carrying out data traffic.
Further, above-mentioned switch can also have following characteristics:
Described switch, also for after judging whether each next-hop IP configured has physics outgoing interface, when part next-hop IP does not have physics outgoing interface, the next-hop IP buffer memory of physics outgoing interface will do not had, obtain after this does not have the physics outgoing interface information of the next-hop IP of physics outgoing interface at switch, the physics outgoing interface information of the new acquisition of this next-hop IP and correspondence is issued to the load sharing exchanging chip load sharing list item that control chip safeguards and be used for carrying out data traffic.
Further, above-mentioned switch can also have following characteristics:
Described switch, also for after judging whether each next-hop IP configured has physics outgoing interface, when each next-hop IP does not all have physics outgoing interface, is set to each next-hop IP point to line card, is pointed to the route data of this next-hop IP by line card process.
Further, above-mentioned switch can also have following characteristics:
Described switch, also for obtain the next-hop IP without physics outgoing interface physics outgoing interface information after, and when judging that this next-hop IP has been set to point to line card, cancel the setting pointing to line card, and the physics outgoing interface information of the new acquisition of this next-hop IP and correspondence is issued to the chip load sharing list item exchanging control chip and safeguard, for carrying out the load sharing of data traffic.
The present invention is after configuration next-hop IP, judge whether each next-hop IP has outgoing interface in advance, the load sharing list item exchanging control chip is issued to by there being the next-hop IP of outgoing interface, form effective traffic sharing, the next-hop IP temporary cache without outgoing interface is not issued the load sharing list item exchanging control chip, after the outgoing interface information of this next-hop IP to be obtained, be issued to the load sharing list item exchanging control chip again; Maximally utilise equipment existing resource, all down hops need not have been waited to have when outgoing interface and just issue exchange control chip; The next-hop IP turning to line card is set, after the outgoing interface information obtaining this next-hop IP, has cancelled the setting pointing to line card, save handling process.
Accompanying drawing explanation
Fig. 1 is the method flow diagram realizing switch load sharing in embodiment.
Embodiment
As shown in Figure 1, the method realizing switch load sharing comprises:
Step 101 is the multiple next-hop IP of network segment routing configuration.
Next-hop IP for same network segment routing configuration forms a load sharing group.
Step 102, judges whether each next-hop IP configured has physics outgoing interface.
One of when judging whether each next-hop IP configured has physics outgoing interface, in the following ways:
In inquiry Host routes table, whether next-hop IP has physics outgoing interface; Whether be whether next-hop IP has physics outgoing interface in the static configuration of inquiring user; From the physics outgoing interface of message flow learning next-hop IP.
Step 103, when each next-hop IP part of configuration has physics outgoing interface, is directly issued to the load sharing that the chip load sharing list item exchanging control chip maintenance is used for carrying out data traffic by the next-hop IP with physics outgoing interface.
In this step, after judging whether each next-hop IP configured has physics outgoing interface, when part next-hop IP does not have physics outgoing interface, the next-hop IP buffer memory of physics outgoing interface will do not had, obtain after this does not have the physics outgoing interface information of the next-hop IP of physics outgoing interface at switch, the physics outgoing interface information of the new acquisition of this next-hop IP and correspondence is issued to the load sharing exchanging chip load sharing list item that control chip safeguards and be used for carrying out data traffic.
Concrete, will not have the next-hop IP buffer memory of physics outgoing interface to database, machine to be exchanged obtains after this does not have the physics outgoing interface information of the next-hop IP of physics outgoing interface, deletes corresponding next-hop IP from database.
Also step 104 is comprised in said method, after judging whether each next-hop IP configured has physics outgoing interface, when each next-hop IP does not all have physics outgoing interface, each next-hop IP is set to point to line card, is pointed to the route data of this next-hop IP by line card process.
After said method 103 and 104 step, after switch obtains and does not have the physics outgoing interface information of the next-hop IP of physics outgoing interface, and when judging that this next-hop IP has been set to point to line card, cancel the setting pointing to line card, and the physics outgoing interface information of the new acquisition of this next-hop IP and correspondence is issued to the chip load sharing list item exchanging control chip and safeguard, for carrying out the load sharing of data traffic.
Additionally provide a kind of switch realizing switch load sharing in the present invention, can to implement the above described method in describe operation and function, herein no longer repeated description.
Below by specific embodiment, the present invention is further described in detail:
The method realizing switch load sharing comprises:
Step 201, user is by order behavior one network segment routing configuration n (n>1) next-hop IP, and this n of switch next IP forms the data distributing of a load sharing group to exchanger chip driving layer (place of drawing refers to that process drives the module of message).
Step 202, inquires about the physics outgoing interface information of each next-hop IP.
Concrete, inquire address analysis protocol (Address Resolution Protocol is called for short ARP) table in Ipv4 agreement, inquires about neighbor uni-cast (Neighbor Discovery is called for short ND) table in Ipv4 agreement.
Step 203, has the next-hop IP of outgoing interface to be directly issued to the chip load sharing list item exchanging control chip maintenance by m (0<m≤n); To not there is the next-hop IP buffer memory of physics outgoing interface to database; When each next-hop IP does not all have physics outgoing interface, each next-hop IP is set to point to line card, is pointed to the route data of this next-hop IP by line card process.
Step 204, after switch obtains and do not have the physics outgoing interface information of the next-hop IP of physics outgoing interface, is issued to physics outgoing interface information and exchanges control chip driving layer.
One of when judging whether each next-hop IP configured has physics outgoing interface, in the following ways: in inquiry Host routes table, whether next-hop IP has physics outgoing interface; Whether be whether next-hop IP has physics outgoing interface in the static configuration of inquiring user; From the physics outgoing interface of message flow learning next-hop IP.Directly issue Host routes data after the physics outgoing interface information obtained by first two mode and drive layer to exchanger chip, after obtaining physics outgoing interface information by the third mode, then learnt simultaneously by soft for message forwarding by upper layer module triggering ARP study or ND to line card by message up sending, upper-layer protocol module issues Host routes data again and drives layer to exchanger chip after learning physics outgoing interface information.
Step 205, after driving layer to receive Host routes data, issues Host routes table to exchange control chip, uses the object IP Query Database in Host routes data simultaneously, check whether this IP is the next-hop IP without physics outgoing interface message recorded in database.
Step 206, when not finding next-hop IP in a database, flow process terminates.
Step 207, when finding next-hop IP in a database, is issued to the physics outgoing interface message of this next-hop IP and next-hop IP and exchanges the chip load sharing list item that control chip safeguards and be used for share loads, and deleted from database by this next-hop IP.
In this step, when finding next-hop IP in a database, and when judging that this next-hop IP has been set to point to line card, cancel the setting pointing to line card, and the physics outgoing interface information of the new acquisition of this next-hop IP and correspondence is issued to the chip load sharing list item exchanging control chip and safeguard, for carrying out the load sharing of data traffic, and this next-hop IP is deleted from database.Operation herein, under the condition finding effective routing outgoing interface, E-Packeting by exchanging control chip, without the need to passing through the soft forwarding of line card, thus reducing the workload of line card.
Can judge in the present invention whether each next-hop IP configured has outgoing interface in time, and after the physics outgoing interface information obtaining next-hop IP, be issued in time and exchange control chip for load sharing, reduce the soft forwarding operation of line card simultaneously.
Certainly; the present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art are when making various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection range that all should belong to the claim appended by the present invention.
The all or part of step that one of ordinary skill in the art will appreciate that in said method is carried out instruction related hardware by program and is completed, and described program can be stored in computer-readable recording medium, as read-only memory, disk or CD etc.Alternatively, all or part of step of above-described embodiment also can use one or more integrated circuit to realize.Correspondingly, each module/unit in above-described embodiment can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.

Claims (8)

1. realize a method for switch load sharing, it is characterized in that,
After the multiple next-hop IP of network segment routing configuration, judge whether each next-hop IP configured has physics outgoing interface, the next-hop IP with physics outgoing interface is directly issued to the load sharing that the chip load sharing list item exchanging control chip maintenance is used for carrying out data traffic;
After judging whether each next-hop IP configured has physics outgoing interface,
When part next-hop IP does not have physics outgoing interface, the next-hop IP buffer memory of physics outgoing interface will do not had, obtain after this does not have the physics outgoing interface information of the next-hop IP of physics outgoing interface at switch, the physics outgoing interface information of the new acquisition of this next-hop IP and correspondence is issued to the load sharing exchanging chip load sharing list item that control chip safeguards and be used for carrying out data traffic.
2. the method for claim 1, is characterized in that,
To not have the next-hop IP buffer memory of physics outgoing interface to database, machine to be exchanged obtains after this does not have the physics outgoing interface information of the next-hop IP of physics outgoing interface, deletes corresponding next-hop IP from database.
3. the method for claim 1, is characterized in that,
After judging whether each next-hop IP configured has physics outgoing interface, when each next-hop IP does not all have physics outgoing interface, each next-hop IP is set to point to line card, is pointed to the route data of this next-hop IP by line card process.
4. method as claimed in claim 3, is characterized in that,
After switch obtains and does not have the physics outgoing interface information of the next-hop IP of physics outgoing interface, and when judging that this next-hop IP has been set to point to line card, cancel the setting pointing to line card, and the physics outgoing interface information of the new acquisition of this next-hop IP and correspondence is issued to the chip load sharing list item exchanging control chip and safeguard, for carrying out the load sharing of data traffic.
5. the method for claim 1, is characterized in that,
One of when judging whether each next-hop IP configured has physics outgoing interface, in the following ways:
In inquiry Host routes table, whether next-hop IP has physics outgoing interface; In the static configuration of inquiring user, whether next-hop IP has physics outgoing interface; From the physics outgoing interface of message flow learning next-hop IP.
6. realize a device for switch load sharing, it is characterized in that, comprise the first processing module and the second processing module,
Described first processing module, for for after the multiple next-hop IP of network segment routing configuration, judge whether each next-hop IP configured has physics outgoing interface, the next-hop IP with physics outgoing interface is directly issued to the load sharing that the chip load sharing list item exchanging control chip maintenance is used for carrying out data traffic;
Described second processing module, for after described first processing module judges whether each next-hop IP configured has physics outgoing interface, when part next-hop IP does not have physics outgoing interface, the next-hop IP buffer memory of physics outgoing interface will do not had, obtain after this does not have the physics outgoing interface information of the next-hop IP of physics outgoing interface at switch, the physics outgoing interface information of the new acquisition of this next-hop IP and correspondence is issued to the load sharing exchanging chip load sharing list item that control chip safeguards and be used for carrying out data traffic.
7. device as claimed in claim 6, is characterized in that,
Described second processing module, also for after described first processing module judges whether each next-hop IP configured has physics outgoing interface, when each next-hop IP does not all have physics outgoing interface, each next-hop IP is set to point to line card, is pointed to the route data of this next-hop IP by line card process.
8. device as claimed in claim 7, is characterized in that,
Described second processing module, also for obtain the next-hop IP without physics outgoing interface physics outgoing interface information after, and when judging that this next-hop IP has been set to point to line card, cancel the setting pointing to line card, and the physics outgoing interface information of the new acquisition of this next-hop IP and correspondence is issued to the chip load sharing list item exchanging control chip and safeguard, for carrying out the load sharing of data traffic.
CN201010525187.9A 2010-10-29 2010-10-29 A kind of method and switch realizing switch load sharing Active CN101984593B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010525187.9A CN101984593B (en) 2010-10-29 2010-10-29 A kind of method and switch realizing switch load sharing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010525187.9A CN101984593B (en) 2010-10-29 2010-10-29 A kind of method and switch realizing switch load sharing

Publications (2)

Publication Number Publication Date
CN101984593A CN101984593A (en) 2011-03-09
CN101984593B true CN101984593B (en) 2015-10-28

Family

ID=43641764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010525187.9A Active CN101984593B (en) 2010-10-29 2010-10-29 A kind of method and switch realizing switch load sharing

Country Status (1)

Country Link
CN (1) CN101984593B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638407B (en) * 2012-04-17 2014-10-29 北京星网锐捷网络技术有限公司 Message forwarding method, device and network equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030915A (en) * 2007-03-26 2007-09-05 中兴通讯股份有限公司 Method for sharing V-Switch transparent-transferring data load
CN101184049A (en) * 2007-12-12 2008-05-21 中兴通讯股份有限公司 Dynamic load sharing method and system
CN101197781A (en) * 2007-12-18 2008-06-11 中兴通讯股份有限公司 IP packet transmission method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030915A (en) * 2007-03-26 2007-09-05 中兴通讯股份有限公司 Method for sharing V-Switch transparent-transferring data load
CN101184049A (en) * 2007-12-12 2008-05-21 中兴通讯股份有限公司 Dynamic load sharing method and system
CN101197781A (en) * 2007-12-18 2008-06-11 中兴通讯股份有限公司 IP packet transmission method and system

Also Published As

Publication number Publication date
CN101984593A (en) 2011-03-09

Similar Documents

Publication Publication Date Title
CN102598602B (en) Managing router advertisement messages to support roaming of wireless mobile client devices
US9008084B2 (en) Method of IPv6 at data center network with VM mobility using graceful address migration
CN102025591B (en) Method and system for implementing virtual private network
US6747979B1 (en) Method and apparatus for bridging between networks
CN101325554B (en) Method for establishing route, forwarding chip and three-layer switchboard
CN1946041B (en) VLAN polymerizing method, converging exchanger and system based on ARP detector intercept
CN101925125B (en) Method of multipath TCP having mobility and combined with mobile IP (internet protocol)
KR20150009550A (en) System and method for routing traffic between distinct infiniband subnets based on source routing
CN101043430B (en) Method for converting network address between equipments
WO2020073685A1 (en) Forwarding path determining method, apparatus and system, computer device, and storage medium
CN101005452A (en) Method and system for communication between IP devices
CN106412996B (en) The method and device to E-Packet
JP4279300B2 (en) Network virtualization apparatus and network virtualization program
CN102792651B (en) At the device of MAC layer application service path Route Selection
CN102014039B (en) Data transmission method and access point
JPWO2012081631A1 (en) Switching device, host device, network, and packet transfer method
CN102984070B (en) A kind of Ethernet is without the method for numbering Interface realization data retransmission
CN102204191A (en) A message transmission method and a network-network routing device
JP2007306251A (en) Program and method for controlling packet routing and computer system
CN104717142A (en) Method for conducting mobile management based on OpenFlow
JP5438624B2 (en) Communication system, control server, flow control method and program thereof
CN101808107A (en) Storage device and user communication method, device and system
CN102291305A (en) Method and device for implementing 6 to 4 relay routing, and message forwarding method
CN101534211B (en) Network convergence method, network bridges and system
CN100426790C (en) Method for increasing hometown agent message retransmission property in mobile IP network

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