CN1489345A - 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
CN1489345A
CN1489345A CNA031172377A CN03117237A CN1489345A CN 1489345 A CN1489345 A CN 1489345A CN A031172377 A CNA031172377 A CN A031172377A CN 03117237 A CN03117237 A CN 03117237A CN 1489345 A CN1489345 A CN 1489345A
Authority
CN
China
Prior art keywords
source
address
route
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.)
Granted
Application number
CNA031172377A
Other languages
Chinese (zh)
Other versions
CN100512203C (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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

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, 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.
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, 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 true CN1489345A (en) 2004-04-14
CN100512203C 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)

Cited By (1)

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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3076033B1 (en) * 1998-09-14 2000-08-14 松下電器産業株式会社 Optical information recording / reproducing apparatus and information recording medium

Cited By (1)

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

Also Published As

Publication number Publication date
CN100512203C (en) 2009-07-08

Similar Documents

Publication Publication Date Title
US7764678B2 (en) Routing based on dynamic classification rules
US9274851B2 (en) Core-trunking across cores on physically separated processors allocated to a virtual machine based on configuration information including context information for virtual machines
JP6254574B2 (en) Packet processing offload for networking device virtualization
US20140092906A1 (en) System and method for binding flows in a service cluster deployment in a network environment
US7327744B2 (en) Fibre channel forwarding information base
US20130148546A1 (en) Support for converged traffic over ethernet link aggregation (lag)
EP1483870B1 (en) Method and system for ordered dynamic distribution of packet flows over network processors
US20190149470A1 (en) Method and network device for handling packets in a network by means of forwarding tables
CN1708029A (en) Method for establizing retransmission flow table
CN110048961B (en) Repeated message detection method and system based on ASIC
DE112017003324T5 (en) Adaptive routing technologies using aggregated congestion information
CN109600313A (en) Message forwarding method and device
CN103957157A (en) Route method for network interface to define forwarding rule
CN103346950A (en) Sharing method and device of load between user service boards of rack-mounted wireless controller
CN1489345A (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
US20170237691A1 (en) Apparatus and method for supporting multiple virtual switch instances on a network switch
CN1625149A (en) Method for access control list
CN1581842A (en) Method for realizing source IP address and source MAC address bound route
WO2023114696A1 (en) Session slicing of mirrored packets
CN114157731B (en) FC-AE protocol analyzer based on FPH-trie tree and dynamic priority scheduling
CN1558640A (en) A system and method for providing multiple network interfaces with MAC address on processor
US20130246652A1 (en) Discover IPv4 Directly Connected Host Conversations Using ARP in Distributed Routing Platforms
CN1272938C (en) A method for increasing the bandwidth for Ethernet

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