CN100512203C - Method for realizing routing based on source IP address - Google Patents

Method for realizing routing based on source IP address Download PDF

Info

Publication number
CN100512203C
CN100512203C CNB031172377A CN03117237A CN100512203C CN 100512203 C CN100512203 C CN 100512203C CN B031172377 A CNB031172377 A CN B031172377A CN 03117237 A CN03117237 A CN 03117237A CN 100512203 C CN100512203 C CN 100512203C
Authority
CN
China
Prior art keywords
source
route
address
packet
look
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
CNB031172377A
Other languages
Chinese (zh)
Other versions
CN1489345A (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.)
NANSHAN ZHIQIAO MICRO ELECTRONICS CO Ltd SICHUAN
Original Assignee
NANSHAN ZHIQIAO MICRO ELECTRONICS CO Ltd SICHUAN
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 NANSHAN ZHIQIAO MICRO ELECTRONICS CO Ltd SICHUAN filed Critical NANSHAN ZHIQIAO MICRO ELECTRONICS CO Ltd SICHUAN
Priority to CNB031172377A priority Critical patent/CN100512203C/en
Publication of CN1489345A publication Critical patent/CN1489345A/en
Application granted granted Critical
Publication of CN100512203C publication Critical patent/CN100512203C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

Analytic looking-up table operations are carried out for destination IP address and source IP address of header of data packet entered into network communication device. If look-up table tells that the source IP address uses source IP route, then relevant information obtained through look-up table based on source IP address becomes the result of route of the data packet; otherwise, relevant information obtained through look-up table based on destination IP address becomes the result of route of the data packet. Since ASIC chip is utilized, thus route operation is completed without limit of CPU so as to overcome shortcoming of slow processing speed caused by treating the issue in software mode. The invention raises capability of high speed processing so that exchange is guaranteed even network is in state of congestion and busyness.

Description

A kind of method that realizes based on the source IP address route
Technical field
The present invention relates to a kind of method that realizes based on the source IP address route, especially a kind of method that adopts the realization of application-specific integrated circuit ASIC chip based on the source IP address route.
Background technology
In today that network technology is maked rapid progress, along with the continuous emergence and the establishment of Virtual network operator, network communication field is more and more higher to the requirement of network communication equipment.At present, network communication equipment---router and L3_switch mainly contain following dual mode in the realization at " based on IP address route " function:
One, most of router and switch only support the function of " based on purpose IP address route ", just, the purpose IP address in packet packet header of entering router and switch tables look-up by being resolved, obtain purpose routed port and some other relevant informations of this packet, for example new target MAC (Media Access Control) address and VLAN_ID etc.There is certain defective in " IP route " function of this mode in network management, thus it make the IP address of each main frame of network management personnel in can't the effective configuration present networks carry out conveniently, perfect management.Especially when supporting a plurality of Virtual network operator, the network management personnel can't allow or limit the operation that it visits a certain specified network by host IP address.
Two, part router and switch also support " based on the source IP address route " function except supporting " based on purpose IP address route " function.What but these router and switch adopted when finishing " source IP route " function is the mode that software is realized.Use software to realize that " source IP route " function exists certain defective in the assurance of the consumption of system resource and network speed.Because when using back-end software to finish " source IP route ", can take cpu resource greatly, make very heavy router and switch CPU (CPU will finish many other functions) handling property of original just burden decline to a great extent, thereby have influence on the performance of whole router and switch.And, use software to realize that " source IP route " processing speed is lower, as router and switch when to be in network congestion be busy, router and swith may just can't satisfy the basic function that the network communication equipment linear speed exchanges.
Summary of the invention
The present invention is intended to solve the existing network communication equipment---the defective that router and switch exist on the IP routing function of the source of realization, overcome the system resource that the software realization mode that adopted brings and consume the drawback big, that processing speed is low, provide a kind of asic chip that adopts to realize method based on the source IP address route.
For solving the problems of the technologies described above, the technical solution adopted in the present invention is as follows:
A kind of realization is characterized in that based on the method for source IP address route: this method comprises the steps:
A,, the purpose IP address in packet packet header of entering network communication equipment and source IP address table look-up by being resolved respectively;
B, according to a item, if table look-up when obtaining this source IP address and using source IP route, the relevant information that comprises the purpose routed port that then will use this source IP address association to table look-up to obtain is as the route results of this packet; On the contrary, if table look-up when obtaining this source IP address and not using source IP route, with the application target IP address correlation relevant information that comprises the purpose routed port that obtains the route results of tabling look-up as this packet.
Parsing of the present invention is tabled look-up, and what obtain is routing table and interface configuration table, obtain two groups of different relevant informations according to the purpose IP address of using with source IP address on described routing table and the interface configuration table, these relevant informations comprise IP address, new purpose hardware physical address MAC (being called for short MAC), purpose output port, interface configuration table index, source IP route enable signal, new source MAC, new virtual LAN VLAN (hereinafter to be referred as VLAN) number, purpose output port.
Source of the present invention IP route enable signal is a kind of function control switch signal, is to dispose when switch being write the list item information of routing table entry and interface configuration table.
Beneficial effect of the present invention shows:
One, the present invention is not limited by CPU when finishing route owing to adopted asic chip, can save cpu resource greatly, CPU is absorbed in finishes other functions, improves the performance of whole system;
Two, the present invention has overcome the slow defective of processing speed that software mode exists, and has improved the high speed processing ability of whole system in network environment.Even be in when congested or busy at the express network of 100/1000/10000M, also can guarantee to carry out the linear speed exchange;
Three, it is simple that the present invention makes the realization of routing function, reliable and stable.
Description of drawings
Fig. 1 is a FB(flow block) of the present invention
Fig. 2 resolves the list item schematic diagram of table look-up gained routing table and interface configuration table respectively according to purpose IP address and source IP address for the present invention
Embodiment
The inventive method step is as follows:
The list item information of routing table and interface configuration table is write switch;
By being resolved respectively, the purpose IP address in packet packet header of entering network communication equipment and source IP address table look-up then, obtain two groups of different related informations according to the purpose IP address of using with source IP address on the routing table of gained and the interface configuration table, these relevant informations comprise the IP address, new target MAC (Media Access Control) address, the purpose output port, the interface configuration table index, source IP route enable signal, new source MAC, new vlan number, the purpose output port, wherein source IP route enable signal is a kind of function control switch signal, is to dispose when switch being write the list item information of routing table entry and interface configuration table;
When obtaining this source IP address if table look-up and using source IP route, the relevant information that comprises the purpose routed port that then will use this source IP address association to table look-up to obtain is as the route results of this packet; On the contrary, if table look-up when obtaining this source IP address and not using source IP route, with the application target IP address correlation relevant information that comprises the purpose routed port that obtains the route results of tabling look-up as this packet.
When the IP route of the source of use, if the source IP route enable signal e that is inquired about in the routing table that obtains is 1, this packet will be handled according to " based on the source IP address route " so, and the final route result that this packet obtains is: the purpose output port h in the interface configuration table; On the contrary, if to inquire about the source IP route enable signal e that obtains be 0, this packet will be handled not according to " based on the source IP address route " so, and handle according to " based on purpose IP address route ", and the route results that this packet obtains is: the purpose output port C in the routing table.
In the route table items, whether a certain IP uses the address " source IP route " function to be configured according to the real network situation by the network management personnel who uses this router or switch.

Claims (4)

1, a kind of realization is characterized in that based on the method for source IP address route: this method comprises the steps:
A,, the purpose IP address in packet packet header of entering network communication equipment and source IP address table look-up by being resolved respectively;
B, differentiating this source IP address according to the source IP route enable signal e of inquire about in the routing table that obtains, to use source IP route still be application target IP route, when obtaining this source IP address if table look-up and using source IP route, the relevant information that comprises the purpose routed port that then will use this source IP address association to table look-up to obtain is as the route results of this packet; On the contrary, if table look-up when obtaining this source IP address and not using source IP route, with the application target IP address correlation relevant information that comprises the purpose routed port that obtains the route results of tabling look-up as this packet.
2, a kind of method that realizes based on the source IP address route according to claim 1, it is characterized in that: described parsing is tabled look-up, and what obtain is routing table and interface configuration table, obtain two groups of different relevant informations according to the purpose IP address of using with source IP address on described routing table and the interface configuration table, these relevant informations comprise IP address, new purpose hardware physical address MAC, purpose output port, interface configuration table index, source IP route enable signal, new source MAC, new virtual LAN VLAN number and purpose output port.
3, a kind of method that realizes based on the source IP address route according to claim 1 and 2, it is characterized in that: when the IP route of the source of use, if the source IP route enable signal e that is inquired about in the routing table that obtains is 1, this packet will be handled according to " based on the source IP address route " so, and the final route result that this packet obtains is: the purpose output port h in the interface configuration table; On the contrary, if to inquire about the source IP route enable signal e that obtains be 0, this packet will be handled not according to " based on the source IP address route " so, and handle according to " based on purpose IP address route ", and the route results that this packet obtains is: the purpose output port C in the routing table.
4, a kind of realization according to claim 3 is characterized in that based on the method for source IP address route: source IP route enable signal is a kind of function control switch signal, is to dispose when switch being write the list item information of routing table entry and interface configuration table.
CNB031172377A 2003-01-27 2003-01-27 Method for realizing routing based on source IP address Expired - Fee Related CN100512203C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031172377A CN100512203C (en) 2003-01-27 2003-01-27 Method for realizing routing based on source IP address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031172377A CN100512203C (en) 2003-01-27 2003-01-27 Method for realizing routing based on source IP address

Publications (2)

Publication Number Publication Date
CN1489345A CN1489345A (en) 2004-04-14
CN100512203C true CN100512203C (en) 2009-07-08

Family

ID=34152679

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031172377A Expired - Fee Related CN100512203C (en) 2003-01-27 2003-01-27 Method for realizing routing based on source IP address

Country Status (1)

Country Link
CN (1) CN100512203C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110177046B (en) * 2019-04-18 2021-04-02 中国人民解放军战略支援部队信息工程大学 Security exchange chip based on mimicry thought, implementation method and network exchange equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1282167C (en) * 1998-09-14 2006-10-25 松下电器产业株式会社 Data recording medium and device for recording and copying data

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1282167C (en) * 1998-09-14 2006-10-25 松下电器产业株式会社 Data recording medium and device for recording and copying data

Also Published As

Publication number Publication date
CN1489345A (en) 2004-04-14

Similar Documents

Publication Publication Date Title
US7830882B2 (en) Switch scaling for virtualized network interface controllers
EP1836808B1 (en) Fibre channel forwarding information base
US20180048568A1 (en) Method for increasing layer-3 longest prefix match scale
US7764678B2 (en) Routing based on dynamic classification rules
CN1875585B (en) Dynamic unknown L2 flooding control with MAC limits
CN101150527B (en) A PCIE data transmission method, system and device
KR102586898B1 (en) Message processing method and apparatus, and relevant devices
US10305805B2 (en) Technologies for adaptive routing using aggregated congestion information
US10218617B2 (en) Method and network device for handling packets in a network by means of forwarding tables
CA2832019A1 (en) Network system, switch and connected terminal detection method
CN109600313A (en) Message forwarding method and device
CN103957157A (en) Route method for network interface to define forwarding rule
CN109450940B (en) Device and method for realizing network flow plugging
CN202957840U (en) Cross-network acceleration system
CN106411553B (en) Method and device for optimizing service chain path
CN103346950A (en) Sharing method and device of load between user service boards of rack-mounted wireless controller
CN100512203C (en) Method for realizing routing based on source IP address
US20130077530A1 (en) Scaling IPv6 on Multiple Devices Virtual Switching System with Port or Device Level Aggregation
US9590897B1 (en) Methods and systems for network devices and associated network transmissions
US20130246652A1 (en) Discover IPv4 Directly Connected Host Conversations Using ARP in Distributed Routing Platforms
CN102480410A (en) Single board for centralized business processing and virtualized resource dividing method
CN1581842A (en) Method for realizing source IP address and source MAC address bound route
CN1625149A (en) Method for access control list
CN112751756B (en) Data forwarding method, device, equipment and computer readable storage medium
CN107959634A (en) A kind of IP data packet shunt methods based on Hash technologies

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

Granted publication date: 20090708

Termination date: 20100301