CN107589996A - A kind of method and device of releasing memory - Google Patents

A kind of method and device of releasing memory Download PDF

Info

Publication number
CN107589996A
CN107589996A CN201710724177.XA CN201710724177A CN107589996A CN 107589996 A CN107589996 A CN 107589996A CN 201710724177 A CN201710724177 A CN 201710724177A CN 107589996 A CN107589996 A CN 107589996A
Authority
CN
China
Prior art keywords
cpu
sent
network data
message
objective network
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
CN201710724177.XA
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.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies 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 New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN201710724177.XA priority Critical patent/CN107589996A/en
Publication of CN107589996A publication Critical patent/CN107589996A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the present application provides a kind of method and apparatus of releasing memory, belongs to Internet technical field.Methods described includes:Obtain objective network data to be sent;The local CPU of request is the objective network data distribution target memory, and by the objective network data storage in the target memory;Determine the number of the receiving device of the objective network data, the number, which is sent, to the CPU sends message, address of the objective network data in the target memory is carried in the transmission message, so that the CPU is read from the target memory based on the address and sends the objective network data;Receive the CPU and often send the recovery message sent after the objective network data;When the number for the recovery message that the CPU received is sent is identical with the number of the receiving device, the target memory is discharged.Using the present invention, the efficiency for sending network data can be improved.

Description

A kind of method and device of releasing memory
Technical field
The application is related to field of computer technology, more particularly to a kind of method and device of releasing memory.
Background technology
At present, the application of communication network is more and more extensive, and function is also stronger and stronger.Multiple network is included in communication network Equipment, such as router, interchanger or firewall box etc..These network equipments all have the function of sending message, to realize The transmission of network data.
The network equipment send network data detailed process be:When the network equipment needs certain network data being sent to reception During equipment (such as terminal device or other network equipments), the drive module of the network equipment can obtain network data to be sent with And the mark of the receiving device of the network data, then ask the network equipment CPU (Central Processing Unit, in Central processor) it is the network data storage allocation, drive module can store the network data into the internal memory, and add it His message information, composition include the message of the network data, and then drive module sends transmission message to CPU, and CPU then can should Message is sent to corresponding receiving device.After CPU sends the message, recovery message is sent to drive module, drive module receives To after recovery message, default internal memory realizing interface (such as memory management interfaces) is called to discharge the internal memory.
However, the network equipment would generally broadcast or multicast send network data, that is, multiple receiving devices be present.Now, it is right In each receiving device, it is required for performing above-mentioned transmission processing, the message comprising the network data could be sent to each connect Receiving unit, cause to send the less efficient of network data.
The content of the invention
The purpose of the embodiment of the present application is to provide a kind of method and apparatus of releasing memory, to realize that raising sends network The efficiency of data.Concrete technical scheme is as follows:
First aspect, there is provided a kind of method of releasing memory, methods described include:
Obtain objective network data to be sent;
The local CPU of request is the objective network data distribution target memory, and by the objective network data storage In the target memory;
The number of the receiving device of the objective network data is determined, sending the number to the CPU sends message, Address of the objective network data in the target memory is carried in the transmission message, so that the CPU is based on institute Address is stated to read from the target memory and send the objective network data;
Receive the CPU and often send the recovery message sent after the objective network data;
When the number for the recovery message that the CPU received is sent is identical with the number of the receiving device, release The target memory.
Second aspect, there is provided a kind of device of releasing memory, described device include:
Acquisition module, for obtaining objective network data to be sent;
Memory module, it is the objective network data distribution target memory for asking local CPU, and by the target Network data is stored in the target memory;
Sending module, the number of the receiving device for determining the objective network data, the number is sent to the CPU Mesh sends message, and address of the objective network data in the target memory is carried in the transmission message, so that The CPU is read from the target memory based on the address and sends the objective network data;
Receiving module, the recovery message sent after the objective network data is often sent for receiving the CPU;
Release module, for the number and the number of the receiving device of the recovery message sent as the CPU received When mesh is identical, the target memory is discharged.
In the embodiment of the present invention, the network equipment obtains objective network data to be sent, and it is mesh then to ask local CPU Network data distribution target memory is marked, and by objective network data storage in target memory, and then determine objective network data Receiving device number, to CPU send number send message, transmission message in carry objective network data in target Address in depositing, so that CPU is read from target memory based on address and sends objective network data, the network equipment can receive CPU often sends the recovery message sent after an objective network data, when the number for the recovery message that the CPU received is sent is with connecing When the number of receiving unit is identical, request CPU release target memories.So, when multiple receiving devices be present, can be connect to whole After receiving unit sends objective network data, recycling target memory, the efficiency for sending network data is improved.
Certainly, implementing any product of the application or method must be not necessarily required to reach all the above excellent simultaneously Point.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of application, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of method flow diagram of releasing memory provided in an embodiment of the present invention;
Fig. 2 is a kind of example flow diagram of releasing memory provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of the device of releasing memory provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of the device of releasing memory provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of the device of releasing memory provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of the application protection.
The embodiments of the invention provide a kind of method of releasing memory, this method can apply to the driving mould of the network equipment Block, the network equipment can be the network equipments for having message broadcasting or multicast functionality, such as router, interchanger or fire wall Equipment etc..As shown in figure 1, this method may comprise steps of:
Step 101, objective network data to be sent are obtained.
In force, the network equipment can also be including console module etc..When the network equipment needs to send out to other network equipments During SCN Space Cable Network data (i.e. objective network data), the console module of the network equipment can give objective network data distributing to driving mould Block.Drive module can then receive objective network data to be sent.In addition, console module can also be by objective network data Recipient's information be sent to drive module, recipient's information can be each receiving device facility information (such as receive set Standby mark) or broadcast identification.For example, if the network equipment is needed by objective network data by way of unicast, Some receiving device is sent to, then the mark of the receiving device can be sent to drive module;If the network equipment need by Objective network data are sent to multiple receiving devices by way of multicast, then can send the plurality of reception to drive module The mark of equipment;If the network equipment needs objective network data broadcasting being sent to connected each receiving device, can To send broadcast identification to drive module.
Step 102, it is objective network data distribution target memory to ask local CPU, and by objective network data storage In target memory.
In force, after drive module gets objective network data, can send Memory Allocation to the CPU of local please Ask, the data volume of objective network data can be carried in Memory Allocation request, after CPU receives Memory Allocation request, Can be according to the data volume of objective network data, for the objective network data distribution internal memory (i.e. target memory), then can be to Drive module sends Memory Allocation notice, and the address information of target memory, such as target can be carried in Memory Allocation notice The first address of internal memory.Drive module then can based on the Memory Allocation notify in target memory address information, by target network In network data Cun Chudao target memories, and other message informations can be added, composition includes the message of the objective network data.
Step 103, the number of the receiving device of objective network data is determined, sending the number to CPU sends message.
Wherein, send in message and carry address of the objective network data in target memory, so that CPU is based on the address Read from target memory and send objective network data.
In force, drive module can also determine target according to recipient's information of the objective network data received The number of the receiving device of network data, and the number is stored.For example, in the case of unicast and multicast, mould is driven Block can receive the mark of receiving device, it is then determined that the number of the mark of the receiving device;In the case of broadcast, mould is driven Block can receive broadcast identification, then inquiry and locally-attached receiving device, and then count the number of these receiving devices.Drive After dynamic model block determines the number of the receiving device of objective network data, it can gradually be sent according to the number of receiving device to CPU Send message.Address of the message of objective network data in target memory can be carried in the transmission message, the address can To be initial address of the above-mentioned message comprising the objective network data in target memory.CPU can be according to the address, from mesh The message that objective network data are obtained in internal memory is marked, and the message is transmitted.Wherein, opened from the initial address of object content In the preset byte of beginning, some other information can be filled, or, the preset byte can be sky, therefore, objective network data Address in target memory, the first address from target memory can be different.It should be noted that determine objective network data The step of number of receiving device, the step of local CPU is objective network data distribution target memory with request, can be regardless of Successively.
Optionally, drive module gradually can be with specific as follows to the processing procedure of CPU transmission transmission message:To local CPU sends a transmission message, after the recovery message of CPU transmissions is received, sends message, Zhi Daoyi to CPU again Untill the number of the transmission message of transmission reaches the number of receiving device.
In force, when the network equipment needs to send objective network data to other network equipments, the network equipment is put down Recipient's information of objective network data can also be sent to local CPU by platform module.CPU, which can then be based on the recipient, to be believed Breath, obtains the facility information of each receiving device, and the facility information can include the mark of receiving device, can also be set including reception Standby address information etc..In the case of receiving device is multiple, the facility information of multiple receiving devices can be with the shape of queue Formula is stored.
Drive module by objective network data storage in target memory after, can to CPU send one transmission message, Address of the message of objective network data in target memory can be carried in the transmission message.CPU receives the transmission and disappeared After breath, the transmission message can be parsed, the address wherein carried be obtained, then according to the address, from target memory The message of objective network data is read, and then setting for the receiving device can be obtained in above-mentioned queue in the way of poll Standby information, is then based on the facility information of receiving device got, the message is sent into corresponding receiving device.CPU will After the message is sent, recovery message can be sent to drive module, so that drive module knows that the message is sent successfully.The recovery The first address of target memory can be carried in message.After drive module receives the recovery message, it can be sent again to CPU The transmission message, CPU in above-mentioned queue, in the way of poll, can then obtain mark and the address of next receiving device Information, the message is sent to the receiving device, by that analogy.
Step 104, receive CPU and often send the recovery message sent after an objective network data.
In force, as described above, CPU is received after sending message, the transmission message can be parsed, obtains it The address of middle carrying, then according to the address, CPU is read from target memory based on the address and sends objective network data. After CPU sends the message, recovery message can be sent to drive module, so that drive module knows that the message is sent successfully. The first address of target memory can be carried in the recovery message.CPU often sends an objective network data, it is possible to driving Module sends a recovery message, and drive module can then receive the recovery message.
Step 105, when the number of the CPU received the recovery message sent is identical with the number of receiving device, release Target memory.
In force, after drive module receives recovery message, the recovery message received can be counted, and can After counting, to judge the number for the recovery message having been received by, if it is identical with the number of receiving device, if it is not the same, The step of can then performing to CPU transmission transmission message;, can be according to the target memory carried in recovery message if identical First address, call default internal memory realizing interface (such as memory management interfaces).
Optionally, be diversified to the mode that is counted of recovery message, present embodiments provide two kinds it is feasible Processing mode:
Mode one, the number of receiving device is stored in the preset field of target memory, whenever receiving CPU transmissions After reclaiming message, the numerical value in preset field is subtracted 1, and judges whether the result after subtracting 1 is 0, if it is, judging to receive CPU send recovery message number it is identical with the number of receiving device.
In force, the number of receiving device can be stored in the preset field of target memory by drive module, and this is pre- If field can be the header fields of target memory, for example uiSendCounts sends count area.In addition, the preset field It can be other fields in above-mentioned target memory, can also be the field in other storage resources of drive module, this implementation Example does not limit.Numerical value in the field can be used for the number (number that i.e. message needs are sent) for recording receiving device.Will The number of receiving device is stored in the header fields of target memory, can be searched in order to drive module, improves driving mould Block searches the efficiency of the number of receiving device, so that drive module can quickly be determined a need for continuing sending transmission and disappeared Breath, improve the efficiency for sending network data.
It is exemplified by uiSendCounts sends count area by the field, when the system is initiated, uiSendCounts is sent out Count area is sent to be initialized as 1, when needing to be broadcasted or during multicast, drive module can obtain the number N of receiving device, And N is assigned to uiSendCounts and sends count area.After drive module sends message, if drive module The recovery message of CPU transmissions is received, then the numerical value that the uiSendCounts can be sent to count area subtracts 1, and judges to subtract 1 Whether result afterwards is 0, if it is, judging the number of recovery message and the number of receiving device that the CPU received is sent It is identical, perform step 104;If it is not, then judge the number of recovery message and the number of receiving device that the CPU received is sent Differ, perform it is above-mentioned to CPU send send message the step of.
For example, in the presence of 5 receiving devices, counting statistics field uiSendCounts=5 is sent, whenever drive module receives During to recovery message, it can carry out subtracting 1 operation to sending counting statistics field uiSendCounts, then judge to send counting statistics Whether field uiSendCounts value is 0, if not 0, then illustrate it is not the 5th recovery message, not releasing memory, to CPU Send message;Otherwise explanation is that the 5th reclaims message, releasing memory.
Based on which, one transmission counting statistics field of only increase is only needed, reduces memory requirements.
Mode two, after the recovery message of CPU transmissions is received, it is determined that the number for the recovery message having been received by, and Whether the number for the recovery message that judgement has been received by is identical with the number of receiving device, if it is, judging the CPU received The number of the recovery message of transmission is identical with the number of receiving device.
In force, drive module can except increase by one be used for record receiving device number preset field (i.e. Above-mentioned transmission counting statistics field uiSendCounts) beyond, one can also be increased and be used to enter the recovery message received The preset field that row counts.For the ease of description, the first field is can be described as recording the preset field of number of receiving device; Preset field for being counted to the recovery message received can be the second field.First field and the second field To be arranged in the header fields of target memory.First field and the second field are arranged in the header fields of target memory, Can be in order to the number that drive module searches the recovery message received, and the number of receiving device, so that drive module can Quickly to determine a need for continuing sending message, the efficiency for sending network data is improved.
When needing to be broadcasted or during multicast, drive module can obtain the number N of receiving device, and N is assigned to First field, and be 0 by the second field initialization.After drive module sends message, if drive module receives The recovery message sent to CPU, then can add the numerical value of the second field 1, and judge plus 1 after the second field numerical value whether For N, if it is, judging that the number for the recovery message that the CPU received is sent is identical with the number of receiving device, step is performed 105;If it is not, then the number of recovery message and the number of receiving device that the CPU for judging to receive is sent differ, in execution The step of stating to CPU transmission transmission message.
For example, in the presence of 5 receiving devices, the numerical value of the first field is 5, when drive module receives recovery message, The numerical value of second field can be carried out plus 1 operates, then judge the numerical value of the second field for 5, if not 5, then illustrate it is not the 5th Secondary recovery message, releasing memory, message is not sent to CPU;Otherwise explanation is that the 5th reclaims message, releasing memory.
Optionally, when CPU sends failure, target memory can be discharged, it is corresponding treated with offloading the CPU Journey can be as follows:During message is sent to the CPU of local, lost if detecting that the objective network data are sent Lose, then discharge the target memory.
In in real time, as described above, after CPU receives the transmission message, message hair can be carried out according to the transmission message Processing is sent, however, when CPU itself processing load is overweight, CPU will be unable to send the message, and now, CPU can return to carrying After thering is the return message of fail values, console module to detect the return message, can call default internal memory realizing interface (such as Memory management interfaces) target memory is discharged, so, it can stop sending message, offloading the CPU.
The embodiment of the present invention additionally provides a kind of example of the method for releasing memory, and the executive agent in the example can be The drive module of the network equipment, as shown in Fig. 2 specific processing procedure can be as follows:
Step 201, objective network data to be sent are obtained.
The specific processing of the step is referred to the related description of above-mentioned steps 101, and here is omitted.
Step 202, it is objective network data distribution target memory to ask local CPU
The specific processing of the step is referred to the related description of above-mentioned steps 102, and here is omitted.
Step 203, by the objective network data Cun Chudao target memories, and according to the number of receiving device, it is UiSendCounts sends count area assignment.
The specific processing of the step is referred to above-mentioned steps 102-104 related description, and here is omitted.
Step 204, message is sent to the CPU.
The specific processing of the step is referred to the related description of above-mentioned steps 103, and here is omitted.
Step 205, judge whether message sends success, if it is, performing step 206, otherwise, perform step 208.
In force, if after sending message, the failure notification of CPU transmissions is not received, then judges that message is sent Success;If receiving the failure notification of CPU transmissions, judge that message sends failure.
Step 206, the numerical value for uiSendCounts being sent to count area subtracts 1.
The specific processing of the step is referred to the related description of above-mentioned steps 104, and here is omitted.
Step 207, judge whether the result after subtracting 1 is 0, if it is, performing step 208, otherwise, perform step 204.
The specific processing of the step is referred to the related description of above-mentioned steps 104, and here is omitted.
Step 208, target memory is discharged.
The specific processing of the step is referred to the related description of above-mentioned steps 104, and here is omitted.
In the embodiment of the present invention, the network equipment obtains objective network data to be sent, and it is mesh then to ask local CPU Network data distribution target memory is marked, and by objective network data storage in target memory, and then determine objective network data Receiving device number, to CPU send number send message, transmission message in carry objective network data in target Address in depositing, so that CPU is read from target memory based on address and sends objective network data, the network equipment can receive CPU often sends the recovery message sent after an objective network data, when the number for the recovery message that the CPU received is sent is with connecing When the number of receiving unit is identical, request CPU release target memories.So, when multiple receiving devices be present, can be connect to whole After receiving unit sends objective network data, recycling target memory, the efficiency for sending network data is improved.
Based on identical technical concept, the present invention applies example and additionally provides a kind of device of releasing memory, as shown in figure 3, institute Stating device includes:
Acquisition module 310, for obtaining objective network data to be sent;
Memory module 320, it is the objective network data distribution target memory for asking local CPU, and by described in Objective network data storage is in the target memory;
Sending module 330, the number of the receiving device for determining the objective network data, institute is sent to the CPU State number and send message, address of the objective network data in the target memory is carried in the transmission message, So that the CPU is read from the target memory based on the address and sends the objective network data;
Receiving module 340, the recovery message sent after the objective network data is often sent for receiving the CPU;
Release module 350, number and the receiving device for the recovery message when the CPU transmissions received When number is identical, the target memory is discharged.
Optionally, the sending module 330 is specifically used for:
A transmission message is sent to the CPU of local, after the recovery message that the CPU is sent is received, again to institute State CPU and send the transmission message, untill the number of the transmission message sent reaches the number of the receiving device.
Optionally, as shown in figure 4, described device also includes:
First judge module 360, for the number of the receiving device to be stored in preset field, whenever receiving State CPU transmission recovery message after, the numerical value in the preset field is subtracted 7, and judge described in subtract 7 after result whether be 0, If it is, judge that the number for the recovery message that the CPU received is sent is identical with the number of the receiving device.
Optionally, the preset field is header fields.
Optionally, as shown in figure 5, described device also includes:
Second judge module 370, for after the recovery message that the CPU is sent is received, it is determined that have been received by Reclaim the number of message, and the number of recovery message having been received by described in judging whether the number phase with the receiving device Together, if it is, judging that the number for the recovery message that the CPU received is sent is identical with the number of the receiving device.
Optionally, the release module 350, is additionally operable to:
During message is sent to the CPU of local, if detecting that the objective network data send failure, Then discharge the target memory.
In the embodiment of the present invention, the network equipment obtains objective network data to be sent, and it is mesh then to ask local CPU Network data distribution target memory is marked, and by objective network data storage in target memory, and then determine objective network data Receiving device number, to CPU send number send message, transmission message in carry objective network data in target Address in depositing, so that CPU is read from target memory based on address and sends objective network data, the network equipment can receive CPU often sends the recovery message sent after an objective network data, when the number for the recovery message that the CPU received is sent is with connecing When the number of receiving unit is identical, request CPU release target memories.So, when multiple receiving devices be present, can be connect to whole After receiving unit sends objective network data, recycling target memory, the efficiency for sending network data is improved.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for device For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
The preferred embodiment of the application is the foregoing is only, is not intended to limit the protection domain of the application.It is all Any modification, equivalent substitution and improvements made within spirit herein and principle etc., it is all contained in the protection domain of the application It is interior.

Claims (12)

  1. A kind of 1. method of releasing memory, it is characterised in that methods described includes:
    Obtain objective network data to be sent;
    The local CPU of request is the objective network data distribution target memory, and by the objective network data storage in institute State in target memory;
    The number of the receiving device of the objective network data is determined, sending the number to the CPU sends message, described Send in message and carry address of the objective network data in the target memory, so that the CPU is based on describedly Read from the target memory and send the objective network data in location;
    Receive the CPU and often send the recovery message sent after the objective network data;
    When the number for the recovery message that the CPU received is sent is identical with the number of the receiving device, described in release Target memory.
  2. 2. according to the method for claim 1, it is characterised in that the number according to the receiving device, to the CPU Message is sent, including:
    A transmission message is sent to the CPU of local, after the recovery message that the CPU is sent is received, again to the CPU The transmission message is sent, untill the number of the transmission message sent reaches the number of the receiving device.
  3. 3. method according to claim 1 or 2, it is characterised in that methods described also includes:
    The number of the receiving device is stored in the preset field of the target memory, sent whenever receiving the CPU Recovery message after, the numerical value in the preset field is subtracted 1, and judge described in subtract 1 after result whether be 0, if it is, Judge that the number for the recovery message that the CPU received is sent is identical with the number of the receiving device.
  4. 4. according to the method for claim 3, it is characterised in that the preset field is header fields.
  5. 5. method according to claim 1 or 2, it is characterised in that methods described also includes:
    After the recovery message that the CPU is sent is received, it is determined that the number for the recovery message having been received by, and described in judgement Whether the number for the recovery message having been received by is identical with the number of the receiving device, if it is, judging the institute received The number for stating the recovery message of CPU transmissions is identical with the number of the receiving device.
  6. 6. according to any described methods of claim 1-5, it is characterised in that methods described also includes:
    During message is sent to the CPU of local, if detecting that the objective network data send failure, release Put the target memory.
  7. 7. a kind of device of releasing memory, it is characterised in that described device includes:
    Acquisition module, for obtaining objective network data to be sent;
    Memory module, it is the objective network data distribution target memory for asking local CPU, and by the objective network Data storage is in the target memory;
    Sending module, the number of the receiving device for determining the objective network data, the number is sent to the CPU Message is sent, address of the objective network data in the target memory is carried in the transmission message, so that described CPU is read from the target memory based on the address and sends the objective network data;
    Receiving module, the recovery message sent after the objective network data is often sent for receiving the CPU;
    Release module, for the number and the number phase of the receiving device of the recovery message sent as the CPU received Meanwhile discharge the target memory.
  8. 8. device according to claim 7, it is characterised in that the sending module is specifically used for:
    A transmission message is sent to the CPU of local, after the recovery message that the CPU is sent is received, again to the CPU The transmission message is sent, untill the number of the transmission message sent reaches the number of the receiving device.
  9. 9. the device according to claim 7 or 8, it is characterised in that described device also includes:
    First judge module, for the number of the receiving device to be stored in the preset field of the target memory, whenever After receiving the recovery message that the CPU is sent, the numerical value in the preset field is subtracted 7, and the result after subtracting 7 described in judging Whether it is 0, if it is, judging the number and the number of the receiving device for the recovery message that the CPU received is sent It is identical.
  10. 10. device according to claim 9, it is characterised in that the preset field is header fields.
  11. 11. the device according to claim 7 or 8, it is characterised in that described device also includes:
    Second judge module, for after the recovery message that the CPU is sent is received, it is determined that the recovery message having been received by Number, and whether the number of recovery message having been received by described in judging identical with the number of the receiving device, if it is, Then judge that the number for the recovery message that the CPU received is sent is identical with the number of the receiving device.
  12. 12. according to any described devices of claim 7-11, it is characterised in that the release module, be additionally operable to:
    During message is sent to the CPU of local, if detecting that the objective network data send failure, release Put the target memory.
CN201710724177.XA 2017-08-22 2017-08-22 A kind of method and device of releasing memory Pending CN107589996A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710724177.XA CN107589996A (en) 2017-08-22 2017-08-22 A kind of method and device of releasing memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710724177.XA CN107589996A (en) 2017-08-22 2017-08-22 A kind of method and device of releasing memory

Publications (1)

Publication Number Publication Date
CN107589996A true CN107589996A (en) 2018-01-16

Family

ID=61041868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710724177.XA Pending CN107589996A (en) 2017-08-22 2017-08-22 A kind of method and device of releasing memory

Country Status (1)

Country Link
CN (1) CN107589996A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355558A (en) * 2007-07-26 2009-01-28 Nec爱克赛斯科技株式会社 Data processing apparatus and data transfer method
CN101631080A (en) * 2009-08-14 2010-01-20 重庆邮电大学 Industrial Ethernet switch based on EPA protocol and message forwarding method
CN101753580A (en) * 2010-01-08 2010-06-23 烽火通信科技股份有限公司 Packet processing chip and data storage and forwarding method thereof
CN104639444A (en) * 2013-11-11 2015-05-20 中兴通讯股份有限公司 Multicast cache release method and multicast cache release device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355558A (en) * 2007-07-26 2009-01-28 Nec爱克赛斯科技株式会社 Data processing apparatus and data transfer method
CN101631080A (en) * 2009-08-14 2010-01-20 重庆邮电大学 Industrial Ethernet switch based on EPA protocol and message forwarding method
CN101753580A (en) * 2010-01-08 2010-06-23 烽火通信科技股份有限公司 Packet processing chip and data storage and forwarding method thereof
CN104639444A (en) * 2013-11-11 2015-05-20 中兴通讯股份有限公司 Multicast cache release method and multicast cache release device

Similar Documents

Publication Publication Date Title
CN101222374B (en) System, device and method for implementing service upgrade
CN106155812A (en) Method, device, system and the electronic equipment of a kind of resource management to fictitious host computer
CN106936791A (en) Intercept the method and apparatus that malice network address is accessed
CN107743154B (en) Tracking and attendance system based on Wi-Fi intelligent terminal and method thereof
CN111526225B (en) Session management method and device
CN103428734A (en) Method and device for optimizing network resources
CN105763670A (en) Method and device for allocating IP address to container
CN105704256B (en) A kind of IP address management methods, devices and systems
CN107528712A (en) The determination of access rights, the access method of the page and device
CN106453370A (en) Method and device for allowing IPC to register to NVR
CN107295117B (en) A kind of distribution method and device of address pool
CN206313803U (en) A kind of router for realizing network game acceleration
CN107145451A (en) A kind of JavaScript object storage, recovery method and device
CN111147468A (en) User access method, device, electronic equipment and storage medium
CN108429703B (en) DHCP client-side online method and device
CN104009937A (en) Enhanced-transmission-selection configuration information transmission method and device
CN107589996A (en) A kind of method and device of releasing memory
CN105472739B (en) A kind of business channel allocation method and base station
CN105243078A (en) File resource distribution method, system and apparatus
CN107197043A (en) A kind of cloud computing system
CN105246125B (en) A kind of access control method and terminal
CN116112572A (en) Service processing method, device, network equipment and storage medium
EP4345614A1 (en) Pod deployment method and apparatus
CN106330504A (en) Method for realizing application and service controller
CN103297474A (en) Batching processing sub-packet method and batching processing sub-packet system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180116