CN105306238A - Terminal access method, terminal access device and terminal access system - Google Patents

Terminal access method, terminal access device and terminal access system Download PDF

Info

Publication number
CN105306238A
CN105306238A CN201410307658.7A CN201410307658A CN105306238A CN 105306238 A CN105306238 A CN 105306238A CN 201410307658 A CN201410307658 A CN 201410307658A CN 105306238 A CN105306238 A CN 105306238A
Authority
CN
China
Prior art keywords
server
terminal
request message
address
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410307658.7A
Other languages
Chinese (zh)
Other versions
CN105306238B (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 CN201410307658.7A priority Critical patent/CN105306238B/en
Publication of CN105306238A publication Critical patent/CN105306238A/en
Application granted granted Critical
Publication of CN105306238B publication Critical patent/CN105306238B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides a terminal access method, a terminal access device and a terminal access system. The terminal access method comprises the steps of sending a first request message including an URL (Uniform Resource Locator) address of a second server and an IP address as well as a port number of a terminal to at least a second server by a first server; enabling the second server to send a second request message including the URL address of the second server to the terminal based on the IP address and the port number of the terminal; and enabling the terminal to access to the first server through the second server based on the URL address of the second server, wherein the terminal is any of to-be-accessed terminals. A network manager is unnecessary to configure the URL address of the server manually for each to-be-accessed terminal, but the first server actively sends the URL address of the second server to each to-be-accessed terminal through the second server to realize the access process. Therefore, the terminal access efficiency is improved.

Description

Terminal access method, device and system
Technical field
The embodiment of the present invention relates to communication technical field, particularly relates to a kind of terminal access method, device and system.
Background technology
Along with the progress of society and the development of communication network, people carry out information interchange by communication network and have become a requisite part in people's life, such as Internet protocol (InternetProtocol, be called for short: IP) telephone communication, because IP phone communication can effectively utilize existing communication network resource, do not need overlapping investment just can solve transnational, trans-regional ip voice communication, therefore IP phone communication can more come to carry welcome in development communication technologies process from now on, and the application of nowadays IP phone communication in each enterprise is very general.
In prior art, mainly through IP phone from domain name analysis system (DomainNameSystem, DNS) or DHCP (DynamicHostConfigurationProtocol be called for short:, be called for short: address DHCP) obtaining management server in server, then IP phone accesses in management server according to the address of management server, thus realizes IP phone communication.But, if enterprise network management personnel think DNS or Dynamic Host Configuration Protocol server fail safe not high, then do not allow to arrange DNS or Dynamic Host Configuration Protocol server, so need network management personnel to the address arranging management server one by one on IP phone, when there being a large amount of IP phone to need access-in management server in the face of enterprise, the mode that above-mentioned employing arranges the address of management server one by one on IP phone then wastes time and energy very much, reduces the efficiency of IP phone access.
Summary of the invention
The embodiment of the present invention provides a kind of terminal access method, device and system, for solving the problems of the prior art, improves the efficiency of IP phone access.
First aspect, the embodiment of the present invention provides a kind of terminal access method, comprising:
First server sends the first request message at least one second server, and described first request message comprises the uniform resource position mark URL address of described second server, the internet protocol address of terminal and port numbers;
Described first server receives the access request message of the described terminal transmission that described second server forwards, and described access request message comprises the attribute information of described terminal, and described access request message is used for request and accesses to described first server;
Described first server sends access response message by described second server to described terminal.
In the first possible implementation of first aspect, described first server also comprises before sending the first request message to second server:
Described first server obtains the scan instruction of network management personnel's input, described scan instruction comprises the IP address field of described terminal to be accessed and described port numbers, and described scan instruction is used to indicate described first server and scans described IP address field and terminal to be accessed corresponding to described port numbers;
Described first server, according to described scan instruction, carries out ping test to described IP address field;
Described first server sends the first request message to second server, comprising:
Described first server to described second server send comprise described second server URL address, by the IP address of the described terminal of ping test and the first request message of described port numbers.
In conjunction with the first possible implementation of first aspect or first aspect, in the implementation that the second of first aspect is possible, the attribute information of described terminal comprises the version file number of described terminal, described first server also comprises before sending access response message by described second server to described terminal:
Described first server, according to the version file number of described terminal, determines that described terminal needs to upgrade the version file of described terminal;
Described first server sends access response message by described second server to described terminal, comprising:
Described first server sends the access response message comprising upgrading indication information to described terminal by described second server, described upgrading indication information is used to indicate the version file of terminal described in described terminal staging;
Described first server, is also comprised to after described terminal sends access response message by described second server:
Described first server receives the upgrade request message that described terminal that described second server forwards sends, and described upgrade request message is for the version file of described terminal of asking to upgrade;
Described first server sends upgrading response message by described second server to described terminal, and described upgrading response message comprises the URL address of the version file of the described terminal after upgrading.
Second aspect, the embodiment of the present invention provides a kind of server, and described server, as first server, comprising:
Transmitting element, for sending the first request message at least one second server, described first request message comprises the uniform resource position mark URL address of described second server, the internet protocol address of terminal and port numbers;
Receiving element, the access request message that the described terminal forwarded for receiving described second server sends, described access request message comprises the attribute information of described terminal, and described access request message is used for request and accesses to described first server;
Described transmitting element, also for sending access response message by described second server to described terminal.
In the first possible implementation of second aspect, above-mentioned server also comprises:
Acquiring unit, before sending the first request message at described transmitting element to second server, obtain the scan instruction of network management personnel's input, described scan instruction comprises the IP address field of described terminal to be accessed and described port numbers, and described scan instruction is used to indicate described first server and scans described IP address field and terminal to be accessed corresponding to described port numbers;
Test cell, for the described scan instruction obtained according to described acquiring unit, carries out ping test to described IP address field;
Described transmitting element specifically for send to described second server comprise described second server URL address, by the IP address of the described terminal of described test cell ping test and described first request message of described port numbers.
In conjunction with the first possible implementation of second aspect or second aspect, in the implementation that the second of second aspect is possible, the attribute information of described terminal comprises the version file number of described terminal, and described server also comprises:
Determining unit, before sending access response message by described second server to described terminal at described transmitting element, according to the version file number of described terminal, determines that described terminal needs to upgrade the version file of described terminal;
Described transmitting element is specifically for sending the access response message comprising upgrading indication information to described terminal by described second server, described upgrading indication information is used to indicate the version file of terminal described in described terminal staging;
Described receiving element is also for after sending access response message by described second server to described terminal at described transmitting element, receive the upgrade request message that described terminal that described second server forwards sends, described upgrade request message is for the version file of described terminal of asking to upgrade;
Described transmitting element is also for sending upgrading response message by described second server to described terminal, and described upgrading response message comprises the URL address of the version file of the described terminal after upgrading.
The third aspect, the embodiment of the present invention provides a kind of server, and described server, as second server, comprising:
Receiving element, for receiving the first request message that first server sends, described first request message comprises the uniform resource position mark URL address of described second server, the internet protocol address of terminal and port numbers;
Transmitting element, for according to the IP address of described terminal and port numbers, send the second request message to described terminal, described second request message comprises the URL address of described second server;
Set up unit, for establishing a communications link according to the URL address of described second server and described terminal;
Described receiving element, also for being received the access request message that described terminal sends by described communication connection, described access request message comprises the attribute information of described terminal, and described access request message is used for request and accesses to described first server;
Described transmitting element, also for forwarding described access request message to described first server, and forwards the access response message of described first server transmission, to complete the access procedure of described terminal to described terminal by described communication connection.
Fourth aspect, the embodiment of the present invention provides a kind of terminal, comprising:
Receiving element, for receiving the second request message that second server sends according to the internet protocol address of described terminal and port numbers, described second request message comprises the uniform resource position mark URL address of described second server, described second request message is that the first request message that described second server sends according to described first server sends, and described first request message comprises the URL address of described second server, the IP address of described terminal and port numbers;
Set up unit, for establishing a communications link according to the URL address of described second server and described second server;
Transmitting element, for sending access request message by described second server to described first server, described access request message comprises the attribute information of described terminal, and described access request message is used for request and accesses to described first server;
Described receiving element, the access response message that the described first server also forwarded for being received described second server by described communication connection is sent.
In the first possible implementation of fourth aspect, above-mentioned terminal also comprises: upgrade unit;
The access response message comprising upgrading indication information that described receiving element sends specifically for the described first server receiving the forwarding of described second server by described communication connection, described upgrading indication information is used to indicate the version file of terminal described in described terminal staging;
After the access response message that the described first server that described transmitting element is also forwarded for be received described second server by described communication connection at described receiving element sends, send upgrade request message by described second server to described first server, described upgrade request message is for the version file of described terminal of asking to upgrade;
The upgrading response message that the described first server that described receiving element is also forwarded for being received described second server by described communication connection sends, described upgrading response message comprises the URL address of the version file of the described terminal after upgrading;
Described upgrade unit, for the URL address of the version file according to the described terminal after described upgrading, downloads the version file of the described terminal after described upgrading from described first server by described second server; And according to the version file of the described terminal after described upgrading, the version file of described terminal is upgraded.
5th aspect, the embodiment of the present invention provides a kind of terminal connecting system, comprising: as second aspect first server, the second server as described at least one third aspect and the terminal as described at least one fourth aspect item.
The terminal access method that the embodiment of the present invention provides, device and system, sent the first request message comprising the URL address of second server, the IP address of terminal and port numbers to second server by first server, to make second server, according to the IP address of terminal and port numbers, the second request message of the URL address of carrying second server be sent to terminal, thus terminal can establish a communications link according to the URL address of second server and second server and access to first server.Make the URL address that network management personnel does not need each terminal to be accessed manual configuration server, but the URL address that first server initiatively sends second server to each terminal to be accessed by second server realizes access procedure, thus improve the efficiency of terminal access.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of terminal access method embodiment one of the present invention;
Fig. 2 is the flow chart of terminal access method embodiment two of the present invention;
Fig. 3 is the flow chart of terminal access method embodiment three of the present invention;
Fig. 4 is the flow chart of terminal access method embodiment four of the present invention;
Fig. 5 is a kind of application scenarios figure of terminal access method of the present invention;
Fig. 6 is the structural representation of server example one of the present invention;
Fig. 7 is the structural representation of server example two of the present invention;
Fig. 8 is the structural representation of server example three of the present invention;
Fig. 9 is the structural representation of terminal embodiment one of the present invention;
Figure 10 is the structural representation of terminal embodiment two of the present invention;
Figure 11 is the structural representation of server example four of the present invention;
Figure 12 is the structural representation of server example five of the present invention;
Figure 13 is the structural representation of terminal embodiment three of the present invention;
Figure 14 is the structural representation of terminal connecting system embodiment of the present invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Various embodiments of the present invention are described for the application scenarios of a large amount of IP phone access enterprises operational system, and enterprise's operational system comprises master server and distributed server, and the communication between IP phone and master server is forwarded by distributed server.
Fig. 1 is the flow chart of terminal access method embodiment one of the present invention, and as shown in Figure 1, the first server of the present embodiment can be master server, and second server can be distributed server, and terminal can be IP phone to be accessed.It should be noted that, second server can within be located in first server, also can be located at first server outward.The method of the present embodiment can comprise:
S101, first server send the first request message at least one second server, and described first request message comprises the URL address of described second server, the IP address of terminal and port numbers.
In the present embodiment, first server is arranged with multiple second server, the function of a part of first server is shared by second server, to alleviate the burden of first server, such as: when 1,000 station terminals need to access in first server, if directly completed the access procedure of this thousand station terminal by first server, will directly carry out alternately with 1,000 station terminals by first server; And if ten second servers are set under first server, first server is direct and these ten second servers are mutual, not direct and this thousand station terminal carries out alternately, greatly can alleviate the burden of first server like this, assist first server to complete the access procedure of 100 station terminals by every platform second server, the process of 1,000 station terminal access first servers can be completed equally.
When first server needs the terminal scanning this first server to be accessed, first server sends the first request message at least one second server, this first request message comprises the URL(uniform resource locator) (UniformResourceLocator of second server, be called for short: URL) the IP address of address, terminal and port numbers, the URL address of second server is sent to described terminal for asking second server by this first request message.According to the IP address of described terminal and port numbers, the second request message of the URL address comprising described second server is sent to terminal to make described second server, establish a communications link according to the URL address of described second server and second server to make described terminal, described terminal is any terminal in terminal to be accessed, such as terminal to be accessed is 100, then first server can send 100 the first request messages to second server, the corresponding terminal to be accessed of each first request message.Wherein, first server can (HyperTextTransferProtocoloverSecureSocketLayer be called for short: HTTPS) send the first request message to second server based on the HTML (Hypertext Markup Language) of SSL.
Wherein, the URL address of second server can comprise the URL address of second server host process and the URL address of second server certificate repository, the URL address of second server obtains from the configuration file of first server, this configuration file is with extend markup language (ExtensibleMarkupLanguage, be called for short: XML) file is stored in first server, and the content of configuration file is as follows:
<Content>
<ACSPortURL>https://192.168.3.114:8444/tr069/services/acs</ACSPortURL>
<CAURL>https://192.168.3.114:32234/certificate/cacert.pem</CAURL>
</Content>; Wherein, the ACSPortURL in configuration file is the URL address of second server host process, and CAURL is the URL address of second server certificate repository.
Alternatively, before described first server sends the first request message to second server, also comprise: described first server obtains the scan instruction of network management personnel's input, described scan instruction comprises the IP address field of described terminal to be accessed and described port numbers, described scan instruction is used to indicate and refers to that stating described first server scans described IP address field and terminal to be accessed corresponding to described port numbers, and described first server is according to described scan instruction, ping test is carried out to described IP address field; Described first server sends the first request message to second server, comprising: described first server to described second server send comprise described second server URL address, by the IP address of the described terminal of ping test and the first request message of described port numbers.When there being a large amount of terminals to need to access to first server, network management personnel can by the network management personnel interface (UserInterface of first server, be called for short: UI) to first server input scan instruction, in a kind of feasible implementation, if network management personnel has divided subnet, an i.e. corresponding IP address field of subnet, Subnet Identification and port numbers can be comprised in the scan instruction that then network management personnel inputs to first server at network management personnel interface, first server can determine according to Subnet Identification the IP address field that this subnet is corresponding, in the implementation that another kind is feasible, if the unallocated subnet of network management personnel, then directly can comprise IP address field and port numbers in the scan instruction that network management personnel inputs to first server at network management personnel interface.
First server can obtain the IP address field of terminal to be accessed indicated in scan instruction, this IP address field is that network management personnel selects, then the IP address field of first server to the terminal to be accessed selected in network management people carries out ping test, to test network interworking between which IP address and the IP address of first server in this IP address field, if the IP address network intercommunication of an IP address and first server, then illustrate that ping test is passed through in this IP address, if the IP address network not intercommunication of an IP address and first server, then illustrate that ping test is not passed through in this IP address, further, first server can also be fed back this IP address by network management personnel interface to network management personnel and not pass through ping test, troubleshooting is carried out for this IP address to make network management personnel.If the IP address field of the terminal to be accessed that network management personnel selects is: 10.0.0.0-10.0.0.80, the port numbers of terminal to be accessed can be such as 808, and the 10.0.0.50 in this IP address field is not by ping test, by the IP address field of ping test be so: 10.0.0.0-10.0.0.49 and 10.0.0.51-10.0.0.80.Then the IP address of the terminal by ping test is carried in the first request message and sends to second server by first server, and the IP address of terminal is any IP address in 10.0.0.0-10.0.0.49 and 10.0.0.51-10.0.0.80.Wherein, how to carry out ping test similarly to the prior art, repeat no more herein.
Alternatively, if there is multiple second server, then first server needs to select a second server as the terminal to be accessed corresponding to scanning above-mentioned IP address field from multiple second server, network management personnel can pre-set the corresponding relation between each IP address field (or Subnet Identification) and each second server in first server, first server according to the IP address field determination second server of terminal to be accessed, thus can determine the URL address of second server; Particularly, network management personnel can pre-set the corresponding relation between each IP address field (or Subnet Identification) and each second server in first server, IP address field (or Subnet Identification) is added in the configuration file of the URL address comprising second server by first server, store with XML file form, then first server determines configuration file according to the IP address field (or Subnet Identification) of terminal to be accessed, thus obtains the URL address of second server.
Alternatively, the scan instruction of above-mentioned network management personnel's input also comprises scanning indication information, if scanning indication information indicates described first server to scan terminal to be accessed immediately, then first server is after the scan instruction obtaining network management personnel's input, sends the first request message to second server; If solicited message instruction first server scans terminal to be accessed after getting scan instruction Preset Time or indicate first server at Preset Time spot scan terminal to be accessed, then first server is after the scan instruction obtaining network management personnel's input, the first request message is sent to second server after Preset Time, or, send the first request message at Preset Time point to second server.Therefore can realize first server to scan the terminal to be accessed under different IP addresses section according in the different time.
Alternatively, described first server also comprises before sending the first request message to second server: the URL address encapsulation of described second server is become java object by described first server; Described first server sends the first request message to second server, comprise: described first server sends to described second server and comprises described java object, the IP address of described terminal and the first request message of port numbers, to make described second server that described java object is converted to XML file, and the second request message comprising described XML file is sent to described terminal.
S102, described first server receive the access request message of the described terminal transmission that described second server forwards, and described access request message comprises the attribute information of described terminal, and described access request message is used for request and accesses to described first server.
In the present embodiment, first request message is sent to second server by first server, the URL address of second server is included in the second request message and sends to terminal by second server, then terminal establishes a communications link according to the URL address of second server and second server, then terminal sends access request message by second server to first server, namely terminal sends access request message to second server, and then access request message is sent to first server by second server.It should be noted that, first server receives the access request message of the terminal transmission that second server forwards, namely terminal sends access request message by the communication protocol between this terminal and second server to second server, and then second server sends access request message according to the communication protocol between this second server and first server to first server.
In the present embodiment, access request message comprises the attribute information of terminal, and access request message is used to indicate the terminal request with this attribute information and accesses to first server.The attribute information of terminal uniquely can distinguish this terminal and other terminal, the attribute information of terminal such as can comprise: (Organizationallyuniqueidentifier is called for short: OUI), the product type of terminal, the physical serial numbers of terminal, the event type of terminal, the equipment of terminal returns the version file number (i.e. the software version document number of terminal) connecting address, terminal for producer's organization unique identifier of terminal.Alternatively, above-mentioned access request message can be such as heartbeat message.
S103, described first server send access response message by described second server to described terminal.
In the present embodiment, after first server receives the access request message of the terminal transmission that second server forwards, add the attribute information of terminal, to represent that the terminal with this attribute information accesses to first server, then first server sends access response message to second server, second server sends this access response message to terminal, completes with the access procedure of indicating terminal.Alternatively, accessing response message can be such as heartbeat response message.
The terminal access method that the embodiment of the present invention one provides, sent the first request message comprising the URL address of second server, the IP address of terminal and port numbers to second server by first server, to make second server, according to the IP address of terminal and port numbers, the second request message of the URL address of carrying second server be sent to terminal, thus terminal can establish a communications link according to the URL address of second server and second server and access to first server.Make the URL address that network management personnel does not need each terminal to be accessed manual configuration server, but the URL address initiatively sending second server to each terminal to be accessed by second server by first server realizes access procedure, thus improve the efficiency of terminal access.
Fig. 2 is the flow chart of terminal access method embodiment two of the present invention, and as shown in Figure 2, the first server of the present embodiment can be master server, and second server can be distributed server, and terminal to be accessed can be IP phone to be accessed.It should be noted that, second server can within be located in first server, also can be located at first server outward.The method of the present embodiment can comprise:
S201, second server receive the first request message that first server sends, and described first request message comprises the URL address of described second server, the IP address of terminal and port numbers.
In the present embodiment, second server can receive the first request message of first server transmission based on HTTPS, this first request message comprises the URL address of described second server, the IP address of terminal and port numbers, and terminal is any terminal in terminal to be accessed.The URL address of second server is transmitted to and terminal for asking second server by this first request message.Alternatively, the URL address of second server can comprise the URL address of second server host process and the URL address of second server certificate repository.
S202, described second server, according to the IP address of described terminal and port numbers, send the second request message to described terminal, and described second request message comprises the URL address of described second server.
In the present embodiment, second server receives the first request message that first server sends, resolve the URL address of second server in acquisition first request message, the IP address of terminal and port numbers, then generate the second request message according to the URL address of second server, then send the second request message according to the IP address of terminal and port numbers to terminal.
Alternatively, described second server receives the first request message that first server sends, comprise: what described second server received that described first server sends comprises java object, the IP address of described terminal and the first request message of port numbers, described java object is described first server according to the URL address encapsulation of described second server.Described second server, according to the IP address of described terminal and port numbers, before sending the second request message, also comprises: described java object is converted to XML file by described second server to terminal; Described second server, according to the IP address of described terminal and port numbers, sends the second request message to terminal, comprising: described second server, according to the IP address of described terminal and port numbers, sends the second request message comprising described XML file to terminal.Wherein, described java object is converted to XML file by described second server, be specially second server and resolve the URL address that java object obtains second server, then the URL address encapsulation of second server is become XML file, namely the URL address encapsulation of second server sends to terminal by second server in XML file.
Wherein, the URL address of second server can comprise the URL address of second server host process and the URL address of second server certificate repository; The content of XML file is such as follows:
<Content>
<RequestType>discovery</RequestType>
<ACSPortURL>https://192.168.3.114:8444/tr069/services/acs</ACSPortURL>
<CAURL>https://192.168.3.114:32234/certificate/cacert.pem</CAURL>
</Content>; Wherein, above-mentioned ACSPortURL is the URL address of second server host process, and above-mentioned CAURL is the URL address of second server certificate repository.
Wherein, second server can send the second request message based on HTTPS to terminal.The information of the second request message is such as follows:
POST/HTTP/1.1
User-Agent:0123456789
Cache-Control:no-cache
Pragma:no-cache
Host:192.168.3.99:8080
Accept:text/html,image/gif,image/jpeg,*;q=.2,*/*;q=.2
Connection:keep-alive
Content-type:application/x-www-form-urlencoded
Content-Length:190
Authorization:Digestusername="huawei",realm="huawei.com.cn",nonce="86eec71c3d581ada74db5785bd051a9b",nc=00000001,uri="/",response="b01aaf03a810b815016087d768db1ab0",algorithm="MD5",cnonce="LNNJCPJBDHJILFLKMNLFCOLHFECGKLGOHCNJGCGI",qop="auth"
<Content>
<RequestType>discovery</RequestType>
<ACSPortURL>https://192.168.3.114:8444/tr069/services/acs</ACSPortURL>
<CAURL>https://192.168.3.114:32234/certificate/cacert.pem</CAURL>
</Content>。
S203, described second server establish a communications link according to the URL address of described second server and described terminal.
In the present embodiment, after second server comprises the second request message of the URL address of second server to terminal transmission, second server can establish a communications link according to the URL address of second server and terminal, and this communication connection is that terminal equipment wide area network management agreement TR069 communicates to connect.Particularly, terminal can obtain certificate according to the URL address of second server certificate repository from second server, and then terminal establishes a communications link according to the URL address of certificate and second server host process and second server.
S204, described second server receive the access request message of described terminal transmission by described communication connection, described access request message comprises the attribute information of described terminal, described access request message is used for request and accesses to described first server, and forwards described access request message to described first server.
In the present embodiment, after second server and terminal establish a communications link, the access request message that first server is sent by this communication connection receiving terminal, such as first server is based on terminal equipment wide area network management agreement (TR069), namely by the access request message of above-mentioned communication connection receiving terminal transmission, then (such as based on HTTPS) sends this access request message to described first server, to complete the access procedure of described terminal.
In the present embodiment, access request message comprises the attribute information of terminal, and access request message is used to indicate the terminal request with this attribute information and accesses to first server.The attribute information of terminal uniquely can distinguish this terminal and other terminal, and the attribute information of terminal such as can comprise: the producer OUI of terminal, the product type of terminal, the physical serial numbers of terminal, the event type of terminal, the equipment of terminal return the version file number connecting address, terminal.
S205, described second server forward the access response message of described first server transmission to described terminal by described communication connection.
In the present embodiment, second server such as receives the access response message of first server transmission based on HTTPS agreement, then such as this access response message is sent to terminal, to complete the access procedure of described terminal based on TR069 (i.e. above-mentioned communication connection).
The terminal access method that the embodiment of the present invention two provides, the first request message comprising the URL address of second server, the IP address of terminal and port numbers that first server sends is received by second server, and send to terminal according to the IP address of terminal and port numbers by the second request message carrying the URL address of second server, and establish a communications link according to the URL address of second server and terminal, access to first server to make terminal.Make the URL address that network management personnel does not need each terminal to be accessed manual configuration server, but the URL address that first server initiatively sends second server to each terminal to be accessed by second server realizes access procedure, thus improve the efficiency of terminal access.
Fig. 3 is the flow chart of terminal access method embodiment three of the present invention, and as shown in Figure 3, the first server of the present embodiment can be master server, and second server can be distributed server, and terminal to be accessed can be IP phone to be accessed.It should be noted that, second server can within be located in first server, also can be located at first server outward.The method of the present embodiment can comprise:
S301, terminal receive the second request message that second server sends according to the IP address of described terminal and port numbers, and this second request message comprises the URL address of described second server.
In the present embodiment, described terminal is any terminal in terminal to be accessed, described second request message is that the first request message that described second server sends according to described first server sends, and described first request message comprises the URL address of described second server, the IP address of described terminal and port numbers.Wherein, terminal can receive the second request message of second server transmission based on HTTPS agreement.
In the present embodiment, described terminal receives the second request message that second server sends according to the IP address of terminal and port numbers, comprise: described terminal receives the second request message comprising XML file that described second server sends according to the IP address of terminal and port numbers, described XML file is that described second server is converted to java object, and described java object is that described first server forms according to the URL address encapsulation of described second server and is included in described first request message and sends to described second server.After terminal receives the second request message, the XML file can resolved in the second request message obtains the URL address of second server.
S302, described terminal establish a communications link according to the URL address of described second server and described second server.
In the present embodiment, terminal receive second server send comprise the second request message of the URL address of second server after, terminal can establish a communications link according to the URL address of second server and second server, this communication connection is TR069 communication connection, particularly, terminal can obtain certificate according to the URL address of second server certificate repository from second server, and then terminal establishes a communications link according to the URL address of certificate and second server host process and second server.
S303, described terminal send access request message by described second server to described first server, and described access request message comprises the attribute information of described terminal, and described access request message is used for request and accesses to described first server.
In the present embodiment, terminal is based on TR069, and namely by above-mentioned communication connection, send access request message to second server, second server sends this based on HTTPS to first server please enter request message.
In the present embodiment, access request message comprises the attribute information of terminal, and access request message is used to indicate the terminal request with this attribute information and accesses to first server.The attribute information of terminal uniquely can distinguish this terminal and other terminal, and the attribute information of terminal such as can comprise: the producer OUI of terminal, the product type of terminal, the physical serial numbers of terminal, the event type of terminal, the equipment of terminal return the version file number connecting address, terminal.Alternatively, access request message can be such as heartbeat message.
Alternatively, described terminal also comprises: be updated in address configuration item the URL address of described second server after receiving the second request message that second server sends according to the IP address of terminal and port numbers.Renewal described in the present embodiment, if refer in address configuration item to there is not address, then the URL address of second server is stored in address configuration item, if there is address in address configuration item, then by already present address in replacement address, the URL address configuration item of second server.Alternatively, the URL address of second server comprises the URL address of second server host process and the URL address of second server certificate repository, be such as: the URL address of second server host process is updated in the address configuration item in TR069 service station in terminal by terminal, and the URL address of second server certificate repository is updated in the address configuration item of CA server in the terminal of phone by terminal.
S304, described terminal receive the access response message of the described first server transmission that described second server forwards by described communication connection.
In the present embodiment, first server accesses response message based on HTTPS agreement to second server, and second server, based on TR069, namely by described communication connection, sends this access response message to terminal, to complete the access procedure of described terminal.Alternatively, accessing response message can be such as heartbeat response message.
The terminal access method that the embodiment of the present invention three provides, by the second request message comprising the URL address of second server that terminal reception second server sends according to the IP address of terminal and port numbers, second request message second server according to first server send comprise the URL address of second server, the first request message of the IP address of terminal and port numbers sends, then terminal establishes a communications link according to the URL address of second server and second server and accesses in first server.Make the URL address that network management personnel does not need each terminal to be accessed manual configuration server, but the URL address that first server initiatively sends second server to each terminal to be accessed by second server realizes access procedure, thus improve the efficiency of terminal access.
Fig. 4 is the flow chart of terminal access method embodiment four of the present invention, and as shown in Figure 4, the first server of the present embodiment can be master server, and second server can be distributed server, and terminal to be accessed can be IP phone to be accessed.It should be noted that, second server can within be located in first server, also can be located at first server outward.The method of the present embodiment can comprise:
S401, first server send the first request message to second server; Described second server receives described first request message that described first server sends.
S402, described second server, according to the IP address of terminal and port numbers, send the second request message to terminal; Described terminal receives the second request message that second server sends according to the IP address field of described terminal and port numbers.
S403, described terminal establish a communications link according to the URL address of second server and second server.
S404, described terminal send access request message by described second server to described first server; Described first server receives the access request message of the described terminal transmission that described second server forwards by described communication connection.
In the present embodiment, the specific implementation process of S401-S404 see the relevant record in the inventive method embodiment one to three, can repeat no more herein.
It should be noted that, after terminal and second server set up above-mentioned communication connection, the message transmitted between terminal and second server is transmitted by above-mentioned communication connection, namely communicates based on TR069.
S405, described first server, according to the version file number of the described terminal in the attribute information of described terminal, determine that described terminal needs to upgrade the version file of described terminal.
In the present embodiment, in above-mentioned access request message, the attribute information of terminal comprises the version file number of terminal, the version file number of the terminal stored in the version file of terminal number and first server can contrast by first server, if the version file of terminal number is not less than the version file number of the terminal stored in first server, then determine that terminal does not need the version file of upgrading terminals, if the version file of terminal number (as 2.0) is lower than the version file number (as 3.0) of the terminal stored in first server, then determine that terminal needs to upgrade the version file of described terminal.
S406, described first server send the access response message comprising upgrading indication information to described terminal by described second server, described upgrading indication information is used to indicate the version file of terminal described in described terminal staging; Described terminal receives the described access response message comprising described upgrading indication information of the described first server transmission that described second server forwards by described communication connection.
In the present embodiment, first server determination terminal need to upgrade described terminal version file after, first server is when sending access response message by second server to terminal, upgrading indication information is carried in access response message and sends to terminal, such as: the access response message comprising upgrading indication information is sent to second server based on HTTPS by first server, the access response message comprising upgrading indication information is sent to terminal based on TR069 by second server.Alternatively, upgrading indication information also can not be carried at access response message and send to terminal, but sends to terminal by independent message.
After terminal receives access response message and gets upgrading indication information, if terminal determines the version file of upgrading terminals, then the embodiment of the present invention can also comprise as described below; If terminal determines the version file of not upgrading terminals, then the flow process of the embodiment of the present invention terminates.
S407, described terminal send upgrade request message by described second server to described first server, and described upgrade request message is for the version file of described terminal of asking to upgrade; Described first server receives the described upgrade request message of the described terminal transmission that described second server forwards.
In the present embodiment, when terminal determines the version file of upgrading terminals according to upgrading indication information, terminal is based on TR069 to second server upgrade request message, and then second server sends this upgrade request message based on HTTPS to first server.
Alternatively, upgrade request message is also for the service scripts of described terminal of asking to upgrade, and the service scripts of this terminal comprises: the signal tone file etc. of the configuration file of terminal, the voice file of terminal and terminal.
Alternatively, upgrade request message can be such as alarm event message, and alarm event message is such as follows:
<EventStruct>
<EventCode>X001F10autodeployL EssT.LTssT.LT/EventCode>---is from disposing request code
</EventStruct>。
S408, described first server send upgrading response message by described second server to described terminal, and described upgrading response message comprises the URL address of the version file of the described terminal after upgrading; Described terminal receives the upgrading response message of the described first server transmission that described second server forwards by described communication connection.
In the present embodiment, first server can send upgrading response message based on HTTPS to second server, and second server can send this upgrading response message based on TR069 to terminal.
Particularly, after first server receives the upgrade request message of the terminal transmission that second server forwards, first server is according to upgrade request message, the URL address of the version file of the terminal after upgrading is included in upgrading response message and sends to second server based on HTTPS, this upgrading response message is sent to terminal based on TRO069 by second server, if upgrade request message is also for asking the service scripts of download terminal, then first server is also by (the URL address of such as configuration file, URL address of the service scripts of the terminal after upgrading, the URL address of voice file, the URL address of signal tone file) be included in upgrading response message in send to terminal.Alternatively, upgrading response message can be such as that (UpdatePolicyFile is called for short: UPF) escalation policy file.
S409, described terminal, according to the URL address of the version file of the described terminal after described upgrading, download the version file of the described terminal after described upgrading from described first server by described second server; And according to the version file of the described terminal after described upgrading, the version file of described terminal is upgraded.
Alternatively, terminal can also download the service scripts of the described terminal after described upgrading from described first server by described second server according to the URL address of the service scripts of the terminal after upgrading; And according to the service scripts of the described terminal after described upgrading, the service scripts of terminal is upgraded.Such as: terminal can also according to the URL address of configuration file of the terminal after upgrading, the URL address of voice file, the URL address of signal tone file, from described first server, the configuration file of the described terminal after described upgrading, voice file and signal tone file is downloaded by described second server; And according to the configuration file of the described terminal after described upgrading, voice file and signal tone file service file, the configuration file of terminal, voice file and signal tone file are upgraded.
Alternatively, the method for the present embodiment can also comprise: described terminal to send the current upgrading progress msg of described terminal according to the predetermined period time to described first server by described second server; Described first server receives the current upgrading progress msg of the described terminal that described terminal that described second server forwards sent according to the predetermined period time.And described first server is according to the current upgrading progress msg of described terminal, refreshes the upgrading progress of described terminal.
In the present embodiment, terminal is in the escalation process of the version file to terminal, or, terminal is in the version file of terminal and the escalation process of service scripts, terminal can report current upgrading progress according to the predetermined period time to first server, such as current upgrading progress msg can be sent to second server based on TR069 in every 3 minutes by terminal, and then current upgrading progress msg is sent to first server based on HTTPS by second server.
Alternatively, described current upgrading progress msg comprises: the value of current time, upgrading progress title and upgrading progress.Wherein, current upgrading progress msg is such as follows:
<EventStruct>
<EventCode>X001E10ProcessRepo rt</EventCode>----timing code
<CommandKey>1385805332666</CommandKey>
</EventStruct>
</Event>
<MaxEnvelopes>1</MaxEnvelopes>
<CurrentTime>2013-08-01T14:23:48+00:00</CurrentTime>
<RetryCount>0</RetryCount>
<ParameterListSOAP-ENC:arrayType="cwmp:ParameterValueStruct[8]">
<ParameterValueStruct>
The title of <Name>Device.DeviceInfo.Proce ssReport</Name>----upgrading progress
The value of <Valuexsi:type=" xsd:string " >30%</Value>----upgrading progress
</ParameterValueStruct>。
In the present embodiment, first server, according to the current upgrading progress msg of terminal, refreshes the upgrading progress of terminal, so that the upgrading progress of monitor terminal.First server can show the current upgrading progress of present terminal to network management personnel at network management personnel interface, thus network management personnel can know the current upgrading progress of each terminal by the network management personnel interface of first server.
The terminal access method that the embodiment of the present invention four provides, further, if the version file of terminal is number lower, then first server can pass through second server indicating terminal update version document, upgrading progress also can be reported first server by terminal, make first server can dynamic monitoring terminal upgrading progress.
Alternatively, on the basis of said method embodiment, in described terminal by described second server to after described first server sends access request message, the method of the present embodiment can also comprise: if described terminal breaks down, then described terminal sends signalling trouble message by described second server to described first server, and described signalling trouble message is used for notifying that described in described first server, terminal breaks down.And described first server receives the signalling trouble message of the described terminal transmission that described second server forwards; Described first server, according to described signalling trouble message, shows described terminal to network management personnel and breaks down.
In the present embodiment, if terminal detects this terminal occurred fault, the low memory of such as terminal or the temperature of terminal excessively high, terminal can send signalling trouble message based on TR069 to second server, second server sends this signalling trouble message based on HTTPS to first server, to notify that this terminal of first server breaks down, the such as low memory of this terminal of notice first server or the temperature of this terminal are too high.First server is according to this signalling trouble message, show this terminal by network management personnel interface to network management personnel to break down (such as occurring the fault of low memory or the too high fault of temperature), alternatively, first server can also show to network management personnel the suggestion solving this fault.Alternatively, by red for the mark mark of GC group connector in the network topology of first server and each terminal, can have there is fault to warn terminal, network management personnel can have been known and know that fault has appearred in which terminal in first server.
Fig. 5 is a kind of application scenarios figure of terminal access method of the present invention, as shown in Figure 5, first server in the present embodiment is master server, second server is distributed server, terminal is IP phone, there is multiple stage IP phone in the application scenarios shown in Fig. 5, herein only display one, multiple stage distributed server can be there is, herein only display one in the application scenarios shown in Fig. 5.
The master server of the present embodiment comprises access scan components and certainly disposes assembly, access scan components comprises: device IP provides service schedule, access scan service progress, progress Push Service process and result statistical fractals progress, comprises: from disposing request analysis process, issuing process and file service process from deployment task from disposing assembly; The distributed server of the present embodiment comprises: packet parsing process and message repeating process, and the IP phone of the present embodiment comprises: scanning parsing process, registration service process, alerting service process and upgrade service process.
The device IP of master server extracts IP address field and port numbers that service processes obtains IP phone from the subnet that network management personnel selects, and ping test is carried out to the IP address field that network management personnel selects, then will be passed to the access scan service process of master server by the IP address field of ping test and port numbers.This access scan service process creates scan task for IP address field and port numbers, the URL address of distributed server is obtained from the configuration file master server, by the URL address of distributed server, IP address and port are included in the packet parsing process sending distributed server in the first request message, particularly, the URL address encapsulation of distributed server is java object by the access scan service process of master server, java object is passed to the packet parsing process of distributed server by RMI, simultaneously by IP address and port numbers by Parameter transfer to the packet parsing process of distributed server.
The packet parsing process of distributed server is resolved the first request message process, be XML file by the URL address transition of distributed server, XML file and IP address and port numbers are sent to the message repeating process of distributed server simultaneously, XML file, according to IP address and port numbers, to be included in the second request message based on HTTPS and to send to IP phone by this message repeating process.
The request of IP phone meeting real-time listening master server, when receiving the second request message, scanning parsing process is resolved the XML file in the second request message, the host process address of resolving the distributed server obtained is updated to IP phone TR069 service station access control service (AcessContrtolServer, be called for short: ACS) in address configuration item, the certificate repository address of resolving the distributed server obtained is updated to the Certificate Authority (CertificateAuthority of IP phone, be called for short: in CA certificate address configuration item CA) in server configuration item.The registration service process of IP phone reports access request message (such as heartbeat message) to distributed server, to be automatically registered in master server after knowing that address above mentioned upgrades.After the alerting service process of IP phone learns that IP phone has accessed, report upgrade request message (such as alarm event message) to the packet parsing process of distributed server, acquisition request needs the URL address of upgrade file, namely escalation policy file (UPF) is downloaded in request, the packet parsing process of distributed server is resolved upgrade request message, and is transmitted to the request analysis of the deployment certainly process under deployment assembly of master server by message repeating process.From dispose request analysis process by comprise the version file after upgrading, configuration file, voice file, signal tone file the upgrading response message (such as UPF) in URL path by distributed server packet parsing process and message repeating process by escalation policy file transfer to the upgrade service process of IP phone.The upgrade service process of IP phone receives and after resolving UPF, file service process to master server sends download request message, to ask to download the files such as phone version file, configuration file, voice file, signal tone file, and carry out the automatic deployment of IP phone.Current upgrading progress msg can be reported to the result statistical fractals process of master server for every 3 minutes by the upgrade service process of IP phone, and progress msg of wherein upgrading comprises: the value of the timing code of expansion, the title of upgrading progress, upgrading progress; Result statistical fractals process refreshes progress and the state of the scan task of IP phone, and progress Push Service process, for adding up the scan progress of IP phone, and scan progress result is pushed to network management personnel interface.
Fig. 6 is the structural representation of server example one of the present invention, as shown in Figure 6, the server of the present embodiment can comprise as first server: transmitting element 11 and receiving element 12, wherein, transmitting element 11 is for sending the first request message to second server, and described first request message comprises the URL address of described second server, the IP address of terminal and port numbers; The access request message that receiving element 12 sends for the described terminal receiving the forwarding of described second server, described access request message comprises the attribute information of described terminal, and described access request message is used for request and accesses to described first server; Transmitting element 11 is also for sending access response message by described second server to described terminal.
The server of the present embodiment, may be used for performing the technical scheme in said method embodiment of the present invention performed by first server, it realizes principle and technique effect is similar, repeats no more herein.
Fig. 7 is the structural representation of server example two of the present invention, as shown in Figure 7, the server of the present embodiment is on the basis of server architecture shown in Fig. 6, further, can also comprise: acquiring unit 13 and test cell 14, this acquiring unit 13, before sending the first request message at transmitting element 11 to second server, obtain the scan instruction of network management personnel's input, described scan instruction comprises the IP address field of described terminal to be accessed and described port numbers, described scan instruction is used to indicate described first server and scans described IP address field and terminal to be accessed corresponding to described port numbers, test cell 14, for the described scan instruction obtained according to acquiring unit 13, carries out ping test to described IP address field, transmitting element 11 is specifically for sending the URL address comprising described second server, the IP address of described terminal tested by test cell 14ping and described first request message of described port numbers to described second server.
Alternatively, the attribute information of described terminal comprises the version file number of described terminal, the server of the present embodiment can also comprise: determining unit 15, this determining unit 15, before sending access response message by described second server to described terminal at transmitting element 11, according to the version file number of described terminal, determine that described terminal needs to upgrade the version file of described terminal; Transmitting element 11 is specifically for sending the access response message comprising upgrading indication information to described terminal by described second server, described upgrading indication information is used to indicate the version file of terminal described in described terminal staging; Receiving element 12 is also for after sending access response message by described second server to described terminal at transmitting element 11, receive the upgrade request message that described terminal that described second server forwards sends, described upgrade request message is for the version file of described terminal of asking to upgrade; Transmitting element 11 is also for sending upgrading response message by described second server to described terminal, and described upgrading response message comprises the URL address of the version file of the described terminal after described upgrading.
The server of the present embodiment, may be used for performing the technical scheme in said method embodiment of the present invention performed by first server, it realizes principle and technique effect is similar, repeats no more herein.
Fig. 8 is the structural representation of server example three of the present invention, as shown in Figure 8, the server of the present embodiment can comprise as second server: receiving element 21, transmitting element 22 and set up unit 23, wherein, the first request message that receiving element 21 sends for receiving first server, described first request message comprises the URL address of described second server, the IP address of terminal and port numbers; Transmitting element 22 is for according to the IP address of described terminal and port, and send the second request message to terminal, described second request message comprises the URL address of described second server; Set up unit 23, for establishing a communications link according to the URL address of described second server and described terminal; Receiving element 21 is also for receiving the access request message that described terminal sends by described communication connection, described access request message comprises the attribute information of described terminal, and described access request message is used for request and accesses to described first server; Transmitting element 22, also for forwarding described access request message to described first server, and forwards the access response message of described first server transmission to described terminal by described communication connection.
The server of the present embodiment, may be used for performing the technical scheme in said method embodiment of the present invention performed by second server, it realizes principle and technique effect is similar, repeats no more herein.
Fig. 9 is the structural representation of terminal embodiment one of the present invention, as shown in Figure 9, the terminal of the present embodiment can comprise: receiving element 31, set up unit 32 and transmitting element 33, wherein, the second request message that receiving element 31 sends according to the IP address of described terminal and port numbers for receiving second server, described second request message comprises the URL address of described second server, described second request message is that the first request message that described second server sends according to described first server sends, described first request message comprises the URL address of described second server, the IP address of described terminal and port numbers, set up unit 32, for establishing a communications link according to the URL address of described second server and described second server, transmitting element 33 is for sending access request message by described second server to described first server, and described access request message comprises the attribute information of described terminal, and described access request message is used for request and accesses to described first server, the access response message that the described first server that receiving element 31 is also forwarded for being received described second server by described communication connection sends.
The terminal of the present embodiment, may be used for performing the technical scheme in said method embodiment of the present invention performed by terminal, it realizes principle and technique effect is similar, repeats no more herein.
Figure 10 is the structural representation of terminal embodiment two of the present invention, and as shown in Figure 10, the terminal of the present embodiment is on the basis of terminal structure shown in Fig. 9, and further, the terminal of the present embodiment can also comprise: upgrade unit 34; Wherein, the access response message comprising upgrading indication information that receiving element 31 sends specifically for the described first server receiving the forwarding of described second server by described communication connection, described upgrading indication information is used to indicate the version file of terminal described in described terminal staging; After the access response message that the described first server that transmitting element 33 is also forwarded for be received described second server by described communication connection at receiving element 31 sends, send upgrade request message by described second server to described first server, described upgrade request message is for the version file of described terminal of asking to upgrade; The upgrading response message that the described first server that receiving element 31 is also forwarded for being received described second server by described communication connection sends, described upgrading response message comprises the URL address of the version file of the described terminal after upgrading.Upgrade unit 34, for the URL address of the version file according to the described terminal after described upgrading, from described first server, the version file of the described terminal after described upgrading is downloaded by described second server, and according to the version file of the described terminal after described upgrading, the version file of described terminal is upgraded.
The terminal of the present embodiment, may be used for performing the technical scheme in said method embodiment of the present invention performed by terminal, it realizes principle and technique effect is similar, repeats no more herein.
Figure 11 is the structural representation of server example four of the present invention, and as shown in figure 11, the server of the present embodiment can comprise as first server: processor 41, communication interface 42, memory 43 and bus etc.Processor 41, communication interface 42 and memory 43 are interconnected by bus and complete mutual communicating.Described bus can be industry standard architecture (IndustryStandardArchitecture, be called for short: ISA) bus, peripheral component interconnect (PeripheralComponent, be called for short: PCI) (ExtendedIndustryStandardArchitecture is called for short: EISA) bus etc. for bus or extended industry-standard architecture.Described bus can be divided into address bus, data/address bus, control bus etc.For ease of representing, only representing with a thick line in Figure 11, but not representing the bus only having a bus or a type.
Memory 43 is for depositing program.Particularly, program can comprise program code, and described program code comprises computer-managed instruction.Memory 43 may comprise high random access device memory, and (Random-AccessMemory is called for short: RAM), still may comprise nonvolatile memory (non-volatilememory), such as at least one magnetic disc store.Communication interface 42 for external device communication, communication interface 42 can be USB (UniversalSerialBUS, be called for short: USB) (VideoGraphicsArray is called for short: VGA) interface or cable interface etc. for interface, time-frequency graphic array.
Processor 41 may be a central processing unit (CentralProcessingUnit, be called for short: CPU), or specific integrated circuit (ApplicationSpecificIntegratedCircuit, be called for short: ASIC), or be configured to the one or more integrated circuits implementing the embodiment of the present invention.
The program that processor 41 stores for execute store 43, for: control communication interface 42 and send the first request message at least one second server, described first request message comprises the URL address of described second server, the IP address of terminal and port numbers, according to the IP address of described terminal and port numbers, the second request message of the URL address comprising described second server is sent to described terminal to make described second server; And controlling the access request message that communication interface 42 receives the described terminal transmission that described second server forwards, described access request message comprises the attribute information of described terminal, and described access request message is used for request and accesses to described first server; And control communication interface 42 by described second server to described terminal transmission access response message, to complete the access procedure of described terminal.
Alternatively, processor 41 controls before communication interface 42 sends the first request message to second server, also for obtaining the scan instruction of network management personnel's input, described scan instruction comprises the IP address field of described terminal to be accessed and described port numbers, described scan instruction is used to indicate described first server and scans described IP address field and terminal to be accessed corresponding to described port numbers, and according to described scan instruction, ping test is carried out to described IP address field; Processor 41 controls communication interface 42 and sends the first request message to second server, comprising: processor 41 according to control communication interface 42 to described second server send comprise described second server URL address, by the IP address of the described terminal of ping test and the first request message of described port numbers.
Alternatively, the attribute information of described terminal comprises the version file number of described terminal, processor 41 controls before communication interface 42 sends access response message by described second server to described terminal, also for the version file number according to described terminal, determine that described terminal needs to upgrade the version file of described terminal; Processor 41 controls communication interface 42 and sends access response message by described second server to described terminal, be specially: processor 41 is controlled communication interface 42 and sent the access response message comprising upgrading indication information by described second server to described terminal, and described upgrading indication information is used to indicate the version file of terminal described in described terminal staging; Processor 41 controls communication interface 42 by described second server to after described terminal sends access response message, also receive for controlling communication interface 42 the upgrade request message that described terminal that described second server forwards sends, described upgrade request message is for the version file of described terminal of asking to upgrade; And controlling communication interface 42 by described second server to described terminal transmission upgrading response message, described upgrading response message comprises the URL address of the version file of the described terminal after upgrading.
The server of the present embodiment, may be used for performing the technical scheme in said method embodiment of the present invention performed by first server, it realizes principle and technique effect is similar, repeats no more herein.
Figure 12 is the structural representation of server example five of the present invention, and as shown in figure 12, the server of the present embodiment can comprise as second server: processor 51, communication interface 52, memory 53 and bus etc.Processor 51, communication interface 52 and memory 53 are interconnected by bus and complete mutual communicating.Described bus can be isa bus, pci bus or eisa bus etc.Described bus can be divided into address bus, data/address bus, control bus etc.For ease of representing, only representing with a thick line in Figure 12, but not representing the bus only having a bus or a type.
Memory 53 is for depositing program.Particularly, program can comprise program code, and described program code comprises computer-managed instruction.Memory 53 may comprise high-speed RAM, still may comprise nonvolatile memory, such as at least one magnetic disc store.Communication interface 52 for external device communication, communication interface 52 can be USB interface, USB interface or cable interface etc.
Processor 51 may be a CPU, or ASIC, or is configured to the one or more integrated circuits implementing the embodiment of the present invention.
The program that processor 51 stores for execute store 53, for: control the first request message that communication interface 52 receives first server transmission, described first request message comprises the URL address of described second server, the IP address of terminal and port numbers; And control communication interface 52 according to the IP address of described terminal and port numbers, send the second request message to terminal, described second request message comprises the URL address of described second server; And establish a communications link according to the URL address of described second server and described terminal; And controlling communication interface 52 receives the transmission of described terminal access request message by described communication connection, described access request message comprises the mark of the file of described terminal, and described access request message is used for request and accesses to described first server; And control communication interface 52 forwards described access request message to described first server, and forward the access response message of described first server transmission to described terminal by described communication connection, to complete the access procedure of described terminal.
The server of the present embodiment, may be used for performing the technical scheme in said method embodiment of the present invention performed by first server, it realizes principle and technique effect is similar, repeats no more herein.
Figure 13 is the structural representation of terminal embodiment three of the present invention, and as shown in figure 13, the terminal of the present embodiment can comprise: processor 61, communication interface 62, memory 63 and bus etc.Processor 61, communication interface 62 and memory 63 are interconnected by bus and complete mutual communicating.Described bus can be isa bus, pci bus or eisa bus etc.Described bus can be divided into address bus, data/address bus, control bus etc.For ease of representing, only representing with a thick line in Figure 13, but not representing the bus only having a bus or a type.
Memory 63 is for depositing program.Particularly, program can comprise program code, and described program code comprises computer-managed instruction.Memory 63 may comprise high-speed RAM, still may comprise nonvolatile memory, such as at least one magnetic disc store.Communication interface 62 for external device communication, communication interface 62 can be USB interface, USB interface or cable interface etc.
Processor 61 may be a CPU, or ASIC, or is configured to the one or more integrated circuits implementing the embodiment of the present invention.
The program that processor 61 stores for execute store 63, for: control communication interface 62 receives the second request message that second server sends according to the IP address of described terminal and port numbers, described second request message comprises the URL address of described second server, described second request message is that the first request message that described second server sends according to described first server sends, and described first request message comprises the URL address of described second server, the IP address of described terminal and port numbers; And establish a communications link according to the URL address of described second server and described second server; And controlling communication interface 62 by described second server to described first server transmission access request message, described access request message comprises the attribute information of described terminal, and described access request message is used for request and accesses to described first server; And control communication interface 62 receives the described first server transmission that described second server forwards access response message by described communication connection.
Alternatively, processor 61 controls the access response message that communication interface 62 receives the described first server transmission that described second server forwards, be specially: processor 61 controls communication interface 62 receives the described first server transmission that described second server the forwards access response message comprising upgrading indication information by described communication connection, and described upgrading indication information is used to indicate the version file of terminal described in described terminal staging; After processor 61 controls the access response message of the described first server transmission that communication interface 62 is forwarded by the described second server of described communication connection reception, also comprise: processor 61 controls communication interface 62 and sends upgrade request message by described second server to described first server, described upgrade request message is for the version file of described terminal of asking to upgrade; And controlling communication interface 62 receives the described first server transmission that described second server forwards upgrading response message by described communication connection, described upgrading response message comprises the URL address of the version file of the described terminal after upgrading; And the URL address of version file according to the described terminal after described upgrading, from described first server, the version file of the described terminal after described upgrading is downloaded by described second server; And according to the version file of the described terminal after described upgrading, the version file of described terminal is upgraded.
The terminal of the present embodiment, may be used for performing the technical scheme in said method embodiment of the present invention performed by terminal, it realizes principle and technique effect is similar, repeats no more herein.
Figure 14 is the structural representation of terminal connecting system embodiment of the present invention, as shown in figure 14, the system of the present embodiment comprises: first server 71, at least one second server 72 and at least one terminal 73, first server 71 can communicate to connect with at least one second server 72, a second server 72 is only shown in Figure 14, second server 72 can communicate to connect with at least one terminal 73, and a terminal 73 is only shown in Figure 14.Wherein, first server 71 can adopt the structure of the arbitrary server example shown in Fig. 6, Fig. 7 or Figure 11, and it accordingly, can first server performs in the above-mentioned either method embodiment of the present invention technical scheme, it realizes principle and technique effect is similar, repeats no more herein; Second server 72 can adopt the structure of the arbitrary server example shown in Fig. 8 or Figure 12, it accordingly, can second server performs in the above-mentioned either method embodiment of the present invention technical scheme, it realizes principle and technique effect is similar, repeats no more herein; Terminal 73 can adopt the structure of any terminal embodiment shown in Fig. 9, Figure 10 or Figure 13, and it accordingly, can terminal performs in the above-mentioned either method embodiment of the present invention technical scheme, and it realizes principle and technique effect is similar, repeats no more herein.Such as: first server 71 can be the master server in enterprise's operational system, second server 72 can be the distributed server in enterprise's operational system, and terminal 73 can be IP phone.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a terminal access method, is characterized in that, comprising:
First server sends the first request message at least one second server, and described first request message comprises the uniform resource position mark URL address of described second server, the internet protocol address of terminal and port numbers;
Described first server receives the access request message of the described terminal transmission that described second server forwards, and described access request message comprises the attribute information of described terminal, and described access request message is used for request and accesses to described first server;
Described first server sends access response message by described second server to described terminal.
2. method according to claim 1, is characterized in that, described first server also comprises before sending the first request message to second server:
Described first server obtains the scan instruction of network management personnel's input, described scan instruction comprises the IP address field of described terminal to be accessed and described port numbers, and described scan instruction is used to indicate described first server and scans described IP address field and terminal to be accessed corresponding to described port numbers;
Described first server, according to described scan instruction, carries out ping test to described IP address field;
Described first server sends the first request message to second server, comprising:
Described first server to described second server send comprise described second server URL address, by the IP address of the described terminal of ping test and the first request message of described port numbers.
3. method according to claim 1 and 2, is characterized in that, the attribute information of described terminal comprises the version file number of described terminal, and described first server also comprises before sending access response message by described second server to described terminal:
Described first server, according to the version file number of described terminal, determines that described terminal needs to upgrade the version file of described terminal;
Described first server sends access response message by described second server to described terminal, comprising:
Described first server sends the access response message comprising upgrading indication information to described terminal by described second server, described upgrading indication information is used to indicate the version file of terminal described in described terminal staging;
Described first server, is also comprised to after described terminal sends access response message by described second server:
Described first server receives the upgrade request message that described terminal that described second server forwards sends, and described upgrade request message is for the version file of described terminal of asking to upgrade;
Described first server sends upgrading response message by described second server to described terminal, and described upgrading response message comprises the URL address of the version file of the described terminal after upgrading.
4. a server, described server, as first server, is characterized in that, comprising:
Transmitting element, for sending the first request message at least one second server, described first request message comprises the uniform resource position mark URL address of described second server, the internet protocol address of terminal and port numbers;
Receiving element, the access request message that the described terminal forwarded for receiving described second server sends, described access request message comprises the attribute information of described terminal, and described access request message is used for request and accesses to described first server;
Described transmitting element, also for sending access response message by described second server to described terminal.
5. server according to claim 4, is characterized in that, also comprises:
Acquiring unit, before sending the first request message at described transmitting element to second server, obtain the scan instruction of network management personnel's input, described scan instruction comprises the IP address field of described terminal to be accessed and described port numbers, and described scan instruction is used to indicate described first server and scans described IP address field and terminal to be accessed corresponding to described port numbers;
Test cell, for the described scan instruction obtained according to described acquiring unit, carries out ping test to described IP address field;
Described transmitting element specifically for send to described second server comprise described second server URL address, by the IP address of the described terminal of described test cell ping test and described first request message of described port numbers.
6. the server according to claim 4 or 5, is characterized in that, the attribute information of described terminal comprises the version file number of described terminal, and described server also comprises:
Determining unit, before sending access response message by described second server to described terminal at described transmitting element, according to the version file number of described terminal, determines that described terminal needs to upgrade the version file of described terminal;
Described transmitting element is specifically for sending the access response message comprising upgrading indication information to described terminal by described second server, described upgrading indication information is used to indicate the version file of terminal described in described terminal staging;
Described receiving element is also for after sending access response message by described second server to described terminal at described transmitting element, receive the upgrade request message that described terminal that described second server forwards sends, described upgrade request message is for the version file of described terminal of asking to upgrade;
Described transmitting element is also for sending upgrading response message by described second server to described terminal, and described upgrading response message comprises the URL address of the version file of the described terminal after upgrading.
7. a server, described server, as second server, is characterized in that, comprising:
Receiving element, for receiving the first request message that first server sends, described first request message comprises the uniform resource position mark URL address of described second server, the internet protocol address of terminal and port numbers;
Transmitting element, for according to the IP address of described terminal and port numbers, send the second request message to described terminal, described second request message comprises the URL address of described second server;
Set up unit, for establishing a communications link according to the URL address of described second server and described terminal;
Described receiving element, also for being received the access request message that described terminal sends by described communication connection, described access request message comprises the attribute information of described terminal, and described access request message is used for request and accesses to described first server;
Described transmitting element, also for forwarding described access request message to described first server, and forwards the access response message of described first server transmission to described terminal by described communication connection.
8. a terminal, is characterized in that, comprising:
Receiving element, for receiving the second request message that second server sends according to the internet protocol address of described terminal and port numbers, described second request message comprises the uniform resource position mark URL address of described second server, described second request message is that the first request message that described second server sends according to described first server sends, and described first request message comprises the URL address of described second server, the IP address of described terminal and port numbers;
Set up unit, for establishing a communications link according to the URL address of described second server and described second server;
Transmitting element, for sending access request message by described second server to described first server, described access request message comprises the attribute information of described terminal, and described access request message is used for request and accesses to described first server;
Described receiving element, the access response message that the described first server also forwarded for being received described second server by described communication connection is sent.
9. terminal according to claim 8, is characterized in that, also comprises: upgrade unit;
The access response message comprising upgrading indication information that described receiving element sends specifically for the described first server receiving the forwarding of described second server by described communication connection, described upgrading indication information is used to indicate the version file of terminal described in described terminal staging;
After the access response message that the described first server that described transmitting element is also forwarded for be received described second server by described communication connection at described receiving element sends, send upgrade request message by described second server to described first server, described upgrade request message is for the version file of described terminal of asking to upgrade;
The upgrading response message that the described first server that described receiving element is also forwarded for being received described second server by described communication connection sends, described upgrading response message comprises the URL address of the version file of the described terminal after upgrading;
Described upgrade unit, for the URL address of the version file according to the described terminal after described upgrading, downloads the version file of the described terminal after described upgrading from described first server by described second server; And according to the version file of the described terminal after described upgrading, the version file of described terminal is upgraded.
10. a terminal connecting system, is characterized in that, comprising: the first server as described in claim 4-6 any one, at least one second server as claimed in claim 7 and at least one terminal as claimed in claim 8 or 9.
CN201410307658.7A 2014-06-30 2014-06-30 Terminal access method, device and system Active CN105306238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410307658.7A CN105306238B (en) 2014-06-30 2014-06-30 Terminal access method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410307658.7A CN105306238B (en) 2014-06-30 2014-06-30 Terminal access method, device and system

Publications (2)

Publication Number Publication Date
CN105306238A true CN105306238A (en) 2016-02-03
CN105306238B CN105306238B (en) 2018-09-21

Family

ID=55203027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410307658.7A Active CN105306238B (en) 2014-06-30 2014-06-30 Terminal access method, device and system

Country Status (1)

Country Link
CN (1) CN105306238B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147519A (en) * 2017-04-10 2017-09-08 北京德威特继保自动化科技股份有限公司 The methods, devices and systems of device upgrade
CN111596940A (en) * 2020-05-19 2020-08-28 杭州视联动力技术有限公司 Version upgrading method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004091173A1 (en) * 2003-04-09 2004-10-21 Siemens Aktiengesellschaft Method and arrangement for configuring a device in a data network
CN1791029A (en) * 2005-12-23 2006-06-21 杭州华为三康技术有限公司 Method and system for automatically gaining configuration management server initial allocation
CN101668059A (en) * 2008-09-02 2010-03-10 上海亿人通信终端有限公司 Method for configuration and version update of IP telephone
CN101674190A (en) * 2008-09-08 2010-03-17 深圳华为通信技术有限公司 Message sending method, message sending device and management system of terminal device
CN102447574A (en) * 2011-08-18 2012-05-09 杭州华三通信技术有限公司 Method for realizing zero configuration of IRF (intelligent resilient framework) equipment and equipment
CN103188107A (en) * 2011-12-31 2013-07-03 北京大唐高鸿数据网络技术有限公司 Automatic finding and configured deployment system and method of terminal devices

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004091173A1 (en) * 2003-04-09 2004-10-21 Siemens Aktiengesellschaft Method and arrangement for configuring a device in a data network
CN1791029A (en) * 2005-12-23 2006-06-21 杭州华为三康技术有限公司 Method and system for automatically gaining configuration management server initial allocation
CN101668059A (en) * 2008-09-02 2010-03-10 上海亿人通信终端有限公司 Method for configuration and version update of IP telephone
CN101674190A (en) * 2008-09-08 2010-03-17 深圳华为通信技术有限公司 Message sending method, message sending device and management system of terminal device
CN102447574A (en) * 2011-08-18 2012-05-09 杭州华三通信技术有限公司 Method for realizing zero configuration of IRF (intelligent resilient framework) equipment and equipment
CN103188107A (en) * 2011-12-31 2013-07-03 北京大唐高鸿数据网络技术有限公司 Automatic finding and configured deployment system and method of terminal devices

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147519A (en) * 2017-04-10 2017-09-08 北京德威特继保自动化科技股份有限公司 The methods, devices and systems of device upgrade
CN111596940A (en) * 2020-05-19 2020-08-28 杭州视联动力技术有限公司 Version upgrading method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105306238B (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN113709839A (en) Multi-gateway network switching method, device and system, electronic equipment and storage medium
KR102133001B1 (en) Network management device, network management system and network management method
CN106657259B (en) Routing server and routing service method for server cluster
EP2408140A1 (en) Method, control point, apparatus and communication system for configuring access right
CN110661673B (en) Heartbeat detection method and device
CN107534649A (en) Change the IMS supplementary service datas in IMS network
CN112565439A (en) Internet of things communication method and system
CN114143251B (en) Intelligent routing method, intelligent routing device, electronic equipment and computer readable storage medium
CN115314571A (en) Cloud protocol gateway implementation method and system supporting heterogeneous device access
CN102055608A (en) CPE (customer premise equipment) updating method, device and system
CN112307486A (en) Authority obtaining method, equipment and system
JP5610654B2 (en) Apparatus for providing terminal management package and method for receiving terminal management package
CN115004650B (en) Node configuration method, node configuration device, distributed system and computer readable medium
JP2023535176A (en) Processing service requests
CN105306238A (en) Terminal access method, terminal access device and terminal access system
EP2630750B1 (en) Quality of service monitoring device and method of monitoring quality of service
CN113965571B (en) Management method, device, equipment and medium of distributed embedded equipment
CN106598758B (en) Centralized forwarding and calling method and system
Kortebi et al. Home network assistant: Towards better diagnostics and increased customer satisfaction
US20170093610A1 (en) Proactive M2M Framework Using Device-Level vCard for Inventory, Identity, and Network Management
CN105684352B (en) Belong to the device of private network, the device and method of managing device and medium
CN114025005A (en) Data communication method, system, electronic equipment and storage medium
CN113595894A (en) Communication method, device, equipment and medium between service nodes and client nodes
CN112751706A (en) Target data transmission method and device
CN103765818A (en) Method and system for troubleshooting in in-house networks

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