Disclosure of Invention
An object of the embodiments of the present application is to provide an improved information transmission method, apparatus and system, so as to solve the technical problems mentioned in the background section above.
In a first aspect, an embodiment of the present application provides an information transmission method for a monitoring server, where the monitoring server is respectively communicatively connected to a client and a video server located in each of a plurality of warehouses, and the method includes, in response to receiving a video acquisition request sent by the client and including a warehouse identifier, querying current network data and preset network data of a target warehouse with the warehouse indicated by the warehouse identifier as the target warehouse, determining whether the current network of the target warehouse supports video transmission based on a comparison between the current network data and the preset network data, in response to determining that the current network of the target warehouse supports video transmission, sending a video acquisition request to the video server located in the target warehouse, and sending a video returned by the video server located in the target warehouse to the client.
In some embodiments, the current network data comprises a current network delay rate and a current packet loss rate, the preset network data comprises a preset network delay rate and a preset packet loss rate, and determining whether the current network of the target warehouse supports video transmission based on a comparison of the current network data and the preset network data comprises determining that the current network of the target warehouse does not support video transmission in response to determining that the current network delay rate is greater than the preset network delay rate or the current packet loss rate is greater than the preset packet loss rate.
In some embodiments, the current network data further comprises a current bandwidth usage percentage and a current concurrency request number, the preset network data further comprises a preset correspondence table of bandwidth usage percentages and concurrency request thresholds, and the determining whether the current network of the target warehouse supports video transmission based on comparison of the current network data and the preset network data further comprises determining a concurrency request threshold corresponding to the current bandwidth usage percentage from the correspondence table in response to determining that the current network delay rate is not greater than the preset network delay rate and the current packet loss rate is not greater than the preset packet loss rate, and determining that the current network of the target warehouse does not support video transmission in response to determining that the current concurrency request number is greater than the determined concurrency request threshold.
In some embodiments, determining whether the current network of the target repository supports video transmission based on a comparison of the current network data and the preset network data further includes determining that the current network of the target repository supports video transmission in response to determining that the current number of concurrent requests is not greater than the determined concurrent request threshold.
In some embodiments, the method further comprises, in response to determining that the current network of the target warehouse does not support video transmission, sending a hint information to the client that characterizes the current network congestion.
In a second aspect, an embodiment of the present application provides an information transmission apparatus for a monitoring server, where the monitoring server is communicatively connected to a client and a video server located in each of a plurality of warehouses, respectively, the apparatus includes a query unit configured to query, in response to receiving a video acquisition request sent by the client and including a warehouse identifier, a warehouse indicated by the warehouse identifier as a target warehouse, current network data and preset network data of the target warehouse, a determination unit configured to determine whether the current network of the target warehouse supports video transmission based on a comparison of the current network data and the preset network data, a first sending unit configured to send, in response to determining that the current network of the target warehouse supports video transmission, a video acquisition request to a video server located in the target warehouse, and a second sending unit configured to send, to the client, a video returned by the video server located in the target warehouse.
In some embodiments, the current network data comprises a current network delay rate and a current packet loss rate, the preset network data comprises a preset network delay rate and a preset packet loss rate, and the determining unit is further configured to determine that the current network of the target repository does not support video transmission in response to determining that the current network delay rate is greater than the preset network delay rate or the current packet loss rate is greater than the preset packet loss rate.
In some embodiments, the current network data further comprises a current bandwidth usage percentage and a current number of concurrent requests, the preset network data further comprises a preset correspondence table of bandwidth usage percentages and concurrent request thresholds, and the determining unit is further configured to determine, from the correspondence table, a concurrent request threshold corresponding to the current bandwidth usage percentage in response to determining that the current number of concurrent requests is greater than the determined concurrent request threshold, in response to determining that the current network of the target warehouse does not support video transmission, the current network delay rate is not greater than the preset network delay rate and the current packet loss rate is not greater than the preset packet loss rate.
In some embodiments, the determining unit is further configured to determine that the current network of the target repository supports video transmission in response to determining that the current number of concurrent requests is not greater than the determined concurrent request threshold.
In some embodiments, the apparatus further comprises a third sending unit configured to send, to the client, prompt information for characterizing current network congestion in response to determining that the current network of the target warehouse does not support video transmission.
In a third aspect, the embodiment of the application provides an information transmission system, which comprises a client, a monitoring server and a video server located in each warehouse of a plurality of warehouses, wherein the monitoring server is used for responding to a video acquisition request which is sent by the client and contains a warehouse identifier, taking the warehouse indicated by the warehouse identifier as a target warehouse, inquiring current network data and preset network data of the target warehouse, determining whether the current network of the target warehouse supports video transmission or not based on comparison of the current network data and the preset network data, if so, sending the video acquisition request to the video server located in the target warehouse, and sending a video returned by the video server located in the target warehouse to the client.
In some embodiments, the current network data comprises a current network delay rate and a current packet loss rate, the preset network data comprises a preset network delay rate and a preset packet loss rate, and the monitoring server is further configured to determine that the current network of the target warehouse does not support video transmission in response to determining that the current network delay rate is greater than the preset network delay rate or the current packet loss rate is greater than the preset packet loss rate.
In some embodiments, the current network data further comprises a current bandwidth usage percentage and a current number of concurrent requests, the preset network data further comprises a preset correspondence table of bandwidth usage percentages and concurrent request thresholds, and the monitoring server is further configured to determine, from the correspondence table, a concurrent request threshold corresponding to the current bandwidth usage percentage in response to determining that the current number of concurrent requests is greater than the determined concurrent request threshold, in response to determining that the current network of the target warehouse does not support video transmission, in response to determining that the current network delay rate is not greater than the preset network delay rate and the current packet loss rate is not greater than the preset packet loss rate.
In some embodiments, the monitoring server is further configured to determine that the current network of the target repository supports video transmission in response to determining that the current number of concurrent requests is not greater than the determined concurrent request threshold.
In some embodiments, the monitoring server is further configured to send a hint information to the client for characterizing current network congestion in response to determining that the current network of the target repository does not support video transmission.
In some embodiments, the information transmission system further comprises a network probe server and a warehouse terminal of each warehouse, wherein the network probe server is used for periodically sending network probe requests to the warehouse terminals of the warehouses, the warehouse terminal of each warehouse is used for determining whether the received network probe requests are target probe requests, if so, executing commands indicated by the received target probe requests and returning execution results to the network probe server, and if not, sending data query requests to routers or switches installed in the warehouses and sending data returned by the routers or the switches to the network probe server. And the network detection server is also used for storing the execution result and the data returned by each warehouse terminal into a cache.
In a fourth aspect, embodiments of the present application provide a server including one or more processors, and a storage device for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement a method as in any of the embodiments of the information transmission method.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method as in any of the embodiments of the information transmission method.
According to the information transmission method, device and system provided by the embodiment of the application, after receiving the video acquisition request which is sent by the client and contains the warehouse identifier, the monitoring server inquires the current network data and the preset network data of the warehouse indicated by the target warehouse identifier, then determines whether the current network of the target warehouse supports video transmission or not based on the comparison of the current network data and the preset network data, then sends the video acquisition request to the video server in response to the determination that the current network of the target warehouse supports video transmission, and finally sends the video returned by the video server to the client, so that the video transmission and access of the warehouse can be dynamically controlled based on the current network condition of the warehouse, the video flow is ensured not to influence the normal service, and the flexibility of data interaction is improved.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the present application are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Fig. 1 shows an exemplary system architecture 100 to which the information transmission method or information transmission apparatus of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, networks 104, 106, a monitoring server 105, and video servers 107, 108, 109. The network 104 is a medium for providing a communication link between the terminal devices 101, 102, 103 and the monitoring server 105, and the network 106 is a medium for providing a communication link between the monitoring server 105 and the video servers 107, 108, 109. The networks 104, 106 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as a video play class application, an instant messaging tool, an e-commerce management class application, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The monitoring server 105 may analyze data such as video acquisition requests sent by the terminal devices 101, 102, 103, analyze network conditions of the warehouse to determine whether the network of the warehouse supports video transmission, and interact with the video servers 107, 108, 109 via the network 106 to perform data transmission.
The video servers 107, 108, 109 may be deployed in a room of the warehouse, and the video servers 107, 108, 109 may acquire real-time production video of the warehouse and store it for the monitoring server to acquire the video.
It should be noted that, the information transmission method provided in the embodiment of the present application is generally executed by the monitoring server 105, and accordingly, the information transmission device is generally disposed in the monitoring server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, monitoring servers, and video servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for information transfer for a monitoring server in accordance with the present application is shown. The monitoring server is respectively in communication connection with the client and the video server of each warehouse in the plurality of warehouses, and the information transmission method comprises the following steps:
In step 201, in response to receiving a video acquisition request including a warehouse identifier sent by a client, the warehouse indicated by the warehouse identifier is used as a target warehouse, and current network data and preset network data of the target warehouse are queried.
In this embodiment, the electronic device (for example, the monitoring server 105 shown in fig. 1) on which the information transmission method is executed may query, in response to receiving a video acquisition request including a repository identifier sent by a client (for example, the terminal devices 101, 102, 103 shown in fig. 1), the current network data and the preset network data of the target repository by using the repository indicated by the repository identifier as the target repository. The warehouse identifier may be a character string composed of various characters (e.g., numerals, letters, symbols, etc.) for indicating and distinguishing the warehouse. It should be noted that the current network data may be various data for characterizing the current network situation of the target repository, and the current network data may include, by way of example, a current network bandwidth, an uplink traffic, a downlink traffic, a network delay duration, and the like. It should be noted that the preset network data may include various network configuration information (such as total bandwidth and the like) of the target warehouse and various thresholds (such as a network bandwidth threshold, a network delay rate threshold, a packet loss rate threshold and the like) preset by a technician.
Step 202, determining whether the current network of the target warehouse supports video transmission based on the comparison of the current network data and the preset network data.
In this embodiment, the electronic device may determine whether the current network of the target repository supports video transmission based on a comparison of the current network data and preset network data. Specifically, the electronic device may determine whether the current network of the target repository supports transmission based on a comparison of one or more data included in the current network data with corresponding one or more data in the preset network data. As an example, the current network of the repository may be determined not to support video transmission in response to determining that the current network bandwidth included in the current network data is less than the network bandwidth threshold included in the preset network data, and the current network of the repository may be determined to support video transmission in response to determining that the current network bandwidth included in the current network data is not less than the network bandwidth threshold included in the preset network data.
In response to determining that the current network of the target repository supports video transmission, a video acquisition request is sent to a video server located at the target repository, step 203.
In this embodiment, in response to determining that the current network of the target warehouse supports video transmission, the electronic device may send the video acquisition request to a video server located in the target warehouse through a wired connection manner or a wireless connection manner. It should be noted that the wireless connection may include, but is not limited to, 3G/4G connection, wiFi connection, bluetooth connection, wiMAX connection, zigbee connection, UWB (ultra wideband) connection, and other now known or later developed wireless connection.
Step 204, the video returned by the video server in the target warehouse is sent to the client.
In this embodiment, after the electronic device sends the video acquisition request to the video server located in the target repository, the electronic device may receive a video returned by the video server and send the video to the client.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the information transmission method according to the present embodiment. In the application scenario of fig. 3, first, a user sends a video acquisition request 303 containing a repository identification to a monitoring server 302 using a client 301. Then, the monitoring server 302 uses the warehouse indicated by the warehouse identifier as a target warehouse, queries the current network data and preset network data of the target warehouse, and determines whether the current network of the target warehouse supports video transmission based on the comparison of the current network data and the preset network data. In response to determining that the current network of the target repository supports video transmission, the video acquisition request 303 is sent to a video server 304 located at the target repository. Thereafter, video server 304 returns video 305 to monitoring server 302. Finally, the monitoring server 302 returns the video 305 to the client 301.
According to the method provided by the embodiment of the application, after the video acquisition request which is sent by the client and contains the warehouse identifier is received, the current network data and the preset network data of the warehouse indicated by the target warehouse identifier are inquired, whether the current network of the target warehouse supports video transmission or not is determined based on the comparison of the current network data and the preset network data, the video acquisition request is sent to the corresponding video server in response to the determination that the current network of the target warehouse supports video transmission, and finally the video returned by the video server is sent to the client, so that the video transmission and access of the warehouse can be dynamically controlled based on the current network condition of the warehouse, the video flow is ensured not to influence the normal service, and the flexibility of data interaction is improved.
With further reference to fig. 4, a flow 400 of yet another embodiment of a method of information transmission is shown. The flow 400 of the information transmission method includes the following steps:
In step 401, in response to receiving a video acquisition request sent by a client and containing a warehouse identifier, the warehouse indicated by the warehouse identifier is used as a target warehouse, and the current network data and the preset network data of the target warehouse are queried.
In this embodiment, the electronic device (for example, the monitoring server 105 shown in fig. 1) on which the information transmission method is executed may query, in response to receiving a video acquisition request including a repository identifier sent by a client (for example, the terminal devices 101, 102, 103 shown in fig. 1), the current network data and the preset network data of the target repository by using the repository indicated by the repository identifier as the target repository.
It should be noted that, the current network data may include a current network delay rate and a current packet loss rate, and the preset network data may include a preset network delay rate and a preset packet loss rate. Here, the current network delay rate may be a ratio of a network delay duration in a period from a certain time to a current time to a total duration of the period. The current packet loss rate may be a ratio of the number of lost packets to the transmitted data set in the period. The preset network delay rate and the preset packet loss rate may be preset values by a technician based on a large amount of data statistics.
It should be noted that, the current network data may further include a current bandwidth usage percentage and a current concurrency request number, and the preset network data may further include a preset correspondence table between bandwidth usage percentages and concurrency request thresholds. Here, the current bandwidth usage percentage may be a ratio of a current bandwidth of the network of the target repository to a total bandwidth of the network of the target repository. The current number of concurrent requests may be a total number of video acquisition requests that are received by the electronic device and that contain a repository identification of the target repository and that are not returned to the client video data. In practice, the current concurrency request number may be increased by 1 when the electronic device receives a video acquisition request containing the warehouse identifier of the target warehouse once, and the current concurrency request number may be decreased by 1 when the electronic device returns a video indicated by the video acquisition request containing the warehouse identifier of the target warehouse to the client.
In step 402, in response to determining that the current network delay rate is greater than the preset network delay rate or the current packet loss rate is greater than the preset packet loss rate, it is determined that the current network of the target warehouse does not support video transmission.
In this embodiment, the electronic device may determine whether the current network delay rate is greater than the preset network delay rate, and determine whether the current packet loss rate is greater than the preset packet loss rate. In response to determining that the current network delay rate is greater than the preset network delay rate or the current packet loss rate is greater than the preset packet loss rate, it may be determined that the current network of the target repository does not support video transmission, after which step 405 may be performed. Step 403 may be performed in response to determining that the current network delay rate is not greater than the preset network delay rate and the current packet loss rate is not greater than the preset packet loss rate.
Step 403, in response to determining that the current network delay rate is not greater than the preset network delay rate and the current packet loss rate is not greater than the preset packet loss rate, determining a concurrency request threshold corresponding to the current bandwidth usage percentage from the correspondence table.
In this embodiment, in response to determining that the current network delay rate is not greater than the preset network delay rate and the current packet loss rate is not greater than the preset packet loss rate, the electronic device may determine a concurrency request threshold corresponding to the current bandwidth usage percentage from the correspondence table.
In response to determining that the current number of concurrent requests is greater than the determined concurrent request threshold, it is determined that the current network of the target repository does not support video transmission, step 404.
In this embodiment, the electronic device may compare the current number of concurrent requests with the determined concurrent request threshold. In response to determining that the current number of concurrent requests is greater than the determined concurrent request threshold, the electronic device may determine that the current network of the target repository does not support video transmission and perform step 405. In response to determining that the current number of concurrent requests is not greater than the determined concurrent request threshold, the electronic device may perform step 406.
In response to determining that the current network of the target repository does not support video transmission, a hint message is sent to the client that characterizes the current network congestion, step 405.
In this embodiment, in response to determining that the current network of the target warehouse does not support video transmission, the electronic device may send a prompt message for characterizing current network congestion to the client.
In response to determining that the current number of concurrent requests is not greater than the determined concurrent request threshold, a determination is made that the current network of the target repository supports video transmission, step 406.
In this embodiment, the electronic device may determine that the current network of the target repository supports video transmission in response to determining that the current number of concurrent requests is not greater than the determined concurrent request threshold.
In step 407, in response to determining that the current network of the target repository supports video transmission, a video acquisition request is sent to a video server located at the target repository.
In this embodiment, in response to determining that the current network of the target warehouse supports video transmission, the electronic device may send the video acquisition request to a video server located in the target warehouse through a wired connection manner or a wireless connection manner.
Step 408, the video returned by the video server located in the target warehouse is sent to the client.
In this embodiment, after the electronic device sends the video acquisition request to the video server located in the target repository, the electronic device may receive a video returned by the video server and send the video to the client.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the information transmission method in this embodiment highlights the step of determining whether the current network of the target warehouse supports video transmission based on the comparison of the current network data and the preset network data. Therefore, the scheme described in the embodiment can introduce that the current network data is compared with more data in the preset network data, so that whether the current network supports video transmission or not is more comprehensively determined, and the flexibility of data interaction is further improved.
With further reference to fig. 5, as an implementation of the method shown in the above figures, the present application provides an embodiment of an information transmission device, which corresponds to the embodiment of the method shown in fig. 2, and which is particularly applicable to a monitoring server. The monitoring server is respectively in communication connection with the client and the video server of each warehouse in the plurality of warehouses.
As shown in fig. 5, the information transmission apparatus 500 according to this embodiment includes a query unit 501 configured to query, in response to receiving a video acquisition request including a warehouse identifier sent by the client, a current network data and preset network data of the target warehouse with the warehouse indicated by the warehouse identifier as a target warehouse, a determination unit 502 configured to determine whether the current network of the target warehouse supports video transmission based on a comparison of the current network data and the preset network data, a first transmission unit 503 configured to transmit the video acquisition request to a video server located in the target warehouse in response to determining that the current network of the target warehouse supports video transmission, and a second transmission unit 504 configured to transmit a video returned by the video server located in the target warehouse to the client.
In this embodiment, in response to receiving a video acquisition request including a repository identifier sent by a client, the querying unit 501 may query, with a repository indicated by the repository identifier as a target repository, current network data and preset network data of the target repository.
In this embodiment, the determining unit 502 may determine whether the current network of the target warehouse supports video transmission based on a comparison between the current network data and preset network data. Specifically, it may be determined whether the current network of the target repository supports transmission based on a comparison of one or more data included in the current network data with corresponding one or more data in the preset network data.
In this embodiment, in response to determining that the current network of the target warehouse supports video transmission, the first sending unit 503 may send the video acquisition request to the video server located in the target warehouse through a wired connection manner or a wireless connection manner.
In this embodiment, the second sending unit 504 may receive the video returned by the video server and send the video to the client.
In some optional implementations of this embodiment, the current network data may include a current network delay rate and a current packet loss rate, and the preset network data may include a preset network delay rate and a preset packet loss rate. The determining unit 502 may be further configured to determine that the current network of the target warehouse does not support video transmission in response to determining that the current network delay rate is greater than the preset network delay rate or the current packet loss rate is greater than the preset packet loss rate.
In some optional implementations of this embodiment, the current network data may further include a current bandwidth usage percentage and a current concurrency request number, and the preset network data may further include a preset table of correspondence between bandwidth usage percentages and concurrency request thresholds. The determining unit 502 may be further configured to determine, from the correspondence table, a concurrency request threshold corresponding to the current bandwidth usage percentage in response to determining that the current network delay rate is not greater than the preset network delay rate and the current packet loss rate is not greater than the preset packet loss rate, and determine that the current network of the target warehouse does not support video transmission in response to determining that the current concurrency request number is greater than the determined concurrency request threshold.
In some optional implementations of this embodiment, the determining unit 502 may be further configured to determine that the current network of the target repository supports video transmission in response to determining that the current number of concurrent requests is not greater than the determined concurrent request threshold.
In some optional implementations of the present embodiment, the information transmission apparatus 500 may further include a third transmitting unit (not shown in the drawings). The third sending unit may be configured to send, in response to determining that the current network of the target repository does not support video transmission, prompt information for characterizing current network congestion to the client.
According to the device provided by the embodiment of the application, after receiving the video acquisition request including the warehouse identifier sent by the client through the query unit 501, the warehouse indicated by the warehouse identifier is used as a target warehouse, the current network data and the preset network data of the warehouse indicated by the target warehouse identifier are queried, then the determination unit 502 determines whether the current network of the target warehouse supports video transmission or not based on the comparison between the current network data and the preset network data, then the first sending unit 503 responds to the determination that the current network of the target warehouse supports video transmission, sends the video acquisition request to the video server, and finally the second sending unit 504 sends the video returned by the video server to the client, so that the video transmission and access of the warehouse can be dynamically controlled based on the current network condition of the warehouse, the video flow is ensured not to influence the normal business, and the flexibility of data interaction is improved.
With further reference to fig. 6, a schematic 600 of an interaction procedure between devices in an information transfer system according to the present application is shown.
The information transmission system comprises a client, a monitoring server and a video server positioned in each warehouse of a plurality of warehouses. And the monitoring server is used for responding to the video acquisition request which is sent by the client and contains the warehouse identifier, taking the warehouse indicated by the warehouse identifier as a target warehouse, inquiring the current network data and the preset network data of the target warehouse, determining whether the current network of the target warehouse supports video transmission or not based on the comparison of the current network data and the preset network data, if so, sending the video acquisition request to the video server positioned in the target warehouse, and sending the video returned by the video server positioned in the target warehouse to the client.
As shown in fig. 6, in the information transmission system, the interaction process 600 between the devices may include the following steps:
in step 601, the client sends a video acquisition request containing a repository identification to the monitoring server.
In this embodiment, the client may send a video acquisition request including the repository identifier to the monitoring server through a wired connection or a wireless connection.
In step 602, the monitoring server uses the warehouse indicated by the warehouse identifier as a target warehouse, and queries the current network data and preset network data of the target warehouse.
In this embodiment, the monitoring server may query the current network data and the preset network data of the target repository with the repository indicated by the repository identifier as the target repository.
In some optional implementations of this embodiment, the information transmission system may further include a network probe server and a warehouse terminal of each of the plurality of warehouses. The network probe server may periodically send network probe requests to the warehouse terminals of the respective warehouses to obtain network data (e.g., network delay rate, packet loss rate, bandwidth occupancy percentage, etc.) of the respective warehouses. For each of the plurality of warehouses, the warehouse terminal of the warehouse may determine whether the received network probe request is a target probe request, where the target probe request may be a PING (PACKET INTERNET Groper, internet packet explorer) command (e.g., PING 172.19.23.22), or may be other commands that are pre-specified by a technician. In response to determining that the network probe request received by the warehouse terminal of the warehouse is the target probe request, the warehouse terminal of the warehouse may execute a command indicated by the received target probe request and return an execution result to the network probe server. In response to determining that the network probe request received by the warehouse terminal of the warehouse is not the target probe request, the warehouse terminal of the warehouse may send a data query request to a router or switch installed in the warehouse and send data (e.g., network bandwidth, network delay rate, packet loss rate, etc.) returned by the router or switch to the network probe server. The network detection server can store the execution result and data returned by each warehouse terminal into a cache.
In step 603, the monitoring server determines whether the current network of the target warehouse supports video transmission based on the comparison between the current network data and the preset network data.
In this embodiment, the monitoring server may determine whether the current network of the target repository supports video transmission based on a comparison of the current network data and the preset network data. Specifically, the monitoring server may determine whether the current network of the target repository supports transmission based on a comparison of one or more data included in the current network data with corresponding one or more data in the preset network data.
In some optional implementations of this embodiment, the current network data may include a current network delay rate and a current packet loss rate, and the preset network data may include a preset network delay rate and a preset packet loss rate. The monitoring server may determine that the current network of the target repository does not support video transmission in response to determining that the current network delay rate is greater than the preset network delay rate or that the current packet loss rate is greater than the preset packet loss rate.
In some optional implementations of this embodiment, the current network data may further include a current bandwidth usage percentage and a current concurrency request number, and the preset network data may further include a preset table of correspondence between bandwidth usage percentages and concurrency request thresholds. The monitoring server may determine a concurrency request threshold corresponding to the current bandwidth usage percentage from the correspondence table in response to determining that the current network delay rate is not greater than the preset network delay rate and the current packet loss rate is not greater than the preset packet loss rate, and may determine that the current network of the target repository does not support video transmission in response to determining that the current concurrency request number is greater than the determined concurrency request threshold.
In some optional implementations of this embodiment, the monitoring server may determine that the current network of the target repository supports video transmission in response to determining that the current number of concurrent requests is not greater than the determined concurrent request threshold.
In some optional implementations of this embodiment, the monitoring server may send, in response to determining that the current network of the target repository does not support video transmission, a hint information to characterize the current network congestion to the client.
In step 604, the monitoring server sends the video acquisition request to a video server located in the target warehouse in response to determining that the current network of the target warehouse supports video transmission.
In this embodiment, in response to determining that the current network of the target warehouse supports video transmission, the monitoring server may send the video acquisition request to a video server located in the target warehouse through a wired connection or a wireless connection.
Step 605, the video server located in the target warehouse returns the video indicated by the video acquisition request to the monitoring server.
In this embodiment, the video server located in the target warehouse may return the video indicated by the video acquisition request to the monitoring server through a wired connection or a wireless connection.
In step 606, the monitoring server sends the video to the client.
In this embodiment, the monitoring server may send the video to the client.
It should be noted that the specific operations of the steps 601 to 606 are substantially the same as those of the steps 201 to 204, and are not described herein.
According to the information transmission system provided by the embodiment of the application, after receiving the video acquisition request which is sent by the client and contains the warehouse identifier, the monitoring server inquires the current network data and the preset network data of the warehouse indicated by the target warehouse identifier, then determines whether the current network of the target warehouse supports video transmission or not based on the comparison of the current network data and the preset network data, then responds to the determination that the current network of the target warehouse supports video transmission, sends the video acquisition request to the video server, and finally sends the video returned by the video server to the client, so that the video transmission and access of the warehouse can be dynamically controlled based on the current network condition of the warehouse, the normal service is not influenced by the video flow, and the flexibility of data interaction is improved.
Referring now to FIG. 7, there is illustrated a schematic diagram of a computer system 700 suitable for use with a server embodying embodiments of the present application. The server illustrated in fig. 7 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present application.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Connected to the I/O interface 705 are an input section 706 including a keyboard, a mouse, and the like, an output section 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like, a storage section 708 including a hard disk, and the like, and a communication section 709 including a network interface card such as a LAN card, a modem, and the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the method of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 701. The computer readable medium according to the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, 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. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer 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 computer readable 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.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented in software or in hardware. The described units may also be provided in a processor, for example as a processor comprising a query unit, a determination unit, a first transmission unit and a second transmission unit. Where the names of these units do not constitute a limitation on the unit itself in some cases, for example, a querying unit may also be described as "a unit querying the current network data and preset network data of the target repository".
As a further aspect, the present application also provides a computer readable medium, which may be comprised in the apparatus described in the above embodiments, or may be present alone, without being assembled into the apparatus. The computer readable medium carries one or more programs that, when executed by the apparatus, cause the apparatus to, in response to receiving a video acquisition request sent by a client and containing a repository identification, query a current network data and preset network data of the target repository with the repository indicated by the repository identification as a target repository, determine whether a current network of the target repository supports video transmission based on a comparison of the current network data and the preset network data, send the video acquisition request to a video server located in the target repository in response to determining that the current network of the target repository supports video transmission, and send a video returned by the video server located in the target repository to the client.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the inventive concept described above. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.