CN1848795A - Method for realizing large data packet quick retransmission in real-time communication system - Google Patents

Method for realizing large data packet quick retransmission in real-time communication system Download PDF

Info

Publication number
CN1848795A
CN1848795A CNA2005100251335A CN200510025133A CN1848795A CN 1848795 A CN1848795 A CN 1848795A CN A2005100251335 A CNA2005100251335 A CN A2005100251335A CN 200510025133 A CN200510025133 A CN 200510025133A CN 1848795 A CN1848795 A CN 1848795A
Authority
CN
China
Prior art keywords
packet
stream
data packet
network interface
interface card
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
CNA2005100251335A
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.)
SHANGHAI UTT TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI UTT 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 UTT TECHNOLOGY Co Ltd filed Critical SHANGHAI UTT TECHNOLOGY Co Ltd
Priority to CNA2005100251335A priority Critical patent/CN1848795A/en
Publication of CN1848795A publication Critical patent/CN1848795A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method for realizing quick retransmission of big data packet in real time communication system includes carrying NAT and firewall filter treatment in receiving buffer storage and setting up an index in high speed buffer at the same time, recording concrete information of stream and port required to be retransmitted, interrupting the processing program to seek high speed buffer when stream succeedent packet is arrived, sending out data packet in internal memory directly by relevant port according to information in high speed buffer with no necessary of copying data packet from internal memory to buffer.

Description

In real-time communication system, realize the method that big packet is transmitted fast
Technical field
The present invention relates to the router field, relate in particular to the method for the forwarding of the big packet of a kind of router.
Background technology
ReOS is the real-time communication system of HiPER series router.The ReOS system mainly operates on the embedded type CPU, as the Power PC of Motorola Inc., and ARM7 and ARM9 nuclear, MIPS nuclear, IntelXscale also may operate in the CPU etc. of the i386 compatibilities such as CPU of i386 compatibility.ReOS has realized that by CPU and external network interface chip the packet of the network equipment transmits and other management functions, and in present system, the forwarding of packet mainly realizes by CPU.
And a typical mid-range-and-low-end routers system is the CPU of kernel with ARM9, and is as follows in the flow process of the processing mode of ReOS:
1. the chip of network interface card is received the packet of Ethernet, this packet is placed on receives buffering, sends interrupt message to CPU then;
2.CPU receive after the interrupt message that CPU carries out task scheduling, call the task of needing processing;
3. this task copies packet in the internal memory to from receive buffer memory, handle accordingly, as decision abandons still forwarding through the firewall filtering module, perhaps handle and revise IP address and port through NAT, perhaps need to carry out flow control and be placed into queue queue etc.;
4. treated packet is forwarded to corresponding ports, perhaps abandons, perhaps forward the application program on upper strata to;
5. after the processing data packets that need forward finishes, newly-generated packet is delivered to corresponding transmission buffering.
In above step, the first step is than very fast, and second step need to begin CPU to intervene in a large number, and is more consuming time.Under this pattern, the forward efficiency of ReOS, at typical A RM9 kernel, dominant frequency is on the CPU of 166Mhz, the numerical value that bag is transmitted is 6000PPS (Packet Per Second), that is to say that per second can be transmitted 6000 bags when Bao Changwei 64 bytes.The throughput of no packet loss is at 2Mbps.
Under this disposal ability, when Bao Changwei 1518 bytes (the maximum bag of Ethernet is long), the quantity of the bag that per second can be transmitted is also below 5000.
But because the continuous development of network application, the user is also more and more higher to the requirement of access bandwidth.
Summary of the invention
The technical issues that need to address of the present invention have provided a kind of method that big packet is transmitted fast that realizes in real-time communication system, be intended to solve the above problems.
In order to solve the problems of the technologies described above, the present invention realizes by following steps:
Network interface card is received the packet that is sended over by other equipment;
Whether CPU has pending packet to the network interface card inquiry at set intervals;
If pending packet is arranged in the network interface card buffer memory, enters interrupt handling routine;
Interrupt handling routine is received first packet of " stream " that sends over, carries out flow process and transmits; Described " stream " is meant to have identical source address, destination address, source port, the packet of destination interface and agreement; Described flow process is transmitted and comprised: in receiving buffer memory this packet is carried out NAT, an index is set up in processing such as firewall filtering simultaneously in speed buffering, and the specifying information of this stream and the port that needs to transmit are noted;
When " stream " bag reaches subsequently the time, interrupt handling routine removes to search speed buffering, according to the information in the speed buffering packet is directly sent by the corresponding port, no longer the data of internal memory is copied to earlier and sends buffering;
Compared with prior art, the invention has the beneficial effects as follows: more than long 512 bytes of bag reach, reached two-way linear speed.
Description of drawings
Fig. 1 is the comparison diagram of the technology of the present invention and another " stream ";
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is described in further detail:
Network interface card is received the packet that is sended over by other equipment;
Whether CPU has pending packet to the network interface card inquiry at set intervals;
If pending packet is arranged in the network interface card buffer memory, enters interrupt handling routine;
Interrupt handling routine is received first packet of " stream " that sends over, carries out flow process and transmits; Described " stream " is meant to have identical source address, destination address, source port, the packet of destination interface and agreement; Described flow process is transmitted and comprised: in receiving buffer memory this packet is carried out NAT, an index is set up in processing such as firewall filtering simultaneously in speed buffering, and the specifying information of this stream and the port that needs to transmit are noted;
When " stream " bag reaches subsequently the time, interrupt handling routine removes to search speed buffering, according to the information in the speed buffering packet is directly sent by the corresponding port, no longer the data of internal memory is copied to earlier and sends buffering.
Adopt the CPU poll and do not copy the mode of internal memory, the forwarding of parcel is increased, still the forward efficiency to big bag has improved a lot.More than long 512 bytes of bag reach, reached two-way linear speed.
Be that the present invention and the technology that adopts another " stream " compare (as shown in Figure 1) below:
The technology of another " stream " is to realize by following steps:
Network interface card is received the packet that is sended over by other equipment, enters interrupt handling routine;
Interrupt handling routine is received first packet of " stream " that sends over, carries out flow process and transmits; Described " stream " is meant to have identical source address, destination address, source port, the packet of destination interface and agreement; Described flow process is transmitted and is comprised: packet is copied in the internal memory from the network interface card buffer memory, carry out again handling through fire compartment wall as needs, perhaps handle etc., in speed buffering, set up an index simultaneously, the specifying information of this stream and the port that needs to transmit are noted through NAT;
When " stream " bag reaches subsequently the time, interrupt handling routine removes to search speed buffering, according to the information in the speed buffering, the bag content in the internal memory is copied to earlier send buffering, waits for the transmission of this port then.

Claims (1)

1. in real-time communication system, realize the method that big packet is transmitted fast for one kind, realize by following steps:
Network interface card is received the packet that is sended over by other equipment;
Whether CPU has pending packet to the network interface card inquiry at set intervals;
If pending packet is arranged in the network interface card buffer memory, enters interrupt handling routine;
Interrupt handling routine is received first packet of " stream " that sends over, carries out flow process and transmits; Described " stream " is meant to have identical source address, destination address, source port, the packet of destination interface and agreement; Described flow process is transmitted and comprised: in receiving buffer memory this packet is carried out NAT, an index is set up in processing such as firewall filtering simultaneously in speed buffering, and the specifying information of this stream and the port that needs to transmit are noted;
When " stream " bag reaches subsequently the time, interrupt handling routine removes to search speed buffering, according to the information in the speed buffering packet is directly sent by the corresponding port, no longer the data of internal memory is copied to earlier and sends buffering.
CNA2005100251335A 2005-04-15 2005-04-15 Method for realizing large data packet quick retransmission in real-time communication system Pending CN1848795A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2005100251335A CN1848795A (en) 2005-04-15 2005-04-15 Method for realizing large data packet quick retransmission in real-time communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2005100251335A CN1848795A (en) 2005-04-15 2005-04-15 Method for realizing large data packet quick retransmission in real-time communication system

Publications (1)

Publication Number Publication Date
CN1848795A true CN1848795A (en) 2006-10-18

Family

ID=37078164

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2005100251335A Pending CN1848795A (en) 2005-04-15 2005-04-15 Method for realizing large data packet quick retransmission in real-time communication system

Country Status (1)

Country Link
CN (1) CN1848795A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247266B (en) * 2008-03-21 2011-05-25 深圳市国人射频通信有限公司 Method for processing data in Ethernet
CN102541803A (en) * 2011-12-31 2012-07-04 曙光信息产业股份有限公司 Data sending method and computer
CN103379029A (en) * 2012-04-24 2013-10-30 华为技术有限公司 Method, device and system for forwarding routing of content network
CN103475586A (en) * 2013-08-22 2013-12-25 东软集团股份有限公司 Method, device and system for forwarding network data messages
CN113099490A (en) * 2021-03-09 2021-07-09 深圳震有科技股份有限公司 Data packet transmission method and system based on 5G communication

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247266B (en) * 2008-03-21 2011-05-25 深圳市国人射频通信有限公司 Method for processing data in Ethernet
CN102541803A (en) * 2011-12-31 2012-07-04 曙光信息产业股份有限公司 Data sending method and computer
CN103379029A (en) * 2012-04-24 2013-10-30 华为技术有限公司 Method, device and system for forwarding routing of content network
CN103475586A (en) * 2013-08-22 2013-12-25 东软集团股份有限公司 Method, device and system for forwarding network data messages
CN103475586B (en) * 2013-08-22 2016-05-04 东软集团股份有限公司 The retransmission method of network data message, Apparatus and system
CN113099490A (en) * 2021-03-09 2021-07-09 深圳震有科技股份有限公司 Data packet transmission method and system based on 5G communication

Similar Documents

Publication Publication Date Title
CN101340574B (en) Method and system realizing zero-copy transmission of stream media data
CN105577567B (en) Network packet method for parallel processing based on Intel DPDK
US9503383B2 (en) Flow control for reliable message passing
US7571247B2 (en) Efficient send socket call handling by a transport layer
CN102739473B (en) Network detecting method using intelligent network card
CN101052046A (en) Anti-virus method and device for fire-proof wall
US20070070901A1 (en) Method and system for quality of service and congestion management for converged network interface devices
WO2010075201A1 (en) Packet aggregation and fragmentation at layer-2 over a managed network
CN1558623A (en) Method and system for immediately processing real time media stream data packets
CN1848795A (en) Method for realizing large data packet quick retransmission in real-time communication system
CN1742469A (en) Methods and devices for transmitting data between storage area networks
CN1848796A (en) Method for realizing fast retransmission in real-time communication system
Li et al. The comparison and verification of some efficient packet capture and processing technologies
CN102868636A (en) Method and system for stream-based order preservation of multi-core network equipment packet
US6839355B1 (en) Cable modem link layer bridge
CN1968207A (en) Broadcast storm control system and method
CN1679015A (en) System and method for tpc/ip offload independent of bandwidth delay product
CN101582880A (en) Method and system for filtering messages based on audited object
CN1147094C (en) Message receiving and transmitting method of combined bridge connection function and routing function
CN1293726C (en) Method for implementing quick transmission of bridge data on network link
CN1266883C (en) Method for controlling network port flow
CN113453278A (en) TCP packet segmentation packaging method based on 5G UPF and terminal
CN110602225A (en) Efficient packet receiving and sending method of linux system suitable for industrial control environment
CN102355598B (en) Operating system drive layer-based scrambling method and device
CN100531224C (en) High-speed stream media data transferring system and its transferring method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication