CN104184636B - Establish method, IP hard disks and the server of connection - Google Patents

Establish method, IP hard disks and the server of connection Download PDF

Info

Publication number
CN104184636B
CN104184636B CN201410410676.8A CN201410410676A CN104184636B CN 104184636 B CN104184636 B CN 104184636B CN 201410410676 A CN201410410676 A CN 201410410676A CN 104184636 B CN104184636 B CN 104184636B
Authority
CN
China
Prior art keywords
server
hard disks
tcp connection
connection request
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
Application number
CN201410410676.8A
Other languages
Chinese (zh)
Other versions
CN104184636A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410410676.8A priority Critical patent/CN104184636B/en
Publication of CN104184636A publication Critical patent/CN104184636A/en
Application granted granted Critical
Publication of CN104184636B publication Critical patent/CN104184636B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention discloses a kind of method that connection is established between IP hard disks and server, IP hard disks and server.The method that connection is established between IP hard disks and server includes:The TCP connection request of TCP connection is established in the generation of IP hard disks for request between the IP hard disks and the server;The IP hard disks send the TCP connection to the server and ask;The IP hard disks receive the TCP connection request response that the server is sent, and TCP connection is established between the server.

Description

Establish method, IP hard disks and the server of connection
Technical field
The present invention relates to technical field of memory more particularly to a kind of method, IP hard disks and servers for establishing connection.
Background technology
The basic medium that hard disk is stored as data, is just responsible for important role from the date of birth.Seagate Innovation all determines the variations of the superstructures such as data center every time, and this changes that bring is enterprise for itself business The reduction in promotion and cost in efficiency.In the big data epoch, with the storage demand of mass data, user needs faster Transmission speed, more energy efficient hardware device help these data of their storage managements.
IP hard disks are just to provide the hard disk of IP agreement interface, it abandons the traditional interface and consensus standard of hard disk completely, Data are transferred between server using simpler general IP ethernet technologys.Server and hard is caused using IP interfaces Interconnection between disk is simpler, is limited almost without distance.
The method that connection is established between existing IP hard disks and server is as follows:The first step, when IP hard disk insertion groove positions or When powering on for the first time, IP hard disks send the request of distribution IP address to proxy server;Second step, proxy server receive distribution IP After the request of address, IP address is distributed to IP hard disks, and simultaneously by the information reportings server such as IP address of IP hard disks;3rd Step, server establish asking for TCP connection after the information for the IP hard disks that proxy server reports is received, to IP hard disks transmission It asks;4th, after IP hard disks receive request, the request is responded, establishes TCP connection with the server so that the server Operation program can call the data of the IP hard disks.
However, according to Transmission Control Protocol, the port of a transmitting terminal can be consumed by sending a TCP connection request, therefore, In aforesaid way, TCP connection often is established with an IP hard disk, can consume a port of the server, causes needing When the IP hard disks to be connected are more, the problem of port number for the server occur is unsatisfactory for use demand.
The content of the invention
The embodiment of the present application provides a kind of method that connection is established between IP hard disks and server, IP hard disks and server, In the prior art when the IP hard disks for needing to connect are more for solving, the port number for the server occur is discontented with The technical issues of sufficient use demand.
First aspect of the embodiment of the present invention provides a kind of method that connection is established between IP hard disks and server, the method Including:The TCP connection request of TCP connection is established in the generation of IP hard disks for request between the IP hard disks and the server; The IP hard disks initiate to send the TCP connection request to the server;The IP hard disks receive what the server was sent TCP connection request response, TCP connection is established between the server.
In first aspect in the first possible realization method, the transmission TCP is initiated to server in the IP hard disks Before connection request, the method further includes:The IP hard disks receive the notification information that the server is sent, the notice letter It ceases to notify the IP hard disks that can initiate to send TCP connection request to the server.
With reference to first aspect, the possible realization method of the first of first aspect, in second of possible reality of first aspect In existing mode, before the IP hard disks initiate to send the TCP connection request to server, the method further includes:It is described IP hard disks receive the datagram that the server is sent, the end that the datagram includes the IP address of the IP hard disks and monitors Mouthful.
Second aspect of the embodiment of the present invention provides a kind of method that connection is established between IP hard disks and server, the method Including:Server receives IP hard disks and initiates the TCP connection sent request, and the TCP connection request is hard in the IP for asking The TCP connection request of TCP connection is established between disk and the server;The server responds the TCP connection request, with institute It states and establishes TCP connection between IP hard disks.
In second aspect in the first possible realization method, receive IP hard disks in the server and initiate being used for for transmission Request is established between the IP hard disks and the server before the TCP connection request of TCP connection, and the method further includes: The server sends notification information to the IP hard disks, and the notification information is used to notify the IP hard disks can be to the clothes Device initiation transmission TCP connection of being engaged in is asked.
With reference to the first possible realization method of second aspect, second aspect, in second of possible reality of second aspect In existing mode, it is used to ask between the IP hard disks and the server what server reception IP hard disks initiated to send It establishes before the TCP connection request of TCP connection, the method further includes:The server sends datagram to the IP hard disks, The port that the datagram includes the IP address of the IP hard disks and monitors.
The third aspect of the embodiment of the present invention provides a kind of IP hard disks, and the IP hard disks include:Generation unit is used for generating The TCP connection request of TCP connection is established between the IP hard disks and the server in request;Transmitting element is initiated, is used for The TCP connection request has been sent to the server;Receiving unit is responded, is connected for receiving the TCP that the server is sent Request response is connect, TCP connection is established between the server.
In the third aspect in the first possible realization method, the IP hard disks further include:Notification receiving unit, for connecing The notification information that the server is sent is received, the notification information is used to notify the IP hard disks that can initiate to the server Send TCP connection request.
With reference to the first possible realization method of the third aspect, the third aspect, in second of possible reality of the third aspect In existing mode, the IP hard disks further include:Receiving unit is reported, for receiving the datagram that the server is sent, the data The port that report includes the IP address of the IP hard disks and monitors.
Fourth aspect of the embodiment of the present invention provides a kind of server, and the server includes:Receiving unit, for receiving IP Hard disk initiates the TCP connection request for establishing TCP connection between the IP hard disks and the server for request sent, institute TCP connection request is stated for asking to establish TCP connection between the IP hard disks and the server;Response unit, for ringing The TCP connection is answered to ask, TCP connection is established between the IP hard disks.
In fourth aspect in the first possible realization method, the server further includes:Notify transmitting element, for The IP hard disks send notification information, and the notification information is used to notify the IP hard disks that can initiate to send to the server TCP connection is asked.
With reference to the first possible realization method of fourth aspect, fourth aspect, in second of possible reality of fourth aspect In existing mode, the server further includes:Report transmitting element, for sending datagram to the IP hard disks, the datagram bag The port for including the IP address of the IP hard disks and monitoring.
A kind of method that connection is established between IP hard disks and server of the embodiment of the present invention, IP hard disks and server, in institute When stating IP hard disks with server foundation connection, TCP connection is sent to the server by the IP hard disks and is asked, because This, the server often establishes TCP connection with an IP hard disk, a port of the IP hard disks can be consumed, without disappearing The a port of the server is consumed, even if so as to when needing the IP hard disks that connect more, the port number of the server Amount can also meet use demand, so as to solve in the prior art since the server often establishes TCP with an IP hard disk Connection, will consume a port of the server, cause, when the IP hard disks that needs connect are more, the service occur The technical issues of port number of device is unsatisfactory for use demand.
Description of the drawings
Fig. 1 is the flow chart for the method that one embodiment of the application establishes connection between IP hard disks and server;
Fig. 2 is the flow chart for the method that another embodiment of the application establishes connection between IP hard disks and server;
Fig. 3 is the physical arrangement connection relationship diagram of the application IP hard disks and server;
Fig. 4 is the flow chart for the method that the another embodiment of the application establishes connection between IP hard disks and server;
Fig. 5 is the flow chart for the method that one embodiment of the application (IP hard disks side) establishes connection;
Fig. 6 is the flow chart for the method that one embodiment of the application (server side) establishes connection;
Fig. 7 is the structural schematic block diagram of one embodiment IP hard disks of the application;
Fig. 8 is the structural schematic block diagram of one embodiment server of the application;
Fig. 9 is the structure diagram of the another embodiment IP hard disks of the application;
Figure 10 is the structure diagram of the another embodiment server of the application.
Specific embodiment
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper Technical solution is stated to be described in detail.
It is described below in conjunction with IP hard disks and/or server.In order to be better understood from technical scheme, under Face introduces the method that connection is established in interaction between IP hard disks and server, technical scheme is described first.Such as figure Shown in 1, the flow chart of the method for connection is established between IP hard disks and server for the first better embodiment of the application.It is described to build The method of vertical connection is applied between the IP hard disks and server.The method for establishing connection comprises the following steps:
Step 110, the IP hard disks generation establishes TCP connection for request between the IP hard disks and the server TCP connection request.
IP, English full name be Internet Protocol, the agreement that Chinese full name interconnects between network.IP hard disks are A kind of hard disk being connected by Ethernet interface with server, IP hard disks can be assigned corresponding IP address.TCP, English full name For Transmission Control Protocol, Chinese full name is transmission control protocol.
The IP hard disks can actively generate a TCP connection request, and a TCP can also be just generated under the conditions of certain and is connected Connect request.In the present embodiment, the IP hard disks are asked to actively generate a TCP connection.In generation TCP connection request Afterwards, step 120 is performed.
Step 120, the IP hard disks send the TCP connection to the server and ask.That is, TCP connection please Seeking Truth is actively sent by IP hard disks, and according to Transmission Control Protocol, the end of a transmitting terminal can be consumed by sending a TCP connection request Mouthful, therefore, a port of IP hard disks can be consumed at this time.
Step 130, server receives the TCP connection request that IP hard disks are sent, and the TCP connection request is used to ask in institute It states and establishes TCP connection between IP hard disks and the server.
Step 140, the server responds the TCP connection request, and TCP connection is established between the IP hard disks.
Step 150, the IP hard disks receive the TCP connection request response that the server is sent, with the server it Between establish TCP connection.
The IP hard disks send the TCP connection request, and the server simply receives and respond the TCP connection please It asks, without sending the TCP connection request, therefore, according to Transmission Control Protocol, transmitting terminal can be consumed by sending a TCP connection request Port, therefore the port without consuming a receiving terminal, after this method, will not consume the port of server.
By taking current Transmission Control Protocol as an example, the step of establishing TCP connection is specifically described:
First, SYN bags (the TCP companies of TCP connection are established in generation for request in client (IP hard disks) between server Connect request);
Then, client (IP hard disks) is by SYN bags (SYN=j) to server, and enters SYN_SEND states, waits clothes Business device confirms;
Again, server receives the SYN (ACK=j+1) that client must be confirmed after SYN bags, while oneself also sends SYN bags (SYN=k), i.e. SYN+ACK bags, at this point, server enters SYN_RECV states;
Finally, client (IP hard disks) receives the SYN+ACK bags of server, is sent to server and confirms bag ACK (ack=k + 1), this bag is sent, and client and server enters ESTABLISHED states, completes TCP connection, client (IP hard disks) Start to transmit data with server.
Therefore, the method for above-mentioned foundation connection when the IP hard disks and the server are established and connected, passes through the IP Hard disk sends TCP connection request to the server, and therefore, the server often establishes TCP connection with an IP hard disk, can disappear The a port of the IP hard disks is consumed, a port without consuming the server, even if so as to need to connect IP hard disks it is more when, the port number of the server can also meet use demand, so as to solve in the prior art by TCP connection often is established with an IP hard disk in the server, a port of the server will be consumed, causes needing When the IP hard disks to be connected are more, the technical issues of port number for the server occur is unsatisfactory for use demand.
Based on same inventive concept, the application also provides a kind of method for establishing connection.Fig. 2 is another implementation of the application Mode (IP hard disks and server interaction) establishes the flow chart of the method for connection.This method and embodiment (the IP hard disks in Fig. 1 With server interact) establish connection method difference lies in:Before the step 110, the method for establishing connection is also Comprise the following steps:
Step 210, the server sends notification information to the IP hard disks, and the notification information is used to notify the IP Hard disk can send TCP connection request to the server.The notification signal can be continuous digital signal, pulse signal Deng such as 0101.
Step 220, the server sends datagram to the IP hard disks, and the datagram includes the IP of the IP hard disks Address and the port monitored.In the present embodiment, the datagram is UDP (User Datagram Protocol, number of users According to report), UDP is a kind of a kind of data encapsulation format used in TCP/IP network transmission layers.In other embodiments, institute Stating datagram includes being the datagram of other encapsulation format, such as:
In the present embodiment, the IP disks listening port number and 32 IP hard disk IP address that the content of data is 16.
Step 230, the IP hard disks receive the notification information that the server is sent, and the notification information is used to notify institute TCP connection request can be sent to the server by stating IP hard disks.
Step 240, the IP hard disks receive the datagram that the server is sent, and the datagram includes the IP hard disks IP address and monitor port.
After the IP hard disks receive the datagram of the server transmission or IP hard disks receive the server hair After the notification information sent or after IP hard disks receive datagram and the notification information of the server transmission, step is performed Rapid 110.That is, in the present embodiment, the IP hard disks are that a TCP connection request is just being generated under the conditions of certain. In the present embodiment, " certain condition " refers to that the IP hard disks receive the datagram of the server transmission or IP hard disks connect Receive notification information or the datagram and notification information in the IP hard disks reception server transmission that the server is sent.
In above-mentioned steps, after must be positioned at step 210 except the step 230, the step 240 must be positioned at step Outer after rapid 220, other orders can be exchanged or be carried out at the same time.Such as:The step 210 and the step 220 it is suitable Sequence can be exchanged or is carried out at the same time;The order of the step 230 and step 240 can also be exchanged or is carried out at the same time; When the step 220 is located at after step 210, the order of the step 220 and step 230 can also exchange or simultaneously into Row;Or, when the step 210 is located at after step 220, the order of the step 240 and the step 210 can also be handed over It changes or is carried out at the same time.
Below using a specific embodiment, the technical solution of embodiment of the method shown in FIG. 1 is described in detail.
Fig. 3 is the physical arrangement connection relationship diagram of the application IP hard disks and server.As shown in figure 3, the cabinet Proxy server is inside provided with, each IP hard disks are connected with proxy server, and are also connected with server, in addition, agency Server is also connected with server.The proxy server at least has following functions:DHCP service is provided and distributes IP to IP hard disks Address, the information that reception, processing, IP hard disks are sent, the detection in place of IP hard disks (after IP hard disks distribute IP address, are acted on behalf of Server reports the IP hard disks in place).In the present embodiment, which is specially BMC, (Baseboard Management Controller, baseboard management controller).The BMC supports the IPMI specifications of professional standard.
When IP hard disks are powered or are inserted into the slot position in cabinet, the IP hard disks can send application IP to proxy server The request of address, proxy server after receiving the request, can give IP hard disks to distribute IP address.
Based on same inventive concept, the application also provides a kind of method for establishing connection.Fig. 4 is the another implementation of the application Mode (IP hard disks and server interaction) establishes the flow chart of the method for connection.This method and embodiment (the IP hard disks in Fig. 3 With server interact) establish connection method difference lies in:Before the step 210, the method for establishing connection is also Comprise the following steps:
Step 310, when IP hard disk insertion groove positions or it is first power on when, IP hard disks send DHCP flows, request distribution IP Location.DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol) is the net of a LAN Network agreement, is worked using udp protocol, and main there are two purposes:To internal network or Internet service provider with distributing IP automatically Location, to user or internal network administrator as the means that all computers are made with central management.
Step 320, after proxy server receives request, IP address is distributed to IP hard disks.
Step 330, while proxy server is the information reporting servers of IP hard disks.The information of IP hard disks includes IP hard disks IP address and listening port.The listening port is that IP hard disks are fixed rather than obtain in real time every time.
After proxy server is the information reporting server of IP hard disks, step 210 is performed.
Wherein, the execution sequence of step 320 and step 330 can be exchanged or performed simultaneously.
Therefore, the method for above-mentioned foundation connection when the IP hard disks and the server are established and connected, passes through the IP Hard disk sends TCP connection request to the server, and therefore, the server often establishes TCP connection with an IP hard disk, can disappear The a port of the IP hard disks is consumed, a port without consuming the server, even if so as to need to connect IP hard disks it is more when, the port number of the server can also meet use demand, so as to solve in the prior art by TCP connection often is established with an IP hard disk in the server, a port of the server will be consumed, causes needing When the IP hard disks to be connected are more, the technical issues of port number for the server occur is unsatisfactory for use demand.
Based on same inventive concept, the application also provides a kind of method for establishing connection.Fig. 5 is one embodiment party of the application Formula (IP hard disks side) establishes the flow chart of the method for connection.As shown in figure 5, the method for establishing connection comprises the following steps:
Step 510, the generation of IP hard disks establishes TCP connection for request between the IP hard disks and the server TCP connection is asked.
The IP hard disks can actively generate a TCP connection request, and a TCP can also be just generated under the conditions of certain and is connected Connect request.In the present embodiment, the IP hard disks are asked to actively generate a TCP connection.In other embodiments, may be used Just to generate a TCP connection request under the conditions of certain, such as:
Before step 510, the method further includes:The IP hard disks receive the notification information that the server is sent, The notification information is used to notify the IP hard disks that can send TCP connection request to the server.It is that is, described " certain condition " be notification information, the IP hard disks receive server transmission notification information after, perform step 510.
Alternatively, before step 510, the method further includes:The IP hard disks receive the data that the server is sent Report, the port that the datagram includes the IP address of the IP hard disks and monitors.That is, " certain condition " is data Report receives the datagram of the server transmission in the IP hard disks, performs step 510.
Alternatively, before step 510, the method further includes:The IP hard disks receive the notice that the server is sent Information and datagram.That is, " certain condition " is notification information and datagram, the service is received in the IP hard disks The notification information and datagram that device is sent, perform step 510.
After generation TCP connection request, step 520 is performed.
Step 520, the IP hard disks send the TCP connection to the server and ask.That is, TCP connection please Seeking Truth is actively sent by IP hard disks, and according to Transmission Control Protocol, the end of a transmitting terminal can be consumed by sending a TCP connection request Mouthful, therefore, a port of IP hard disks can be consumed at this time.
Step 530, the IP hard disks receive the TCP connection request response that the server is sent, with the server it Between establish TCP connection.
Therefore, the method for above-mentioned foundation connection when the IP hard disks and the server are established and connected, passes through the IP Hard disk sends TCP connection request to the server, and therefore, the server often establishes TCP connection with an IP hard disk, can disappear The a port of the IP hard disks is consumed, a port without consuming the server, even if so as to need to connect IP hard disks it is more when, the port number of the server can also meet use demand, so as to solve in the prior art by TCP connection often is established with an IP hard disk in the server, a port of the server will be consumed, causes needing When the IP hard disks to be connected are more, the technical issues of port number for the server occur is unsatisfactory for use demand.
Based on same inventive concept, the application also provides a kind of method for establishing connection, as shown in fig. 6, Fig. 6 is this Shen Please an embodiment (server side) establish connection method flow chart, it is described establish connection method comprise the following steps:
Step 610, server receives IP hard disks and sends TCP connection request, and the TCP connection request is used to ask described TCP connection is established between IP hard disks and the server;
Step 620, the server responds the TCP connection request, and TCP connection is established between the IP hard disks.
The server simply receives and responds the TCP connection request, therefore, according to Transmission Control Protocol, sends a TCP Connection request will not consume the port of a receiving terminal, therefore, will not consume the port of server.
Therefore, the method for above-mentioned foundation connection when the IP hard disks and the server are established and connected, passes through the IP Hard disk sends TCP connection request to the server, and therefore, the server often establishes TCP connection with an IP hard disk, can disappear The a port of the IP hard disks is consumed, a port without consuming the server, even if so as to need to connect IP hard disks it is more when, the port number of the server can also meet use demand, so as to solve in the prior art by TCP connection often is established with an IP hard disk in the server, a port of the server will be consumed, causes needing When the IP hard disks to be connected are more, the technical issues of port number for the server occur is unsatisfactory for use demand.
When the IP hard disks just generate a TCP connection request under the conditions of certain, before step 610, the method It further includes:The server sends notification information to the IP hard disks, and the notification information is used to notify that the IP hard disks can TCP connection request is sent to the server.
Alternatively, when the IP hard disks just generate a TCP connection request under the conditions of certain, it is described before step 610 Method further includes:The server sends datagram to the IP hard disks, and the datagram includes the IP address of the IP hard disks With the port of monitoring.
Alternatively, when the IP hard disks just generate a TCP connection request under the conditions of certain, it is described before step 610 Method further includes:The server sends notification information and datagram to the IP hard disks.
Therefore, the method for above-mentioned foundation connection when the IP hard disks and the server are established and connected, passes through the IP Hard disk to the server send TCP connection request, be not server send TCP connection request, therefore, the server often with One IP hard disk establishes TCP connection, can consume a port of the IP hard disks, and one without consuming the server A port, even if so as to which when the IP hard disks for needing to connect are more, the port number of the server can also meet using need It asks, so as to solve in the prior art since the server often establishes TCP connection with an IP hard disk, will consume described The a port of server causes when the IP hard disks that needs connect are more, and the port number for the server occur is unsatisfactory for The technical issues of use demand.
Based on same inventive concept, the application also provides a kind of IP hard disks.Fig. 7 is one embodiment IP hard disks of the application Structural schematic block diagram, as shown in fig. 7, the IP hard disks 700 include:Generation unit 710, transmitting element 720 and response receive Unit 750.
The generation unit 710 establishes TCP companies for request for generating between the IP hard disks and the server The TCP connection request connect.The transmitting element 720 is used to send the TCP connection request to the server.The response connects It receives unit 750 to be used to receive the TCP connection request response that the server is sent, TCP connection is established between the server.
Specifically, the IP hard disks further include notification receiving unit 730, and the notification receiving unit 730 is used to receive institute The notification information of server transmission is stated, the notification information is used to notify the IP hard disks that can send TCP to the server Connection request.
Specifically, the IP hard disks further include report receiving unit 740, and the report receiving unit 740 is additionally operable to described in reception The datagram that server is sent, the port that the datagram includes the IP address of the IP hard disks and monitors.
When above-mentioned IP hard disks establish connection with the server, TCP is sent to the server by the IP hard disks and is connected Request is connect, is not that server sends TCP connection request, therefore, the server often establishes TCP connection, meeting with an IP hard disk The a port of the IP hard disks is consumed, a port without consuming the server, even if so as to need to connect When the IP hard disks connect are more, the port number of the server can also meet use demand, so as to solve in the prior art Since the server often establishes TCP connection with an IP hard disk, a port of the server will be consumed, is caused When needing the IP hard disks connected more, the technical issues of port number for the server occur is unsatisfactory for use demand.
Based on same inventive concept, the application also provides a kind of server, and Fig. 8 is one embodiment server of the application Structural schematic block diagram.As shown in figure 8, the server 800 includes receiving unit 810 and response unit 820.
The receiving unit 810 be used to receiving the transmission of IP hard disks for ask the IP hard disks and the server it Between establish TCP connection TCP connection request.The response unit 820 is hard with the IP for responding the TCP connection request TCP connection is established between disk.
Specifically, the server 800 further includes notice transmitting element 830, and the notice transmitting element 830 is used for institute It states IP hard disks and sends notification information, the notification information is used to notify the IP hard disks that can send TCP to the server and connect Connect request.
Specifically, the server 800 further includes report transmitting element 840, and the report transmitting element is used for hard to the IP Disk sends datagram, the port that the datagram includes the IP address of the IP hard disks and monitors.
When above-mentioned IP hard disks establish connection with the server, TCP is sent to the server by the IP hard disks and is connected Request is connect, is not that server sends TCP connection request, therefore, the server often establishes TCP connection, meeting with an IP hard disk The a port of the IP hard disks is consumed, a port without consuming the server, even if so as to need to connect When the IP hard disks connect are more, the port number of the server can also meet use demand, so as to solve in the prior art Since the server often establishes TCP connection with an IP hard disk, a port of the server will be consumed, is caused When needing the IP hard disks connected more, the technical issues of port number for the server occur is unsatisfactory for use demand.
Based on same inventive concept, the application also provides a kind of IP hard disks, as shown in figure 9, being the another implementation of the application The structure diagram of mode IP hard disks.The IP hard disks 900 include:Processor 910 and transceiver 920,910 He of processor The transceiver 920 is connected by bus 930.
The processor 910 establishes TCP connection for request for generating between the IP hard disks and the server TCP connection request.The transceiver 920 is used to send TCP connection request and described for receiving to the server The TCP connection request response that server is sent, TCP connection is established between the server.
Specifically, the transceiver 920 is used to receive the notification information that the server is sent, and the notification information is used for Notify the IP hard disks that can send TCP connection request to the server.
Specifically, the transceiver 920 is additionally operable to receive the datagram that the server is sent, and the datagram includes institute The port stated the IP address of IP hard disks and monitored.
Based on same inventive concept, the application also provides a kind of server, is the another implementation of the application as shown in Figure 10 The structure diagram of mode server.The server 940 includes transceiver 950 and processor 960,950 He of transceiver The processor 960 is connected by bus 970.
The transceiver 950 be used for receive IP hard disks transmission for ask between the IP hard disks and the server Establish the TCP connection request of TCP connection.The processor 960 for responding TCP connection request, with the IP hard disks it Between establish TCP connection.
Specifically, the transceiver 950 is used to send notification information to the IP hard disks, and the notification information is used to notify The IP hard disks can send TCP connection request to the server.
Specifically, for the transceiver 950 for sending datagram to the IP hard disks, it is hard that the datagram includes the IP The IP address of disk and the port monitored.
When above-mentioned IP hard disks establish connection with the server, TCP is sent to the server by the IP hard disks and is connected Request is connect, is not that server sends TCP connection request, therefore, the server often establishes TCP connection, meeting with an IP hard disk The a port of the IP hard disks is consumed, a port without consuming the server, even if so as to need to connect When the IP hard disks connect are more, the port number of the server can also meet use demand, so as to solve in the prior art Since the server often establishes TCP connection with an IP hard disk, a port of the server will be consumed, is caused When needing the IP hard disks connected more, the technical issues of port number for the server occur is unsatisfactory for use demand.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make these embodiments other change and modification.So appended claims be intended to be construed to include it is excellent It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these modification and variations.

Claims (8)

  1. A kind of 1. method that connection is established between IP hard disks and server, which is characterized in that the described method includes:
    The TCP connection request of TCP connection is established in the generation of IP hard disks for request between the IP hard disks and the server;
    The IP hard disks send the TCP connection to the server and ask;
    The IP hard disks receive the TCP connection request response that the server is sent, and TCP companies are established between the server It connects;Wherein,
    Before the IP hard disks send the TCP connection request to server, the method further includes:
    The IP hard disks receive the notification information that the server is sent, and the notification information is used to notify that the IP hard disks can TCP connection request is sent to the server.
  2. 2. the method as described in claim 1, which is characterized in that sending the TCP connection to server in the IP hard disks please Before asking, the method further includes:
    The IP hard disks receive the data message that the server is sent, and the data message includes the IP address of the IP hard disks With the port of monitoring.
  3. A kind of 3. method that connection is established between IP hard disks and server, which is characterized in that the described method includes:
    Server receives the TCP connection request that IP hard disks are sent, and the TCP connection request is used to ask in the IP hard disks and institute It states and establishes TCP connection between server;
    The server responds the TCP connection request, and TCP connection is established between the IP hard disks;Wherein,
    Connecting for asking to establish TCP between the IP hard disks and the server for IP hard disks transmission is received in the server Before the TCP connection request connect, the method further includes:
    The server sends notification information to the IP hard disks, and the notification information is used to notify the IP hard disks can be to institute It states server and sends TCP connection request.
  4. 4. method as claimed in claim 3, which is characterized in that receive existing for request for IP hard disks transmission in the server It is established between the IP hard disks and the server before the TCP connection request of TCP connection, the method further includes:
    The server sends datagram to the IP hard disks, and the data message includes the IP address and prison of the IP hard disks The port listened.
  5. 5. a kind of IP hard disks, which is characterized in that the IP hard disks include:
    Generation unit, for generating to ask the TCP connection for establishing TCP connection between the IP hard disks and server please It asks;
    Transmitting element is asked for sending the TCP connection to the server;
    Receiving unit is responded, response is asked for receiving the TCP connection that the server is sent, is established between the server TCP connection;
    Notification receiving unit, for receiving the notification information that the server is sent, the notification information is used to notify the IP Hard disk can send TCP connection request to the server.
  6. 6. IP hard disks as claimed in claim 5, which is characterized in that the IP hard disks further include:Receiving unit is reported, for receiving The data message that the server is sent, the port that the data message includes the IP address of the IP hard disks and monitors.
  7. 7. a kind of server, which is characterized in that the server includes:
    Receiving unit, for receiving the TCP connection request of IP hard disks transmission, the TCP connection request is for request in the IP TCP connection is established between hard disk and the server;
    For responding the TCP connection request, TCP connection is established between the IP hard disks for response unit;
    Notify transmitting element, for sending notification information to the IP hard disks, the notification information is used to notify the IP hard disks TCP connection request can be sent to the server.
  8. 8. server as claimed in claim 7, which is characterized in that the server further includes:Transmitting element is reported, for institute It states IP hard disks to send datagram, the port that the data message includes the IP address of the IP hard disks and monitors.
CN201410410676.8A 2014-08-19 2014-08-19 Establish method, IP hard disks and the server of connection Active CN104184636B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410410676.8A CN104184636B (en) 2014-08-19 2014-08-19 Establish method, IP hard disks and the server of connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410410676.8A CN104184636B (en) 2014-08-19 2014-08-19 Establish method, IP hard disks and the server of connection

Publications (2)

Publication Number Publication Date
CN104184636A CN104184636A (en) 2014-12-03
CN104184636B true CN104184636B (en) 2018-06-05

Family

ID=51965396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410410676.8A Active CN104184636B (en) 2014-08-19 2014-08-19 Establish method, IP hard disks and the server of connection

Country Status (1)

Country Link
CN (1) CN104184636B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7921282B1 (en) * 2007-08-20 2011-04-05 F5 Networks, Inc. Using SYN-ACK cookies within a TCP/IP protocol
CN102291441A (en) * 2011-08-02 2011-12-21 杭州迪普科技有限公司 Method and security agent device for protecting against attack of synchronize (SYN) Flood
CN103457746A (en) * 2012-06-05 2013-12-18 中兴通讯股份有限公司 Meeting data transmission method and device
CN103929506A (en) * 2014-04-21 2014-07-16 华为技术有限公司 Method and device for distributing IP address for IP hard disk

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9172744B2 (en) * 2012-06-14 2015-10-27 Microsoft Technology Licensing, Llc Scalable storage with programmable networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7921282B1 (en) * 2007-08-20 2011-04-05 F5 Networks, Inc. Using SYN-ACK cookies within a TCP/IP protocol
CN102291441A (en) * 2011-08-02 2011-12-21 杭州迪普科技有限公司 Method and security agent device for protecting against attack of synchronize (SYN) Flood
CN103457746A (en) * 2012-06-05 2013-12-18 中兴通讯股份有限公司 Meeting data transmission method and device
CN103929506A (en) * 2014-04-21 2014-07-16 华为技术有限公司 Method and device for distributing IP address for IP hard disk

Also Published As

Publication number Publication date
CN104184636A (en) 2014-12-03

Similar Documents

Publication Publication Date Title
US9143421B2 (en) Network system capable of implementing stun with the assistance of two network devices and method thereof
WO2017088384A1 (en) Method, apparatus and system for uploading live video
CN102231763B (en) Sharing method based on NAT (Network Address Translation) penetration
CN101753597B (en) Keeping alive method between peer node and client under peer node-client architecture
CN103825777A (en) DMZ server switching method and device
CN104468852A (en) Method, device and system for client to select IP link address
CN106227490A (en) The method that cloud desktop system, cloud terminal and application add multicast group
US20110099227A1 (en) Communication application with steady-state conferencing
US20140324950A1 (en) Connection method and management server
US20120265871A1 (en) Multicast, client/service-attribute resolution
CN104009961B (en) A kind of pppoe session mark distributing method and equipment
EP2761492A1 (en) Multi-party communication sessions via broadcast notification network
CN114500527A (en) Out-of-band management system and method for edge device
CN108123912A (en) A kind of micro services system for supporting P2P
WO2013159492A1 (en) Method and system for reporting and downloading information
CN104184636B (en) Establish method, IP hard disks and the server of connection
CN104243473A (en) Data transmission method and device
CN104780230A (en) Method of automatically acquiring cloud server IP address, system and cloud system
CN109120578B (en) Method and device for realizing link connection processing
CN103873335B (en) Dialing method of terminal equipment, and access equipment
JP5519079B2 (en) Method and system for cloud-based media adaptation and conversion services
EP3435615B1 (en) Network service implementation method, service controller, and communication system
CN105721231A (en) Service quality sensing detection method and service quality sensing detection device
CN105188087A (en) Business communication method and system based on short message gateway
JP2003303145A (en) Method and system for providing presence information backup service, information request program, and medium recorded with 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