CN104519150B - Network address conversion port distribution method and system - Google Patents

Network address conversion port distribution method and system Download PDF

Info

Publication number
CN104519150B
CN104519150B CN201410851514.8A CN201410851514A CN104519150B CN 104519150 B CN104519150 B CN 104519150B CN 201410851514 A CN201410851514 A CN 201410851514A CN 104519150 B CN104519150 B CN 104519150B
Authority
CN
China
Prior art keywords
port
task
buffer area
resource
pond
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410851514.8A
Other languages
Chinese (zh)
Other versions
CN104519150A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201410851514.8A priority Critical patent/CN104519150B/en
Publication of CN104519150A publication Critical patent/CN104519150A/en
Application granted granted Critical
Publication of CN104519150B publication Critical patent/CN104519150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of network address conversion port distribution method and system;Its method includes:Create first port pond buffer area, second port pond buffer area, first task, the second task;First task dispatches available port resource allocation to Intranet user from first port pond buffer area;Second port pond buffer area is arrived in the port resource storage of second task scheduling Intranet user release.The beneficial effects of the invention are as follows:The network address conversion port distribution method and system of the present invention, by establishing dual-port pond buffer area circulate operation is carried out with double tasks, two tasks are non-interfering to carry out port resource scheduling, realizes efficient distribution and recovery to port resource, improves the performance of NAT servers.

Description

Network address conversion port distribution method and system
Technical field
The invention belongs to data communication technology field, more particularly to a kind of network address conversion port distribution method and it is System.
Background technology
NAT (Network Address Translation, network address translation) is proposed within 1994 for special The internal host assignment of net arrived local ip address (specific address only used in this private network) afterwards and with internet Main-machine communication (and need not encrypt) a kind of method.This method needs to be connected on the router of internet in private network NAT softwares are installed.Router equipped with NAT softwares is called NAT router, its at least one effective external Global IP Location.So, all main frames using local address will turn its local address on NAT router when being communicated with the external world Change Global IP addresses, ability and Internet connection into.In addition, this represent more private by using a small amount of public ip address There is the mode of IP address, it will help slow down the exhaustion of available IP address space.NAT can not only solve lP address shortages The problem of, but also the attack from network-external can be effectively prevented from, hide and protect the computer of network internal.NAT Implementation have three kinds, i.e. static conversion Static Nat, dynamic translation Dynamic Nat and port multiplexing OverLoad.Static conversion refers to the private IP address of internal network being converted to public ip address, and IP address is to being one-to-one , it is unalterable, some private IP address is only converted to some public ip address.By means of static conversion, it is possible to achieve Access of the external network to some particular devices (such as server) in internal network.Dynamic translation refers to the privately owned of internal network When IP address conversion is public IP address, IP address is uncertain, be it is random, it is all to be authorized to Internet's Private IP address can random transition be any legitimate ip address specified.As long as that is, specify which home address can be with Changed, and during by the use of which legal address as external address, it is possible to carry out dynamic translation.Dynamic translation can use Multiple legitimate external address sets.When the legitimate ip address that ISP is provided is slightly less than the number of computers of network internal.It can use The mode of dynamic translation.Port multiplexing (Port address Translation, PAT) refers to change outgoing packet Source port simultaneously carries out port translation, i.e. port address conversion (PAT, Port Address Translation) is more using port Road multiplex mode.The All hosts of internal network can share access of the legitimate external IP address realization to Internet, So as to save IP address resource to greatest extent.Meanwhile the All hosts of network internal can be hidden again, effectively avoid coming from Internet attack.Therefore, it is exactly at most port multiplex mode to be applied at present in network.NAT is used for private net address When dynamic translation is public network address, it will usually substantial amounts of private net address is converted into one or several public network addresses, each is private Network users can be assigned to a port number under a shared public network address and the address, and pass through the address and port numbers pair Public network conducts interviews, and realizes access of a large amount of private users to public network.NAT servers can use five when carrying out port assignment Tuple mode constructs mapping relations, as long as i.e. source address, source port, destination address, destination interface, protocol number any of which one Difference, resource contention would not be caused.Five-tuple mode, which constructs mapping relations, can solve the resource contention of normal conditions, but In the case that some comparisons are extreme, in such as application of common C/S model, the address and port of server are fixed or collected relatively In, then private user source port, destination address, destination interface, protocol number all same, the now corresponding interior entoilage of a port Location, a public network address only have 65535 ports, and wherein many ports will also be left special applications in addition, therefore can divide The quantity matched somebody with somebody is very limited, and existing following two technologies carry out the acquisition of port resource:NAT servers are using the method traveled through To obtain port, by port designations to have taken after acquisition, such a method can be taken a substantial amount of time to be traveled through, and Intranet User is more, and performance is poorer, can have a strong impact on the performance of NAT servers.NAT servers are obtained using the method for stochastic searching Port (CN200810239058.6 [1]) is taken, it is a problem of hit rate occurs in the technology, more in Intranet Intranet user In the case of still repeatedly to search and could realize hit, and all of the port can not be distributed, be reduced again in the case of resource-constrained Available resources.
The content of the invention
The present invention goal of the invention be:In order to solve problem above, the present invention proposes a kind of network address conversion port Distribution method and system, to solve the port mapping hydraulic performance decline and port resource wave that prior art occurs under certain conditions The problem of taking.
The technical scheme is that:A kind of network address conversion port distribution method, comprises the following steps:
A, the first port pond buffer area and second port pond buffer area for storage port resource are created, and creates and is used for Dispatch the first task of available port resource and the second task of the port resource for dispatching release;
B, first task waits port resource application, and when Intranet user sends port resource bid, first task is from the Available port resource allocation is dispatched in the buffer area of Single port pond to Intranet user;
C, the second task waits port resource release, when being discharged after Intranet user has used port resource, the second task Second port pond buffer area is arrived in the port resource storage of scheduling release.
Further, first task dispatches available port resource allocation from the buffer area of first port pond in the step B To Intranet user, it is specially:The first task also includes pointer member Pa, and the pointer member Pa sensing first ports pond is delayed The available port resource stored in area is deposited, the first task transfers the available port resource allocation of pointer member Pa sensings to interior Network users.
Further, the step B is further comprising the steps of:
B1, first task are after Intranet user distributes port, and pointer member Pa is pointed into next available port resource, and Judge whether the available port resource that pointer member Pa is pointed to is empty;If available port resource is not sky, first task continues Intranet user is waited to send port application;If available port resource is sky, continue to judge second port pond buffer area whether be It is empty;If second port pond buffer area does not swap for sky, first task pointer member Pa with the second task pointer member Pb; If second port pond buffer area is sky, first task ignores all of the port resource bid, and waits the second task to send notice.
Further, second port pond buffer area is arrived in the port resource storage that the second task scheduling discharges in the step C, Specially:Second task also includes pointer member Pb, and the port resource of the second task scheduling release is stored to second Port pool buffer area, and pointer member Pb is pointed to the port resource stored in the buffer area of second port pond.
Further, the step C is further comprising the steps of:
After second port pond buffer area is arrived in C1, the port resource storage of the second task scheduling release, pointer member Pb is referred to To the port resource, and judge whether the port resource that pointer member Pb is pointed to is empty;If port resource is sky, the second task Continue waiting for Intranet user release port resource;If port resource is not sky, the second task sends notice simultaneously to first task Wait Intranet user release port resource.
Further, the first task swaps specially with the second task:The port of second task scheduling release First port pond buffer area is arrived in resource storage, and first task is from second port pond buffer area scheduling available port resource allocation to interior Network users.
Further, the port resource stored in first port pond buffer area and second port pond buffer area is all chain Shape data structure.
The invention also provides a kind of network address conversion port distribution system, including:Creation module, judge module and tune Spend module;
The creation module is used to create and delayed for the first port pond buffer area of storage port resource and second port pond Area is deposited, and creates second of the first task for dispatching available port resource and the port resource for dispatching release Business;
It is to judge after Intranet user distributes port in the buffer area of first port pond that the judge module, which is used in first task, Port resource whether be empty and the end in the buffer area of second port pond judged after the port resource of the second task scheduling release Whether mouth resource is empty;
The scheduler module is used for according to first task and the second task scheduling port resource.
Further, the first task also includes pointer member Pa, and the pointer member Pa sensing first ports pond is delayed The available port resource stored in area is deposited, the first task transfers the available port resource allocation of pointer member Pa sensings to interior Network users.
Further, second task also includes pointer member Pb, the port resource of the second task scheduling release Second port pond buffer area is stored, and pointer member Pb is pointed to the port resource stored in the buffer area of second port pond.
The beneficial effects of the invention are as follows:The network address conversion port distribution method and system of the present invention, it is double by establishing Port pool buffer area carries out circulate operation with double tasks, and two tasks are non-interfering to carry out port resource scheduling, port assignment Task will not be reclaimed task by port to be influenceed, and Priority Inversions will not be produced in assigning process, is not in that port assignment is lost It situation about losing, will not also cause port assignment speed to decline because of the increase of number of users, realize efficiently dividing to port resource With with recovery, improve the performances of NAT servers.
Brief description of the drawings
Fig. 1 is the network address conversion port distribution method schematic flow sheet of the present invention.
Fig. 2 is the schematic diagram of step A in the embodiment of the present invention.
Fig. 3 is the schematic diagram that first task and the second task dispatch port resource respectively in the embodiment of the present invention.
Fig. 4 is first task and the schematic diagram before the second task switching in the embodiment of the present invention.
Fig. 5 is first task and the schematic diagram after the second task switching in the embodiment of the present invention.
Fig. 6 is the network address conversion port distribution system schematic diagram of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.
As shown in figure 1, the network address conversion port distribution method schematic flow sheet for the present invention.A kind of network address turns Port assignment method is changed, is comprised the following steps:
A, the first port pond buffer area and second port pond buffer area for storage port resource are created, and creates and is used for Dispatch the first task of available port resource and the second task of the port resource for dispatching release;
B, first task waits port resource application, and when Intranet user sends port resource bid, first task is from the Available port resource allocation is dispatched in the buffer area of Single port pond to Intranet user;
C, the second task waits port resource release, when being discharged after Intranet user has used port resource, the second task Second port pond buffer area is arrived in the port resource storage of scheduling release.
Wherein, first task dispatches available port resource allocation from the buffer area of first port pond and gives Intranet use in step B Family, it is specially:The first task also includes pointer member Pa, and the pointer member Pa is pointed to be deposited in the buffer area of first port pond The available port resource of storage, the first task transfer the available port resource allocation of pointer member Pa sensings to Intranet user;
Second port pond buffer area is arrived in the port resource storage that the second task scheduling discharges in step C, is specially:Described Two tasks also include pointer member Pb, and second port pond buffer area is arrived in the port resource storage of the second task scheduling release, And pointer member Pb is pointed to the port resource stored in the buffer area of second port pond.
In step B, after the pointer to member of task exchanges, first task is dispatched from the buffer area of second port pond can use end Mouth resource allocation is to Intranet user.In step C, after task switching, the second task is dispatched from the buffer area of first port pond can Intranet user is distributed to port resource.
The network address conversion port distribution method and system of the present invention, by establishing dual-port pond buffer area and double tasks Circulate operation is carried out, two tasks are non-interfering to carry out port resource scheduling, and port assignment task will not be reclaimed by port appoints The influence of business, Priority Inversions will not be produced in assigning process, be not in the situation of port assignment failure, also will not be because of use The increase of amount amount causes port assignment speed to decline, and realizes efficient distribution and recovery to port resource, improves NAT services The performance of device.
In step A creates first port pond buffer area, second port pond buffer area, first task and the second task, this Invention carries out rationally efficient distribution to port resource to realize, ensures that NAT servers in all cases can be efficient Network address translation is carried out, user is fully efficiently used outer net resource, creates first port pond buffer area, second port pond Buffer area, first task and the second task.First port pond buffer area and second port pond buffer area are all chain data structure, First port pond buffer area and second port pond buffer area are all used for storage port resource;First task is available for dispatching Port resource, it includes a pointer member Pa, pointer member Pa be used to point to stored in the buffer area of first port pond it is available Port resource;Second task is used for the port resource for dispatching release, and it includes a pointer member Pb, and pointer member Pb is used to refer to The port resource stored into second port pond buffer area.In order to ensure in the case of not changing as defined in NAT agreements, is realized When one task and the second task are scheduled to port resource respectively, the scheduling of resource will not be done by release port resource Disturb, the present invention sets first port pond buffer area as maximum port number, sets second port pond buffer area as sky, setting is first The pointer member Pa of business points to the port resource of first port pond buffer area afterbody, and the pointer member Pb of the second task of setting refers to To the port resource of second port pond buffer area afterbody.
As shown in Fig. 2 the schematic diagram for step A in the embodiment of the present invention.First port pond is set in the embodiment of the present invention Buffer size is 0-65535, using sequence number 0 as afterbody, is arranged in order to 65535;Second port pond buffer area is set as sky (NULL);The pointer member Pa of first task points to the port resource 0 in the buffer area of first port pond;The pointer of second task into Member Pb is oriented to sky.Because section ports resource needs to be retained for special applications, the present invention is to first port pond buffer area Reserved port resource can be filtered out when being set, and first port pond buffer area is set as port number.First port pond The port sequence of buffer area can be ordered sequence, or unordered sequence;The sequence of first port pond buffer area head and the tail port Number it can also exchange.The pointer member Pa that first task is set in the embodiment of the present invention points to first port pond buffer area afterbody, The pointer member Pb for setting the second task points to second port pond buffer area afterbody, and the priority of first task is higher than second Business.The network according to the invention address conversion port assignment method does not have to application demand, can also set the excellent of the second task First level is higher than first task.
Port resource application, when Intranet user sends port resource bid, first task are waited in step B first tasks Available port resource allocation is dispatched from the buffer area of first port pond in Intranet user, the present invention works as no port resource application When, first task, which is in, waits port resource application status.When Intranet user sends port resource bid, of the invention first Task is by calling pointer member Pa to obtain port resource, and the port resource that will be acquired from the buffer area of first port pond Distribute to Intranet user;After being assigned, first port pond buffer area deletes the port resource from the buffer area of first port pond Remove, pointer member Pa is pointed to next port resource in the buffer area of first port pond by first task.
As shown in figure 3, dispatch the schematic diagram of port resource respectively for first task in the embodiment of the present invention and the second task. First task is adjusted from the buffer area of first port pond successively using pointer member Pa according to from 0 to 65535 in the embodiment of the present invention Port resource, and the port resource application sent according to Intranet user are spent, port resource 201 is distributed into Intranet user;Distribution After the completion of, pointer member Pa points to port resource 200.
The step B of the present invention is further comprising the steps of:
B1, first task are after Intranet user distributes port, and pointer member Pa is pointed into next available port resource, and Judge whether the available port resource that pointer member Pa is pointed to is empty;If available port resource is not sky, first task continues Intranet user is waited to send port application;If available port resource is sky, continue to judge second port pond buffer area whether be It is empty;If second port pond buffer area does not swap for sky, first task with the second task;If second port pond buffer area is Sky, then first task ignores all of the port resource bid, and waits the second task to send notice.First task is entered with the second task Row exchange is specially:First port pond buffer area is arrived in the port resource storage of second task scheduling release, and by pointer member Pb Point to the port resource stored in the buffer area of first port pond;First task provides from second port pond buffer area scheduling available port Intranet user is distributed in source, and pointer member Pa is pointed into next available port resource.As shown in figure 4, it is the embodiment of the present invention Middle first task and the schematic diagram before the second task switching.The pointer member Pa of first task is pointed in the buffer area of first port pond Port resource be sky, the port resource that the pointer member Pb of the second task is pointed in the buffer area of second port pond is not sky;Such as It is first task and the schematic diagram after the second task switching in the embodiment of the present invention, first task is by calling pointer shown in Fig. 5 Member Pa obtains port resource from the buffer area of second port pond, and the port resource acquired is distributed into Intranet user, First port pond buffer area is arrived in the port resource storage of second task scheduling release, and pointer member Pb is pointed into second port pond The port resource stored in buffer area.
Port resource release, when being discharged after Intranet user has used port resource, second are waited in the tasks of step C second The port resource of task scheduling release is stored into second port pond buffer area, and the second task also includes pointer member Pb, when interior Network users have used when discharging after port resource, and the port resource storage of the second task scheduling release caches to second port pond Area, and pointer member Pb is pointed to the port resource stored in the buffer area of second port pond.In the second task by pointer member Pb , it is necessary to judge the pointer member Pb of the second task port resources pointed to when pointing to second port pond buffer area afterbody, Judge whether second port pond buffer area is empty;If the port resource that the pointer member Pb of the second task is pointed to is sky, the Two tasks continue waiting for Intranet user release port resource;If the port resource that the pointer member Pb of the second task is pointed to is not Sky, then the second task to first task send notice, show that now second port pond buffer area has been stored with port resource, and Wait Intranet user release port resource.
As shown in fig. 6, the network address conversion port distribution system schematic diagram for the present invention.The invention also provides one kind Network address conversion port distribution system, including:Creation module, judge module and scheduler module.Creation module is used to create the Single port pond buffer area, second port pond buffer area, first task and the second task, first port pond buffer area are used to deposit Port resource is stored up, second port pond buffer area is used for storage port resource, and the first task is used to dispatch available port Resource, second task are used for the port resource for dispatching release;Judge module is used to distribute for Intranet user in first task Judge whether the port resource in the buffer area of first port pond is port resource empty and in the release of the second task scheduling behind port Judge whether the port resource in the buffer area of second port pond is empty afterwards;Scheduler module is used for according to first task and the second task Dispatch port resource.
The network address conversion port distribution system of the present invention first with creation module create first port pond buffer area, Second port pond buffer area, first task and the second task, first port pond buffer area and second port pond buffer area are all For storage port resource, the port resource of first port pond buffer area and the storage of second port pond cache bank memories is all chain number According to structure, first task is used to dispatch available port resource, and it includes pointer member Pa, and pointer member Pa is used to point to first end The available port resource stored in the buffer area of mouth pond;Second task is used for the port resource for dispatching release, and it includes pointer member Pb, pointer member Pb are used to point to the port resource stored in the buffer area of second port pond;Concurrently set first port pond caching Area is maximum port number, sets second port pond buffer area as sky, the pointer member Pa for setting first task points to first port The port resource of pond buffer area afterbody, the pointer member Pb of the second task of setting point to second port pond buffer area afterbody port money Source.
When Intranet user sends port resource bid, pointer member Pa that scheduler module of the invention passes through first task Port resource is obtained from the buffer area of first port pond, and the port resource acquired is distributed into Intranet user;Distribute Cheng Hou, first task delete the port resource from the buffer area of first port pond, and pointer member Pa is pointed into first port Next port resource in the buffer area of pond.After Intranet user release port resource, pointer that scheduler module passes through the second task Member Pb obtains the port resource being released, and the port resource that is released acquired is added into second port pond caching Area's afterbody;After the completion of addition, pointer member Pb is pointed to second port pond buffer area afterbody by the second task, that is, points to port money Source.First task points to pointer member Pa in the buffer area of first port pond after next port resource, under judge module judges Whether a port resource is empty.If next port resource is empty, first task continues waiting for Intranet user and sent Port resource application;If next port resource is sky, judge module continues to judge that the pointer member Pb of the second task is pointed to Port resource whether be empty.If the second task pointer member Pb point to port resource for sky, by first task with Second task swaps, i.e., the port resource that scheduler module is discharged by the second task scheduling Intranet user, stores to first Port pool buffer area, and the pointer member Pb of the second task is pointed into first port pond buffer area afterbody;Scheduler module will simultaneously The pointer member Pa of first task points to second port pond buffer area afterbody, and by first task from second port pond buffer area Port resource allocation is dispatched to Intranet user;If the port resource that the pointer member Pb of the second task is pointed to is sky, second It is engaged in sending to first task and notices, refuses all of the port resource bid, and wait Intranet user release port resource.
One of ordinary skill in the art will be appreciated that embodiment described here is to aid in reader and understands this hair Bright principle, it should be understood that protection scope of the present invention is not limited to such especially statement and embodiment.This area Those of ordinary skill can make according to these technical inspirations disclosed by the invention various does not depart from the other each of essence of the invention The specific deformation of kind and combination, these deform and combined still within the scope of the present invention.

Claims (11)

1. a kind of network address conversion port distribution method, it is characterised in that comprise the following steps:
A, the first port pond buffer area and second port pond buffer area for storage port resource are created, and is created for dispatching Second task of the first task of available port resource and the port resource for dispatching release;The first port pond caching Area is used to deposit the available port resource for distributing to Intranet user;Second port pond buffer area is released for depositing Intranet user The port resource put;
B, first task waits port resource application, and when Intranet user sends port resource bid, first task is from first end Available port resource allocation is dispatched to Intranet user in the buffer area of mouth pond;
C, the second task waits port resource release, when being discharged after Intranet user has used port resource, the second task scheduling Second port pond buffer area is arrived in the port resource storage of release.
2. network address conversion port distribution method as claimed in claim 1, it is characterised in that:It is first in the step B Business dispatches available port resource allocation to Intranet user from the buffer area of first port pond, is specially:The first task is also wrapped Including pointer member Pa, the pointer member Pa points to the available port resource stored in the buffer area of first port pond, and described first Task transfers the available port resource allocation of pointer member Pa sensings to Intranet user.
3. network address conversion port distribution method as claimed in claim 2, it is characterised in that:The step B also include with Lower step:
B1, first task are after Intranet user distributes port, pointer member Pa are pointed into next available port resource, and judge Whether the available port resource that pointer member Pa is pointed to is empty;If available port resource does not continue waiting for for sky, first task Intranet user sends port application;If available port resource is sky, continue to judge whether second port pond buffer area is empty;If Second port pond buffer area is not sky, then first task pointer member Pa and the second task pointer member Pb is swapped;If the Two-port netwerk pond buffer area is sky, then first task ignores all of the port resource bid, and waits the second task to send notice.
4. network address conversion port distribution method as claimed in claim 1, it is characterised in that:Second in the step C Second port pond buffer area is arrived in the port resource storage of business scheduling release, is specially:Second task also includes pointer member Second port pond buffer area arrive in Pb, the port resource storage of second task scheduling release, and by pointer member Pb sensings the The port resource stored in the buffer area of Two-port netwerk pond.
5. network address conversion port distribution method as claimed in claim 4, it is characterised in that:The step C also include with Lower step:
After second port pond buffer area is arrived in C1, the port resource storage of the second task scheduling release, pointer member Pb is pointed to should Port resource, and judge whether the port resource that pointer member Pb is pointed to is empty;If port resource is sky, the second task continues Wait Intranet user release port resource;If port resource is not sky, the second task is sent to first task to be noticed and waits Intranet user release port resource.
6. the network address conversion port distribution method as described in claim any one of 1-5, it is characterised in that described first Business swaps specially with the second task:First port pond buffer area is arrived in the port resource storage of second task scheduling release, First task dispatches port resource allocation to Intranet user from second port pond buffer area.
7. the network address conversion port distribution method as described in claim any one of 1-5, it is characterised in that:The first end The port resource stored in mouth pond buffer area and second port pond buffer area is all chain data structure.
8. network address conversion port distribution method as claimed in claim 6, it is characterised in that:The first port pond caching The port resource stored in area and second port pond buffer area is all chain data structure.
A kind of 9. network address conversion port distribution system, it is characterised in that including:Creation module, judge module and scheduling mould Block;
The creation module creates the first port pond buffer area and second port pond buffer area for storage port resource, and creates Build the first task for dispatching available port resource and the second task of the port resource for dispatching release;Described first Port pool buffer area is used to deposit the available port resource for distributing to Intranet user;Second port pond buffer area is used to deposit The port resource of Intranet user release;
The judge module is used to after first task is Intranet user distribution port judge the end in the buffer area of first port pond Whether mouth resource is empty and the port money in the buffer area of second port pond is judged after the port resource of the second task scheduling release Whether source is empty;
The scheduler module is used for according to first task and the second task scheduling port resource.
10. network address conversion port distribution system as claimed in claim 9, it is characterised in that:The first task is also wrapped Including pointer member Pa, the pointer member Pa points to the available port resource stored in the buffer area of first port pond, and described first Task transfers the available port resource allocation of pointer member Pa sensings to Intranet user.
11. network address conversion port distribution system as claimed in claim 9, it is characterised in that:Second task is also wrapped Include pointer member Pb, second port pond buffer area is arrived in the port resource storage of the second task scheduling release, and by pointer into Member Pb points to the port resource stored in the buffer area of second port pond.
CN201410851514.8A 2014-12-31 2014-12-31 Network address conversion port distribution method and system Active CN104519150B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410851514.8A CN104519150B (en) 2014-12-31 2014-12-31 Network address conversion port distribution method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410851514.8A CN104519150B (en) 2014-12-31 2014-12-31 Network address conversion port distribution method and system

Publications (2)

Publication Number Publication Date
CN104519150A CN104519150A (en) 2015-04-15
CN104519150B true CN104519150B (en) 2018-03-02

Family

ID=52793853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410851514.8A Active CN104519150B (en) 2014-12-31 2014-12-31 Network address conversion port distribution method and system

Country Status (1)

Country Link
CN (1) CN104519150B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713517A (en) * 2015-07-27 2017-05-24 中兴通讯股份有限公司 Address conversion method and device
CN106357836B (en) * 2016-09-07 2019-09-06 新华三技术有限公司 A kind of connection method for building up and device
CN109167846B (en) * 2018-08-02 2022-01-25 杭州迪普科技股份有限公司 Communication port allocation method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1773458A (en) * 2004-11-10 2006-05-17 国际商业机器公司 Method and controller for managing resource element queues
CN102291470A (en) * 2011-08-17 2011-12-21 清华大学 IP (Internet Protocol) address allocation method
WO2012013048A1 (en) * 2010-07-26 2012-02-02 中兴通讯股份有限公司 Physical uplink control channel (pucch) radio resource allocation method and radio resource manager
CN102594939A (en) * 2012-02-16 2012-07-18 杭州华三通信技术有限公司 Secondary address allocation method and device
CN102685272A (en) * 2012-05-30 2012-09-19 华为技术有限公司 Method and device for distributing public network addresses

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1773458A (en) * 2004-11-10 2006-05-17 国际商业机器公司 Method and controller for managing resource element queues
WO2012013048A1 (en) * 2010-07-26 2012-02-02 中兴通讯股份有限公司 Physical uplink control channel (pucch) radio resource allocation method and radio resource manager
CN102291470A (en) * 2011-08-17 2011-12-21 清华大学 IP (Internet Protocol) address allocation method
CN102594939A (en) * 2012-02-16 2012-07-18 杭州华三通信技术有限公司 Secondary address allocation method and device
CN102685272A (en) * 2012-05-30 2012-09-19 华为技术有限公司 Method and device for distributing public network addresses

Also Published As

Publication number Publication date
CN104519150A (en) 2015-04-15

Similar Documents

Publication Publication Date Title
CN101267361B (en) A high-speed network data packet capturing method based on zero duplication technology
CN103210619B (en) For nothing lock and the zero-copy messaging plan of communication network application
CN103412786B (en) High performance server architecture system and data processing method thereof
CN101841470A (en) High-speed capturing method of bottom-layer data packet based on Linux
CN102123090B (en) IP (Internet protocol) fragment processing method based on two-level table storage and transport layer information inquiry
US20060179156A1 (en) Multi-threaded packeting processing architecture
CN101605084A (en) Virtual network message processing method and system based on virtual machine
CN106850565A (en) A kind of network data transmission method of high speed
CN105763478A (en) Token bucket algorithm-based satellite data ground transmission network flow control system
CN102413190A (en) Network architecture based on cloud computing and virtual network management method thereof
CN101171821A (en) System, network device, method, and computer program product for active load balancing using clustered nodes as authoritative domain name servers
JP2010193366A (en) Apparatus and method for packet processing by multiprocessor
CN104519150B (en) Network address conversion port distribution method and system
CN1284094C (en) Distributed parallel scheduling wide band network server system
CN102255932A (en) Load balancing method and load equalizer
CN102158406B (en) Intelligent routing method for computer network links
CN103617142B (en) A kind of express network collecting method based on pf_ring
CN101909054A (en) Method for aggregating multiple network interface cards in virtualized environment
CN103023800A (en) Method for scheduling traffic under multi-core network processor by traffic chart mapping scheduling strategy
CN103380612A (en) Network communication node comprising a plurality of processors for processing layers of communication and associated node
CN109861931A (en) A kind of storage redundant system of high speed Ethernet exchange chip
CN104601738A (en) Distributed network address translation system
CN104571934B (en) A kind of method, apparatus and system of internal storage access
US9304706B2 (en) Efficient complex network traffic management in a non-uniform memory system
CN102761608A (en) UDP (User Datagram Protocol) conversation multiplexing method and load balancing equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 610041 15-24 floor, 1 1 Tianfu street, Chengdu high tech Zone, Sichuan

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041 Maple tower, 16 Hing Hing Road, nine High-tech Zone, Chengdu, Sichuan

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder

Address after: 610041 nine Xing Xing Road 16, hi tech Zone, Sichuan, Chengdu

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041 15-24 floor, 1 1 Tianfu street, Chengdu high tech Zone, Sichuan

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder