CN101753452A - Allocation method of connecting identifier, device and communication equipment - Google Patents
Allocation method of connecting identifier, device and communication equipment Download PDFInfo
- Publication number
- CN101753452A CN101753452A CN200910261060A CN200910261060A CN101753452A CN 101753452 A CN101753452 A CN 101753452A CN 200910261060 A CN200910261060 A CN 200910261060A CN 200910261060 A CN200910261060 A CN 200910261060A CN 101753452 A CN101753452 A CN 101753452A
- Authority
- CN
- China
- Prior art keywords
- connection identifier
- identifier
- pond
- allocation
- sign
- 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.)
- Granted
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides an allocation method of a connecting identifier, a device and communication equipment; in the method, idle connecting identifiers are pre-allocated according to the bit variable information of the connecting identifiers, stored in an identifier pond, and the pre-allocated idle connecting identifiers are cached in an identifier pre-allocation pond; available connecting identifiers are obtained by the identifier pre-allocation pond, and the available connecting identifiers are allocated to new compression connection; the device comprises an identifier pre-allocation module which is used for pre-allocating the idle connecting identifiers according to the bit variable information of the connecting identifiers, stored in the identifier pond; an identifier allocation module which is used for obtaining the available connecting identifiers by the identifier pre-allocation module, and the available connecting identifiers are allocated to the new compression connection. The embodiment of the invention provides communication equipment, which realizes effective management of the connecting identifiers for connecting context, saves the storage space of the system and improves the processing efficiency of the system.
Description
Technical field
The embodiment of the invention relates to communication technical field, relates in particular to a kind of distribution method, device and communication apparatus of connection identifier.
Background technology
In IP connects,, wherein change the sub-fraction that partly only accounts in the IP heading in the life span that connects because the most information in the IP heading does not all change.Therefore, in low speed chain circuit,, improve the transmission rate of message simultaneously, adopt the heading compress mode to realize connecting usually for reducing link overhead, saving bandwidth.Wherein, the heading compress mode is that the change in the heading partly reaches a kind of method that reduces the data volume that transmits in the same connection by only sending, connecting context is the heading of storing in order to realize compression and decompression, connection identifier connects contextual sign for being used for difference, can find the connection context of storage by connection identifier.
In the prior art, adopt the full method of salary distribution to come the connection identifier of assignment message head compression usually, promptly when initialization, distribute according to the maximum number of connections of system configuration to connect contextual memory space, and for each connects context distribution connection identifier.Regulation exists 65536 connections to be compressed at most simultaneously in the compression protocol, then needs to dispose 65536 and connects contextual memory spaces, and need distribute connection identifier for each connect context.
In realizing process of the present invention, the inventor finds that there are the following problems at least in the prior art: in actual use, the connection identifier resource of distributing can all not used, when then allowing the linking number of configuration big, adopt in the prior art the full method of salary distribution to distribute all to connect contextual memory space and connection identifier will cause the great wasting of resources in system; And the full method of salary distribution can't be carried out dynamic management to the operating position of connection identifier in the prior art, can only use simple order traversing operation to search the connection contextual information of storage, inefficiency when compression.
Summary of the invention
The embodiment of the invention provides a kind of distribution method, device and communication apparatus of connection identifier, in order to solve the wasting of resources that the full method of salary distribution is brought in the prior art, realization is to connecting effective management of contextual connection identifier, the memory space of saving system, the treatment effeciency of raising system reduces data transfer delay.
The embodiment of the invention provides a kind of distribution method of connection identifier, comprising:
The connection identifier of the bit variable information preassignment free time of the connection identifier of storing in the pond according to sign is buffered in the connection identifier of preallocated free time and indicates in the preassignment pond;
Obtain available connection identifier by described identifier pre-allocation pond, described available connection identifier is distributed to newly-built compression connect.
The embodiment of the invention provides a kind of distributor of connection identifier, comprising:
The identifier pre-allocation module is used for the connection identifier according to the bit variable information preassignment free time of the connection identifier stored of sign pond, the connection identifier of preallocated free time is buffered in indicate in the preassignment pond;
The sign distribution module is used for obtaining available connection identifier by described identifier pre-allocation pond, described available connection identifier is distributed to newly-built compression connect.
The embodiment of the invention also provides a kind of communication apparatus, comprises the distributor of above-mentioned connection identifier.
The distribution method of the connection identifier of the embodiment of the invention, device and communication apparatus, bit variable information by storage connection identifier in the sign pond, to indicate the user mode of each connection identifier, the connection identifier that will identify the part free time in the pond according to this bit variable information is pre-assigned in the identifier pre-allocation pond, when new data flow arrives, obtain available connection identifier by the identifier pre-allocation pond, think that newly-built compression connects the available connection identifier of distribution, solved the wasting of resources that the full method of salary distribution is brought in the prior art, realized connecting effective management of contextual connection identifier, saved the memory space of system, improve the treatment effeciency of system, also reduced the transmission delay of data simultaneously.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of the distribution method embodiment one of connection identifier of the present invention;
Fig. 2 is the flow chart of the distribution method embodiment two of connection identifier of the present invention;
Fig. 3 is the structural representation of the distributor embodiment one of connection identifier of the present invention;
Fig. 4 is the structural representation of the distributor embodiment two of connection identifier of the present invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Fig. 1 is the flow chart of the distribution method embodiment one of connection identifier of the present invention, and as shown in Figure 1, present embodiment provides a kind of distribution method of connection identifier, can specifically comprise the steps:
Step 102 is obtained available connection identifier by the identifier pre-allocation pond, described available connection identifier is distributed to newly-built compression connect.
Present embodiment provides a kind of distribution method of connection identifier, bit variable information by storage connection identifier in the sign pond, to indicate the user mode of each connection identifier, the connection identifier that will identify the part free time in the pond according to this bit variable information is pre-assigned in the identifier pre-allocation pond, when new data flow arrives, obtain available connection identifier by the identifier pre-allocation pond, think that newly-built compression connects the available connection identifier of distribution, solved the wasting of resources that the full method of salary distribution is brought in the prior art, realized connecting effective management of contextual connection identifier, saved the memory space of system, improve the treatment effeciency of system, also reduced the transmission delay of data simultaneously.
Fig. 2 is the flow chart of the distribution method embodiment two of connection identifier of the present invention, and as shown in Figure 2, present embodiment provides a kind of distribution method of connection identifier, can specifically comprise the steps:
In the present embodiment, the bit variable information of utilizing the sign pond to store each connection identifier, rather than connection identifier itself.Bit variable information herein is used to indicate the user mode of connection identifier, promptly this connection identifier is in idle condition or user mode, bit variable information in the present embodiment can be " 0 " or " 1 ", when the bit variable information of certain connection identifier correspondence in the sign pond is " 1 ", represent that this connection identifier is in idle condition, it is not used, and can distribute; When the bit variable information of certain connection identifier correspondence in the sign pond is " 0 ", represent that this connection identifier is in user mode, it has been assigned with use, can not be assigned with again, and when connection identifier was assigned in the identifier pre-allocation pond, the bit variable information of this connection identifier was " 0 ".And in the prior art when the configuration of compressing connection, when the maximum number of connections of system configuration is 65535, can employed connection identifier number be 65535 when the system assignment, for IP/ User Datagram Protoco (UDP) (User Datagram Protocol; Hereinafter to be referred as: context UDP) connects, when initialization, need distribute a static storage for each connects context, then can take the memory space of 35535*28*8=14Mbit, wherein 28 is the byte length of the header of IP message and UDP message; For IP/ transmission control protocol (Transmission Control Protocol; Hereinafter to be referred as: TCP), then need to take the memory space of 65535*40*8=20Mbit, wherein 40 is the byte length of the header of IP message and TCP message.Utilize the method in the present embodiment then only to need 65535 bit variables of definition just can store all connection identifier information, and need when initialization, not distribute 65535 chain type memory spaces that connect contexts and sign, this shows, can save the memory space of system greatly, reduce the waste of resource.
This step is obtained the connection identifier of part free time according to the bit variable information of the connection identifier of storing in the pond in sign, and the connection identifier of free time of obtaining is pre-assigned in the identifier pre-allocation pond.The maximum number of connections that supposing the system is determined is 4, can be 1,2,3,4 for the connection identifier of system assignment then, and the initial condition of connection identifier is an idle condition, and then identifying the initial value of the bit variable of the connection identifier of storing in the pond this moment is 1111.Suppose to obtain the pond connection identifier 1 and 2 of two free time, the connection identifier of this two free time be pre-assigned in the identifier pre-allocation pond that the value that identify the bit variable of the connection identifier of storing in the pond this moment is 0011 from sign.The pre-allocation process of connection identifier joins the value of this connection identifier the process in identifier pre-allocation pond simultaneously for the position number value that will identify connection identifier position in the pond is converted into the value of connection identifier in this step.Connection identifier in the identifier pre-allocation pond adopts the chain type management, promptly come the connection identifier of preallocated free time is wherein managed by the connection identifier chain, be that newly-built compression connects when distributing connection identifier, first connection identifier in the connection identifier chain is distributed to current newly-built compression to be connected, when new connection identifier joins in the identifier pre-allocation pond, new connection identifier is added to the afterbody of connection identifier chain.
When having new data flow to arrive, need connect newly-built compression and distribute connection identifier, then directly from the identifier pre-allocation pond, obtain connection identifier to be allocated, rather than from the sign pond, obtain.Because the quantity of the connection identifier in the identifier pre-allocation pond is significantly less than the quantity of the connection identifier in the sign pond, and the connection identifier in the identifier pre-allocation pond is idle connection identifier, can directly be assigned to newly-built compression connects, overcome like this in the prior art when each newly-built compression connects, need the whole sign of traversal pond, thereby can improve the treatment effeciency of system.And, therefore can not cause a large amount of resource occupation owing to only store a spot of connection identifier in the identifier pre-allocation pond.When from the identifier pre-allocation pond, obtaining connection identifier, whether the connection identifier that detects the free time in the identifier pre-allocation pond earlier is empty, if there is not idle connection identifier resource in the identifier pre-allocation pond, then execution in step 203, connection identifier is reclaimed with preassignment operate; If idle connection identifier is arranged in the identifier pre-allocation pond, then execution in step 209, directly are that newly-built compression connects the distribution connection identifier.
When carrying out the recovery of connection identifier, what judge that the compression set up connects has been all to exceed the sign term of validity with connection identifier, concrete according to last service time of connection identifier with identify the term of validity and judge.When certain when exceeding last service time of connection identifier the sign term of validity, show that this has used connection identifier out of date, then execution in step 204, and this link identification is reclaimed; When all not exceeding the sign term of validity with connection identifier, then execution in step 205, continue preassignment connection identifier from the sign pond.
Whether step 204, the quantity of judging in the described identifier pre-allocation pond idle connection identifier greater than the storage cap in described identifier pre-allocation pond, if, execution in step 206, otherwise execution in step 207.
When connection identifier is reclaimed, if certain exceeds the sign term of validity with connection identifier, then this connection identifier is reclaimed, the connection identifier after the recovery at first adds in the identifier pre-allocation pond.Therefore, when this step was added in the identifier pre-allocation pond at the connection identifier that will reclaim, whether the quantity of judging earlier the connection identifier of free time in the current identifier pre-allocation pond was greater than the storage cap in identifier pre-allocation pond; When expire in current identifier pre-allocation pond, then carry out subsequent step 206, this connection identifier is recovered in the sign pond; When current identifier pre-allocation pond less than, then execution in step 207, directly this directly are recovered in the identifier pre-allocation pond with connection identifier.
When all not exceeding the sign term of validity with connection identifier, show and do not have callable connection identifier at present, then continue preassignment connection identifier from the sign pond, similar with step 201, bit variable information according to the connection identifier of storing in the sign pond is obtained idle connection identifier, the connection identifier of free time of getting access to is pre-assigned in the identifier pre-allocation pond, is buffered in the afterbody of connection identifier chain in the identifier pre-allocation pond.
When expire in current identifier pre-allocation pond, that then will reclaim is converted to corresponding bit variable with connection identifier, because this connection identifier is in idle condition at present, then this is made as " 1 " with connection identifier corresponding bit variable information in the sign pond, the bit variable that identifies the connection identifier of storing in the pond is upgraded.
When current identifier pre-allocation pond less than, that then directly will reclaim is cached in the identifier pre-allocation pond with connection identifier, is added on the afterbody of connection identifier chain in the identifier pre-allocation pond equally.
Finish reclaimer operation with connection identifier when what exceed the sign term of validity, promptly after the recovery of finishing connection identifier, whether the quantity of judging connection identifier idle in the current identifier pre-allocation pond is less than the storage cap in identifier pre-allocation pond.If after reclaiming, current identifier pre-allocation pond is not filled up yet, then return execution in step 205, from the sign pond, obtain idle connection identifier, from described sign pond, obtain idle connection identifier according to the bit variable information in the sign pond, add the connection identifier of free time of obtaining the afterbody of the connection identifier chain in described identifier pre-allocation pond to, the quantity of idle connection identifier equals described storage cap in described identifier pre-allocation pond.
Be that newly-built compression connects when distributing connection identifier, the connection identifier that detects the free time in the identifier pre-allocation pond is not for empty, then first connection identifier that can directly obtain the connection identifier chain from the identifier pre-allocation pond is distributed to newly-built compression with available connection identifier and is connected as available connection identifier.
After the distribution of finishing connection identifier, upgrade the quantity of connection identifier idle in the identifier pre-allocation pond, whether the quantity of connection identifier of judging the current free time then is less than default identification number, when the quantity of current connection identifier during less than default identification number, then return execution in step 203, connection identifier is reclaimed with preassignment operate.
Present embodiment provides a kind of distribution method of connection identifier, bit variable information by storage connection identifier in the sign pond, to indicate the user mode of each connection identifier, the connection identifier that will identify the part free time in the pond according to this bit variable information is pre-assigned in the identifier pre-allocation pond, when new data flow arrives, obtain available connection identifier by the identifier pre-allocation pond, think that newly-built compression connects the available connection identifier of distribution, solved the wasting of resources that the full method of salary distribution is brought in the prior art, realized connecting effective management of contextual connection identifier, saved the memory space of system, improve the treatment effeciency of system, also reduced the transmission delay of data simultaneously.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
Fig. 3 is the structural representation of the distributor embodiment one of connection identifier of the present invention, and as shown in Figure 3, present embodiment provides a kind of distributor of connection identifier, and this device can be carried out each step of said method embodiment one, repeats no more herein.The distributor of the connection identifier that present embodiment provides can specifically comprise identifier pre-allocation module 1 and sign distribution module 2.Wherein, identifier pre-allocation module 1 is used for the connection identifier according to the bit variable information preassignment free time of the connection identifier stored of sign pond, the connection identifier of preallocated free time is buffered in indicate in the preassignment pond.Sign distribution module 2 is used for obtaining available connection identifier by described identifier pre-allocation pond, described available connection identifier is distributed to newly-built compression connect.
Fig. 4 is the structural representation of the distributor embodiment two of connection identifier of the present invention, and as shown in Figure 4, present embodiment provides a kind of distributor of connection identifier, and this device can be carried out each step of said method embodiment two, repeats no more herein.Present embodiment is on the basis of the foregoing description one, and wherein, sign distribution module 2 comprises that detection sub-module 21, first reclaims triggering submodule 22 and distribution sub module 23, and identifier pre-allocation module 1 comprises recovery preassignment submodule 11.Wherein, detection sub-module 21 is used for detecting whether the connection identifier of the free time in identifier pre-allocation pond is empty.First reclaim to trigger submodule 22 be used for when detection sub-module 21 testing results be the connection identifier of free time in identifier pre-allocation pond when empty, trigger and reclaim preassignment submodule 11 and carry out the recovery and the preassignment of connection identifier and operate.Distribution sub module 23 be used for when detection sub-module 21 testing results be that the connection identifier of free time in identifier pre-allocation pond is when empty, first connection identifier that obtains the connection identifier chain from described identifier pre-allocation pond is as available connection identifier, and described available connection identifier is distributed to newly-built compression connects.Recovery preassignment submodule 11 is used to carry out the recovery and the preassignment operation of connection identifier.
Further, reclaiming preassignment submodule 11 can specifically comprise judging unit 111, reclaim unit 112 and preassignment unit 113.Wherein, judging unit 111 be used for according to each compression of having set up connect with judging whether each describedly exceeds the sign term of validity with connection identifier the last service time of connection identifier.Reclaiming unit 112, to be used for judged result when judging unit 111 be describedly to have exceeded when identifying the term of validity with connection identifier, reclaims with connection identifier described.It is described when not exceeded the sign term of validity with connection identifier that preassignment unit 113 is used for judged result when judging unit 111, preassignment connection identifier from described sign pond is cached to preallocated connection identifier the afterbody of the connection identifier chain in described identifier pre-allocation pond.
Further, reclaim unit 112 and can specifically comprise judgment sub-unit 1121, storing sub-units 1122 and buffer memory subelement 1123.Wherein, judgment sub-unit 1121 be used for judging the connection identifier that described identifier pre-allocation pond is idle quantity whether greater than the storage cap in described identifier pre-allocation pond.It is the quantity of the idle connection identifier in described identifier pre-allocation pond during greater than the storage cap in described identifier pre-allocation pond that storing sub-units 1122 is used for judged result when judgment sub-unit 1121, is converted to the bit variable information stores in described sign pond with connection identifier with described.It is that the quantity of the idle connection identifier in described identifier pre-allocation pond is when being not more than the storage cap in described identifier pre-allocation pond, with the described afterbody that is cached to the connection identifier chain in described identifier pre-allocation pond with connection identifier that buffer memory subelement 1123 is used for judged result when judgment sub-unit 1121.
Further, judgment sub-unit 1121 also be used for when exceed the described sign term of validity finish reclaimer operation with connection identifier after, whether the quantity of judging in the described identifier pre-allocation pond idle connection identifier less than the storage cap in described identifier pre-allocation pond.Identifier pre-allocation module 1 can also comprise sign interpolation submodule 12.Wherein, sign is added submodule 12, and to be used for judged result when judgment sub-unit 1121 be that the quantity of connection identifier of described identifier pre-allocation pond free time is during less than the storage cap in described identifier pre-allocation pond, from described sign pond, obtain idle connection identifier according to the bit variable information in the described sign pond, add the connection identifier of free time of obtaining the afterbody of the connection identifier chain in described identifier pre-allocation pond to, the quantity of idle connection identifier equals described storage cap in described identifier pre-allocation pond.
Present embodiment provides a kind of distributor of connection identifier, bit variable information by storage connection identifier in the sign pond, to indicate the user mode of each connection identifier, the connection identifier that will identify the part free time in the pond according to this bit variable information is pre-assigned in the identifier pre-allocation pond, when new data flow arrives, obtain available connection identifier by the identifier pre-allocation pond, think that newly-built compression connects the available connection identifier of distribution, solved the wasting of resources that the full method of salary distribution is brought in the prior art, realized connecting effective management of contextual connection identifier, saved the memory space of system, improve the treatment effeciency of system, also reduced the transmission delay of data simultaneously.
Present embodiment also provides a kind of communication apparatus, and this communication apparatus can comprise the distributor of above-mentioned Fig. 3 or connection identifier shown in Figure 4.In actual applications, this communication apparatus can be specially switch, router, or other are applied to the wire communication equipment or the wireless telecommunications system of point-to-point IP message transmissions.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (13)
1. the distribution method of a connection identifier is characterized in that, comprising:
The connection identifier of the bit variable information preassignment free time of the connection identifier of storing in the pond according to sign is buffered in the connection identifier of preallocated free time and indicates in the preassignment pond;
Obtain available connection identifier by described identifier pre-allocation pond, described available connection identifier is distributed to newly-built compression connect.
2. method according to claim 1 is characterized in that, describedly obtains available connection identifier by described identifier pre-allocation pond and comprises:
Whether the connection identifier that detects the free time in the described identifier pre-allocation pond is empty, if then carry out the recovery and the preassignment operation of connection identifier; Otherwise first connection identifier that obtains the connection identifier chain from described identifier pre-allocation pond is as available connection identifier.
3. method according to claim 2 is characterized in that, described available connection identifier is distributed to after newly-built compression connects described, also comprises:
Upgrade in the described identifier pre-allocation pond quantity of idle connection identifier, the quantity of the connection identifier of the described free time after upgrading is carried out the recovery and the preassignment operation of described connection identifier during less than default identification number.
4. according to claim 2 or 3 described methods, it is characterized in that the recovery of the described connection identifier of described execution and preassignment operation comprise:
According to each compression of having set up connect with judging whether each describedly exceeds the sign term of validity with connection identifier the last service time of connection identifier, if one has exceeded the described sign term of validity with connection identifier, has then reclaimed with connection identifier described; If all do not exceed the described sign term of validity with connection identifier, preassignment connection identifier from described sign pond then is cached to preallocated connection identifier the afterbody of the connection identifier chain in described identifier pre-allocation pond.
5. method according to claim 4 is characterized in that, described described the recovery with connection identifier is comprised:
Whether the quantity of judging in the described identifier pre-allocation pond idle connection identifier is greater than the storage cap in described identifier pre-allocation pond, if then be converted to the bit variable information stores in described sign pond with connection identifier with described; Otherwise, with the described afterbody that is cached to the connection identifier chain in described identifier pre-allocation pond with connection identifier.
6. method according to claim 5 is characterized in that, also comprises:
When exceed the described sign term of validity finish reclaimer operation with connection identifier after, whether the quantity of judging in the described identifier pre-allocation pond idle connection identifier is less than the storage cap in described identifier pre-allocation pond, if, then from described sign pond, obtain idle connection identifier according to the bit variable information in the described sign pond, add the connection identifier of free time of obtaining the afterbody of the connection identifier chain in described identifier pre-allocation pond to, the quantity of idle connection identifier equals described storage cap in described identifier pre-allocation pond.
7. the distributor of a connection identifier is characterized in that, comprising:
The identifier pre-allocation module is used for the connection identifier according to the bit variable information preassignment free time of the connection identifier stored of sign pond, the connection identifier of preallocated free time is buffered in indicate in the preassignment pond;
The sign distribution module is used for obtaining available connection identifier by described identifier pre-allocation pond, described available connection identifier is distributed to newly-built compression connect.
8. device according to claim 7 is characterized in that, described sign distribution module comprises that detection sub-module, first reclaims triggering submodule and distribution sub module, and described identifier pre-allocation module comprises recovery preassignment submodule, wherein:
Whether the connection identifier that described detection sub-module is used for detecting the free time in identifier pre-allocation pond is empty;
Described first reclaim to trigger submodule be used for testing result when described detection sub-module be the connection identifier of free time in identifier pre-allocation pond when empty, trigger described recovery preassignment submodule and carry out the recovery and the preassignment of connection identifier and operate;
It is that the connection identifier of free time in identifier pre-allocation pond is when empty that described distribution sub module is used for testing result when described detection sub-module, first connection identifier that obtains the connection identifier chain from described identifier pre-allocation pond is as available connection identifier, and described available connection identifier is distributed to newly-built compression connects;
Described recovery preassignment submodule is used to carry out the recovery and the preassignment operation of connection identifier.
9. device according to claim 8 is characterized in that, described sign distribution module also comprises:
Updating submodule is used for upgrading the quantity of the idle connection identifier in described identifier pre-allocation pond;
Second reclaim to trigger submodule, and the quantity of connection identifier that is used for the described free time after upgrading is during less than default identification number, triggers described recovery preassignment submodule and carries out the recovery and the preassignment of described connection identifier and operate.
10. according to Claim 8 or 9 described devices, it is characterized in that described recovery preassignment submodule comprises:
Judging unit, be used for according to each compression of having set up connect with judging whether each describedly exceeds the sign term of validity with connection identifier the last service time of connection identifier;
Reclaim the unit, be used for judged result when described judging unit and be describedly having exceeded when identifying the term of validity with connection identifier, reclaim with connection identifier described;
The preassignment unit, be used for judged result when described judging unit and be described when not exceeded the sign term of validity with connection identifier, preassignment connection identifier from described sign pond is cached to preallocated connection identifier the afterbody of the connection identifier chain in described identifier pre-allocation pond.
11. device according to claim 10 is characterized in that, described recovery unit comprises:
Whether judgment sub-unit, the quantity that is used for judging the connection identifier that described identifier pre-allocation pond is idle be greater than the storage cap in described identifier pre-allocation pond;
Storing sub-units, the quantity that is used for judged result when described judgment sub-unit and is the idle connection identifier in described identifier pre-allocation pond is converted to the bit variable information stores in described sign pond with connection identifier with described during greater than the storage cap in described identifier pre-allocation pond;
The buffer memory subelement, when the quantity that is used for judged result when described judgment sub-unit and is the idle connection identifier in described identifier pre-allocation pond is not more than the storage cap in described identifier pre-allocation pond, with the described afterbody that is cached to the connection identifier chain in described identifier pre-allocation pond with connection identifier.
12. device according to claim 11 is characterized in that,
Described judgment sub-unit also be used for when exceed the described sign term of validity finish reclaimer operation with connection identifier after, whether the quantity of judging in the described identifier pre-allocation pond idle connection identifier less than the storage cap in described identifier pre-allocation pond;
Described identifier pre-allocation module also comprises: sign is added submodule, the quantity that is used for judged result when described judgment sub-unit and is the idle connection identifier in described identifier pre-allocation pond is during less than the storage cap in described identifier pre-allocation pond, from described sign pond, obtain idle connection identifier according to the bit variable information in the described sign pond, add the connection identifier of free time of obtaining the afterbody of the connection identifier chain in described identifier pre-allocation pond to, the quantity of idle connection identifier equals described storage cap in described identifier pre-allocation pond.
13. a communication apparatus is characterized in that, comprises the distributor of each described connection identifier among the aforesaid right requirement 7-12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102610608A CN101753452B (en) | 2009-12-17 | 2009-12-17 | Allocation method of connecting identifier, device and communication equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102610608A CN101753452B (en) | 2009-12-17 | 2009-12-17 | Allocation method of connecting identifier, device and communication equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101753452A true CN101753452A (en) | 2010-06-23 |
CN101753452B CN101753452B (en) | 2012-07-25 |
Family
ID=42479877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009102610608A Expired - Fee Related CN101753452B (en) | 2009-12-17 | 2009-12-17 | Allocation method of connecting identifier, device and communication equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101753452B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112154633A (en) * | 2018-05-16 | 2020-12-29 | 华为技术有限公司 | Receiving device and transmission device for TCP communication |
CN118672794A (en) * | 2024-08-26 | 2024-09-20 | 山东云海国创云计算装备产业创新中心有限公司 | Request scheduling method, system, computer program product and computer medium |
-
2009
- 2009-12-17 CN CN2009102610608A patent/CN101753452B/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112154633A (en) * | 2018-05-16 | 2020-12-29 | 华为技术有限公司 | Receiving device and transmission device for TCP communication |
CN118672794A (en) * | 2024-08-26 | 2024-09-20 | 山东云海国创云计算装备产业创新中心有限公司 | Request scheduling method, system, computer program product and computer medium |
Also Published As
Publication number | Publication date |
---|---|
CN101753452B (en) | 2012-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110109852B (en) | Method for realizing TCP _ IP protocol by hardware | |
KR100528967B1 (en) | Apparatus and method for controlling memory allocation for variable sized packets | |
CN112492063A (en) | IP address pool allocation and application method, device, equipment and medium | |
CN101197773B (en) | Packet compressed transmitting and received de-compression method and system based on multilink | |
CN101997853A (en) | Data downloading method and terminal | |
CN106170757A (en) | A kind of date storage method and device | |
CN102750249A (en) | Method, device and system for communication between upper computer and lower computer | |
CN101753452B (en) | Allocation method of connecting identifier, device and communication equipment | |
CN104144179A (en) | System and method for upgrading ONU devices | |
CN101437046A (en) | Method for processing data of solid-state hard disk, solid-state hard disk and network appliance | |
CN113238856B (en) | RDMA-based memory management method and device | |
CN110737530B (en) | Method for improving packet receiving capacity of HANDLE identification analysis system | |
CN112291336A (en) | Multichannel parallel data loading method of ARINC429 network card | |
CN103368944A (en) | Memory shared network architecture and protocol specifications for same | |
CN111245794B (en) | Data transmission method and device | |
JP2001517835A (en) | Compatible processor system | |
CN101707566B (en) | Label distributing method and processing device | |
CN112087395B (en) | Service type hierarchical flow control method | |
CN112764777B (en) | Upgrading method, device and equipment of low-speed bus equipment and readable storage medium | |
CN114401072A (en) | Dynamic cache control method and system for frame splitting and reordering queue based on HINOC protocol | |
CN113687962A (en) | Request processing method, device, equipment and storage medium | |
US7574578B2 (en) | System and method of adaptive memory structure for data pre-fragmentation or pre-segmentation | |
JP3548051B2 (en) | Data communication device, method and computer readable storage medium | |
EP2015194A1 (en) | Method for data transfer between host and device | |
CN112422457A (en) | Message processing method and device and computer storage medium |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120725 Termination date: 20141217 |
|
EXPY | Termination of patent right or utility model |