CN106131244A - A kind of message transmitting method and device - Google Patents
A kind of message transmitting method and device Download PDFInfo
- Publication number
- CN106131244A CN106131244A CN201610756694.0A CN201610756694A CN106131244A CN 106131244 A CN106131244 A CN 106131244A CN 201610756694 A CN201610756694 A CN 201610756694A CN 106131244 A CN106131244 A CN 106131244A
- Authority
- CN
- China
- Prior art keywords
- outer net
- port
- core
- request message
- net port
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/2517—Translation of Internet protocol [IP] addresses using port numbers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/255—Maintenance or indexing of mapping tables
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/2557—Translation policies or rules
Abstract
nullThe present invention relates to network communication field,Particularly relate to a kind of message transmitting method and device,In order to improve NAT translation efficiency,And then improving data transmission efficiency,The method is: by multiple cores of a NAT device are logically divided into group and the intelligent load balancing device that multiple process karyomorphism becomes,Wherein,Each processes core and is assigned corresponding outer net port set,And without occuring simultaneously between the different disposal outer net port set answered of verification,And utilize the above-mentioned intelligent load balancing device multiple process cores of control to carry out packet sending and receiving,So,Each processes core can the most corresponding a port address table,Rather than multiple process cores shared portion port address conversion table,Avoid the queuing when carrying out port translation of multiple process core to access,Thus greatly reduce the time of port translation,Effectively raise NAT translation efficiency,And then improve data transmission efficiency,Ensure that systematic function.
Description
Technical field
This programme relates to network communication field, particularly relates to a kind of message transmitting method and device.
Background technology
Growing along with Internet, procotol (Internet Protocol, IP) address is the tightest
Lacking, network address translation (Network Address Translation, NAT) technology is to solve current Internet IP address
Deficient a kind of effective means.Using NAT technology, each main frame of internal network can access by the way of shared IP address
External network, thus solve the problem that IP address is in short supply;Meanwhile, NAT technology is again a kind of network perimeter security precautionary measures, can
Internal network and external network to be isolated, provide certain safety guarantee for network.
Along with the development of network technology, user to bandwidth demand also growing, therefore, the performance to NAT device
Require more and more higher, conventional technological means is usually the performance using the hardware platform of multinuclear to improve NAT device.
In the middle of prior art, have employed the NAT device of multi-core technology and the mode of mutual exclusion lock would generally be used multiple to realize
Process internuclear exclusive reference.Concrete, NAT device is receiving after the request message of the client of internal network, can root
Carry out port translation according to NAT rule, be the outer net port that can communicate with external network by Intranet port translation, record simultaneously
Port conversion list, then uses described outer net port that request message is mail to external network, wherein, and multiple process of NAT device
Share with a port conversion list between core, in order to avoid multiple process cores of NAT device occurring when access port conversion table
Can be assigned to same outer net port (i.e. in order to avoid port resource clashes), multiple process cores of NAT device are accessing
Being to use to add the mode of mutual exclusion lock and queue up accesss during port conversion list, some the process core in the most multiple process cores is at access end
During mouth conversion table, remaining other process cores can not access port conversion table.
Obviously, multiple nucleus system uses the mode access port conversion table of mutual exclusion lock, can increase spent by port translation
Time, it is impossible to given play to the advantage of multiple nucleus system, thus reduced data transmission efficiency, have impact on the overall performance of system
In view of this, need to design a kind of new NAT processing method to overcome drawbacks described above.
Summary of the invention
The embodiment of the present invention provides a kind of message transmitting method and device, in order to improve NAT translation efficiency, and then promotes number
According to efficiency of transmission.
The concrete technical scheme that the embodiment of the present invention provides is as follows:
A kind of message transmitting method, is applied under the scene of multiprocessing core, it is characterised in that including:
Receive the request message that intranet host sends;
From default multiple process cores, choose one and process core;Wherein, each processes core and is assigned corresponding outer net
Without occuring simultaneously between port set, and the different disposal outer net port set answered of verification;
Described request message is mail to one and processes core, process core by one, at corresponding outer net port
After set is described request message distribution outer net port, by the outer net port of distribution, described request message is mail to outer net.
Optionally, from default multiple process cores, choose one and process core, including:
Use predetermined manner, calculate corresponding instruction information;
From default multiple process cores, choose a process core with described instruction information association.
Optionally, process core by one, be outside the distribution of described request message in corresponding outer net port set
Net port, including:
Process core by one, corresponding outer net port set randomly selects an idle outer net port and divides
Request message described in dispensing;Or,
Core is processed, according to the priority set in corresponding outer net port set, from priority by one
In high N number of outer net port, choose an idle outer net port assignment to described request message.
Optionally, by the outer net port of distribution, described request message is mail to outer net, including:
Process the described request message of verification by one and carry out the source address conversion of network address translation NAT, described
The source address conversion of NAT at least includes replacing with the source port of described request message described outer net port, and record is described
Port mapping relationship between source port and described outer net port;
By described outer net port, described request message is mail to outer net.
Optionally, farther include:
When receiving response message corresponding to described request message, obtain the outer net port carried in described response message;
Based on described port mapping relationship, determine the process core that described outer net port is corresponding;
Described response message is sent and processes core to one, process core by one, to described response message
Carrying out the destination address conversion of NAT, the destination address conversion of described NAT at least includes described outer net port replaces with correspondence
Source port;
Process core by one, described response message is mail to the recipient that described source port is corresponding.
A kind of message transporter, is applied under the scene of multiprocessing core, it is characterised in that including:
First communication unit, for receiving the request message that intranet host sends;
Processing unit, for from default multiple process cores, chooses one and processes core;Wherein, each process core divides
It is furnished with corresponding outer net port set, and different disposal is checked between the outer net port set answered without occuring simultaneously;
Second communication unit, processes core for described request message mails to one, processes core by one,
After being described request message distribution outer net port in corresponding outer net port set, asked described by the outer net port of distribution
Message is asked to mail to outer net.
Optionally, from default multiple process cores, choosing one and process core, described processing unit is used for:
Use predetermined manner, calculate corresponding instruction information;
From default multiple process cores, choose a process core with described instruction information association.
Optionally, process core by one, be outside the distribution of described request message in corresponding outer net port set
Net port, described second communication unit is used for:
Process core by one, corresponding outer net port set randomly selects an idle outer net port and divides
Request message described in dispensing;Or,
Core is processed, according to the priority set in corresponding outer net port set, from priority by one
In high N number of outer net port, choose an idle outer net port assignment to described request message.
Optionally, by the outer net port of distribution, described request message being mail to outer net, described second communication unit is used for:
Process the described request message of verification by one and carry out the source address conversion of network address translation NAT, described
The source address conversion of NAT at least includes replacing with the source port of described request message described outer net port, and record is described
Port mapping relationship between source port and described outer net port;
By described outer net port, described request message is mail to outer net.
Optionally, described second communication unit is further used for:
When receiving response message corresponding to described request message, obtain the outer net port carried in described response message;
Based on described port mapping relationship, determine the process core that described outer net port is corresponding;
Described response message is sent and processes core to one, process core by one, to described response message
Carrying out the destination address conversion of NAT, the destination address conversion of described NAT at least includes described outer net port replaces with correspondence
Source port;
Process core by one, described response message is mail to the recipient that described source port is corresponding.
The present invention has the beneficial effect that:
In the embodiment of the present invention, by multiple cores of a NAT device being logically divided into multiple process karyomorphism
Group and an intelligent load balancing device, wherein, each process core be assigned corresponding outer net port set, and different disposal
Without occuring simultaneously between the outer net port set that verification is answered, and the above-mentioned intelligent load balancing device multiple process cores of control are utilized to carry out message
Transmitting-receiving, so, each processes core each a port address table of correspondence rather than multiple process core can share a port ground
Location conversion table, it is to avoid the queuing when carrying out port translation of multiple process cores accesses, thus greatly reduce port translation time
Between, effectively raise NAT translation efficiency, and then improve data transmission efficiency, it is ensured that systematic function.
Accompanying drawing explanation
Fig. 1 is message transmitting method schematic diagram in the embodiment of the present invention;
Fig. 2 is that in the embodiment of the present invention, message transmits flow chart;
Fig. 3 is message transporter figure in the embodiment of the present invention.
Detailed description of the invention
In order to improve NAT translation efficiency, and then improving data transmission efficiency, in the embodiment of the present invention, devise a kind of report
Literary composition transfer approach, the method is: multiple cores of a NAT device are logically divided into the group and that multiple process karyomorphism becomes
Individual intelligent load balancing device, wherein, each processes core and is assigned corresponding outer net port set, and different disposal verification is answered
Without occuring simultaneously between outer net port set, and the above-mentioned intelligent load balancing device multiple process cores of control are utilized to carry out packet sending and receiving.
Such as, refering to shown in Fig. 1, in the embodiment of the present invention, at multinuclear NAT device initial phase, according to performance requirement
Multiple cores can be logically divided into an intelligent load balancing device and N number of process core, as in figure 2 it is shown, wherein, one
Process in core including at least a central processing unit (Central Processing Unit, CPU), an intelligent load balancing
Also including at least a CPU in device, so, by the scheduling of intelligent load balancing device, N number of process core can be controlled and complete message
Transmission.
Below in conjunction with the accompanying drawings the embodiment that the present invention is preferential is described in detail.
Refering to shown in Fig. 2, in the embodiment of the present invention, the idiographic flow of message transmitting method is as follows:
Step 200: intelligent load balancing device receives the request message that intranet host sends.
Concrete, when performing step 200, can use but be not limited in the following manner:
Intelligent load balancing device in intranet host receives by LAN (Local Area Network, LAN) mouth
From the request message of intranet host.
Step 210: intelligent load balancing device, based on the request message obtained, from default multiple process cores, chooses one
Individual process core.
In the embodiment of the present invention, when performing step 210, intelligent load balancing device can use but be not limited in the following manner:
Intelligent load balancing device, based on the request message obtained, uses predetermined manner, chooses from default N number of process core
One the process core as processing request message, wherein, N number of process core can distribute a public network IP address, i.e. N number of process core
Under each process core share a public network IP address.
Concrete, predetermined manner can have multiple, is to illustrate with the following two kinds predetermined manner in the embodiment of the present invention.
For example with hash algorithm based on stream, intelligent load balancing device receives the request message that intranet host sends,
And utilize hash algorithm based on stream to calculate a numerical value according to the source address information of request message, indicate letter the most accordingly
Breath, the numerical value obtained according to hash algorithm based on stream can find the process core of correspondence, wherein, according to number N processing core
Corresponding N number of numerical value can be generated, and above-mentioned N number of numerical value distinguishes the N number of process core of correspondence, between the most N number of numerical value and N number of process core
There is relation one to one.
The numerical value using hash algorithm based on stream to calculate can be within above-mentioned N number of numerical range, the most above-mentioned N number of numerical value
In certainly exist a numerical value with to use the numerical value that calculates of hash algorithm based on stream corresponding identical, it is assumed that use based on stream
The numerical value that hash algorithm calculates is 3, then corresponding process core is process core 3.
The most such as can use polling dispatching (Round-Robin) pattern, the pattern of so-called polling dispatching is i.e. each time
The above-mentioned request message that intelligent load balancing device obtains distributes to N number of process core in turn, it is assumed that the most above-mentioned request message divides
Dispensing processes core 1, and the most above-mentioned request message is distributed to process core 2, and the most above-mentioned request message is distributed to process core
3 ..., the above-mentioned request message of n-th is distributed to process core N, until above-mentioned for n-th request message being distributed to process core N, i.e.
The first round has dispatched, and then starts new round scheduling, and i.e. the N+1 time request message distributes to process core 1, the N+2 time request
Message is distributed to process core 2, etc..
Step 220: one processes core and receives the request message sent by intelligent load balancing device, and at corresponding outer net
Port set is above-mentioned request message distributes outer net port.
In the embodiment of the present invention, process core for each in advance and be assigned corresponding outer net port set, and different disposal
Without occuring simultaneously between the outer net port set that verification is answered, will all outer net port resource differentiationizations process, different outer net ports
The corresponding different process core of set, the only outer net port set to self correspondence of each process core has processing authority, so, can
Resource contention is there is between core to avoid processing at difference.
For example, it is assumed that the N in N number of process core in the embodiment of the present invention is " 4 ", and the relations of distribution of outer net port set
For: the outer net port collection processing core 1 is combined into " 0-1000 ", and the outer net port collection processing core 2 is combined into " 1000-2000 ", processes core 3
Outer net port collection be combined into " 2000-3000 ", process core 4 outer net port collection be combined into " 3000-4000 ".
In the present embodiment, when performing step 220, intelligent load balancing device receives the request report that intranet host sends
Literary composition, and send above-mentioned request message to processing core by intercore communication passage, one processes after core receives request message, can be from
An idle outer net port is chosen in corresponding outer net port set, concrete, can use but be not limited in the following manner:
Mode one: after said one process core receives the request message sent by intelligent load balancing device, from accordingly
Outer net port set randomly selects an idle outer net port assignment to above-mentioned request message.
Mode two: after said one process core receives the request message sent by intelligent load balancing device, accordingly
According to the priority set in outer net port set, from N number of outer net port that priority is the highest, choose an idle outer net
Port assignment gives above-mentioned request message.
Such as, said one is processed the height according to priority of the outer net port in the outer net port set of core from high to low
Be ranked up, choose N number of outer net port that priority is the highest, it is assumed that N is 3, then select priority the highest, priority second highest
, 3 outer net ports that priority is time second highest, and from above-mentioned 3 outer net ports, randomly select an idle outer net port
Distribute to above-mentioned request message, or choose that priority is the highest and the outer net port assignment of free time is to above-mentioned request report
Literary composition.
Certainly, aforesaid way is only for example, and outer net port selection rule is not limited in aforesaid way.
Wherein, when the priority of outer net port is evaluated can using outer net port by access times as evaluation mark
Accurate, i.e. outer net port is the fewest by access times, then corresponding priority is the highest.
Step 230: after said one process core is changed by the source address that above-mentioned request message carries out NAT, by above-mentioned
Request message mails to outer net.
Said one processes core and obtains the request message sent by intelligent load balancing device, and carries out for this request message
The source address conversion of NAT, the source address conversion of above-mentioned NAT includes replacing with the source port of above-mentioned request message described outer net end
Mouthful, and record the port mapping relationship between above-mentioned source port and above-mentioned outer net port, e.g., above-mentioned port mapping relationship is preserved
To port mapping table, and for above-mentioned request message do source IP address conversion, will above-mentioned request message source IP address replace
For outer net IP address, and record the address transformational relation between above-mentioned source IP address and above-mentioned outer net IP address, e.g., by above-mentioned
Location transformational relation preserves to ATT.
If the source port of above-mentioned request message replaces with outer net port, and source IP address replaces to the mistake of outer net IP address
Journey completes, then said one processes core and by above-mentioned outer net port and outer net IP address, above-mentioned request message can be mail to outer net.
Step 240: intelligent load balancing device receives the response message returned by outer net, and is mail to by above-mentioned response message
Said one processes core.
Outer net receives by processing the request message that core sends, and can generate corresponding response report according to above-mentioned request message
Literary composition, and above-mentioned response message is handed down to intelligent load balancing device.
After intelligent load balancing device receives response message, the destination interface of above-mentioned response message can be parsed, and based on
Port mapping relationship searches corresponding process core, and wherein, the destination interface of above-mentioned response message is corresponding requests message and replaces
Outer net port.
If the destination interface of above-mentioned response message is " 2500 ", i.e. the outer net port that corresponding request message is replaced is
" 2500 ", then find the process core of correspondence for processing core 3 according to port mapping relationship.
So far, intelligent load balancing device finds the process core that response message is corresponding, and is sent out by above-mentioned response message
Give said one and process core.
Step 250: said one processes core and receives the response message sent by intelligent load balancing device, and by above-mentioned sound
Answer message to carry out the destination address conversion of NAT, find the intranet host of correspondence.
After response message is sent to the said one process core of correspondence by intelligent load balancing device, said one processes core meeting
Above-mentioned response message carries out the destination address conversion of NAT, and the conversion of above-mentioned purpose address includes the mesh of above-mentioned response message
Port replace with correspondence source port, and for above-mentioned response message do purpose IP address conversion.
The said one process above-mentioned response message of verification carries out the destination address conversion of NAT can be locally stored by searching
Port mapping table and ATT, wherein, above-mentioned port mapping table have recorded the request report that above-mentioned response message is corresponding
Port mapping relationship between literary composition source port and outer net port, have recorded above-mentioned response message corresponding in address above mentioned conversion table
Address transformational relation between request message source IP address and outer net IP address.
Said one processes core and searches the above-mentioned request that above-mentioned response message is corresponding in locally stored port mapping table
The source port of message, i.e. do destination interface conversion for above-mentioned response message, by destination interface (the outer net end of above-mentioned response message
Mouthful) replace with the source port of request message corresponding to above-mentioned response message, and, said one processes core on locally stored ground
Location conversion table is searched the source IP address of above-mentioned request message corresponding to above-mentioned response message, i.e. do mesh for above-mentioned response message
IP address conversion, the purpose IP address of above-mentioned response message is converted to above-mentioned request message corresponding to above-mentioned response message
Source IP address, and the intranet host of correspondence is found based on above-mentioned source port and source IP address.
Step 260: said one processes core and above-mentioned response message is handed down to the intranet host of correspondence.
After said one process core finds the intranet host that above-mentioned response message is corresponding, and above-mentioned response message is handed down to
Intranet host.
Refering to shown in Fig. 3, in the embodiment of the present invention, message transporter at least includes the first communication unit 300, processes list
Unit 310 and the second communication unit 320, wherein,
First communication unit 300, for receiving the request message that intranet host sends;
Processing unit 310, for from default multiple process cores, chooses one and processes core;Wherein, each processes core
It is assigned corresponding outer net port set, and different disposal is checked between the outer net port set answered without occuring simultaneously;
Second communication unit 320, is processed core for described request message mails to one, is processed by one
Core, after being described request message distribution outer net port in corresponding outer net port set, by the outer net port of distribution by institute
State request message and mail to outer net.
Optionally, from default multiple process cores, choosing one and process core, described processing unit 310 is used for:
Use predetermined manner, calculate corresponding instruction information;
From default multiple process cores, choose a process core with described instruction information association.
Optionally, process core by one, be outside the distribution of described request message in corresponding outer net port set
Net port, described second communication unit 320 is used for:
Process core by one, corresponding outer net port set randomly selects an idle outer net port and divides
Request message described in dispensing;Or,
Core is processed, according to the priority set in corresponding outer net port set, from priority by one
In high N number of outer net port, choose an idle outer net port assignment to described request message.
Optionally, by the outer net port of distribution, described request message being mail to outer net, described second communication unit 320 is used
In:
Process the described request message of verification by one and carry out the source address conversion of network address translation NAT, described
The source address conversion of NAT at least includes replacing with the source port of described request message described outer net port, and record is described
Port mapping relationship between source port and described outer net port;
By described outer net port, described request message is mail to outer net.
Optionally, described second communication unit 320 is further used for:
When receiving response message corresponding to described request message, obtain the outer net port carried in described response message;
Based on described port mapping relationship, determine the process core that described outer net port is corresponding;
Described response message is sent and processes core to one, process core by one, to described response message
Carrying out the destination address conversion of NAT, the destination address conversion of described NAT at least includes described outer net port replaces with correspondence
Source port;
Process core by one, described response message is mail to the recipient that described source port is corresponding.
In sum, in the embodiment of the present invention, by multiple cores of a NAT device are logically divided into multiple place
The group of reason karyomorphism one-tenth and an intelligent load balancing device, wherein, each processes core and is assigned corresponding outer net port set, and
Without occuring simultaneously between the outer net port set that different disposal verification is answered, and above-mentioned intelligent load balancing device is utilized to control multiple process cores
Carrying out packet sending and receiving, so, each processes core each a port address table of correspondence rather than multiple process core can share one
Part port address conversion table, it is to avoid multiple process cores queuings when carrying out port translation accesses, thus greatly reduces port
The time of conversion, effectively raise NAT translation efficiency, and then improve data transmission efficiency, it is ensured that systematic function.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the reality in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware
Execute the form of example.And, the present invention can use at one or more computers wherein including computer usable program code
The upper computer program product implemented of usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.)
The form of product.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention
Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram
Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce
A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real
The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to
Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or
The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter
Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or
The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one
The step of the function specified in individual square frame or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to include excellent
Select embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the embodiment of the present invention
The spirit and scope of bright embodiment.So, if these amendments of the embodiment of the present invention and modification belong to the claims in the present invention
And within the scope of equivalent technologies, then the present invention is also intended to comprise these change and modification.
Claims (10)
1. a message transmitting method, is applied under the scene of multiprocessing core, it is characterised in that including:
Receive the request message that intranet host sends;
From default multiple process cores, choose one and process core;Wherein, each processes core and is assigned corresponding outer net port
Gather, and different disposal is checked between the outer net port set answered without occuring simultaneously;
Described request message is mail to one and processes core, process core by one, in corresponding outer net port set
In be described request message distribution outer net port after, by distribution outer net port described request message is mail to outer net.
2. the method for claim 1, it is characterised in that from default multiple process cores, chooses one and processes core, bag
Include:
Use predetermined manner, calculate corresponding instruction information;
From default multiple process cores, choose a process core with described instruction information association.
3. method as claimed in claim 1 or 2, it is characterised in that process core by one, at corresponding outer net port
Set is described request message distributes outer net port, including:
By one process core, randomly select in corresponding outer net port set an idle outer net port assignment to
Described request message;Or,
Core is processed, according to the priority set in corresponding outer net port set, from the N that priority is the highest by one
In individual outer net port, choose an idle outer net port assignment to described request message.
4. method as claimed in claim 1 or 2, it is characterised in that described request message is sent out by the outer net port of distribution
Past outer net, including:
Process the described request message of verification by one and carry out the source address conversion of network address translation NAT, described NAT's
Source address conversion at least includes replacing with the source port of described request message described outer net port, and records described source port
And the port mapping relationship between described outer net port;
By described outer net port, described request message is mail to outer net.
5. method as claimed in claim 4, it is characterised in that farther include:
When receiving response message corresponding to described request message, obtain the outer net port carried in described response message;
Based on described port mapping relationship, determine the process core that described outer net port is corresponding;
Described response message is sent and processes core to one, process core by one, described response message is carried out
The destination address conversion of NAT, the destination address conversion of described NAT at least includes the source that described outer net port replaces with correspondence
Mouthful;
Process core by one, described response message is mail to the recipient that described source port is corresponding.
6. a message transporter, is applied under the scene of multiprocessing core, it is characterised in that including:
First communication unit, for receiving the request message that intranet host sends;
Processing unit, for from default multiple process cores, chooses one and processes core;Wherein, each process core is assigned
Without occuring simultaneously between corresponding outer net port set, and the outer net port set answered of different disposal verification;
Second communication unit, processes core for described request message mails to one, processes core by one, in phase
After the outer net port set answered distributes outer net port for described request message, by the outer net port of distribution by described request report
Literary composition mails to outer net.
7. device as claimed in claim 6, it is characterised in that from default multiple process cores, chooses one and processes core, institute
State processing unit for:
Use predetermined manner, calculate corresponding instruction information;
From default multiple process cores, choose a process core with described instruction information association.
Device the most as claimed in claims 6 or 7, it is characterised in that process core by one, at corresponding outer net port
Being that described request message distributes outer net port in set, described second communication unit is used for:
By one process core, randomly select in corresponding outer net port set an idle outer net port assignment to
Described request message;Or,
Core is processed, according to the priority set in corresponding outer net port set, from the N that priority is the highest by one
In individual outer net port, choose an idle outer net port assignment to described request message.
Device the most as claimed in claims 6 or 7, it is characterised in that described request message is sent out by the outer net port of distribution
Toward outer net, described second communication unit is used for:
Process the described request message of verification by one and carry out the source address conversion of network address translation NAT, described NAT's
Source address conversion at least includes replacing with the source port of described request message described outer net port, and records described source port
And the port mapping relationship between described outer net port;
By described outer net port, described request message is mail to outer net.
10. device as claimed in claim 9, it is characterised in that described second communication unit is further used for:
When receiving response message corresponding to described request message, obtain the outer net port carried in described response message;
Based on described port mapping relationship, determine the process core that described outer net port is corresponding;
Described response message is sent and processes core to one, process core by one, described response message is carried out
The destination address conversion of NAT, the destination address conversion of described NAT at least includes the source that described outer net port replaces with correspondence
Mouthful;
Process core by one, described response message is mail to the recipient that described source port is corresponding.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610756694.0A CN106131244A (en) | 2016-08-29 | 2016-08-29 | A kind of message transmitting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610756694.0A CN106131244A (en) | 2016-08-29 | 2016-08-29 | A kind of message transmitting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106131244A true CN106131244A (en) | 2016-11-16 |
Family
ID=57273811
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610756694.0A Pending CN106131244A (en) | 2016-08-29 | 2016-08-29 | A kind of message transmitting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106131244A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106657439A (en) * | 2016-12-06 | 2017-05-10 | 东软集团股份有限公司 | Operation method and device of network address translation mapping table |
CN107566549A (en) * | 2017-09-30 | 2018-01-09 | 东软集团股份有限公司 | A kind of processing method, device and the equipment of network address translation mapping table |
CN111385378A (en) * | 2020-03-03 | 2020-07-07 | 深圳市网心科技有限公司 | Message forwarding method, hardware equipment, system and medium based on address exchange |
CN112104565A (en) * | 2020-09-15 | 2020-12-18 | 东软集团股份有限公司 | Method, system and equipment for realizing message forwarding |
CN112671941A (en) * | 2020-11-20 | 2021-04-16 | 北京东土军悦科技有限公司 | Message processing method, device, equipment and medium |
CN112929277A (en) * | 2019-12-06 | 2021-06-08 | 华为技术有限公司 | Message processing method and device |
CN113507532A (en) * | 2021-08-24 | 2021-10-15 | 优刻得科技股份有限公司 | Method for network address translation, corresponding server, storage medium and electronic device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101262506A (en) * | 2008-04-21 | 2008-09-10 | 杭州华三通信技术有限公司 | Allocation method and system for network address conversion port resource under distributed architecture |
CN101771600A (en) * | 2008-12-30 | 2010-07-07 | 北京天融信网络安全技术有限公司 | Method for concurrently processing join in multi-core systems |
CN103797774A (en) * | 2013-11-05 | 2014-05-14 | 华为技术有限公司 | Device and method for network address conversion |
CN105450792A (en) * | 2015-12-23 | 2016-03-30 | 东软集团股份有限公司 | Port allocation method and device for converting multi-core forwarding network address port |
-
2016
- 2016-08-29 CN CN201610756694.0A patent/CN106131244A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101262506A (en) * | 2008-04-21 | 2008-09-10 | 杭州华三通信技术有限公司 | Allocation method and system for network address conversion port resource under distributed architecture |
CN101771600A (en) * | 2008-12-30 | 2010-07-07 | 北京天融信网络安全技术有限公司 | Method for concurrently processing join in multi-core systems |
CN103797774A (en) * | 2013-11-05 | 2014-05-14 | 华为技术有限公司 | Device and method for network address conversion |
CN105450792A (en) * | 2015-12-23 | 2016-03-30 | 东软集团股份有限公司 | Port allocation method and device for converting multi-core forwarding network address port |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106657439A (en) * | 2016-12-06 | 2017-05-10 | 东软集团股份有限公司 | Operation method and device of network address translation mapping table |
CN106657439B (en) * | 2016-12-06 | 2020-01-03 | 东软集团股份有限公司 | Operation method and device of network address translation mapping table |
CN107566549A (en) * | 2017-09-30 | 2018-01-09 | 东软集团股份有限公司 | A kind of processing method, device and the equipment of network address translation mapping table |
CN112929277A (en) * | 2019-12-06 | 2021-06-08 | 华为技术有限公司 | Message processing method and device |
CN112929277B (en) * | 2019-12-06 | 2024-03-05 | 华为云计算技术有限公司 | Message processing method and device |
CN111385378A (en) * | 2020-03-03 | 2020-07-07 | 深圳市网心科技有限公司 | Message forwarding method, hardware equipment, system and medium based on address exchange |
CN112104565A (en) * | 2020-09-15 | 2020-12-18 | 东软集团股份有限公司 | Method, system and equipment for realizing message forwarding |
CN112104565B (en) * | 2020-09-15 | 2024-03-29 | 东软集团股份有限公司 | Method, system and equipment for realizing message forwarding |
CN112671941A (en) * | 2020-11-20 | 2021-04-16 | 北京东土军悦科技有限公司 | Message processing method, device, equipment and medium |
CN113507532A (en) * | 2021-08-24 | 2021-10-15 | 优刻得科技股份有限公司 | Method for network address translation, corresponding server, storage medium and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106131244A (en) | A kind of message transmitting method and device | |
CN112615849B (en) | Micro-service access method, device, equipment and storage medium | |
CN105247529B (en) | The synchronous voucher hash between directory service | |
CN107241319B (en) | Distributed network crawler system based on VPN and scheduling method | |
US8656161B2 (en) | Information sharing system, information sharing method, group management program and compartment management program | |
CN102822841A (en) | Thin-client system, access control method, and access control method in same | |
CN108268372A (en) | Mock test processing methods, device, storage medium and computer equipment | |
CN110289999B (en) | Data processing method, system and device | |
CN112367684B (en) | Flow control method, device, storage medium and computer equipment | |
CN108228363A (en) | A kind of message method and device | |
CN110247906A (en) | A kind of method for monitoring network and device, equipment, storage medium | |
CN106354795A (en) | Distributed data exchanging system | |
CN110162407A (en) | A kind of method for managing resource and device | |
CN105991596A (en) | Access control method and system | |
CN109756584A (en) | Domain name analytic method, domain name mapping device and computer readable storage medium | |
CN108563697A (en) | A kind of data processing method, device and storage medium | |
CN112822235A (en) | Data sharing system and method of heterogeneous cloud computing system | |
CN110457128B (en) | Task allocation method, device and system | |
CN108063832A (en) | A kind of cloud storage system and its storage method | |
CN106487770B (en) | Method for authenticating and authentication device | |
CN107395587A (en) | A kind of data managing method and system based on multipoint cooperative mechanism | |
CN108156124A (en) | A kind of secure data management system of layering | |
CN113177179A (en) | Data request connection management method, device, equipment and storage medium | |
CN112084021A (en) | Interface configuration method, device and equipment of education system and readable storage medium | |
CN107103034A (en) | TFAS data directory information method of servicing based on LDAP |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161116 |
|
RJ01 | Rejection of invention patent application after publication |