CN105306238B - Terminal access method, device and system - Google Patents

Terminal access method, device and system Download PDF

Info

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

Abstract

A kind of terminal access method of offer of the embodiment of the present invention, device and system, this method include:First server at least one second server send include the addresses URL of the second server, the IP address of terminal and port numbers the first request message, so that the second request message of the addresses URL including second server is sent to the terminal by second server according to the IP address and port numbers of terminal, so that URL address of the terminal according to the second server, the first server is accessed to by the second server, the terminal is any terminal in terminal to be accessed.So that network management personnel need not be to the addresses URL of each terminal to be accessed manual configuration server, but access procedure is realized in the addresses URL that first server actively sends second server by second server to each terminal to be accessed, to improve the efficiency of terminal access.

Description

Terminal access method, device and system
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of terminal access method, device and system.
Background technology
With the development of social progress and communication network, people carry out information interchange by communication network and have become people An essential part in life, for example, Internet protocol (Internet Protocol, referred to as:IP) telephone communication, due to IP phone communication can effectively utilize existing communication network resource, do not need overlapping investment can solve it is transnational, across ground The ip voice in area communicates, therefore IP phone communication can more carry welcome, nowadays IP during development communication technologies from now on Application of the telephone communication in each enterprise is very universal.
In the prior art, mainly by IP phones from domain name analysis system (Domain Name System, referred to as:DNS) Or dynamic host configuration protocol (Dynamic Host Configuration Protocol, referred to as:DHCP it) is obtained in server The address of management server, then IP phones accessed in management server according to the address of management server, to realize IP Telephone communication.But if enterprise network management personnel think that DNS or Dynamic Host Configuration Protocol server safety be not high, do not allow that DNS is arranged Or Dynamic Host Configuration Protocol server, then need network management personnel to one by one on IP phones be arranged management server address, in face of It is above-mentioned using the ground that management server is arranged on IP phones one by one when enterprise has a large amount of IP phones to need access-in management server The mode of location is then very time-consuming and laborious, reduces the efficiency of IP phones access.
Invention content
A kind of terminal access method of offer of the embodiment of the present invention, device and system, for solving the problems of the prior art, Improve the efficiency of IP phones access.
In a first aspect, the embodiment of the present invention provides a kind of terminal access method, including:
First server sends the first request message at least one second server, and first request message includes institute State the uniform resource position mark URL address of second server, the internet protocol address and port numbers of terminal;
The first server receives the access request message that the terminal of the second server forwarding is sent, described Access request message includes the attribute information of the terminal, and the access request message accesses to the first service for asking Device;
The first server sends access response message by the second server to the terminal.
In the first possible realization method of first aspect, the first server sends first to second server Before request message, further include:
The first server obtains the scan instruction of network management personnel's input, and the scan instruction includes described waiting Enter the IP address section of terminal and the port numbers, the scan instruction is used to indicate the first server and scans the IP address Section terminal to be accessed corresponding with the port numbers;
The first server carries out ping test according to the scan instruction, to the IP address section;
The first server sends the first request message to second server, including:
It includes the addresses URL of the second server that the first server is sent to the second server, is passed through The IP address of the terminal of ping test and the first request message of the port numbers.
With reference to first aspect or the first possible realization method of first aspect, second in first aspect are possible In realization method, the attribute information of the terminal includes the version file number of the terminal, and the first server passes through described Before second server sends access response message to the terminal, further include:
The first server determines that the terminal needs to upgrade the terminal according to the version file number of the terminal Version file;
The first server sends access response message by the second server to the terminal, including:
It includes the access for upgrading instruction information that the first server, which is sent by the second server to the terminal, Response message, the upgrading instruction information are used to indicate the version file of terminal described in the terminal upgrade;
After the first server sends access response message by the second server to the terminal, also wrap It includes:
The first server receives the upgrade request message that the terminal of the second server forwarding is sent, described Upgrade request message is used to ask to upgrade the version file of the terminal;
The first server sends upgrading response message by the second server to the terminal, and the upgrading is rung It includes the addresses URL of the version file of the terminal after upgrading to answer message.
Second aspect, the embodiment of the present invention provide a kind of server, the server as first server, including:
Transmission unit, for sending the first request message, the first request message packet at least one second server Include the uniform resource position mark URL address of the second server, the internet protocol address and port numbers of terminal;
Receiving unit, the access request message that the terminal for receiving the second server forwarding is sent are described Access request message includes the attribute information of the terminal, and the access request message accesses to the first service for asking Device;
The transmission unit is additionally operable to send access response message to the terminal by the second server.
In the first possible realization method of second aspect, above-mentioned server further includes:
Acquiring unit, for before the transmission unit sends the first request message to second server, obtaining network The scan instruction of administrative staff's input, the scan instruction includes the IP address section of the terminal to be accessed and the port numbers, The scan instruction is used to indicate the first server and scans the IP address section and the port numbers corresponding end to be accessed End;
Test cell, the scan instruction for being obtained according to the acquiring unit carry out the IP address section Ping test;
The transmission unit be specifically used for the second server send include the second server the addresses URL, Pass through the IP address of the terminal of the test cell ping test and first request message of the port numbers.
In conjunction with the possible realization method of the first of second aspect or second aspect, second in second aspect is possible In realization method, the attribute information of the terminal includes the version file number of the terminal, and the server further includes:
Determination unit, for sending access response report to the terminal by the second server in the transmission unit Before text, according to the version file number of the terminal, determine that the terminal needs to upgrade the version file of the terminal;
The transmission unit is specifically used for through the second server including that upgrading indicates information to terminal transmission Access response message, the upgrading instruction information is used to indicate the version file of terminal described in the terminal upgrade;
The receiving unit is additionally operable to send to the terminal by the second server in the transmission unit and access After response message, the upgrade request message that the terminal of the second server forwarding is sent, the upgrade request are received Message is used to ask to upgrade the version file of the terminal;
The transmission unit is additionally operable to send upgrading response message, the liter to the terminal by the second server Grade response message includes the addresses URL of the version file of the terminal after upgrading.
The third aspect, the embodiment of the present invention provide a kind of server, the server as second server, including:
Receiving unit, the first request message for receiving first server transmission, first request message includes institute State the uniform resource position mark URL address of second server, the internet protocol address and port numbers of terminal;
Transmission unit sends the second request message for the IP address and port numbers according to the terminal to the terminal, Second request message includes the addresses URL of the second server;
Unit is established, is communicated to connect for being established with the terminal according to the addresses URL of the second server;
The receiving unit is additionally operable to receive the access request message that the terminal is sent, institute by the communication connection The attribute information that access request message includes the terminal is stated, the access request message accesses to first clothes for asking Business device;
The transmission unit is additionally operable to forward the access request message to the first server, and by described It communicates to connect to the terminal and forwards the access response message that the first server is sent, to complete the access of the terminal Journey.
Fourth aspect, the embodiment of the present invention provide a kind of terminal, including:
Receiving unit is sent for receiving second server according to the internet protocol address and port numbers of the terminal The second request message, second request message includes the uniform resource position mark URL address of the second server, described Second request message sends for the second server according to the first request message that the first server is sent, described First request message include the addresses URL of the second server, the terminal IP address and port numbers;
Unit is established, is communicated to connect for being established with the second server according to the addresses URL of the second server;
Transmission unit, it is described for sending access request message to the first server by the second server Access request message includes the attribute information of the terminal, and the access request message accesses to the first service for asking Device;
The receiving unit is additionally operable to receive first clothes of the second server forwarding by the communication connection The access response message that business device is sent.
In the first possible realization method of fourth aspect, above-mentioned terminal further includes:Upgrade unit;
The receiving unit is specifically used for receiving described the first of the second server forwarding by the communication connection What server was sent includes the access response message of upgrading instruction information, and the upgrading instruction information is used to indicate the terminal liter The version file of the grade terminal;
The transmission unit is additionally operable to receive the second server turn by the communication connection in the receiving unit After the access response message that the first server of hair is sent, sent out to the first server by the second server Upgrade request message, the upgrade request message is sent to be used to ask to upgrade the version file of the terminal;
The receiving unit is additionally operable to receive first clothes of the second server forwarding by the communication connection The upgrading response message that business device is sent, the URL for upgrading the version file that response message includes the terminal after upgrading Location;
The upgrade unit is used for the addresses URL of the version file according to the terminal after the upgrading, by described The version file of the terminal of the second server after downloading the upgrading in the first server;And according to the upgrading The version file of the terminal afterwards, upgrades the version file of the terminal.
5th aspect, the embodiment of the present invention provide a kind of terminal access system, including:As second aspect first service The terminal described in second server and at least one fourth aspect item described in device, at least one third aspect.
Terminal access method provided in an embodiment of the present invention, device and system, by first server to second server Send include the addresses URL of second server, the IP address of terminal and port numbers the first request message so that second server The second request message of the addresses URL for carrying second server is sent to terminal according to the IP address of terminal and port numbers, from And terminal can be established with second server according to the addresses URL of second server and communicate to connect and access to first server. So that network management personnel need not be to the addresses URL of each terminal to be accessed manual configuration server, but first server is logical The addresses the URL realization access procedure that second server actively sends second server to each terminal to be accessed is crossed, to improve The efficiency of terminal access.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached 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 example IV of the present invention;
Fig. 5 is a kind of application scenario diagram of terminal access method of the present invention;
Fig. 6 is the structural schematic diagram of server example one of the present invention;
Fig. 7 is the structural schematic diagram of server example two of the present invention;
Fig. 8 is the structural schematic diagram of server example three of the present invention;
Fig. 9 is the structural schematic diagram of terminal embodiment one of the present invention;
Figure 10 is the structural schematic diagram of terminal embodiment two of the present invention;
Figure 11 is the structural schematic diagram of server example four of the present invention;
Figure 12 is the structural schematic diagram of server example five of the present invention;
Figure 13 is the structural schematic diagram of terminal embodiment three of the present invention;
Figure 14 is the structural schematic diagram of terminal access system embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Various embodiments of the present invention are illustrated by taking the application scenarios of a large amount of IP phones access enterprise operational system as an example, enterprise Operational system includes master server and distributed server, and the communication between IP phones and master server passes through distributed server Forwarding.
Fig. 1 is the flow chart of terminal access method embodiment one of the present invention, as shown in Figure 1, the first service of the present embodiment Device can be master server, and second server can be distributed server, and terminal can be IP phones to be accessed.It needs to illustrate , second server can within be set to first server in, first server can also be attached to.The method of the present embodiment can To include:
S101, first server send the first request message, first request message at least one second server The IP address and port numbers of the addresses URL, terminal including the second server.
In the present embodiment, first server is arranged with multiple second servers, shares a part the by second server The function of one server, to mitigate the burden of first server, such as:When 1,000 station terminals need to access to first server In, if being done directly the access procedure of this thousand station terminal by first server, by first server will directly with 1,000 ends End interacts;And if ten second servers of setting under first server, first server directly take with this ten second Business device interaction, does not interact directly with this thousand station terminal, can mitigate the burden of first server significantly in this way, by every Platform second server assists first server to complete the access procedure of 100 station terminals, can equally complete the access of 1,000 station terminals The process of first server.
When first server needs to scan the terminal of the first server to be accessed, first server is at least one Two servers send the first request message, which includes the uniform resource locator (Uniform of second server Resource Locator, referred to as:URL) address, terminal IP address and port numbers, first request message is for asking the The addresses URL of second server are sent to the terminal by two servers.So that the second server is according to the terminal Second request message of the addresses URL including the second server is sent to terminal by IP address and port numbers, so that described Terminal is established with second server according to the addresses URL of the second server and is communicated to connect, and the terminal is terminal to be accessed In any terminal, such as terminal to be accessed be 100, then first server can to second server send 100 first Request message, each first request message correspond to a terminal to be accessed.Wherein, first server can be based on Secure Socket Layer Hypertext transfer protocol (Hyper Text Transfer Protocol over Secure Socket Layer, referred to as: HTTPS) the first request message is sent to second server.
Wherein, the addresses URL of second server may include the addresses URL and the second server of second server host process The addresses URL of certificate repository, the addresses URL of second server are obtained from the configuration file of first server, the configuration file It is with extensible markup language (Extensible Markup Language, abbreviation:XML) file is stored in first server In, 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 addresses URL of second server host process, CAURL is the addresses URL of second server certificate repository.
Optionally, before the first server sends the first request message to second server, further include:Described first Server obtains the scan instruction of network management personnel's input, and the scan instruction includes the IP address section of the terminal to be accessed With the port numbers, the scan instruction is used to indicate finger and states the first server scanning IP address section and the port Number corresponding terminal to be accessed and the first server carry out ping according to the scan instruction to the IP address section Test;The first server sends the first request message to second server, including:The first server is to described second Server send include the second server the addresses URL, the IP address by the terminal of ping test and the end First request message of slogan.When there is a large amount of terminal to need to access to first server, network management personnel can pass through Network management personnel interface (User Interface, the abbreviation of first server:UI scan instruction) is inputted to first server, In a kind of feasible realization method, if the divided subnet of network management personnel, i.e. a subnet corresponds to IP address Section, then network management personnel may include subnet mark in the scan instruction that network management personnel interface is inputted to first server Know and port numbers, first server can determine the corresponding IP address section of the subnet according to Subnet Identification;Another feasible In realization method, if the unallocated subnet of network management personnel, network management personnel takes at network management personnel interface to first It is engaged in the scan instruction of device input directly may include IP address section and port numbers.
First server can obtain the IP address section of terminal to be accessed indicated in scan instruction, which is Network management personnel's selection, then first server carries out the IP address section of the terminal to be accessed selected in network management people Ping test, to test network interworking between which of IP address section IP address and the IP address of first server, if one The IP address network interworking of IP address and first server then illustrates the IP address by ping test, if an IP address and the The IP address network not intercommunication of one server then illustrates the IP address not by ping test, and further, first server is also The IP address can be fed back not by ping test, so that network management to network management personnel by network management personnel interface Personnel carry out troubleshooting for the IP address.If the IP address section for the terminal to be accessed that network management personnel selects for:10.0.0.0- 10.0.0.80, the port numbers of terminal to be accessed for example can be 808, and the 10.0.0.50 in the IP address section does not pass through ping Test, then the IP address section for passing through ping test is:10.0.0.0-10.0.0.49 and 10.0.0.51-10.0.0.80.So First server will be carried by the IP address of the terminal of ping test and be sent to second server in the first request message afterwards, 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 Carry out ping test similarly to the prior art, details are not described herein again.
Optionally, if there are multiple second servers, first server needs to select one from multiple second servers For second server as the terminal to be accessed scanned corresponding to above-mentioned IP address section, network management personnel can be in first server The correspondence between each IP address section (or Subnet Identification) and each second server is pre-set, first server can To determine second server according to the IP address section of terminal to be accessed, so that it is determined that the addresses URL of second server;Specifically, Network management personnel can pre-set each IP address section (or Subnet Identification) and each second service in first server Correspondence between device, first server add IP address section (or Subnet Identification) in the URL including second server In the configuration file of address, stored with XML file format, then first server according to the IP address section of terminal to be accessed (or Person's Subnet Identification) determine configuration file, to obtain the addresses URL of second server.
Optionally, the scan instruction of above-mentioned network management personnel's input further includes scanning instruction information, if scanning instruction letter Breath indicates that the first server scans terminal to be accessed immediately, then first server is obtaining sweeping for network management personnel's input After retouching instruction, the first request message is sent to second server;If solicited message indicates that first server refers to getting scanning Enable after preset time scanning terminal to be accessed or instruction first server in preset time spot scan terminal to be accessed, then first Server is asked after preset time to second server transmission first after the scan instruction for obtaining network management personnel's input Message is sought, alternatively, sending the first request message to second server in preset time point.Therefore first server root may be implemented According to being scanned in different times to the terminal to be accessed under different IP addresses section.
Optionally, before the first server sends the first request message to second server, further include:Described first The addresses URL of the second server are packaged into java objects by server;The first server is sent to second server First request message, including:It includes the java objects, the terminal that the first server is sent to the second server IP address and port numbers the first request message so that the java objects are converted to XML file by the second server, And the second request message including the XML file is sent to the terminal.
S102, the first server receive the access request report that the terminal of the second server forwarding is sent Text, the access request message include the attribute information of the terminal, and the access request message is described for asking to access to First server.
In the present embodiment, the first request message is sent to second server by first server, and second server is by second The addresses URL of server, which are included in the second request message, is sent to terminal, and then terminal is according to the addresses URL of second server It establishes and communicates to connect with second server, then terminal sends access request message by second server to first server, I.e. terminal sends access request message to second server, and then access request message is sent to first service by second server Device.It should be noted that first server receives the access request message that the terminal of second server forwarding is sent, i.e. terminal is logical The communication protocol crossed between the terminal and second server sends access request message to second server, then second server According to the communication protocol between the second server and first server access request message is sent to first server.
Access request message includes the attribute information of terminal in the present embodiment, and access request message is used to indicate with the category The terminal request of property information accesses to first server.The attribute information of terminal can uniquely distinguish the terminal and other terminals, The attribute information of terminal for example may include:Producer's organization unique identifier (Organizationally unique of terminal Identifier, referred to as:OUI), the product type of terminal, the physical serial numbers of terminal, the event type of terminal, terminal are set For the company of returning address, the version file number (i.e. the software version document number of terminal) of terminal.Optionally, above-mentioned access request message Such as can be heartbeat message.
S103, the first server send access response message by the second server to the terminal.
In the present embodiment, after first server receives the access request message of terminal transmission of second server forwarding, add The attribute information for adding terminal, to indicate that the terminal with the attribute information has accessed to first server, then first server Access response message is sent to second server, second server sends the access response message to terminal, with instruction terminal Access procedure is completed.Optionally, access response message for example can be heartbeat response message.
The terminal access method that the embodiment of the present invention one provides, by first server to second server transmission include the The addresses URL of two servers, the IP address of terminal and port numbers the first request message so that second server is according to terminal Second request message of the addresses URL for carrying second server is sent to terminal by IP address and port numbers, to which terminal can be with It is established according to the addresses URL of second server and second server and communicates to connect and access to first server.Make network pipe Reason personnel need not be to the addresses URL of each terminal to be accessed manual configuration server, but pass through the second clothes by first server Device be engaged in actively to the addresses the URL realization access procedure of each terminal to be accessed transmission second server, to improve terminal access Efficiency.
Fig. 2 is the flow chart of terminal access method embodiment two of the present invention, as shown in Fig. 2, the first service of the present embodiment Device can be master server, and second server can be distributed server, and terminal to be accessed can be IP phones to be accessed.It needs It is noted that second server can within be set to first server in, first server can also be attached to.The present embodiment Method may include:
S201, second server receive the first request message that first server is sent, and first request message includes The addresses URL of the second server, the IP address and port numbers of terminal.
In the present embodiment, second server can receive the first request message that first server is sent based on HTTPS, should First request message include the addresses URL of the second server, terminal IP address and port numbers, terminal is terminal to be accessed In any terminal.First request message is for asking second server to be transmitted to the addresses URL of second server and end End.Optionally, the addresses URL of second server may include the addresses URL and the second server card of second server host process The addresses URL in stack room.
S202, the second server send second to the terminal and ask according to the IP address and port numbers of the terminal It includes the addresses URL of the second server to ask message, second request message.
In the present embodiment, second server receives the first request message of first server transmission, and parsing obtains first The addresses URL of second server in request message, the IP address and port numbers of terminal, then according to the URL of second server Address generates the second request message, and the IP address and port numbers further according to terminal send the second request message to terminal.
Optionally, the second server receives the first request message that first server is sent, including:Second clothes Business device receives the first request report including java objects, the IP address of the terminal and port numbers that the first server is sent Text, the java objects are made of the first server is encapsulated according to the addresses URL of the second server.Described second Server further includes before sending the second request message to terminal according to the IP address and port numbers of the terminal:Described second The java objects are converted to XML file by server;The second server according to the IP address and port numbers of the terminal, The second request message is sent to terminal, including:The second server is according to the IP address and port numbers of the terminal, to terminal Transmission includes the second request message of the XML file.Wherein, the java objects are converted to XML by the second server File, specially second server parse the addresses URL that java objects obtain second server, then by second server The addresses URL are packaged into XML file, i.e. the addresses URL of second server are encapsulated in XML file is sent to end by second server End.
Wherein, the addresses URL of second server may include the addresses URL and the second server of second server host process The addresses URL of certificate repository;The content of XML file is for example 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 addresses URL of second server host process, above-mentioned CAURL is the addresses URL of second server certificate repository.
Wherein, second server can be based on HTTPS and send the second request message to terminal.The information of second request message Such as it is 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:Digest username=" huawei ", realm=" huawei.com.cn ", nonce =" 86eec71c3d581ada74db5785bd051a9b ", nc=00000001, uri="/", response=" B01aaf03a810b815016087d768db1ab0 ", algorithm=" MD5 ", cnonce=" LNNJCPJBDHJILFLKMNLFCOLHFECGKLGOHCNJGCGI ", qop=" au th "
<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, the second server are established with the terminal according to the addresses URL of the second server and are communicated to connect.
In the present embodiment, second server sends the second request message of the addresses URL for including second server to terminal Afterwards, second server can be established with terminal according to the addresses URL of second server and be communicated to connect, which sets for terminal Standby wide area network management agreement TR069 communication connections.Specifically, terminal can according to the addresses URL of second server certificate repository from Certificate is obtained in second server, then terminal is according to the addresses URL and second server of certificate and second server host process Establish communication connection.
S204, the second server receive the access request message that the terminal is sent, institute by the communication connection The attribute information that access request message includes the terminal is stated, the access request message accesses to first clothes for asking Business device, and forward the access request message to the first server.
In the present embodiment, after second server establishes communication connection with terminal, first server is connect by the communication connection Receive the access request message that terminal is sent, such as first server is based on terminal device wide area network management agreement (TR069), i.e., it is logical It crosses above-mentioned communication connection and receives the access request message that terminal is sent, then (such as based on HTTPS) is to the first server The access request message is sent, to complete the access procedure of the terminal.
Access request message includes the attribute information of terminal in the present embodiment, and access request message is used to indicate with the category The terminal request of property information accesses to first server.The attribute information of terminal can uniquely distinguish the terminal and other terminals, The attribute information of terminal for example may include:The producer OUI of terminal, the product type of terminal, physical serial numbers, the terminal of terminal Event type, terminal equipment return even address, terminal version file number.
S205, the second server forward the first server to send by described communicate to connect to the terminal Access response message.
In the present embodiment, second server for example receives the access that first server is sent based on HTTPS agreements and responds report Then text for example sends the access response message, to complete the terminal based on TR069 (i.e. above-mentioned communication connection) to terminal Access procedure.
Terminal access method provided by Embodiment 2 of the present invention receives the packet that first server is sent by second server Include the addresses URL of second server, the IP address of terminal and port numbers the first request message, and according to the IP address of terminal and Port numbers will be sent to terminal in the second request message of the addresses URL for carrying second server, and according to second server The addresses URL are established with terminal and are communicated to connect, so that terminal accesses to first server.So that network management personnel need not be to each The addresses URL of terminal to be accessed manual configuration server, but first server by second server actively to each to be accessed Access procedure is realized in the addresses URL that terminal sends second server, to improve the efficiency of terminal access.
Fig. 3 is the flow chart of terminal access method embodiment three of the present invention, as shown in figure 3, the first service of the present embodiment Device can be master server, and second server can be distributed server, and terminal to be accessed can be IP phones to be accessed.It needs It is noted that second server can within be set to first server in, first server can also be attached to.The present embodiment Method may include:
S301, terminal receive second server and are reported according to the second request that the IP address and port numbers of the terminal are sent Text, second request message include the addresses URL of the second server.
In the present embodiment, the terminal is any terminal in terminal to be accessed, and second request message is described the Two servers are sent according to the first request message that the first server is sent, and first request message includes described The addresses URL of second server, the IP address and port numbers of the terminal.Wherein, terminal can be based on HTTPS agreements and receive the The second request message that two servers are sent.
In the present embodiment, the terminal receives second server and is asked according to second that the IP address and port numbers of terminal are sent Message is sought, including:The terminal receive the second server according to the IP address and port numbers of terminal send include XML text Second request message of part, the XML file second server are converted to java objects, the java Object is that the first server forms according to the encapsulation of the addresses URL of the second server and is included in the first request report The second server is sent in text.After terminal receives the second request message, it can parse in the second request message XML file obtains the addresses URL of second server.
S302, the terminal are established with the second server according to the addresses URL of the second server and are communicated to connect.
In the present embodiment, terminal receives second asking for the addresses URL including second server of second server transmission After seeking message, terminal can be established with second server according to the addresses URL of second server and be communicated to connect, which is TR069 is communicated to connect, and specifically, terminal can be obtained according to the addresses URL of second server certificate repository from second server Certificate, then terminal is according to the addresses URL of certificate and second server host process and second server foundation communication connection.
S303, the terminal send access request message by the second server to the first server, described Access request message includes the attribute information of the terminal, and the access request message accesses to the first service for asking Device.
In the present embodiment, terminal is based on TR069, i.e., by above-mentioned communication connection, access request is sent to second server Message, second server sends this based on HTTPS to first server please enter request message.
Access request message includes the attribute information of terminal in the present embodiment, and access request message is used to indicate with the category The terminal request of property information accesses to first server.The attribute information of terminal can uniquely distinguish the terminal and other terminals, The attribute information of terminal for example may include:The producer OUI of terminal, the product type of terminal, physical serial numbers, the terminal of terminal Event type, terminal equipment return even address, terminal version file number.Optionally, access request message for example can be Heartbeat message.
Optionally, the terminal receives second server and is reported according to the second request that the IP address and port numbers of terminal are sent After text, further include:The addresses URL of the second server are updated in address configuration item.Described in the present embodiment more Newly, if referring to that address is not present in address configuration item, the addresses URL of second server are stored into address configuration item, if There are addresses in address configuration item, then already present address in the configuration item of address are replaced in the addresses URL of second server.It is optional Ground, the addresses URL of second server include the addresses URL of second server host process and the URL of second server certificate repository Location, for example,:The addresses URL of second server host process are updated the address configuration item to the service stations TR069 in terminal by terminal In and terminal by the address configuration item of the addresses URL of second server certificate repository update to CA servers in the terminal of phone In.
The first server that S304, the terminal receive the second server forwarding by the communication connection is sent out The access response message sent.
In the present embodiment, first server is based on HTTPS agreements and accesses response message, second server to second server Based on TR069, i.e., by the communication connection, the access response message is sent to terminal, to complete the access of the terminal Journey.Optionally, access response message for example can be heartbeat response message.
The terminal access method that the embodiment of the present invention three provides receives second server according to the IP of terminal by terminal Second request message of the addresses URL including second server that location and port numbers are sent, the second request message is second service First request of the IP address and port numbers of the addresses URL including second server, terminal that device is sent according to first server Message and send, then terminal is established with second server according to the addresses URL of second server and communicates to connect and access to In first server.So that network management personnel need not to the addresses URL of each terminal to be accessed manual configuration server, but The addresses the URL realization that first server actively sends second server by second server to each terminal to be accessed accessed Journey, to improve the efficiency of terminal access.
Fig. 4 is the flow chart of terminal access method example IV of the present invention, as shown in figure 4, the first service of the present embodiment Device can be master server, and second server can be distributed server, and terminal to be accessed can be IP phones to be accessed.It needs It is noted that second server can within be set to first server in, first server can also be attached to.The present embodiment Method may include:
S401, first server send the first request message to second server;The second server receives described the First request message that one server is sent.
S402, the second server send the second request message according to the IP address and port numbers of terminal to terminal;Institute It states terminal and receives the second request message that second server is sent according to the IP address section and port numbers of the terminal.
S403, the terminal are established according to the addresses URL of second server and second server and are communicated to connect.
S404, the terminal send access request message by the second server to the first server;It is described First server receives the access request message that the terminal of the second server forwarding is sent by the communication connection.
In the present embodiment, the specific implementation process of S401-S404 may refer in the method for the present invention embodiment one to three Correlation is recorded, and details are not described herein again.
It should be noted that after terminal establishes above-mentioned communication connection with second server, between terminal and second server The message of transmission is transmitted by above-mentioned communication connection, i.e., is communicated based on TR069.
S405, the first server are according to the version file number of the terminal in the attribute information of the terminal, really The fixed terminal needs to upgrade the version file of the terminal.
In the present embodiment, the attribute information of terminal includes the version file number of terminal in above-mentioned access request message, the One server can compare the version file number of terminal and the version file number of the terminal stored in first server, if The version file number of terminal is not less than the version file number of the terminal stored in first server, it is determined that terminal need not upgrade The version file of terminal, if the version file number (such as 2.0) of terminal is less than the version file of the terminal stored in first server Number (such as 3.0), it is determined that terminal needs to upgrade the version file of the terminal.
S406, the first server include that upgrading indicates information to terminal transmission by the second server Response message is accessed, the upgrading instruction information is used to indicate the version file of terminal described in the terminal upgrade;The terminal The first server transmission of the second server forwarding is received by the communication connection includes that the upgrading indicates The access response message of information.
In the present embodiment, after first server determines the version file that terminal needs to upgrade the terminal, first server When sending access response message to terminal by second server, upgrading instruction information is carried and is sent out in accessing response message Terminal is given, such as:Access response message including upgrading instruction information is sent to the second clothes by first server based on HTTPS Business device, second server will be sent to terminal based on TR069 including the access response message of upgrading instruction information.Optionally, it rises Grade instruction information can not also be carried is sent to terminal in access response message, but is sent to terminal by individual message.
After terminal receives access response message and gets upgrading instruction information, if terminal determines the version of upgrading terminals File, then the embodiment of the present invention can also include as described below;If terminal decides not to upgrade the version file of terminal, the present invention The flow of embodiment terminates.
S407, the terminal send upgrade request message by the second server to the first server, described Upgrade request message is used to ask to upgrade the version file of the terminal;The first server receives the second server and turns The upgrade request message that the terminal of hair is sent.
In the present embodiment, when terminal determines the version file of upgrading terminals according to upgrading instruction information, terminal is based on TR069 To second server upgrade request message, then second server sends the upgrade request report based on HTTPS to first server Text.
Optionally, upgrade request message is additionally operable to the service scripts that request upgrades the terminal, the service scripts of the terminal Including:Signal sound file of the configuration file of terminal, the voice file of terminal and terminal etc..
Optionally, upgrade request message for example can be alarm event message, and alarm event message is for example as follows:
<EventStruct>
<EventCode>X001F10autodeploy</EventCode>--- from deployment request code
</EventStruct>。
S408, the first server send upgrading response message by the second server to the terminal, described Upgrading response message includes the addresses URL of the version file of the terminal after upgrading;The terminal passes through the communication connection Receive the upgrading response message that the first server of the second server forwarding is sent.
In the present embodiment, first server can be based on HTTPS and send upgrading response message, the second clothes to second server Business device can send the upgrading response message based on TR069 to terminal.
Specifically, after first server receives the upgrade request message that the terminal that second server forwards is sent, first The addresses URL of the version file of terminal after upgrading are included in upgrading response message according to upgrade request message by server It is sent to second server based on HTTPS, which is sent to terminal by second server based on TRO069, if rising Grade request message is additionally operable to the service scripts of request download terminal, then first server is also by the service scripts of the terminal after upgrading The addresses URL (such as the addresses URL of configuration file, the addresses URL of voice file, signal sound file the addresses URL) be included in It is sent to terminal in upgrading response message.Optionally, upgrading response message for example can be escalation policy file (Update Policy File, referred to as:UPF).
S409, the terminal pass through described second according to the addresses URL of the version file of the terminal after the upgrading The version file of the terminal of the server after downloading the upgrading in the first server;And according to the upgrading after The version file of the terminal upgrades the version file of the terminal.
Optionally, terminal can also pass through the second service according to the addresses URL of the service scripts of the terminal after upgrading The service scripts of the terminal of the device after downloading the upgrading in the first server;And according to described in after the upgrading The service scripts of terminal upgrades the service scripts of terminal.Such as:Terminal can also be according to the configuration of the terminal after upgrading The addresses URL of file, the addresses URL of voice file, signal sound file the addresses URL, by the second server from described Configuration file, voice file and the signal sound file of the terminal after the upgrading are downloaded in first server;And according to institute Configuration file, voice file and the signal sound file service file for stating the terminal after upgrading, configuration file, words to terminal Sound file and signal sound file are upgraded.
Optionally, the method for the present embodiment can also include:The terminal passes through described according to the predetermined period time Two servers send the current upgrading progress msg of the terminal to the first server;Described in the first server receives The current upgrading progress msg for the terminal that the terminal of second server forwarding was sent according to the predetermined period time.With And the first server refreshes the upgrading progress of the terminal according to the current upgrading progress msg of the terminal.
In the present embodiment, terminal is in the escalation process to the version file of terminal, alternatively, terminal is in the version to terminal In the escalation process of file and service scripts, terminal can report current upgrading according to the predetermined period time to first server Current upgrading progress msg can be sent to second server by progress, such as terminal with every 3 minutes based on TR069, and then second Server is based on HTTPS and current upgrading progress msg is sent to first server.
Optionally, the current upgrading progress msg includes:Current time upgrades progress title and upgrades taking for progress Value.Wherein, currently upgrading progress msg is for example as follows:
<EventStruct>
<EventCode>X001E10ProcessReport</EventCode>----timing code
<CommandKey>1385805332666</CommandKey>
</EventStruct>
</Event>
<MaxEnvelopes>1</MaxEnvelopes>
<CurrentTime>2013-08-01T14:23:48+00:00</CurrentTime>
<RetryCount>0</RetryCount>
<ParameterList SOAP-ENC:ArrayType=" cwmp:ParameterValueStruct[8]">
<ParameterValueStruct>
<Name>Device.DeviceInfo.ProcessReport</Name>The title of ----upgrading progress
<Value xsi:Type=" xsd:string">30%</Value>The value of ----upgrading progress
</ParameterValueStruct>。
In the present embodiment, first server carries out the upgrading progress of terminal according to the current upgrading progress msg of terminal Refresh, is in progress so as to the upgrading of monitor terminal.First server can be aobvious to network management personnel at network management personnel interface Show the current upgrading progress of present terminal, to which network management personnel can pass through the network management personnel interface of first server Know the current upgrading progress of each terminal.
The terminal access method that the embodiment of the present invention four provides, further, if the version file number of terminal is relatively low, the Upgrading progress can also be reported to first by one server by second server instruction terminal update version document, terminal Server so that first server can dynamic monitor terminal upgrading progress.
Optionally, on the basis of above method embodiment, in the terminal by the second server to described After one server sends access request message, the method for the present embodiment can also include:If the terminal breaks down, institute It states terminal and failure notification message is sent to the first server by the second server, the failure notification message is used for Terminal described in the first server is notified to break down.And the first server receives the second server forwarding The failure notification message that the terminal is sent;The first server is according to the failure notification message, to network management personnel Show that the terminal breaks down.
In the present embodiment, if terminal detects the terminal and failure, such as the temperature of the low memory of terminal or terminal occurs Spend it is high, terminal can be based on TR069 to second server send failure notification message, second server be based on HTTPS to First server sends the failure notification message, to notify the first server terminal to break down, such as notifies first service The low memory of the device terminal or the temperature of the terminal are excessively high.First server passes through network according to the failure notification message Administrative staff interface shows that the terminal has broken down and (such as the failure of low memory or temperature occurs to network management personnel Excessively high failure), optionally, first server can also show the suggestion for solving this failure to network management personnel.It is optional Ground, first server can first server with it is in the network topology of each terminal that the mark mark of GC group connector is red, with police Show that failure occurs in terminal so that network management personnel, which can understand, knows that failure occurs in which terminal.
Fig. 5 is a kind of application scenario diagram of terminal access method of the present invention, as shown in figure 5, the first clothes in the present embodiment Business device is master server, and second server is distributed server, and terminal is IP phones, is deposited in application scenarios shown in Fig. 5 In more IP phones, one is only shown herein, may exist more distributed servers in application scenarios shown in Fig. 5, this Place's only display one.
The master server of the present embodiment includes access scan components and deployment component, access scan components include certainly:Equipment IP provides service schedule, access scan service progress, progress Push Service process and result statistical fractals progress, from deployment component Including:From deployment request analysis process, process and file service process are issued from deployment task;The Distributed Services of the present embodiment Device includes:Packet parsing process and message forwarding process, the IP phones of the present embodiment include:Scan parsing process, registration service Process, alerting service process and upgrade service process.
The device IP extraction service processes of master server obtain the IP of IP phones from the subnet that network management personnel selects Address field and port numbers, and ping test is carried out to the IP address section of network management personnel's selection, then it will be surveyed by ping The IP address section and port numbers of examination pass to the access scan service process of master server.The access scan service process is directed to IP Address field and port numbers create scan task, and the addresses URL of distributed server are obtained from the configuration file on master server, Include the report that distributed server is sent in the first request message by the addresses URL, IP address and the port of distributed server The addresses URL of distributed server are encapsulated as java by literary parsing process, specifically, the access scan service process of master server Java objects, are passed to the packet parsing process of distributed server by object by remote method call, while by IP address The packet parsing process of distributed server is passed to by parameter with port numbers.
Packet parsing process pair the first request message process of distributed server parses, by the URL of distributed server Address conversion is XML file, while XML file and IP address and port numbers being sent to the message forwarding of distributed server Process, the message forward process according to IP address and port numbers, by XML file include in the second request message based on HTTPS It is sent to IP phones.
IP phones can monitor the request of master server in real time, when receiving the second request message, scan parsing process pair XML file parsing in second request message, the host process address for the distributed server that parsing is obtained are updated to IP phones The access control service of the service stations TR069 (Acess Contrtol Server, referred to as:ACS it) in address configuration item, will parse The distributed server arrived certificate repository address update to IP phones Certificate Authority (Certificate Authority, Referred to as:CA) in the CA certificate address configuration item in server configuration item.The registration service process of IP phones knows address above mentioned more After new, access request message (such as heartbeat message) is reported to distributed server, to be registered in master server automatically.IP is talked about After the completion of the alerting service process of machine learns the access of IP phones, report upgrade request message (such as alarm event message) to distribution The packet parsing process of formula server, acquisition request need the addresses URL of upgrade file, i.e. request to download escalation policy file (UPF), the packet parsing process of distributed server parses upgrade request message, and is transmitted to by message forwarding process Master server disposes request analysis process certainly under deployment component.It will include the version after upgrading from deployment request analysis process This document, configuration file, voice file, signal sound file the upgrading response message (such as UPF) in the paths URL pass through distribution Escalation policy file is forwarded to the upgrade service process of IP phones by server packet parsing process and message forwarding process.IP is talked about After the upgrade service process of machine receives and parses through UPF, is sent to the file service process of master server and download request message, with The files such as phone version file, configuration file, voice file, signal sound file are downloaded in request, and carry out the automatic portion of IP phones Administration.The upgrade service process of IP phones can be counted the result that current upgrading progress msg reports to master server with every 3 minutes Service processes, wherein upgrading progress msg includes:The timing code of extension, the title for upgrading progress, the value for upgrading progress;As a result The progress and state and progress Push Service process of the scan task of statistical fractals process refreshing IP phones, for counting IP The scan progress of phone, and scan progress result is pushed into network management personnel interface.
Fig. 6 is the structural schematic diagram of server example one of the present invention, as shown in fig. 6, the server conduct of the present embodiment First server may include:Transmission unit 11 and receiving unit 12, wherein transmission unit 11 is used to send to second server First request message, first request message include the addresses URL of the second server, the IP address of terminal and port Number;Receiving unit 12 is used to receive the access request message that the terminal of the second server forwarding is sent, the access Request message includes the attribute information of the terminal, and the access request message accesses to the first server for asking; Transmission unit 11 is additionally operable to send access response message to the terminal by the second server.
The server of the present embodiment can be used for executing in above method embodiment of the present invention performed by first server Technical solution, implementing principle and technical effect are similar, and details are not described herein again.
Fig. 7 is the structural schematic diagram of server example two of the present invention, as shown in fig. 7, the server of the present embodiment is in Fig. 6 On the basis of shown server architecture, further, can also include:Acquiring unit 13 and test cell 14, the acquiring unit 13, for before transmission unit 11 sends the first request message to second server, obtaining sweeping for network management personnel's input Instruction is retouched, the scan instruction includes the IP address section of the terminal to be accessed and the port numbers, and the scan instruction is used for Indicate that the first server scans the IP address section and the corresponding terminal to be accessed of the port numbers;Test cell 14 is used In the scan instruction obtained according to acquiring unit 13, ping test is carried out to the IP address section;Transmission unit 11 is specific For including the addresses URL of the second server, being tested by test cell 14ping to second server transmission First request message of the IP address of the terminal and the port numbers.
Optionally, the attribute information of the terminal includes the version file number of the terminal, and the server of the present embodiment is also May include:Determination unit 15, the determination unit 15, in transmission unit 11 by the second server to the terminal Before sending access response message, according to the version file number of the terminal, determine that the terminal needs to upgrade the terminal Version file;Transmission unit 11 is specifically used for through the second server including that upgrading indicates information to terminal transmission Response message is accessed, the upgrading instruction information is used to indicate the version file of terminal described in the terminal upgrade;Receiving unit 12 are additionally operable to after transmission unit 11 sends access response message by the second server to the terminal, described in reception The upgrade request message that the terminal of second server forwarding is sent, the upgrade request message upgrade the end for asking The version file at end;Transmission unit 11 is additionally operable to send upgrading response message, institute to the terminal by the second server State the addresses URL that upgrading response message includes the version file of the terminal after the upgrading.
The server of the present embodiment can be used for executing in above method embodiment of the present invention performed by first server Technical solution, implementing principle and technical effect are similar, and details are not described herein again.
Fig. 8 is the structural schematic diagram of server example three of the present invention, as shown in figure 8, the server conduct of the present embodiment Second server may include:Receiving unit 21, transmission unit 22 and establish unit 23, wherein receiving unit 21 is for receiving The first request message that first server is sent, first request message includes the addresses URL of the second server, terminal IP address and port numbers;Transmission unit 22 is used for the IP address according to the terminal and port, and the second request is sent to terminal Message, second request message include the addresses URL of the second server;Unit 23 is established, for according to described second The addresses URL of server are established with the terminal and are communicated to connect;Receiving unit 21 is additionally operable to receive institute by the communication connection The access request message of terminal transmission is stated, the access request message includes the attribute information of the terminal, the access request Message accesses to the first server for asking;Transmission unit 22 is additionally operable to connect to described in first server forwarding Enter request message, and the access response report for forwarding the first server to send to the terminal is communicated to connect by described Text.
The server of the present embodiment can be used for executing in above method embodiment of the present invention performed by second server Technical solution, implementing principle and technical effect are similar, and details are not described herein again.
Fig. 9 is the structural schematic diagram of terminal embodiment one of the present invention, as shown in figure 9, the terminal of the present embodiment may include: Receiving unit 31 establishes unit 32 and transmission unit 33, wherein receiving unit 31 is for receiving second server according to the end The second request message that the IP address and port numbers at end are sent, second request message includes the URL of the second server Address, second request message are sent out for the second server according to the first request message that the first server is sent Send, first request message include the addresses URL of the second server, the terminal IP address and port numbers;It builds Vertical unit 32 is communicated to connect for being established with the second server according to the addresses URL of the second server;Transmission unit 33 to the first server by the second server for sending access request message, and the access request message includes The attribute information of the terminal, the access request message access to the first server for asking;Receiving unit 31 is also The access response message that the first server for receiving the second server forwarding by the communication connection is sent.
The terminal of the present embodiment can be used for executing the technical side performed by terminal in above method embodiment of the present invention Case, implementing principle and technical effect are similar, and details are not described herein again.
Figure 10 is the structural schematic diagram of terminal embodiment two of the present invention, and as shown in Figure 10, the terminal of the present embodiment is in Fig. 9 institutes On the basis of showing terminal structure, further, the terminal of the present embodiment can also include:Upgrade unit 34;Wherein, receiving unit 31 are specifically used for through the first server transmission for communicating to connect the reception second server forwarding including liter The access response message of grade instruction information, the upgrading instruction information are used to indicate the version text of terminal described in the terminal upgrade Part;Transmission unit 33 is additionally operable to receive described the of second server forwarding by the communication connection in receiving unit 31 After the access response message that one server is sent, upgrade request is sent to the first server by the second server Message, the upgrade request message are used to ask to upgrade the version file of the terminal;Receiving unit 31 is additionally operable to by described Communication connection receives the upgrading response message that the first server of the second server forwarding is sent, the upgrading response Message includes the addresses URL of the version file of the terminal after upgrading.Upgrade unit 34, for according to the institute after the upgrading The addresses URL for stating the version file of terminal, by the second server after downloading the upgrading in the first server The terminal version file, and according to the version file of the terminal after the upgrading, to the version text of the terminal Part is upgraded.
The terminal of the present embodiment can be used for executing the technical side performed by terminal in above method embodiment of the present invention Case, implementing principle and technical effect are similar, and details are not described herein again.
Figure 11 is the structural schematic diagram of server example four of the present invention, and as shown in figure 11, the server of the present embodiment is made May include for first server:Processor 41, communication interface 42, memory 43 and bus etc..Processor 41, communication interface 42 and memory 43 be connected with each other by bus and complete mutual communication.The bus can be industry standard architecture (Industry Standard Architecture, referred to as:ISA) bus, external equipment interconnection (Peripheral Component, referred to as:PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, referred to as:EISA) bus etc..The bus can be divided into address bus, data/address bus, controlling bus etc..For Convenient for indicating, only indicated with a thick line in Figure 11, it is not intended that an only bus or a type of bus.
Memory 43 is for storing program.Specifically, program may include program code, and said program code includes calculating Machine operational order.Memory 43 may include high random access device memory (Random-Access Memory, abbreviation: RAM), it is also possible to further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage. Communication interface 42 is used for and external device communication, and communication interface 42 can be universal serial bus (Universal Serial BUS, referred to as:USB) interface, time-frequency graphic array (Video Graphics Array, abbreviation:VGA) interface or cable interface Deng.
Processor 41 may be a central processing unit (Central Processing Unit, abbreviation:CPU), either Specific integrated circuit (Application Specific Integrated Circuit, referred to as:ASIC), or it is configured At the one or more integrated circuits for implementing the embodiment of the present invention.
Processor 41 is used to execute the program of the storage of memory 43, for:Communication interface 42 is controlled at least one the Two servers send the first request message, first request message include the addresses URL of the second server, terminal IP Address and port numbers, so that the second server will include the second service according to the IP address and port numbers of the terminal Second request message of the addresses URL of device is sent to the terminal;And control communication interface 42 receives the second server The access request message that the terminal of forwarding is sent, the access request message includes the attribute information of the terminal, described Access request message accesses to the first server for asking;And control communication interface 42 passes through the second server Access response message is sent to the terminal, to complete the access procedure of the terminal.
Optionally, it before the control communication interface 42 of processor 41 sends the first request message to second server, is additionally operable to Obtain the scan instruction of network management personnel's input, the scan instruction includes the IP address section of the terminal to be accessed and described Port numbers, the scan instruction are used to indicate that the first server scans the IP address section and the port numbers are corresponding waits for Access terminal, and according to the scan instruction, ping test is carried out to the IP address section;Processor 41 controls communication interface 42 send the first request message to second server, including:Processor 41 is according to control communication interface 42 to the second service Device send include the second server the addresses URL, the IP address by the terminal of ping test and the port numbers The first request message.
Optionally, the attribute information of the terminal includes the version file number of the terminal, and the control communication of processor 41 connects Before mouth 42 sends access response message by the second server to the terminal, it is additionally operable to the version according to the terminal Document number determines that the terminal needs to upgrade the version file of the terminal;Processor 41 controls communication interface 42 described in Second server sends access response message to the terminal, specially:Processor 41 controls communication interface 42 by described the It includes the access response message for upgrading instruction information that two servers are sent to the terminal, and the upgrading instruction information is used to indicate The version file of terminal described in the terminal upgrade;Processor 41 controls communication interface 42 by the second server to described After terminal sends access response message, it is additionally operable to the terminal that control communication interface 42 receives the second server forwarding The upgrade request message of transmission, the upgrade request message are used to ask to upgrade the version file of the terminal;And control is logical Believe that interface 42 sends upgrading response message by the second server to the terminal, the upgrading response message includes upgrading The addresses URL of the version file of the terminal afterwards.
The server of the present embodiment can be used for executing in above method embodiment of the present invention performed by first server Technical solution, implementing principle and technical effect are similar, and details are not described herein again.
Figure 12 is the structural schematic diagram of server example five of the present invention, and as shown in figure 12, the server of the present embodiment is made May include for second server:Processor 51, communication interface 52, memory 53 and bus etc..Processor 51, communication interface 52 and memory 53 be connected with each other by bus and complete mutual communication.The bus can be isa bus, pci bus Or eisa bus etc..The bus can be divided into address bus, data/address bus, controlling bus etc..For ease of indicating, in Figure 12 only It is indicated with a thick line, it is not intended that an only bus or a type of bus.
Memory 53 is for storing program.Specifically, program may include program code, and said program code includes calculating Machine operational order.Memory 53 may include high-speed RAM, it is also possible to and further include nonvolatile memory, a for example, at least magnetic Disk storage.Communication interface 52 is used for and external device communication, and communication interface 52 can be that USB interface, USB interface or cable connect Mouthful etc..
Processor 51 may be a CPU or ASIC, or be arranged to implement one of the embodiment of the present invention Or multiple integrated circuits.
Processor 51 is used to execute the program of the storage of memory 53, for:It controls communication interface 52 and receives first service Device send the first request message, first request message include the addresses URL of the second server, terminal IP address And port numbers;And control communication interface 52 sends the second request report according to the IP address and port numbers of the terminal to terminal Text, second request message include the addresses URL of the second server;And according to the URL of the second server Location is established with the terminal and is communicated to connect;And control communication interface 52 receives what the terminal was sent by the communication connection Access request message, the access request message include the mark of the file of the terminal, and the access request message is for asking It asks and accesses to the first server;And control communication interface 52 forwards the access request report to the first server Text, and the access response message that the first server is sent is forwarded by described communicate to connect to the terminal, to complete The access procedure of the terminal.
The server of the present embodiment can be used for executing in above method embodiment of the present invention performed by first server Technical solution, implementing principle and technical effect are similar, and details are not described herein again.
Figure 13 is the structural schematic diagram of terminal embodiment three of the present invention, and as shown in figure 13, the terminal of the present embodiment can wrap It includes:Processor 61, communication interface 62, memory 63 and bus etc..Processor 61, communication interface 62 and memory 63 are by total Line is connected with each other and completes mutual communication.The bus can be isa bus, pci bus or eisa bus etc..It is described total Line can be divided into address bus, data/address bus, controlling bus etc..For ease of indicating, only indicated with a thick line in Figure 13, but simultaneously Only a bus or a type of bus are not indicated that.
Memory 63 is for storing program.Specifically, program may include program code, and said program code includes calculating Machine operational order.Memory 63 may include high-speed RAM, it is also possible to and further include nonvolatile memory, a for example, at least magnetic Disk storage.Communication interface 62 is used for and external device communication, and communication interface 62 can be that USB interface, USB interface or cable connect Mouthful etc..
Processor 61 may be a CPU or ASIC, or be arranged to implement one of the embodiment of the present invention Or multiple integrated circuits.
Processor 61 is used to execute the program of the storage of memory 63, for:It controls communication interface 62 and receives second service The second request message that device is sent according to the IP address and port numbers of the terminal, second request message include described second The addresses URL of server, second request message are first that the second server is sent according to the first server Request message and send, first request message include the addresses URL of the second server, the terminal IP address And port numbers;And it is established and is communicated to connect with the second server according to the addresses URL of the second server;And control Communication interface 62 sends access request message, the access request message by the second server to the first server Include the attribute information of the terminal, the access request message accesses to the first server for asking;And control Communication interface 62 receives the access sound that the first server of the second server forwarding is sent by the communication connection Answer message.
Optionally, processor 61 controls the first server hair that communication interface 62 receives the second server forwarding The access response message sent, specially:Processor 61 controls communication interface 62 and receives second clothes by the communication connection The access response message for including upgrading instruction information that the first server of device forwarding of being engaged in is sent, the upgrading indicate information It is used to indicate the version file of terminal described in the terminal upgrade;Processor 61 controls communication interface 62 and passes through the communication connection After the access response message for receiving the first server transmission of the second server forwarding, further include:Processor 61 It controls communication interface 62 and upgrade request message, the upgrade request is sent to the first server by the second server Message is used to ask to upgrade the version file of the terminal;And control communication interface 62 passes through described in communication connection reception The upgrading response message that the first server of second server forwarding is sent, the upgrading response message include after upgrading The addresses URL of the version file of the terminal;And the addresses URL of the version file according to the terminal after the upgrading, Pass through the version file of the terminal of the second server after downloading the upgrading in the first server;And according to The version file of the terminal after the upgrading, upgrades the version file of the terminal.
The terminal of the present embodiment can be used for executing the technical side performed by terminal in above method embodiment of the present invention Case, implementing principle and technical effect are similar, and details are not described herein again.
Figure 14 is the structural schematic diagram of terminal access system embodiment of the present invention, as shown in figure 14, the system of the present embodiment Including:First server 71, at least one second server 72 and at least one terminal 73, first server 71 can at least One second server 72 communicates to connect, and only shows a second server 72 in Figure 14, second server 72 can at least One terminal 73 communicates to connect, and a terminal 73 is only shown in Figure 14.Wherein, first server 71 may be used Fig. 6, Fig. 7 or The structure of any server embodiment shown in Figure 11 accordingly can be first in any of the above-described embodiment of the method for the present invention The technical solution that server executes, implementing principle and technical effect are similar, and details are not described herein again;Second server 72 can be adopted The structure of any server embodiment shown in Fig. 8 or Figure 12 accordingly can any of the above-described embodiment of the method for the present invention The technical solution that middle second server executes, implementing principle and technical effect are similar, and details are not described herein again;Terminal 73 can adopt The structure of any terminal embodiment shown in Fig. 9, Figure 10 or Figure 13 accordingly can any of the above-described method reality of the present invention The technical solution that terminal executes in example is applied, implementing principle and technical effect are similar, and details are not described herein again.Such as:First service Device 71 can be the master server in enterprise's operational system, and second server 72 can be the distributed clothes in enterprise's operational system Business device, terminal 73 can be IP phones.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of terminal access method, which is characterized in that including:
First server sends the first request message at least one second server, and first request message includes described the The uniform resource position mark URL address of two servers, the internet protocol address and port numbers of terminal;The first request report Text is for asking the second server that the addresses URL of the second server are sent to the terminal, so that the terminal It is established and is communicated to connect according to the addresses URL of the second server and the second server;
The first server receives the access request message that the terminal of the second server forwarding is sent, the access Request message includes the attribute information of the terminal, and the access request message accesses to the first server for asking;
The first server sends access response message by the second server to the terminal.
2. according to the method described in claim 1, it is characterized in that, the first server is asked to second server transmission first Before seeking message, further include:
The first server obtains the scan instruction of network management personnel's input, and the scan instruction includes the IP of the terminal Address field and the port numbers, the scan instruction are used to indicate the first server and scan the IP address section and the end The corresponding terminal of slogan;
The first server carries out ping test according to the scan instruction, to the IP address section;
The first server sends the first request message to second server, including:
It includes the addresses URL of the second server that the first server is sent to the second server, is surveyed by ping First request message of the IP address and the port numbers of the terminal of examination.
3. method according to claim 1 or 2, which is characterized in that the attribute information of the terminal includes the terminal Version file number, before the first server sends access response message by the second server to the terminal, also Including:
The first server determines that the terminal needs to upgrade the version of the terminal according to the version file number of the terminal File;
The first server sends access response message by the second server to the terminal, including:
It includes that upgrading indicates that the access of information responds that the first server, which is sent by the second server to the terminal, Message, the upgrading instruction information are used to indicate the version file of terminal described in the terminal upgrade;
After the first server sends access response message by the second server to the terminal, further include:
The first server receives the upgrade request message that the terminal of the second server forwarding is sent, the upgrading Request message is used to ask to upgrade the version file of the terminal;
The first server sends upgrading response message, the upgrading response report by the second server to the terminal Text includes the addresses URL of the version file of the terminal after upgrading.
4. a kind of server, the server is as first server, which is characterized in that including:
Transmission unit, for sending the first request message at least one second server, first request message includes institute State the uniform resource position mark URL address of second server, the internet protocol address and port numbers of terminal;Described first asks Ask message for asking the second server that the addresses URL of the second server are sent to the terminal, so that described Terminal is established with the second server according to the addresses URL of the second server and is communicated to connect;
Receiving unit, the access request message that the terminal for receiving the second server forwarding is sent, the access Request message includes the attribute information of the terminal, and the access request message accesses to the first server for asking;
The transmission unit is additionally operable to send access response message to the terminal by the second server.
5. server according to claim 4, which is characterized in that further include:
Acquiring unit, for before the transmission unit sends the first request message to second server, obtaining network management The scan instruction of personnel's input, the scan instruction includes the IP address section of the terminal and the port numbers, and the scanning refers to Order is used to indicate the first server and scans the IP address section and the corresponding terminal of the port numbers;
Test cell, the scan instruction for being obtained according to the acquiring unit carry out ping surveys to the IP address section Examination;
It includes the addresses URL of the second server that the transmission unit, which is specifically used for sending to the second server, is passed through The IP address of the terminal of the test cell ping test and first request message of the port numbers.
6. server according to claim 4 or 5, which is characterized in that the attribute information of the terminal includes the terminal Version file number, the server further includes:
Determination unit, for the transmission unit by the second server to the terminal send access response message it Before, according to the version file number of the terminal, determine that the terminal needs to upgrade the version file of the terminal;
It includes connecing for upgrading instruction information that the transmission unit, which is specifically used for sending to the terminal by the second server, Enter response message, the upgrading instruction information is used to indicate the version file of terminal described in the terminal upgrade;
The receiving unit is additionally operable to send access response to the terminal by the second server in the transmission unit After message, the upgrade request message that the terminal of the second server forwarding is sent, the upgrade request message are received Version file for asking to upgrade the terminal;
The transmission unit is additionally operable to send upgrading response message to the terminal by the second server, and the upgrading is rung It includes the addresses URL of the version file of the terminal after upgrading to answer message.
7. a kind of server, the server is as second server, which is characterized in that including:
Receiving unit, the first request message for receiving first server transmission, first request message include described the The uniform resource position mark URL address of two servers, the internet protocol address and port numbers of terminal;
Transmission unit sends the second request message for the IP address and port numbers according to the terminal to the terminal, described Second request message includes the addresses URL of the second server;
Unit is established, is communicated to connect for being established with the terminal according to the addresses URL of the second server;
The receiving unit is additionally operable to receive the access request message that the terminal is sent by the communication connection, described to connect Enter the attribute information that request message includes the terminal, the access request message accesses to the first service for asking Device;
The transmission unit is additionally operable to forward the access request message to the first server, and passes through the communication It connects to the terminal and forwards the access response message that the first server is sent.
8. a kind of terminal, which is characterized in that including:
Receiving unit, sent according to the internet protocol address and port numbers of the terminal for receiving second server Two request messages, second request message include the uniform resource position mark URL address of the second server, and described second Request message sends for the second server according to the first request message that first server is sent, first request Message include the addresses URL of the second server, the terminal IP address and port numbers;
Unit is established, is communicated to connect for being established with the second server according to the addresses URL of the second server;
Transmission unit, for sending access request message, the access to the first server by the second server Request message includes the attribute information of the terminal, and the access request message accesses to the first server for asking;
The receiving unit is additionally operable to receive the first server of the second server forwarding by the communication connection The access response message of transmission.
9. terminal according to claim 8, which is characterized in that further include:Upgrade unit;
The receiving unit is specifically used for receiving the first service of the second server forwarding by the communication connection What device was sent includes the access response message of upgrading instruction information, and the upgrading instruction information is used to indicate the terminal upgrade institute State the version file of terminal;
The transmission unit is additionally operable to receive the second server forwarding by the communication connection in the receiving unit After the access response message that the first server is sent, is sent and risen to the first server by the second server Grade request message, the upgrade request message are used to ask to upgrade the version file of the terminal;
The receiving unit is additionally operable to receive the first server of the second server forwarding by the communication connection The upgrading response message of transmission, the upgrading response message include the addresses URL of the version file of the terminal after upgrading;
The upgrade unit is used for the addresses URL of the version file according to the terminal after the upgrading, passes through described second The version file of the terminal of the server after downloading the upgrading in the first server;And according to the upgrading after The version file of the terminal upgrades the version file of the terminal.
10. a kind of terminal access system, which is characterized in that including:First service as described in claim 4-6 any one Device, 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 CN105306238A (en) 2016-02-03
CN105306238B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147519B (en) * 2017-04-10 2021-03-26 北京德威特电气科技股份有限公司 Method, device and system for upgrading equipment
CN111596940B (en) * 2020-05-19 2023-04-07 杭州视联动力技术有限公司 Version upgrading method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10316236B4 (en) * 2003-04-09 2007-08-09 Siemens Ag Method and arrangement for configuring a device in a data network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN105306238A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
CN107211232B (en) Interworking of lightweight machine-to-machine protocols and device management protocols
CN103501486B (en) A kind of information push method and push server
US10419552B2 (en) Publication and discovery of M2M-IoT services
CN106471465B (en) Service enabler function
CN111436160A (en) Local area network communication method, device and system
CN104660409B (en) The method of system login and certificate server cluster under cluster environment
CN1910563B (en) Device registration system, server, and terminal device
US10693706B2 (en) Method and apparatus of performing simultaneous multi-agent access for command execution through a single client
CN104967644A (en) Message push method, apparatus and system
CN107818268A (en) The access control method and server of big data platform
US11350267B2 (en) Method of obtaining user subscription data pertaining to a subscriber in a telecommunication network
CN107534649A (en) Change the IMS supplementary service datas in IMS network
US20150149629A1 (en) User online state querying method and apparatus
CN105306238B (en) Terminal access method, device and system
CN113704647A (en) Method and device for jumping multiple types of pages and electronic equipment
US9729404B2 (en) Quality of service monitoring device and method of monitoring quality of service
CN107819599B (en) Message processing method and device
CN110554884B (en) Configuration method, device, background server and storage medium
CN115348191B (en) Internet of things terminal data acquisition method and device in wireless VPDN (virtual private digital network)
Kortebi et al. Home network assistant: Towards better diagnostics and increased customer satisfaction
CN106658081A (en) Automatic configuration method, set top box, and server
CN106657424B (en) Method, equipment and system for realizing domain name service in Internet of things
CN107911642A (en) A kind of cable television network management system
CN110913406B (en) Access configuration method and device of RCS test server
CN108345508A (en) Interface calls test method and device

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