CN109639841A - Network connection system and method - Google Patents

Network connection system and method Download PDF

Info

Publication number
CN109639841A
CN109639841A CN201910140803.XA CN201910140803A CN109639841A CN 109639841 A CN109639841 A CN 109639841A CN 201910140803 A CN201910140803 A CN 201910140803A CN 109639841 A CN109639841 A CN 109639841A
Authority
CN
China
Prior art keywords
node
connection
port information
application server
egress
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.)
Pending
Application number
CN201910140803.XA
Other languages
Chinese (zh)
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.)
Beijing Cloud In Faith Network Technology Co Ltd
Original Assignee
Beijing Cloud In Faith Network 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 Beijing Cloud In Faith Network Technology Co Ltd filed Critical Beijing Cloud In Faith Network Technology Co Ltd
Priority to CN201910140803.XA priority Critical patent/CN109639841A/en
Publication of CN109639841A publication Critical patent/CN109639841A/en
Pending legal-status Critical Current

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/14Session management
    • H04L67/141Setup of application sessions
    • 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/133Protocols for remote procedure calls [RPC]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of network connection system and methods, are related to Internet communication technology field, which includes connection management node and the routing node that connect with connection management node;Wherein the routing node of the connection request for receiving user terminal is Ingress node;In advance be application server configuration, the routing node for being connect with application server be Egress node;The deployment network connection pond in connection management node, when between user terminal and application server by the creation connection of network node cluster, connection between Ingress node for user terminal and the Egress node at application server end can be obtained directly from the network connection pond, it is created without rebuilding, thus eliminate the multiple hand shaking process between the Ingress node of user terminal and the Egress node at application server end, to effectively reduce the consuming of Internet resources and time, accelerate the network connection speed between user terminal and application server, improve user experience.

Description

Network connection system and method
Technical field
The present invention relates to Internet communication technology fields, more particularly, to a kind of network connection system and method.
Background technique
In current internet, transnational communication, the user terminal of client are needed between many clients and service to be visited It is distributed in all over the world, therefore each area of network connection quality is multifarious.In response to this, it is necessary to it is a kind of the whole world Network acceleration scheme guarantees that most user terminals of client can have higher be connected to corresponding application server Property.
Currently, global network speeding scheme is to dispose proxy network node in each continent, network node cluster is formed.It should Guarantee low latency high bandwidth, the transmission rate between guarantee, to be added in network node cluster between each network node Fast network.For example, when client is connected in HTTP (Hyper Text Transfer Protocol, hypertext transfer protocol) mode Reach the Ingress node for accelerating network, Ingress node is found by itself algorithm to be added apart from respective application server address is nearest The node of fast network, then the request is forwarded to this node, is achieved between the user terminal of client and application server Communication.
However, user terminal connects when connecting between user terminal and application server by the creation of network node cluster Enter between the Ingress node in the network cluster and the Egress node at application server end, need by the transmission of three-way handshake with Response, this results in the consuming of Internet resources and time, and then leads to the net between the user terminal of client and application server Network connection speed slows down, and affects user experience.
Summary of the invention
In view of this, being effectively reduced the purpose of the present invention is to provide a kind of network connection system and method with alleviating The consuming of Internet resources and time accelerate the network connection speed between user terminal and application server, improve user's body It tests.
In a first aspect, the embodiment of the invention provides a kind of network connection system, including connection management node and with it is described The routing node of connection management node connection;Wherein the routing node of the connection request for receiving user terminal is entrance section Point;In advance be application server configuration, the routing node for being connect with application server be Egress node;The connecting tube Network connection pond is deployed in reason node;The connection request includes the corresponding certification mark of application server;
The Ingress node is used for according to the determining corresponding Egress node of application server to be visited of certification mark, The available network connection of the Ingress node to the Egress node is obtained from the network connection pond;The connection is asked It asks and the Egress node is forwarded to based on the network connection;
The Egress node is used for the connection established between the application server according to the connection request.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein also Including database node;
The Ingress node is also used to search routing node corresponding with the certification mark from the database node, and Using the corresponding routing node as the corresponding Egress node of application server to be visited.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein institute It states Ingress node and is also used to send search request to the connection management node;The search request includes the mark of Ingress node With the mark of Egress node;
The connection management node is used to search the entrance section from the network connection pond according to the search request Available network connection between point and the Egress node sends notice letter after finding the available network connection The state for ceasing to the Ingress node, and updating the available network connection is down state.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein institute It states Ingress node to be also used to: when detecting that user terminal closes current connection, sending the first turn-off request to the connecting tube Manage node;First turn-off request includes the port information of user terminal and the entry port information of Ingress node;
The connection management node is also used to according to first turn-off request and pre-stored path IP related information, It determines corresponding Egress node, and sends the first out code to corresponding Egress node;
Between the application server that the Egress node is also used to be closed according to first out code and currently connected Connection, and send first close response message to the connection management node so that described in the connection management node updates The state of network connection between Ingress node and the Egress node is available mode;
Wherein, the path IP related information includes that the port information of the user terminal of associated storage, Ingress node enter Mouth port information, the outlet end message of the outlet port information of Ingress node, the entry port information of Egress node, Egress node The port information of breath and application server.
The third possible embodiment with reference to first aspect, the embodiment of the invention provides the 4th kind of first aspect Possible embodiment, wherein the Egress node is also used to, and when detecting that application server closes current connection, is sent Second turn-off request is to connection management node;Second turn-off request includes the port information and Egress node of application server Outlet port information;
The connection management node is also used to according to second turn-off request and pre-stored path IP related information, It determines corresponding Ingress node, and sends the second out code to corresponding Ingress node;
Between the user terminal that the Ingress node is also used to be closed according to second out code and currently connected Connection, and send second and close response message to the connection management node, so as to enter described in the connection management node updates The state of network connection between mouth node and the Egress node is available mode.
The third or the 4th kind of possible embodiment with reference to first aspect, the embodiment of the invention provides first party The 5th kind of possible embodiment in face, wherein the connection management node be also used to update the Ingress node with it is described The state of network connection between Egress node be available mode after, delete the path IP related information.
The third or the 4th kind of possible embodiment with reference to first aspect, the embodiment of the invention provides first party The 6th kind of possible embodiment in face, wherein the path IP related information includes that path IP group information includes: into visiting IP Group: the port information of user terminal and the entry port information of Ingress node, node connect IP group: the outlet port of Ingress node The entry port information of information and Egress node, and visit IP group: the outlet port information of Egress node and application server Port information.
The 6th kind of possible embodiment with reference to first aspect, the embodiment of the invention provides the 7th kind of first aspect Possible embodiment, wherein the connection management node is also used to:
It is finding between the Ingress node and the Egress node after available network connection, is obtaining first end message Breath;The first port information includes the entry port information and outlet port information, the user terminal of the Ingress node Port information and the Egress node entry port information;
After the Egress node establishes the connection between the application server, second port information is obtained;It is described Second port information includes the outlet port information of the Egress node and the port information of the application server;
Based on the first port information and the second port information, path IP group information is generated.
Second aspect, the embodiment of the present invention also provide a kind of method for connecting network, are applied to such as first aspect and its any Network connection system described in the possible embodiment of kind, which comprises
The Ingress node receives the connection request that user terminal is sent;It is true according to the certification mark in the connection request The fixed corresponding Egress node of application server to be visited, obtained from the network connection pond Ingress node to it is described out The available network connection of mouth node;The connection request is based on the network connection and is forwarded to the Egress node;
The Egress node is used for the connection established between the application server according to the connection request.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein also Include:
The Ingress node sends search request to the connection management node;The search request includes Ingress node The mark of mark and Egress node;
The connection management node according to the search request, searched from the network connection pond Ingress node with Available network connection between the Egress node sends notification information extremely after finding the available network connection The Ingress node, and the state for updating the available network connection is down state.
The embodiment of the present invention bring it is following the utility model has the advantages that
In embodiments of the present invention, which includes connection management node and connect with connection management node Routing node;Wherein the routing node of the connection request for receiving user terminal is Ingress node;It is in advance application server Routing node configure, for connecting with application server is Egress node;Network connection is deployed in connection management node Pond.Ingress node determines that application server to be visited is corresponding according to the corresponding certification mark of application server in connection request Egress node obtains the available network connection of Ingress node to Egress node from network connection pond;By the connection request base It is forwarded to Egress node in the network connection of acquisition, so that Egress node is established and above-mentioned application server according to the connection request Between connection.In which, deployment network connection pond, passes through between user terminal and application server in connection management node When crossing the creation connection of network node cluster, between the Ingress node for user terminal and the Egress node at application server end Connection can be obtained directly from the network connection pond, without rebuilding creation, thus eliminate the Ingress node of user terminal with Multiple hand shaking process between the Egress node at application server end, to effectively reduce the consumption of Internet resources and time Take, accelerates the network connection speed between user terminal and application server, improve user experience.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention institute in specification and attached drawing The structure that particularly points out is achieved and obtained.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of network connection system provided in an embodiment of the present invention;
Fig. 2 is the structural schematic diagram of another network connection system provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of method for connecting network provided in an embodiment of the present invention;
Fig. 4 is the process flow diagram that a kind of user terminal provided in an embodiment of the present invention closes connection;
Fig. 5 is the process flow diagram that a kind of application server provided in an embodiment of the present invention closes connection.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
When at present between user terminal and application server by the creation connection of network node cluster, section is accessed in cluster Between point and the Egress node at application server end, the transmission and response by three-way handshake are needed, this results in Internet resources And the consuming of time, and then the network connection speed between the user terminal of client and application server is caused to slow down, it affects User experience.
Based on this, a kind of network connection system provided in an embodiment of the present invention and method are disposed in connection management node It is connected to the network pond, when between user terminal and application server by the creation connection of network node cluster, for user terminal Connection between Ingress node and the Egress node at application server end can be obtained directly from the network connection pond, be eliminated Multiple hand shaking process between the Ingress node of user terminal and the Egress node at application server end, to effectively reduce The consumings of Internet resources and time accelerates the network connection speed between user terminal and application server, improves user Experience.
For convenient for understanding the present embodiment, first to a kind of network connection system disclosed in the embodiment of the present invention into Row is discussed in detail.The network connection system can be, but not limited to be applied to user terminal to pass through the net that is made of multiple network nodes For network node cluster with the communication process of corresponding application server, which can be mobile terminal either desktop Brain etc..
As shown in Figure 1, the network connection system includes: including connection management node and the road connecting with connection management node By node;Wherein the routing node for receiving the connection request of user terminal is Ingress node, is matched in advance for application server Routing node set, for connecting with application server is Egress node.The connection request includes that application server is corresponding Certification mark can also include IP (Internet Protocol Address, the Internet protocol of application server to be visited Address) address.
The connection management node can be, but not limited to be deployed in the server of security domain, in the middle part of the connection management node There is network connection pond in administration;Network connection is provided in advance in network node cluster in pond as the routing node of Ingress node and work For the network connection between the routing node of Egress node.
In communication process, Ingress node is used to determine application to be visited according to the certification mark in above-mentioned connection request The corresponding Egress node of server, obtained from the network connection pond of connection management node the Ingress node to Egress node can Network connection;Above-mentioned connection request is based on the network connection and is forwarded to Egress node.Egress node is used for according to the company Connect the connection that request is established between application server to be visited.
It can be each net to characterize whether the network connection stored in network connection pond can be used during realization Network connects configuration status mark.Such as when status indicator is 1, indicate that the network connection is currently at available mode;Work as state It when being identified as 0, indicates that the network connection is currently occupied, is in down state.
In the embodiment of the present invention, the deployment network connection pond in connection management node, user terminal and application server it Between by network node cluster creation connection when, for user terminal Ingress node and application server end Egress node it Between connection can directly be obtained from the network connection pond, without rebuilding creation, thus eliminate the entrance section of user terminal Multiple hand shaking process between point and the Egress node at application server end, to effectively reduce Internet resources and time Consuming, accelerate the network connection speed between user terminal and application server, improve user experience.
In order to ensure information security, above-mentioned network connection system further includes the database being separately connected with each routing node Node, the database node can be, but not limited to be deployed in the server of security domain, wherein being stored with the phase of application server Close information, such as application server configuration Egress node mark.The relevant information of application server and the application server Certification mark it is associated.Based on this, above-mentioned Ingress node is also used to search from database node corresponding with certification mark Routing node, and using the corresponding routing node as the corresponding Egress node of application server to be visited.
Such as including the port information and parameter AppKey of user terminal in above-mentioned connection request, the AppKey is as certification Mark.Ingress node sends the request for carrying AppKey to database node, and database node receives the request and parses and is somebody's turn to do AppKey, and find the relevant information for the Egress node being associated.In specific implementation, Ingress node can pass through RPC The mode of (Remote Procedure Call, remote procedure call) obtains the related letter of Egress node from database node Breath.
After determining Egress node corresponding with application server to be visited, Ingress node is also used to send search request To connection management node;The search request includes the mark of Ingress node and the mark of Egress node.Connection management node is used for According to the search request, the available network searched between corresponding Ingress node and Egress node from network connection pond connects It connects, after finding available network connection, transmission notification information to Ingress node, and update the shape of the available network connection State is down state.
Wherein the notification information includes the port information for each routing node that the network connection found is related to, and is thus made It obtains Ingress node and connection request is forwarded to by Egress node by the network connection, and there is Egress node foundation to answer with to be visited With the connection between server, it is achieved in user terminal and is quickly connect with the span cluster of application server.In addition, due to this It is connected to the network occupied, therefore the corresponding status indicator of the network connection can be updated, so that the state of the network connection is not Available mode.
It should be noted that in other possible embodiments, if finding corresponding connection in network connection Chi Zhongwei Request, then it is assumed that there may be malicious attack, the connection closed between user terminal and Ingress node is directly controlled, to guarantee net Network safety.
In view of when either one request disconnects user terminal either in application server, in order to make to be connected to the network Network connection in pond can be multiplexed, that is, keep the network connection be in can instant messaging state, it is only necessary to control user terminal The connection that either application server accesses in the network node cluster (connection i.e. between user terminal and Ingress node and is answered With the connection between server and Egress node) it disconnects.Acquisition user terminal and application service can be passed through in the present embodiment Relevant port information in the communication path of device, navigates to connection to be closed.Based on this, above-mentioned connection management node is also used to It is finding between Ingress node and Egress node after available network connection, is obtaining first port information;The first end message Breath includes the entry port information of Ingress node and entering for outlet port information, the port information of user terminal and Egress node Mouth port information.After Egress node establishes the connection between application server, second port information is obtained;The second port Information includes the outlet port information of Egress node and the port information of application server.Based on first port information and described Two-port netwerk information generates path IP group information.
It should be noted that the port information of each node, terminal or the server that are mentioned above can with IP The combination of location and port-mark indicates.
In specific implementation, the collection process of above-mentioned port information can be realized by following process:
The relevant information of Egress node is found in Ingress node, and gets Ingress node from network connection pond and goes out After available network connection between mouthful node, the relevant port information of link between user terminal and Ingress node is registered To connection management node, i.e., the entry port information of the port information of user terminal and Ingress node is sent to connection management section Point;The relevant port of network connection between Ingress node and Egress node is associated by the connection management node simultaneously, i.e., The entry port information of the outlet port information of Ingress node and Egress node is bound.
After above-mentioned connection request is forwarded to Egress node based on the network connection by Ingress node, Egress node is according to this Connection request establishes the connection between application server to be visited.Connect establish after the completion of, Egress node by its with answer It is registered in connection management node with the relevant port information of the connection between server, i.e., by the outlet port information of Egress node And the port information of application server is sent to the connection management node.
After obtaining port information, above-mentioned collected port information can be associated, obtain path IP association letter Breath, the entry port information of the port information of the user terminal including associated storage, Ingress node, the outlet port of Ingress node Information, the entry port information of Egress node, the outlet port information of Egress node and the port information of application server.It is based on The retrospect for treating the connection of closing can be thus achieved in path IP related information.
During specific implementation, above-mentioned path IP related information includes that path IP group information includes: into visiting IP group: user The port information of terminal and the entry port information of Ingress node;Node connect IP group: the outlet port information of Ingress node and The entry port information of Egress node;And visit IP group: the outlet port information of Egress node and the port letter of application server Breath.In such a way that port information is formed a team, is positioned convenient for treating the port of connection of closing, improve search speed.
When user terminal actively closes connection, above-mentioned Ingress node is also used to: detecting that it is current that user terminal is closed When connection, the first turn-off request is sent to connection management node.First turn-off request may include the port letter of user terminal The entry port information of breath and Ingress node.Connection management node is also used to according to first turn-off request and pre-stored road Diameter IP related information determines corresponding Egress node, and sends the first out code to corresponding Egress node.First closing Instruction includes the Egress node information of Egress node and the port information of application server.
The company between application server that above-mentioned Egress node is also used to be closed according to the first out code and currently connected Connect, and send first and close response message to connection management node so that the connection management node updates Ingress node with go out The state of network connection between mouth node is available mode.
For example, the connection between connection and application server and Egress node between user terminal and Ingress node is disconnected After opening, the network connection between Ingress node and Egress node is released, and is in available mode, therefore by the shape of the network connection State mark is set as 1, available to characterize the network connection.
When application server actively closes connection, above-mentioned Egress node is also used to, and is detecting application server closing When current connection, the second turn-off request is sent to connection management node.Second turn-off request includes the port of application server The outlet port information of information and Egress node.The connection management node is also used to according to second turn-off request and is stored in advance Path IP related information, determine corresponding Ingress node, and send the second out code to corresponding Ingress node.This second Out code includes the Egress node information of Ingress node and the port information of user terminal.
The connection between user terminal that Ingress node is also used to be closed according to second out code and currently connected, and It sends second and closes response message to connection management node, so that the connection management node updates Ingress node and Egress node Between network connection state be available mode.
In a possible embodiment, above-mentioned connection management node is also used to updating between Ingress node and Egress node The state of network connection is deletes corresponding path IP related information after available mode, to remove after Connection Release Caching.
For the ease of the understanding to above-described embodiment, the embodiment of the present disclosure with Fig. 2 (in figure Ingress node and Egress node it Outer routing node is not drawn into) in user terminal A and application server B between connection establishment process for be illustrated, Wherein assume that the corresponding Ingress node of user terminal A is C, the corresponding Egress node of application server is D.When user terminal A is visited When asking application server B, then the communication path established between A → C → D → B is needed.
User terminal A first sends connection request to Ingress node C, and Ingress node C is according to the connection request from database Node checks are C to the corresponding Egress node of application server B, and Ingress node C is then searched from connection management node and is gone out Network connection (being identified as C → D) between mouth node D.If finding the network connection, Ingress node C is by user terminal A Port information and the entry port information that is connect with the user terminal of Ingress node C be registered in connection management node, the connection Management node also saves the outlet port information of Ingress node C and the arrival end of Egress node D used in network connection C → D Message breath.
After Ingress node C gets network connection C → D, the transmission of request is directly attached using the C → D, so that Connection request is forwarded to Egress node D by Ingress node C.Egress node D is according to connection request (such as according in the connection request The IP address of application server to be visited), establish and application server B between connection, thus complete A → C → D → B it Between communication path foundation.
After Egress node D and application server B establish connection, outlet end that Egress node is connect with application server The port information of message breath and the application server is registered in connection management node.The connection management node generates path IP group Information, specifically: enter to visit IP group<user terminal A port information, the entry port information of Ingress node C>;Node connects IP Group<Ingress node C outlet port information, the entry port information of Egress node D>;And visit IP group < Egress node D goes out Mouthful port information, the port information of application server B >.
When user terminal actively closes connection, above-mentioned Ingress node C sends the first turn-off request to connection management node. Connection management node successively tracks node connection IP according to first turn-off request and pre-stored path IP group information Group, visit IP group, determine the port information of the entry port information of Egress node D, outlet port information and application server B, Then the first out code is sent to Egress node D.Egress node D is according to the first out code closing and application server B Between connection, and send first and close response message to connection management node, so that the connection management node updates entrance The status indicator of network connection C → D between node C and Egress node D is 1 (available mode).
When application server actively closes connection, above-mentioned Egress node D sends the second turn-off request to connection management section Point.The connection management node successively tracks node connection IP group, enters to visit IP group, determine entrance according to second turn-off request The port information of the entry port information of node C, outlet port information and user terminal A, then sends the first out code extremely Ingress node C.Ingress node C sends second and closes according to the connection between the second out code closing and user terminal A Response message is to connection management node, so that the network between connection management node updates Ingress node C and Egress node D The status indicator for connecting C → D is 1 (available mode).
In conclusion the multiplexing of the network connection between Ingress node and Egress node is realized in the embodiment of the present invention, When user terminal carries out communicating the needs network connection with application server, directly obtained from network connection pond, without weight Creation is built, thus eliminates the multiple hand shaking between the Ingress node of user terminal and the Egress node at application server end Process accelerates the network between user terminal and application server to connect to effectively reduce the consuming of Internet resources and time Speed is connect, user experience is improved.
It is directed to above-mentioned network connection system, the embodiment of the present invention is supplied to a kind of method for connecting network, referring to Fig. 3, This method comprises:
Step S301, Ingress node receive the connection request that user terminal is sent;According to the certification mark in the connection request Know and determine the corresponding Egress node of application server to be visited, Ingress node is obtained from network connection pond to Egress node Available network connection;The connection request is based on above-mentioned network connection and is forwarded to Egress node;
Step S302, Egress node are used for the connection established between above-mentioned application server according to above-mentioned connection request.
In the embodiment of the present invention, the deployment network connection pond in connection management node, user terminal and application server it Between by network node cluster creation connection when, for user terminal Ingress node and application server end Egress node it Between connection can directly be obtained from the network connection pond, without rebuilding creation, thus eliminate the entrance section of user terminal Multiple hand shaking process between point and the Egress node at application server end, to effectively reduce Internet resources and time Consuming, accelerate the network connection speed between user terminal and application server, improve user experience.
The above method further include: Ingress node sends search request to connection management node;The search request includes entrance The mark of node and the mark of Egress node;Connection management node searches entrance from network connection pond according to the search request Available network connection between node and Egress node sends notification information to entering after finding available network connection Mouth node, and the state for updating available network connection is down state.
Fig. 4 shows the process flow diagram that a kind of user terminal provided in an embodiment of the present invention closes connection.Such as Fig. 4 institute Show, this method further include:
Step S401, Ingress node send the first turn-off request to even when detecting that user terminal closes current connection Connect management node;First turn-off request may include the port information of user terminal and the entry port information of Ingress node;
Step S402, connection management node are determined according to the first turn-off request and pre-stored path IP related information Corresponding Egress node, and the first out code is sent to corresponding Egress node;
Step S403, Egress node close the company between the application server that currently connects according to the first out code It connects, and sends first and close response message to connection management node, so that connection management node updates Ingress node and outlet save The state of network connection between point is available mode.
Wherein, above-mentioned path IP related information includes that the port information of the user terminal of associated storage, Ingress node enter Mouth port information, the outlet end message of the outlet port information of Ingress node, the entry port information of Egress node, Egress node The port information of breath and application server.
Fig. 5 shows the process flow diagram that a kind of application server provided in an embodiment of the present invention closes connection.Such as Fig. 5 institute Show, this method further include:
Step S501, Egress node send the second turn-off request extremely when detecting that application server closes current connection Connection management node;Second turn-off request may include the port information of application server and the outlet end message of Egress node Breath;
Step S502, connection management node are determined according to the second turn-off request and pre-stored path IP related information Corresponding Ingress node, and the second out code is sent to corresponding Ingress node;
Step S503, Ingress node close the connection between the user terminal that currently connects according to the second out code, And it sends second and closes response message to connection management node, so that the connection management node updates Ingress node and Egress node Between network connection state be available mode.
Further, it includes: into visiting IP group: the end of user terminal that above-mentioned path IP related information, which includes path IP group information, The entry port information of message breath and Ingress node, node connect IP group: the outlet port information and Egress node of Ingress node Entry port information, and visit IP group: the outlet port information of Egress node and the port information of application server.
Method for connecting network provided in an embodiment of the present invention has identical with network connection system provided by the above embodiment Technical characteristic reach identical technical effect so also can solve identical technical problem.
The computer program product of method for connecting network is carried out provided by the embodiment of the present invention, including stores processor The computer readable storage medium of executable non-volatile program code, the instruction that said program code includes can be used for executing Previous methods method as described in the examples, specific implementation can be found in embodiment of the method, and details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the method for foregoing description Specific work process, can be with reference to the corresponding process in aforementioned system embodiment, details are not described herein.
The flow chart and block diagram in the drawings show multiple embodiment method and computer program products according to the present invention Architecture, function and operation in the cards.In this regard, each box in flowchart or block diagram can represent one A part of module, section or code, a part of the module, section or code include it is one or more for realizing The executable instruction of defined logic function.It should also be noted that in some implementations as replacements, function marked in the box It can also can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be substantially parallel Ground executes, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram And/or the combination of each box in flow chart and the box in block diagram and or flow chart, it can the function as defined in executing Can or the dedicated hardware based system of movement realize, or can come using a combination of dedicated hardware and computer instructions real It is existing.
In addition, term " first ", " second ", " third " are used for description purposes only, it is not understood to indicate or imply phase To importance.Unless specifically stated otherwise, the opposite step of the component and step that otherwise illustrate in these embodiments, digital table It is not limit the scope of the invention up to formula and numerical value.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, of the invention Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with Store the medium of program code.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of network connection system, which is characterized in that connect including connection management node and with the connection management node Routing node;Wherein the routing node of the connection request for receiving user terminal is Ingress node;It is in advance application server Routing node configure, for connecting with application server is Egress node;Network is deployed in the connection management node Connection pool;The connection request includes the corresponding certification mark of application server;
The Ingress node is used to determine the corresponding Egress node of application server to be visited according to the certification mark, from institute It states in network connection pond and obtains the available network connection of the Ingress node to the Egress node;By the connection request base The Egress node is forwarded in the network connection;
The Egress node is used for the connection established between the application server according to the connection request.
2. system according to claim 1, which is characterized in that further include database node;
The Ingress node is also used to search corresponding with certification mark routing node from the database node, and by institute Corresponding routing node is stated as the corresponding Egress node of application server to be visited.
3. system according to claim 1, which is characterized in that the Ingress node is also used to send search request to described Connection management node;The search request includes the mark of Ingress node and the mark of Egress node;
The connection management node is used for according to the search request, searched from the network connection pond Ingress node and Available network connection between the Egress node sends notification information extremely after finding the available network connection The Ingress node, and the state for updating the available network connection is down state.
4. system according to claim 1, which is characterized in that the Ingress node is also used to: detecting user terminal When closing current connection, the first turn-off request is sent to the connection management node;First turn-off request includes user's end The port information at end and the entry port information of Ingress node;
The connection management node is also used to be determined according to first turn-off request and pre-stored path IP related information Corresponding Egress node, and the first out code is sent to corresponding Egress node;
The company between application server that the Egress node is also used to be closed according to first out code and currently connected It connects, and sends first and close response message to the connection management node, so that entrance described in the connection management node updates The state of network connection between node and the Egress node is available mode;
Wherein, the path IP related information includes the arrival end of the port information of the user terminal of associated storage, Ingress node Message breath, the outlet port information of Ingress node, the entry port information of Egress node, Egress node outlet port information and The port information of application server.
5. system according to claim 4, which is characterized in that the Egress node is also used to, and is detecting application service When device closes current connection, the second turn-off request is sent to connection management node;Second turn-off request includes application service The port information of device and the outlet port information of Egress node;
The connection management node is also used to be determined according to second turn-off request and pre-stored path IP related information Corresponding Ingress node, and the second out code is sent to corresponding Ingress node;
The connection between user terminal that the Ingress node is also used to be closed according to second out code and currently connected, And it sends second and closes response message to the connection management node, so that Ingress node described in the connection management node updates The state of network connection between the Egress node is available mode.
6. system according to claim 4 or 5, which is characterized in that the connection management node is also used to described in the update The state of network connection between Ingress node and the Egress node is believed after available mode, to delete the path IP association Breath.
7. system according to claim 4 or 5, which is characterized in that the path IP related information includes path IP group letter Breath includes: into visiting IP group: the port information of user terminal and the entry port information of Ingress node, and node connects IP group: entrance The outlet port information of node and the entry port information of Egress node, and visit IP group: the outlet port information of Egress node With the port information of application server.
8. system according to claim 7, which is characterized in that the connection management node is also used to:
It is finding between the Ingress node and the Egress node after available network connection, is obtaining first port information; The first port information includes the entry port information of the Ingress node and the end of outlet port information, the user terminal The entry port information of message breath and the Egress node;
After the Egress node establishes the connection between the application server, second port information is obtained;Described second Port information includes the outlet port information of the Egress node and the port information of the application server;
Based on the first port information and the second port information, path IP group information is generated.
9. a kind of method for connecting network, which is characterized in that be applied to the described in any item networks of the claims 1 to 8 such as and connect Welding system, which comprises
The Ingress node receives the connection request that user terminal is sent;According in the connection request certification mark determine to The corresponding Egress node of the application server of access obtains the Ingress node to the outlet from the network connection pond and saves The available network connection of point;The connection request is based on the network connection and is forwarded to the Egress node;
The Egress node is used for the connection established between the application server according to the connection request.
10. according to the method described in claim 9, it is characterized by further comprising:
The Ingress node sends search request to the connection management node;The search request includes the mark of Ingress node With the mark of Egress node;
The connection management node according to the search request, searched from the network connection pond Ingress node with it is described Available network connection between Egress node sends notification information to described after finding the available network connection Ingress node, and the state for updating the available network connection is down state.
CN201910140803.XA 2019-02-25 2019-02-25 Network connection system and method Pending CN109639841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910140803.XA CN109639841A (en) 2019-02-25 2019-02-25 Network connection system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910140803.XA CN109639841A (en) 2019-02-25 2019-02-25 Network connection system and method

Publications (1)

Publication Number Publication Date
CN109639841A true CN109639841A (en) 2019-04-16

Family

ID=66065985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910140803.XA Pending CN109639841A (en) 2019-02-25 2019-02-25 Network connection system and method

Country Status (1)

Country Link
CN (1) CN109639841A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769603A (en) * 2011-05-03 2012-11-07 中国移动通信集团公司 Method, system and apparatus for data transmission
CN103634298A (en) * 2013-11-14 2014-03-12 北京奇虎科技有限公司 Database connection processing method and device
US8874609B1 (en) * 2010-08-10 2014-10-28 Scalarc Inc Method and system for transparent database connection pooling and query queuing
CN104429038A (en) * 2013-06-08 2015-03-18 华为技术有限公司 Route forwarding method, apparatus and system
CN105306609A (en) * 2014-06-26 2016-02-03 优视科技有限公司 Network loading processing method and device
CN105933408A (en) * 2016-04-20 2016-09-07 中国银联股份有限公司 Implementation method and device of Redis universal middleware
CN105956000A (en) * 2016-04-20 2016-09-21 广州华多网络科技有限公司 Data exchange method and client

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8874609B1 (en) * 2010-08-10 2014-10-28 Scalarc Inc Method and system for transparent database connection pooling and query queuing
CN102769603A (en) * 2011-05-03 2012-11-07 中国移动通信集团公司 Method, system and apparatus for data transmission
CN104429038A (en) * 2013-06-08 2015-03-18 华为技术有限公司 Route forwarding method, apparatus and system
CN103634298A (en) * 2013-11-14 2014-03-12 北京奇虎科技有限公司 Database connection processing method and device
CN105306609A (en) * 2014-06-26 2016-02-03 优视科技有限公司 Network loading processing method and device
CN105933408A (en) * 2016-04-20 2016-09-07 中国银联股份有限公司 Implementation method and device of Redis universal middleware
CN105956000A (en) * 2016-04-20 2016-09-21 广州华多网络科技有限公司 Data exchange method and client

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
天津滨海迅腾科技集团有限公司: "《基于MVC的Java Web项目实战》", 31 January 2017, 南开大学出版社 *
王法波: "《从零开始学Java》", 31 August 2012, 中国铁道出版社 *

Similar Documents

Publication Publication Date Title
CN109981765A (en) Method and apparatus for determining the access path of content distributing network
CN110366269B (en) Session establishment method and device
CN108200165B (en) Request Transmission system, method, apparatus and storage medium
CN104270291B (en) CDN network quality control method
CN108156038B (en) Request distribution method, device, access gateway and storage medium
CN103731307B (en) A kind of for multiple services standardized data face dynamic reconfiguration method
CN109831548B (en) Virtual content delivery network vCDN node establishment method and server
CN109756423A (en) The method and apparatus of policy update
CN107925681A (en) The system and method that the load balance in network packet core system is defined for distributed software
CN105450521B (en) A kind of multi-path network stream real time dynamic optimization method of software definition
CN104935625B (en) The method and system of service are found in Enterprise SOA (SOA) network
CN107370673A (en) Method, controller and the system of forward-path are established in a kind of network
JP2007066161A (en) Cache system
CN102780779A (en) Gateway equipment and method and device for optimization of campus network export P2P (peer-to-peer) traffic
CN103841045A (en) Internet cache processing method, content detection subsystem and Cache system
CN105681413B (en) A kind of CDN cooperates with the method and device of processing data with ISP
CN104468805A (en) Message routing device and method
US20230300106A1 (en) Data processing method, network element device and readable storage medium
Lomotey et al. MobiCrop: supporting crop farmers with a cloud-enabled mobile app
EP3258665B1 (en) Network storage method, switch device, and controller
CN104272789B (en) GSM, call treatment node and communication control method
CN104639557B (en) A kind of method, system and equipment for establishing PCEP sessions
JP5917678B1 (en) Information processing apparatus, method, and program
CN114024747A (en) Security service chain arranging and deploying method and system based on software defined network virtualization (NFV)
Zhang et al. SDNMP: Enabling SDN management using traditional NMS

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190416