CN109951493A - A kind of network intercommunication method, device, equipment and storage medium - Google Patents
A kind of network intercommunication method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN109951493A CN109951493A CN201910247869.9A CN201910247869A CN109951493A CN 109951493 A CN109951493 A CN 109951493A CN 201910247869 A CN201910247869 A CN 201910247869A CN 109951493 A CN109951493 A CN 109951493A
- Authority
- CN
- China
- Prior art keywords
- address
- network
- target device
- network protocol
- response message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of network intercommunication methods, proxy gateway applied to target device, this method comprises: receiving the first access request of the destination service that client provides target device, the first network agreement that client uses is different from the second network protocol that target device uses;Network protocol conversion process is carried out to the first access request, is sent to target device;Receive the first response message that target device returns;Network protocol conversion process is carried out to the first response message, returns to client.Using technical solution provided by the embodiment of the present invention, the intercommunication of the network of different network protocol is realized, improve the utilization rate of the network equipment.The invention also discloses a kind of network interworking device, equipment and storage mediums, have relevant art effect.
Description
Technical field
The present invention relates to computer application technologies, more particularly to a kind of network intercommunication method, device, equipment and deposit
Storage media.
Background technique
With the fast development of Internet technology, network protocol has developed to IPv6 by IPv4.
IPv4 (Internet Protocol version 4, Internet protocol fourth edition) is first net used
Network agreement, and basic agreement in internet communication at present.It is connected mutually using IPv4 agreement mostly in internet at present
Resource-sharing is realized in communication.The addressing range of IPv4 only has 232A address, i.e., 4,300,000,000 address, has been assigned at present.
IPv6 (Internet Protocol version 6, Internet protocol sixth version) is used to by IETF design
Substitute the new IP agreement of one kind of existing IPv4 agreement.Thoroughly solves the not enough situation in the address IPv4, IPv6 addresses model
It is with 2128A address increases 2 than IPv4 address space96Power times, and some new characteristics are added and repair IPv4 design
Defect.
IETF (The Internet Engineering Task Force, Internet engineering task force) is one
The civil international body of large size of open property, summarizes network design relevant to Internet architecture and internet smooth operation
Person, network operator, investor and researcher.
Now, more and more network equipments access IPv6 network, how to realize the intercommunication of IPv6 network Yu IPv4 network,
It is current those skilled in the art technical problem urgently to be solved.
Summary of the invention
The object of the present invention is to provide a kind of network intercommunication method, device, equipment and storage mediums, to realize heterogeneous networks
The intercommunication of the network of agreement improves network equipment utilization rate.
In order to solve the above technical problems, the invention provides the following technical scheme:
A kind of network intercommunication method, the proxy gateway applied to target device, which comprises
The first access request of the destination service that client provides the target device is received, what the client used
First network agreement is different from the second network protocol that the target device uses;
Network protocol conversion process is carried out to first access request, is sent to the target device;
Receive the first response message that the target device returns;
Network protocol conversion process is carried out to first response message, returns to the client.
In a kind of specific embodiment of the invention, the source address of first access request is the ground of the client
Location, destination address are the address for following the first network agreement of the proxy gateway;It is described to first access request
Carry out network protocol conversion process, comprising:
By first access request by the first network protocol conversion be second network protocol;
The source address of first access request is converted to second network protocol of following of the proxy gateway
Address;
The destination address of first access request is converted to the address of the target device.
In a kind of specific embodiment of the invention, the source address of first response message is the target device
Address, destination address are the address for following second network protocol of the proxy gateway;It is described that first response is believed
Breath carries out network protocol conversion process, comprising:
First response message is converted into the first network agreement by second network protocol;
The source address of first response message is converted to the first network agreement of following of the proxy gateway
Address;
The destination address of first response message is converted to the address of the client.
In a kind of specific embodiment of the invention, in the destination service that the reception client provides target device
The first access request after, it is described to first access request carry out network protocol conversion process before, further includes:
Determine that the destination service whether there is;
If it is, executing described the step of carrying out network protocol conversion process to first access request.
In a kind of specific embodiment of the invention, further includes:
It detects according to setting time interval and is serviced present on the target device;
Based on service present on the target device, the service of itself agency is updated.
In a kind of specific embodiment of the invention, further includes:
Receive second access request of the target device to the server-side for using the first network agreement, described second
The source address of access request is the address of the target device, and destination address is that the second network protocol of the server-side maps ground
Location;
Second access request is converted into the first network agreement by second network protocol, and by described
The source address of two access requests is converted to the address for following the first network agreement of the proxy gateway, and described second is visited
Ask that the destination address of request is converted to the address of the server-side;
Second access request after conversion is sent to the server-side;
The second response message that the server-side returns is received, the source address of second response message is the server-side
Address, destination address be the proxy gateway the address for following the first network agreement;
It by the first network protocol conversion is second network protocol by second response message, and by described the
The source address of two response messages is converted to the address for following second network protocol of the proxy gateway, and described second is answered
The destination address for answering information is converted to the address of the target device;
Second response message after conversion is sent to the target device.
In a kind of specific embodiment of the invention, further includes:
Receive the domain name mapping result for the target device service domain name to be accessed that name server returns;
If the corresponding address of the service domain name follows the first network agreement, the institute of the proxy gateway is used
The corresponding address of service domain name described in the Address Proxy of the second network protocol is stated, updates DNS response, and return to the target device
Return the DNS response;
Receive third access request of the target device to the server-side for using the first network agreement, the third
The source address of access request is the address of the target device, and destination address follows second network for the proxy gateway
The address of agreement;
The third access request is converted into the first network agreement by second network protocol, and by described
The source address of three access requests is converted to the address for following the first network agreement of the proxy gateway, and the third is visited
Ask that the destination address of request is converted to the address of the server-side;The address of the server-side, which is that the service domain name is corresponding, abides by
Follow the address of the first network agreement;
The third access request after conversion is sent to the server-side;
The third response message that the server-side returns is received, the source address of the third response message is the server-side
Address, destination address be the proxy gateway the address for following the first network agreement;
It by the first network protocol conversion is second network protocol by the third response message, and by described the
The source address of three response messages is converted to the address for following second network protocol of the proxy gateway, and the third is answered
The destination address for answering information is converted to the address of the target device;
The third response message after conversion is sent to the target device.
In a kind of specific embodiment of the invention, the client is directed to what the reception name server returned
After the domain name mapping result for the service domain name to be accessed, further includes:
If the corresponding address of the service domain name follows second network protocol, the domain that will directly receive
Name parsing result return to the target device so that the target device directly to the corresponding server-side of the service domain name into
Row access.
A kind of network interworking device, applied to the proxy gateway of target device, described device includes:
Access request receiving module, for receiving the first access of the destination service that client provides the target device
Request, the first network agreement that the client uses are different from the second network protocol that the target device uses;
Access request converts sending module, for carrying out network protocol conversion process to first access request, sends
To the target device;
Response message receiving module, the first response message returned for receiving the target device;
Response message converts sending module, for carrying out network protocol conversion process to first response message, returns
To the client.
A kind of network interworking equipment is applied to proxy gateway, comprising:
Memory, for storing computer program;
Processor, when for executing the computer program the step of network intercommunication method described in realization any of the above-described.
A kind of computer readable storage medium is stored with computer program on the computer readable storage medium, described
The step of network intercommunication method described in any of the above-described is realized when computer program is executed by processor.
Using technical solution provided by the embodiment of the present invention, proxy gateway is receiving client to target device offer
Service access request when, which is subjected to agreement and address conversion, is transformed into the network of the second network protocol,
Then the access request after conversion is sent to target device, when receiving the response message of target device return, this is answered
It answers information and carries out corresponding agreement and address conversion, be transformed into the network of first network agreement, and the response after conversion is believed
Breath is sent to client.The intercommunication for realizing the network of different network protocol, does not need to be modified the service of target device, i.e.,
Respective service can be provided for client, improve the utilization rate of the network equipment.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of overall system structure for the service that proxy gateway Agent IP v4 equipment provides in the embodiment of the present invention
Figure;
Fig. 2 is a kind of implementation flow chart of network intercommunication method in the embodiment of the present invention;
Fig. 3 provides the process schematic of service as server-side for IPv4 equipment in the embodiment of the present invention;
Fig. 4 is a kind of process schematic that IPv4 equipment accesses IPv6 service as client in the embodiment of the present invention;
Fig. 5 is another process schematic that IPv4 equipment accesses IPv6 service as client in the embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of network interworking device in the embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of network interworking equipment in the embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Core of the invention is to provide a kind of network intercommunication method, and what this method can be applied to target device acts on behalf of net
It closes, the service that proxy gateway can be provided with proxy target equipment, the network protocol that target device uses can be IPv4, can also be with
For IPv6.
Fig. 1 show the overall system structure figure of the service of proxy gateway Agent IP v4 equipment offer, and IPv6 terminal passes through
Hub is connected to the internet IPv6, carries out IPv6 access, and IPv4 terminal is connected to the internet IPv4 by Hub, carries out IPv4 visit
It asks, IPv4 equipment can provide some services, such as Web service, authentication service, and IPv6 terminal can pass through proxy gateway pair
The service that IPv4 equipment provides accesses, and the service that IPv4 terminal then can directly provide IPv4 equipment accesses.
It should be noted that proxy gateway can be only fitted in target device, a server can also be configured alone on
On.
It is shown in Figure 2, it is a kind of implementation flow chart of network intercommunication method provided by the embodiment of the present invention, this method
It may comprise steps of:
S210: the first access request of the destination service that client provides target device is received.
The first network agreement that client uses is different from the second network protocol that target device uses.
The source address of first access request is the address of client, and destination address is the first network agreement of proxy gateway
Address.
In embodiments of the present invention, the address for following first network agreement can be set in proxy gateway in advance,
The address for following first network agreement of the proxy gateway can be a public network address, be also possible to a private address, only
The proxy gateway is connectable to by the address.
In practical applications, the demand that client may have the service provided target device to access, but because
The two network protocol is different, so client can not directly access to the service of target device.In this case, client
The address access target equipment for following first network agreement of proxy gateway can be used in end.
Proxy gateway can receive the first access request of the destination service that client provides target device.First visit
The source address for asking request is the address of client, and destination address is the address for following first network agreement of proxy gateway.
Destination service is any one available service of target device.
S220: network protocol conversion process is carried out to the first access request, is sent to target device.
After proxy gateway receives the first access request, agreement and address conversion, tool can be carried out to the first access request
Body, can be the second network protocol by first network protocol conversion by the first access request, by the source of the first access request
Location is converted to the address for following the second network protocol of proxy gateway, and the destination address of the first access request is converted to target and is set
Standby address.
One address for following the second network protocol, equally, the proxy gateway can be set in proxy gateway in advance
The address for following the second network protocol can be outer net address, or private address, as long as can be connected by the address
To the proxy gateway.
After carrying out agreement and address conversion to the first access request, it is equivalent to and the first access request has been transformed into the second net
In the network of network agreement, the first access request after conversion can be sent to target device.
S230: the first response message that target device returns is received.
The source address of first response message is the address of target device, and destination address follows the second network for proxy gateway
The address of agreement.
After target device receives the first access request, can invocation target service respond thereto, and to proxy gateway
Return to the first response message.The source address of first response message is the address of target device, and destination address is proxy gateway
The second network protocol address.
After proxy gateway receives the first response message, the operation of step S240 can be continued to execute.
S240: the destination address of the first access request is converted to the address of target device.
After proxy gateway receives the first response message, agreement and address conversion, tool can be carried out to the first response message
Body, the first response message can be converted into first network agreement by the second network protocol, by the source of the first response message
Location is converted to the address for following first network agreement of proxy gateway, and the destination address of the first response message is converted to client
Address.The first response message is transformed into the network of first network agreement in this way.
In practical applications, proxy gateway can save session information, in this way, leading to when receiving the first response message
Session information is crossed, can determine the first access request corresponding to the first response message.
It, can be by the first response message after conversion after proxy gateway carries out agreement and address conversion to the first response message
It is sent to client, to respond the first access request of client initiation.
Certainly, if the first network agreement that uses of client is identical as the second network protocol that target device uses,
The service that client can directly provide target device accesses, and target device directly can carry out response to the access.
Using method provided by the embodiment of the present invention, proxy gateway is in the clothes for receiving client and providing target device
When the access request of business, which is subjected to agreement and address conversion, is transformed into the network of the second network protocol, then
Access request after conversion is sent to target device, when receiving the response message of target device return, which is believed
Breath carries out corresponding agreement and address conversion, is transformed into the network of first network agreement, and the response message after conversion is sent out
Give client.The intercommunication for realizing the network of different network protocol, does not need to be modified the service of target device, Ji Kewei
Client provides respective service, improves the utilization rate of the network equipment.
In one embodiment of the invention, after step S210, before S220, this method can also include following step
It is rapid:
Determine that destination service whether there is;If so, thening follow the steps S220 and its following operation.
In practical applications, with business variation or other reasons, the service that target device provides can may also occur
Variation, for example, there is new service online, or the service having is offline etc..
So in embodiments of the present invention, proxy gateway is in the destination service for receiving client and providing target device
Access request when, can first determine that destination service whether there is.Determine whether the destination service of target device is in online
State.
If it is, continuing to execute the operation that step S220 carries out network protocol conversion process to the first access request, such as
Fruit is no, then can ignore first access request, or return to miscue information to client.In this way, can be quickly to
One access request makes a response, to reduce the waiting time of client.
In one embodiment of the invention, this method may also comprise the following steps::
It is serviced according to present on setting time interval detection target device;
Based on service present on target device, the service of itself agency is updated.
In embodiments of the present invention, proxy gateway can according to setting time interval to serviced present on target device into
Row detection can be updated the service of agency based on servicing present on target device.If it find that have new service,
Then can be with the active agency service, if it find that there is service offline, then the respective service of its agency is also offline.
In this way, whether proxy gateway when determining that destination service whether there is, can be deposited in the agency service according to itself
Determine that destination service whether there is in destination service, it is not necessary to search again into target device.Shorten the response time.
Certainly, proxy gateway can find and act on behalf of automatically for the service that target device provides, can also be by manual
Configuration mode is acted on behalf of.
For ease of understanding, by taking first network agreement is IPv6, the second network protocol is IPv4 as an example, again to the above process
It is illustrated, as shown in figure 3, including IPv4 client, IPv6 client, the proxy gateway of IPv4 equipment and IPv4 equipment,
In:
S31: the address IPv6 is preset on proxy gateway;
S32: proxy gateway finds the service enabled in IPv4 equipment automatically, and carries out service broker;
S33:IPv6 client sends IPv6 service request to IPv4 equipment, reaches proxy gateway;
S34: the request is transformed into IPv4 network by proxy gateway;
S35: the request after conversion is sent to IPv4 equipment by proxy gateway;
Response message is returned to proxy gateway by S36:IPv4 equipment;
S37: response message is transformed into IPv6 network by proxy gateway;
S38: the response message after conversion is sent to IPv6 client by proxy gateway;
S39:IPv4 client directly sends IPv4 request to IPv4 equipment, and IPv4 equipment is directly returned to IPv4 client
Corresponding response message.
In one embodiment of the invention, this method may also comprise the following steps::
Step 1: target device is received to the second access request of the server-side for using first network agreement, the second access
The source address of request is the address of target device, and destination address is the second network protocol mapping address of server-side.
In practical applications, it needs target device to can also be used as client according to business and accesses other server-sides, such as visit
Ask the server-side using first network agreement.
The the second network protocol mapping address for needing the server-side accessed can be configured in target device in advance.
When target device will access the server-side using first network agreement as client, can be sent out to proxy gateway
Corresponding second access request out, the source address of the second access request are the address of target device, and destination address is server-side
Second network protocol mapping address.
Proxy gateway can continue to execute the operation of step 2 when receiving the second access request.
Step 2: the second access request is converted into first network agreement by the second network protocol, and the second access is asked
The source address asked is converted to the address for following first network agreement of proxy gateway, and the destination address of the second access request is converted
For the address of server-side.
It can be pre-configured in proxy gateway and to follow first network agreement using the server-side of first network agreement
The mapping relations of address and the address for following the second network protocol.
After proxy gateway receives the second access request, the conversion of agreement and address can be carried out to the second access request,
Specifically, the second access request can be converted to first network agreement by the second network protocol, by the source of the second access request
Address conversion is the address for following first network agreement of proxy gateway, and the destination address of the second access request is converted to service
The address at end.The second access request is transformed into the network of first network agreement.The address of server-side is the server-side
The address for following first network agreement.
Step 3: the second access request after conversion is sent to server-side.
Step 4: receiving the second response message that server-side returns, and the source address of the second response message is the ground of server-side
Location, destination address are the address of the first network agreement of proxy gateway.
The second access request after conversion is sent to server-side, which can call respective service to second visit
It asks that request carries out response, returns to the second response message.The source address of second response message is the address of server-side, and destination address is
The address for following first network agreement of proxy gateway.After proxy gateway receives the second response message, step can be continued to execute
Rapid five operation.
Step 5: by the second response message by first network protocol conversion be the second network protocol, and by the second response believe
The source address of breath is converted to the address for following the second network protocol of proxy gateway, and the destination address of the second response message is converted
For the address of target device.
Step 6: the second response message after conversion is sent to target device.
After proxy gateway receives the second response message, the conversion of agreement and address can be carried out to the second response message,
By the second response message by first network protocol conversion be the second network protocol, the source address of the second response message is converted into generation
The destination address of second response message, is converted to the address of target device by the address for following the second network protocol for managing gateway.
The second response message is transformed into the network of the second network protocol.Then the second response message after conversion is sent to mesh
Marking device.Realize that target device access uses the purpose of the server-side of first network agreement.
For ease of understanding, by taking first network agreement is IPv6, the second network protocol is IPv4 as an example, again to the above process
It is illustrated, as shown in figure 4, including IPv4 server-side, IPv6 server-side, the proxy gateway of IPv4 equipment and IPv4 equipment,
In:
S41: presetting the address IPv6 and an address IPv4 on proxy gateway, and configuration of IP v6 service and
IPv4 services mapping relations;
S42: the IPv4 mapping address of server-side is configured in IPv4 equipment;
S43:IPv4 device request IPv6 service;
S44: the request is transformed into IPv6 network by proxy gateway;
S45: the request after conversion is sent to IPv6 server-side by proxy gateway;
Response message is returned to proxy gateway by S46:IPv6 server-side;
S47: response message is transformed into IPv4 network by proxy gateway;
S48: the response message after conversion is sent to IPv4 equipment by proxy gateway;
S49:IPv4 equipment directly sends IPv4 request to IPv4 server-side, and IPv4 server-side is directly returned to IPv4 equipment
Corresponding response message.
In one embodiment of the invention, this method may also comprise the following steps::
First step: the domain name mapping for the target device service domain name to be accessed that name server returns is received
As a result;
Second step: if the corresponding address of service domain name follows first network agreement, the of proxy gateway is used
The corresponding address of Address Proxy service domain name of two network protocols, updates DNS response, and return to DNS response to target device;
Third step: third access request of the target device to the server-side for using first network agreement, third are received
The source address of access request is the address of target device, and destination address is the address for following the second network protocol of proxy gateway;
Four steps: third access request is converted into first network agreement by the second network protocol, and third is accessed
The source address of request is converted to the address for following first network agreement of proxy gateway, and the destination address of third access request is turned
It is changed to the address of server-side;The address of server-side is the corresponding address for following first network agreement of service domain name;
5th step: the third access request after conversion is sent to server-side;
6th step: receiving the third response message that server-side returns, and the source address of third response message is server-side
Address, destination address be proxy gateway the address for following first network agreement;
7th step: by first network protocol conversion it is the second network protocol by third response message, and third is answered
The source address for answering information is converted to the address for following the second network protocol of proxy gateway, by the destination address of third response message
Be converted to the address of target device;
8th step: the third response message after conversion is sent to target device.
It is illustrated for ease of description, above-mentioned eight steps are combined.
In practical applications, the domain name for needing the server-side accessed, the server-side can be configured in target device in advance
It can also be able to be the server-side for using the second network protocol for using the server-side of first network agreement.
When target device uses the domain name access server-side of server-side as client, first to name server, i.e. DNS
Server sends the domain name mapping request for the service domain name to be accessed, and the domain name mapping result that dns server returns reaches agency
Gateway.
After proxy gateway receives the domain name mapping result of dns server return, if it is determined that service domain name is correspondingly
Location follows first network agreement, then using the Address Proxy for following the second network protocol of proxy gateway, the service domain name is corresponding
Address updates DNS response, and DNS response is returned to target device.Meanwhile proxy gateway can save corresponding address and reflect
Penetrate relationship.
In this case, target device knows that the server-side to be accessed is the server-side using first network agreement, needs
Proxy gateway proxy access can be issued to proxy gateway accordingly in third access request, the source address of third access request
For the address of target device, destination address is the address for following the second network protocol of proxy gateway.
Proxy gateway can carry out agreement to third access request and address turns when receiving third access request
It changes, i.e., is transformed into third access request in the network of first network agreement.Third access request after conversion is sent to clothes
Business end, the server-side can call respective service to carry out response to the third access request, return to third response message.Act on behalf of net
After pass receives third response message, the conversion of agreement and address can be carried out to third response message, by third response message
It is transformed into the network of the second network protocol.Then the third response message after conversion is sent to target device.Realize target
Equipment access uses the purpose of the server-side of first network agreement.
In a kind of specific embodiment of the invention, proxy gateway is in the domain name mapping for receiving dns server return
As a result after, if the corresponding address of service domain name follows the second network protocol, the domain name mapping that will can directly receive
As a result target device is returned to as DNS response, so that target device directly accesses to the corresponding server-side of service domain name.
For ease of understanding, by taking first network agreement is IPv6, the second network protocol is IPv4 as an example, again to the above process
Be illustrated, as shown in figure 5, include dns server, IPv4 server-side, IPv6 server-side, IPv4 equipment proxy gateway and
IPv4 equipment, in which:
S51: the address IPv6 and an address IPv4 are preset on proxy gateway, and configures service domain name;
S52: the configuration service domain name in IPv4 equipment;
S53:IPv4 equipment sends domain name analysis request to dns server;
The parsing response that S54:DNS server returns reaches proxy gateway, and proxy gateway determines that it is the address IPv6, then makes
With IPv4 Address Proxy, and DNS response is returned into IPv4 equipment;
Service request is transformed into IPv6 network by S55:IPv4 device request IPv6 service, proxy gateway, and will be after conversion
Service request be sent to IPv6 server-side;
Response message is returned to proxy gateway by S56:IPv6 server-side;
S57: response message is transformed into IPv4 network by proxy gateway;
S58: the response message after conversion is sent to IPv4 equipment by proxy gateway;
The parsing response that S59:DNS server returns reaches proxy gateway, and proxy gateway determines that it is the address IPv4, then directly
Connect put it is logical, make its reach IPv4 equipment;IPv4 equipment directly to IPv4 server-side send IPv4 request, IPv4 server-side directly to
IPv4 equipment returns to corresponding response message.
It should be noted that above-mentioned some examples are all with first network agreement is IPv6, the second network protocol is
The explanation carried out for IPv4 still still fits the scene that first network agreement is IPv4, the second network protocol is IPv6
With repeating no more.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of network interworking devices, are applied to mesh
The proxy gateway of marking device, a kind of network interworking device described below can be mutual with a kind of above-described network intercommunication method
To should refer to.
Shown in Figure 6, which comprises the following modules:
Access request receiving module 610, for receiving the first access of the destination service that client provides target device
Request, the first network agreement that client uses are different from the second network protocol that target device uses;
Access request converts sending module 620, for carrying out network protocol conversion process to the first access request, is sent to
Target device;
Response message receiving module 630, for receiving the first response message of target device return;
Response message converts sending module 640, for carrying out network protocol conversion process to the first response message, returns to
Client.
In a kind of specific embodiment of the invention, the source address of the first access request is the address of client, purpose
Address is the address for following first network agreement of proxy gateway;Access request converts sending module 620, is specifically used for:
By the first access request by first network protocol conversion be the second network protocol;
The source address of first access request is converted to the address for following the second network protocol of proxy gateway;
The destination address of first access request is converted to the address of target device.
In a kind of specific embodiment of the invention, the source address of the first response message is the address of target device, mesh
Address be proxy gateway the address for following the second network protocol;Response message converts sending module 640, is specifically used for:
First response message is converted into first network agreement by the second network protocol;
The source address of first response message is converted to the address for following first network agreement of proxy gateway;
The destination address of first response message is converted to the address of client.
In a kind of specific embodiment of the invention, further includes that there are determining modules for service, is used for:
After the first access request for receiving the destination service that client provides target device, to the first access request
Before carrying out network protocol conversion process, determine that destination service whether there is;
If it is, triggering access request converts sending module 620.
In a kind of specific embodiment of the invention, further includes service update module, is used for:
It is serviced according to present on setting time interval detection target device;
Based on service present on target device, the service of itself agency is updated.
In a kind of specific embodiment of the invention,
Access request receiving module 610 is also used to receive target device to the of the server-side for using first network agreement
Two access requests, the source address of the second access request are the address of target device, and destination address is that the second network of server-side is assisted
Discuss mapping address;
Access request converts sending module 620, is also used to the second access request being converted to first by the second network protocol
Network protocol, and the source address of the second access request is converted to the address for following first network agreement of proxy gateway, by
The destination address of two access requests is converted to the address of server-side;The second access request after conversion is sent to server-side;
Response message receiving module 630 is also used to receive the second response message of server-side return, the second response message
Source address is the address of server-side, and destination address is the address for following first network agreement of proxy gateway;
Response message converts sending module 640, is also used to the second response message be second by first network protocol conversion
Network protocol, and the source address of the second response message is converted to the address for following the second network protocol of proxy gateway, by
The destination address of two response messages is converted to the address of target device;The second response message after conversion is sent to target to set
It is standby.
In a kind of specific embodiment of the invention, further includes:
DNS response update module, for receive name server return for the target device service domain name to be accessed
Domain name mapping result;If the corresponding address of service domain name follows first network agreement, the second net of proxy gateway is used
The corresponding address of Address Proxy service domain name of network agreement, updates DNS response, and return to DNS response to target device;
Access request receiving module 610 is also used to receive target device to the of the server-side for using first network agreement
Three access requests, the source address of third access request are the address of target device, and destination address follows second for proxy gateway
The address of network protocol;
Access request converts sending module 620, is also used to third access request being converted to first by the second network protocol
Network protocol, and the source address of third access request is converted to the address for following first network agreement of proxy gateway, by
The destination address of three access requests is converted to the address of server-side;To service, domain name is corresponding to follow the first net for the address of server-side
The address of network agreement;Third access request after conversion is sent to server-side;
Response message receiving module 630 is also used to receive the third response message of server-side return, third response message
Source address is the address of server-side, and destination address is the address for following first network agreement of proxy gateway;
Response message converts sending module 640, is also used to third response message be second by first network protocol conversion
Network protocol, and the source address of third response message is converted to the address for following the second network protocol of proxy gateway, by
The destination address of three response messages is converted to the address of target device;Third response message after conversion is sent to target to set
It is standby.
In a kind of specific embodiment of the invention, DNS response update module is also used to:
After receiving the domain name mapping result for the client service domain name to be accessed that name server returns, such as
The corresponding address of fruit service domain name follows the second network protocol, then the domain name mapping result received is directly returned to target and set
It is standby, so that target device directly accesses to the corresponding server-side of service domain name.
Using device provided by the embodiment of the present invention, proxy gateway is in the clothes for receiving client and providing target device
When the access request of business, which is subjected to agreement and address conversion, is transformed into the network of the second network protocol, then
Access request after conversion is sent to target device, when receiving the response message of target device return, which is believed
Breath carries out corresponding agreement and address conversion, is transformed into the network of first network agreement, and the response message after conversion is sent out
Give client.The intercommunication for realizing the network of different network protocol, does not need to be modified the service of target device, Ji Kewei
Client provides respective service, improves the utilization rate of the network equipment.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of network interworking equipment, are applied to generation
Gateway is managed, as shown in fig. 7, comprises:
Memory 710, for storing computer program;
Processor 720, the step of above-mentioned network intercommunication method is realized when for executing computer program.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of computer readable storage medium, meters
It is stored with computer program on calculation machine readable storage medium storing program for executing, above-mentioned network interworking side is realized when computer program is executed by processor
The step of method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other
The difference of embodiment, same or similar part may refer to each other between each embodiment.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Used herein a specific example illustrates the principle and implementation of the invention, and above embodiments are said
It is bright to be merely used to help understand technical solution of the present invention and its core concept.It should be pointed out that for the common of the art
, without departing from the principle of the present invention, can be with several improvements and modifications are made to the present invention for technical staff, these
Improvement and modification are also fallen within the protection scope of the claims of the present invention.
Claims (11)
1. a kind of network intercommunication method, which is characterized in that the proxy gateway applied to target device, which comprises
Receive the first access request of destination service that client provides the target device, the client use first
Network protocol is different from the second network protocol that the target device uses;
Network protocol conversion process is carried out to first access request, is sent to the target device;
Receive the first response message that the target device returns;
Network protocol conversion process is carried out to first response message, returns to the client.
2. the method according to claim 1, wherein the source address of first access request is the client
Address, destination address be the proxy gateway the address for following the first network agreement;It is described to access described first
Request carries out network protocol conversion process, comprising:
By first access request by the first network protocol conversion be second network protocol;
The source address of first access request is converted to the address for following second network protocol of the proxy gateway;
The destination address of first access request is converted to the address of the target device.
3. the method according to claim 1, wherein the source address of first response message is that the target is set
Standby address, destination address are the address for following second network protocol of the proxy gateway;It is described to answer described first
It answers information and carries out network protocol conversion process, comprising:
First response message is converted into the first network agreement by second network protocol;
The source address of first response message is converted to the address for following the first network agreement of the proxy gateway;
The destination address of first response message is converted to the address of the client.
4. the method according to claim 1, wherein the target provided in the reception client target device
After first access request of service, before the progress network protocol conversion process to first access request, further includes:
Determine that the destination service whether there is;
If it is, executing described the step of carrying out network protocol conversion process to first access request.
5. the method according to claim 1, wherein further include:
It detects according to setting time interval and is serviced present on the target device;
Based on service present on the target device, the service of itself agency is updated.
6. according to claim 1 to described in any item methods among 5, which is characterized in that further include:
Receive second access request of the target device to the server-side for using the first network agreement, second access
The source address of request is the address of the target device, and destination address is the second network protocol mapping address of the server-side;
Second access request is converted into the first network agreement by second network protocol, and described second is visited
It asks that the source address of request is converted to the address for following the first network agreement of the proxy gateway, second access is asked
The destination address asked is converted to the address of the server-side;
Second access request after conversion is sent to the server-side;
The second response message that the server-side returns is received, the source address of second response message is the ground of the server-side
Location, destination address are the address for following the first network agreement of the proxy gateway;
By the first network protocol conversion it is second network protocol by second response message, and described second is answered
The source address for answering information is converted to the address for following second network protocol of the proxy gateway, and second response is believed
The destination address of breath is converted to the address of the target device;
Second response message after conversion is sent to the target device.
7. according to claim 1 to described in any item methods among 5, which is characterized in that further include:
Receive the domain name mapping result for the target device service domain name to be accessed that name server returns;
If the corresponding address of the service domain name follows the first network agreement, described the of the proxy gateway is used
The corresponding address of service domain name described in the Address Proxy of two network protocols updates DNS response, and returns to institute to the target device
State DNS response;
Receive third access request of the target device to the server-side for using the first network agreement, the third access
The source address of request is the address of the target device, and destination address follows second network protocol for the proxy gateway
Address;
The third access request is converted into the first network agreement by second network protocol, and the third is visited
It asks that the source address of request is converted to the address for following the first network agreement of the proxy gateway, third access is asked
The destination address asked is converted to the address of the server-side;The address of the server-side follows institute for the service domain name is corresponding
State the address of first network agreement;
The third access request after conversion is sent to the server-side;
The third response message that the server-side returns is received, the source address of the third response message is the ground of the server-side
Location, destination address are the address for following the first network agreement of the proxy gateway;
By the first network protocol conversion it is second network protocol by the third response message, and the third is answered
The source address for answering information is converted to the address for following second network protocol of the proxy gateway, and the third response is believed
The destination address of breath is converted to the address of the target device;
The third response message after conversion is sent to the target device.
8. the method according to the description of claim 7 is characterized in that being directed to the visitor what the reception name server returned
After the domain name mapping result of the family end service domain name to be accessed, further includes:
If the corresponding address of the service domain name follows second network protocol, the domain name solution that will directly receive
Analysis result returns to the target device, so that the target device directly visits the corresponding server-side of the service domain name
It asks.
9. a kind of network interworking device, which is characterized in that applied to the proxy gateway of target device, described device includes:
Access request receiving module asks the first access of the destination service that the target device provides for receiving client
It asks, the first network agreement that the client uses is different from the second network protocol that the target device uses;
Access request converts sending module, for carrying out network protocol conversion process to first access request, is sent to institute
State target device;
Response message receiving module, the first response message returned for receiving the target device;
Response message converts sending module, for carrying out network protocol conversion process to first response message, returns to institute
State client.
10. a kind of network interworking equipment, which is characterized in that be applied to proxy gateway, comprising:
Memory, for storing computer program;
Processor, realizing the network intercommunication method as described in any one of claim 1 to 8 when for executing the computer program
Step.
11. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the step of the network intercommunication method as described in any one of claim 1 to 8 when the computer program is executed by processor
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910247869.9A CN109951493B (en) | 2019-03-29 | 2019-03-29 | Network intercommunication method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910247869.9A CN109951493B (en) | 2019-03-29 | 2019-03-29 | Network intercommunication method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109951493A true CN109951493A (en) | 2019-06-28 |
CN109951493B CN109951493B (en) | 2021-10-22 |
Family
ID=67012895
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910247869.9A Active CN109951493B (en) | 2019-03-29 | 2019-03-29 | Network intercommunication method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109951493B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110677512A (en) * | 2019-09-30 | 2020-01-10 | 新华三信息安全技术有限公司 | Address resolution method and device |
CN111565237A (en) * | 2020-07-15 | 2020-08-21 | 腾讯科技(深圳)有限公司 | Network parameter determination method and device, computer equipment and storage medium |
WO2021102694A1 (en) * | 2019-11-26 | 2021-06-03 | Oppo广东移动通信有限公司 | Ble mesh device access method and apparatus, device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222495A (en) * | 2008-01-24 | 2008-07-16 | 中兴通讯股份有限公司 | Method and router for IPv4 network host access to IPv6 network host |
CN105939316A (en) * | 2015-10-26 | 2016-09-14 | 杭州迪普科技有限公司 | Message forwarding method and device |
CN109120739A (en) * | 2018-08-24 | 2019-01-01 | 下代互联网重大应用技术(北京)工程研究中心有限公司 | A kind of method, equipment, system and the medium of the address IPv6 access IPv4 resource |
CN109451097A (en) * | 2019-01-02 | 2019-03-08 | 北京宏图佳都通信设备有限公司 | IPv4/IPv6 address conversion system |
EP2993868B1 (en) * | 2014-09-08 | 2019-07-31 | Cisco Technology, Inc. | System and method for internet protocol version-based multiple access point name support in a network environment |
-
2019
- 2019-03-29 CN CN201910247869.9A patent/CN109951493B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222495A (en) * | 2008-01-24 | 2008-07-16 | 中兴通讯股份有限公司 | Method and router for IPv4 network host access to IPv6 network host |
EP2993868B1 (en) * | 2014-09-08 | 2019-07-31 | Cisco Technology, Inc. | System and method for internet protocol version-based multiple access point name support in a network environment |
CN105939316A (en) * | 2015-10-26 | 2016-09-14 | 杭州迪普科技有限公司 | Message forwarding method and device |
CN109120739A (en) * | 2018-08-24 | 2019-01-01 | 下代互联网重大应用技术(北京)工程研究中心有限公司 | A kind of method, equipment, system and the medium of the address IPv6 access IPv4 resource |
CN109451097A (en) * | 2019-01-02 | 2019-03-08 | 北京宏图佳都通信设备有限公司 | IPv4/IPv6 address conversion system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110677512A (en) * | 2019-09-30 | 2020-01-10 | 新华三信息安全技术有限公司 | Address resolution method and device |
CN110677512B (en) * | 2019-09-30 | 2022-04-22 | 新华三信息安全技术有限公司 | Address resolution method and device |
WO2021102694A1 (en) * | 2019-11-26 | 2021-06-03 | Oppo广东移动通信有限公司 | Ble mesh device access method and apparatus, device and storage medium |
CN113994649A (en) * | 2019-11-26 | 2022-01-28 | Oppo广东移动通信有限公司 | Method, device, equipment and storage medium for accessing BLE Mesh equipment |
CN111565237A (en) * | 2020-07-15 | 2020-08-21 | 腾讯科技(深圳)有限公司 | Network parameter determination method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109951493B (en) | 2021-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8250184B2 (en) | System, network entities and computer programs for configuration management of a dynamic host configuration protocol framework | |
CN102893556B (en) | Method, system and equipment for source peer-to-peer Diameter based on capacity load Sharing | |
CN102447748B (en) | Method, equipment and system for allocating outer Internet protocol IP addresses during network address translation (NAT) | |
CN108322506A (en) | A kind of methods, devices and systems of internet of things equipment access network | |
US20120324063A1 (en) | Method, network device, and system for automatically configuring network device in ipv6 network | |
US8161135B2 (en) | Device identification number based name service | |
CN110071984A (en) | A kind of network identity mapping method and system and terminal, mark gateway | |
JP2003244184A (en) | Domain name managing method and apparatus suited thereto | |
CN105245629B (en) | Host communication method based on DHCP and device | |
CN109951493A (en) | A kind of network intercommunication method, device, equipment and storage medium | |
JP2003198585A (en) | Setting information assigning method for external network connection | |
CN109413640A (en) | Session information querying method, network element and computer storage medium | |
CN104969515B (en) | Handle the method and gateway of DNS request | |
CN104247362A (en) | Method, device, network entity and computer program product for providing an ip service application | |
CN109040243B (en) | Message processing method and device | |
CN112637332B (en) | Service registration discovery method and system | |
EP2636182A1 (en) | Network nodes that establish sessions using existing connections identified in a central database | |
US9749362B2 (en) | Method, device, and system for obtaining address of SIP registration server | |
JP2003198583A (en) | Setting information assignment method for external network connection | |
CN101552802A (en) | Information processing method, gateway and network system | |
CN104106254A (en) | Methods and systems for enabling NAT traversal | |
CN102316086B (en) | The trunking method of business datum and relay node | |
CN107360095B (en) | Method for realizing port forwarding in router based on client host name | |
US10631145B1 (en) | Dynamic provision of application related sponsored data connectivity | |
CN112333273A (en) | Method and system for forwarding access request |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |