CN103227752A - Method and device for realizing policy routing in Ethernet switch chip - Google Patents

Method and device for realizing policy routing in Ethernet switch chip Download PDF

Info

Publication number
CN103227752A
CN103227752A CN2013101783447A CN201310178344A CN103227752A CN 103227752 A CN103227752 A CN 103227752A CN 2013101783447 A CN2013101783447 A CN 2013101783447A CN 201310178344 A CN201310178344 A CN 201310178344A CN 103227752 A CN103227752 A CN 103227752A
Authority
CN
China
Prior art keywords
message
address
outlet information
routing
ethernet switching
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.)
Pending
Application number
CN2013101783447A
Other languages
Chinese (zh)
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.)
Centec Networks Suzhou Co Ltd
Original Assignee
Centec Networks Suzhou 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 Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN2013101783447A priority Critical patent/CN103227752A/en
Publication of CN103227752A publication Critical patent/CN103227752A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and device for realizing policy routing in an Ethernet switch chip, which relates to the technical field of network communication, and solves the problem that the message forwarding efficiency is low since the existing policy routing needs to obtain the IP (Internet protocol) address of a network application server and perform routing information conversion. The method disclosed by the invention comprises the following steps of: configuring a policy routing table based on the information such as a message source-based IP address, a TCP/UDP (transmission control protocol/user datagram protocol) source port number, a TCP/UDP destination port number, a DSCP (differentiated services code point) value and the like to obtain the second exit information of corresponding policy routing; and searching a common routing table to obtain corresponding first exit information. The method and device disclosed by the invention can conveniently realize policy routing based on different user sources, different network applications and different service quality requirements, and also can flexibly select the common routing result information or policy routing information; and the realization is simple, the system cost is low, and the routing flexibility and message forwarding efficiency can be greatly improved.

Description

The implementation method of tactful route and device in the Ethernet switching chip
Technical field
The present invention relates to network communications technology field, especially relate to the implementation method and the device of tactful route in a kind of Ethernet switching chip.
Background technology
The traditional method for routing of Ethernet is to use routing table, carries out message forwarding according to purpose IP address.In recent years, along with the develop rapidly of Internet technology, the application of carrying in the network constantly increases, and for example video, voice, P2P application etc. use traditional method for routing to transmit flexibly according to the different application type.The strategy route is a kind of routing forwarding of packet more flexibly technology, not only can carry out routing forwarding according to traditional purpose IP address, can also carry out routing forwarding according to information such as the source IP address of message, tcp port number, udp port number, DSCP.
Present technology generally is to obtain corresponding to the tabulation of the server ip address of each application protocol and the pre-configured tactful routing table corresponding to application protocol by router to generate tactful routing table based on purpose IP address.After router receives data flow, resolve the purpose IP address that changes data flow, obtain route outlet information by the tactful routing table inquiry that generates again.
Above-mentioned policy routing method needs router to obtain the IP address list corresponding with the network application agreement, and the tactful route relevant with application protocol is converted to the tactful route based on purpose IP, and in fact the IP address of network application server is difficult to accurately obtain, and need carry out the routing iinformation conversion, the message forward efficiency is not high.
Summary of the invention
The objective of the invention is to overcome the defective of prior art, implementation method and the device of realizing the tactful route simple, that system cost is low, the route flexibility is high in a kind of Ethernet switching chip are provided, transmit by carrying out message, improve the message forward efficiency based on information such as the source IP address of message, tcp port number, udp port number, DSCP values.
For achieving the above object, the present invention proposes following technical scheme: the implementation method of tactful route in the Ethernet switching chip may further comprise the steps:
A, reception IP message also parse message characteristic;
B, address search obtains the corresponding first outlet information according to purpose IP;
C, judge whether three layer interface attributes of Ethernet switching chip enable tactful route, if enable, then, obtain the corresponding second outlet information according to the described message characteristic search strategy routing table that parses, if do not enable, then directly use the first outlet information to carry out message and transmit;
D, carry out message according to the first outlet information or the second outlet information and transmit.
Described message characteristic comprises at least: source IP address, purpose IP address, TCP/UDP source port number, TCP/UDP destination slogan, DSCP value.
The implementation method of tactful route also comprises in the described Ethernet switching chip:
Whether E, selection use the described second outlet information, if select to use, then carry out message according to the described second outlet information and transmit, and do not use as if not selecting, and then carry out message according to the described first outlet information and transmit.
Described Ethernet switching chip adopts asic chip (special integrated chip) or FPGA (field programmable gate array) or NP (network processing unit).
The implement device of tactful route in the Ethernet switching chip comprises:
The packet parsing module is used for the IP packet parsing that receives is gone out described message characteristic;
Common routing message searching module is used for that address search obtains the corresponding first outlet information according to purpose IP;
The strategy routing message searching module, the described message characteristic search strategy routing table according to parsing obtains the corresponding second outlet information.
Described message characteristic comprises at least: source IP address, purpose IP address, TCP/UDP source port number, TCP/UDP destination slogan, DSCP value.
The beneficial effect of the implementation method of tactful route and device is in the Ethernet switching chip of the present invention:
(1) IP address list that does not need to obtain network application agreement correspondence is converted to the tactful route based on purpose IP address, can transmit by carrying out message, improve the message forward efficiency greatly based on information such as the source IP address of message, tcp port number, udp port number, DSCP values;
(2) can realize different carrier network outlets is selected in different user source, heterogeneous networks application type and different service quality requirement, the flexibility that improves routing forwarding greatly realizes that simply system cost is low.
Description of drawings
Fig. 1 is the implementation method schematic flow sheet of tactful route in a kind of Ethernet switching chip of the present invention;
Fig. 2 is the implement device module diagram of tactful route in a kind of Ethernet switching chip of the present invention;
Fig. 3 is the implementation method of tactful route in the Ethernet switching chip of the present invention and the application schematic diagram of device;
Embodiment
Below in conjunction with accompanying drawing of the present invention, the technical scheme of the embodiment of the invention is carried out clear, complete description.
In conjunction with shown in Figure 1, the implementation method of tactful route in disclosed a kind of Ethernet switching chip may further comprise the steps:
A, reception IP message also parse message characteristic, and message characteristic comprises at least: source IP address, purpose IP address, TCP/UDP source port number, TCP/UDP destination slogan, DSCP value;
Wherein, source IP address can be distinguished different user sources, when the tactful route of carrying out based on the different user source, and the routing iinformation of the corresponding source IP address of configuration in tactful routing table; The TCP/UDP port numbers can be distinguished different application types, when carrying out the tactful route of using based on heterogeneous networks, and the routing iinformation of the corresponding TCP/UDP port numbers of configuration in tactful routing table; The DSCP value is used for distinguishing different quality of service requirements, when carrying out the quality of service policy route of using based on heterogeneous networks, the routing iinformation of the corresponding DSCP value of configuration in tactful routing table, and three kinds of application types can make up mutually, thereby realize different user source, heterogeneous networks application type and different service quality are required to select different carrier network outlets, the flexibility that improves routing forwarding greatly.
B, according to the common routing table of purpose IP address search, search the corresponding first outlet information that obtains;
C, judge whether three layer interface attributes of Ethernet switching chip enable tactful route, if enable tactful route, then according to the message characteristic that parses, as message characteristics such as message source IP address, TCP/UDP source port number, TCP/UDP destination slogan, DSCP values, search the tactful routing table that is stored among the TCAM (three-state content addressing memory), obtain the second outlet information of corresponding tactful route,, then directly use the first outlet information to carry out message and transmit if do not enable tactful route;
Whether E, selection use the second outlet information, if select to use, then carry out message according to the described second outlet information and transmit, and do not use as if not selecting, and then carry out message according to the described first outlet information and transmit;
D, carry out message according to the first outlet information or the second outlet information and transmit, can carry out message flexibly and transmit, realize simply, system cost is low.
In conjunction with shown in Figure 2, the implement device of tactful route in disclosed a kind of Ethernet switching chip comprises:
The packet parsing module is used for the IP packet parsing that receives is gone out described message characteristic, and message characteristic comprises at least: source IP address, purpose IP address, TCP/UDP source port number, TCP/UDP destination slogan, DSCP value;
Common routing message searching module is used for obtaining the corresponding first outlet information according to the common routing table of purpose IP address search;
The strategy routing message searching module, three layer interface attributes in Ethernet switching chip enable under the situation of tactful route, according to the described message characteristic search strategy routing table that parses, obtain the corresponding second outlet information, can select the first outlet information or the second outlet information to carry out message flexibly and transmit, improve the flexibility and the message forward efficiency of route greatly.
Illustrate, (the different user source is 3 to Fig. 3 among the figure for the application drawing of strategy route of the present invention, the different application network is 4, the different operators network is 3), as shown in Figure 3, the present invention can carry out based on the tactful route without user source, heterogeneous networks application and different service quality requirement, need not to obtain the IP address list corresponding and be converted to tactful routing table with the network application agreement, and three kinds of application types can make up mutually, realize simple, system cost is low, can improve the flexibility of routing forwarding greatly.
Technology contents of the present invention and technical characterictic have disclosed as above; yet those of ordinary skill in the art still may be based on teaching of the present invention and announcements and are done all replacement and modifications that does not deviate from spirit of the present invention; therefore; protection range of the present invention should be not limited to the content that embodiment discloses; and should comprise various do not deviate from replacement of the present invention and modifications, and contained by the present patent application claim.

Claims (6)

1. the implementation method of tactful route in the Ethernet switching chip is characterized in that: may further comprise the steps:
A, reception IP message also parse message characteristic;
B, address search obtains the corresponding first outlet information according to purpose IP;
C, judge whether three layer interface attributes of Ethernet switching chip enable tactful route, if enable, then, obtain the corresponding second outlet information according to the described message characteristic search strategy routing table that parses, if do not enable, then directly use the first outlet information to carry out message and transmit;
D, carry out message according to the first outlet information or the second outlet information and transmit.
2. the implementation method of tactful route is characterized in that in the Ethernet switching chip according to claim 1, and described message characteristic comprises at least: source IP address, purpose IP address, TCP/UDP source port number, TCP/UDP destination slogan, DSCP value.
3. the implementation method of tactful route is characterized in that in the Ethernet switching chip according to claim 1, and the implementation method of tactful route also comprises in the described Ethernet switching chip:
Whether E, selection use the described second outlet information, if select to use, then carry out message according to the described second outlet information and transmit, and do not use as if not selecting, and then carry out message according to the described first outlet information and transmit.
4. the implementation method of tactful route is characterized in that in the Ethernet switching chip according to claim 1, and described Ethernet switching chip adopts asic chip (special integrated chip) or FPGA (field programmable gate array) or NP (network processing unit).
5. the implement device of tactful route in the Ethernet switching chip is characterized in that, comprising:
The packet parsing module is used for the IP packet parsing that receives is gone out described message characteristic;
Common routing message searching module is used for that address search obtains the corresponding first outlet information according to purpose IP;
The strategy routing message searching module, the described message characteristic search strategy routing table according to parsing obtains the corresponding second outlet information.
6. the implement device of tactful route is characterized in that in the Ethernet switching chip according to claim 5, and described message characteristic comprises at least: source IP address, purpose IP address, TCP/UDP source port number, TCP/UDP destination slogan, DSCP value.
CN2013101783447A 2013-05-14 2013-05-14 Method and device for realizing policy routing in Ethernet switch chip Pending CN103227752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101783447A CN103227752A (en) 2013-05-14 2013-05-14 Method and device for realizing policy routing in Ethernet switch chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101783447A CN103227752A (en) 2013-05-14 2013-05-14 Method and device for realizing policy routing in Ethernet switch chip

Publications (1)

Publication Number Publication Date
CN103227752A true CN103227752A (en) 2013-07-31

Family

ID=48838021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101783447A Pending CN103227752A (en) 2013-05-14 2013-05-14 Method and device for realizing policy routing in Ethernet switch chip

Country Status (1)

Country Link
CN (1) CN103227752A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410576A (en) * 2014-12-12 2015-03-11 上海斐讯数据通信技术有限公司 Mixed type condition policy routing system and method
CN105245453A (en) * 2014-06-20 2016-01-13 华为技术有限公司 Method, device and system for establishing service link
CN108595731A (en) * 2018-01-23 2018-09-28 盛科网络(苏州)有限公司 The design method and device of dynamic entry in a kind of Ethernet chip
CN109547343A (en) * 2019-01-04 2019-03-29 网宿科技股份有限公司 A kind of traffic scheduling method and system
CN110912935A (en) * 2019-12-18 2020-03-24 盛科网络(苏州)有限公司 Method and device for realizing TCP/UDP session identification based on chip
CN111988226A (en) * 2020-08-20 2020-11-24 深圳市龙信信息技术有限公司 Multi-ISP link load balancing method, system and firewall
CN114500384A (en) * 2020-11-11 2022-05-13 华为技术有限公司 Communication method, device and system and electronic equipment
CN114884903A (en) * 2022-04-29 2022-08-09 绿盟科技集团股份有限公司 Data processing method, field programmable gate array chip and network safety equipment
CN115225591A (en) * 2022-07-15 2022-10-21 井芯微电子技术(天津)有限公司 Method for processing control message of exchange chip

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744563A (en) * 2004-08-31 2006-03-08 杭州华为三康技术有限公司 Method for realizing strate gic route in Ethernet switch
US20070074281A1 (en) * 2005-09-23 2007-03-29 Hitachi, Ltd. Presence-base packet routing control apparatus and packet routing control method
CN101035060A (en) * 2006-03-08 2007-09-12 中兴通讯股份有限公司 Integrated processing method for three-folded content addressable memory message classification
CN101068212A (en) * 2007-06-11 2007-11-07 中兴通讯股份有限公司 Network address switching retransmitting device and method
US20080137638A1 (en) * 2004-12-24 2008-06-12 Nhn Corporation Communication Network System Of Bus Network Structure And Message Routing Method Using The System
CN101296168A (en) * 2007-04-25 2008-10-29 北京天融信网络安全技术有限公司 Method for chip internal link list supporting policy routing
CN101321163A (en) * 2008-07-03 2008-12-10 江苏华丽网络工程有限公司 Integrated hardware implementing method for multi-layer amalgamation and parallel processing network access equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744563A (en) * 2004-08-31 2006-03-08 杭州华为三康技术有限公司 Method for realizing strate gic route in Ethernet switch
US20080137638A1 (en) * 2004-12-24 2008-06-12 Nhn Corporation Communication Network System Of Bus Network Structure And Message Routing Method Using The System
US20070074281A1 (en) * 2005-09-23 2007-03-29 Hitachi, Ltd. Presence-base packet routing control apparatus and packet routing control method
CN101035060A (en) * 2006-03-08 2007-09-12 中兴通讯股份有限公司 Integrated processing method for three-folded content addressable memory message classification
CN101296168A (en) * 2007-04-25 2008-10-29 北京天融信网络安全技术有限公司 Method for chip internal link list supporting policy routing
CN101068212A (en) * 2007-06-11 2007-11-07 中兴通讯股份有限公司 Network address switching retransmitting device and method
CN101321163A (en) * 2008-07-03 2008-12-10 江苏华丽网络工程有限公司 Integrated hardware implementing method for multi-layer amalgamation and parallel processing network access equipment

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245453A (en) * 2014-06-20 2016-01-13 华为技术有限公司 Method, device and system for establishing service link
CN105245453B (en) * 2014-06-20 2018-12-07 华为技术有限公司 Method for building up, equipment and the system of business chain
CN104410576B (en) * 2014-12-12 2018-07-06 上海斐讯数据通信技术有限公司 Hybrid conditional policies route system and method
CN104410576A (en) * 2014-12-12 2015-03-11 上海斐讯数据通信技术有限公司 Mixed type condition policy routing system and method
CN108595731B (en) * 2018-01-23 2022-02-08 苏州盛科通信股份有限公司 Design method and device for dynamic table entry in Ethernet chip
CN108595731A (en) * 2018-01-23 2018-09-28 盛科网络(苏州)有限公司 The design method and device of dynamic entry in a kind of Ethernet chip
CN109547343A (en) * 2019-01-04 2019-03-29 网宿科技股份有限公司 A kind of traffic scheduling method and system
CN110912935A (en) * 2019-12-18 2020-03-24 盛科网络(苏州)有限公司 Method and device for realizing TCP/UDP session identification based on chip
CN111988226A (en) * 2020-08-20 2020-11-24 深圳市龙信信息技术有限公司 Multi-ISP link load balancing method, system and firewall
CN114500384A (en) * 2020-11-11 2022-05-13 华为技术有限公司 Communication method, device and system and electronic equipment
CN114884903A (en) * 2022-04-29 2022-08-09 绿盟科技集团股份有限公司 Data processing method, field programmable gate array chip and network safety equipment
CN114884903B (en) * 2022-04-29 2023-06-02 绿盟科技集团股份有限公司 Data processing method, field programmable gate array chip and network security device
CN115225591A (en) * 2022-07-15 2022-10-21 井芯微电子技术(天津)有限公司 Method for processing control message of exchange chip
CN115225591B (en) * 2022-07-15 2023-12-26 井芯微电子技术(天津)有限公司 Method for processing control message of exchange chip

Similar Documents

Publication Publication Date Title
CN103227752A (en) Method and device for realizing policy routing in Ethernet switch chip
US11190445B2 (en) System and method to facilitate content delivery to multiple recipients in a network environment
CN102970227B (en) The method and apparatus of VXLAN message repeating is realized in ASIC
US9363178B2 (en) Method, apparatus, and system for supporting flexible lookup keys in software-defined networks
US9237025B2 (en) Source routing in multicast transmissions
EP3531617B1 (en) Message transmission method and apparatus, node and computer storage medium
US9571382B2 (en) Method, controller, and system for processing data packet
US8848709B2 (en) Source rooted multicast (SRM)
CN101822022B (en) Support of triple play services in user devices
CN114666260B (en) Return link routing in hybrid networks
EP4033731A1 (en) Service processing method, device, and system
CN103532672A (en) Processing method of disordered fragmentation messages in SDN and application
CN102957589A (en) Method, network node and system for service data transmission
CN110519009B (en) Data packet transmission method and device
CN102857429B (en) The method and apparatus of route is carried in TRILL network
CN105723664A (en) Communication method and apparatus, controller and forwarding plane devices
CN104734994A (en) Traffic label control method based on SDN (software-defined network) frame
CN104734877A (en) Method, device and system for obtaining configuration server information
CN106230730B (en) Multicast transmission method and device
CN102868642B (en) The method and apparatus of NVGRE message repeating is realized in ASIC
US20200044953A1 (en) Data Packet Fast Routing Method
EP2466924B1 (en) Method, system and access service router for implementing multicast service
CN103179043A (en) Method and equipment for forwarding multicast messages
EP2800318B1 (en) Method for determining multicast path, method for receiving data message, and router
CN104717313B (en) mDNS gateway address configuration method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130731