CN105323310B - Network communication method, equipment and network attached storage equipment - Google Patents
Network communication method, equipment and network attached storage equipment Download PDFInfo
- Publication number
- CN105323310B CN105323310B CN201510643804.8A CN201510643804A CN105323310B CN 105323310 B CN105323310 B CN 105323310B CN 201510643804 A CN201510643804 A CN 201510643804A CN 105323310 B CN105323310 B CN 105323310B
- Authority
- CN
- China
- Prior art keywords
- agent
- communication party
- protocol
- agreement
- access request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
Abstract
The invention discloses a kind of network communication methods, including:The tagged first agent of tool of first communication party and second communication party's establishes P2P connections with the second agent equally identified;The access request based on the first agreement for the first application for coming from first communication party is converted into the access request based on second protocol;Access request based on second protocol is sent to the second agent of second communication party by the first agent of first communication party;The second agent of second communication party receives the access request based on second protocol;The access request based on second protocol for the second agent for coming from second communication party is converted into the access request based on third agreement;The second application of second communication party receives the access request based on third agreement, and responds the access request based on third agreement and send the access content based on third agreement.The present invention passes through the mutual conversion to the access data based on different agreement so that the transport services based on different agreement can use under P2P connections.
Description
Technical field
The present invention relates to the communication technologys, more particularly to a kind of network communication method, equipment and network attached storage equipment.
Background technology
P2P (peer to peer, peer-to-peer network) technology makes full use of the ability of each computer in network, mutually
Service is provided.Every computer can serve as the requestor of network service and the request of other computers makes a response, and provide
Resource and service.
P2P connections use udp protocol, the servers such as HTTP, FTP to be all based on Transmission Control Protocol, can not be directly in P2P connections
Upper operation, thus the services such as HTTP, FTP can not be realized in P2P connections.
Invention content
The invention mainly solves the technical problem of providing a kind of network communication method, equipment and network attached storages to set
It is standby, the transport services based on different agreement can be realized in P2P connections.
In order to solve the above technical problems, one aspect of the present invention is:A kind of network communication method is provided, is wrapped
It includes:The tagged first agent of tool of first communication party and second communication party's establishes P2P with the second agent equally identified
Connection;The access request based on the first agreement for the first application for coming from first communication party is converted to based on second protocol
Access request;Access request based on second protocol is sent to the second generation of second communication party by the first agent of first communication party
Reason;The second agent of second communication party receives the access request based on second protocol;The second generation of second communication party will be come from
The access request based on second protocol of reason is converted to the access request based on third agreement;The second application of second communication party connects
The access request based on third agreement is received, and responds the access request based on third agreement and sends in the access based on third agreement
Hold;The access Content Transformation based on third agreement that the second application of second communication party will be come from is the visit based on second protocol
Ask content;Access content based on second protocol is issued the first agent of first communication party by the second agent of second communication party;
The first agent of first communication party receives the access content based on second protocol;It will come from the first agent's of first communication party
Access Content Transformation based on second protocol is the access content based on the first agreement;First application of first communication party receives base
In the access content of the first agreement;Wherein first agent is independently of the first application, and second agent is independently of the second application.
Wherein, the access request based on the first agreement by the first application for coming from first communication party is converted to based on the
The step of access request of two agreements includes:Access request based on the first agreement is issued the by the first application of first communication party
The one first loopback port of one communication party;The third of first communication party is described based on the first association using being obtained from the first loopback port
The access request of view is simultaneously converted to the access request based on second protocol, and the access request based on second protocol is issued first
The first agent of communication party;
Wherein, the access Content Transformation based on second protocol that will come from the first agent of first communication party is based on the
The step of access content of one agreement includes:Access content based on second protocol is issued by the first agent of first communication party
Access Content Transformation based on second protocol is in the access based on the first agreement by the third application of one communication party, third application
Hold and issue another first loopback port of first communication party;
Wherein, the first of first communication party includes using the step of receiving the access content based on the first agreement:First is logical
First application of letter side receives the access content based on the first agreement from another first loopback port of first communication party.
Wherein, the second agent of second communication party by the access mode of second communication party and access second communication party when first
One first loopback port that communication party uses, another first loopback port binding, and by the access side of the second communication party of binding
Formula and the first loopback port, another first loopback port are sent to by managing the server of first communication party and second communication party
The first agent of first communication party.
Wherein, the third application integration of first communication party is in the first agent of first communication party.
Wherein, the first agreement is Transmission Control Protocol, and second protocol is udp protocol.
Wherein, third agreement is Transmission Control Protocol.
In order to solve the above technical problems, another technical solution used in the present invention is:A kind of network communication method is provided,
Including:The tagged first agent of tool of first communication party and being established with the second agent equally identified for second communication party
P2P connections;The access request based on the first agreement for the first application for coming from first communication party is converted to based on the second association
The access request of view;Access request based on second protocol is sent to the of second communication party by the first agent of first communication party
Two agencies;So that the second agent of second communication party receives the access request based on second protocol;Wherein first agent is independent
In the first application.
Wherein, first communication party first agent receive sent from the second agent of second communication party based on second protocol
Access content;The access Content Transformation based on second protocol that the first agent of first communication party will be come from is based on first
The access content of agreement;First application of first communication party receives the access content based on the first agreement.
Wherein, the first agreement is Transmission Control Protocol, and second protocol is udp protocol.
In order to solve the above technical problems, another technical solution used in the present invention is:A kind of network communication method is provided,
Including:The tagged first agent of tool of first communication party and being established with the second agent equally identified for second communication party
P2P connections;The second agent of second communication party receives the visit based on second protocol sent from the first agent of first communication party
Ask request;The access request based on second protocol for the second agent for coming from second communication party is converted to based on third agreement
Access request;The second application of second communication party receives the access request based on third agreement;Wherein second agent independently of
Second application.
Wherein, the second access request of the application response based on third agreement of second communication party is sent based on third agreement
Access content;The access Content Transformation based on third agreement by the second application for coming from second communication party is based on the second association
The access content of view;Access content based on second protocol is issued the first of first communication party by the second agent of second communication party
Agency.
Wherein, second protocol is udp protocol, and third agreement is Transmission Control Protocol.
In order to solve the above technical problems, another technical solution used in the present invention is:A kind of equipment is provided, including:Place
Manage device and network communications circuits;Processor has tagged first agent for running, to pass through network communications circuits and opposite end
The second agent equally identified between establish P2P connections;Processor is additionally operable to the first application of operation, to pass through network communication electricity
Road sends the access request based on the first agreement;Processor is additionally operable to operation third application, will come from first communication party
The access request based on the first agreement of first application is converted to the access request based on second protocol, and will by first agent
Access request based on second protocol is exported to network communications circuits;Network communications circuits are by the access request based on second protocol
The second agent of opposite end is issued, so that the second agent of opposite end receives the access request based on second protocol;The wherein first generation
Reason is independently of the first application.
In order to solve the above technical problems, another technical solution used in the present invention is:A kind of equipment is provided, including:Place
Manage device and network communications circuits;Processor has tagged second agent for running, with by the network communications circuits with
Opposite end with establishing P2P connections between the first agent equally identified, and received by network communications circuits from opposite end the
The access request based on second protocol that generation haircut comes;Processor is additionally operable to the 4th application of operation, will come from second and lead to
The access request based on second protocol of the second agent of letter side is converted to the access request based on third agreement;Processor is also used
In the second application of operation, to receive the access request based on third agreement;Wherein second agent is independently of the second application.
In order to solve the above technical problems, another technical solution used in the present invention is:A kind of network attached storage is provided
Equipment, including:Processor, hard disk and routing circuit, hard disk and routing circuit are separately connected processor;Processor has for running
Tagged first agent, with by the routing circuit and opposite end with establishing P2P between the second agent equally identified
Connection;Processor is additionally operable to the first application of operation, to send the access request based on the first agreement by the routing circuit;Place
Reason device is additionally operable to operation third application, will come from the access request based on the first agreement of the first application of first communication party
The access request based on second protocol is converted to, and is exported the access request based on second protocol to routing by first agent
Circuit;Access request based on second protocol is issued the second agent of opposite end by routing circuit, so that the second agent of opposite end
Receive the access request based on second protocol;Wherein first agent is independently of the first application.
In order to solve the above technical problems, another technical solution used in the present invention is:A kind of network attached storage is provided
Equipment, including:Processor, hard disk and routing circuit, hard disk and routing circuit are separately connected processor;Processor has for running
Tagged second agent, with by the routing circuit and opposite end with establishing P2P between the first agent equally identified
Connection, and the access request based on second protocol sent from the first agent of opposite end is received by routing circuit;Processor is also
For running the 4th application, the access request based on second protocol for the second agent for coming from second communication party is converted to
Access request based on third agreement;Processor is additionally operable to the second application of operation, to receive the access request based on third agreement;
Wherein second agent is independently of the second application.
The beneficial effects of the invention are as follows:P2P connections are established by independently operated agency between different equipment, by right
The mutual conversion of access data based on different agreement so that the transport services based on different agreement can be in P2P connections
Lower use.
Description of the drawings
Fig. 1 is the flow chart of inventive network communication means first embodiment;
Fig. 2 is the flow chart of inventive network communication means second embodiment;
Fig. 3 is the flow chart of inventive network communication means fourth embodiment;
Fig. 4 is the flow chart of the 5th embodiment of inventive network communication means;
Fig. 5 is the flow chart of the 7th embodiment of inventive network communication means;
Fig. 6 is the flow chart of the 8th embodiment of inventive network communication means;
Fig. 7 is the schematic diagram of present device first embodiment;
Fig. 8 is the schematic diagram of present device second embodiment;
Fig. 9 is the schematic diagram of present device 3rd embodiment;
Figure 10 is the schematic diagram of present device fourth embodiment;
Figure 11 is the structural schematic diagram of inventive network attached storage device first embodiment;
Figure 12 is the structural schematic diagram of inventive network attached storage device second embodiment.
Specific implementation mode
Referring to Fig.1, the first embodiment of inventive network communication means includes:
S101, the tagged first agent of tool of first communication party and second communication party with the second generation equally identified
Reason establishes P2P connections;
Mark is sent by the server of management first communication party and second communication party, and mark can be software account, know
Other code can just establish P2P connections between the equipment with like-identified, and identification code is used for distinguishing different equipment place networks
Network model.
First agent is independently of the first application, and second agent is independently of the second application.
First agent, second agent are independently operated program, are carried out between each program of the machine and other equipment
P2P penetrates the bridge of connection, intermediary, it is of course also possible to be interpreted as a kind of communication interface.The program of first agent, second agent
Can as requested, local system environment etc. is designed.First agent, second agent can be called by native program and other
Agency in equipment establishes P2P connections, and provides data distribution and reception for native application;First communication party and second is led to
Letter side can in two different Intranets, can also one in Intranet, one on public network.
S102 is converted to the access request based on the first agreement for the first application for coming from first communication party based on the
The access request of two agreements;
The agreement that first agreement can be identified and be used for the first application, second protocol penetrate connection for P2P and can be supported
Agreement, due to P2P penetrate connection do not support directly transmit the access data based on the first agreement, so need through conversion change
At the access data based on second protocol.
Access request based on second protocol is sent to the of second communication party by S103, the first agent of first communication party
Two agencies;
The second agent of S104, second communication party receive the access request based on second protocol;
S105 is converted to the access request based on second protocol for the second agent for coming from second communication party based on
The access request of three agreements;
The second application of S106, second communication party receive the access request based on third agreement, and respond and assisted based on third
The access request of view sends the access content based on third agreement;
The agreement that third agreement can be identified and be used for the second application is not supported directly to transmit since P2P penetrates connection
Access data based on third agreement, so needing to become to assist based on third by the access data based on second protocol by conversion
The access data of view are then forwarded to the second application.
S107, the access Content Transformation based on third agreement that will come from the second application of second communication party is based on the
The access content of two agreements;
Access content based on second protocol is issued the first of first communication party by the second agent of S108, second communication party
Agency;
The first agent of S109, first communication party receive the access content based on second protocol;
S110, the access Content Transformation based on second protocol that will come from the first agent of first communication party are based on the
The access content of one agreement;
The first application of S111, first communication party receive the access content based on the first agreement.
By the implementation of above-described embodiment, do not established by independently operated Agent between the equipment of same Intranet
P2P connections pass through the mutual conversion to the access data based on different agreement so that the transport services based on different agreement
It can be used under P2P connections.
With reference to Fig. 2, the second embodiment of inventive network communication means, in inventive network communication means first embodiment
On the basis of, including:
S201, the tagged first agent of tool of first communication party and second communication party with the second generation equally identified
Reason establishes P2P connections;
Access request based on the first agreement is issued the first of first communication party by the first application of S202, first communication party
Loopback port;
S203, the third of first communication party, which is applied, to be obtained the access request based on the first agreement from the first loopback port and turns
It is changed to the access request based on second protocol, and the access request based on second protocol is issued to the first generation of first communication party
Reason;
Access request based on second protocol is sent to the of second communication party by S204, the first agent of first communication party
Two agencies;
The second agent of S205, second communication party receive the access request based on second protocol;
The 4th application of S206, second communication party obtain the access request based on second protocol from second agent and are converted to
The second loopback port is issued based on the access request of third agreement, and by the access request based on third agreement;
The second application of S207, second communication party receive the access request based on third agreement from the second loopback port, and
It responds the access request based on third agreement and sends the access content based on third agreement to another second loopback port;
The 4th application of S208, second communication party obtain the access content based on third agreement from another second loopback port
And the access content based on second protocol is converted to, and the access content based on second protocol is issued the second of second communication party
Agency;
Access content based on second protocol is issued the first of first communication party by the second agent of S209, second communication party
Agency;
The first agent of S210, first communication party receive the access content based on second protocol;
Access content based on second protocol is issued the third of first communication party by S211, the first agent of first communication party
Using;
Access Content Transformation based on second protocol is that the access content based on the first agreement is concurrent by S212, third application
To another first loopback port of first communication party;
The first application of S213, first communication party receive the access content based on the first agreement from another loopback port.
Third application, the 4th application are a kind of conversion programs, for carrying out phase to the access data based on different agreements
Mutually conversion.
The second agent of second communication party communicates when the access mode of second communication party and access second communication party first
The first loopback port for just using, another first loopback port binding, and by the access mode of the second communication party of binding and
One loopback port, another first loopback port are sent to first by the server of management first communication party and second communication party and lead to
The first agent of letter side.
Loopback port is the virtual port in equipment, and address range is 127.0.0.1 to 127.255.255.254, is sent
Access request or access content to loopback port will not pass through external network interface.
First communication party is connected with the P2P that second communication party sets up, the second loopback end that second communication party uses
Mouthful and another second loopback port address and the first loopback port for using of first communication party and another first loopback port
Address may be the same or different.If in first communication party at least two application simultaneously with the application in second communication party
Connection, each application are to send the access request for passing through third application conversion to first agent by the first loopback port, are led to
It crosses another first loopback port and receives the access content by third application conversion that second communication party returns from first agent, instead
It is as the same.
It is connect in addition, first communication party can establish P2P with multiple network nodes simultaneously, each connection occupies two rings
Return port between application program and agency data receiver and transmission, the loopback port address that different connections uses is respectively not
It is identical.Second communication party can similarly be released and establish the case where P2P is connect with multiple network nodes.
P2P connections between distinct device can be known as " tunnel ", tunnel there are 2 endpoints:Arrival end and outlet end.Class
It is similar to the C/S model of TCP, the outlet end in tunnel is equivalent to the server end of TCP (intercepting end), and arrival end is equivalent to the visitor of TCP
Family end.The arrival end in every tunnel can be associated with multiple stage computers, and outlet end can only be associated with a computer, be formed one-to-many
Constructing communication network;A plurality of tunnel can be added, a computer can be associated with a plurality of tunnel, be associated in arrival end or outlet simultaneously
End.One computer can be used as TCP Client and TCP server end simultaneously.
The 3rd embodiment of inventive network communication means, on the basis of inventive network communication means second embodiment
On, the third application integration of first communication party is in the first agent of first communication party;The 4th application integration of second communication party in
The second agent of second communication party;First agreement is Transmission Control Protocol, and second protocol is udp protocol, and third agreement is Transmission Control Protocol.
By the implementation of above-described embodiment, equipment is by independently operated Agent with other not in the net of same Intranet
Network node establishes P2P connections, by the mutual conversion based on udp protocol and the access data of Transmission Control Protocol so that is based on TCP
HTTP, FTP of agreement can be used with services such as SSH, SSTP in the case where P2P is connected.
In real work, before network communication, first have to that a computer A is used to take as website and database
Business device, installs PHP and MYSQL, Apache/Nginx first.Then installation P2P softwares (second agent), configuration P2P softwares (the
Two agencies) mark, and it is TCP, setting P2P connections entry address/port (the first loopback end that communication protocol type, which is arranged,
Mouthful), such as:127.0.0.10:80, exit address/port (another first loopback port), such as 127.0.0.1:80;It is another
Platform computer B also installs p2p softwares (first agent), the mark of configuration P2P softwares (first agent), and final both sides confirm that P2P is soft
The mark of part is identical, builds peer-to-peer network.
When real network communicates, local WEB client side is opened on computer B, in the address field of local WEB client side
Middle input http://127.0.0.10:80/, WEB client side sends out the access request based on Transmission Control Protocol (the first agreement), passes through
The P2P softwares crossed on computer B are converted to the access request based on udp protocol (second protocol), and P2P softwares will be based on UDP and assist
The access request of view (second protocol) is sent on server, and the P2P softwares on server are received based on udp protocol (second
Agreement) access request and be converted to the access request based on Transmission Control Protocol, WEB service on server termination is received based on TCP
The access request of agreement simultaneously responds access content of the access request return based on Transmission Control Protocol, and the P2P softwares of server receive base
It is concurrent that the access content based on udp protocol (second protocol) is converted into after the access content of Transmission Control Protocol (third agreement)
Computer B is given, the P2P softwares on computer B are converted into base after receiving the access content based on udp protocol (second protocol)
In Transmission Control Protocol (the first agreement) access content and issue WEB client side, WEB client side is received based on Transmission Control Protocol (first
Agreement) access content, i.e., WEB service end provide corresponding web homepages.Here third agreement can also be that DCCP is assisted
View, Stream Control Transmission Protocol Real-time Transport Protocol.
With reference to Fig. 3, the fourth embodiment of inventive network communication means includes:
S301, the tagged first agent of tool of first communication party and second communication party with the second generation equally identified
Reason establishes P2P connections;
S302 is converted to the access request based on the first agreement for the first application for coming from first communication party based on the
The access request of two agreements;
Access request based on second protocol is sent to second communication party's by S303 by the first agent of first communication party
Second agent;So that the second agent of second communication party receives the access request based on second protocol;
Wherein first agent is independently of the first application.
By the implementation of above-described embodiment, do not established by independently operated Agent between the equipment of same Intranet
P2P connections pass through the mutual conversion to the access data based on different agreement so that the transport services based on different agreement
It can be used under P2P connections, first communication party is able to send the access data based on the first agreement.
With reference to Fig. 4, the 5th embodiment of inventive network communication means is implemented in the network communication method the 4th of the present invention
On the basis of example, further include:
S401, the first agent of first communication party receive sent from the second agent of second communication party based on second protocol
Access content;
S402, the access Content Transformation based on second protocol that will come from the first agent of first communication party are based on the
The access content of one agreement;
The first application of S403, first communication party receive the access content based on the first agreement.
By the implementation of above-described embodiment, do not established by independently operated Agent between the equipment of same Intranet
P2P connections pass through the mutual conversion to the access data based on different agreement so that the transport services based on different agreement
It can be used under P2P connections, first communication party can receive the access data based on second protocol and be changed into first and answer
With the identifiable access data based on the first agreement.
The sixth embodiment of inventive network communication means, on the basis of the network communication method fourth embodiment of the present invention
On, the first agreement is Transmission Control Protocol, and second protocol is udp protocol, and the present embodiment can mutually be tied with the fifth embodiment of the present invention
It closes.
By the implementation of above-described embodiment, equipment is by independently operated Agent with other not in the net of same Intranet
Network node establishes P2P connections, by the mutual conversion based on udp protocol and the access data of Transmission Control Protocol so that is based on TCP
The services such as the HTTP and FTP of agreement can be used in the case where P2P is connected.
With reference to Fig. 5, the 7th embodiment of inventive network communication means includes:
S501, the tagged first agent of tool of first communication party and second communication party with the second generation equally identified
Reason establishes P2P connections;
S502, the second agent of second communication party receive sent from the first agent of first communication party based on second protocol
Access request;
S503 is converted to the access request based on second protocol for the second agent for coming from second communication party based on
The access request of three agreements;
The second application of S504, second communication party receive the access request based on third agreement, complete second communication party's
Second application receives the process of data from the first application of first communication party.
Wherein second agent is independently of the second application.
By the implementation of above-described embodiment, do not established by independently operated Agent between the equipment of same Intranet
P2P connections pass through the mutual conversion to the access data based on different agreement so that the transport services based on different agreement
It can be used under P2P connections, second communication party can receive the access data based on second protocol and be changed into second and answer
With the identifiable access data based on third agreement.
With reference to Fig. 6, the 8th embodiment of inventive network communication means is implemented in the network communication method the 7th of the present invention
On the basis of example, further include:
The second access request of the application response based on the 7th agreement of S601, second communication party are sent based on third agreement
Access content;
S602, the access Content Transformation based on third agreement that will come from the second application of second communication party is based on the
The access content of two agreements;
Access content based on second protocol is issued the of first communication party by S603 by the second agent of second communication party
One agency.
By the implementation of above-described embodiment, do not established by independently operated Agent between the equipment of same Intranet
P2P connections pass through the mutual conversion to the access data based on different agreement so that the transport services based on different agreement
It can be used under P2P connections, second communication party is able to send the access data based on third agreement.
9th embodiment of inventive network communication means, on the basis of the 7th embodiment of network communication method of the present invention
On, second protocol is udp protocol, and third agreement is Transmission Control Protocol, and the embodiment of the present invention can mutually be tied with eighth embodiment of the invention
It closes.
By the implementation of above-described embodiment, equipment is by independently operated Agent with other not in the net of same Intranet
Network node establishes P2P connections, by the mutual conversion based on udp protocol and the access data of Transmission Control Protocol so that is based on TCP
The services such as the HTTP and FTP of agreement can use under the connections such as P2P.
With reference to Fig. 7, the first embodiment of present device includes:Processor and network communications circuits;Processor is for transporting
Row has tagged first agent 10, to be connect with opposite end with establishing P2P between the second agent equally identified;Processor
It is additionally operable to operation first and applies 11, to send the access request based on the first agreement;Processor is additionally operable to operation third and applies 12,
The access request based on the first agreement is converted to the access request based on second protocol, and will be described by first agent 10
Access request based on second protocol is exported to network communications circuits;Network communications circuits are by the access request based on second protocol
The second agent of opposite end is issued, so that the second agent of opposite end receives the access request based on second protocol;The wherein first generation
Reason 10 applies 11 independently of first.
By the implementation of above-described embodiment, equipment is by independently operated Agent with other not in the net of same Intranet
Network node establishes P2P connections, and third is using 12 by the mutual conversion based on udp protocol and the access data of Transmission Control Protocol, making
Obtaining the transport services based on different agreement can use under P2P connections.
With reference to Fig. 8, the second embodiment of present device, on the basis of present device first embodiment, first answers
The access request based on the first agreement is sent to the first loopback port 23 with 21;Third will come from first communication party using 22
The access request based on the first agreement of first loopback port 23 is converted to the access request based on second protocol;Further,
Third is integrated in first agent 20 using 22.
With reference to Fig. 9, the 3rd embodiment of present device includes:Processor and network communications circuits;Processor is for transporting
Row has tagged second agent 30, to be connect with opposite end with establishing P2P between the first agent equally identified, and passes through
Network communications circuits receive the access request based on second protocol sent from the first agent of opposite end;Processor is additionally operable to run
4th applies 31, and the access request based on second protocol for the second agent 30 for coming from second communication party is converted to and is based on
The access request of third agreement;Processor is additionally operable to operation second and applies 32, to receive the access request based on third agreement;Its
Middle second agent 30 applies 32 independently of second.
By the implementation of above-described embodiment, equipment is by independently operated Agent with other not in the net of same Intranet
Network node establishes P2P connections, and the 4th application 31 is by the mutual conversion based on udp protocol and the access data of Transmission Control Protocol, making
Obtaining the transport services based on different agreement can use under P2P connections.
Referring to Fig.1 0, the fourth embodiment of present device, on the basis of 3rd embodiment, the 4th application 41 will come from
The access request based on third agreement is converted in the access request based on second protocol of the second agent 40 of second communication party,
And the access request based on third agreement is issued into the second loopback port 42;Second application 43, which receives, is based on the second loopback port 42
In third agreement access request;Further, the 4th application 41 is integrated in second agent 40.
Referring to Fig.1 1, the first embodiment of inventive network attached storage device, including:Processor 50, hard disk 51 and road
By circuit 52, hard disk 50 and routing circuit 52 are separately connected processor 50;The wan interface of routing circuit 52 connects Internet,
LAN interface is separately connected Intranet equipment, and completes to access transmission of the data packet between processor 50 and corresponding interface.Processor
50, for exchanging routing iinformation, searching routing table and forwarding access data packet, coordinate routing circuit 52 to realize LAN and wide area
The routing functions such as the interconnection of net, the processing for accessing data and distribution, flow control;It is tagged that processor 50 is additionally operable to operation tool
First agent, to be connect with opposite end with establishing P2P between the second agent equally identified;Processor 50 is additionally operable to operation
One application, to send the access request based on the first agreement;Processor 50 is additionally operable to operation third application, will come from first
The access request based on the first agreement of the first application of communication party is converted to the access request based on second protocol, and passes through the
One agency exports the access request based on second protocol to routing circuit 52;Routing circuit 52 is by the access based on second protocol
The second agent of opposite end is issued in request, so that the second agent of opposite end receives the access request based on second protocol;Wherein one
Agency is independently of the first application.
Network attached storage does not establish P2P with other by independently operated Agent in the network node of same Intranet
Connection, conversion program pass through the mutual conversion to the access data based on different agreement so that the network based on different agreement passes
Defeated service can use under P2P connections, and the access data based on the first agreement can be changed by network attached storage equipment
Access Data Concurrent based on second protocol is seen off.
Referring to Fig.1 2, inventive network attached storage device second embodiment, including:Processor 60, hard disk 61 and routing
Circuit 62, hard disk 61 and routing circuit 62 are separately connected processor 60;The wan interface of routing circuit 62 connects Internet, LAN
Interface is separately connected Intranet equipment, and completes to access transmission of the data packet between processor 60 and corresponding interface.Processor 60
For exchanging routing iinformation, searching routing table and forwarding access data packet, cooperation routing circuit 62 realization LAN and wide area network
Interconnection, data processing and the routing functions such as distribution, flow control;Processor 60 is additionally operable to operation and has the tagged second generation
Reason is established P2P between the first agent equally indicated and is connect to have with opposite end, and by the reception of routing circuit 62 from opposite end
The access request based on second protocol sent of first agent;Processor 60 is additionally operable to the 4th application of operation, will come from
The access request based on second protocol of the second agent of second communication party is converted to the access request based on third agreement;Processing
Device 60 is additionally operable to the second application of operation, to receive the access request based on third agreement;Wherein second agent answers independently of second
With.
Network attached storage does not establish P2P with other by independently operated Agent in the network node of same Intranet
Connection, conversion program pass through the mutual conversion to the access data based on different agreement so that the network based on different agreement passes
Defeated service can use under P2P connections, and network attached storage equipment can will receive the access number based on second protocol of coming
According to being changed into the access data based on third agreement.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, every to utilize this
Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is relevant to be applied directly or indirectly in other
Technical field is included within the scope of the present invention.
Claims (16)
1. a kind of network communication method, which is characterized in that including:
The tagged first agent of tool of first communication party and second communication party's establishes P2P with the second agent equally identified
Connection;
The access request based on the first agreement for the first application for coming from the first communication party is converted to based on the second association
The access request of view;
The access request based on second protocol is sent to second communication by the first agent of the first communication party
The second agent of side;
The second agent of the second communication party receives the access request based on second protocol;
The access request based on second protocol for the second agent for coming from the second communication party is converted to and is assisted based on third
The access request of view;
The second application of the second communication party receives the access request based on third agreement, and third is based on described in response
The access request of agreement sends the access content based on third agreement;
It is based on that the access Content Transformation based on third agreement described in the second application of the second communication party, which will be come from,
The access content of two agreements;
The access content based on second protocol is issued into the first communication party by the second agent of the second communication party
First agent;
The first agent of the first communication party receives the access content based on second protocol;
It is based on that the access Content Transformation based on second protocol described in the first agent of the first communication party, which will be come from,
The access content of one agreement;
First application of the first communication party receives the access content based on the first agreement;
The wherein described first agent is independently of first application, and the second agent is independently of second application;
The access request based on the first agreement of the wherein described future from the first application in the first communication party is converted to base
Include in the step of access request of second protocol:
The access request based on the first agreement is issued the first communication party by the first application of the first communication party
One first loopback port;
The third of the first communication party is applied from first loopback port and obtains the access request based on the first agreement
And the access request based on second protocol is converted to, and the access request based on second protocol is issued described first
The first agent of communication party;
It is described to be converted to the access request based on second protocol for the second agent for coming from the second communication party based on
The step of access request of three agreements includes:
The 4th application of the second communication party obtains the access request based on second protocol from the second agent and turns
It is changed to the access request based on third agreement, and the access request based on third agreement is issued into the second loopback end
Mouthful;
The second application of the second communication party receives the step of access request based on third agreement and includes:
The second application of the second communication party receives the access request based on third agreement from second loopback port.
2. according to the method described in claim 1, it is characterized in that,
It is described will come from the second communication party second application described in the access Content Transformation based on third agreement be base
Include in the step of access content of second protocol:
The second application of the second communication party sends described based on the access content of third agreement to another second loopback port;
The 4th application of the second communication party obtains the access based on third agreement from another second loopback port
Content is simultaneously converted to the access content based on second protocol, and the access content based on second protocol is issued described
The second agent of second communication party;
The access Content Transformation based on second protocol of the first agent that the first communication party will be come from is based on the
The step of access content of one agreement includes:
The access content based on second protocol is issued the first communication party by the first agent of the first communication party
Third application, it is the access based on the first agreement that the third, which is applied the access Content Transformation based on second protocol,
Content and another first loopback port for issuing the first communication party;
First application of the first communication party receives the step of access content based on the first agreement and includes:
First application of the first communication party receives the base from another first loopback port of the first communication party
In the access content of the first agreement.
3. according to the method described in claim 2, it is characterized in that,
When the second agent of the second communication party is by the access mode of the second communication party and the access second communication party
One first loopback port that the first communication party uses, another first loopback port binding, and by described the of the binding
The access mode of two communication parties and first loopback port, another first loopback port are by managing first communication
The server of the square and described second communication party is sent to the first agent of the first communication party.
4. according to the method described in claim 2, it is characterized in that,
The third application integration of the first communication party is in the first agent.
5. according to the described method of any one of claim 1-4, which is characterized in that
First agreement is Transmission Control Protocol, and the second protocol is udp protocol.
6. according to the described method of any one of claim 1-4, which is characterized in that
The third agreement is Transmission Control Protocol.
7. a kind of network communication method, which is characterized in that including:
The tagged first agent of tool of first communication party and second communication party's establishes P2P with the second agent equally identified
Connection;
Access request based on the first agreement is issued the one the of the first communication party by the first application of the first communication party
One loopback port;
The third of the first communication party is applied from first loopback port and obtains the access request based on the first agreement
And the access request based on second protocol is converted to, and the access request based on second protocol is issued into first communication
The first agent of side;
The access request based on second protocol is sent to second communication by the first agent of the first communication party
The second agent of side;So that the second agent of the second communication party receives the access request based on second protocol;
The wherein described first agent is independently of first application.
8. the method according to the description of claim 7 is characterized in that the method further includes:
The first agent of the first communication party receive sent from the second agent of the second communication party based on second protocol
Access content;
The access content based on second protocol is issued the first communication party by the first agent of the first communication party
Third application, it is the access content based on the first agreement that the third, which is applied the access Content Transformation based on second protocol,
And issue another first loopback port of the first communication party;
First application of the first communication party receives the base from another first loopback port of the first communication party
In the access content of the first agreement.
9. method according to claim 7 or 8, which is characterized in that
First agreement is Transmission Control Protocol, and the second protocol is udp protocol.
10. a kind of network communication method, which is characterized in that including:
The tagged first agent of tool of first communication party and second communication party's establishes P2P with the second agent equally identified
Connection;
The second agent of the second communication party receive sent from the first agent of the first communication party based on second protocol
Access request;
The 4th application of the second communication party obtains the access request based on second protocol from the second agent and turns
It is changed to the access request based on third agreement, and the access request based on third agreement is issued into the second loopback port;
The second application of the second communication party receives the access request based on third agreement from second loopback port;
The wherein described second agent is independently of second application.
11. according to the method described in claim 10, it is characterized in that, the method further includes:
The second application response access request based on third agreement of the second communication party is sent based on third agreement
Content is accessed to another second loopback port;
The 4th application of the second communication party obtains the access based on third agreement from another second loopback port
Content is simultaneously converted to the access content based on second protocol, and the access content based on second protocol is issued described second
The second agent of communication party;
The access content based on second protocol is issued into the first communication party by the second agent of the second communication party
First agent.
12. the method according to claim 10 or 11, which is characterized in that
The second protocol is udp protocol, and the third agreement is Transmission Control Protocol.
13. a kind of network communication equipment, which is characterized in that including:
Processor and network communications circuits;
The processor has tagged first agent for running, with same by having for the network communications circuits and opposite end
P2P connections are established between the second agent of sample mark;
The processor is additionally operable to the first application of operation, to be asked the access based on the first agreement by the network communications circuits
It asks and is sent to one first loopback port;
The processor is additionally operable to operation third application, to obtain the visit based on the first agreement from first loopback port
It asks and asks and be converted to the access request based on second protocol, and by the first agent by the visit based on second protocol
Ask request output to the network communications circuits;
The access request based on second protocol is issued the second agent of the opposite end by the network communications circuits, so that
The second agent of the opposite end receives the access request based on second protocol;
The wherein described first agent is independently of first application.
14. a kind of network communication equipment, which is characterized in that including:
Processor and network communications circuits;
The processor has tagged second agent for running, with same by having for the network communications circuits and opposite end
P2P connections are established between the first agent of sample mark, and receive the first generation from the opposite end by the network communications circuits
The access request based on second protocol that haircut comes;
The processor is additionally operable to the 4th application of operation, and the access based on second protocol for coming from the second agent is asked
It asks and is converted to the access request based on third agreement, and the access request based on third agreement is issued into the second loopback end
Mouthful;
The processor is additionally operable to the second application of operation, to receive the visit based on third agreement from second loopback port
Ask request;
The wherein described second agent is independently of second application.
15. a kind of network attached storage equipment, which is characterized in that including:
Processor, hard disk and routing circuit, the hard disk and routing circuit are separately connected the processor;
The processor, which is used for operation, has mark first agent, equally to be identified by the routing circuit and having for opposite end
Second agent between establish P2P connections;
The processor is additionally operable to the first application of operation, will be sent out based on the access request of the first agreement by the routing circuit
Give one first loopback port;
The processor is additionally operable to operation third application, to obtain the visit based on the first agreement from first loopback port
It asks and asks and be converted to the access request based on second protocol, and by the first agent by the visit based on second protocol
Ask request output to the routing circuit;
The access request based on second protocol is issued the second agent of the opposite end by the routing circuit, so that described
The second agent of opposite end receives the access request based on second protocol;
The wherein described first agent is independently of first application.
16. a kind of network attached storage equipment, which is characterized in that including:
Processor, hard disk and routing circuit, the hard disk and routing circuit are separately connected the processor;
The processor, which is used for operation, has mark second agent, equally to be identified by the routing circuit and having for opposite end
First agent between establish P2P connections, and the base sent from the first agent of the opposite end is received by the routing circuit
In the access request of second protocol;
The processor is additionally operable to the 4th application of operation, and the access based on second protocol for coming from the second agent is asked
It asks and is converted to the access request based on third agreement, and the access request based on third agreement is issued into the second loopback end
Mouthful;
The processor is additionally operable to the second application of operation, to receive the visit based on third agreement from second loopback port
Ask request;
The wherein described second agent is independently of second application.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510643804.8A CN105323310B (en) | 2015-09-30 | 2015-09-30 | Network communication method, equipment and network attached storage equipment |
PCT/CN2016/080669 WO2017054446A1 (en) | 2015-09-30 | 2016-04-29 | Network communication method, device, and network attached storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510643804.8A CN105323310B (en) | 2015-09-30 | 2015-09-30 | Network communication method, equipment and network attached storage equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105323310A CN105323310A (en) | 2016-02-10 |
CN105323310B true CN105323310B (en) | 2018-11-09 |
Family
ID=55249892
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510643804.8A Active CN105323310B (en) | 2015-09-30 | 2015-09-30 | Network communication method, equipment and network attached storage equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105323310B (en) |
WO (1) | WO2017054446A1 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105323310B (en) * | 2015-09-30 | 2018-11-09 | 深圳市先河系统技术有限公司 | Network communication method, equipment and network attached storage equipment |
CN107222326B (en) * | 2016-03-22 | 2021-02-02 | 斑马智行网络(香港)有限公司 | Access method, configuration method and device for service between devices |
CN106254434A (en) * | 2016-07-28 | 2016-12-21 | 武汉华星光电技术有限公司 | A kind of network attached storage apparatus and method for |
CN110381028B (en) * | 2019-06-19 | 2022-02-22 | 视联动力信息技术股份有限公司 | Data transmission method and video networking server |
CN110545320A (en) * | 2019-08-23 | 2019-12-06 | 浙江大华技术股份有限公司 | Intranet data interaction method and equipment |
CN110661820B (en) * | 2019-12-02 | 2020-04-28 | 武汉慧联无限科技有限公司 | Internet of things data processing method and device, equipment and storage medium |
CN113381971B (en) * | 2020-03-10 | 2023-04-07 | 阿里巴巴集团控股有限公司 | Data downloading method, device, system, electronic equipment and computer storage medium |
CN111835728B (en) * | 2020-06-15 | 2023-09-01 | 广州海颐信息安全技术有限公司 | Method and device for hiding privileges to access real network and protocol |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1517900A (en) * | 2003-01-24 | 2004-08-04 | ������������ʽ���� | Method and device for reciprocal access |
CN101170572A (en) * | 2006-10-23 | 2008-04-30 | 日电(中国)有限公司 | Multimedia network communication system based on P2P SIP technology |
CN101438567A (en) * | 2006-06-14 | 2009-05-20 | 诺基亚公司 | Method and apparatus for wireless transmission internet protocol television |
CN104378410A (en) * | 2014-09-30 | 2015-02-25 | 东莞市联讯系统科技有限公司 | Minitype private cloud storage and transmission system and method |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003067276A (en) * | 2001-08-22 | 2003-03-07 | Nippon Telegr & Teleph Corp <Ntt> | Method for interconnecting different p2p file exchange networks and p2p file exchange network system |
US8108455B2 (en) * | 2002-10-31 | 2012-01-31 | Oracle America, Inc. | Mobile agents in peer-to-peer networks |
US8290819B2 (en) * | 2006-06-29 | 2012-10-16 | Microsoft Corporation | Electronic commerce transactions over a peer-to-peer communications channel |
CN101369959A (en) * | 2007-08-14 | 2009-02-18 | 中兴通讯股份有限公司 | Network address conversion traversing method supporting point-to-point service |
CN101409706B (en) * | 2007-10-09 | 2011-11-23 | 华为技术有限公司 | Method, system and relevant equipment for distributing data of edge network |
CN101465844B (en) * | 2007-12-18 | 2012-07-04 | 华为技术有限公司 | Method, system and equipment for traversing firewall |
CN105323310B (en) * | 2015-09-30 | 2018-11-09 | 深圳市先河系统技术有限公司 | Network communication method, equipment and network attached storage equipment |
-
2015
- 2015-09-30 CN CN201510643804.8A patent/CN105323310B/en active Active
-
2016
- 2016-04-29 WO PCT/CN2016/080669 patent/WO2017054446A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1517900A (en) * | 2003-01-24 | 2004-08-04 | ������������ʽ���� | Method and device for reciprocal access |
CN101438567A (en) * | 2006-06-14 | 2009-05-20 | 诺基亚公司 | Method and apparatus for wireless transmission internet protocol television |
CN101170572A (en) * | 2006-10-23 | 2008-04-30 | 日电(中国)有限公司 | Multimedia network communication system based on P2P SIP technology |
CN104378410A (en) * | 2014-09-30 | 2015-02-25 | 东莞市联讯系统科技有限公司 | Minitype private cloud storage and transmission system and method |
Also Published As
Publication number | Publication date |
---|---|
WO2017054446A1 (en) | 2017-04-06 |
CN105323310A (en) | 2016-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105323310B (en) | Network communication method, equipment and network attached storage equipment | |
CN106936709B (en) | Remote service access path control method and relevant device | |
CN108737272B (en) | High-performance route forwarding method in cloud computing | |
CN110138748A (en) | A kind of network integration communication means, gateway and system | |
CN104408777B (en) | Internet attendance management system and method based on P2P communication realized by NAT traversal | |
CN105794152B (en) | The system and method and device of the interaction based on web are carried out with building automatic | |
CN105229971B (en) | Relay and communication mode selection method | |
CN108282362B (en) | Network topology generation method, device and equipment | |
CN105376299A (en) | A network communication method, an apparatus and a network attached storage apparatus | |
CN108667638A (en) | A kind of network service configuration method and network management device | |
CN105610981A (en) | Quick operational information transfer platform | |
CN109756474A (en) | A kind of trans-regional call method of the service of electric power scheduling automatization system and device | |
CN104104741A (en) | Network system and method for implementing STUN technique with assistance of two network devices | |
CN107222561A (en) | A kind of transport layer reverse proxy method | |
CN108737505A (en) | A kind of method of resource downloading, system and terminal device | |
CN101895590A (en) | UDT-based system and method for realizing network address translator traversal | |
CN106790759A (en) | IPv4/IPv6 converting systems and method based on SDN | |
CN106254457A (en) | Real estate data-sharing systems based on WCF technology and data sharing method | |
CN108881519A (en) | A kind of NAT penetrating method and device | |
CN109474713A (en) | Message forwarding method and device | |
CN106713519A (en) | Network communication method and system based on software-defined networking | |
CN110392066A (en) | A kind of method and apparatus of access service | |
CN104539586A (en) | Session management method and device | |
CN107786448A (en) | The method and apparatus for establishing the forward-path of Business Stream | |
JP6393475B2 (en) | Communication adapter device, communication system, tunnel communication method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |