Summary of the invention
The technical problem to be solved in the present invention is, above-mentioned defective at prior art, a kind of webmaster traversing method and ride through system of ip voice access device are provided, provide a kind of NM server that makes the ip voice access device can be positioned at the webmaster traversing method and the ride through system of the ip voice management equipment of various places and different complex network environments, reduced maintenance cost by internet management.
The technical scheme that technical solution problem of the present invention is adopted is as follows:
A kind of webmaster traversing method of ip voice access device wherein, may further comprise the steps:
A, the NM server of ip voice access device is connected to the Internet, obtains the public network IP address of a network management center;
The public network IP address of B, the NM server that in each ip voice access device, prestores;
C, the ip voice access device is deployed in the Intranet, and the ip voice access device that will be positioned at Intranet sends a logon message with the router that is connected of public network to the NM server that is positioned at public network by Intranet;
D, NM server receive and respond this logon message, set up communication link between NM server and the ip voice access device to carry out voice data communication according to this response; And the ip voice access device regularly sends heartbeat message to NM server, is used to keep the communication link from ip voice equipment to NM server not disconnect.
The webmaster traversing method of described ip voice access device, wherein, described NM server is divided into webmaster backstage and webmaster foreground, and the webmaster backstage is deployed in public network, and webmaster front office is deployed in the Intranet.
The webmaster traversing method of described ip voice access device, wherein, the interior network address translater NAT that is equipped with on the net that described ip voice access device connects is used for the log-on message of ip voice access device is transmitted to NM server.
The webmaster traversing method of described ip voice access device, wherein, described step D also comprises:
D1, NM server send a SNMP Set message and give the ip voice access device, are used to respond the logon message that the ip voice access device sends;
After D2, ip voice access device are received SNMP Set message, utilize the socket socket of binding local port, initiate to connect to a wherein listening port of NM server;
After D3, the successful connection, preserve a socket socket on NM server, the port by this socket socket and ip voice access device communicates.
The webmaster traversing method of described ip voice access device, wherein, described step D also comprises:
D4, webmaster backstage utilize another listening port of NM server to transmit the log-on message of ip voice access device to the webmaster foreground;
After D5, webmaster foreground receive the log-on message that needs the ip voice of remote debugging access device, initiate to be connected to described another listening port on webmaster backstage;
After this connection was accepted on D6, webmaster backstage, the webmaster foreground was initiated one to the webmaster backstage and is transmitted the TCP message, transmits the network element of the ip voice access device that needs remote debugging;
D7, webmaster backstage with the ip voice access device of needs debugging and the socket socket binding on webmaster foreground, form a logical channel according to this network element.
The webmaster traversing method of described ip voice access device wherein, also comprises step e:
The webmaster foreground sends to the webmaster backstage with the Telnet instruction, and the webmaster backstage passes to the ip voice access device with this Telnet instruction, is used to carry out exchanges data.
A kind of webmaster ride through system of ip voice equipment wherein, comprises ip voice access device, router, manages relevant at least one Intranet, public network and NM server with the ip voice access device.
Described NM server is connected with public network, obtains a public network IP address.
Described ip voice access device is deployed in the Intranet, and the public network IP address of the NM server that prestores in this ip voice access device; Described ip voice access device is connected with described NM server by router; Be used for sending a logon message to the NM server that is positioned at public network, and be used for regularly sending heartbeat message, be used to keep communication link not disconnect from ip voice equipment to NM server to NM server by router; Described router connects Intranet and public network, is used to transmit logon message and each data message that described ip voice access device sends to described NM server; Described NM server is used for receiving and the response logon message, sets up communication link between NM server and the ip voice access device to carry out voice data communication according to this response.
The webmaster ride through system of described ip voice access device, wherein, the interior network address translater NAT that is equipped with on the net that described ip voice access device connects is used for the log-on message of ip voice access device is transmitted to NM server.
The webmaster ride through system of described ip voice access device wherein, after described NM server also is used to receive logon message, sends a SNMP Set message and gives ip voice equipment, to respond the logon message that the ip voice access device sends;
After described ip voice access device also is used to receive SNMP Set message, utilize the socket socket of binding local port, initiate to connect to the listening port of NM server;
Described NM server also be used for when with the successful connection of ip voice access device after, preserve a socket socket, the port by this socket socket and ip voice access device communicates.
The webmaster ride through system of described ip voice access device, wherein, described NM server is divided into webmaster backstage and webmaster foreground, and the webmaster backstage is deployed in public network, and webmaster front office is deployed in the Intranet;
Described webmaster backstage also is used to utilize the log-on message of another listening port of NM server to webmaster foreground transmission ip voice access device;
After described webmaster foreground also is used to receive the log-on message that needs the ip voice of remote debugging access device, initiate to be connected to described another listening port on webmaster backstage;
After described webmaster backstage also was used to accept this connection, the webmaster foreground was initiated one to the webmaster backstage and is transmitted the TCP message, transmits the network element of the ip voice access device that needs remote debugging;
Described webmaster backstage also is used for according to this network element, with the ip voice access device of needs debugging and the socket socket binding on webmaster foreground, forms a logical channel;
Described webmaster foreground also is used for the Telnet instruction is sent to the webmaster backstage, and the webmaster backstage passes to the ip voice access device with this Telnet instruction, is used to carry out exchanges data.
Webmaster traversing method and the ride through system of ip voice access device provided by the present invention under complex network environment, owing to adopted the public network IP address of the NM server that in the ip voice access device, prestores, send a logon message with the router that is connected of public network to the NM server that is positioned at public network by Intranet by the ip voice access device that is positioned at Intranet, NM server is received and is responded this logon message then, thereby the communication link of setting up between NM server and the ip voice access device carries out voice data communication.So just can telemanagement be positioned at ip voice access device all over the world, the ip voice access device is carried out remote operation setting and other network managements, significantly reduced the maintenance management expense of ip voice access device, reduced maintenance cost.
Embodiment
The invention provides webmaster traversing method and the ride through system of a kind of ip voice access device under complex network environment, for making purpose of the present invention, technical scheme and advantage clearer, clear and definite, below develop simultaneously with reference to accompanying drawing that the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The webmaster ride through system of a kind of ip voice equipment of the embodiment of the invention, as shown in Figure 5, comprise ip voice access device (IAD) 210, router two 20, with relevant at least one Intranet, public network (the Internet) and the NM server 230 of ip voice access device management; Described NM server 230 is connected with public network (the Internet), is used to obtain a public network IP address; For example obtaining a public network IP is: 211.96.108.27.Described NM server is divided into webmaster backstage and webmaster foreground, and the webmaster backstage is deployed in public network, and webmaster front office is deployed in the Intranet.
Described ip voice access device 210 is deployed in the Intranet, and the public network IP address of the NM server that prestores in this ip voice access device; Described ip voice access device 210 is connected with described NM server 230 by router two 20; Be used for sending a logon message to the NM server 230 that is positioned at public network, and be used for regularly sending heartbeat message, be used to keep communication link not disconnect from ip voice equipment to NM server to NM server 230 by router two 20; Described router two 20 connects Intranet and public network, is used to transmit logon message and each data message that described ip voice access device sends to described NM server; Described NM server 230 is used for receiving and the response logon message, sets up communication link between NM server and the ip voice access device to carry out voice data communication according to this response.
Based on the webmaster ride through system of the ip voice equipment of the foregoing description, the webmaster traversing method of a kind of ip voice access device that the embodiment of the invention provides as shown in Figure 1, mainly may further comprise the steps:
Step S110, the NM server of ip voice access device is connected to the Internet, obtains the public network IP address of a network management center;
The public network IP address of step S120, the NM server that in each ip voice access device, prestores;
Step S130, ip voice access device (IAD) is deployed in the Intranet, and the ip voice access device that will be positioned at Intranet sends a logon message with the router that is connected of public network to the NM server that is positioned at public network by Intranet;
Step S140, NM server receive and respond this logon message, set up communication link between NM server and the ip voice access device to carry out voice data communication according to this response; And the ip voice access device regularly sends heartbeat message to NM server, is used to keep the communication link from ip voice equipment to NM server not disconnect.
Below be described in further details by the webmaster traversing method of concrete Application Example ip voice access device of the present invention, see also Fig. 2, Fig. 2 realizes dynamic on-demand for ip voice access device webmaster traversing method of the present invention and initiates the flow chart that connects.
Step S0, the public network address of the NM server that in ip voice access device (IAD), prestores.The webmaster foreground of NM server is connected in the Internet public network, thereby has a public network IP address, and for example the public network IP address on webmaster foreground is 211.96.108.27, the IP address 211.96.108.27 on this webmaster foreground that prestores in the ip voice access device;
Step S1, the ip voice access device is arranged in Intranet, Intranet connects public network by router, the IP address of ip voice access device is 192.168.0.2, the public network IP address on the webmaster foreground that the ip voice access device prestores according to oneself sends a logon message by router to the webmaster foreground that is positioned at public network from Intranet;
Step S2, a SNMP Set message is sent to the ip voice access device after receiving logon message in the webmaster backstage, to respond the logon message that the ip voice access device sends;
After step S3, ip voice access device receive SNMP Set message, utilize the socket socket of the source port TCP 23 of binding IP speech sound access equipment to initiate the Connect connection to the listening port TCP on webmaster backstage 23 ports;
Step S4 after the successful connection, preserves a socket on the webmaster backstage, the webmaster backstage can communicate by TCP 23 ports of this socket and ip voice access device.
Please continue to consult Fig. 3, Fig. 3 realizes NM server for ip voice access device webmaster traversing method and safeguards the flow chart that multi-client connects.It comprises the steps:
Step S5 after webmaster backstage and ip voice access device are connected, utilizes the log-on message of another listening port TCP 2300 of NM server to webmaster foreground transmission ip voice access device;
Step S6 after the webmaster foreground receives the log-on message that needs the ip voice of remote debugging access device, is initiated to the connection of described another listening port TCP 2300 on webmaster backstage;
Step S7, after this connection was accepted on the webmaster backstage, both sides formed a pair of socket, and a TCP message is initiated to the webmaster backstage in the webmaster foreground then, transmits the network element (NTID) of the ip voice access device that needs remote debugging;
Step S8, the webmaster backstage with the ip voice access device of needs debugging and the socket socket binding on webmaster foreground, forms a logical channel according to this network element (NTID).
The webmaster backstage with ip voice receiving equipment port TCP 23<-webmaster backstage listening port 1TCP (23) and webmaster backstage port TCP 2300<-socket between the webmaster foreground in pairs after, that carries out telnet data between ip voice access device and the webmaster foreground freely transmits transmission.
Fig. 4 is the network topological diagram of the ip voice access device webmaster ride through system among the present invention.As seen in Figure 4, it is the abbreviation of China Mobile Net that ip voice access device (IAD) is deployed in private network (Intranet) CMNET(CMNET, it is the title of the access point of China Mobile's GPRS network) below, the webmaster backstage of NM server is deployed in the public network, and the webmaster front office of NM server is deployed in below the private network.The webmaster foreground sends to the webmaster backstage with the Telnet instruction, the webmaster backstage passes to IAD equipment with it, wherein, on the private network that described ip voice access device connects network address translater NAT is installed, is used for the log-on message of ip voice access device is transmitted to NM server.
Wherein, webmaster back-office support TCP 23 among the present invention and TCP 2300 ports are monitored and are managed two-way socket and make it paired, support manyly to socket simultaneously, and a plurality of webmasters foreground (NM client) can be inserted, support simultaneously can find corresponding socket according to NTID.
As described in Figure 5, Fig. 5 is the structure chart of the ip voice access device webmaster ride through system among the present invention.
The webmaster ride through system of ip voice equipment of the present invention comprises ip voice access device (IAD) 210, router two 20, manages relevant at least one Intranet, public network (the Internet) and NM server 230 with the ip voice access device;
The interior network address translater NAT that is equipped with on the net that described ip voice access device connects is used for the log-on message of ip voice access device is transmitted to NM server.
After described NM server receives logon message, send a SNMP Set message and give ip voice equipment, to respond the logon message that the ip voice access device sends;
After described ip voice access device is received SNMP Set message, utilize the socket socket of binding local port, initiate to connect to the listening port of NM server;
When with the successful connection of ip voice access device after, described NM server is preserved a socket socket, the port by this socket socket and ip voice access device communicates.
Wherein, described NM server is divided into webmaster backstage and webmaster foreground, and the webmaster backstage is deployed in public network, and webmaster front office is deployed in the Intranet;
Described webmaster backstage utilizes another listening port of NM server to transmit the log-on message of ip voice access device to the webmaster foreground;
After described webmaster foreground receives the log-on message that needs the ip voice of remote debugging access device, initiate to be connected to described another listening port on webmaster backstage;
After this connection was accepted on described webmaster backstage, the webmaster foreground was initiated one to the webmaster backstage and is transmitted the TCP message, transmits the network element of the ip voice access device that needs remote debugging;
Described webmaster backstage with the ip voice access device of needs debugging and the socket socket binding on webmaster foreground, forms a logical channel according to this network element;
Described webmaster foreground sends to the webmaster backstage with the Telnet instruction, and the webmaster backstage passes to the ip voice access device with this Telnet instruction, is used to carry out exchanges data.
For example as shown in Figure 5, at first determine an IP address for the IAD NM server at the Internet public network, IP address such as NM server is 211.96.108.27, the IAD NM server is connected on the internet, described ip voice access device all presets the IP address 211.96.108.27 of NM server when dispatching from the factory, described ip voice access device connects Intranet, Intranet connects public network by router, the IP address of router connection Intranet is 192.168.0.1 in the present embodiment, IAD equipment has the IP address of Intranet, is 192.168.0.2 in the present embodiment.
The IP address of the NM server that described ip voice access device (IAD) prestores according to oneself, send a logon message from the router that is connected of Intranet by Intranet and public network to the NM server of public network, this logon message is received and responded in network management center, get in touch by message like this, NM server is just known the communication link of this IAD equipment, next, by these links, NM server just can be operated HTTP 80 ports of ip voice access device (IAD) the AGENT agency of IAD equipment.As shown in Figure 5, NM client just can be visited by IP, http: // 211.96.108.2/80.Certainly can access port be set voluntarily in the agency of ip voice access device among the present invention, example 8080 etc., but what finally walk in outer net is 80 ports, the packet among the present invention is to be hidden in 80 ends of outer net to transmit, and can pass any fire compartment wall.
In sum, webmaster traversing method and the ride through system of ip voice access device provided by the present invention under complex network environment, owing to adopted the public network IP address of the NM server that in the ip voice access device, prestores, send a logon message with the router that is connected of public network to the NM server that is positioned at public network by Intranet by the ip voice access device that is positioned at Intranet, NM server is received and is responded this logon message then, thereby the communication link of setting up between NM server and the ip voice access device carries out voice data communication.So just can telemanagement be positioned at ip voice access device all over the world, the ip voice access device is carried out remote operation setting and other network managements, significantly reduced the maintenance management expense of ip voice access device, reduced maintenance cost.
Should be understood that application of the present invention is not limited to above-mentioned giving an example, for those of ordinary skills, can be improved according to the above description or conversion that all these improvement and conversion all should belong to the protection range of claims of the present invention.