CN102868622A - Three-layer network forwarding device and implement method thereof - Google Patents

Three-layer network forwarding device and implement method thereof Download PDF

Info

Publication number
CN102868622A
CN102868622A CN2012103995667A CN201210399566A CN102868622A CN 102868622 A CN102868622 A CN 102868622A CN 2012103995667 A CN2012103995667 A CN 2012103995667A CN 201210399566 A CN201210399566 A CN 201210399566A CN 102868622 A CN102868622 A CN 102868622A
Authority
CN
China
Prior art keywords
module
arp
memory space
layer network
mac address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012103995667A
Other languages
Chinese (zh)
Other versions
CN102868622B (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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201210399566.7A priority Critical patent/CN102868622B/en
Publication of CN102868622A publication Critical patent/CN102868622A/en
Application granted granted Critical
Publication of CN102868622B publication Critical patent/CN102868622B/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 belongs to a network routing forwarding device and particularly relates to a three-layer network forwarding device and an implement method thereof. The three-layer network forwarding device comprises a package-receiving driving module, a system protocol stack module, a routing configuration module and an address resolution logic module, wherein the system protocol stack module comprises an address resolution protocol (arp) submodule, the package-receiving driving module is connected with the system protocol stack module, and the address resolution logic module is respectively connected with the package-receiving driving module, the system protocol stack module and the routing configuration module; and media access control (mac) address learning table storing space is arranged in the address resolution logic module and acquires arp package information and forwarding port information corresponding to the arp package information through the package-receiving driving module and the system protocol stack module. The three-layer network forwarding device and the implement method have the advantages that by means of an independent module, correction of a forwarding port is guaranteed, and simultaneously, problems of resource wasting and large coupling degrees among the modules in existing technical schemes are solved.

Description

A kind of three-layer network forwarding unit and its implementation
Technical field
The present invention relates to a kind of network routing forwarding equipment, relate in particular to a kind of three-layer network forwarding unit and its implementation.
Background technology
At present the exchange chip solution of main flow can find down hop according to the purpose IP of IP message in relating to three layers of main frame routing procedure, changed two layers of packet header after, need upper layer software (applications) to specify outbound port.Defective on this flow process can not cause problem in the ordinary course of things, but in case when migration occurs in the physical port on equipment of end host, the routing forwarding of this terminal will be interrupted, because the route table items in the exchange chip can not change, appoint so and can go out from original port through the message behind two layers of packet header of replacement.
Some methods that adopted this scheme to realize that the company of three layer functions processes this defective are, in operating system protocol stack arp cache tables, add a port field, be used for recording the arp bag of this arp list item of generation from which physical port of exchange chip, even if variation has occured in the physical location of terminal like this, protocol stack just can be learnt according to the change of port field at once, then can notification application re-issue configuration, the physical location of this terminal is upgraded.
A huge problem of the method is the degree of coupling that has increased greatly system, according to ISO network hierarchy principle, the arp list item is positioned at network layer, and physical port belongs to link layer, now the physical port field is placed the arp list item, in fact the configuration of link layer and network layer have been coupling in together, the problem performance that its degree of coupling is brought is as follows:
1, can act on behalf of the corresponding port data message of arp information the network segment except gateway by record, and in fact not be that all arp list items all need to record port, cause the waste in the utilization of resources.
If 2 operating systems do not allow to change protocol stack, will so that this scheme can't be implemented, cause can't compatiblely using of product.
3, be unfavorable for cutting out of software, when system does not need three layered schemes, must change again protocol stack, cause the inconvenience in the use.
Summary of the invention
For the existing defective of prior art, a kind of three-layer network forwarding unit that is intended to address the above problem and the technical scheme of its implementation now are provided, concrete technical scheme is as follows:
A kind of three-layer network forwarding unit, comprise and drive packet receiving module, system protocol stack module, routing configuration module, described system protocol stack module comprises the arp submodule, described driving packet receiving module is connected with described system protocol stack module, wherein, also comprise the address resolution logic module, described address resolution logic module is connected with the routing configuration module with described driving packet receiving module, system protocol stack module respectively; Be provided with mac address learning list memory space in the described address resolution logic module, described mac address learning list memory space obtains described arp package informatin and the forwarding port information corresponding with described arp package informatin by described driving packet receiving module and system protocol stack module; Described mac address learning list memory space comprises IP data space, mac address date memory space, transmits the port data memory space.
Above-mentioned three-layer network forwarding unit, wherein, the interior arp package informatin of the network segment that routing gateway is acted on behalf of that described mac address learning list memory space records described three-layer network forwarding unit reaches the forwarding port information corresponding with described arp bag.
Above-mentioned three-layer network forwarding unit, wherein, described mac address learning list memory space also comprises the virtual LAN data memory space.
Above-mentioned three-layer network forwarding unit, wherein, the mac address learning list memory space in the described address resolution logic and described arp submodule are aging synchronously.
The implementation method that a kind of three-layer network is transmitted wherein, comprises above-mentioned three-layer network forwarding unit, specifically comprises the steps:
Step 1, described three-layer network forwarding unit receive the arp bag by described driving packet receiving module;
Step 2, described address resolution logic module are called the arp submodule and are resolved IP address in the described arp bag whether in the network segment that the routing gateway of described three-layer network forwarding unit is acted on behalf of; If not, then described address resolution logic module sends to system protocol stack module with described arp bag, if so, then enters step 3;
Step 3, described address resolution logic module will be wrapped each field through the arp that described arp submodule is resolved and be inserted in the described mac address learning list memory space, described address resolution logic module obtains the forwarding port information corresponding with described arp bag from drive the packet receiving module simultaneously, write in the described mac address learning list memory space, and send to protocol stack module;
Step 4, described address resolution logic module send the data message in the described mac address learning list memory space to described routing configuration information, forwarding arranges to route by described routing configuration module, and described three-layer network forwarding unit carries out the forwarding of data according to the setting of routing configuration module.
The implementation method that above-mentioned three-layer network is transmitted, wherein, described step 3 also comprises step 3.1, in the mac information in the described arp bag has been present in mac address date memory space in the described mac address learning list memory space, and when corresponding forwarding port data was inconsistent in the forwarding port information that described arp bag is corresponding and the forwarding port data memory space of described mac information in mac address learning list memory space, described address resolution logic module covered former data message with new data information; Step 3.2, described address resolution logic module will it is believed that newly that breath notifies described routing configuration module, re-issue corresponding main frame route entry by described routing configuration module.
The beneficial effect of technique scheme is:
The technical program is by setting up after one independently module has guaranteed that the physical port on the equipment of end host moves, equipment can be selected correct forwarding port according to the port information after changing, simultaneously need not change kernel protocol stack, but and has a cutting row, greatly saved resource, reduced module coupling degree, be beneficial to software and cut out and reuse.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the structural representation of the embodiment of a kind of three-layer network forwarding unit of the present invention;
Fig. 2 is the schematic flow sheet of the embodiment of a kind of three-layer network retransmission method of the present invention.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments, but not as limiting to the invention.
Be illustrated in figure 1 as the structural representation of the embodiment of a kind of three-layer network forwarding unit of the present invention, comprise and drive packet receiving module, system protocol stack module, routing configuration module, system protocol stack module comprises the arp submodule, driving the packet receiving module is connected with the arp submodule, also comprise the address resolution logic module, the address resolution logic module is connected with the routing configuration module with driving packet receiving module, arp submodule respectively.But by use a new cutting standalone module address resolution logic module, can carry out effectively record to arp information in the arp bag of collecting, driving packet receiving module in can driving by exchange chip simultaneously obtains this arp and wraps corresponding forwarding port information, when the physical port of main frame route terminal changes, can in time obtain the relevant information that port changes, thereby cover the data message of original record, and with this lastest imformation by the notice form inform the routing configuration module, by the routing configuration module this is made and to reconfigure, upgrade the physical port of this terminal, guaranteed the correctness of routing forwarding.
By adopting the technical program, can carry out two layers of exchange according to next hop address and identify port, even after the physical port on the equipment of end host moves, equipment can be selected correct forwarding port according to the port information after changing.Simultaneously, because what adopt is module independently, therefore can in the situation of not changing protocol stack, realize above-mentioned functions, greatly reduce the consumption of resource and the degree of coupling between the module, and avoided the incompatible situation of product occurring owing to changing protocol stack.
In the specific embodiment of a kind of three-layer network forwarding unit of the present invention, arp package informatin in the network segment that routing gateway is acted on behalf of of mac address learning list memory space record three-layer network forwarding unit and the forwarding port information corresponding with the arp bag, rather than record information in arp bag that all receive and the forwarding port information of its correspondence, therefore can play to resource the effect of reasonably optimizing, effectively reduce the waste of resource.
In the specific embodiment of a kind of three-layer network forwarding unit of the present invention, mac address learning list memory space in the address resolution logic module and arp submodule are aging synchronously, realized the synchronism of arp module and address resolution logic module, prevent because the two is inconsistent, and may cause the generation of routing iinformation record conflict situations.
Be provided with mac address learning list memory space in the address resolution logic module, mac address learning list memory space obtains arp package informatin and the forwarding port information corresponding with the arp package informatin by driving packet receiving module and arp submodule.Mac address learning list memory space comprises IP data space, mac address date memory space, transmits the port data memory space.According to the applicable cases of reality, also can in mac address learning list memory space, add the vlan(VLAN) data space, to further expand the function and application scope of address resolution logic module.
As shown in Figure 2, the implementation method for a kind of three-layer network of the present invention is transmitted comprises above-mentioned three-layer network forwarding unit, and it specifically comprises the steps:
Step 1, three-layer network forwarding unit receive the arp bag by driving the packet receiving module, and by the address resolution logic module it are filtered;
Step 2, address resolution logic module call the arp submodule resolve this packet whether the IP address in arp bag and the arp bag whether in the network segment that the routing gateway of three-layer network forwarding unit is acted on behalf of; If not in the network segment, then the address resolution logic module sends to system protocol stack module with the arp bag, carries out the usual operation of follow-up data bag, if do not exist, then enters step 3;
Step 3, address resolution logic module will be wrapped each field through the arp that the arp submodule is resolved and be inserted in the mac address learning list memory space, the address resolution logic module obtains the forwarding port information corresponding with the arp bag from drive the packet receiving module simultaneously, write in the mac address learning list memory space, and send to protocol stack module and do subsequent operation;
Step 4, address resolution logic module send the data message in the mac address learning list memory space to the routing configuration module, forwarding arranges to route by the routing configuration module, and the three-layer network forwarding unit carries out the forwarding of data according to the setting of routing configuration module;
Step 5, in the mac information in the arp bag has been present in mac address memory space in the mac address learning list memory space, and when corresponding forwarding port data was inconsistent in the forwarding port information that the arp bag is corresponding and the forwarding port data memory space of mac information in mac address learning list memory space, the address resolution logic module covered former data message with new data information; The end host that so just can in time change originating port carries out timely port data renewal, has avoided the mistake of port repeat;
Step 6, address resolution logic module send to the routing configuration module with the new data information in the mac address learning list memory space, forwarding arranges to route by the routing configuration module, and the three-layer network forwarding unit carries out the forwarding of data according to the setting of routing configuration module.
This module can be carried out separately flexibly, does not rely on concrete operating system and protocol stack version.If other exchange scheme has same defective, also can solve, support three layers of main frame route and adopt in the system of scheme of Botong and can use at all, and can seamlessly be generalized on other the like product, have broad application prospects.
The above only is preferred embodiment of the present invention; be not so restriction embodiments of the present invention and protection range; to those skilled in the art; should recognize that being equal to that all utilizations specification of the present invention and diagramatic content done replace and the resulting scheme of apparent variation, all should be included in protection scope of the present invention.

Claims (6)

1. a three-layer network forwarding unit comprises driving packet receiving module, system protocol stack module, routing configuration module, and described system protocol stack module comprises the arp submodule, and described driving packet receiving module is connected with described arp submodule, it is characterized in that,
Also comprise the address resolution logic module, described address resolution logic module is connected with described driving packet receiving module, described system protocol stack module and the routing configuration module of being connected respectively;
Be provided with mac address learning list memory space in the described address resolution logic module, described mac address learning list memory space obtains described arp package informatin and the forwarding port information corresponding with described arp package informatin by described driving packet receiving module and system protocol stack module;
Described mac address learning list memory space comprises IP data space IP data space, mac address date memory space, transmits the port data memory space.
2. three-layer network forwarding unit as claimed in claim 1, it is characterized in that the interior arp package informatin of the network segment that routing gateway is acted on behalf of that described mac address learning list memory space records described three-layer network forwarding unit reaches the forwarding port information corresponding with described arp bag.
3. three-layer network forwarding unit as claimed in claim 1 is characterized in that, described mac address learning list memory space also comprises the vlan data space.
4. three-layer network forwarding unit as claimed in claim 1 is characterized in that, the mac address learning list memory space in the described address resolution logic module and described arp submodule are aging synchronously.
5. the implementation method that three-layer network is transmitted is characterized in that, comprises such as the described three-layer network forwarding unit of claim 1~4, specifically comprises the steps:
Step 1, described three-layer network forwarding unit receive the arp bag by described driving packet receiving module;
Step 2, described address resolution logic module are called the arp submodule and are resolved IP address in the described arp bag whether in the network segment that the routing gateway of described three-layer network forwarding unit is acted on behalf of; If not, then described address resolution logic module sends to system protocol stack module with described arp bag, if so, then enters step 3;
Step 3, described address resolution logic module will be wrapped each field through the arp that described arp submodule is resolved and be inserted in the described mac address learning list memory space, described address resolution logic module obtains the forwarding port information corresponding with described arp bag from drive the packet receiving module simultaneously, write in the described mac address learning list memory space, and send to system protocol stack module;
Step 4, described address resolution logic module send the data message in the described mac address learning list memory space to described routing configuration information, forwarding arranges to route by described routing configuration module, and described three-layer network forwarding unit carries out the forwarding of data according to the setting of routing configuration module.
6. the implementation method transmitted of three-layer network as claimed in claim 5, it is characterized in that, described step 3 also comprises step 3.1, in the mac information in the described arp bag has been present in mac address date memory space in the described mac address learning list memory space, and when forwarding port information corresponding to described arp bag and described mac information corresponding forwarding port data in mac address learning list memory space was inconsistent, described address resolution logic module covered former data message with new data information;
Step 3.2, described address resolution logic module will it is believed that newly that breath notifies described routing configuration module, re-issue corresponding main frame route entry by described routing configuration module.
CN201210399566.7A 2012-10-19 2012-10-19 A kind of three-layer network forwarding unit and its implementation Expired - Fee Related CN102868622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210399566.7A CN102868622B (en) 2012-10-19 2012-10-19 A kind of three-layer network forwarding unit and its implementation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210399566.7A CN102868622B (en) 2012-10-19 2012-10-19 A kind of three-layer network forwarding unit and its implementation

Publications (2)

Publication Number Publication Date
CN102868622A true CN102868622A (en) 2013-01-09
CN102868622B CN102868622B (en) 2015-09-02

Family

ID=47447223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210399566.7A Expired - Fee Related CN102868622B (en) 2012-10-19 2012-10-19 A kind of three-layer network forwarding unit and its implementation

Country Status (1)

Country Link
CN (1) CN102868622B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410541A (en) * 2014-11-18 2015-03-11 盛科网络(苏州)有限公司 Method and device for counting VXLAN inner layer virtual machine flux on intermediate switch
CN105072208A (en) * 2015-07-09 2015-11-18 北京宇航***工程研究所 MAC address learning method of SDH device
CN107547286A (en) * 2017-09-25 2018-01-05 新华三技术有限公司 The generation method and device of ARP table

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764193A (en) * 2005-11-23 2006-04-26 杭州华为三康技术有限公司 Method for renewing address analysis protocol rapidly
CN101127709A (en) * 2007-09-26 2008-02-20 杭州华三通信技术有限公司 A method and device for updating port address in address parsing protocol table
US20080240100A1 (en) * 2007-04-01 2008-10-02 Cisco Technology, Inc. Layer three satellite functionality in a data network
JP2008252192A (en) * 2007-03-29 2008-10-16 Fujitsu Ltd Frame repeating device and communication network system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764193A (en) * 2005-11-23 2006-04-26 杭州华为三康技术有限公司 Method for renewing address analysis protocol rapidly
JP2008252192A (en) * 2007-03-29 2008-10-16 Fujitsu Ltd Frame repeating device and communication network system
US20080240100A1 (en) * 2007-04-01 2008-10-02 Cisco Technology, Inc. Layer three satellite functionality in a data network
CN101127709A (en) * 2007-09-26 2008-02-20 杭州华三通信技术有限公司 A method and device for updating port address in address parsing protocol table

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张峰: "TD-SCDM RNC***中三层交换的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410541A (en) * 2014-11-18 2015-03-11 盛科网络(苏州)有限公司 Method and device for counting VXLAN inner layer virtual machine flux on intermediate switch
CN104410541B (en) * 2014-11-18 2017-09-15 盛科网络(苏州)有限公司 The method and device that VXLAN internal layer virtual machine traffics are counted in intermediary switch
CN105072208A (en) * 2015-07-09 2015-11-18 北京宇航***工程研究所 MAC address learning method of SDH device
CN107547286A (en) * 2017-09-25 2018-01-05 新华三技术有限公司 The generation method and device of ARP table
CN107547286B (en) * 2017-09-25 2020-10-09 新华三技术有限公司 Method and device for generating Address Resolution Protocol (ARP) table

Also Published As

Publication number Publication date
CN102868622B (en) 2015-09-02

Similar Documents

Publication Publication Date Title
CN102413046B (en) Method for forwarding flow by means of virtual router redundancy protocol backup set and equipment
CN102148749B (en) Method and device for extending switch port
CN101924699B (en) Message forwarding method, system and provider edge equipment
CN102137024B (en) Message processing method, exit routing device and border routing device
CN102801715A (en) Method for virtual machine migration in network, gateway and system
CN105790996A (en) Distributed gateway backup processing method and network equipment
CN102143229A (en) Method and system for upgrading terminals in batches
CN102209064B (en) Method of using VRRP to provide backup for access equipment and VRRP gateway equipment
CN111277423B (en) Data center flow intercommunication method, device, equipment and storage medium
CN103259726A (en) Method, device and system for storing and sending MAC address table entries
CN105340224A (en) Network control method and apparatus
CN102143063B (en) Method and device for protecting business in cluster system
CN102984014A (en) Data transmission method and network system
US20230089240A1 (en) Data forwarding method and apparatus, device, and storage medium
CN103002065A (en) Method and device for sharing internet protocol (IP) address by host device and standby device
USRE46770E1 (en) Computer managing method
CN103931144A (en) Method, equipment and system for communication in virtual domain
US20160205033A1 (en) Pool element status information synchronization method, pool register, and pool element
CN102868622A (en) Three-layer network forwarding device and implement method thereof
CN102959906A (en) Routing method and device for host in multi-homing site
CN106850268B (en) device and method for realizing linear protection switching
CN104753707A (en) System maintenance method and network switching equipment
CN105245447A (en) Device and method for supporting ECMP (Equal Cost Multipath) chip on ToR in data centre
CN101340445B (en) Method and apparatus for providing service to MAC address duplicate customer
CN104243304A (en) Data processing method, device and system of locally-connected topological structure

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
PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20180313

Granted publication date: 20150902

PD01 Discharge of preservation of patent
PD01 Discharge of preservation of patent

Date of cancellation: 20210313

Granted publication date: 20150902

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

Granted publication date: 20150902

Termination date: 20181019