CN105323310A - Network communication method, device and network attached storage device - Google Patents

Network communication method, device and network attached storage device Download PDF

Info

Publication number
CN105323310A
CN105323310A CN201510643804.8A CN201510643804A CN105323310A CN 105323310 A CN105323310 A CN 105323310A CN 201510643804 A CN201510643804 A CN 201510643804A CN 105323310 A CN105323310 A CN 105323310A
Authority
CN
China
Prior art keywords
agent
communication party
protocol
access request
agreement
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
Application number
CN201510643804.8A
Other languages
Chinese (zh)
Other versions
CN105323310B (en
Inventor
张日和
沈敬优
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN ADVANCED RIVER SYSTEM TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN ADVANCED RIVER SYSTEM TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN ADVANCED RIVER SYSTEM TECHNOLOGY Co Ltd filed Critical SHENZHEN ADVANCED RIVER SYSTEM TECHNOLOGY Co Ltd
Priority to CN201510643804.8A priority Critical patent/CN105323310B/en
Publication of CN105323310A publication Critical patent/CN105323310A/en
Priority to PCT/CN2016/080669 priority patent/WO2017054446A1/en
Application granted granted Critical
Publication of CN105323310B publication Critical patent/CN105323310B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Abstract

The invention discloses a network communication method. The method comprises the following steps that: a first agent with identifier of a first communication party and a second agent with the same identifier of a second communication party build P2P connection; an access request which is based on a first protocol and comes from a first application of the first communication party is converted into an access request based on a second protocol; the first agent of the first communication party transmits the access request based on the second protocol to the second agent of the second communication party; the second agent of the second communication party receives the access request based on the second protocol; the access request which is based on the second protocol and comes from the second agent of the second communication party is converted into an access request based on a third protocol; a second application of the second communication party receives the access request based on the third protocol, and transmits access content based on the third protocol in response to the access request based on the third protocol. According to the invention, through mutual conversion of the access data based on different protocols, network transmission services based on different protocols can be used under P2P connection.

Description

Network communication method, equipment and network attached storage equipment
Technical field
The present invention relates to the communication technology, particularly relate to a kind of network communication method, equipment and network attached storage equipment.
Background technology
P2P (peertopeer, peer-to-peer network) technology makes full use of the ability of each computer in network, provides service mutually.Every platform computer can serve as the requestor of network service, responds again to the request of other computer, provides resource and service.
P2P connects use udp protocol, and the servers such as HTTP, FTP are all based on Transmission Control Protocol, cannot directly run in P2P connection, thus cannot realize the services such as HTTP, FTP on P2P connects.
Summary of the invention
The technical problem that the present invention mainly solves is to provide a kind of network communication method, equipment and network attached storage equipment, can realize the transport services based on different agreement in P2P connection.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: provide a kind of network communication method, comprising: the same second agent identified that has of the first agent with mark of first communication party and second communication party sets up P2P and connects; The access request based on the first agreement of the first application coming from first communication party is converted to 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 coming from the second agent of second communication party is converted to the access request based on the 3rd agreement; Second application of second communication party receives the access request based on the 3rd agreement, and response is based on access request transmission the accessing content based on the 3rd agreement of the 3rd agreement; That applies come from second communication party second is converted to accessing content based on second protocol based on the 3rd accessing content of agreement; The second agent of second communication party issues the first agent of first communication party by based on accessing content of second protocol; The first agent of first communication party receives accessing content based on second protocol; Accessing content based on the first agreement is converted to based on accessing content of second protocol by what come from the first agent of first communication party; First application of first communication party receives accessing content based on the first agreement; Wherein first agent is independent of the first application, and second agent is independent of the second application.
Wherein, the step that the access request based on the first agreement of the first application coming from first communication party is converted to based on the access request of second protocol is comprised: the access request based on the first agreement is issued one first loopback port of first communication party by the first application of first communication party; 3rd application of first communication party obtains the described access request based on the first agreement and the access request be converted to based on second protocol from the first loopback port, and the access request based on second protocol is issued the first agent of first communication party;
Wherein, the step accessed content be converted to based on the first agreement that accesses content based on second protocol coming from the first agent of first communication party comprised: the first agent of first communication party issues the 3rd application of first communication party by based on accessing content of second protocol, the 3rd application is converted to accessing content and issuing another the first loopback port of first communication party based on the first agreement by based on accessing content of second protocol;
Wherein, the step accessed content that the first application of first communication party receives based on the first agreement comprises: first of first communication party applies another the first loopback port accepts the accessing content based on the first agreement from first communication party.
Wherein, one first loopback port, another the first loopback port binding that first communication party when the access mode of second communication party and access second communication party uses by the second agent of second communication party, and the first agent access mode of the second communication party of binding and the first loopback port, another the first loopback port being sent to first communication party by the server managing first communication party and second communication party.
Wherein, the 3rd 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, the 3rd agreement is Transmission Control Protocol.
For solving the problems of the technologies described above, another technical solution used in the present invention is: provide a kind of network communication method, comprising: the same second agent identified that has of the first agent with mark of first communication party and second communication party sets up P2P and connects; The access request based on the first agreement of the first application coming from first communication party is converted to 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; To make the access request of second agent's reception based on second protocol of second communication party; Wherein first agent is independent of the first application.
Wherein, the first agent of first communication party receives the accessing content based on second protocol of sending from the second agent of second communication party; Accessing content based on the first agreement is converted to based on accessing content of second protocol by what come from the first agent of first communication party; First application of first communication party receives accessing content based on the first agreement.
Wherein, the first agreement is Transmission Control Protocol, and second protocol is udp protocol.
For solving the problems of the technologies described above, another technical solution used in the present invention is: provide a kind of network communication method, comprising: the same second agent identified that has of the first agent with mark of first communication party and second communication party sets up P2P and connects; The second agent of second communication party receives the access request based on second protocol sent from the first agent of first communication party; The access request based on second protocol coming from the second agent of second communication party is converted to the access request based on the 3rd agreement; Second application of second communication party receives the access request based on the 3rd agreement; Wherein second agent is independent of the second application.
Wherein, the access request that second application of second communication party responds based on the 3rd agreement sends accessing content based on the 3rd agreement; That applies come from second communication party second is converted to accessing content based on second protocol based on the 3rd accessing content of agreement; The second agent of second communication party issues the first agent of first communication party by based on accessing content of second protocol.
Wherein, second protocol is udp protocol, and the 3rd agreement is Transmission Control Protocol.
For solving the problems of the technologies described above, another technical solution used in the present invention is: provide a kind of equipment, comprising: processor and network communications circuits; Processor has the first agent of mark for running, to connect by setting up P2P between network communications circuits and the second agent of the same mark of opposite end; Processor also for running the first application, to send based on the access request of the first agreement by network communications circuits; Processor is also for running the 3rd application, the access request based on the first agreement of the first application coming from first communication party to be converted to the access request based on second protocol, and export the access request based on second protocol to network communications circuits by first agent; Access request based on second protocol is issued the second agent of opposite end by network communications circuits, to make the access request of second agent's reception based on second protocol of opposite end; Wherein first agent is independent of the first application.
For solving the problems of the technologies described above, another technical solution used in the present invention is: provide a kind of equipment, comprising: processor and network communications circuits; Processor has the second agent of mark for running, to set up P2P between the same first agent identified connect by having of described network communications circuits and opposite end, and received the access request based on second protocol sent from the first agent of opposite end by network communications circuits; Processor also for running the 4th application, is converted to the access request based on the 3rd agreement with the access request based on second protocol of the second agent by coming from second communication party; Processor also for running the second application, to receive the access request based on the 3rd agreement; Wherein second agent is independent of the second application.
For solving the problems of the technologies described above, another technical solution used in the present invention is: provide a kind of network attached storage equipment, comprising: processor, hard disk and routing circuit, hard disk and routing circuit connection handling device respectively; Processor has the first agent of mark for running, to be set up P2P between the same second agent identified connected by having of described routing circuit and opposite end; Processor also for running the first application, to be sent the access request based on the first agreement by described routing circuit; Processor is also for running the 3rd application, the access request based on the first agreement of the first application coming from first communication party to be converted to the access request based on second protocol, and export the access request based on second protocol to routing circuit by first agent; Access request based on second protocol is issued the second agent of opposite end by routing circuit, to make the access request of second agent's reception based on second protocol of opposite end; Wherein first agent is independent of the first application.
For solving the problems of the technologies described above, another technical solution used in the present invention is: provide a kind of network attached storage equipment, comprising: processor, hard disk and routing circuit, hard disk and routing circuit connection handling device respectively; Processor has the second agent of mark for running, to set up P2P between the same first agent identified connect by having of described routing circuit and opposite end, and received the access request based on second protocol sent from the first agent of opposite end by routing circuit; Processor also for running the 4th application, is converted to the access request based on the 3rd agreement with the access request based on second protocol of the second agent by coming from second communication party; Processor also for running the second application, to receive the access request based on the 3rd agreement; Wherein second agent is independent of the second application.
The invention has the beneficial effects as follows: set up P2P by the agency of independent operating between different equipment and connect, by the mutual conversion to the visit data based on different agreement, the transport services based on different agreement can be used under P2P connects.
Accompanying drawing explanation
Fig. 1 is the flow chart of network communication method first embodiment of the present invention;
Fig. 2 is the flow chart of network communication method second embodiment of the present invention;
Fig. 3 is the flow chart of network communication method of the present invention 4th embodiment;
Fig. 4 is the flow chart of network communication method of the present invention 5th embodiment;
Fig. 5 is the flow chart of network communication method of the present invention 7th embodiment;
Fig. 6 is the flow chart of network communication method of the present invention 8th embodiment;
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 the 3rd embodiment;
Figure 10 is the schematic diagram of present device the 4th embodiment;
Figure 11 is the structural representation of network attached storage equipment first embodiment of the present invention;
Figure 12 is the structural representation of network attached storage equipment second embodiment of the present invention.
Embodiment
With reference to Fig. 1, the first embodiment of network communication method of the present invention comprises:
S101, the same second agent identified that has of the first agent with mark of first communication party and second communication party sets up P2P and connects;
Mark is sent by the server of management first communication party and second communication party, and mark can be software account, identification code, just can set up P2P and connect between the equipment with like-identified, and identification code is used for distinguishing different equipment place network of network models.
First agent is independent of the first application, and second agent is independent of the second application.
First agent, second agent are the program of independent operating, be each program of the machine with carry out between other equipment P2P penetrate be connected bridge, intermediary, certainly, also can be understood as a kind of communication interface.The program of first agent, second agent can as requested, local system environment etc. designs.First agent, second agent can be called by native program and set up P2P with the agency on other equipment and be connected, and provide Data dissemination and reception for native application; First communication party and second communication party can in two different Intranets, also can one in Intranet, one on public network.
S102, is converted to the access request based on second protocol by the access request based on the first agreement of the first application coming from first communication party;
The agreement that first agreement can identify for the first application and use, second protocol connects for P2P penetrates the agreement that can support, do not support that directly transmission is based on the visit data of the first agreement, so need through changing the visit data become based on second protocol because P2P penetrates connection.
S103, the access request based on second protocol is sent to the second agent of second communication party by the first agent of first communication party;
S104, the second agent of second communication party receives the access request based on second protocol;
S105, is converted to the access request based on the 3rd agreement by the access request based on second protocol coming from the second agent of second communication party;
S106, second application of second communication party receives the access request based on the 3rd agreement, and response is based on access request transmission the accessing content based on the 3rd agreement of the 3rd agreement;
The agreement that 3rd agreement can identify for the second application and use, do not support that directly transmission is based on the visit data of the 3rd agreement because P2P penetrates connection, so need to pass through conversion, by the visit data based on second protocol, the visit data become based on the 3rd agreement sends to the second application again.
S107, that applies come from second communication party second is converted to accessing content based on second protocol based on the 3rd accessing content of agreement;
S108, the second agent of second communication party issues the first agent of first communication party by based on accessing content of second protocol;
S109, the first agent of first communication party receives accessing content based on second protocol;
S110, is converted to accessing content based on the first agreement by what come from the first agent of first communication party based on accessing content of second protocol;
S111, the first application of first communication party receives accessing content based on the first agreement.
By the enforcement of above-described embodiment, between the equipment of same Intranet, do not set up P2P by the Agent of independent operating to connect, by the mutual conversion to the visit data based on different agreement, the transport services based on different agreement can be used under P2P connects.
With reference to Fig. 2, the second embodiment of network communication method of the present invention, on the basis of network communication method first embodiment of the present invention, comprising:
S201, the same second agent identified that has of the first agent with mark of first communication party and second communication party sets up P2P and connects;
S202, the access request based on the first agreement is issued the first loopback port of first communication party by the first application of first communication party;
S203, the 3rd application of first communication party obtains the access request based on the first agreement and the access request be converted to based on second protocol from the first loopback port, and the access request based on second protocol is issued the first agent of first communication party;
S204, the access request based on second protocol is sent to the second agent of second communication party by the first agent of first communication party;
S205, the second agent of second communication party receives the access request based on second protocol;
S206, the 4th application of second communication party obtains the access request based on second protocol from second agent and is converted to the access request based on the 3rd agreement, and the access request based on the 3rd agreement is issued the second loopback port;
S207, second application of second communication party is from the access request of the second loopback port accepts based on the 3rd agreement, and response sends based on the access request of the 3rd agreement and accesses content to another the second loopback port based on the 3rd agreement;
S208, the 4th application of second communication party obtains accessing content and being converted to accessing content based on second protocol based on the 3rd agreement from another the second loopback port, and issues the second agent of second communication party by based on accessing content of second protocol;
S209, the second agent of second communication party issues the first agent of first communication party by based on accessing content of second protocol;
S210, the first agent of first communication party receives accessing content based on second protocol;
S211, the first agent of first communication party issues the 3rd application of first communication party by based on accessing content of second protocol;
S212, the 3rd application is converted to accessing content and issuing another the first loopback port of first communication party based on the first agreement by based on accessing content of second protocol;
S213, the first application of first communication party is from another loopback port accepts accessing content based on the first agreement.
3rd application, the 4th application are a kind of conversion programs, for mutually changing the visit data based on different agreements.
The first loopback port, another the first loopback port binding that first communication party when the access mode of second communication party and access second communication party uses by the second agent of second communication party, and the first agent access mode of the second communication party of binding and the first loopback port, another the first loopback port being sent to first communication party by the server managing first communication party and second communication party.
Loopback port is the virtual port on equipment, and address realm is 127.0.0.1 to 127.255.255.254, sends to the access request of loopback port or access content to pass through external network interface.
First communication party is connected with the P2P that second communication party sets up, the second loopback port that second communication party uses can be identical with the address of another the first loopback port with the first loopback port that first communication party uses with the address of another the second loopback port, also can be different.If at least two methods is connected with the application in second communication party in first communication party simultaneously, each application sends by the first loopback port the access request changed through the 3rd application to first agent, receive from first agent the accessing content through the 3rd application conversion that second communication party returns by another the first loopback port, vice versa.
In addition, first communication party can be set up P2P with multiple network node simultaneously be connected, and each connection takies two loopback ports for the digital received and sent between application program and agency, and the loopback port address that different connections uses is different.In like manner can release second communication party and multiple network node and set up the situation that P2P is connected.
P2P between distinct device can be connected and call in " tunnel ", there are 2 end points in tunnel: arrival end and the port of export.Be similar to the C/S model of TCP, the port of export in tunnel is equivalent to the server end of TCP (intercepting end), and arrival end is equivalent to the client of TCP.The arrival end in every bar tunnel can associate multiple stage computer, and the port of export can only associate a computer, forms the constructing communication network of one-to-many; Can add many tunnels, a computer can associate many tunnels simultaneously, is associated in arrival end or the port of export.A computer can simultaneously as TCP client and TCP server end.
3rd embodiment of network communication method of the present invention, on the basis of network communication method second embodiment of the present invention, the 3rd application integration of first communication party is in the first agent of first communication party; 4th application integration of second communication party is in the second agent of second communication party; First agreement is Transmission Control Protocol, and second protocol is udp protocol, and the 3rd agreement is Transmission Control Protocol.
By the enforcement of above-described embodiment, equipment is not set up P2P at the network node of same Intranet by the Agent of independent operating with other and is connected, by the mutual conversion to the visit data based on udp protocol and Transmission Control Protocol, HTTP, FTP based on Transmission Control Protocol can be used under P2P is connected with services such as SSH, SSTP.
In real work situation, before network service, a computer A first to be used as website and database server, first PHP and MYSQL, Apache/Nginx are installed.Then P2P software (second agent) is installed, the mark of configuration P2P software (second agent), and arranging communication protocol type is TCP, P2P is set and connects into port address/port (the first loopback port), such as: 127.0.0.10:80, exit address/port (another the first loopback port), such as 127.0.0.1:80; Another computer B also installs p2p software (first agent), and the mark of configuration P2P software (first agent), final both sides confirm that the mark of P2P software is identical, build peer-to-peer network.
When real network communicates, computer B opens local WEB client side, http is inputted: // 127.0.0.10:80/ in the address field of local WEB client side, namely WEB client side sends the access request based on Transmission Control Protocol (the first agreement), P2P software on computer B is converted to the access request based on udp protocol (second protocol), access request based on udp protocol (second protocol) is sent on server by P2P software, P2P software receipt on server is to based on the access request of udp protocol (second protocol) and the access request be converted to based on Transmission Control Protocol, WEB service termination on server receives the access request based on Transmission Control Protocol and responds access request and returns accessing content based on Transmission Control Protocol, the P2P software receipt of server is converted into accessing content and sending to computer B based on udp protocol (second protocol) to based on after the accessing content of Transmission Control Protocol (the 3rd agreement), P2P software receipt on computer B is converted into accessing content and issuing WEB client side based on Transmission Control Protocol (the first agreement) to based on after the accessing content of udp protocol (second protocol), WEB client side receives accessing content based on Transmission Control Protocol (the first agreement), the i.e. web homepage of correspondence that provides of WEB service end.Here the 3rd agreement can also be DCCP agreement, Stream Control Transmission Protocol Real-time Transport Protocol.
With reference to Fig. 3, the 4th embodiment of network communication method of the present invention comprises:
S301, the same second agent identified that has of the first agent with mark of first communication party and second communication party sets up P2P and connects;
S302, is converted to the access request based on second protocol by the access request based on the first agreement of the first application coming from first communication party;
S303, is sent to the second agent of second communication party by the access request based on second protocol by the first agent of first communication party; The described access request based on second protocol is received to make the second agent of second communication party;
Wherein first agent is independent of the first application.
By the enforcement of above-described embodiment, between the equipment of same Intranet, do not set up P2P by the Agent of independent operating to connect, by the mutual conversion to the visit data based on different agreement, transport services based on different agreement can be used under P2P connects, and first communication party is able to the visit data based on the first agreement to send.
With reference to Fig. 4, the 5th embodiment of network communication method of the present invention, on the basis of network communication method of the present invention 4th embodiment, also comprises:
S401, the first agent of first communication party receives the accessing content based on second protocol of sending from the second agent of second communication party;
S402, is converted to accessing content based on the first agreement by what come from the first agent of first communication party based on accessing content of second protocol;
S403, the first application of first communication party receives accessing content based on the first agreement.
By the enforcement of above-described embodiment, between the equipment of same Intranet, do not set up P2P by the Agent of independent operating to connect, by the mutual conversion to the visit data based on different agreement, transport services based on different agreement can be used under P2P connects, and first communication party can receive the visit data based on second protocol and be become the discernible visit data based on the first agreement of the first application.
6th embodiment of network communication method of the present invention, on the basis of network communication method of the present invention 4th embodiment, the first agreement is Transmission Control Protocol, and second protocol is udp protocol, and the present embodiment can combine with the fifth embodiment of the present invention.
By the enforcement of above-described embodiment, equipment is not set up P2P at the network node of same Intranet by the Agent of independent operating with other and is connected, by the mutual conversion to the visit data based on udp protocol and Transmission Control Protocol, the service such as HTTP with FTP based on Transmission Control Protocol can be used under P2P is connected.
With reference to Fig. 5, the 7th embodiment of network communication method of the present invention comprises:
S501, the same second agent identified that has of the first agent with mark of first communication party and second communication party sets up P2P and connects;
S502, the second agent of second communication party receives the access request based on second protocol sent from the first agent of first communication party;
S503, is converted to the access request based on the 3rd agreement by the access request based on second protocol coming from the second agent of second communication party;
S504, second application of second communication party receives the access request based on the 3rd agreement, and the second application completing second communication party receives the process of data from the first application of first communication party.
Wherein second agent is independent of the second application.
By the enforcement of above-described embodiment, between the equipment of same Intranet, do not set up P2P by the Agent of independent operating to connect, by the mutual conversion to the visit data based on different agreement, transport services based on different agreement can be used under P2P connects, and second communication party can receive the visit data based on second protocol and be become the discernible visit data based on the 3rd agreement of the second application.
With reference to Fig. 6, the 8th embodiment of network communication method of the present invention, on the basis of network communication method of the present invention 7th embodiment, also comprises:
S601, the access request that second application of second communication party responds based on the 7th agreement sends accessing content based on the 3rd agreement;
S602, that applies come from second communication party second is converted to accessing content based on second protocol based on the 3rd accessing content of agreement;
S603, issues the first agent of first communication party by the second agent of second communication party by based on accessing content of second protocol.
By the enforcement of above-described embodiment, between the equipment of same Intranet, do not set up P2P by the Agent of independent operating to connect, by the mutual conversion to the visit data based on different agreement, transport services based on different agreement can be used under P2P connects, and second communication party is able to the visit data based on the 3rd agreement to send.
9th embodiment of network communication method of the present invention, on the basis of network communication method of the present invention 7th embodiment, second protocol is udp protocol, and the 3rd agreement is Transmission Control Protocol, and the embodiment of the present invention can combine with eighth embodiment of the invention.
By the enforcement of above-described embodiment, equipment is not set up P2P at the network node of same Intranet by the Agent of independent operating with other and is connected, by the mutual conversion to the visit data based on udp protocol and Transmission Control Protocol, the service such as HTTP with FTP based on Transmission Control Protocol can be used under P2P etc. is connected.
With reference to Fig. 7, the first embodiment of present device comprises: processor and network communications circuits; Processor for running the first agent 10 with mark, to set up P2P between the same second agent identified connect with having of opposite end; Processor also for running the first application 11, to send the access request based on the first agreement; Processor also for running the 3rd application 12, the access request based on the first agreement to be converted to the access request based on second protocol, and exports the described access request based on second protocol to network communications circuits by first agent 10; Access request based on second protocol is issued the second agent of opposite end by network communications circuits, to make the access request of second agent's reception based on second protocol of opposite end; Wherein first agent 10 is independent of the first application 11.
By the enforcement of above-described embodiment, equipment is not set up P2P at the network node of same Intranet by the Agent of independent operating with other and is connected, 3rd application 12, by the mutual conversion to the visit data based on udp protocol and Transmission Control Protocol, makes the transport services based on different agreement can use under P2P connects.
With reference to Fig. 8, the second embodiment of present device, on the basis of present device first embodiment, the first application 21 sends access request to the first loopback port 23 based on the first agreement; The access request based on the first agreement of the first loopback port 23 coming from first communication party is converted to the access request based on second protocol by the 3rd application 22; Further, the 3rd application 22 is integrated in first agent 20.
With reference to Fig. 9, the 3rd embodiment of present device comprises: processor and network communications circuits; Processor, for running the second agent 30 with mark, to set up P2P between the same first agent identified connect with having of opposite end, and receives the access request based on second protocol sent from the first agent of opposite end by network communications circuits; Processor also applies 31, the access request based on second protocol of the second agent 30 coming from second communication party to be converted to the access request based on the 3rd agreement for running the 4th; Processor also for running the second application 32, to receive the access request based on the 3rd agreement; Wherein second agent 30 is independent of the second application 32.
By the enforcement of above-described embodiment, equipment is not set up P2P at the network node of same Intranet by the Agent of independent operating with other and is connected, 4th application 31, by the mutual conversion to the visit data based on udp protocol and Transmission Control Protocol, makes the transport services based on different agreement can use under P2P connects.
With reference to Figure 10,4th embodiment of present device, on the basis of the 3rd embodiment, the access request based on second protocol of the second agent 40 coming from second communication party is converted to the access request based on the 3rd agreement by the 4th application 41, and the access request based on the 3rd agreement is issued the second loopback port 42; Second application 43 receives the access request based on the 3rd agreement in the second loopback port 42; Further, the 4th application 41 is integrated in second agent 40.
With reference to Figure 11, the first embodiment of network attached storage equipment of the present invention, comprising: processor 50, hard disk 51 and routing circuit 52, hard disk 50 and routing circuit 52 connection handling device 50 respectively; The wan interface of routing circuit 52 connects Internet, and LAN interface connects Intranet equipment respectively, and completes visit data and wrap in transmission between processor 50 and corresponding interface.Processor 50 for exchanging routing information, search routing table and forward visit data bag, coordinate routing circuit 52 to realize the interconnection of local area network (LAN) and wide area network, the process of visit data and the routing function such as distribution, flow control; Processor 50 also for running the first agent with mark, to set up P2P between the same second agent identified connect with having of opposite end; Processor 50 also for running the first application, to send the access request based on the first agreement; Processor 50 is also for running the 3rd application, the access request based on the first agreement of the first application coming from first communication party to be converted to the access request based on second protocol, and export the access request based on second protocol to routing circuit 52 by first agent; Access request based on second protocol is issued the second agent of opposite end by routing circuit 52, to make the access request of second agent's reception based on second protocol of opposite end; Wherein an agency is independent of the first application.
Network attached storage is not set up P2P at the network node of same Intranet by the Agent of independent operating with other and is connected, conversion program is by the mutual conversion to the visit data based on different agreement, transport services based on different agreement can be used under P2P connects, and the visit data based on the first agreement can be changed into the visit data based on second protocol and send by network attached storage equipment.
With reference to Figure 12, network attached storage equipment second embodiment of the present invention, comprising: processor 60, hard disk 61 and routing circuit 62, hard disk 61 and routing circuit 62 connection handling device 60 respectively; The wan interface of routing circuit 62 connects Internet, and LAN interface connects Intranet equipment respectively, and completes visit data and wrap in transmission between processor 60 and corresponding interface.Processor 60 for exchanging routing information, search routing table and forward visit data bag, coordinate routing circuit 62 to realize the interconnection of local area network (LAN) and wide area network, the process of data and the routing function such as distribution, flow control; Processor 60, also for running the second agent with mark, to set up P2P between the same first agent represented connect with having of opposite end, and receives the access request based on second protocol sent from the first agent of opposite end by routing circuit 62; Processor 60 also for running the 4th application, is converted to the access request based on the 3rd agreement with the access request based on second protocol of the second agent by coming from second communication party; Processor 60 also for running the second application, to receive the access request based on the 3rd agreement; Wherein second agent is independent of the second application.
Network attached storage is not set up P2P at the network node of same Intranet by the Agent of independent operating with other and is connected, conversion program is by the mutual conversion to the visit data based on different agreement, transport services based on different agreement can be used under P2P connects, and the visit data based on second protocol that reception comes can be changed into the visit data based on the 3rd agreement by network attached storage equipment.
The foregoing is only embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (16)

1. a network communication method, is characterized in that, comprising:
The same second agent identified that has of the first agent with mark of first communication party and second communication party sets up P2P and connects;
The access request based on the first agreement of the first application coming from described first communication party is converted to the access request based on second protocol;
By the first agent of described first communication party, the described access request based on second protocol is sent to the second agent of described second communication party;
The second agent of described second communication party receives the described access request based on second protocol;
The access request based on second protocol coming from the second agent of described second communication party is converted to the access request based on the 3rd agreement;
Second application of described second communication party receives the described access request based on the 3rd agreement, and the described access request based on the 3rd agreement of response sends accessing content based on the 3rd agreement;
Accessing content based on second protocol is converted to based on the 3rd accessing content of agreement described in applying come from described second communication party second;
The first agent of described first communication party is issued described based on accessing content of second protocol by the second agent of described second communication party;
The first agent of described first communication party receives described accessing content based on second protocol;
Accessing content based on the first agreement is converted to based on accessing content of second protocol described in the first agent coming from described first communication party;
First application of described first communication party receives described accessing content based on the first agreement;
Wherein said first agent is independent of described first application, and described second agent is independent of described second application.
2. method according to claim 1, is characterized in that,
The described step that is converted to based on the access request of second protocol of the access request based on the first agreement by the first application coming from described first communication party comprises:
The described access request based on the first agreement is issued one first loopback port of described first communication party by the first application of described first communication party;
3rd application of described first communication party obtains the described access request based on the first agreement from described first loopback port and is converted to the described access request based on second protocol, and the described access request based on second protocol is issued the first agent of described first communication party;
Described the step accessed content be converted to based on the first agreement that accesses content based on second protocol coming from the first agent of described first communication party to be comprised:
The first agent of described first communication party issues the 3rd application of described first communication party by described based on accessing content of second protocol, and described 3rd application is converted to described accessing content and issuing another the first loopback port of described first communication party based on the first agreement by described based on accessing content of second protocol;
First application of described first communication party receives the described step accessed content based on the first agreement and comprises:
First application of described first communication party is from accessing content based on the first agreement described in another the first loopback port accepts of described first communication party.
3. method according to claim 2, is characterized in that,
One first loopback port, another the first loopback port binding that described first communication party when the access mode of described second communication party and the described second communication party of access uses by the second agent of described second communication party, and the first agent access mode of the described second communication party of described binding and described first loopback port, another the first loopback port described being sent to described first communication party by the server managing described first communication party and described second communication party.
4. method according to claim 2, is characterized in that,
3rd application integration of described first communication party is in described first agent.
5. the method according to any one of claim 1-4, is characterized in that,
Described first agreement is Transmission Control Protocol, and described second protocol is udp protocol.
6. the method according to any one of claim 1-4, is characterized in that,
Described 3rd agreement is Transmission Control Protocol.
7. a network communication method, is characterized in that, comprising:
The same second agent identified that has of the first agent with mark of first communication party and second communication party sets up P2P and connects;
The access request based on the first agreement of the first application coming from described first communication party is converted to the access request based on second protocol;
By the first agent of described first communication party, the described access request based on second protocol is sent to the second agent of described second communication party; The described access request based on second protocol is received to make the second agent of described second communication party;
Wherein said first agent is independent of described first application.
8. method according to claim 7, is characterized in that, described method also comprises:
The first agent of described first communication party receives the accessing content based on second protocol of sending from the second agent of described second communication party;
Accessing content based on the first agreement is converted to based on accessing content of second protocol by what come from the first agent of described first communication party;
First application of described first communication party receives described accessing content based on the first agreement.
9. the method according to claim 7 or 8, is characterized in that,
Described first agreement is Transmission Control Protocol, and described second protocol is udp protocol.
10. a network communication method, is characterized in that, comprising:
The same second agent identified that has of the first agent with mark of first communication party and second communication party sets up P2P and connects;
The second agent of described second communication party receives the access request based on second protocol sent from the first agent of described first communication party;
The access request based on second protocol coming from the second agent of described second communication party is converted to the access request based on the 3rd agreement;
Second application of described second communication party receives the described access request based on the 3rd agreement;
Wherein said second agent is independent of described second application.
11. methods according to claim 10, is characterized in that, described method also comprises:
The described access request based on the 3rd agreement of second application response of described second communication party sends accessing content based on the 3rd agreement;
Accessing content based on second protocol is converted to based on the 3rd accessing content of agreement described in applying come from described second communication party second;
The first agent of described first communication party is issued described based on accessing content of second protocol by the second agent of described second communication party.
12. methods according to claim 10 or 11, is characterized in that,
Described second protocol is udp protocol, and described 3rd agreement is Transmission Control Protocol.
13. 1 kinds of equipment, is characterized in that, comprising:
Processor and network communications circuits;
Described processor has the first agent of mark for running, to be set up P2P between the same second agent identified connected by having of described network communications circuits and opposite end;
Described processor also for running the first application, to be sent the access request based on the first agreement by described network communications circuits;
Described processor is also for running the 3rd application, the access request based on the first agreement coming from described first application to be converted to the access request based on second protocol, and export the described access request based on second protocol to described network communications circuits by described first agent;
The described access request based on second protocol is issued the second agent of described opposite end by described network communications circuits, receives the described access request based on second protocol to make the second agent of described opposite end;
Wherein said first agent is independent of described first application.
14. 1 kinds of equipment, is characterized in that, comprising:
Processor and network communications circuits;
Described processor has the second agent of mark for running, to set up P2P between the same first agent identified connect by having of described network communications circuits and opposite end, and received the access request based on second protocol sent from the first agent of described opposite end by described network communications circuits;
Described processor also for running the 4th application, the access request based on second protocol coming from described second agent to be converted to the access request based on the 3rd agreement;
Described processor also for running the second application, to receive the described access request based on the 3rd agreement;
Wherein said second agent is independent of described second application.
15. 1 kinds of network attached storage equipment, is characterized in that, comprising:
Processor, hard disk and routing circuit, described hard disk and routing circuit are connected described processor respectively;
Described processor is used for operation and has mark first agent, to be set up P2P between the same second agent identified connected by having of described routing circuit and opposite end;
Described processor also for running the first application, to be sent the access request based on the first agreement by described routing circuit;
Described processor is also for running the 3rd application, the access request based on the first agreement coming from described first application to be converted to the access request based on second protocol, and export the described access request based on second protocol to described routing circuit by described first agent;
The described access request based on second protocol is issued the second agent of described opposite end by described routing circuit, receives the described access request based on second protocol to make the second agent of described opposite end;
Wherein said first agent is independent of described first application.
16. 1 kinds of network attached storage equipment, is characterized in that, comprising:
Processor, hard disk and routing circuit, described hard disk and routing circuit are connected described processor respectively;
Described processor is used for operation and has mark second agent, to set up P2P between the same first agent identified connect by having of described routing circuit and opposite end, and received the access request based on second protocol sent from the first agent of described opposite end by described routing circuit;
Described processor also for running the 4th application, the access request based on second protocol coming from described second agent to be converted to the access request based on the 3rd agreement;
Described processor also for running the second application, to receive the described access request based on the 3rd agreement;
Wherein said second agent is independent of described second application.
CN201510643804.8A 2015-09-30 2015-09-30 Network communication method, equipment and network attached storage equipment Active CN105323310B (en)

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 true CN105323310A (en) 2016-02-10
CN105323310B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254434A (en) * 2016-07-28 2016-12-21 武汉华星光电技术有限公司 A kind of network attached storage apparatus and method for
WO2017054446A1 (en) * 2015-09-30 2017-04-06 深圳市先河系统技术有限公司 Network communication method, device, and network attached storage device
WO2017162043A1 (en) * 2016-03-22 2017-09-28 阿里巴巴集团控股有限公司 Access method, configuration method and apparatus used for inter-device service
CN110381028A (en) * 2019-06-19 2019-10-25 视联动力信息技术股份有限公司 A kind of data transmission method and view networked server
CN110545320A (en) * 2019-08-23 2019-12-06 浙江大华技术股份有限公司 Intranet data interaction method and equipment
CN110661820A (en) * 2019-12-02 2020-01-07 武汉慧联无限科技有限公司 Internet of things data processing method and device, equipment and storage medium
CN111835728A (en) * 2020-06-15 2020-10-27 广州海颐信息安全技术有限公司 Method and device for accessing real network and protocol by hiding privilege
CN113381971A (en) * 2020-03-10 2021-09-10 阿里巴巴集团控股有限公司 Data downloading method, device, system, electronic equipment and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1517900A (en) * 2003-01-24 2004-08-04 ������������ʽ���� Method and device for reciprocal access
US20080004974A1 (en) * 2006-06-29 2008-01-03 Microsoft Corporation Electronic commerce transactions over a peer-to-peer communications channel
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 (6)

* Cited by examiner, † Cited by third party
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
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
US20080004974A1 (en) * 2006-06-29 2008-01-03 Microsoft Corporation Electronic commerce transactions over a peer-to-peer communications channel
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

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017054446A1 (en) * 2015-09-30 2017-04-06 深圳市先河系统技术有限公司 Network communication method, device, and network attached storage device
US10771307B2 (en) 2016-03-22 2020-09-08 Alibaba Group Holding Limited Method and system for inter-device service access
WO2017162043A1 (en) * 2016-03-22 2017-09-28 阿里巴巴集团控股有限公司 Access method, configuration method and apparatus used for inter-device service
CN107222326A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 Access method, collocation method and the device serviced for equipment room
CN106254434A (en) * 2016-07-28 2016-12-21 武汉华星光电技术有限公司 A kind of network attached storage apparatus and method for
CN110381028A (en) * 2019-06-19 2019-10-25 视联动力信息技术股份有限公司 A kind of data transmission method and view networked server
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
CN110661820A (en) * 2019-12-02 2020-01-07 武汉慧联无限科技有限公司 Internet of things data processing method and device, equipment and storage medium
CN110661820B (en) * 2019-12-02 2020-04-28 武汉慧联无限科技有限公司 Internet of things data processing method and device, equipment and storage medium
CN113381971A (en) * 2020-03-10 2021-09-10 阿里巴巴集团控股有限公司 Data downloading method, device, system, electronic equipment and computer storage medium
CN113381971B (en) * 2020-03-10 2023-04-07 阿里巴巴集团控股有限公司 Data downloading method, device, system, electronic equipment and computer storage medium
CN111835728A (en) * 2020-06-15 2020-10-27 广州海颐信息安全技术有限公司 Method and device for accessing real network and protocol by hiding privilege
CN111835728B (en) * 2020-06-15 2023-09-01 广州海颐信息安全技术有限公司 Method and device for hiding privileges to access real network and protocol

Also Published As

Publication number Publication date
WO2017054446A1 (en) 2017-04-06
CN105323310B (en) 2018-11-09

Similar Documents

Publication Publication Date Title
CN105323310A (en) Network communication method, device and network attached storage device
CN105591819B (en) The method and device of Configuration network equipment
CN104734931A (en) Method and device for establishing link between virtual network functions
EP3720075B1 (en) Data transmission method and virtual switch
CN102638582B (en) Data communicating method and communication end
CN103780467B (en) communication connection method, communication device and communication system
CN104394080A (en) Method and device for achieving function of security group
CN105376299A (en) A network communication method, an apparatus and a network attached storage apparatus
CN102845123A (en) Virtual private cloud connection method and tunnel proxy server
JP2006262193A (en) Controller, packet transferring method, and packet processor
CN105556929A (en) Network element and method of running applications in a cloud computing system
CN104519129A (en) Data transmission method, device and system
CN104811922A (en) Adjacent node registration method and the device and cross-node registration method and system
CN102811219A (en) Method for remotely accessing desktop of computer in intranet across network segments in cluster system
CN105656964B (en) The implementation method and device of data-pushing
CN110266766A (en) A kind of construction method, system and the terminal device of attack resistance distributed network node
CN110392066A (en) A kind of method and apparatus of access service
CA2931906A1 (en) Systems and methods for determining a destination location in a network system
CN104683403A (en) Method, resource server and system for resource sharing
CN104932452A (en) Method used for aviation bus tester remote control and system used for aviation bus tester remote control
CN102647432A (en) Authentication information transmission method, device and authentication middleware
CN103401954B (en) The implementation method of virtual DHCP
CN104539586A (en) Session management method and device
CN102983988A (en) Equipment agent device and network management device
CN104639557A (en) Method and system for establishing PCEP (Path Computation Element Communication Protocol) session and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant