Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Figure 1, for the embodiment of the invention provides a kind of network architecture diagrams of network application access system.Such as Fig. 1
Shown, which may include application service equipment and multiple network application access devices, wherein application service equipment
Also by title background service equipment, Component service equipment etc., application service equipment can be connect by internet and multiple network applications
Enter equipment to be communicatively coupled.In network architecture shown in Fig. 1, network application access device can parse current network application
Corresponding domain-name information obtains the network service node information carried in domain name information, is based on the network service node
Information is to the corresponding application service facility information of network application described in the network service node request, the application service
Facility information includes the link information of at least one application service equipment, and a company is selected in the application service facility information
The corresponding application service equipment of information is connect, to access the selected application service equipment according to the network application.In Fig. 1
Shown in network architecture, network application access device can include but is not limited to mobile phone, removable computer, tablet computer,
Personal digital assistant (Personal Digital Assistant, PDA), media player, smart television, smartwatch, intelligence
User equipmenies, the network service nodes such as energy glasses, Intelligent bracelet are specifically as follows the load balancing node in network, can divide
It is not stored with the corresponding different application service facility information of the network application.
Based on the network architecture shown in FIG. 1, below in conjunction with attached drawing 2 and attached drawing 3, to network provided in an embodiment of the present invention
It describes in detail using cut-in method.
Fig. 2 is referred to, for the embodiment of the invention provides a kind of flow diagrams of network application access method.Such as Fig. 2
It is shown, the embodiment of the present invention the method may include following steps S101- step S103.
S101, parsing current network apply corresponding domain-name information, obtain the network service carried in domain name information
Nodal information;
Specifically, network application access device can parse the corresponding domain-name information of currently running network application, it is described
Network application, which is specifically as follows, to be needed to connect corresponding application service equipment by internet and is answered with the terminal for obtaining network service
With, such as: instant messaging application, shopping online application etc..The network application access device is getting the network application
After corresponding domain-name information, domain name information can parse, to obtain the network service node carried in domain name information
Information.
S102 is based on the network service node information to network application pair described in the network service node request
The application service facility information answered;
Specifically, the network application access device can be based on the network service node information to the network service
The corresponding application service facility information of network application described in node request, wherein the application service facility information includes
The link information of at least one application service equipment, the link information are specifically as follows the corresponding network of each application service equipment
Address, the network application access device can pass through User Datagram Protocol (User Datagram Protocol, UDP)
Mode and network service node establish connection.
S103 selects the corresponding application service equipment of a link information, in the application service facility information with root
The selected application service equipment is accessed according to the network application;
Specifically, the network application access device can select a connection letter in the application service facility information
Corresponding application service equipment is ceased, to access the selected application service equipment according to the network application, it is preferred that institute
Stating network application access device can be by the side of transmission control protocol (Transmission Control Protocol, TCP)
Formula and selected application service equipment establish connection.
In embodiments of the present invention, by the corresponding domain-name information of parsing network application to obtain network service node letter
Breath, and network service node information is based on to the corresponding application service facility information of network service node request, final root
The process of network application access application service equipment is realized according to application service facility information.Pass through what is stored to network service node
Application service facility information is obtained, and can quickly be positioned application service equipment and is attached, avoid by service equipment
The influence of information dynamic change improves the efficiency of network application access service equipment, and then ensure that the use of network application
Effect;Establish connection by UDP and network service node, improve the acquisition speed of application service facility information, by TCP with
Application service equipment establishes connection, ensure that the reliability with the transmission of the data of application service equipment room.
Fig. 3 is referred to, for the embodiment of the invention provides the flow diagrams of another network application access method.Such as figure
Shown in 3, the embodiment of the present invention the method may include following steps S201- step S205.
S201, parsing current network apply corresponding domain-name information, obtain the network service carried in domain name information
Nodal information;
Specifically, network application access device can parse the corresponding domain-name information of currently running network application, it is described
Network application, which is specifically as follows, to be needed to connect corresponding application service equipment by internet and is answered with the terminal for obtaining network service
With, such as: instant messaging application, shopping online application etc..The network application access device is getting the network application
After corresponding domain-name information, domain name information can parse, to obtain the network service node carried in domain name information
Information.
It is understood that the network service node information may include the node letter of at least one load balancing node
Breath, the nodal information are specifically as follows the corresponding network address of each load balancing node, deposit in each load balancing node
The corresponding application service facility information of network application described in containing one group.
S202, according to the nodal information, successively each load balancing node at least one described load balancing node
Send service device information acquisition request;
It is corresponding to obtain the network application that the first load balancing node returns in each load balancing node by S203
Application service facility information;
Specifically, the case where in order to avoid network congestion, it is preferred that the network application access device can be every default
Time successively sends service device information acquisition request to each load balancing node according to the nodal information, until going out
Existing first load balancing node responds the service device information acquisition request, and the network application access device obtains described the
The corresponding application service facility information of the network application that one load balancing node returns, wherein first load balancing
Node is expressed as responding the node of the service device information acquisition request in each load balancing node, first load
Balanced node can be a node, or multiple nodes are specifically determined by actual response condition.
Wherein, the application service facility information includes the link information of at least one application service equipment, the connection
Information is specifically as follows the corresponding network address of each application service equipment, and the network application access device can pass through UDP's
Mode and network service node establish connection.
S204 is successively connected with each application service equipment according to the link information of at least one the application service equipment
It connects, and obtains the Connection Time section for establishing connection with each application service equipment respectively;
Connection Time shortest application service equipment of section is determined as being accessed according to the network application by S205
Application service equipment;
Specifically, the network application access device can be believed according to the connection of at least one the application service equipment
Breath, is successively attached with each application service equipment, and when each connection is successfully established, record and current application service equipment
Establish the Connection Time section of connection, i.e., from be initially connected to connection be successfully established between duration, network application access sets
It is standby to obtain the Connection Time section that connection is established with each application service equipment, and the shortest application of the Connection Time section is taken
Business equipment is determined as the application service equipment accessed according to the network application.
Preferably, the network application access device can be built by way of TCP with selected application service equipment
Vertical connection.
In embodiments of the present invention, by the corresponding domain-name information of parsing network application to obtain network service node letter
Breath, and network service node information is based on to the corresponding application service facility information of network service node request, final root
The process of network application access application service equipment is realized according to application service facility information.Pass through what is stored to network service node
Application service facility information is obtained, and can quickly be positioned application service equipment and is attached, avoid by service equipment
The influence of information dynamic change improves the efficiency of network application access service equipment, and then ensure that the use of network application
Effect;Establish connection by UDP and network service node, improve the acquisition speed of application service facility information, by TCP with
Application service equipment establishes connection, ensure that the reliability with the transmission of the data of application service equipment room;When by based on connection
Between section determine accessed application service equipment, the screening process of service equipment is realized on the basis of quick positioning, is guaranteed
The network performance of the service equipment accessed, improves the quality of network application access service equipment.
Based on the network architecture shown in FIG. 1, below in conjunction with attached drawing 4- attached drawing 6, to network provided in an embodiment of the present invention
It describes in detail using access device.It should be noted that the attached network application access device shown in fig. 6 of attached drawing 4-, is used for
The method for executing Fig. 2 and embodiment illustrated in fig. 3 of the present invention illustrates only relevant to the embodiment of the present invention for ease of description
Part, it is disclosed by specific technical details, please refer to Fig. 2 of the present invention and embodiment shown in Fig. 3.
Fig. 4 is referred to, for the embodiment of the invention provides a kind of structural schematic diagrams of network application access device.Such as Fig. 4
Shown, the network application access device 1 of the embodiment of the present invention may include:
Nodal information acquiring unit 11 obtains domain name letter for parsing current network using corresponding domain-name information
The network service node information carried in breath;
In the specific implementation, the nodal information acquiring unit 11 can parse the corresponding domain name of currently running network application
Information, the network application, which is specifically as follows, needs to connect corresponding application service equipment by internet to obtain network service
Terminal applies, such as: instant messaging application, shopping online application etc..The nodal information acquiring unit 11 is getting
After stating the corresponding domain-name information of network application, domain name information can parse, to obtain the net carried in domain name information
Network service node information.
Service device information acquiring unit 12, for being based on the network service node information to the network service node
The corresponding application service facility information of network application described in request, the application service facility information include that at least one is answered
With the link information of service equipment;
In the specific implementation, the service device information acquiring unit 12 can be based on the network service node information to institute
State the corresponding application service facility information of network application described in network service node request, wherein the application service is set
Standby information includes the link information of at least one application service equipment, and the link information is specifically as follows each application service equipment
Corresponding network address, the network application access device 1 can establish connection with network service node by way of UDP.
Specifically, please also refer to Fig. 5, for the embodiment of the invention provides the structures of service device information acquiring unit to show
It is intended to.As shown in figure 5, the service device information acquiring unit 12 may include:
Transmission sub-unit 121 is requested, is used for according to the nodal information, successively at least one described load balancing node
In each load balancing node send service device information acquisition request;
Service device information obtains subelement 122, for obtaining the first load balancing section in each load balancing node
The corresponding application service facility information of the network application that point returns, the first load balancing node are expressed as described each negative
Carry the node that the service device information acquisition request is responded in balanced node;
In the specific implementation, the network service node information may include the node letter of at least one load balancing node
Breath, the nodal information are specifically as follows the corresponding network address of each load balancing node, deposit in each load balancing node
The corresponding application service facility information of network application described in containing one group, the case where in order to avoid network congestion, it is preferred that described
Request transmission sub-unit 121 that can successively be sent out to each load balancing node every preset time according to the nodal information
Business apparatus information acquiring request is taken, until the first load balancing node occur responds the service device information acquisition request,
It is corresponding that the service device information acquisition subelement 122 obtains the network application that the first load balancing node returns
Application service facility information, wherein the first load balancing node is expressed as in each load balancing node described in response
The node of service device information acquisition request, the first load balancing node can be a node, or Duo Gejie
Point is specifically determined by actual response condition.
Wherein, the application service facility information includes the link information of at least one application service equipment, the connection
Information is specifically as follows the corresponding network address of each application service equipment, and the network application access device 1 can pass through UDP's
Mode and network service node establish connection.
Using access unit 13, for selecting the corresponding application of a link information in the application service facility information
Service equipment, to access the selected application service equipment according to the network application;
In the specific implementation, the application access unit 13 can select a connection in the application service facility information
The corresponding application service equipment of information, to access the selected application service equipment according to the network application, it is preferred that
The network application access device 1 can establish connection with selected application service equipment by way of TCP.
Specifically, please also refer to Fig. 6, for the embodiment of the invention provides the structural schematic diagrams of application access unit.Such as
Shown in Fig. 6, the application access unit 13 may include:
Period obtains subelement 131, for according to the link information of at least one the application service equipment successively with
Each application service equipment is attached, and obtains the Connection Time section that connection is established with each application service equipment respectively;
It accesses and determines subelement 132, for being determined as the shortest application service equipment of the Connection Time section according to institute
State the application service equipment that network application is accessed;
In the specific implementation, the period acquisition subelement 131 can be according at least one the application service equipment
Link information is successively attached with each application service equipment, and when each connection is successfully established, record takes with current application
Business equipment establishes the Connection Time section of connection, i.e., from be initially connected to connection be successfully established between duration, the period obtains
Subelement 131 is taken to obtain the Connection Time section for establishing connection with each application service equipment, the access determines subelement 132
The shortest application service equipment of the Connection Time section is determined as the application service equipment accessed according to the network application.
Preferably, the network application access device 1 can be built by way of TCP with selected application service equipment
Vertical connection.
In embodiments of the present invention, by the corresponding domain-name information of parsing network application to obtain network service node letter
Breath, and network service node information is based on to the corresponding application service facility information of network service node request, final root
The process of network application access application service equipment is realized according to application service facility information.Pass through what is stored to network service node
Application service facility information is obtained, and can quickly be positioned application service equipment and is attached, avoid by service equipment
The influence of information dynamic change improves the efficiency of network application access service equipment, and then ensure that the use of network application
Effect;Establish connection by UDP and network service node, improve the acquisition speed of application service facility information, by TCP with
Application service equipment establishes connection, ensure that the reliability with the transmission of the data of application service equipment room;When by based on connection
Between section determine accessed application service equipment, the screening process of service equipment is realized on the basis of quick positioning, is guaranteed
The network performance of the service equipment accessed, improves the quality of network application access service equipment.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.