CN101964971B - Method for cross-layer mapping of mobile user proxy addresses - Google Patents

Method for cross-layer mapping of mobile user proxy addresses Download PDF

Info

Publication number
CN101964971B
CN101964971B CN 200910157331 CN200910157331A CN101964971B CN 101964971 B CN101964971 B CN 101964971B CN 200910157331 CN200910157331 CN 200910157331 CN 200910157331 A CN200910157331 A CN 200910157331A CN 101964971 B CN101964971 B CN 101964971B
Authority
CN
China
Prior art keywords
package
notes
source
destination
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 200910157331
Other languages
Chinese (zh)
Other versions
CN101964971A (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.)
Chen Yaozong
Jia Wenkang
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN 200910157331 priority Critical patent/CN101964971B/en
Publication of CN101964971A publication Critical patent/CN101964971A/en
Application granted granted Critical
Publication of CN101964971B publication Critical patent/CN101964971B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for cross-layer mapping of mobile user proxy addresses, in particular a method for quick cross-layer mapping and analysis of mobile user proxy addresses in a mobile IPv4 proxy network environment. The method comprises a forwarding program from the inside to the outside and a forward program from outside to inside. Therefore, before and after the mobile user moves, most of packets can be transmitted transparently and directly without executing any actions of address substitution operation, re-capsulation and relay forwarding so as to improve the efficiency of a mobile IPv4 proxy network.

Description

Method for cross-layer mapping of mobile user proxy addresses
Technical field
The present invention is relevant for a kind of method for cross-layer mapping of mobile user proxy addresses, need not carry out any relaying in espespecially a kind of exhausted most situation and pass on the method for cross-layer mapping of mobile user proxy addresses of computing.
Background technology
World-wide web (Internet) is the various computers with in the world, Local Area Network by all parts of the world also uses a kind of transmission control protocol/Internet protocol (Transmission ControlProtocol/Internet Protocol that is called, abbreviation TCP/IP) standardization communications protocol links, by the connection of world-wide web, allow the user of different regions or heterogeneous networks can exchange each other information, common source and communication each other.
At the 4th edition existing IP (IP Version 4, abbreviation IPv4) in addressing agreement, used the length of 32 bits, come the all-network device in the addressing whole world, this device can be computer, printer, router, interchanger, gateway or other web-enabled equipment.As long as have the IP address that legal unit provides, this device namely can directly be come source or destination to carry out data communication with reference to treating as on world-wide web; But the IPv4 agreement supposes that the all-network device is all via wired some positions that is fastened on when formulating, and after the radio network technique development, network equipment can be given a wave point, carries out wireless data communication.Each mobile device in network may move at any time, and wishes and can still continue keeping data communication in mobile process.Therefore, wireless mobile environment must provide mobile management, with the network data path transfer problem of completing in moving process smoothly to be derived.Mobile switching (Handoff) is indispensable for mobile radio network.Because the quality of communication can be affected because suspending communication in handoff procedure, in order to ensure better communication quality, a smooth-going jointless mobile switch method is necessary.Because of the mobility of network equipment, the IPv4 agreement of world-wide web is no longer fully applicable at present in addition.Therefore must be for the compatible mobile internet procotol (Mobile IP) of IPv4 agreement at present of mobile wireless network Environment Design one cover, make the mobile wireless network environment can allow the user in continuing moving process, carry out incessantly the resource access on present world-wide web.
All radio network techniques all are considered as Mobile IP the solution of mobile management at present, because Mobile IP is the procotol of the 3rd layer, so there are some problems to exist.For example it must coordinate modification and underlying protocol and and underlying protocol between interface, that cloth is built is difficult, the triangle route causes the problems such as the package transmission efficiency is poor, bad to the support of upper level applications, switching delay.The topmost purpose of Mobile IP is to make mobile node (Mobile Node; When MN) moving in network, still can keep with network even with corresponding node (Correspondent Node; CN) link between.After MN moves to new net territory, can be to on-site nonlocal user agent (Foreign Agent; FA) matching requirements is taken a brand-new Care-of Address (Care-of address; CoA), and by binding (Binding) relation of its foundation with local address, make and deliver to local user agent (Home Agent, HA) package of device can be encapsulated in IP tunneling protocol (IPTunnel), relaying is transferred to the CoA at mobile node place, completes the process of whole switching.
The IPv6 agreement of next generation network internet has been suggested more than ten years, Mobile IP has defined respectively Mobile IPv6 (MIP6) and the large quasi-protocol of MobileIPv4 (MIP4) two according to the difference of IPv4 and IPv6 network characteristic and function for both; Mobile IPv6 simplifies more than Mobile IPv4 framework and to transmit data more efficient, authentication is more complete with encryption technology, and can satisfy a large amount of IP address need, major advantage also has: use neighbours to find (Neighbor Discovery) and auto-addressing (Auto Configuration) function, cancel FA, use path optimization to solve the triangle route, utilize safe IP (IPSec) mechanism to satisfy authentication security etc.It is generally acknowledged MIP4 bedstead room repeatedly in the integration of existing IPv4, have many defectives, certainly will by after the power of MIP6 in conjunction with IPv6, could obtain a more perfect Mobile IP service environment.
Aforesaid main flow Mobil eIPv4/IPv6 agreement has been pointed out considerable problem, and wherein most importantly cloth builds up problem originally; Due on existing mobile client equipment cheaply, integrating complicated MIP agreement is the work of very challenging property, has therefore proposed in recent years another proxy-mobile IP (ProxyMobile IP; PMIP) new countermeasure, this concept is divided into user's Mobile IP (ClientMobile IP with Mobile IP method; CMIP) with proxy-mobile IP (Proxy Mobile IP; PMIP) two large classes.Aforementioned known MIP method namely refers to CMIP usually, and the Client wording in CMIP represents the function that MN itself possesses Mobile IP as previously mentioned, does not namely need the extras of network terminal auxiliary; In other words, the existing network route device must not support the MIP agreement can allow the MIP network operate.Yet the communication protocol stack that there is no built-in Mobile IP in PMIP agreement hypothesis MN, the agency's help that must lean on back-end network this moment.Mobile agent (Proxy Mobility Agent) wherein, be called for short agency (Proxy) for being placed on the equipment in network, be responsible for representing that MN is to local user agent (Home Agent, HA) device registration and the mobile management affairs of processing other relevant MIP, so can allow and not possess the MN that the MIP function is arranged, also can possess in mobile radio network mobile arbitrarily function, and MN itself with and the application program on upper strata, even might not know itself to move.The standard of PMIP6 has been formulated and has been completed at present, and the standard of PMIP4 is still in definition.
But estimate next IPv6 addressing mode from generation to generation and must also will dispose again three to five years, even more of a specified duration, IPv6 be changed comprehensively or be upgraded to routing device on world-wide web just might, and in this section transition period, it is main that the world-wide web user will continue to adopt the IPv4 agreement; But existing MIP4 environment, no matter be CMIP4 or the method for PMIP4, all unavoidablely must be in the face of the existing burden of IPv4 agreement, the problem of addressing space deficiency namely, in the CMIP4 environment, if MN adopts is legal IP address (Public IP), may face move to new field network after, do not apply because of the IP address and distribute, can't obtain the IP address and cause the problem that network can not line; And mobile device itself is subject to communications protocol tenability of operational capability, program storage area, operating system manufacturer etc., can't support the problem of CMIP4 agreement at all.Particularly in the PMIP4 environment of new definition, MN needn't change CoA after moving to new field network, if what MN adopted is legal IP address (Public IP), a data conversational communication connects (SessionConnection), and may face data packet all needs to pass on through the HA relaying back and forth; And FA, HA device be in the process of passing on, and complicated address lookup table replacement procedure often causes the usefulness bottleneck, and derives the service quality problem; If what MN adopted is privately owned IP address (Private IP), may face move to new field network after, with the problem that the private ip addresses that has other MN now clashes, in fact the PMIP4 mobile network can't adopt private IP address (Private IP) to save the use of IPv4 address.And which kind of method no matter, the second layer of MN and three-layer network driver, all or must carry out the problem of corresponding revision hereby to coordinate.The specific embodiment Organization Chart of known PMIP4 please refer to Fig. 2, wherein access router (AccessRouter; AR) be the border route device of wireless network and cable network, by in figure as can be known known PMIP4 be mainly one and switch the mechanism of running on the 3rd layer, OSI network, and can't provide with private ip addresses the framework of service.
Therefore, how to develop a kind of method that mobile subscriber acts on behalf of the address mapping of quick cross-layer and parsing, it can make most package at direct transparent transmission when the agent apparatus, and need not carry out the action that any address in-place computation, Reseal and relaying pass on, and then the usefulness of raising mobile agent IPv4 network, will be that the present invention wants actively to inquire into part.
The present invention proposes a kind of method for cross-layer mapping of mobile user proxy addresses, to address the above problem.
Summary of the invention
The object of the invention is to, solve in existing IPv4 Network Mobility user agent treatment technology, the action that needs executive address in-place computation, Reseal and relaying to pass on makes the lower technical problem of mobile agent IPv4 network efficiency.
For achieving the above object, the invention provides a kind of method for cross-layer mapping of mobile user proxy addresses, it comprises one and passes on from inside to outside program and and pass on from outside to inside program, this method for cross-layer mapping of mobile user proxy addresses adopts mobile subscriber's agent address table of comparisons and in order to pass on package, this mobile subscriber's agent address table of comparisons comprises at least one notes record, each notes record comprises a primary source port numbers and and sends source port number outside, and wherein this passes on from inside to outside program and comprises the following step:
(1) receive a package from an internal network interface, a gauge outfit content of this package comprises a source port number;
(2) compare with this mobile subscriber's agent address table of comparisons according to the gauge outfit content (for example gauge outfit content of the ground floor MAC layer of package, second layer IP layer and the 3rd layer of TCP/UDP layer) of this package;
(3) as in step (2) when this gauge outfit content of this package with this at least one notes record in arbitrary notes picture recording symbol the time, newly-increased this mobile subscriber's agent address table of comparisons that is recorded to about this gauge outfit content of this package, this that wherein set this newly-increased record according to this source port number of this gauge outfit content sent source port number outside, and will increase this primary source port numbers that records newly and be set as 0;
(4) as in step (2) when the notes record at least one notes record of this gauge outfit content of this package and this conflict, assigned at random one is sent source port number outside and is sent this source port number of source port number and this package outside with this that upgrades that these notes record; And
(5) send this package to one external network interface.
By above-mentioned steps, if comparing with this mobile subscriber's agent address table of comparisons, the gauge outfit content of this package conforms to, can directly package outwards be sent.If do not conform to or conflict, can necessary information be updated in the middle of the gauge outfit of package and mobile subscriber's agent address table of comparisons that server end is safeguarded by server end.
Beneficial effect of the present invention is, method for cross-layer mapping of mobile user proxy addresses of the present invention, can make most package at direct transparent transmission when the agent apparatus, and need not carry out the action that any address in-place computation, Reseal and relaying pass on, in practical application its can be widely used on existing IPv4 network and and then improve the usefulness of mobile agent IPv4 network; Can make the direct transparent transmission of most package on mobile device, and do not need to carry out the action that any address in-place computation, Reseal and relaying pass on mobile device, and then improve the efficient of mobile subscriber's agent address mapping and parsing.
Can be by following detailed Description Of The Invention and appended graphic being further understood about the advantages and spirit of the present invention.
Description of drawings
Figure 1A is for according to passing on from inside to outside the method flow diagram of program in a specific embodiment of the present invention;
Figure 1B is for according to passing on from outside to inside the method flow diagram of program in a specific embodiment of the present invention;
Fig. 2 is according to the network architecture schematic diagram in a specific embodiment of the present invention;
Fig. 3 passes on the schematic diagram of program for act on behalf of package according to mobile subscriber in a specific embodiment of the present invention;
Fig. 4 is the comparison diagram of mobile subscriber's agent address table of comparisons in mobile subscriber's agent address table of comparisons and known techniques in a specific embodiment of the present invention.
Description of reference numerals:
The S100-S214-step; The AR-routing device; The CN-corresponding node; MN, MN1, MN2, MN3, MN4-mobile node; The PMA-mobile agent device; The Internet-world-wide web; The EXT-external network interface; The INT-internal network interface; LUTnew, the LUTpri-mobile subscriber agent address table of comparisons; LUTarp-address resolution protocol address translation table.
Embodiment
A specific embodiment of the present invention is a kind of method for cross-layer mapping of mobile user proxy addresses, and in order to passing on package, it includes and passes on from inside to outside program and the program of passing on from outside to inside.See also Figure 1A and Figure 1B.Figure 1A and Figure 1B illustrate respectively according to passing on from inside to outside program and the method flow diagram of program of passing on from outside to inside in a specific embodiment of the present invention.
In this embodiment, method for cross-layer mapping of mobile user proxy addresses adopts mobile subscriber's agent address table of comparisons, mobile subscriber's agent address table of comparisons comprises at least one notes record, each notes record can correspond to a mobile node (mobile node), for example mobile phone, notebook computer or other device for mobile communication.In this embodiment, each notes record can comprise a primary source port numbers, and send source port number, outside and come source MAC, a source IP addresses, an IP address, destination and a destination port numbers.
As shown in Figure 1A, pass on from inside to outside at first execution in step S100 of program, receive one first package from internal network interface.The first package herein has a gauge outfit content, and this gauge outfit content comprises the various information of relevant the first package.In this embodiment, the gauge outfit content of the first package comprises a source port number, and comes source MAC, a source IP addresses, an IP address, destination and a destination port numbers.
Then, execution in step S102 is according to the judgement of comparing of this gauge outfit content of this first package and this mobile subscriber's agent address table of comparisons.
Conform to as not finding, when namely the arbitrary notes picture recording in this gauge outfit content of this first package is recorded with these at least one notes accords with, execution in step S104, newly-increased this mobile subscriber's agent address table of comparisons that is recorded to about this gauge outfit content of this first package, this that wherein set this newly-increased record according to this source port number of this gauge outfit content sent source port number outside, and will increase this primary source port numbers that records newly and be set as 0.After completing above-mentioned setting, but execution in step S108 is sent to external network interface with this first package.
what need special instruction is, in this embodiment, step S104 is corresponding herein does not conform to and judges that this that refer to come when this of this first package that source MAC and arbitrary notes record comes source MAC, this source IP addresses of this source IP addresses of this first package and this notes record, the IP address, this destination of the IP address, this destination of this first package and this notes record, this of this source port number of this first package and this notes record sent source port number outside, when this primary source port numbers of this source port number of this first package and this notes record or this destination port numbers of this first package do not conform to this destination port numbers that these notes are recorded, this gauge outfit content that namely is judged to be this first package does not accord with this notes picture recording.
As conflict, namely record with the notes in this at least one notes record when this gauge outfit content of this first package and conflict, assigned at random one is sent source port number outside, this that send this outside source port number and insert in this mobile subscriber's agent address table of comparisons this notes record sent source port number outside, and and this send this source port number that source port number upgrades this first package outside.In another embodiment, also can be simultaneously with all the other gauge outfit content records of this package to this mobile subscriber's agent address table of comparisons.After completing above-mentioned setting, but also execution in step S108 is sent to external network interface with this first package.
what need special instruction is, the corresponding conflict judgement of step S106 herein refers to, when this first package come this notes record in source MAC and this mobile subscriber's agent address table of comparisons come source MAC not conform to the time, and the source IP addresses of the source IP addresses of this first package and this notes record, the IP address, destination of the IP address, destination of this first package and this notes record, the source port number of this first package and this notes record send source port number (the primary source port numbers is) outside at 0 o'clock, when the primary source port numbers (the primary source port numbers is not 0 o'clock) of the source port number of this first package and this notes record and the destination port numbers of this first package all conform to the destination port numbers that these notes are recorded, namely be judged to be to record with these notes when the gauge outfit content of this first package and conflict.
On the other hand, if the comparison of step S102 is judged to be conform to, but the present invention footpath is advanced into step S108, this first package is sent to external network interface.
Subsequently, get final product execution in step S110, wait for that next package arrives, and can get back to step S100 when arriving in order to next package automatically.Complete by this program of passing on from inside to outside of the present invention.
On the other hand, as shown in Figure 1B, pass on from outside to inside at first execution in step S200 of program in this embodiment, receive one second package from an external network interface, the second package herein can be similar with the framework of the first package.In this embodiment, the second package has the gauge outfit content, and the gauge outfit content can comprise a source port number, and come source MAC, a source IP addresses, an IP address, destination and a destination port numbers.
Then, execution in step S202 compares according to gauge outfit content and this mobile subscriber's agent address table of comparisons of this second package.
As do not conform to, when namely the arbitrary notes picture recording in this gauge outfit content of this second package is recorded with these at least one notes accorded with, execution in step S204 abandoned this second package, and responds an error messages.
What need pay special attention to is, step S204 is corresponding herein does not conform to this destination port numbers that judgement refers to this source port number of this source IP addresses, this second package of the IP address, this destination of this destination-address, this second package when this source IP addresses of this second package and arbitrary notes record and this notes record and this primary source port numbers that this notes are recorded or this second package when this destination port numbers that these notes are recorded does not conform to, and namely being judged to be uses videotape to record with these notes when this gauge outfit content of this second package accords with.
As when conforming to, namely when this gauge outfit content of this second package with should at least one notes record in arbitrary notes picture recording symbol the time, execution in step S206, judge whether this primary source port numbers that in this mobile subscriber's agent address table of comparisons, these notes are recorded is 0.
If the primary source port numbers through judging this notes record is 0, execution in step S208 record with these notes this send a destination port numbers in this gauge outfit content that source port number upgrades this second package outside.And can follow execution in step S212, send this second package to this internal network interface.
On the other hand, if the primary source port numbers through judging this notes record is not 0, execution in step S210, this primary source port numbers of recording with these notes is upgraded this destination port numbers of this gauge outfit content of this second package.And also can follow execution in step S212, send this second package to this internal network interface.
Subsequently, get final product execution in step S214, wait for that next package arrives, and can get back to step S200 when arriving in order to next package automatically.Complete by this program of passing on from outside to inside of the present invention.
Please refer to Fig. 2, Fig. 2 illustrates according to the network architecture schematic diagram in a specific embodiment of the present invention.Method for cross-layer mapping of mobile user proxy addresses of the present invention can pass through framework shown in Figure 2, guarantees the communication annexation between mobile node MN and corresponding node CN (being the destination).Mobile subscriber's agent address cross-layer function of the present invention can be carried out by the mobile agent device PMA in Fig. 2 (proxy mobile agent), and coordinate user agent's device to realize, user agent's device can comprise local user agent device (Home Agent, HA) and nonlocal user agent's device (Foreign Agent, FA), do not illustrate in Fig. 2.
As shown in Figure 2, mobile agent device PMA is the setting of cross-layer (Cross Layer) network equipment, be considered as the second layer (Layer2) network equipment on using, its mobile agent device PMA itself is connected between external network interface EXT and internal network interface INT, in order to the annexation of the different mobile node of correspondence (as the mobile node MN 1 in Fig. 2, MN2, MN3, MN4 etc.) with extraneous network.Mobile agent device PMA is connected to user agent's device with bridge mode (Bridge Mode) and executes the task, therefore user agent's device itself does not take any IP address, the default gateway of mobile agent device PMA (Default Gateway) also points to the routing device AR of network egress, and be connected to world-wide web Internet by routing device AR, and need not point to user agent's device.
User agent's device with function of the present invention can not replaced any IP address field, because mobile node MN has directly been used the public IP address of outside (legal), so do not use private IP address fully.because each main frame is all to reuse same source IP addresses, therefore internal network can't make the IP address to come as identification, all packages will change with Ethernet (Ethernet, IEEE 802.3) or 48 bit MAC Address of wireless network (Wireless LAN, IEEE 802.11) replace the IP address as unique RM, the starting point of this design is to consider known user agent's device, package to each process, all must check by tabling look-up its source IP and the replacement procedure of coming source port, and recomputate package and check code value (CheckSum), this all will expend a large amount of calculation resources, in the network of high-mechanic amount, may become the bottleneck of flow, user agent's device under framework of the present invention, the package of each stream process, still must be through the identical audit program of tabling look-up, but only have a small amount of package need to replace its source port number (through its probability of Mathematical Model Analysis between 1/1000-5/100), the source IP field needs to replace never, this part does not need to replace the package of IP gauge outfit content, do not need to recomputate package and check code value, do not need again the IP package to be packaged in the MAC package yet, so for user agent's device itself or router with user agent function, the calculation resources relative reduce that it expends, in the network of high-mechanic amount, user agent's device can obtain to be similar to the packet processing efficiency of interchanger (Switch), be difficult for becoming the bottleneck of flow.And due to the program that does not need through the primary address displacement, the package that mobile node MN sends namely can not obtained phase I enhancing efficiency of the present invention before mobile; And owing to not needing many programs through inspection and the address displacement of once tabling look-up, the package that mobile node MN sends, namely can directly deliver to corresponding node CN (being the destination of transmitting in the present embodiment) after movement, do not need for another example with in known PMIP4 framework, also must first send local user agent device HA back to and table look-up and check and the trunking application of address displacement, make enhancing efficiency of the present invention more remarkable.
as for this for optionally just replaced design of port numbers, it needs replaced opportunity, depend on internal network at two same time intraconnections of mobile node MN to same corresponding node CN of external network, and when using its same serve port (Service Port), its internal random is assigned comes source port, also just at the right time when identical (repetition), just must do the action of displacement to the rear person's that sets up the line the source port that comes, again assign a random idle port numbers that produces, and be recorded in mobile subscriber's agent address table of comparisons, corresponding for the package reduction of returning, be unlikely to pass on mapping address entanglement, the probability that this source port number collision (Source PortCollision) occurs, between every in theory two mobile node MN that are connected to simultaneously outside same corresponding node CN, only has 1/216 weak probability, but in fact can look the increase of this network user, or it frequently uses the behavior of certain particular host simultaneously and has the chance that significantly increases (to connect simultaneously specific well-known website, conflict can be more), but calculate in the upper limit that reaches 256 mobile node MN with the single network segment of internal network (Segment), (this is ideal value to estimate also to be no more than 1/256 chance, putting aside that all machines are all preset by same source port number opens the situation that begin to transmit), in other words, have 99% weak line session (Session) set up with its under whereabouts or the data packet that returns, need the executive address displacement not move, in the PMIP4 environment, do not need the relaying via local user agent device HA yet, and transmit with the pattern (Transparent mode) of direct transparent transmission, whole IP package is only through user agent's device of the present invention the time, changed the source MAC that comes in the MAC gauge outfit, the IP package is not changed fully.
See also Fig. 3, Fig. 3 illustrates and acts on behalf of package according to mobile subscriber in a specific embodiment of the present invention and pass on the schematic diagram of program.Please in the lump with reference to figure 2.when first package that sends from the mobile node MN of internal network MAC Address α (uses IP address A, externally network is also effective), after mobile subscriber's agent apparatus of the present invention, its package gauge outfit is not changed fully, directly be sent to destination host Y, same, the package that main frame is responded directly penetrates mobile subscriber's agent apparatus of the present invention and gets back to main frame α (A) also without displacement, when still maintenance activity of this session (Active), the main frame β (equally using the IP address A that repeats) that another internal network is arranged this moment, also to set up line with the main frame Y of external network, it uses the random source port number that produces to be a2, through after comparing record with mobile subscriber's agent address table of comparisons, can distinguish with the line of previous use source port number a1, therefore set up the second notes record, and this package directly is sent to destination host Y, equally must any displacement move, when attempting the 3rd session of foundation and external host Y from internal host γ equally, mobile subscriber of the present invention acts on behalf of and checks inner existing two notes records, find to conflict mutually with the first stroke record just at the right time, can't arrive correct main frame γ in the time of causing the package of the 3rd session to return, and the wrong main frame α of arrival, be head it off, the port numbers of conflict must be replaced into x1, could be when package returns identification according to this reduce and transfer to correct mapping main frame γ, this part and known mobile subscriber agency's address displacement action is similar, but to the IP address still not changing, but because source port number changes, so the IP gauge outfit of this part package checks that code value need to recomputate.
In design of mobile subscriber's agent apparatus of the present invention itself, must effectively allow the MAC Address of internal-external network mutually circulate, namely must realize having the ARP proxy on known to broadcast (Proxy ARP) mechanism in the present invention; Internal external network, all only have the inside and outside MAC Address of mobile subscriber's agent apparatus itself to exist, when so internal host is sought external host with the ARP broadcasting packages, when passing on through mobile subscriber's agent equipment, all need through the ARP proxy replacement procedure, source MAC α is replaced into the mobile subscriber and acts on behalf of external mac address ε in the future; When the package of external host (being corresponding node CN in Fig. 3) response is got back on internal network, need again with the source MAC that comes that represents external host in this package, be replaced by the mobile subscriber and act on behalf of internal mac address δ, and destination MAC Address ε is reduced to α, inquirer's main frame of former internal network like this will be with the internal mac address of mobile subscriber's agent equipment of the present invention, as the MAC Address of aerial lug target, carry out line; Need consider in addition, it is exactly the ARP broadcasting packages on internal network, need only do the above-mentioned action of passing on to external network, allow outside the considering of its mutual line unless have to allow between the internal network main frame, otherwise the ARP package that any mobile node MN is broadcasted, namely do not need to transfer on the mobile node MN and entity connection end (Physical Port) of other internal networks, detect the mistake of IP address repetition to avoid mobile node MN.
See also Fig. 4, Fig. 4 illustrates in a specific embodiment of the present invention the comparison diagram of mobile subscriber's agent address table of comparisons LUTpri in mobile subscriber's agent address table of comparisons LUTnew and known techniques.as shown in Figure 4, mobile subscriber's agent address table of comparisons LUTpri compared to known techniques can comprise primary source IP address, IP address, destination, the primary source port numbers, the destination port numbers, send source IP addresses outside and send the fields such as source port number outside, its length can be 18 bit groups (byte), mobile subscriber's agent address table of comparisons LUTnew of the present invention can comprise primary source IP address, come source MAC, IP address, destination, the primary source port numbers, destination port numbers and send the fields such as source port number outside, its length can be 22 bit groups (byte).In addition, in known techniques, mobile subscriber's agent address table of comparisons LUTpri need coordinate address resolution protocol (the Address Resolution Protocol in Fig. 4, ARP) address translation table LUTarp can normal operation, this address resolution protocol address translation table LUTarp meets general general address resolution protocol, its content can comprise primary source IP address and come the source MAC field, and its length can be 10 bit groups.Please in the lump with reference to figure 3.mobile subscriber's agent apparatus is in the process of displacement as previously mentioned, inside will one group of mobile subscriber's agent address table of comparisons of Dynamic Establishing, be called for short address translation table, its purpose is except allowing follow-up data packet follow consistent substitute mode, and for resolving the IP package that returns, foundation as interpretation counter-rotating permutation logic, so when package passes on from inside to outside, must first check session (Session) record that whether has this package affiliated in address translation table, follow the source port that comes that has before distributed replace and pass on if having, if after coming source port without one group of Random assignment, newly-increased this pen is recorded in address translation table, when package by outside when returning, equally will be by the audit program of address translation table, reply source port and the extremely previous original condition in IP address and pass on if having, if without refusing passing on of this package, and abandon (Drop), these are all the displacement actions that occurs in IP layer (Layer 3), when in fact package delivers to the network connectivity interface, still need process the problem of the 3rd layer (IP) and the second layer (MAC) binding (Binding), namely by address resolution protocol address translation table LUTarp and program, by the IP address finding corresponding MAC Address, after encapsulation, this package could correctly be sent to the destination, therefore known mobile subscriber's agent apparatus in the 3rd layer of running of network, package pass on and have the action of tabling look-up for twice in process at least.
mobile subscriber's agent apparatus of the present invention is in the process of passing on, the same will one group of mobile subscriber's agent apparatus cross-layer address translation table of Dynamic Establishing, be called for short the cross-layer address translation table, its purpose and effect are identical with known address translation table, but data structure is different, when package passes on from inside to outside, must check first whether the cross-layer address translation table has affiliated session (Session) record of this package, need to judge that it is existing conversation recording or the situation that clashes if having, if existing session is directly passed on, if the situation that clashes, one group of Random assignment is new send source port number outside after, newly-increased this pen is recorded in the cross-layer address translation table, when returning when the package ecto-entad, equally will be by the audit program of cross-layer address translation table, if have need according to its record content judge its before whether had through the displacement, if having reply to send source port number outside is the primary source port numbers, and to come source MAC be previous original condition and pass on, if pass on without refusing this package, and abandon (Drop), these are all to occur in the cross-layer displacement action of processing with MAC layer (Layer 2), when in fact package delivers to the network connectivity interface, namely need not process again the problem of the 3rd layer (IP) and the second layer (MAC) binding, can consider in design address resolution protocol address translation table LUTarp and cross-layer address translation table directly are integrated into one, as shown in Figure 4, the every notes record of known address translation table needs 18 byte to represent respectively source IP addresses (32 bit) at least, IP address, order ground (32 bit), local source port number (16 bit), order ground port numbers (16 bit), external source IP address (32 bit), external source port numbers (16 bit) is totally six fields, also need in addition the ARP address translation table to represent the correspondence of local ip address (32 bit) and MAC Address (48 bit).
On the other hand, with the design of cross-layer address translation table of the present invention, every notes record only needs 16 bytes to represent respectively also to come source MAC (48 bit), IP address, destination (32 bit), primary source port numbers (16 bit), destination port numbers (16 bit), send source port number (16 bit) totally five fields outside; Send outside under the situation that the source port number field do not clash in the most of the time is not need (can insert 0x00 represents) of using, the cross-layer address translation table passes on after directly finding MAC Address in addition, do not need again parsing and the encapsulation action of doing the second layer network address through the ARP address translation table, in fact the only parsing of responsible external network part of ARP address translation table needn't be processed internal network.Therefore, be it seems by data structure, the recall precision of cross-layer address translation table of the present invention, and the displacement efficiency of related impact can more known address translation table mode be all high.
In sum, the invention provides the quick cross-layer mapping of a kind of mobile subscriber's agent address and analytic method, make the direct transparent transmission of most package, and need not carry out the action that any address in-place computation, Reseal and relaying pass on, and then improve the efficient of mobile subscriber's agent address mapping and parsing.
The above description of this invention is illustrative, and nonrestrictive, and those skilled in the art is understood, and can carry out many modifications, variation or equivalence to it within spirit that claim limits and scope, but they will fall within the scope of protection of the present invention all.

Claims (9)

1. method for cross-layer mapping of mobile user proxy addresses, it is characterized in that, comprising one passes on from inside to outside program and and passes on from outside to inside program, this method for cross-layer mapping of mobile user proxy addresses adopts mobile subscriber's agent address table of comparisons and in order to pass on package, this mobile subscriber's agent address table of comparisons comprises at least one notes record, each notes record comprises a primary source port numbers and and sends source port number outside, and this passes on from inside to outside program and comprises the following step:
Step a1 receives one first package from an internal network interface, and a gauge outfit content of this first package comprises a source port number;
Step a2 compares according to this gauge outfit content and this mobile subscriber's agent address table of comparisons of this first package;
Step a3, as in step a2 when this gauge outfit content of this first package with this at least one notes record in arbitrary notes picture recording symbol the time, newly-increased this mobile subscriber's agent address table of comparisons that is recorded to about this gauge outfit content of this first package, this that wherein set this newly-increased record according to this source port number of this gauge outfit content sent source port number outside, and will increase this primary source port numbers that records newly and be set as 0;
Step a4, as in step a2 when the notes record at least one notes record of this gauge outfit content of this first package and this conflict, assigned at random one is sent source port number outside and is sent this source port number of source port number and this first package outside with this that upgrades that these notes record; And
Step a5 sends this first package to an external network interface, wherein:
This passes on from outside to inside program and comprises the following step:
Step b1 receives one second package from an external network interface, and a gauge outfit content of this second package comprises a destination port numbers;
Step b2 compares according to a gauge outfit content and this mobile subscriber's agent address table of comparisons of this second package;
Step b3 uses videotape to record as the arbitrary notes in this gauge outfit content of this second package is recorded with these at least one notes in step b2 and abandons this second package when according with, and responds an error messages; And
Step b4, as in step b2 when this gauge outfit content of this second package and arbitrary notes picture recording in should at least one notes record accord with, if this primary source port numbers of this notes record is 0, send this destination port numbers in this gauge outfit content that source port number upgrades this second package outside with this of this notes record, if and this primary source port numbers of this notes record is not 0, upgrade this destination port numbers of this gauge outfit content of this second package with this primary source port numbers of this notes record, and send this second package to this internal network interface.
2. method for cross-layer mapping of mobile user proxy addresses as claimed in claim 1, is characterized in that, this gauge outfit content of this first package further comprises to come source MAC, a source IP addresses, an IP address, destination and a destination port numbers.
3. method for cross-layer mapping of mobile user proxy addresses as claimed in claim 2, is characterized in that, each notes record further comprises to come source MAC, a source IP addresses, an IP address, destination and a destination port numbers.
4. method for cross-layer mapping of mobile user proxy addresses as claimed in claim 3, it is characterized in that, in step a2, this that comes source MAC and arbitrary notes record when this of this first package comes source MAC, this source IP addresses of this source IP addresses of this first package and this notes record, the IP address, this destination of the IP address, this destination of this first package and this notes record, this of this source port number of this first package and this notes record sent source port number outside, when this primary source port numbers of this source port number of this first package and this notes record or this destination port numbers of this first package do not conform to this destination port numbers that these notes are recorded, this gauge outfit content that namely is judged to be this first package does not accord with this notes picture recording.
5. method for cross-layer mapping of mobile user proxy addresses as claimed in claim 4, it is characterized in that, in step a2, this that comes source MAC and arbitrary notes record when this of this first package comes source MAC not conform to, and this source IP addresses of this source IP addresses of this first package and this notes record, the IP address, this destination of the IP address, this destination of this first package and this notes record, this of this source port number of this first package and this notes record sent source port number outside, when this primary source port numbers of this source port number of this first package and this notes record and this destination port numbers of this first package all conform to this destination port numbers that these notes are recorded, this gauge outfit content that namely is judged to be this first package is conflicted with this notes record.
6. method for cross-layer mapping of mobile user proxy addresses as claimed in claim 1, is characterized in that, this gauge outfit content of this second package further comprises to come source MAC, a source IP addresses, an IP address, destination and a destination port numbers.
7. method for cross-layer mapping of mobile user proxy addresses as claimed in claim 6, is characterized in that, each notes record further comprises to come source MAC, a source IP addresses, an IP address, destination and a destination port numbers.
8. method for cross-layer mapping of mobile user proxy addresses as claimed in claim 7, it is characterized in that, in step b2, this that comes source MAC and arbitrary notes record when this of this second package comes source MAC, this source IP addresses of this source IP addresses of this second package and this notes record, the IP address, this destination of the IP address, this destination of this second package and this notes record, this destination port numbers of this destination port numbers of this second package and this notes record and this source port number of this second package and these notes record this when sending one of source port number or this primary source port numbers outside and conforming to fully, namely be judged to be this gauge outfit content and this notes picture recording symbol of this second package.
9. method for cross-layer mapping of mobile user proxy addresses as claimed in claim 8, it is characterized in that, when this primary source port numbers of recording when this source port number and this notes of this source IP addresses of the IP address, this destination of this destination-address of this source IP addresses of this second package and arbitrary notes record, this second package and this notes record, this second package in step b2 or this destination port numbers of this second package did not conform to this destination port numbers that these notes are recorded, this gauge outfit content that namely is judged to be this second package was used videotape to record with these notes and is accorded with.
CN 200910157331 2009-07-24 2009-07-24 Method for cross-layer mapping of mobile user proxy addresses Expired - Fee Related CN101964971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910157331 CN101964971B (en) 2009-07-24 2009-07-24 Method for cross-layer mapping of mobile user proxy addresses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910157331 CN101964971B (en) 2009-07-24 2009-07-24 Method for cross-layer mapping of mobile user proxy addresses

Publications (2)

Publication Number Publication Date
CN101964971A CN101964971A (en) 2011-02-02
CN101964971B true CN101964971B (en) 2013-06-26

Family

ID=43517650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910157331 Expired - Fee Related CN101964971B (en) 2009-07-24 2009-07-24 Method for cross-layer mapping of mobile user proxy addresses

Country Status (1)

Country Link
CN (1) CN101964971B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483333A (en) * 2017-09-22 2017-12-15 烽火通信科技股份有限公司 A kind of universal across routed domain interworking unit and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783870A (en) * 2004-12-03 2006-06-07 赵江滨 Packet switching internet communication system using electroncic product code as address
CN1791101A (en) * 2004-12-17 2006-06-21 明基电通股份有限公司 Address conversion method and network system with network application layer through degree
CN1988495A (en) * 2005-12-20 2007-06-27 鸿富锦精密工业(深圳)有限公司 Network address switching device and its transfer sealed packet method
WO2009068045A1 (en) * 2007-11-26 2009-06-04 Telefonaktiebolaget Lm Ericsson (Publ) Technique for address resolution in a data transmission network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783870A (en) * 2004-12-03 2006-06-07 赵江滨 Packet switching internet communication system using electroncic product code as address
CN1791101A (en) * 2004-12-17 2006-06-21 明基电通股份有限公司 Address conversion method and network system with network application layer through degree
CN1988495A (en) * 2005-12-20 2007-06-27 鸿富锦精密工业(深圳)有限公司 Network address switching device and its transfer sealed packet method
WO2009068045A1 (en) * 2007-11-26 2009-06-04 Telefonaktiebolaget Lm Ericsson (Publ) Technique for address resolution in a data transmission network

Also Published As

Publication number Publication date
CN101964971A (en) 2011-02-02

Similar Documents

Publication Publication Date Title
US7486670B2 (en) Method for packet communication and computer program stored on computer readable medium
CN101218796B (en) Method, system and apparatus for load balancing of wireless switches to support layer 3 roaming in wireless local area networks
Savolainen et al. IPv6 addressing strategies for IoT
AU2004244296B2 (en) Arrangement for traversing an IPv4 network by IPv6 mobile nodes
US8804746B2 (en) Network based on identity identifier and location separation architecture backbone network, and network element thereof
CN100505739C (en) Method and system for low-overhead mobility management protocol in internet protocol layer
US8369357B2 (en) System and method for providing simultaneous handling of layer-2 and layer-3 mobility in an internet protocol network environment
US9438555B2 (en) Communicating with a distribution system via an uplink access point
Kim et al. A 6LoWPAN sensor node mobility scheme based on proxy mobile IPv6
US20030225900A1 (en) Mobile proxy apparatus and mobile communication method
CN101803329A (en) Detection of mobility functions implemented in a mobile node
WO2008094730A2 (en) Optimized mobile-ipv6 encapsulation for wireless networks
CN105191405A (en) IP address renewing for a wireless communications device roaming from a source AP to a target AP
CN101568915A (en) Method and apparatus for facilitating network mobility
Bechler et al. Mobility management for vehicular ad hoc networks
CN106255089A (en) A kind of method and apparatus of radio three layer roaming
Haseeb et al. Connectivity, interoperability and manageability challenges in internet of things
KR20080033735A (en) Method and system for constructing internet protocol address in a communication system
CN1770742B (en) System for managing mobile node in mobile network
CN101964971B (en) Method for cross-layer mapping of mobile user proxy addresses
US8990916B2 (en) System and method for supporting web authentication
TWI395446B (en) Cross-layer address mapping method for proxy mobile internet protocal
Vatn Long random wait times for getting a care-of address are a danger to mobile multimedia
US20190320363A1 (en) Method for realizing wireless network convergence
Wakikawa et al. The applicability of virtual interface for inter‐technology handoffs in Proxy Mobile IPv6

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: JIA WENKANG

Free format text: FORMER OWNER: CHEN YAOZONG

Effective date: 20130530

Owner name: CHEN YAOZONG

Free format text: FORMER OWNER: JIA WENKANG

Effective date: 20130530

C41 Transfer of patent application or patent right or utility model
C53 Correction of patent for invention or patent application
CB03 Change of inventor or designer information

Inventor after: Chen Yaozong

Inventor after: Jia Wenkang

Inventor before: Jia Wenkang

Inventor before: Chen Yaozong

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: JIA WENKANG CHEN YAOZONG TO: CHEN YAOZONG JIA WENKANG

TA01 Transfer of patent application right

Effective date of registration: 20130530

Address after: Taiwan County, Taipei, China

Applicant after: Chen Yaozong

Applicant after: Jia Wenkang

Address before: Hsinchu City, Taiwan, China

Applicant before: Jia Wenkang

Applicant before: Chen Yaozong

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130626

Termination date: 20180724