The method of a kind of Operation and Maintenance client and remote equipment direct communicationTechnical field
The present invention relates to the method for a kind of Operation and Maintenance client and remote equipment direct communication in the communication equipment network.
Background technology
At present, in communication equipment network, for network security, remote equipment only allows the Backend Administration Module (BAM) at centralized maintenance center to set up TCP with remote equipment oneself to be connected, and the Operation and Maintenance client can not directly be set up TCP with remote equipment and be connected.
For example: the base station transceiver (BTS) in code division multiple access (CDMA) system, as remote equipment, its (BAM) that allows the centralized maintenance center with oneself set up TCP and be connected, the Operation and Maintenance client is the PC of complete operation maintenance function, can not directly set up TCP with remote equipment and be connected.Its connected mode is referring to Fig. 1, and Fig. 1 is the communication scheme between prior art BAM and BTS, the Operation and Maintenance client.Wherein, the BAM 101 at centralized maintenance center has two IP addresses: one is external IP, with Operation andMaintenance client 104 be the same network segment (10.71.XXX.XXX), set up TCP/IP by Ethernet with Operation andMaintenance client 104 and be connected, Transmission TCP/IP protocol frame; Another is inner IP, for another network segment (10.12.XXX.XXX), sets up TCP/IP byconnection device 102 with remote equipment BTS 103 and is connected.A Telnet Server is arranged among the remote equipment BTS 103, and centralized maintenance center BAM101 can use the Telnet agreement directly to login Telnet Server among the remote equipment BTS 103 as telnet client.For system safety, remote equipment BTS103 only allows centralized maintenance center BAM to use implicit IP address visit oneself, thus Operation andMaintenance client 104 directly Telnet be connected to the Telnet Server of remote equipment BTS103.
In the prior art, the safety system of centralized maintenance center BAM101 has user authority management and client rights management.If a user UserN wants by an Operation andMaintenance client 104 visit centralized maintenance center BAM 101, fill order Cmd_X, need user UserN to have the authority of fill order Cmd_X this moment, Operation andMaintenance client 104 also has the authority of fill order Cmd_X simultaneously, the safety management module of centralized maintenance center BAM101 can carry out authentication to above-mentioned authority, has only the user by authentication could pass through an Operation andMaintenance client 104 visit centralized maintenance center BAM101.
Summary of the invention
In view of this, the object of the present invention is to provide the method for a kind of Operation and Maintenance client and remote equipment direct communication, make the Operation and Maintenance client can be safely, easily with the remote equipment direct communication.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
The method of a kind of Operation and Maintenance client and remote equipment direct communication is provided with the TCP/IP agency at the centralized maintenance center, the process of Operation and Maintenance client and remote equipment direct communication may further comprise the steps:
1) the centralized maintenance center receives the user after the startup agency's that the Operation and Maintenance client sends operational maintenance command, safety management module wherein carries out authentication, have the authority that sends the operational maintenance command that starts the agency simultaneously if determine described user and Operation and Maintenance client, start the TCP/IP agency at centralized maintenance center;
2) the TCP/IP agency sets up the port numbers of remote equipment IP address, remote equipment and the proxy port corresponding relation of remote equipment;
3) the TCP/IP agency is according to the corresponding relation in thestep 2, set up that the Operation and Maintenance client is connected with TCP/IP between the centralized maintenance center and the centralized maintenance center is connected with TCP/IP between the remote equipment, when system does not need Operation and Maintenance client and remote equipment direct communication, the centralized maintenance center stops TCP/IP agency operation, when system needs Operation and Maintenance client and remote equipment direct communication, carry out following steps;
4) the Operation and Maintenance client is when remote equipment sends information, is connected the TCP/IP that sends to the centralized maintenance center by the Operation and Maintenance client with TCP/IP between the centralized maintenance center earlier and acts on behalf of; TCP/IP agency is connected by the centralized maintenance center this information and directly is transmitted to remote equipment with TCP/IP between the remote equipment;
5) remote equipment is when the Operation and Maintenance client sends information, is connected the TCP/IP that sends to the centralized maintenance center by remote equipment with TCP/IP between the centralized maintenance center earlier and acts on behalf of; TCP/IP agency is connected by the centralized maintenance center this information and directly is transmitted to the Operation and Maintenance client with TCP/IP between the Operation and Maintenance client.
Wherein, describedstep 1 further comprises:
If safety management module is determined described user or Operation and Maintenance client and is not sent the authority of the operational maintenance command that starts the agency that centralized maintenance center return command is carried out failure, points out user or Operation and Maintenance client not to have authority.
Described TCP/IP agency can be Telnet agency or FTP agency or TFTP agency.
When described TCP/IP agency acted on behalf of for Telnet, describedstep 2 may further include: create one and intercept the addressing point;
Described step 3 specifically can may further comprise the steps:
31) the Operation and Maintenance client is initiated the Telnet request to the TCP/IP at centralized maintenance center agency;
32) intercept the addressing point and receive this request, create a service addressing point immediately and set up Telnet with the Operation and Maintenance client and be connected; Creating client's addressing point simultaneously sets up Telnet with remote equipment and is connected;
Described step 4 specifically can may further comprise the steps:
41) the Operation and Maintenance client sends to the Telnet agency with information by the Telnet connection;
42) this information of Telnet agency's service addressing point reception is by being connected by Telnet and being transmitted to remote equipment with client's addressing that this service addressing point is created simultaneously this information of naming a person for a particular job.
Described step 5 specifically can may further comprise the steps:
51) remote equipment sends to the Telnet agency with information by the Telnet connection;
52) this information of client's addressing point of Telnet agency reception is by being connected by Telnet and being transmitted to the Operation and Maintenance client with the service addressing that this client's addressing point is created simultaneously this information of naming a person for a particular job.
Described step 32 may further include: the service addressing point that will set up is simultaneously set up one-to-one relationship and storage with client's addressing point;
Described step 42 may further include the Telnet agency according to the corresponding relation between service addressing point and client's addressing point, retrieves service addressing point corresponding client addressing point;
Described step 52 may further include the Telnet agency according to the corresponding relation between service addressing point and client's addressing point, retrieves the corresponding service addressing point of client's addressing point.
By technical scheme of the present invention as seen, the method of this Operation and Maintenance client of the present invention and remote equipment direct communication, the TCP/IP agency at the Operation and Maintenance client terminal start-up centralized maintenance center by authority is arranged, foundation connects from the virtual TCP/IP of Operation and Maintenance client to the centralized maintenance center to remote equipment, and the Operation and Maintenance client is connected directly by this virtual TCP/IP with remote equipment and communicates.
Among the present invention, the authority that starts the agency collects middle maintenance centre's unified management, well solved in the centralized maintenance contradiction with remote equipment access security and ease of use, as long as the user that authority is arranged is by Operation and Maintenance client terminal start-up TCP/IP agency, just can directly visit remote equipment, stop the agency when not needing to communicate by letter and get final product.Simultaneously, the present invention can also realize that port shifts, and a certain port is transferred to the port of user's appointment, convenient centralized management.
Description of drawings
Fig. 1 is the communication scheme between prior art BAM and BTS, the Operation and Maintenance client;
Fig. 2 is the connection diagram between the BAM of a preferred embodiment of the present invention and BTS, the Operation and Maintenance client;
Fig. 3 is connected the schematic flow sheet that communicates for setting up virtual telnet between Operation and Maintenance client embodiment illustrated in fig. 2 and the BTS.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with embodiment and accompanying drawing, the present invention is described in more detail.
The method of this Operation and Maintenance client of the present invention and remote equipment direct communication, the TCP/IP agency at the Operation and Maintenance client terminal start-up centralized maintenance center by authority is arranged, foundation connects from the virtual TCP/IP of Operation and Maintenance client to the centralized maintenance center to remote equipment, and the Operation and Maintenance client is connected directly by this virtual TCP/IP with remote equipment and communicates.
TCP/IP agency among the present invention can be Telnet agency or FTP agency or TFTP agency.
Realize that to act on behalf of the process that the Operation and Maintenance client is communicated by letter with remote equipment is that embodiment describes below by Telnet.Referring to Fig. 2, Fig. 2 is the connection diagram between the BAM of a preferred embodiment of the present invention and BTS, the Operation and Maintenance client.
Present embodiment is provided with TCP/IP agency-Telnetagency 201 in the BAM200 of centralized maintenance center.The BAM200 at centralized maintenance center can Telnet be connected to the Telnet Server of BTS as a Telnet Client, uses the default port numbers 23 of Telnet agreement.Operation andMaintenance client 230 can sign in to BAM200 by the Ethernet connection, but directly Telnet is connected to BTS220.After starting Telnetagency 201 on the BAM200, being equivalent to set up a kind of virtual Telnet between Operation andMaintenance client 230 and BTS220 is connected, like this Operation andMaintenance client 230 just directly Telnet be connected to BTS220, communicate with BTS220, realize remote maintenance and management.
Referring to Fig. 3, Fig. 3 is connected the schematic flow sheet that communicates for setting up virtual telnet between Operation and Maintenance client embodiment illustrated in fig. 2 and the BTS, and it may further comprise the steps:
Step 301, user by centralized maintenance center authentication signs in to centralized maintenance center BAM200 by the Operation and Maintenance client, start the Telnetagency 201 on the BAM, Telnetagency 201 port numbers that will set up remote equipment IP address, remote equipment are the proxy port corresponding relation of former port numbers and Operation and Maintenance client.As shown in Table 1:
| BTS IP | Former port numbers | The agent side slogan |
| 129.10.10.1 | 23 | 1001 |
Table one
Telnetagency 201 creates an addressing point (Socket) simultaneously, is called Listen Socket, is specifically designed to the Telnet connection request of intercepting Operation and Maintenance client designated port (as: 1001).
Step 302, Operation andMaintenance client 230 is carried out Telnet 10.71.11.82 1001, and (10.71.11.82 is BAM IP) is that Telnet Client initiates the Telnet request, and port numbers is 1001.
Step 303, Listen Socket receives this request, create a new Socket immediately, be called Server Socket, connect with Operation andMaintenance client 230, create a Socket simultaneously in addition, be called Client Socket, connect with the Telnet Server of BTS220, use Telnet default port numbers 23.This Server Socket is corresponding one by one with the Client Socket that sets up simultaneously, has set up two Telnet that arrive Operation andMaintenance client 230 and BAM 200 to BTS 220 with regard to BAM 200 like this and has been connected.
Step 304, when Operation andMaintenance client 230 sends information to BTS 220, earlier information is sent to Telnetagency 201, Telnetagency 201 Server Socket receives this information, and retrieve and be somebody's turn to do and the corresponding Client Socket of Server Socket, this information is transmitted to the Telnet Server of BTS 220 by this Client Socket.
Step 305, when BTS 220 sends information to Operation andMaintenance client 230, earlier information is sent to Telnetagency 201, Telnetagency 201 Client Socket receives this information, and the retrieval Server Socket corresponding with this Client Socket, by being forwarded to Operation andMaintenance client 230 with this Server Socket.
At this moment, just being equivalent to Operation andMaintenance client 230 sets up a virtual Telnet with the Telnet Server of BTS 220 and is connected, Operation andMaintenance client 230 is carried out the telnet command of BTS 220, and is in full accord with the implementation effect that directly is connected with the Telnet Server of BTS 220.
If do not wish Operation andMaintenance client 230 visit BTS 220, as long as stop the Telnet agency.
Present embodiment can be retrieved mutually according to the one-to-one relationship of Server Socket and Client Socket, realizes that setting up 220 virtual Telnet of a plurality of Operation andMaintenance clients 230 and one or more BTS by a Telnetagency 201 is connected.When a plurality of Operation andMaintenance clients 230 and 220 of BTS set up virtual Telnet and are connected, act on behalf of shown in 201 inside as Telnet among Fig. 2,201 need of a Telnet agency are set up a Listen Socket, different operating maintaincustomer end 230 is set up different Server Socket and Client Socket, an Operation andMaintenance client 230 is one to one with Server Socket and the Client Socket that BTS220 communicates use, corresponding as the ServerSocket1 among Fig. 2 with Client Socket1, their respective operations maintain customer ends 1230.When exchanges data, Telnetagency 201 can be transmitted to information Operation andMaintenance client 230 or BTS 220 accurately according to this corresponding relation.
It is similar that a plurality of Operation andMaintenance clients 230 and 220 of a plurality of remote equipment BTS set up performing step and single remote equipment that virtual telnet is connected: the TCP/IP agency who at first starts to another remote equipment BTS220, the Listen Socket that system creation is new, if there is the Operation and Maintenance client to connect BTS 220, the TCP/IP agency just creates a pair of Server Socket and Client Socket, and foundation is connected with the virtual telnet of remote equipment.
The user adopts the inventive method when the Operation and Maintenance client is visited remote equipment by the Telnet mode, only needs to specify the outer net IP at centralized maintenance center and the port numbers of user's appointment, just can realize that port shifts.For example, in above-mentioned enforcement, table one corresponds to the IP address of remote equipment and telnet port numbers 23 on the port one 001 of user's appointment.The Telnet agency sets up the Telnet virtual connections of Operation and Maintenance client to remote equipment, so just No. 23 original ports is transferred on the port one 001 of user's appointment.
The TCP/IP agency of present embodiment is the Telnet agency, can also be FTP agency or TFTP agency in actual applications, when connecting,, set upBAM 200 and be connected according to FTP or TFTP agreement regulation by FTP agency or TFTP agency to two FTP or the TFTP of Operation andMaintenance client 230 and BAM 200 to BTS 220.
By the above embodiments as seen, the method of this Operation and Maintenance client of the present invention and remote equipment direct communication, well solved in the centralized maintenance contradiction with remote equipment access security and ease of use, can also realize that port shifts simultaneously, convenient centralized management.