A method, apparatus, device, and storage medium for determining a data transmission type
By determining the data transmission type based on the current transmission time and the preset unicast transmission time in the distributed display and control system, the problems of packet loss and video stuttering during unicast transmission and large bandwidth and poor experience during multicast transmission are solved, and the effect of fast response and stable transmission is achieved.
Patent Information
- Application Number
- CN202310146445.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-07
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2043-02-07
AI Technical Summary
In distributed display and control systems, packet loss and video stuttering are prone to occur when data is transmitted using unicast, and the bandwidth and experience are large and the experience is poor when data is transmitted using multicast.
By receiving the window opening instruction, sending the request flow instruction to the input node based on the identification information of the input node, obtaining the current transmission time corresponding to the request flow instruction, and determining the data transmission type based on the current transmission time and the preset unicast transmission time, and selecting a suitable unicast or multicast transmission method.
It realizes fast response of large screens and fast video images, improves user experience, and reduces network bandwidth and ensures stability of data transmission.
Smart Images

Figure CN116132727B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of distributed display and control technology, and in particular to a method, device, equipment and storage medium for determining a data transmission type. Background Art
[0002] The network distributed splicing processing system belongs to the third generation of image splicing system, which connects image acquisition, image transmission and image display through a digital network. The network is used as a large-screen signal transmission carrier. The structure allows the input and output nodes to be geographically dispersed, which has great flexibility and scalability. The system has functions such as multi-point sharing of image signals, network image access / output, and mobile terminal preview control. Each screen in the large screen of the network distributed splicing processing system is connected to a distributed output node. When the signal of the input node needs to be displayed in full screen on the large screen, the input node needs to send the signal to each output node. The encoded signal is not actually the same size for each frame, and the sending rate is actually uneven in a short time. For example, H264 and H265 are particularly large in I frames, while other frames are relatively small. If there are many small screens that make up the large screen, that is, there are many output nodes, in this case of one-to-many input and output, when sending I frames, the instantaneous rate is very large, which may exceed the switch load and cause packet loss.
[0003] Most distributed display and control systems use unicast or multicast when transmitting video streams. The advantage of unicast is that when the display and control system software is used to control the large screen window opening operation, the large screen responds quickly and the video comes out quickly. However, if the large screen uses more splicing screens, the distributed output nodes are 1:1 with the splicing screens, that is, there are many distributed output nodes. When displaying the distributed input node signal, the distributed input node must send each frame of data to each distributed output node separately. This causes a large network bandwidth, which puts a lot of pressure on the network of the entire system. When running for a long time, it is easy to lose packets and video freezes. When using multicast, the input node and the output node are added to the same group. The input node video stream only needs to send data to the group, and the output node receives data through the group. This greatly reduces the network burden, but multicast has a specific feature, that is, it takes a certain amount of time from joining to receiving data. Therefore, when using the display and control software for window opening operations, the large screen will respond slowly, the video will come out later, and the overall experience is not good. Summary of the invention
[0004] The present invention provides a method, device, equipment and storage medium for determining data transmission type, so as to solve the problems of easy packet loss and video freeze when using unicast to transmit data and large bandwidth and poor experience when using multicast to transmit data.
[0005] According to one aspect of the present invention, there is provided a method for determining a data transmission type, which is applied to an output node and includes:
[0006] Receiving a windowing instruction, wherein the windowing instruction carries identification information of an input node;
[0007] Sending a request stream instruction to the input node according to the identification information of the input node;
[0008] Obtaining a current transmission duration corresponding to the request stream instruction;
[0009] Determining a data transmission type according to the current transmission duration and a preset unicast transmission duration.
[0010] According to another aspect of the present invention, there is provided a method for determining a data transmission type, which is applied to an input node and includes:
[0011] Receiving a request stream instruction sent by an output node;
[0012] Obtaining a current transmission duration corresponding to the request stream instruction;
[0013] Determining a data transmission type according to the current transmission duration and a preset unicast transmission duration.
[0014] According to another aspect of the present invention, there is provided a device for determining a data transmission type, which includes:
[0015] A first receiving module, configured to receive a windowing instruction, wherein the windowing instruction carries identification information of an input node;
[0016] A first sending module, configured to send a request stream instruction to the input node according to the identification information of the input node;
[0017] A first obtaining module, configured to obtain a current transmission duration corresponding to the request stream instruction;
[0018] A first determining module, configured to determine a data transmission type according to the current transmission duration and a preset unicast transmission duration.
[0019] According to another aspect of the present invention, there is provided a device for determining a data transmission type, which includes:
[0020] A second receiving module, configured to receive a request stream instruction sent by an output node;
[0021] A second obtaining module, configured to obtain a current transmission duration corresponding to the request stream instruction;
[0022] A second determining module, configured to determine a data transmission type according to the current transmission duration and a preset unicast transmission duration.
[0023] According to another aspect of the present invention, there is provided an electronic device, which includes:
[0024] at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the data transmission type determination method according to any embodiment of the present invention.
[0025] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the data transmission type determination method according to any embodiment of the present invention when executed.
[0026] The technical solution of the embodiment of the present invention, by receiving a window opening instruction, wherein the window opening instruction carries the identification information of the input node, sending a request flow instruction to the input node according to the identification information of the input node, obtaining the current sending duration corresponding to the request flow instruction, and determining the data transmission type according to the current sending duration and the preset unicast sending duration, solves the problems of easy packet loss and video stuttering when using unicast to transmit data and large bandwidth and poor experience when using multicast to transmit data, and achieves the beneficial effects of enabling the large screen to respond quickly, draw pictures quickly, improving the user experience, and at the same time reducing the network bandwidth and making the data transmission more stable.
[0027] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.
[0029] Figure 1 is a flowchart of a data transmission type determination method according to Embodiment 1 of the present invention;
[0030] Figure 2 is a flowchart of a data transmission type determination method according to Embodiment 2 of the present invention;
[0031] Figure 3 is a schematic structural diagram of a data transmission type determination device according to Embodiment 3 of the present invention;
[0032] Figure 4 is a schematic structural diagram of a data transmission type determination device provided according to Embodiment 4 of the present invention;
[0033] Figure 5 is a schematic structural diagram of an electronic device for implementing the data transmission type determination method of the embodiments of the present invention. Detailed implementation manners
[0034] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0035] It should be noted that the terms "first", "target", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order different from those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily need to be limited to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0036] Embodiment 1
[0037] Figure 1 is a flowchart of a data transmission type determination method provided according to Embodiment 1 of the present invention. This embodiment is applicable to the situation of data transmission type determination. This method is applied to an output node. This method can be executed by a data transmission type determination device, and the data transmission type determination device can be implemented in the form of hardware and / or software. The data transmission type determination device can be integrated in any electronic device providing the data transmission type determination function. As Figure 1 shown, the method includes:
[0038] S101. Receive a window opening instruction.
[0039] Among them, the window opening instruction carries the identification information of the input node.
[0040] In this embodiment, the data transmission type determination method is mainly used in a distributed display control system.
[0041] It should be noted that the distributed display and control system includes at least one output node, at least one input node, a high-performance switch supporting multicast, and a computer installed with distributed broadcast control software.
[0042] Among them, the input node, the distributed output node, and the computer installed with distributed broadcast control software are all connected to the high-performance switch supporting multicast through network cables.
[0043] Among them, the distributed broadcast control software controls the entire distributed display and control system, including video display on the large screen, sound playback, and electrical switch control of the entire environment. The distributed broadcast control software performs window opening operations (the window opening operation is to project the video signal of the input node onto the large screen for display), and issues window opening instructions to the output node.
[0044] Among them, the high-performance switch supporting multicast must support multicast and can be configured. Only in this way can this data transmission type determination method take effect.
[0045] Among them, the input node is connected to the video output signal device through an HDMI (High Definition Multimedia Interface) or DVI (Digital Visual Interface) video cable. The video output signal devices include computers, conference hosts, and NVRs (Network Video Recorders), etc. The video signals output by these devices are collected and encoded through the video cable. The output node is connected to the video display device through an HDMI or DVI video cable, which means that each output node is connected to a small screen in the large screen. After receiving the window opening instruction, it decodes the video data and cuts and stretches the corresponding image on the corresponding screen for display according to the instruction, so as to stitch together a complete image. The video display device generally refers to an LCD (Liquid Crystal Display) or an LED (Light Emitting Diode).
[0046] Among them, the data transmission between the input node and the output node uses the UDP (User Datagram Protocol) protocol.
[0047] It should be noted that in the distributed display and control system, instructions and data are both transmitted through the network. Therefore, the input node, the output node, and the computer where the distributed broadcast control software is located all need to be connected to the switch in the same network.
[0048] Exemplarily, the identification information of the input node may be the IP address of the input node.
[0049] During the actual operation process, the distributed broadcast control software uses the configured project file to obtain the input node, output node, and the splicing situation of the large screen, etc. When implementing the window opening action of displaying the video encoded by the input node on the large screen, the window opening instruction will be sent to the output node corresponding to the large screen.
[0050] Specifically, the output node receives the window opening instruction, where the window opening instruction carries the identification information of the input node, the display position of the window, and display parameters, etc.
[0051] S102. Send a request stream instruction to the input node according to the identification information of the input node.
[0052] In this embodiment, the request stream instruction may be an instruction sent by the output node to the input node for requesting the input node to send data.
[0053] Specifically, after the output node receives the window opening instruction sent by the distributed broadcast control software, it sends a request stream instruction to the input node.
[0054] S103. Obtain the current sending duration corresponding to the request stream instruction.
[0055] It should be noted that the current sending duration may be the duration between the moment when the output node sends the request stream instruction to the input node and the current moment.
[0056] Specifically, the current sending duration corresponding to the output node sending the request stream instruction to the input node is detected in real time.
[0057] S104. Determine the data transmission type according to the current sending duration and the preset unicast sending duration.
[0058] Among them, the preset unicast sending duration may be pre-set by the user, and it is the duration for the input node to send data to the output node through the unicast transmission data transmission method. The specific duration value of the preset unicast sending duration is not limited in this embodiment. Preferably, the preset unicast sending duration may be the duration when the output node joins the multicast group formed by the input node. Exemplarily, the preset unicast sending duration may be several seconds for example.
[0059] In this embodiment, the data transmission type may be divided into unicast type and multicast type.
[0060] Specifically, the current sending duration and the preset unicast sending duration are compared in real time, and the data transmission type is determined according to the comparison result of the current sending duration and the preset unicast sending duration.
[0061] The technical solution of the embodiment of the present invention receives a window opening instruction, where the window opening instruction carries the identification information of the input node, sends a request stream instruction to the input node according to the identification information of the input node, obtains the current sending duration corresponding to the request stream instruction, and determines the data transmission type according to the current sending duration and the preset unicast sending duration, solving the problems of easy packet loss and video freezing when using unicast to transmit data and large bandwidth and poor experience when using multicast to transmit data, achieving the beneficial effects of enabling the large screen to respond quickly, generate images quickly, improving the user experience, and at the same time reducing the network bandwidth and making data transmission more stable.
[0062] Optionally, sending a request stream instruction to the input node according to the identification information of the input node includes:
[0063] Determining the port information of the input node according to the identification information of the input node.
[0064] Among them, the port information of the input node may be the attribute information of the port unicast-bound by the input node, and the attribute information may be, for example, port address information.
[0065] Specifically, when the input node starts, it unicasts and binds to a specified port, and the output node can determine the port information of the input node according to the identification information of the input node carried in the window opening instruction.
[0066] Sending a request stream instruction to the input node according to the port information of the input node.
[0067] Specifically, when the distributed control software implements window opening, it publishes the window opening instruction to the output node, and after receiving the window opening instruction, the output node sends a request stream instruction to the port unicast-bound by the input node.
[0068] Optionally, the request stream instruction carries the port information of the output node.
[0069] In the actual operation process, the output node binds a port for receiving instructions and a port for receiving data when it starts. Among them, the port information of the output node may be the attribute information of the port used by the output node to receive data, and the attribute information may be, for example, port address information.
[0070] After receiving the window opening instruction, it further includes:
[0071] Sending the port information of the output node to the input node so that the input node generates a multicast address according to the port information of the output node and the identification information of the input node.
[0072] It should be noted that the multicast address may be the address of the multicast generated by the input node according to the port information of the output node and the identification information of the input node.
[0073] Specifically, after receiving the window opening instruction, the output node sends the port information of the output node to the input node, so that the input node generates a multicast address according to the port information of the output node and the identification information of the input node. The output node calculates a unique multicast address through a certain algorithm according to the identification information of the input node carried in the window opening instruction, and joins the multicast group.
[0074] Optionally, determine the data transmission type according to the current transmission duration and the preset unicast transmission duration, including:
[0075] If the current transmission duration is less than the preset unicast transmission duration, determine that the data transmission type is unicast type.
[0076] In this embodiment, the unicast type can be understood as that the input node directly sends the data to the output node according to the port information of the output node carried in the request flow instruction, and the output node directly receives the data sent by the input node.
[0077] Specifically, when the current transmission duration is less than the preset unicast transmission duration, determine that the data transmission type is unicast type, that is, the input node directly sends the data to the output node according to the port information of the output node carried in the request flow instruction, and the output node directly receives the data sent by the input node.
[0078] If the current transmission duration is greater than or equal to the preset unicast transmission duration, determine that the data transmission type is multicast type.
[0079] In this embodiment, the multicast type can be understood as that the input node sends the data to the multicast corresponding to the multicast address, and the output nodes in the multicast group receive the data from the multicast group.
[0080] Specifically, when the current transmission duration is greater than or equal to the preset unicast transmission duration, determine that the data transmission type is multicast type, that is, the input node sends the data to the multicast corresponding to the multicast address, and the output nodes in the multicast group receive the data from the multicast group.
[0081] In the actual operation process, when transmitting data in unicast type, multiple output nodes may receive the data, and the input node transmits the data to multiple output nodes respectively. When the data transmission type is changed to multicast type, the input node only needs to transmit the data to the multicast group.
[0082] Optionally, if the current transmission duration is greater than or equal to the preset unicast transmission duration, determine that the data transmission type is multicast type, including:
[0083] If the current transmission duration is greater than or equal to the preset unicast transmission duration, receive the data in the multicast group corresponding to the multicast address.
[0084] Among them, the multicast group can be a multicast group corresponding to a multicast address generated by the input node according to the port information of the output node and the identification information of the input node.
[0085] In this embodiment, the data can be video data.
[0086] Specifically, when the current transmission duration is greater than or equal to the preset unicast transmission duration, it is determined that the data transmission type is the multicast type, that is, the input node sends the data to the multicast in the corresponding multicast address, and the output nodes in the multicast group receive the data in the multicast group corresponding to the multicast address.
[0087] In the actual operation process, after receiving the video data, the output node will decode the video data, and perform operations such as cropping, stretching or shrinking on the decoded video image according to the windowing instructions issued by the distributed broadcast control software, and then display it.
[0088] The embodiment of the present invention proposes an optimized data network transmission method for distributed unicast and multicast mixing, which combines the advantages of unicast and multicast and solves the disadvantages of both at the same time. When performing windowing operations in the distributed display control system, the input node first sends data to the output node through the unicast type. The output node can immediately receive the data and decode and display it, responding to this operation extremely quickly. At the same time, both the input node and the output node join the same multicast group. After the current transmission duration is greater than or equal to the preset unicast transmission duration, the input node changes to send data to the multicast group. At this time, the input node and the output node have joined the multicast group for some time, and the output node can immediately receive the data, which can greatly reduce the entire network bandwidth, reduce the pressure on the switch, and at the same time reduce the risk of packet loss, making the transmission and display more stable. The technical solution of the embodiment of the present invention can solve the problems of easy packet loss and video stuttering when using unicast to transmit data, as well as large bandwidth and poor experience when using multicast to transmit data, achieving the beneficial effects of making the large screen respond quickly, showing pictures quickly, improving the user experience, and at the same time reducing the network bandwidth and making the data transmission more stable.
[0089] Embodiment 2
[0090] Figure 2 It is a flowchart of a method for determining a data transmission type according to Embodiment 2 of the present invention. This embodiment is applicable to the situation of determining the data transmission type. This method is applied to the input node. This method can be executed by a data transmission type determination device. The data transmission type determination device can be implemented in the form of hardware and / or software, and the data transmission type determination device can be integrated in any electronic device providing the function of determining the data transmission type. As Figure 2 shown, the method includes:
[0091] S201. Receive the request stream instruction sent by the output node.
[0092] Specifically, the input node receives the request stream instruction sent by the output node through the port bound by unicast.
[0093] S202. Obtain the current transmission duration corresponding to the request stream instruction.
[0094] Specifically, detect in real time the current transmission duration corresponding to the request stream instruction sent by the output node to the input node.
[0095] S203. Determine the data transmission type according to the current transmission duration and the preset unicast transmission duration.
[0096] Specifically, compare the current transmission duration with the preset unicast transmission duration in real time, and determine the data transmission type according to the comparison result of the current transmission duration and the preset unicast transmission duration.
[0097] The technical solution of the embodiment of the present invention, by receiving the request stream instruction sent by the output node, obtaining the current transmission duration corresponding to the request stream instruction, and determining the data transmission type according to the current transmission duration and the preset unicast transmission duration, solves the problems of easy packet loss and video stuttering when using unicast to transmit data, and large bandwidth and poor experience when using multicast to transmit data, and achieves the beneficial effects of making the large screen respond quickly, the image output fast, improving the user experience, and at the same time reducing the network bandwidth and making the data transmission more stable.
[0098] Optionally, the request stream instruction carries the port information of the output node.
[0099] After receiving the request stream instruction sent by the output node, it further includes:
[0100] Generate a multicast address according to the port information of the output node and the identification information of the input node.
[0101] Specifically, after the input node receives the request stream instruction sent by the output node, it obtains the port information of the output node carried in the request stream instruction, and calculates a unique multicast address through a certain algorithm according to the port information of the output node and the identification information of the input node, and creates a multicast group corresponding to the multicast address. Among them, the identification information of the input node can be the IP address of the input node.
[0102] Optionally, determining the data transmission type according to the current transmission duration and the preset unicast transmission duration includes:
[0103] If the current transmission duration is less than the preset unicast transmission duration, it is determined that the data transmission type is unicast type.
[0104] Specifically, when the current transmission duration is less than the preset unicast transmission duration, the data transmission type is determined to be the unicast type, that is, the input node directly sends the data to the output node according to the port information of the output node carried in the request flow instruction, and the output node directly receives the data sent by the input node.
[0105] If the current transmission duration is greater than or equal to the preset unicast transmission duration, the data transmission type is determined to be the multicast type.
[0106] Specifically, when the current transmission duration is greater than or equal to the preset unicast transmission duration, the data transmission type is determined to be the multicast type, that is, the input node sends the data to the multicast group corresponding to the multicast address, and the output nodes in the multicast group receive the data from the multicast group.
[0107] In the actual operation process, when transmitting data in the unicast type, multiple output nodes may receive the data, and the input node transmits the data to multiple output nodes respectively. When the data transmission type is changed to the multicast type, the input node only needs to transmit the data to the multicast group.
[0108] Optionally, if the current transmission duration is greater than or equal to the preset unicast transmission duration, determining that the data transmission type is the multicast type includes:
[0109] If the current transmission duration is greater than or equal to the preset unicast transmission duration, send the data to the multicast group corresponding to the multicast address.
[0110] Specifically, when the current transmission duration is greater than or equal to the preset unicast transmission duration, the data transmission type is determined to be the multicast type, that is, the input node sends the data to the multicast group corresponding to the multicast address, and the output nodes in the multicast group receive the data in the multicast group corresponding to the multicast address.
[0111] An embodiment of the present invention proposes a method for optimizing data network transmission in a distributed unicast and multicast hybrid manner, which combines the advantages of unicast and multicast and simultaneously solves the disadvantages of both. When performing a windowing operation in a distributed display and control system, the input node first sends data to the output node through the unicast type. The output node can immediately receive the data and decode and display it, responding extremely quickly to this operation. At the same time, both the input node and the output node join the same multicast group. After the current transmission duration is greater than or equal to the preset unicast transmission duration, the input node changes to send data to the multicast group. At this time, both the input node and the output node have joined the multicast group for some time, and the output node can immediately receive the data, which can greatly reduce the entire network bandwidth, reduce the pressure on the switch, and at the same time reduce the risk of packet loss, making both transmission and display more stable. The technical solution of the embodiment of the present invention can solve the problems of easy packet loss and video freezing when using unicast to transmit data, and large bandwidth and poor experience when using multicast to transmit data, achieving the beneficial effects of making the large screen respond quickly, showing pictures quickly, improving the user experience, and at the same time reducing the network bandwidth and making data transmission more stable.
[0112] Embodiment III
[0113] Figure 3 is a schematic structural diagram of a data transmission type determination device provided according to Embodiment III of the present invention. As Figure 3 shown, the device includes: a first receiving module 301, a first sending module 302, a first obtaining module 303, and a first determining module 304.
[0114] Among them, the first receiving module 301 is configured to receive a windowing instruction, where the windowing instruction carries identification information of an input node;
[0115] The first sending module 302 is configured to send a request stream instruction to the input node according to the identification information of the input node;
[0116] The first obtaining module 303 is configured to obtain the current transmission duration corresponding to the request stream instruction;
[0117] The first determining module 304 is configured to determine the data transmission type according to the current transmission duration and the preset unicast transmission duration.
[0118] Optionally, the first sending module 302 includes:
[0119] A first determining unit, configured to determine the port information of the input node according to the identification information of the input node;
[0120] A sending unit, configured to send a request stream instruction to the input node according to the port information of the input node.
[0121] Optionally, the request flow instruction carries the port information of the output node;
[0122] The data transmission type determination device further includes:
[0123] A second sending module, configured to, after receiving the window opening instruction, send the port information of the output node to the input node, so that the input node generates a multicast address according to the port information of the output node and the identification information of the input node.
[0124] Optionally, the first determination module 304 includes:
[0125] A second determination unit, configured to determine that the data transmission type is a unicast type if the current sending duration is less than a preset unicast sending duration;
[0126] A third determination unit, configured to determine that the data transmission type is a multicast type if the current sending duration is greater than or equal to the preset unicast sending duration.
[0127] Optionally, the third determination unit is specifically configured to:
[0128] If the current sending duration is greater than or equal to the preset unicast sending duration, receive data in the multicast group corresponding to the multicast address.
[0129] The data transmission type determination device provided by the embodiments of the present invention can execute the data transmission type determination method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
[0130] Embodiment 4
[0131] Figure 4 is a schematic structural diagram of a data transmission type determination device according to Embodiment 4 of the present invention. As Figure 4 shown, the device includes: a second receiving module 401, a second obtaining module 402, and a second determining module 403.
[0132] Among them, the second receiving module 401 is configured to receive a request flow instruction sent by an output node;
[0133] The second obtaining module 402 is configured to obtain the current sending duration corresponding to the request flow instruction;
[0134] The second determining module 403 is configured to determine the data transmission type according to the current sending duration and the preset unicast sending duration.
[0135] Optionally, the request flow instruction carries the port information of the output node;
[0136] The data transmission type determination device further includes:
[0137] A generating module, configured to generate a multicast address according to port information of the output node and identification information of the input node after receiving a request stream instruction sent by the output node.
[0138] Optionally, the second determining module 403 includes:
[0139] A fourth determining unit, configured to determine that the data transmission type is a unicast type if the current transmission duration is less than a preset unicast transmission duration;
[0140] A fifth determining unit, configured to determine that the data transmission type is a multicast type if the current transmission duration is greater than or equal to the preset unicast transmission duration.
[0141] Optionally, the fifth determining unit is specifically configured to:
[0142] If the current transmission duration is greater than or equal to the preset unicast transmission duration, send the data to a multicast group corresponding to the multicast address.
[0143] The data transmission type determining device provided by the embodiments of the present invention can execute the data transmission type determining method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
[0144] Embodiment 5
[0145] Figure 5 FIG. shows a schematic structural diagram of an electronic device 50 that can be used to implement the embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device (such as a helmet, glasses, a watch, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0146] As Figure 5As shown, the electronic device 50 includes at least one processor 51 and a memory communicatively connected to the at least one processor 51, such as a read-only memory (ROM) 52, a random access memory (RAM) 53, etc. The memory stores a computer program executable by the at least one processor. The processor 51 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 52 or the computer program loaded from the storage unit 58 into the random access memory (RAM) 53. In the RAM 53, various programs and data required for the operation of the electronic device 50 can also be stored. The processor 51, the ROM 52, and the RAM 53 are connected to each other via a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.
[0147] Multiple components in the electronic device 50 are connected to the I / O interface 55, including: an input unit 56, such as a keyboard, a mouse, etc.; an output unit 57, such as various types of displays, speakers, etc.; a storage unit 58, such as a magnetic disk, an optical disc, etc.; and a communication unit 59, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 59 allows the electronic device 50 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0148] The processor 51 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 51 executes the various methods and processes described above, such as the data transmission type determination method.
[0149] In some embodiments, the data transmission type determination method can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as the storage unit 58. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 50 via the ROM 52 and / or the communication unit 59. When the computer program is loaded into the RAM 53 and executed by the processor 51, one or more steps of the data transmission type determination method described above can be executed. Alternatively, in other embodiments, the processor 51 can be configured to execute the data transmission type determination method by any other appropriate means (e.g., by means of firmware).
[0150] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.
[0151] The computer program for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer program can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
[0152] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on 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.
[0153] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).
[0154] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.
[0155] The computing system can include a client and a server. The client and the server are generally far from each other and usually interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.
[0156] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is made herein.
[0157] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for determining a data transmission type, characterized in that, Applied to the output node, including: Receiving a window opening instruction, where the window opening instruction carries the identification information of the input node, the display position of the window, and display parameters; Sending a request stream instruction to the input node according to the identification information of the input node; Obtaining the current sending duration corresponding to the request stream instruction; Determining the data transmission type according to the current sending duration and a preset unicast sending duration; the preset unicast sending duration is the duration when the output node joins the multicast group formed by the input nodes; Wherein, determining the data transmission type according to the current sending duration and the preset unicast sending duration includes: If the current sending duration is less than the preset unicast sending duration, determining that the data transmission type is unicast type; If the current sending duration is greater than or equal to the preset unicast sending duration, determining that the data transmission type is multicast type and receiving data from the multicast group; Wherein, the request stream instruction carries the port information of the output node; After receiving the window opening instruction, further including: Sending the port information of the output node to the input node, so that the input node generates a multicast address according to the port information of the output node and the identification information of the input node.
2. A method for determining a data transmission type, characterized in that, Applied to the input node, including: Receiving a request stream instruction sent by the output node, where the request stream instruction is sent by the output node to the input node according to the identification information of the input node; Obtaining the current sending duration corresponding to the request stream instruction; Determining the data transmission type according to the current sending duration and a preset unicast sending duration; the preset unicast sending duration is the duration when the output node joins the multicast group formed by the input nodes; Wherein, determining the data transmission type according to the current sending duration and the preset unicast sending duration includes: If the current sending duration is less than the preset unicast sending duration, determining that the data transmission type is unicast type; If the current sending duration is greater than or equal to the preset unicast sending duration, determining that the data transmission type is multicast type and sending data to the multicast group corresponding to the multicast address; Wherein, the request stream instruction carries the port information of the output node; After receiving the request stream instruction sent by the output node, further including: Generating a multicast address according to the port information of the output node and the identification information of the input node.
3. A data transmission type determination device, characterized in that Including: A first receiving module, configured to receive a window opening instruction, where the window opening instruction carries the identification information of the input node, the display position of the window, and display parameters; A first sending module, configured to send a request stream instruction to the input node according to the identification information of the input node; A first obtaining module, configured to obtain the current sending duration corresponding to the request stream instruction; A first determining module, configured to determine the data transmission type according to the current sending duration and a preset unicast sending duration; the preset unicast sending duration is the duration when the output node joins the multicast group formed by the input nodes; Wherein, the first determining module includes: A second determining unit, configured to determine that the data transmission type is unicast type if the current sending duration is less than the preset unicast sending duration; A third determination unit, configured to determine that the data transmission type is a multicast type if the current transmission duration is greater than or equal to the preset unicast transmission duration, and receive data from a multicast group; Wherein, the request stream instruction carries port information of the output node; The data transmission type determination device further includes: A second sending module, configured to, after receiving a window opening instruction, send the port information of the output node to the input node, so that the input node generates a multicast address according to the port information of the output node and the identification information of the input node.
4. A data transmission type determination device, characterized in that, Comprising: A second receiving module, configured to receive a request stream instruction sent by an output node, where the request stream instruction is sent by the output node to the input node according to the identification information of the input node; A second obtaining module, configured to obtain a current transmission duration corresponding to the request stream instruction; A second determination module, configured to determine a data transmission type according to the current transmission duration and a preset unicast transmission duration; the preset unicast transmission duration is the duration for the output node to join a multicast group formed by the input node; Wherein, the second determination module includes: A fourth determination unit, configured to determine that the data transmission type is a unicast type if the current transmission duration is less than the preset unicast transmission duration; A fifth determination unit, configured to determine that the data transmission type is a multicast type if the current transmission duration is greater than or equal to the preset unicast transmission duration, and send data to a multicast group corresponding to the multicast address; Wherein, the request stream instruction carries port information of the output node; The data transmission type determination device further includes: A generation module, configured to, after receiving a request stream instruction sent by an output node, generate a multicast address according to the port information of the output node and the identification information of the input node.
5. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the data transmission type determination method according to any one of claims 1 or 2.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data transmission type determination method according to any one of claims 1 or 2 when executed.
Citation Information
Patent Citations
Control method of splicing wall and control system of splicing wall
CN101937325A
Adaptive multimedia stream link transmission method
CN102215174A
Communication method
CN112566184A