Background technology
Gateway (Gateway) claim again gateway, protocol converter.Gateway to realize network interconnection, is the most complicated network interconnection apparatus, network interconnection on transport layer, only is used for two network interconnections that upper-layer protocol is different.Gateway both can be used for the wide area network interconnection, also can be used for local area network interconnection.Gateway is a kind of computer system or equipment of changing important task that serves as, and using different communication protocol, data format or language, even between the diverse two kinds of systems of architecture, gateway is a translater.Just convey a message simply differently from bridge, gateway will be repacked the information of receiving, with the demand of adaptation to end system.Simultaneously, gateway also can provide and filter and safety function, and most of gateways operate in the top layer of OSI 7 layer protocols--application layer.
Yet, communicating by letter not by gateway device between existing all multi-client equipments and the server apparatus, but both direct communications, for example, communicating by letter etc. between set-top box and the server apparatus, thus, in case paralyse with the server apparatus of client device communication connection, then client just can't be obtained information needed by this server apparatus.And along with the development of network technology; usually having a large amount of client devices occurs in the situation that synchronization logs in same server apparatus; especially when the generation such as a certain critical event or when watching the high TV play of a certain audience ratings etc., cause so very easily the associated server paralysis.And if adopt the mode of multiple servers, then service end is difficult to that again image data is effectively added up etc.
Therefore, how to address the above problem, become the technical task that those skilled in the art need to be resolved hurrily.
The utility model content
The shortcoming of prior art in view of the above, the purpose of this utility model is to provide a kind of described RTSP gateway device, in order to realize the data acquisition of client device and strengthen fault-tolerance.
Reach for achieving the above object other relevant purposes, the utility model provides a kind of RTSP gateway device, it is arranged in the network that comprises at least one client device and at least one server apparatus, and is connected with described at least one client device and described at least one server apparatus.
Preferably, described server apparatus comprises the server apparatus that video information is provided.
Preferably, described RTSP gateway device is the gateway device based on Apache.
Preferably, described RTSP gateway device adopts the reverse proxy technology to be connected with a plurality of client devices.
As mentioned above, RTSP gateway device of the present utility model has following beneficial effect: have processing, act on behalf of the major function of RTSP agreement, and can realize the function such as Information Statistics, charging of client device; In addition, utilize the similarity of RTSP agreement and http protocol, adopt the framework of Apache, can stably process large concurrent situation.
Embodiment
Below by particular specific embodiment execution mode of the present utility model is described, person skilled in the art scholar can understand other advantages of the present utility model and effect easily by the disclosed content of this specification.
See also Fig. 1 to Fig. 2.Notice, the appended graphic structure that illustrates of this specification, ratio, size etc., equal contents in order to cooperate specification to disclose only, understand and reading for person skilled in the art scholar, be not to limit the enforceable qualifications of the utility model, so technical essential meaning of tool not, the adjustment of the modification of any structure, the change of proportionate relationship or size, do not affecting under the effect that the utility model can produce and the purpose that can reach, all should still drop on the technology contents that the utility model discloses and get in the scope that can contain.Simultaneously, quote in this specification as " on ", D score, " left side ", " right side ", " centre " reach the term of " " etc., also only for ease of understanding of narrating, but not in order to limit the enforceable scope of the utility model, the change of its relativeness or adjustment, under without essence change technology contents, when also being considered as the enforceable category of the utility model.
The utility model provides a kind of RTSP gateway device.Described RTSPgateway device 2 is arranged in the network that comprises at least one client device and at least one server apparatus, and is connected with described at least one client device and described at least one server apparatus.
Wherein, described client device comprises any equipment that can accept service, preferably, includes but not limited to: personal computer, set-top box etc.; Described server apparatus comprises any equipment that service can be provided, and preferably, includes but not limited to: the server apparatus of video information etc. is provided.
As shown in Figure 1, described RTSPgateway device 2 is arranged in the network that comprises a plurality ofclient devices 1 and a plurality ofserver apparatus 3, and is connected with described a plurality ofclient devices 1 and described a plurality ofserver apparatus 3.
Preferably, described RTSPgateway device 2 is the gateway device based on Apache, that is: described RTSPgateway device 2 is developed the equipment of formation for the framework that adopts this web server of Apache, and it has cross-platform characteristic.
Preferably, described RTSPgateway device 2 adopts the reverse proxy technology to be connected with a plurality of client devices 1.Wherein, those skilled in the art should understand described reverse proxy technology, so no longer described in detail at this.
When aclient device 1 need to obtain service byserver apparatus 3,2 RTSP messages ofprocessing client device 1 orserver apparatus 3 of described RTSP gateway device, other then directly or otherwise makeserver apparatus 3 andequipment 1 mutual such as messages such as RTP, as shown in Figure 2.
The specific works process of describedRTSP gateway device 2 is as follows:
Described RTSPgateway device 2 receives the RTSP message fromclient device 1, then attempt linkedserver equipment 3, if what link success andclient device 1 sent is not the SETUP request, then directly with this message repeating inserver apparatus 3, if SETUP request, then increase or modification destination field at head, its value tax is the address ofclient device 1, then be transmitted to aserver apparatus 3; If link the unsuccessful or success of aserver apparatus 3 but thisserver apparatus 3 returns after mutual state is 404 or 5XX, then attempt thenext server apparatus 3 of link, until success.If Servers-allequipment 3 is abnormal state all, then according to circumstances return 404 or 5XX toclient device 1.
In sum, RTSP gateway device of the present utility model utilizes the technology of reverse proxy, multiple servers is disposed at the rear end of self, thus, if station server equipment paralysis, other server apparatus still can be for client device provides service, thus, even if part server equipment goes wrong, can not bring impact to client device yet; Secondly, for all client devices, only need to know the address of RTSP gateway device of the present utility model, not only be convenient to management, owing to only have an entrance, also make things convenient for the statistics client device information.In addition, utilized the framework of Apache, the utility model just has more stable performance; Be convenient to simultaneously gather the data of client device, be beneficial to management.So the utility model has effectively overcome various shortcoming of the prior art and the tool high industrial utilization.
Above-described embodiment is illustrative principle of the present utility model and effect thereof only, but not is used for restriction the utility model.Any person skilled in the art scholar all can be under spirit of the present utility model and category, and above-described embodiment is modified or changed.Therefore, have in the technical field under such as and know that usually the knowledgeable modifies or changes not breaking away from all equivalences of finishing under spirit that the utility model discloses and the technological thought, must be contained by claim of the present utility model.