CN102158419B - In home gateway, realize the method for packet expedited forwarding - Google Patents

In home gateway, realize the method for packet expedited forwarding Download PDF

Info

Publication number
CN102158419B
CN102158419B CN201110133887.8A CN201110133887A CN102158419B CN 102158419 B CN102158419 B CN 102158419B CN 201110133887 A CN201110133887 A CN 201110133887A CN 102158419 B CN102158419 B CN 102158419B
Authority
CN
China
Prior art keywords
packet
routing rule
switch module
home gateway
cpu
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.)
Active
Application number
CN201110133887.8A
Other languages
Chinese (zh)
Other versions
CN102158419A (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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201110133887.8A priority Critical patent/CN102158419B/en
Publication of CN102158419A publication Critical patent/CN102158419A/en
Application granted granted Critical
Publication of CN102158419B publication Critical patent/CN102158419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

In home gateway, realize the method for packet expedited forwarding, by the cpu in home gateway, packet is carried out realizing in the process of routing rule coupling, key is: in the switch module of home gateway, set up packet input, output interface and routing rule memory, packet just mates with the rule of storing in route rule memory in switch module after coming in, if can the match is successful, directly from switch module, forward, if mate unsuccessful, will enter linux protocol stack, forward by linux protocol stack, and this matched rule is recorded in the rule list of routing rule memory, while having again next time similar packet to pass through, just can directly forward by switch module. reach in this way hardware-accelerated object, in accelerator, do not take the resource of cpu, greatly improve the forwarding speed of packet.

Description

In home gateway, realize the method for packet expedited forwarding
Technical field
The invention belongs to data communication technology field, relate to packet in a kind of family gateway equipment and addThe method that speed forwards.
Background technology
Along with the develop rapidly of network technology, the kind of family gateway equipment is more and more, and people coupleThe performance requirement of home gateway product is also more and more higher. The forwarding side of packet in traditional home gatewayFormula is all will be by the cpu of home gateway, and the protocol stack that enters into linux forwards, and packet is logicalWhile crossing gateway, a lot of paths and relevant rule match be passed through, a large amount of time will be consumed like this,Especially in the packet short time that some types are identical, repeatedly need to forward, have a strong impact on packet and turnThe frequency of sending out and the performance of gateway. If can expect one by packet identical these types fastThe method forwarding, is a a progressive step again to the quality of family gateway equipment. In prior artHave the mode that adopts software to accelerate, the problem that still takies cpu resource still can't resolve, cpuOccupancy is too high, can have influence on the contrary the speed of data retransmission.
Summary of the invention
The object of the invention is in home gateway, to realize and turning fast in order to solve various packetsThe technical barrier of sending out, has designed a kind of method that realizes packet expedited forwarding in home gateway, logicalCross the memory that increases an interim storage routing rule in switch module, make in protocol stackThe packet of process directly mates by switch module, improves forwarding speed.
The present invention be realize goal of the invention adopt technical scheme be in home gateway, to realize packetThe method of expedited forwarding, carries out the mistake of routing rule coupling to packet by the cpu in home gatewayIn journey, realize, key is: in the switch module of home gateway, set up packet input, output connectsMouth and routing rule memory, carry out following steps on this basis:
When a, home gateway receive the packet of sending in network, by packet, input connects packetMouth is sent to switch module;
The sequence number of the mark code in b, switch module identification data packet encoder decision data bag ownership,Search the routing rule of this package forward of storing in routing rule memory according to coding sequence number,Join the rear direct output interface by switch module and directly after output, skipped to steps d, if do not foundThe corresponding coding of packet, carries out step c;
C, first packet is carried out to coding and sorting order, and by package forward the protocol stack to cpu, logicalCross CPU output, switch module records the routing rule of this packet in protocol stack, and is stored inIn routing rule memory, back up, for subsequent use while once forwarding on this packet;
D, complete routing rule matching process.
Packet after coming in just with switch module in the rule of storing in route rule memory carry outJoin, if can the match is successful, directly from switch module, forward, if coupling does not becomeMerit, will enter linux protocol stack, forwards by linux protocol stack, and by these coupling ruleBe recorded in the rule list of routing rule memory, while having again next time similar packet to pass through, justCan directly forward by switch module, reach in this way hardware-accelerated object,In accelerator, do not take the resource of cpu, greatly improve the forwarding speed of packet.
Brief description of the drawings
Fig. 1 is method flow diagram of the present invention.
Detailed description of the invention
Referring to Fig. 1, in home gateway, realize the method for packet expedited forwarding, in home gatewayCpu packet is carried out in the process of routing rule coupling, realize, key is: at home gatewayIn switch module, set up packet input, output interface and routing rule memory, on this basisOn carry out following steps:
When a, home gateway receive the packet of sending in network, by packet, input connects packetMouth is sent to switch module;
The sequence number of the mark code in b, switch module identification data packet encoder decision data bag ownership,Search the routing rule of this package forward of storing in routing rule memory according to coding sequence number,Join the rear direct output interface by switch module and directly after output, skipped to steps d, if do not foundThe corresponding coding of packet, carries out step c;
C, first packet is carried out to coding and sorting order, and by package forward the protocol stack to cpu, logicalCross cpu output, switch module records the routing rule of this packet in protocol stack, and is stored inIn routing rule memory, back up, for subsequent use while once forwarding on this packet;
D, complete routing rule matching process.
Above-mentioned step also comprises: the routing rule having recorded in routing rule memory adopts time delay to deleteExcept mode.
The present invention in the specific implementation, packet after coming in just with switch module in route rale storeThe rule of storing in device is mated, if can the match is successful, directly from switch module, entersRow forwards, if mate unsuccessfully, will enter linux protocol stack, is undertaken by linux protocol stackForward, and this matched rule is recorded in the rule list of routing rule memory, have again class next timeLike packet by time, just can directly forward by switch module. If entered through one sectionBetween do not have relevant packet to pass through, relevant rule will be overtime and be deleted from rule list, due toSwitch module is in the incipient stage of packet, so the rule of coupling can not be too many, too many words are looked intoThe time of looking for can be very long, adds the load of large memories, affects so on the contrary performance.

Claims (2)

1. in home gateway, realize the method for packet expedited forwarding, by the CPU in home gatewayPacket is carried out in the process of routing rule coupling, realize, it is characterized in that: in the friendship of home gatewayIn the module of changing planes, set up packet input, output interface and routing rule memory, on this basisCarry out following steps:
When a, home gateway receive the packet of sending in network, by packet, input connects packetMouth is sent to switch module;
The sequence number of the mark code in b, switch module identification data packet encoder decision data bag ownership,Search the route rule of this package forward of storing in routing rule memory according to mark code and sequence number, mate the rear direct output interface by switch module and directly after output, skipped to steps d, ifDo not find the sequence number of packet ownership, carry out step c;
C, first packet is carried out to coding and sorting order, and by package forward the protocol stack to CPU,Export by CPU, switch module records the routing rule of this packet in protocol stack, and storageIn routing rule memory, back up, for subsequent use while once forwarding on this packet;
D, complete routing rule matching process.
2. the method that realizes packet expedited forwarding in home gateway according to claim 1,It is characterized in that: the routing rule having recorded in described routing rule memory adopts time delay deletion sideFormula.
CN201110133887.8A 2011-05-23 2011-05-23 In home gateway, realize the method for packet expedited forwarding Active CN102158419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110133887.8A CN102158419B (en) 2011-05-23 2011-05-23 In home gateway, realize the method for packet expedited forwarding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110133887.8A CN102158419B (en) 2011-05-23 2011-05-23 In home gateway, realize the method for packet expedited forwarding

Publications (2)

Publication Number Publication Date
CN102158419A CN102158419A (en) 2011-08-17
CN102158419B true CN102158419B (en) 2016-05-04

Family

ID=44439614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110133887.8A Active CN102158419B (en) 2011-05-23 2011-05-23 In home gateway, realize the method for packet expedited forwarding

Country Status (1)

Country Link
CN (1) CN102158419B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624628B (en) * 2012-03-22 2016-12-14 深圳市共进电子股份有限公司 A kind of home gateway and the method realizing packet fast-forwarding thereof
CN102694727A (en) * 2012-05-21 2012-09-26 太仓市同维电子有限公司 Method and device for realizing transmission acceleration of network data packets
CN102946347B (en) * 2012-12-07 2015-07-01 烽火通信科技股份有限公司 Method and device for accelerating to process local data packet by using Linux system
CN105516017A (en) * 2015-11-20 2016-04-20 上海斐讯数据通信技术有限公司 Directed acceleration method and device, and terminal equipment
CN107682267B (en) * 2017-09-21 2020-04-28 烽火通信科技股份有限公司 Network data forwarding method and system of Linux equipment
CN113746671B (en) * 2020-01-19 2023-05-26 烽火通信科技股份有限公司 Service acceleration method, terminal equipment and home gateway
CN111600812B (en) * 2020-05-13 2022-10-25 优刻得科技股份有限公司 Message processing method, processing device, readable medium and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100359885C (en) * 2002-06-24 2008-01-02 武汉烽火网络有限责任公司 Method for forwarding data by strategic stream mode and data forwarding equipment
CN102006242A (en) * 2010-12-24 2011-04-06 山石网科通信技术(北京)有限公司 Routing method of router and router

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100359885C (en) * 2002-06-24 2008-01-02 武汉烽火网络有限责任公司 Method for forwarding data by strategic stream mode and data forwarding equipment
CN102006242A (en) * 2010-12-24 2011-04-06 山石网科通信技术(北京)有限公司 Routing method of router and router

Also Published As

Publication number Publication date
CN102158419A (en) 2011-08-17

Similar Documents

Publication Publication Date Title
CN102158419B (en) In home gateway, realize the method for packet expedited forwarding
JP6275751B2 (en) Improved acknowledgment and retransmission mechanism
CN101246021B (en) Method, equipment and system for implementing intelligent navigation
CN102624628B (en) A kind of home gateway and the method realizing packet fast-forwarding thereof
CN102696205B (en) Communication control system and communication control method
CN102946356B (en) CB-PE (controlling bridge-port extender) network-based multicast message transmitting method and device
CN103220218B (en) The method and apparatus of anti-loops in vertical stack networking
CN104052667A (en) Packet processing method and device
CN104618236A (en) Parallel data transmission system and method of acceleration network
CN102739569B (en) Gateway used in satellite communication and method for enhancing TCP performance
CN104580371A (en) Methods of fragmentation, transmission and copy control for file fixed size and changeable size in opportunistic network
CN103067129B (en) network data transmission method and system
CN104104480A (en) Method and device for detecting retransmission packet loss of TCP (transmission control protocol)
CN104618432A (en) Event sending and receiving handling method and system
CN101827028B (en) Method and device for realizing multicasting VPN message transmission
CN109767162A (en) A kind of logistics information processing platform, system and its send addressee processing method
CN102394815B (en) Network acceleration realization method in LINUX
CN102594650B (en) Method for processing multicast message and exchange access apparatus
JP2005229575A5 (en)
CN107534520A (en) Boundling forward error correction (FEC) for multiple sequence flows
CN108234550A (en) A kind of method for sending information, message receiving method and PDCP entities
CN102263700A (en) Method, device and system for sending and receiving messages
CN101610217A (en) Be implemented in the method and system of message transmission between extensible processor and the exchange chip
CN102694727A (en) Method and device for realizing transmission acceleration of network data packets
CN102655476A (en) Internet protocol flow transmitting 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
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 518000, Shenzhen, Guangdong province Nanshan District Shekou Nanhai Road 1019, 100 surplus medical instrument Park, two floor

Applicant after: Shenzhen Gongjin Electronics Co., Ltd.

Address before: 518000, Shenzhen, Guangdong province Nanshan District Shekou Nanhai Road 1019, 100 surplus medical instrument Park, two floor

Applicant before: Shenzhen Gongjin Electronics Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN GONGJIN ELECTRONICS CO., LTD. TO: SHENZHEN GONGJIN ELECTRONIC CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant