Disclosure of Invention
The invention mainly aims to overcome the problem of low port connection efficiency, provides a full-connection port scanning method of a satellite measurement and control station control system, a scanner, electronic equipment and a computer readable medium, realizes the scanning of multiple IP parallel protocols and improves the satellite measurement and control efficiency.
In order to achieve the above object, a first aspect of the present invention provides a full connection port scanning method for a satellite measurement and control station control system, where the satellite measurement and control station control system includes multiple servers and multiple ground station management subsystems, and the servers and the ground station management subsystems are connected through TCP interfaces and/or UDP interfaces, and the method includes the following steps:
the method for connecting each ground station management subsystem with each service end respectively comprises the following steps: judging whether a TCP interface connection is needed between the ground station management subsystem and the server side, and if the TCP interface connection is needed, connecting in a monitoring mode; otherwise no connection needs to be established.
According to an example embodiment of the present invention, the ground station management subsystem comprises an antenna servo feed management subsystem and a baseband management subsystem; the server side comprises a display control subsystem, a data transmission subsystem, a user management subsystem, a fault diagnosis subsystem and a database.
According to an example embodiment of the present invention, the ground station management subsystem is connected to the server side through the data management subsystem; the ground station management subsystem is connected with the data management subsystem by a UDP interface; the data management subsystem is connected with the fault diagnosis subsystem and the data transmission subsystem by a UDP interface; the data management subsystem is connected with the display control subsystem, the user management subsystem and the database by adopting a TCP interface.
According to an exemplary embodiment of the present invention, the method for respectively connecting each ground station management subsystem with each server includes:
receiving and responding information of a ground station management subsystem and a service end which need to be connected;
creating a timer;
starting the actuator after the timer reaches the starting time;
and the executors sequentially and respectively execute the connection between the ground station management subsystem and the service end.
According to an exemplary embodiment of the present invention, the method for performing connection in a listening manner includes:
the server side and the ground station management subsystem establish connection and bind a measurement and control task ground standard transmission protocol;
binding and monitoring an IP by a server;
the ground station management subsystem calls a connection function to establish connection with the server;
the ground station management subsystem transmits an IP and a port number to the server;
and the server binds the IP and the port number and sends a request and a receiving response to the ground station management subsystem.
According to an example embodiment of the present invention, the measurement and control task ground standard transmission protocol includes: version, satellite identification, source address, information category, packet sequence number, transmission date, transmission time mark and data field length.
As a second aspect of the present invention, a fully connected port scanner of a satellite measurement and control station control system is provided, including an executor, where the executor is used to connect each ground station management subsystem with each service end, and a method for connecting one ground station management subsystem with one service end includes: judging whether a TCP interface connection is needed between the ground station management subsystem and the server side, and if the TCP interface connection is needed, connecting in a monitoring mode; otherwise no connection needs to be established.
According to an example embodiment of the present invention, the scanner further comprises a scheduler, which is configured to receive and respond to the information of the ground station management subsystem and the service end that need to be connected, create a timer, and start the executor.
As a third aspect of the present invention, the present invention provides a satellite measurement and control station control system, including:
the system comprises a full-connection port scanner, a plurality of service terminals and a plurality of ground station management subsystems;
and the full-connection port scanner is used for connecting each ground station management subsystem with each service terminal.
As a fourth aspect of the present invention, the present invention provides an electronic apparatus comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method.
As a fifth aspect of the invention, the invention provides a computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method.
The method has the advantages that the method can realize the parallel multi-protocol scanning of a plurality of IPs of the control system of the satellite measurement and control station, and improve the efficiency of measurement and control tasks.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another. Thus, a first component discussed below may be termed a second component without departing from the teachings of the present concepts. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
It will be appreciated by those skilled in the art that the drawings are merely schematic representations of exemplary embodiments, and that the blocks or processes shown in the drawings are not necessarily required to practice the present application and are, therefore, not intended to limit the scope of the present application.
According to a first embodiment of the present invention, the present invention provides a full connection port scanner of a satellite measurement and control station control system, which includes an actuator and a scheduler.
The method that the executor is used for respectively connecting each ground station management subsystem with each service terminal and connecting one ground station management subsystem with one service terminal comprises the following steps: judging whether a TCP interface is needed between the ground station management subsystem and the server side, and if the TCP interface is needed to be connected, connecting in a monitoring mode; otherwise no connection needs to be established.
The scheduler is used for receiving and responding to the information of the ground station management subsystem and the service end which need to be connected, creating a timer and starting the actuator.
According to a second specific embodiment of the present invention, the present invention provides a satellite measurement and control station control system, which includes the full connection port scanner, multiple service terminals, multiple ground station management subsystems, and a data management subsystem of the first embodiment.
The client management system comprises a ground station real object and a ground station management system. The ground station entity comprises an antenna, a base band, a rotary table and the like. The ground station management system comprises a ground station management subsystem which is used for being in communication connection with a ground station real object, receiving data of the ground station real object and controlling operation of the ground station real object.
As shown in fig. 1, the satellite measurement and control station control system includes a plurality of service terminals and a plurality of ground station management subsystems, and further includes a full connection port scanner not shown in the figure. And the full-connection port scanner is used for connecting each ground station management subsystem with each service terminal. The server side and the ground station management subsystem are connected through a TCP interface and/or a UDP interface.
The ground station management subsystem comprises a space servo feed management subsystem and a baseband management subsystem; the server side comprises a display control subsystem, a data transmission subsystem, a user management subsystem and a fault diagnosis subsystem. The subsystems included in the service end do not intercommunicate.
The antenna servo feed management subsystem is used for controlling the antenna.
The baseband management subsystem is used for managing the baseband.
And the display control subsystem is used for the user to perform operation feedback display on the page.
The data transmission subsystem is used for direct data transmission of the subsystem.
The user management subsystem is used for managing users and the authority of the users.
And the fault diagnosis subsystem is used for judging faults by using the data information.
The data management subsystem is used as a transfer station for data transmission and is used for all data management and storage.
The ground station management subsystem is connected with the server side through the data management subsystem.
The ground station management subsystem is connected with the data management subsystem by a UDP interface.
The data management subsystem is connected with the fault diagnosis subsystem and the data transmission subsystem by adopting a UDP interface.
The data management subsystem is connected with the display control subsystem, the user management subsystem and the database by adopting a TCP interface.
The ground station management subsystem is connected with the server side, a UDP interface is firstly adopted to be connected with the data management subsystem, and then the data management subsystem is connected with the server side through a UDP interface or a TCP interface. If the data management subsystem is connected with the server through the TCP interface, a one-to-one connection relationship between the ground station management subsystem and the server needs to be established.
The satellite measurement and control station control system also comprises a data scheduler, wherein the data scheduler is used for generating a Main function, the Main function is used for distributing the service according to the four cut service information, and after the distribution is completed, the function for displaying the result generates a result after calling a specific scanning program and displays the result on a page of the display operation subsystem.
According to a third specific embodiment of the invention, the invention provides a full connection port scanning method of a satellite measurement and control station control system.
A plurality of satellite measurement and control stations are distributed all over the country, and each satellite measurement and control station comprises a client management system.
The client management system comprises a ground station real object and a ground station management system. The ground station includes antenna, base band, turntable, etc. The ground station management system comprises a ground station management subsystem which is used for being in communication connection with a ground station real object, receiving data of the ground station real object and controlling operation of the ground station real object.
As shown in fig. 1, the satellite measurement and control station control system includes a plurality of service terminals and a plurality of ground station management subsystems, and the service terminals and the ground station management subsystems are connected through TCP interfaces and/or UDP interfaces.
The ground station management subsystem comprises a space servo feed management subsystem and a baseband management subsystem; the server side comprises a display control subsystem, a data transmission subsystem, a user management subsystem and a fault diagnosis subsystem. Subsystems included in the server side are not communicated with each other.
The antenna servo feed management subsystem is used for controlling the antenna.
The baseband management subsystem is used for managing the baseband.
And the display control subsystem is used for the user to perform operation feedback display on the page.
The data transmission subsystem is used for direct data transmission of the subsystem.
The user management subsystem is used for managing users and the authority thereof.
And the fault diagnosis subsystem is used for judging faults by using the data information.
The data management subsystem is used as a transfer station for data transmission and is used for all data management and storage.
The ground station management subsystem is connected with the server side through the data management subsystem.
The ground station management subsystem is connected with the data management subsystem by a UDP interface.
The data management subsystem is connected with the fault diagnosis subsystem and the data transmission subsystem by adopting a UDP interface.
The data management subsystem is connected with the display control subsystem, the user management subsystem and the database by adopting a TCP interface.
The ground station management subsystem is connected with the server side, a UDP interface is firstly adopted to be connected with the data management subsystem, and then the data management subsystem is connected with the server side through a UDP interface or a TCP interface. If the data management subsystem is connected with the server through the TCP interface, the data management subsystem indicates that the ground station management subsystem needs to be connected with the server through the TCP interface, and a one-to-one connection relation between the ground station management subsystem and the server through a TCP protocol needs to be established.
As shown in fig. 1, the antenna servo management subsystem and the baseband management subsystem are both connected to other systems through the data management subsystem, and all data interaction is realized through the connection of the data management subsystem. The principle of port scanning between the ground station management subsystem and the service end is that a connection function is called to be connected to a specific port of a target IP, if the connection is successful, the port is open, and if the connection is failed, the port is not open.
The scanning method comprises the following steps:
the method for connecting each ground station management subsystem with each service end respectively comprises the following steps: judging whether a TCP interface connection is needed between the ground station management subsystem and the server side, and if the TCP interface connection is needed, connecting in a monitoring mode; otherwise no connection needs to be established.
As shown in table 1, there are two connection modes between the ground station management subsystem, the data management subsystem and the server, one is connection using a TCP interface, and the other is connection using a UDP interface.
The ground station management subsystem is connected with the server side, a UDP interface is firstly adopted to be connected with the data management subsystem, and then the data management subsystem is connected with the server side through a UDP interface or a TCP interface. If the data management subsystem is connected with the server through the TCP interface, the data management subsystem indicates that the ground station management subsystem needs to be connected with the server through the TCP interface, and a one-to-one connection relation between the ground station management subsystem and the server through a TCP protocol needs to be established.
TCP (Transmission Control Protocol) is a connection-oriented Protocol, that is, a reliable connection must be established with the other party before data is transmitted and received.
UDP is a non-connected protocol where the source and terminal do not establish a connection before transmitting data, and when it wants to transmit it simply grabs the data from the application and throws it on the network as soon as possible. At the sending end, the speed of data transmission by UDP is limited only by the speed of data generation by the application program, the capability of the computer and the transmission bandwidth; at the receiving end, UDP places each message segment in a queue, from which the application reads one message segment at a time.
In the field of satellite measurement and control, generally, non-service data adopts TCP connection, and non-service data adopts UDP connection.
The UDP interface does not need to establish connection between the ground station management subsystem and the server side, and only needs to establish connection when processing a TCP protocol. The connection scheduling of the ground station management subsystem and the service end is carried out according to different protocols, and the port scanning of the full connection of the satellite measurement and control station control system can be realized.
TABLE 1
As shown in fig. 2, the method for respectively connecting each ground station management subsystem with each server includes:
adding, deleting or modifying new tasks by the network, and adjusting information of a ground station management subsystem and a server side which need to be connected;
the dispatcher receives and responds to information of a ground station management subsystem and a server side which need to be connected;
the scheduler creates a timer according to the defined time;
starting the actuator after the timer reaches the starting time;
the actuators respectively execute the connection between the ground station management subsystem and the server side in sequence, and the executed process is communicated with the network through the websocket;
and the executor informs the scheduler after the execution is completed.
In the connection process, the TCP interface is connected by using a monitoring method, as shown in fig. 3, the method for connecting by using a monitoring method includes:
the server side and the ground station management subsystem establish connection and bind a measurement and control task ground standard transmission protocol; specifically, the server side uses a protocol function to establish a network socket, and the ground station management subsystem uses the protocol function to establish the network socket;
binding and monitoring an IP by a server; specifically, the server uses a binding function to bind a specified IP and a specified port for the network socket, and the server uses a monitoring function to monitor the request of the ground station management subsystem for binding the IP and the specified port;
the ground station management subsystem calls a connection function to establish connection with the server; specifically, the ground station management subsystem calls a connection function, transmits an IP and a port number, and establishes connection with a network program of a designated server;
the ground station management subsystem transmits an IP and a port number to the server side, and sends a connection request corresponding to the receiving;
the server binds an IP and a port number, and sends a request and a receiving response to the ground station management subsystem; specifically, if the server receives the request and successfully establishes the connection through three-way handshake, the server receives and processes the connection by using an acceptance function, reads request data sent by the ground station management subsystem from the established connection through a reading function, and sends response data to the ground station management subsystem through a writing response function after processing; meanwhile, after the connection is successfully established, the ground station management subsystem sends data to the server through the write-in request function and receives a response from the server through the read function.
The measurement and control task ground standard transmission protocol is shown in table 2.
TABLE 2
The measurement and control task ground standard transmission protocol totally has 32 bytes, and comprises the following steps: version, satellite identification, source address, information category, packet sequence number, transmission date, transmission time mark and data field length.
The specifications of the measurement and control task terrestrial standard transmission protocol are shown in table 3.
TABLE 3
The IP is a character string which represents the type of transmitted telemetering data, the transmission time, the telemetering transmission link, the station control category, the basic information and the sequential coding.
As shown in fig. 4, the format of the IP is aaabcddh, where AAA represents the type of telemetry data (data class), AAA has data of 000, 001, 002, 003, or 004, 000 represents extrusion data, 001 represents telemetry data, 002 represents telemetry data, 003 represents external measurement/orbit data, and 004 represents station control data. B represents the transmission opportunity, the data of B is 0 or 6,0 represents the real-time transmission, and 6 represents the playback transmission. C represents a telemetering transmission link, a station control category or basic information, when the telemetering transmission link is represented, the data of C is 1 or 2,1 represents a measurement and control link, 2 represents a data transmission link, and C is distinguished to represent one of the telemetering transmission link, the station control category and the basic information according to different data sources; when the station control type is represented, the data of C is 1 or 2,1 represents the equipment state, and 2 represents the station control command; when the basic information is indicated, the data of C is 1, indicating the link monitoring. DDD represents real-time telemetry sequence encoding.
The method for binding the IP comprises the following steps: and slicing the IP, acquiring the sliced service information, and performing resource isolation on the transmitted data.
For example, IP is: 00162002H, cutting the parts A, B, C and D apart, wherein the service information of the IP is telemetering data, playback data, a data transmission link and a real-time telemetering sequence, and resource isolation is carried out according to the service information. The method for binding IP is equivalent to an optimized application method for SLICE ID, and four service messages are cut out after slicing is completed.
And after the binding is finished, the server generates a corresponding Main function, and a plan with a code scanning task in the corresponding Main function is used for distributing the service according to the four cut service information.
After the connection is successful, a full-connection port scanner of the control system of the satellite measurement and control station generates a Main function, the Main function is matched with a corresponding Main function generated by a server side to distribute services according to the four cut service information, and after the distribution is completed, a function for displaying results generates results after a specific scanning program is called and displays the results on a page of a display operation subsystem.
The method provided by the invention can realize the scanning of a plurality of IP parallel protocols (including not only TCP and UDP protocols but also MQ and Beidou protocols) of the satellite measurement and control station control system, and improve the measurement and control task efficiency.
According to a fourth embodiment of the present invention, there is provided an electronic device, as shown in fig. 5, and fig. 5 is a block diagram of an electronic device according to an exemplary embodiment.
An electronic device 800 according to this embodiment of the application is described below with reference to fig. 5. The electronic device 800 shown in fig. 5 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 5, the electronic device 800 is in the form of a general purpose computing device. The components of the electronic device 800 may include, but are not limited to: at least one processing unit 810, at least one memory unit 820, a bus 830 connecting the various system components (including the memory unit 820 and the processing unit 810), a display unit 840, and the like.
Wherein the storage unit stores program code that can be executed by the processing unit 810, such that the processing unit 810 performs the steps according to various exemplary embodiments of the present application described in the present specification. For example, the processing unit 810 may perform the steps shown in the third embodiment.
The memory unit 820 may include readable media in the form of volatile memory units such as a random access memory unit (RAM) 8201 and/or a cache memory unit 8202, and may further include a read only memory unit (ROM) 8203.
The memory unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 830 may be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 800 can also communicate with one or more external devices 800' (e.g., keyboard, pointing device, bluetooth device, etc.) such that a user can communicate with the devices with which the electronic device 800 interacts, and/or any device (e.g., router, modem, etc.) with which the electronic device 800 can communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 850. Also, the electronic device 800 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 860. The network adapter 860 may communicate with other modules of the electronic device 800 via the bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, and may also be implemented by software in combination with necessary hardware.
Thus, according to a fifth embodiment of the present invention, there is provided a computer readable medium. As shown in fig. 6, the technical solution according to the embodiment of the present invention may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above method according to the embodiment of the present invention.
The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The above-mentioned computer-readable medium carries one or more programs which, when executed by one of the apparatuses, cause the computer-readable medium to implement the functions of the third embodiment.
Those skilled in the art will appreciate that the modules described above may be distributed in the apparatus according to the description of the embodiments, or may be modified accordingly in one or more apparatuses unique from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
Exemplary embodiments of the present invention are specifically illustrated and described above. It is to be understood that the invention is not limited to the precise construction, arrangements, or instrumentalities described herein; on the contrary, the invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.