CN101257459B - Data packet processing method and device - Google Patents

Data packet processing method and device Download PDF

Info

Publication number
CN101257459B
CN101257459B CN2008101035375A CN200810103537A CN101257459B CN 101257459 B CN101257459 B CN 101257459B CN 2008101035375 A CN2008101035375 A CN 2008101035375A CN 200810103537 A CN200810103537 A CN 200810103537A CN 101257459 B CN101257459 B CN 101257459B
Authority
CN
China
Prior art keywords
data message
message
module
transmission frequency
numerical value
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
CN2008101035375A
Other languages
Chinese (zh)
Other versions
CN101257459A (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.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks 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 Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN2008101035375A priority Critical patent/CN101257459B/en
Publication of CN101257459A publication Critical patent/CN101257459A/en
Application granted granted Critical
Publication of CN101257459B publication Critical patent/CN101257459B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a data message process method and a data message process device, wherein the data message process method includes: detecting the transmission frequency of the data message; comparing the transmission frequency whether is smaller than the given one; when the transmission frequency of the data message is smaller than the given one, the ration of transmission frequency of the data message and the given one is computed, further obtaining the current unit interrupt message value according to the ratio; the data message is processed with interrupt handling according to the given current unit interrupt message value or the current unit interrupt message value. The invention can effectively increase the transmitting and processing effect of the data message and ensure the delay and the CPU processing efficiency.

Description

Data message processing method and data message processing unit
Technical field
The present invention relates to Data Interchange Technology, particularly a kind of data message processing method and data message processing unit.
Background technology
Along with the continuous development of computer networking technology because local area network (LAN) has in the resource set and advantage such as resource-sharing, for people's work and life brought more convenient.In the local area network (LAN) of widespread usage, lan switching technology can provide the effective network segment to divide to sharing the formula local area network (LAN), makes that each user shares maximum bandwidth as much as possible in the local area network (LAN).In lan switching technology, switch is main connection device, has obtained at present using widely.At present, switch is mainly transmitted data flow by exchange chip, exchange chip wherein generally adopt application-specific integrated circuit (ASIC) (Application Specific IntegratedCircuit, hereinafter to be referred as: ASIC), transmit data message by hardware circuit.In the switch by central processing unit (Central Processing Unit, hereinafter to be referred as: CPU) come the normal operation of control protocol, and ASIC managed and controls.The message of CPU transmitting-receiving mainly comprises the management and control message of protocol massages and ASIC, for example: telnet, ping etc.CPU can carry out normal packet sending and receiving and be related to the normal operation of agreement and the operate as normal of switch, therefore, guaranteeing CPU transmitting-receiving message efficient work and stablizing is the prerequisite of switch operate as normal, also is the prerequisite that influences the lan switching technology operating efficiency.As shown in Figure 1, be the structural representation of prior art switch.Referring to Fig. 1, CPU by direct memory access (DMA) (Direct Memory Access, hereinafter to be referred as: DMA) send and management that receives ASIC and control message.
As shown in Figure 2, be the flow chart of prior art DMA transmission with receiving data packets.Referring to Fig. 2, this flow process comprises:
Step 101, in the DMA structure, fill in data necessary message transmissions information, for example: show to send or the first address information of the data message that data message transmission direction information, needs of receiving data packets send or receive, need to send or the length information of the data message of reception etc.
Step 102, data message transmission.
Whether step 103 in the transmission course of data message, is checked the transmission of data message, that is: send or receive, finish.If execution in step 104 is finished in transmission; Otherwise, continue execution in step 102.
At present, the main employing interrupts checking with the poll dual mode whether the data message transmission is finished.Wherein, adopt interrupt mode to check when whether the data message transmission is finished, need set in advance the quantity of the data message of each interruption transmission, that is: unit interrupts the message number, just each data message number (Packets Per Interrupt that interrupts transmission or receive, hereinafter to be referred as: PPI), for example: every transmission or receive 100 data messages and produce once and interrupt.When unit interruption message number was low, when promptly the PPI value was low, the Interrupt Process response speed was very fast.But if unit interruption message number is low excessively, interruption in other words produces too frequent, and the context switching meeting when then interrupting producing consumes a large amount of CPU times, and the waste cpu resource reduces the treatment effeciency of CPU to the data message.When unit interruption message number was higher, when promptly the PPI value was higher, CPU was higher to the treatment effeciency of data message, still, if unit interruption message number is too high, then can reduce the Interrupt Process response speed.
Step 104 is transmitted to finish and is handled operation, particularly, for receiving data packets, then the data message that receives is sent to CPU and carries out subsequent treatment; For sending datagram, then do some cleaning operations, for example: the buffering area that release sends datagram etc.
When Ethernet switch was realized the transceive data message in the prior art, it was fixed value that unit interrupts the message number, set in advance the back and can't adjust according to the transmission situation of data message in the process of transceive data message.Fixing PPI value is not suitable for the higher and low both of these case of data message transmission rate, and the transmission process effect of data message is relatively poor.With the receiving data packets is example, and when the PPI value was big, if the data message receiving velocity is lower, then the processing delay of data message was bigger; On the contrary, the PPI value hour, if the receiving velocity of data message is higher, it is higher to interrupt producing frequency, will consume more cpu resource.
Summary of the invention
Embodiment of the invention technical problem to be solved is: dynamically adjust the PPI value, effectively improve the transmission process effect of data message, effectively ensure time-delay and CPU treatment effeciency that message is handled.
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of data message processing method, comprising:
Detect the transmission frequency of data message;
Whether the transmission frequency of more described data message is less than default transmission frequency value;
In the transmission frequency of described data message during less than described default transmission frequency value, the unit of described data message interrupts message numerical value and is set to default unit interruption message numerical value, and according to described default unit interruption message numerical value described data message is carried out Interrupt Process;
In the transmission frequency of described data message during more than or equal to described default transmission frequency value, the ratio of the transmission frequency of calculated data message and described default transmission frequency value, and interrupt message numerical value as the current unit of described data message, and interrupt message numerical value according to described current unit described data message is carried out Interrupt Process with the integer part numerical value of described ratio.
The embodiment of the invention also provides a kind of data message processing unit, comprising:
Detection module is used to detect the transmission frequency of data message;
Comparison module, whether the transmission frequency that is used for the detected data message of more described detection module is less than default transmission frequency value;
Module is set, is used for the comparative result according to described comparison module, in the transmission frequency of described data message during less than described default transmission frequency value, the unit of described data message interrupts message numerical value and is set to default unit and interrupts message numerical value;
Computing module is used for the comparative result according to described comparison module, during more than or equal to described default transmission frequency value, calculates the ratio of the transmission frequency and the described default transmission frequency value of described data message in the transmission frequency of described data message;
Acquisition module, the integer part numerical value that is used for the described ratio that calculates with described computing module interrupts message numerical value as the current unit of described data message;
Interrupt module, be used in the transmission frequency of described data message during less than described default transmission frequency value, interrupt message numerical value according to the described described default unit that the module setting is set described data message is carried out Interrupt Process, in the transmission frequency of described data message during more than or equal to described default transmission frequency value, the described current unit that obtains according to described acquisition module interrupts message numerical value described data message is carried out Interrupt Process.
As shown from the above technical solution, whether the transmission frequency of the data message that can relatively receive in the embodiment of the invention is less than default transmission frequency value, and according to the dynamic adjustment of comparative result realization to unit interruption message numerical value, both can satisfy the real-time requirement of data message transmission, reduce the processing delay of data message, also can control the consumption of switch CPU, therefore the transmission process effect of data message be can effectively improve, time-delay and CPU treatment effeciency that data message is handled effectively ensured.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Fig. 1 is the structural representation of prior art switch;
Fig. 2 is the flow chart of prior art DMA transmission with receiving data packets;
Fig. 3 is the flow chart of data message processing method embodiment one of the present invention;
Fig. 4 is the flow chart of data message processing method embodiment two of the present invention;
Fig. 5 is the structure chart of data message processing unit embodiment one of the present invention;
Fig. 6 is the structure chart of data message processing unit embodiment two of the present invention;
Fig. 7 is the structure chart of data message processing unit embodiment three of the present invention.
Embodiment
In the embodiment of the invention, detect the transmission frequency of data message, and according to the transmission frequency of testing result comparing data message whether less than default transmission frequency value, transmission frequency according to data message is dynamically adjusted the unit interruption message numerical value of data message, in the transmission frequency of data message during less than default transmission frequency value, the unit of data message interrupts message numerical value and is set to default unit and interrupts message numerical value; In the transmission frequency of data message during more than or equal to default transmission frequency value, the ratio of the transmission frequency of calculated data message and default transmission frequency value, and interrupt message numerical value according to the current unit that this ratio further obtains data message, interrupt message numerical value with this dynamic adjusted unit, promptly default unit interrupts message numerical value or current unit interrupts message numerical value, and the data message is carried out Interrupt Process.
As shown in Figure 3, be the flow chart of data message processing method embodiment one of the present invention, can be applied to switch and the data message be carried out in the frame receiving and dispatching mechanism of Interrupt Process that the data message processing method of this enforcement may further comprise the steps:
Step 201, the transmission frequency of detection data message.
The transmission frequency of data message be the per second data message number that sends or receive (Packet PerSecond, hereinafter to be referred as: PPS), its detection method has multiple.For example: can directly detect by timer and counter, can also in Interrupt Process process, directly calculate PPS to the data message.Particularly, suppose that each second, interruption times was N time, then be spaced apart 1/N second the break period of each Interrupt Process, can come regularly to calculate PPS by the time interval of each Interrupt Process and the number of times of Interrupt Process.For example: per 20 Interrupt Process are calculated a PPS, that is: every 20/N calculates one time PPS second, write down per 20 Interrupt Process transmission data message number of (comprise and send or receive), suppose that this message number is M, promptly the data message number that sends in the time of second or receive at 20/N is M, like this, just, can calculate PPS is M*N/20.Particularly, be used to calculate the number of times of the Interrupt Process of PPS, that is: calculate a PPS every the how many times Interrupt Process, can rule of thumb be worth default, and can be in the Interrupt Process process according to the actual conditions adjustment.
The transmission frequency of while calculated data message in the Interrupt Process process, can realize obtaining in real time to the transmission frequency of data message, and then the transmission frequency according to data message is interrupted the dynamic adjustment of message numerical value to current unit in the realization subsequent process, further improves the efficient that data message is handled.
Step 202, according to testing result, whether the transmission frequency PPS of comparing data message less than default transmission frequency value c, if less than default transmission frequency value c, execution in step 203, otherwise, execution in step 204.
Wherein, c is default transmission frequency value, and this default transmission frequency value c can rule of thumb be worth definite and storage in advance.
Step 203, the unit of data message interrupts message numerical value PPI and is set to default unit interruption message numerical value, and execution in step 205 then.
It is each message number of sending or receiving of interrupting that the unit of data message interrupts message numerical value PPI, and as PPS during less than the c value, PPI is set to default unit interruption message numerical value.In order to realize that each data message is all carried out Interrupt Process, it is 1 that default unit interrupts message numerical value the best, like this, has reduced the processing delay under the low situation of transmission frequency of data message, has guaranteed the real-time that data message sends or receives.
Step 204, the ratio of the transmission frequency PPS of calculated data message and default transmission frequency value c, that is: PPS/c, and interrupt message numerical value according to the current unit that this ratio further obtains data message, particularly, to this ratio round numbers part, its integer part is interrupted message numerical value as current unit.
PPS illustrates that the data message amount that sends or receive is bigger during more than or equal to c, and unit interrupted the message number and was set to PPS/c this moment, made the interruption times of CPU per second can maintain about c time, and the response time of message while is controlled to be T, T=1/N=1/c.For example: c is 1000 o'clock, carries out Interrupt Process each second 1000 times, and the message processing delay is at 1ms.
Step 205 is interrupted message numerical value according to default unit, or current unit to interrupt message numerical value be the integer part value of PPS/c, the data message is carried out Interrupt Process.
According to above-mentioned explanation, as PPS during, current PPI value is set interrupts message numerical value for default unit less than c, default usually unit interrupts message numerical value gets 1; As PPS during more than or equal to c, current PPI value is set is PPS/c, adjust according to current PPS value and PPI value is set produces interruption, to the processing that the data message receives or sends, satisfied two kinds of very high and very low situations of data message transmission frequency simultaneously.For example: in carrying out the data message receiving course, when the frequency ratio of data message transmission is hanged down, it is 1 for default unit interrupts message numerical value that setting unit interrupts the message number, the transmission that guarantees each data message all produces once interruption, neither can produce delay, also reduce the consumption of CPU the processing of data message; When the frequency of data message transmission is higher, the unit interruption message number that is provided with is relevant with the transmission frequency of data message, and transmission frequency is high more, and unit interruption message number is just big more, make interruption times be consistent, improved the efficient of switch CPU Interrupt Process with the data message amount of transmitting-receiving.
Further, after step 205, also comprise: check according to interrupting the result whether the data message transmission is finished, if the data message transmission is finished, then the data message is transmitted to finish accordingly and handle operation, for receiving data packets, then the data message that receives is sent to CPU and carry out subsequent treatment; For sending datagram, then do some cleaning operations, for example: the buffering area that release sends datagram etc.If do not finish the data message transmission, then return execution in step 201, continue to detect the transmission frequency of data message, finish up to the data message transmission.
The method that present embodiment provides a kind of data message to handle, the size of the transmission frequency of comparing data message and default transmission frequency value at first, according to comparative result current unit is set and interrupts message numerical value, the unit of making interrupts the message number and dynamically adjusts with the data message amount of handling, can in time handle the data message, can not cause delay, when guaranteeing that transceive data message real-time requires, also reduced because interruption times too much to the consumption of switch CPU, has improved the efficient of switch CPU deal with data message greatly.
In step 205, when the data message is carried out Interrupt Process, can also write down the Interrupt Process moment of the data message being carried out Interrupt Process, and realize in view of the above being detained the processing of data message.
As shown in Figure 4, be the flow chart of data message processing method embodiment two of the present invention, this embodiment can in time handle the delay data message, it is in step 205, also write down the Interrupt Process moment of the data message being carried out Interrupt Process, after step 205, also comprise the steps:
Step 301, whether the last Interrupt Process that detects the distance record produces interrupt event in the interval default break period constantly, if do not produce interrupt event, execution in step 302, otherwise, continue to carry out the operation of this step 301.
Step 302, whether inquiry received data message behind the interrupt event last time, if receive data message, execution in step 303, otherwise, return execution in step 301.
Particularly, whether receive data message after can regularly inquiring about interrupt event last time by thread, that is: whether have the delay data message, wherein timing can be rule of thumb or actual conditions choose.
Step 303 is interrupted message numerical value with current unit and is revised as 1, with the residual data message of timely processing, discharges internal memory.
After dynamically message numerical value is interrupted in unit of adjustment, the delay that may produce data message, this situation generally is that there is the delay of several data messages in afterbody when handling the mass data message.The reason that causes this problem to produce be when the data message amount less, when interrupting message numerical value less than current current unit, that is: the data message amount does not reach the data message amount that each interruption sends or receives, therefore can't produce interrupt event, make data message not to be sent out on request or to receive, produced the data message that is detained.For example: suppose that current PPS is 10Kpps, the c value is 1000, PPI=10K/1000=10 then, stop the reception operation of data message suddenly, the data message number that receives is 5 if having no progeny in last, because this value does not reach current PPI value 10, can not produce interrupt event, these 5 data messages are detained, and can not be handled accordingly.
According to the abovementioned embodiments of the present invention two, after the transmitting-receiving that stops the mass data message suddenly, can be set to 1 by current unit interruption message numerical value, the data message retention problems of having brought when having solved dynamic adjustment PPI value, guarantee the real-time that follow-up data message is handled, further improved treatment effeciency.
As shown in Figure 5, structure chart for data message processing unit embodiment one of the present invention, the data message processing unit of this embodiment can be used for realizing the flow process of data message processing method embodiment as shown in Figure 3, and it comprises detection module 401, comparison module 402, module 403 is set, computing module 404, acquisition module 405 and interrupt module 406.Wherein, detection module 401 is used to detect the transmission frequency PPS of data message; Whether comparison module 402 is used for the transmission frequency PPS of comparison detection module 401 detected data messages less than default transmission frequency value c; Module 403 is set is used for comparative result according to comparison module 402, at the transmission frequency PPS of data message during less than default transmission frequency value c, current unit interrupts message numerical value PPI and is set to default unit and interrupts message numerical value; Computing module 404 is used for the comparative result according to comparison module 402, at the transmission frequency PPS of data message during more than or equal to default transmission frequency value c, and the ratio PPS/c of the transmission frequency PPS of calculated data message and default transmission frequency value c; The current unit that the ratio PPS/c that acquisition module 405 is used for calculating according to computing module 404 obtains data message interrupts message numerical value, particularly, gets the current unit interruption message numerical value of the integer part of this ratio PPS/c as data message; It is that data message carries out Interrupt Process that interrupt module 406 is used for getting access to current unit interruption message numerical value with default unit interruption message numerical value that module 403 settings are set or acquisition module 405.
Again referring to Fig. 5, can also comprise memory module 407 in the data message processing unit of the foregoing description, be used to store the unit interruption message numerical value of default transmission frequency value c and/or data message, whether comparison module 402 is used for the transmission frequency PPS of comparison detection module 401 detected data messages less than the default transmission frequency value c that comprises memory module 407 storages, module 403 is set at the transmission frequency PPS of data message during less than default transmission frequency value c, the unit of data message interrupts message numerical value and is set to that the default unit of storage interrupts message numerical value in the memory module 407.
As shown in Figure 6, be the structure chart of data message processing unit embodiment two of the present invention, in the data message processing unit of this embodiment, can also comprise logging modle 501, judge module 502 and first enquiry module 503.Wherein, logging modle 501 is used to write down the Interrupt Process moment that 406 pairs of data messages of interrupt module carry out the interrupt event of Interrupt Process and produce the respective interrupt incident; Judge module 502 is used for the recorded information according to logging modle 501, and whether Interrupt Process last time of judging distance record produces interrupt event in the interval break period constantly; First enquiry module 503 is used for the judged result according to judge module 502, when not producing interrupt event, whether receive data message after inquiry interrupt event last time, if receive data message, then indication is provided with the default unit interruption message numerical value that module 403 is revised as current unit interruption message numerical value storage in the memory module 407.
By in the data message processing unit, adding judge module and enquiry module, solve this device and dynamically adjusted the data message retention problems that may bring when current unit interrupts message numerical value, further improved the efficient that switch is handled the data message.
In addition, in Fig. 5 or data message processing unit embodiment illustrated in fig. 6, can also set up and fill in module 601, data transmission module 602, second enquiry module 603 and processing module 604, as shown in Figure 7, set up the structure chart of the embodiment three after the above-mentioned module for data message processing unit of the present invention.Wherein, filling in module 601 is used for filling in data message transmission information to the direct memory access (DMA) structure, for example: show to send or the first address information of the data message that data message transmission direction information, needs of receiving data packets send or receive, need to send or the length information of the data message of reception etc.; Data transmission module 602 is used for according to filling in the corresponding data message of data message transmission message transmission that module 601 is filled in; Detection module 401 is used to detect the transmission frequency of data transmission module 602 data message transmissions; The data message of transmission carries out Interrupt Process on 406 pairs of data transmission modules 602 of interrupt module; Second enquiry module 603 is used for the Interrupt Process result according to interrupt module 406, and whether data query transport module 602 finishes the transmission or the transmitting-receiving of data message; Processing module 604 is used for the Query Result according to second enquiry module 603, finishes transmitting-receiving or during data message transmission at data transmission module 602, the data message is transmitted to finish handle operation; Interrupt module 406 is used for interrupting message numerical value with the current unit that default unit interruption message numerical value that module 403 settings are set or acquisition module 405 get access to the data message that data transmission module 602 transmits is carried out Interrupt Process.
It should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not limit it, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solution of the present invention.

Claims (9)

1. a data message processing method is characterized in that, comprising:
Detect the transmission frequency of data message;
Whether the transmission frequency of more described data message is less than default transmission frequency value;
In the transmission frequency of described data message during less than described default transmission frequency value, the unit of described data message interrupts message numerical value and is set to default unit interruption message numerical value, and according to described default unit interruption message numerical value described data message is carried out Interrupt Process;
In the transmission frequency of described data message during more than or equal to described default transmission frequency value, the ratio of the transmission frequency of calculated data message and described default transmission frequency value, and interrupt message numerical value as the current unit of described data message, and interrupt message numerical value according to described current unit described data message is carried out Interrupt Process with the integer part numerical value of described ratio.
2. data message processing method according to claim 1 is characterized in that, it is 1 that described default unit interrupts message numerical value.
3. data message processing method according to claim 1 and 2, it is characterized in that, interrupt message numerical value or described current unit according to described default unit and interrupt message numerical value when described data message is carried out Interrupt Process, also comprise: the Interrupt Process that record carries out Interrupt Process to described data message constantly.
4. data message processing method according to claim 3 is characterized in that, interrupts message numerical value or described current unit according to described default unit and interrupts message numerical value described data message is carried out also comprising after the Interrupt Process:
Whether Interrupt Process last time of judging distance record produces interrupt event in the interval break period constantly, when not producing interrupt event, whether receives data message after inquiry interrupt event last time; If receive described data message, then described current unit is interrupted message numerical value and be revised as described default unit interruption message numerical value.
5. data message processing method according to claim 3 is characterized in that, interrupts message numerical value or described current unit according to described default unit and interrupts message numerical value described data message is carried out also comprising after the Interrupt Process:
Whether transmission is finished according to Interrupt Process result queries data message, if do not finish, whether the transmission frequency of then returning the described comparing data message of execution is less than the operation of presetting the transmission frequency value.
6. a data message processing unit is characterized in that, comprising:
Detection module is used to detect the transmission frequency of data message;
Comparison module, whether the transmission frequency that is used for the detected data message of more described detection module is less than default transmission frequency value;
Module is set, is used for the comparative result according to described comparison module, in the transmission frequency of described data message during less than described default transmission frequency value, the unit of described data message interrupts message numerical value and is set to default unit and interrupts message numerical value;
Computing module is used for the comparative result according to described comparison module, during more than or equal to described default transmission frequency value, calculates the ratio of the transmission frequency and the described default transmission frequency value of described data message in the transmission frequency of described data message;
Acquisition module, the integer part numerical value that is used for the described ratio that calculates with described computing module interrupts message numerical value as the current unit of described data message;
Interrupt module, be used in the transmission frequency of described data message during less than described default transmission frequency value, interrupt message numerical value according to the described described default unit that the module setting is set described data message is carried out Interrupt Process, in the transmission frequency of described data message during more than or equal to described default transmission frequency value, the described current unit that obtains according to described acquisition module interrupts message numerical value described data message is carried out Interrupt Process.
7. data message processing unit according to claim 6 is characterized in that, also comprises:
Memory module is used to store described default transmission frequency value and/or described default unit interrupts message numerical value.
8. data message processing unit according to claim 7 is characterized in that, also comprises:
Logging modle is used to write down the Interrupt Process moment that described interrupt module carries out the interrupt event of Interrupt Process and produces interrupt event described data message;
Judge module is used for the recorded information according to described logging modle, and whether Interrupt Process last time of judging distance record produces interrupt event in the interval break period constantly;
First enquiry module, be used for judged result according to described judge module, when not producing interrupt event, whether receive data message after inquiry interrupt event last time, if receive described data message, then indicate the described module that is provided with that described current unit interruption message numerical value is revised as described default unit interruption message numerical value.
9. according to any described data message processing unit of claim 6 to 8, it is characterized in that, also comprise:
Fill in module, be used for filling in data message transmission information to the direct memory access (DMA) structure;
Data transmission module is used for filling in the data message transmission message transmission data message that module fills in according to described;
Second enquiry module is used for the Interrupt Process result according to described interrupt module, and whether inquiry finishes the transmission of described data message;
Processing module is used for the Query Result according to described second enquiry module, when the transmission of finishing described data message, described data message is transmitted to finish handle operation;
Described detection module is used to detect the transmission frequency of described data transmission module data message transmission;
Described interrupt module is used for interrupting current unit that message numerical value or described acquisition module get access to the described described default unit that the module setting is set to interrupt message numerical value the data message in described data transmission module transmission is carried out Interrupt Process.
CN2008101035375A 2008-04-08 2008-04-08 Data packet processing method and device Expired - Fee Related CN101257459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101035375A CN101257459B (en) 2008-04-08 2008-04-08 Data packet processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101035375A CN101257459B (en) 2008-04-08 2008-04-08 Data packet processing method and device

Publications (2)

Publication Number Publication Date
CN101257459A CN101257459A (en) 2008-09-03
CN101257459B true CN101257459B (en) 2010-08-18

Family

ID=39891939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101035375A Expired - Fee Related CN101257459B (en) 2008-04-08 2008-04-08 Data packet processing method and device

Country Status (1)

Country Link
CN (1) CN101257459B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465810B (en) * 2009-01-23 2013-04-17 华为技术有限公司 Method, device and system for controlling chip energy consumption
CN102006615A (en) * 2010-11-25 2011-04-06 中兴通讯股份有限公司 Method and device for processing massage
CN108337035B (en) * 2018-02-05 2020-12-01 北京电子工程总体研究所 Satellite remote-measuring interruption processing method for remote-measuring downlink hot backup and seamless connection

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1324163A (en) * 2000-05-13 2001-11-28 三星电子株式会社 Device and method for testing data transfer rate
CN1968192A (en) * 2006-05-09 2007-05-23 华为技术有限公司 Flow control method and apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1324163A (en) * 2000-05-13 2001-11-28 三星电子株式会社 Device and method for testing data transfer rate
CN1968192A (en) * 2006-05-09 2007-05-23 华为技术有限公司 Flow control method and apparatus

Also Published As

Publication number Publication date
CN101257459A (en) 2008-09-03

Similar Documents

Publication Publication Date Title
US11656671B2 (en) Negotiating a transmit wake time
US8473647B2 (en) Methods and apparatus for decreasing power consumption and bus activity
US10015104B2 (en) Processing received data
US8924753B2 (en) Apparatus and method for adaptive frequency scaling in digital system
CN103401804B (en) Wireless sensor network node data buffer storage transmission control system and method
US7480238B2 (en) Dynamic packet training
US9980207B2 (en) Delayed response to requesting device
JP2022533970A (en) Speed-optimized congestion management
US10890962B2 (en) Power management in a configurable bus
US11243560B2 (en) Methods and apparatus for synchronization of time between independently operable processors
JP2003319468A (en) Power efficient channel scheduling in wireless network
US7260106B2 (en) Method and apparatus for managing energy usage of processors while executing protocol state machines
CN101257459B (en) Data packet processing method and device
US20220103484A1 (en) Congestion control
CN101695045A (en) Method and device for realizing Ethernet messaging
US7639628B2 (en) Response time detection in a network having shared interfaces
EP2761825B1 (en) Credit based power management
US20140207948A1 (en) Network interface on a chip with an adaptive system to trigger data forwarding
Atkin et al. Evaluation of an adaptive transport protocol
CN112469111B (en) Wireless communication method and device based on LoRa and gateway equipment
CN110601996B (en) Looped network anti-starvation flow control method adopting token bottom-preserving distributed greedy algorithm
CN114003362A (en) Multidimensional dynamic interrupt aggregation method, system, equipment and storage medium
JP2003258884A (en) Flow control system for file transfer by all bank association tcp/ip procedure, and its program

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: 20100818

Termination date: 20140408