CN101883160B - Multi-interface network equipment and message transmitting method of multi-interface network equipment - Google Patents

Multi-interface network equipment and message transmitting method of multi-interface network equipment Download PDF

Info

Publication number
CN101883160B
CN101883160B CN2010102221693A CN201010222169A CN101883160B CN 101883160 B CN101883160 B CN 101883160B CN 2010102221693 A CN2010102221693 A CN 2010102221693A CN 201010222169 A CN201010222169 A CN 201010222169A CN 101883160 B CN101883160 B CN 101883160B
Authority
CN
China
Prior art keywords
address
routing table
route
network equipment
opposite equip
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.)
Expired - Fee Related
Application number
CN2010102221693A
Other languages
Chinese (zh)
Other versions
CN101883160A (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 CN2010102221693A priority Critical patent/CN101883160B/en
Publication of CN101883160A publication Critical patent/CN101883160A/en
Application granted granted Critical
Publication of CN101883160B publication Critical patent/CN101883160B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses multi-interface network equipment and a message transmitting method of the multi-interface network equipment. In the network equipment, a message is transmitted by a plurality of IP addresses; the network equipment is configured with a system routing table and a temporary routing table; a route which corresponds to a source IP address and a target IP address jointly is stored in the temporary routing table; and the priority of the temporary routing table is higher than that of the system routing table. In the method, when the network equipment appoints the IP address to communicate with opposite equipment, the network equipment is used for searching the route with the appointed IP address as the source IP address and the IP address of the opposite equipment as the target IP address in the temporary routing table; and the network equipment is used for forwarding the message according to the searched route. The invention solves the problem of route selection confusion when the message is forwarded by an MIF (Management Information Format) host machine through the appointed IP address.

Description

The file transmitting method of multi-interface network equipment and multi-interface network equipment
Technical field
The present invention relates to the communications field, relate in particular to the file transmitting method of a kind of multi-interface network equipment and multi-interface network equipment.
Background technology
On a MIF (Multiple Interfaces, many interfaces) main frame, there are a plurality of network interfaces.What in some cases, a plurality of interfaces of MIF main frame connected is same network.As shown in Figure 1, main frame host has two network interface I1 and I2, and these two interfaces all are connected with node CN, and wherein the IP address of I1 is IP1, and the IP address of I2 is IP2, and the IP address of CN is IP3.
Main frame uses IP1 by I1 interface and CN communication at the beginning, and the outgoing interface for node CN on this main frame is N1, and the outgoing interface that namely arrives the route of CN in the system's route in the main frame is I1.If have service need to use I2 interface at main frame this moment, the source data packet address that therefore sends is that IP2, destination address are IP3.Yet the outgoing interface that IP3 is corresponding in system's route on main frame is I1, therefore above-mentioned packet still can arrive IP3 via the I1 interface, therefore connection can cause confusion, namely machine-processed according to the current network processes of MIF main frame, a plurality of interfaces can't be distinguished by system, when Path selection, can cause confusion, desirable network service can't be provided.
Summary of the invention
The invention provides the file transmitting method of a kind of multi-interface network equipment and multi-interface network equipment, solved the route selection confusion problem of MIF main frame.
The invention provides a kind of file transmitting method of multi-interface network equipment, the described network equipment sends message by a plurality of IP address, described network equipments configuration has System Routing Table and interim routing table, the common corresponding route in storage and source IP address and purpose IP address in the described interim routing table, the priority of described interim routing table is higher than described System Routing Table, and the method comprises:
When communicate by letter with opposite equip. in described network equipment assigned ip address, the described network equipment searches in described interim routing table take described assigned ip address as source IP address, take the IP address of described opposite equip. as the route of purpose IP address;
The described network equipment is according to searching the routing forwarding message that obtains.
The route table items of storing in the described interim routing table comprises source IP address, purpose IP address, down hop and outbound port.
Also comprise:
Do not search in described interim routing table when obtaining corresponding route, the described network equipment is further searched route in described System Routing Table;
The described network equipment obtains the outgoing interface of searching the route that obtains in described System Routing Table;
If the IP address of described outgoing interface is identical with described assigned ip address, the described network equipment is directly according to search the routing forwarding message that obtains in described System Routing Table;
If the IP address of described outgoing interface is not identical with described assigned ip address, the described network equipment adds take described assigned ip address as source IP address in described interim routing table, take the IP address of described opposite equip. as the route of purpose IP address, and according to the routing forwarding message of this interpolation.
The described network equipment also comprises after further searching route in described System Routing Table:
When in described System Routing Table, not searching when obtaining corresponding route or sending the message failure to described opposite equip., the described network equipment by outgoing interface corresponding to described assigned ip address to described opposite equip. transmit path probe messages;
The described network equipment is according to the response message of the described path probe messages that receives, to be configured to described assigned ip address according to the response message of the described path probe messages that receives in described interim routing table be source IP address, take the IP address of described opposite equip. as the route of purpose IP address, and according to this routing forwarding message.
Also comprise:
When the described network equipment did not have the assigned ip address to communicate by letter with opposite equip., the described network equipment was searched the route corresponding with described opposite equip. in described interim routing table and System Routing Table;
When all not searching the route that obtains correspondence in described interim routing table and the System Routing Table, the described network equipment passes through all outgoing interfaces to described opposite equip. transmit path probe messages;
The described network equipment determines to arrive the optimal path of described opposite equip. according to the response message of the described path probe messages that receives, and in described interim routing table, dispose the common corresponding route in source IP address and purpose IP address according to this optimal path, carry out message repeating according to this route.
Store in the described interim routing table with the common corresponding route table items in source IP address and purpose IP address in also comprise path cost;
When the described network equipment do not have the assigned ip address communicate by letter with opposite equip. and in described interim routing table lookup to many during with route corresponding to described opposite equip., the described network equipment carries out message repeating according to described path cost selection route.
Store in the described interim routing table with the common corresponding route table items in source IP address and purpose IP address in also comprise destination interface;
Be the route of purpose IP address when having many take described assigned ip address as source IP address, take the IP address of described opposite equip., the described network equipment is further distinguished these many routes according to described destination interface.
Also comprise:
When the disconnecting of the described network equipment and described opposite equip., the described network equipment deletes that all arrive the route of described opposite equip. in the described interim routing table;
The described network equipment passes through all outgoing interfaces to described opposite equip. transmit path probe messages;
The described network equipment determines to arrive the optimal path of described opposite equip. according to the response message of the described path probe messages that receives, and in described interim routing table, dispose the common corresponding route in source IP address and purpose IP address according to this optimal path, carry out message repeating according to this route.
A kind of multi-interface network equipment sends message by a plurality of IP address, and this network equipment comprises:
Memory cell is used for storage system routing table and interim routing table, the common corresponding route in storage and source IP address and purpose IP address in the described interim routing table, and the priority of described interim routing table is higher than described System Routing Table;
Search the unit, be connected with described memory cell, be used for when communicate by letter with opposite equip. in the assigned ip address, in described interim routing table, search take described assigned ip address as source IP address, be take the IP address of described opposite equip. the route of purpose IP address;
Retransmission unit is connected with the described unit of searching, and is used for searching the routing forwarding message that obtains in described interim routing table according to the described unit of searching.
The route table items of storing in the described interim routing table comprises source IP address, purpose IP address, down hop and outbound port.
The described unit of searching also is used for: when described interim routing table is not searched the route that obtains correspondence, further search route in described System Routing Table;
Acquiring unit is connected with the described unit of searching, and is used for obtaining the outgoing interface of searching the route that obtains at described System Routing Table;
Judging unit is connected with described acquiring unit, is used for judging whether the IP address of the outgoing interface that described acquiring unit obtains is identical with described assigned ip address;
Adding device, be connected with described judging unit, be used for when the IP address of the described outgoing interface of described judgment unit judges is not identical with described assigned ip address, interpolation is the route of purpose IP address take described assigned ip address as source IP address, take the IP address of described opposite equip. in described interim routing table;
Described retransmission unit also is used for: be connected with adding device with described judging unit, when the IP address of the described outgoing interface of described judgment unit judges is identical with described assigned ip address, directly according to search the routing forwarding message that obtains in described System Routing Table; When the IP address of the described outgoing interface of described judgment unit judges is not identical with described assigned ip address, according to the routing forwarding message of described adding device interpolation.
Also comprise:
Transmit-Receive Unit, be connected with the described unit of searching, be used for the described unit of searching when described System Routing Table is not searched the route that obtains correspondence, to described opposite equip. transmit path probe messages, and receive the response message of described path probe messages by outgoing interface corresponding to described assigned ip address;
The path acquiring unit is connected with described Transmit-Receive Unit, and the path for the response message of the described path probe messages that receives according to described Transmit-Receive Unit obtains the described opposite equip. of arrival is E-Packeted according to this path by described retransmission unit;
Described adding device also is used for: be connected with described path acquiring unit, to be used for being configured to described assigned ip address according to described path in described interim routing table be source IP address, take the IP address of described opposite equip. as the route of purpose IP address.
When the described network equipment does not have the assigned ip address to communicate by letter with opposite equip.,
The described unit of searching also is used for: search the route corresponding with described opposite equip. in described interim routing table and System Routing Table;
Also comprise Transmit-Receive Unit, be used for when described interim routing table and System Routing Table are not all searched the route that obtains correspondence, to described opposite equip. transmit path probe messages, and receive the response message of described path probe messages by all outgoing interfaces;
Also comprise the path acquiring unit, be connected with described Transmit-Receive Unit, response message for the described path probe messages that receives according to described Transmit-Receive Unit obtains the optimal path that arrives described opposite equip., is E-Packeted according to this optimal path by described retransmission unit;
Described adding device also is used for: be connected with described path acquiring unit, be used for according to described optimal path in described interim routing table configuration source IP address and the common corresponding route in purpose IP address.
Also comprise path cost in the interim routing table of described cell stores with in the common corresponding route table items in source IP address and purpose IP address;
The described unit of searching also is used for: when do not have the assigned ip address communicate by letter with opposite equip. and in described interim routing table lookup to many during with route corresponding to described opposite equip., carry out message repeating according to described path cost selection route.
Also comprise destination interface in the interim routing table of described cell stores with in the common corresponding route table items in source IP address and purpose IP address;
The described unit of searching also is used for: be the route of purpose IP address when having many take described assigned ip address as source IP address, take the IP address of described opposite equip., further search route corresponding to described destination interface.
Also comprise:
Delete cells is connected with described memory cell, when being used for the disconnecting when the described network equipment and described opposite equip., deletes that all arrive the route of described opposite equip. in the described interim routing table.
Compared with prior art, the present invention has the following advantages at least:
Among the present invention, add interim routing table in the multi-interface network equipment, the common corresponding route in storage and source IP address and purpose IP address in this interim routing table, and when communicating by letter with opposite equip. in the assigned ip address, send message by the route in the interim routing table to opposite equip., solved the problem of many interfaces main frame Route Selection confusion; And, among the present invention when not having the assigned ip address to communicate by letter with opposite equip., in interim routing table and System Routing Table, search the route corresponding with opposite equip. successively, when searching unsuccessfully, obtain the optimal path that arrives opposite equip. by probe messages, and in interim routing table, add route corresponding to optimal path, follow-uply communicate by letter with opposite equip. by this optimal path, thereby improve the efficient of message repeating when not having the assigned ip address.
Description of drawings
Fig. 1 is the internetwork connection mode schematic diagram of MIF main frame in the prior art;
Fig. 2 is the file transmitting method schematic flow sheet when specifying the MIF main frame to use a certain address and opposite equip. to communicate among the present invention;
Fig. 3 is the file transmitting method schematic flow sheet when not specifying the MIF main frame to use a certain address and opposite equip. to communicate among the present invention;
Fig. 4 is the structural representation of multi-interface network equipment among the present invention.
Embodiment
In the prior art, the network equipment carries out message repeating by System Routing Table, owing to do not support source IP address information in the System Routing Table, therefore this pass-through mode is not supported to search corresponding routing forwarding message according to source IP address.For multi-interface network equipment, when needs specify source IP address to send message, namely need the assigned source port to send message, can't satisfy this requirement according to existing System Routing Table.In order to overcome the problems referred to above, the present invention provides a kind of interim routing table in multi-interface network equipment, the storage route corresponding with source IP address in this interim routing table, and the priority that this interim routing table is set is higher than System Routing Table, when needs specified source IP address to carry out message repeating, the network equipment was searched this interim routing table and is obtained corresponding routing forwarding message.
Concrete, when in the multi-interface network equipment communicate by letter with opposite equip. in the assigned ip address, the network equipment searches take the assigned ip address as source IP address in interim routing table, take the IP address of opposite equip. as the route of purpose IP address, according to searching the routing forwarding message that obtains; Do not search in described interim routing table when obtaining corresponding route, the described network equipment is further searched route in described System Routing Table, obtain the outgoing interface of searching the route that obtains in described System Routing Table; If the IP address of described outgoing interface is identical with described assigned ip address, the described network equipment is directly according to search the routing forwarding message that obtains in described System Routing Table; If the IP address of described outgoing interface is not identical with described assigned ip address, the described network equipment adds take described assigned ip address as source IP address in described interim routing table, take the IP address of described opposite equip. as the route of purpose IP address, and according to the routing forwarding message of this interpolation.
Wherein, the common corresponding route of storage source address and destination address in the interim routing table, for example, the route table items information in the interim routing table can comprise: source address, destination address, destination interface, down hop, outgoing interface, path cost; The structure of this interim routing table is as shown in table 1:
Table 1
Source address Destination address Destination interface Down hop Outgoing interface Path cost
Src1 Dest1 Port1 GW1 IF1 Metric1
Src2 Dest1 Port2 GW2 IF2 Metric2
The MIF that is recorded as of above-mentioned list item storage uses certain address to arrive certain destination host and host port routing iinformation.Need to prove that the structure of the interim routing table shown in the table 1 only is a concrete implementation, wherein each information can be added or delete according to actual needs flexibly.Destination interface wherein is the port of opposite equip., when needs are specified certain port that arrives opposite equip., then can carry out exact matching according to this list item information; If the destination slogan is 0, then expression does not need to distinguish the route that arrives opposite equip..
Following multi-interface network equipment is described in further detail the file transmitting method that provides among the present invention as an example of the MIF main frame example.Wherein, the scene of the method application comprises following two kinds of situations: specify the MIF main frame to use a certain address (this address refers to the IP address among the present invention) and opposite equip. to communicate and do not specify the MIF main frame to use address (this address refers to the IP address among the present invention) and opposite equip. to communicate.
Paper the first situation, when specifying the MIF main frame to use a certain address and opposite equip. to communicate, as shown in Figure 2, this file transmitting method may further comprise the steps:
Step 201, the MIF main frame is according to the interim routing table of the address lookup of appointment; If having source address in interim routing table is that assigned address and destination address are the route table items of opposite equip. address, then many interfaces main frame mails to the down hop of appointment with message from the appointment outgoing interface according to this list item; If in interim routing table, do not find this list item, then then in System Routing Table, search.
Step 202 when finding corresponding routing iinformation in System Routing Table, judges whether the outgoing interface of this route is identical with the interface at assigned address place; If identical, then according to system's routing forwarding; Otherwise, add a main frame route in interim routing table, according to the route transmission message of this interpolation.
Wherein, the source address of the route of interpolation is the source address of appointment, the IP address that destination address is opposite equip..Be depicted as example with table 1, port in the route of then adding is that opposite equip. and message inbound port, down hop are the gateway of specifying outgoing interface, outgoing interface is the interface at assigned address place, and expense is default value (this default value is the value of interim routing table medium priority minimum).Follow-up message transmissions is transmitted according to the list item that adds in the interim routing table.
Step 203 when not finding corresponding routing iinformation in System Routing Table, during the message failure that perhaps sends to opposite equip., is directly surveyed in the enterprising walking along the street of the interface corresponding with assigned address.
Concrete, the MIF main frame to opposite equip. transmit path probe messages, if do not receive the response message that opposite equip. sends, does not namely have detection to arrive available path by the interface corresponding with assigned address, represents that then opposite equip. is unreachable; If receive the response message that opposite equip. sends, namely detect available path, then to obtain this path and be configured to assigned address in interim routing table be source IP address, take the IP address of opposite equip. as the route of purpose IP address.
In order more clearly to introduce this mode, as an example of the situation shown in Fig. 1 example the method is described:
Since before be connected by N1 between host and the CN, so purpose is that the routing iinformation of CN is as shown in table 2 in the routing table of system:
Table 2
The purpose network The purpose netmask Down hop Outgoing interface
IP3 NetMask GW1 I1
When upper layer application selects IP2 to connect IP3 as source address, search first interim routing table this moment, owing to do not carry out connection before, there is not occurrence in the therefore interim routing table; Then the inquiry system routing table is mated list item such as table 1, yet when checking outgoing interface, finds not mate (outgoing interface that IP2 is corresponding is I2, and the outgoing interface in the System Routing Table is I1); Therefore need to add a record in the routing table when prison, so that the message in this connection can send from the I2 interface, the list item of interpolation is as shown in table 3:
Table 3
Source address Destination address Destination interface Down hop Outgoing interface Expense
IP2 IP3 dstPort GW2 I2 Metric2
Message from IP2 to the IP3dstPort port all can mate this list item and sends via the I2 interface afterwards.
The below introduces the second situation, and when not specifying the MIF main frame to use a certain address and opposite equip. to communicate, as shown in Figure 3, this file transmitting method may further comprise the steps:
Step 301, MIF main frame are searched the route that arrives opposite equip. successively in interim routing table and System Routing Table; When having the route of mating with described opposite equip. in the interim routing table, execution in step 302; Otherwise execution in step 303.
Need to prove, when specifying the MIF main frame to use a certain address and opposite equip. to communicate, the MIF main frame is searched the route corresponding with assigned address and opposite equip. address while in interim routing table, when not specifying the MIF main frame to use a certain address and opposite equip. to communicate, the MIF main frame is only searched the route corresponding with the opposite equip. address in interim routing table, do not consider the effect of source IP address in the interim routing table.At this moment, if the route corresponding with the opposite equip. address has many in the interim routing table, then select a route, for example route of selecting paths expense minimum according to the path cost of many routes.
Step 302 sends message according to search the route that obtains in described interim routing table to described opposite equip..
Step 303, the route of inquiry and described opposite equip. coupling in System Routing Table, execution in step 304 during successful inquiring; Otherwise execution in step 305.
Step 304 sends message according to search the route that obtains in System Routing Table to opposite equip..
Step 305, all of the port by the MIF main frame sends probe messages to opposite equip., obtains the optimal path that arrives opposite equip., and optimal path is added in the interim routing table.
Concrete, the network detection mode is for using successively the address of each interface, designated port toward opposite equip. sends ICMP (Internet Control Message Protocol, ICMP) probe messages, the MIF main frame is according to the icmp packet that returns, judge the network condition (jumping figure between each interface and destination node, time-delay etc.), then according to network condition, select optimal path (expense is minimum), expense wherein is by jumping figure, the information calculations such as time-delay, for example expense=other criterions of jumping figure * weight 1+ time-delay * weight 2+; In interim routing table, add this optimal path afterwards.
In order more clearly to introduce this mode, as an example of the situation shown in Fig. 1 example the method is described: 1 System Routing Table is as shown in table 4:
The purpose network The purpose netmask Down hop Outgoing interface
IP3 NetMask GW1 I1
Interim routing table is empty.Successively inquire about interim routing table, System Routing Table when initiating with being connected of node CN when upper layer application this moment, and finding has occurrence in the System Routing Table, therefore selects the I1 interface toward CN initiation connection according to this routing iinformation; After connecting foundation, the MIF main frame begins directly to survey in the enterprising walking along the street of total interface, behind the routing information that gets access on I1 and the I2, compare, if find the I2 path be better than I1 (as jumping figure still less or time-delay still less wait), then interpolation is as shown in table 5 in interim routing table, and the packet that mails to afterwards the IP3dstPort port all sends outward via the I2 interface.
Table 5
Source address Destination address Destination interface Down hop Outgoing interface Expense
IP2 IP3 dstPort GW2 I2 Metric2
In addition, when MIF main frame during with extraneous disconnecting, process as follows: when disconnecting occurring, at first delete all arrive extraneous node in interim routing table paths; Then begin directly to survey in the enterprising walking along the street of total interface, the path detection process is identical with above-mentioned path management; The MIF main frame is selected optimal path according to the path network situation of returning; Add this optimal path in interim routing table, afterwards application can connect by this path when reconnecting.
Need to prove, in the method provided by the invention, can also be in multi-interface network equipment the deploy switch function, be used for control and whether start interim routing table query function.If do not need to start interim routing table query function, then the direct seeking system routing table of multi-interface network equipment is carried out message repeating, and after starting interim routing table query function, multi-interface network equipment is preferentially searched interim routing table and carried out message repeating.
By adopting method provided by the invention, add interim routing table in the multi-interface network equipment, the common corresponding route in storage and source IP address and purpose IP address in this interim routing table, and when communicating by letter with opposite equip. in the assigned ip address, send message by the route in the interim routing table to opposite equip., solved the problem of many interfaces main frame Route Selection confusion; And, among the present invention when not having the assigned ip address to communicate by letter with opposite equip., in interim routing table and System Routing Table, search the route corresponding with opposite equip. successively, when searching unsuccessfully, obtain the optimal path that arrives opposite equip. by probe messages, and in interim routing table, add route corresponding to optimal path, follow-uply communicate by letter with opposite equip. by this optimal path, thereby improve the efficient of message repeating when not having the assigned ip address.
The invention provides a kind of multi-interface network equipment, send message by a plurality of IP address, as shown in Figure 4, this network equipment comprises:
Memory cell 11 is used for storage system routing table and interim routing table, the common corresponding route in storage and source IP address and purpose IP address in the described interim routing table, and the priority of described interim routing table is higher than described System Routing Table.The route table items of storing in the described interim routing table comprises source IP address, purpose IP address, down hop and outbound port.
Search unit 12, be connected with described memory cell 11, be used for when communicate by letter with opposite equip. in the assigned ip address, in described interim routing table, search take described assigned ip address as source IP address, be take the IP address of described opposite equip. the route of purpose IP address.
Retransmission unit 13 is connected with the described unit 12 of searching, and is used for searching the routing forwarding message that obtains in described interim routing table according to the described unit of searching.
The described unit 12 of searching also is used for: when described interim routing table is not searched the route that obtains correspondence, further search route in described System Routing Table; Accordingly, this equipment also comprises acquiring unit 14, is connected with the described unit 12 of searching, and is used for obtaining the outgoing interface of searching the route that obtains at described System Routing Table; Judging unit 15 is connected with described acquiring unit 14, is used for judging whether the IP address of the outgoing interface that described acquiring unit 14 obtains is identical with described assigned ip address; Adding device 16, be connected with described judging unit 15, be used for when the IP address that described judging unit 15 is judged described outgoing interface is not identical with described assigned ip address, interpolation is the route of purpose IP address take described assigned ip address as source IP address, take the IP address of described opposite equip. in described interim routing table; Described retransmission unit 13 also is used for: are connected with adding device with described judging unit 15 and are connected, when the IP address that described judging unit 15 is judged described outgoing interface is identical with described assigned ip address, directly according in described System Routing Table, searching the routing forwarding message that obtains; When the IP address that described judging unit 15 is judged described outgoing interface is not identical with described assigned ip address, according to the routing forwarding message of described adding device 16 interpolations.
This equipment can also comprise:
Transmit-Receive Unit 17, be connected with the described unit 12 of searching, be used for the described unit 12 of searching when described System Routing Table is not searched the route that obtains correspondence, to described opposite equip. transmit path probe messages, and receive the response message of described path probe messages by outgoing interface corresponding to described assigned ip address;
Accordingly, this equipment can also comprise path acquiring unit 18, be connected with described Transmit-Receive Unit 17, the path for the response message of the described path probe messages that receives according to described Transmit-Receive Unit 17 obtains the described opposite equip. of arrival is E-Packeted according to this path by described retransmission unit 13; Described adding device 16 also is used for: be connected with described path acquiring unit 18, to be used for being configured to described assigned ip address according to described path in described interim routing table be source IP address, take the IP address of described opposite equip. as the route of purpose IP address.
When the described network equipment does not have the assigned ip address to communicate by letter with opposite equip.,
The described unit 12 of searching also is used for: search the route corresponding with described opposite equip. in described interim routing table and System Routing Table; Accordingly, Transmit-Receive Unit 17 is used for when described interim routing table and System Routing Table are not all searched the route that obtains correspondence, to described opposite equip. transmit path probe messages, and receives the response message of described path probe messages by all outgoing interfaces; Path acquiring unit 18 is connected with described Transmit-Receive Unit 17, and the response message that is used for the described path probe messages that receives according to described Transmit-Receive Unit obtains the optimal path that arrives described opposite equip., is E-Packeted according to this optimal path by described retransmission unit; Described adding device 16 also is used for: be connected with described path acquiring unit 18, be used for according to described optimal path in described interim routing table configuration source IP address and the common corresponding route in purpose IP address.
Also comprise path cost in the interim routing table of described memory cell 11 storages with in the common corresponding route table items in source IP address and purpose IP address; The described unit 12 of searching also is used for: when do not have the assigned ip address communicate by letter with opposite equip. and in described interim routing table lookup to many during with route corresponding to described opposite equip., carry out message repeating according to described path cost selection route.
Also comprise destination interface in the interim routing table of described memory cell 11 storages with in the common corresponding route table items in source IP address and purpose IP address; The described unit 12 of searching also is used for: be the route of purpose IP address when having many take described assigned ip address as source IP address, take the IP address of described opposite equip., further search route corresponding to described destination interface.
Also comprise:
Delete cells 19 is connected with described memory cell 11, when being used for the disconnecting when the described network equipment and described opposite equip., deletes that all arrive the route of described opposite equip. in the described interim routing table.
By adopting multi-interface network equipment provided by the invention, add interim routing table in the multi-interface network equipment, the common corresponding route in storage and source IP address and purpose IP address in this interim routing table, and when communicating by letter with opposite equip. in the assigned ip address, send message by the route in the interim routing table to opposite equip., solved the problem of many interfaces main frame Route Selection confusion; And, among the present invention when not having the assigned ip address to communicate by letter with opposite equip., multi-interface network equipment is searched the route corresponding with opposite equip. successively in interim routing table and System Routing Table, when searching unsuccessfully, obtain the optimal path that arrives opposite equip. by probe messages, and in interim routing table, add route corresponding to optimal path, follow-uply communicate by letter with opposite equip. by this optimal path, thereby improve the efficient of message repeating when not having the assigned ip address.。
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 in 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 computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number does not represent the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (16)

1. the file transmitting method of a multi-interface network equipment, the described network equipment sends message by a plurality of IP address, it is characterized in that, described network equipments configuration has System Routing Table and interim routing table, the common corresponding route in storage and source IP address and purpose IP address in the described interim routing table, the priority of described interim routing table is higher than described System Routing Table, and the method comprises:
When communicate by letter with opposite equip. in described network equipment assigned ip address, the described network equipment searches in described interim routing table take described assigned ip address as source IP address, take the IP address of described opposite equip. as the route of purpose IP address;
The described network equipment is according to searching the routing forwarding message that obtains.
2. the method for claim 1 is characterized in that, the route table items of storing in the described interim routing table comprises source IP address, purpose IP address, down hop and outgoing interface.
3. method as claimed in claim 2 is characterized in that, also comprises:
Do not search in described interim routing table when obtaining corresponding route, the described network equipment is further searched route in described System Routing Table;
The described network equipment obtains the outgoing interface of searching the route that obtains in described System Routing Table;
If the IP address of described outgoing interface is identical with described assigned ip address, the described network equipment is directly according to search the routing forwarding message that obtains in described System Routing Table;
If the IP address of described outgoing interface is not identical with described assigned ip address, the described network equipment adds take described assigned ip address as source IP address in described interim routing table, take the IP address of described opposite equip. as the route of purpose IP address, and according to the routing forwarding message of this interpolation.
4. method as claimed in claim 3 is characterized in that, the described network equipment also comprises after further searching route in described System Routing Table:
When in described System Routing Table, not searching when obtaining corresponding route or sending the message failure to described opposite equip., the described network equipment by outgoing interface corresponding to described assigned ip address to described opposite equip. transmit path probe messages;
The described network equipment is according to the response message of the described path probe messages that receives, to be configured to described assigned ip address according to the response message of the described path probe messages that receives in described interim routing table be source IP address, take the IP address of described opposite equip. as the route of purpose IP address, and according to this routing forwarding message.
5. such as each described method of claim 1-4, it is characterized in that, also comprise:
When the described network equipment did not have the assigned ip address to communicate by letter with opposite equip., the described network equipment was searched the route corresponding with described opposite equip. in described interim routing table and System Routing Table;
When all not searching the route that obtains correspondence in described interim routing table and the System Routing Table, the described network equipment passes through all outgoing interfaces to described opposite equip. transmit path probe messages;
The described network equipment determines to arrive the optimal path of described opposite equip. according to the response message of the described path probe messages that receives, and in described interim routing table, dispose the common corresponding route in source IP address and purpose IP address according to this optimal path, carry out message repeating according to this route.
6. method as claimed in claim 5 is characterized in that, store in the described interim routing table with the common corresponding route table items in source IP address and purpose IP address in also comprise path cost;
When the described network equipment do not have the assigned ip address communicate by letter with opposite equip. and in described interim routing table lookup to many during with route corresponding to described opposite equip., the described network equipment carries out message repeating according to described path cost selection route.
7. such as each described method of claim 1-4, it is characterized in that, store in the described interim routing table with the common corresponding route table items in source IP address and purpose IP address in also comprise destination interface;
Be the route of purpose IP address when having many take described assigned ip address as source IP address, take the IP address of described opposite equip., the described network equipment is further distinguished these many routes according to described destination interface.
8. such as each described method of claim 1-4, it is characterized in that, also comprise:
When the disconnecting of the described network equipment and described opposite equip., the described network equipment deletes that all arrive the route of described opposite equip. in the described interim routing table;
The described network equipment passes through all outgoing interfaces to described opposite equip. transmit path probe messages;
The described network equipment determines to arrive the optimal path of described opposite equip. according to the response message of the described path probe messages that receives, and in described interim routing table, dispose the common corresponding route in source IP address and purpose IP address according to this optimal path, carry out message repeating according to this route.
9. a multi-interface network equipment sends message by a plurality of IP address, it is characterized in that this network equipment comprises:
Memory cell is used for storage system routing table and interim routing table, the common corresponding route in storage and source IP address and purpose IP address in the described interim routing table, and the priority of described interim routing table is higher than described System Routing Table;
Search the unit, be connected with described memory cell, be used for when communicate by letter with opposite equip. in the assigned ip address, in described interim routing table, search take described assigned ip address as source IP address, be take the IP address of described opposite equip. the route of purpose IP address;
Retransmission unit is connected with the described unit of searching, and is used for searching the routing forwarding message that obtains in described interim routing table according to the described unit of searching.
10. multi-interface network equipment as claimed in claim 9 is characterized in that, the route table items of storing in the described interim routing table comprises source IP address, purpose IP address, down hop and outbound port.
11. multi-interface network equipment as claimed in claim 9 is characterized in that,
The described unit of searching also is used for: when described interim routing table is not searched the route that obtains correspondence, further search route in described System Routing Table;
Acquiring unit is connected with the described unit of searching, and is used for obtaining the outgoing interface of searching the route that obtains at described System Routing Table;
Judging unit is connected with described acquiring unit, is used for judging whether the IP address of the outgoing interface that described acquiring unit obtains is identical with described assigned ip address;
Adding device, be connected with described judging unit, be used for when the IP address of the described outgoing interface of described judgment unit judges is not identical with described assigned ip address, interpolation is the route of purpose IP address take described assigned ip address as source IP address, take the IP address of described opposite equip. in described interim routing table;
Described retransmission unit also is used for: be connected with adding device with described judging unit, when the IP address of the described outgoing interface of described judgment unit judges is identical with described assigned ip address, directly according to search the routing forwarding message that obtains in described System Routing Table; When the IP address of the described outgoing interface of described judgment unit judges is not identical with described assigned ip address, according to the routing forwarding message of described adding device interpolation.
12. multi-interface network equipment as claimed in claim 11 is characterized in that, also comprises:
Transmit-Receive Unit, be connected with the described unit of searching, be used for the described unit of searching when described System Routing Table is not searched the route that obtains correspondence, to described opposite equip. transmit path probe messages, and receive the response message of described path probe messages by outgoing interface corresponding to described assigned ip address;
The path acquiring unit is connected with described Transmit-Receive Unit, and the path for the response message of the described path probe messages that receives according to described Transmit-Receive Unit obtains the described opposite equip. of arrival is E-Packeted according to this path by described retransmission unit;
Described adding device also is used for: be connected with described path acquiring unit, to be used for being configured to described assigned ip address according to described path in described interim routing table be source IP address, take the IP address of described opposite equip. as the route of purpose IP address.
13. multi-interface network equipment as claimed in claim 11 is characterized in that, when the described network equipment does not have the assigned ip address to communicate by letter with opposite equip.,
The described unit of searching also is used for: search the route corresponding with described opposite equip. in described interim routing table and System Routing Table;
Also comprise Transmit-Receive Unit, be used for when described interim routing table and System Routing Table are not all searched the route that obtains correspondence, to described opposite equip. transmit path probe messages, and receive the response message of described path probe messages by all outgoing interfaces;
Also comprise the path acquiring unit, be connected with described Transmit-Receive Unit, response message for the described path probe messages that receives according to described Transmit-Receive Unit obtains the optimal path that arrives described opposite equip., is E-Packeted according to this optimal path by described retransmission unit;
Described adding device also is used for: be connected with described path acquiring unit, be used for according to described optimal path in described interim routing table configuration source IP address and the common corresponding route in purpose IP address.
14. multi-interface network equipment as claimed in claim 13 is characterized in that, also comprises path cost in the interim routing table of described cell stores with in the common corresponding route table items in source IP address and purpose IP address;
The described unit of searching also is used for: when do not have the assigned ip address communicate by letter with opposite equip. and in described interim routing table lookup to many during with route corresponding to described opposite equip., carry out message repeating according to described path cost selection route.
15. such as each described multi-interface network equipment of claim 9-14, it is characterized in that, also comprise destination interface in the interim routing table of described cell stores with in the common corresponding route table items in source IP address and purpose IP address;
The described unit of searching also is used for: be the route of purpose IP address when having many take described assigned ip address as source IP address, take the IP address of described opposite equip., further search route corresponding to described destination interface.
16. such as each described multi-interface network equipment of claim 9-14, it is characterized in that, also comprise:
Delete cells is connected with described memory cell, when being used for the disconnecting when the described network equipment and described opposite equip., deletes that all arrive the route of described opposite equip. in the described interim routing table.
CN2010102221693A 2010-07-09 2010-07-09 Multi-interface network equipment and message transmitting method of multi-interface network equipment Expired - Fee Related CN101883160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102221693A CN101883160B (en) 2010-07-09 2010-07-09 Multi-interface network equipment and message transmitting method of multi-interface network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102221693A CN101883160B (en) 2010-07-09 2010-07-09 Multi-interface network equipment and message transmitting method of multi-interface network equipment

Publications (2)

Publication Number Publication Date
CN101883160A CN101883160A (en) 2010-11-10
CN101883160B true CN101883160B (en) 2013-03-20

Family

ID=43055042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102221693A Expired - Fee Related CN101883160B (en) 2010-07-09 2010-07-09 Multi-interface network equipment and message transmitting method of multi-interface network equipment

Country Status (1)

Country Link
CN (1) CN101883160B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255814A (en) * 2011-08-02 2011-11-23 华为技术有限公司 Method, device and system for selecting transfer path
US8995443B2 (en) 2012-07-31 2015-03-31 Qualcomm Incorporated Address resolution mechanism for hybrid communication networks
CN103001877A (en) * 2012-12-11 2013-03-27 太仓市同维电子有限公司 Data binding method for home gateway product
GB2525054B (en) * 2013-11-26 2020-12-30 Pismo Labs Technology Ltd Methods and systems for processing internet protocol packets
CN104092610B (en) * 2014-07-28 2017-09-15 新华三技术有限公司 A kind of ospf neighbours method for building up and device
CN106559246B (en) * 2015-09-30 2020-01-10 新华三技术有限公司 Cluster implementation method and server
US10148618B2 (en) * 2016-06-07 2018-12-04 Abb Schweiz Ag Network isolation
CN111083053A (en) * 2018-10-22 2020-04-28 普天信息技术有限公司 Electronic stop board system and control method
CN110138660B (en) * 2019-06-06 2020-03-03 杭州商湾网络科技有限公司 Multi-outlet routing method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1829197A (en) * 2006-04-14 2006-09-06 迈普(四川)通信技术有限公司 Method for dynamically selecting outlet pathway
CN101499958A (en) * 2008-02-01 2009-08-05 华为技术有限公司 Method, system and routing device for implementing sub-interface by high-speed physical interface
CN101594658A (en) * 2009-07-10 2009-12-02 浙江大学 802.11 multi-interface wideband wireless mesh network method for routing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1829197A (en) * 2006-04-14 2006-09-06 迈普(四川)通信技术有限公司 Method for dynamically selecting outlet pathway
CN101499958A (en) * 2008-02-01 2009-08-05 华为技术有限公司 Method, system and routing device for implementing sub-interface by high-speed physical interface
CN101594658A (en) * 2009-07-10 2009-12-02 浙江大学 802.11 multi-interface wideband wireless mesh network method for routing

Also Published As

Publication number Publication date
CN101883160A (en) 2010-11-10

Similar Documents

Publication Publication Date Title
CN101883160B (en) Multi-interface network equipment and message transmitting method of multi-interface network equipment
US5802316A (en) Routers connecting LANs through public network
CN101599899B (en) Access method employing network address translation (NAT) device for supporting multi-networking and device thereof
KR101215208B1 (en) Outbound transmission of packet based on routing search key constructed from packet destination address and outbound interface
US9525631B2 (en) Packet forwarding method, apparatus, and system
CN102347905B (en) Network equipment and forwarded information updating method
CN108718278B (en) Message transmission method and device
CN101729427A (en) Multilink load sharing and routing method and router
CN106470158B (en) Message forwarding method and device
CN102148767A (en) Network address translation (NAT)-based data routing method and device
CN101009662A (en) Message processing method, system and device based on the load balance technology
CN103139075B (en) A kind of message transmitting method and equipment
CN101771604B (en) Routing detection method, system and intermediate routing device
CN102447639B (en) A kind of policy routing method and device
CN101827039B (en) Method and equipment for load sharing
CN102946356A (en) CB-PE (controlling bridge-port extender) network-based multicast message transmitting method and device
CN102035900A (en) NAT (network address translation) traversal method, system and relay server by relay mode
CN105991793B (en) The method and apparatus of message forwarding
CN107070790B (en) Route learning method and routing equipment
CN104486224A (en) Routing learning method and equipment
CN102201996B (en) Method and equipment for forwarding message in network address translation (NAT) environment
CN109728972A (en) It is connected to the network detection method and device
CN102118313B (en) Method and device for detecting internet protocol (IP) address
CN101594301B (en) Method and device for processing message
CN104780105A (en) Message forwarding method, routing bridge and forwarding chip

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130320

Termination date: 20200709

CF01 Termination of patent right due to non-payment of annual fee