Data transmission control method, device and computer readable storage medium
The data packets are controlled through the visual network split control server, and the traffic and bandwidth management technology is used to solve the problem of bandwidth tightness in the visual network environment, improving the reliability and stability of data transmission.
Patent Information
- Application Number
- CN201911229400.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-04
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2039-12-04
AI Technical Summary
Depending on the bandwidth resource shortage caused by the increase in the number of terminals in the networked environment, network congestion, instantaneous peaks and resource competition problems, affecting the reliability and stability of data transmission.
The network-connected control server detects data packets forwarded by the switch, obtains the parameters of the data packets and controls them according to preset control rules, including rejecting or forwarding data packets, using traffic control queues and leaky bucket queues to manage bandwidth and traffic, and ensures data transmission reliability and stability.
It effectively alleviates the problem of bandwidth resource tightness, improves the reliability and stability of network data transmission, avoids network congestion and resource competition, and ensures the normal progress of services.
Smart Images

Figure CN111131059B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to a data transmission control method, device and computer-readable storage medium. Background Art
[0002] The visual network is a physical network with a tree structure formed by regional divisions. Different from the current Internet, the entire network does not use traditional Internet IP technology.
[0003] In the visual networking environment, data transmission (including business data transmission and control data transmission) will continue between visual networking terminals and visual networking sub-control servers and other devices. With the continuous development of visual networking services, the number of terminals is also increasing, which leads to the gradual shortage of visual networking bandwidth resources, which in turn makes the visual networking environment prone to network congestion, instantaneous peaks, resource competition and other problems. These problems will affect normal terminal services, or cause control commands to fail to interact normally, affecting the reliability and stability of visual networking data transmission. Summary of the invention
[0004] In view of the above problems, embodiments of the present invention are proposed to provide a data transmission control method, device and computer-readable storage medium that overcome the above problems or at least partially solve the above problems.
[0005] In order to solve the above problems, an embodiment of the present invention discloses a data transmission control method, which is applied to a visual network sub-control server, wherein the visual network sub-control server is communicatively connected to a first switch, and the first switch is communicatively connected to a visual network terminal. The method includes:
[0006] When a first data packet forwarded by the first switch is detected, a first data parameter corresponding to the first data packet is obtained, where the first data packet is a data packet sent by a single visual networking terminal to the first switch;
[0007] The first data packet is controlled according to the first data parameter and a first preset control rule.
[0008] Optionally, the visual network sub-control server is communicatively connected to the autonomous server, the autonomous server is communicatively connected to the network management server, the network management server is communicatively connected to the network management client, and before controlling the first data packet according to the first data parameter and the first preset control rule, the method further includes:
[0009] The first preset control rule sent by the autonomous server is received, where the first preset control rule is generated by the network management server according to the first configuration parameter sent by the network management client and sent to the autonomous server.
[0010] Optionally, the first data parameter includes a first bandwidth, and acquiring the first data parameter corresponding to the first data packet includes:
[0011] Acquire a first bandwidth corresponding to the first data packet;
[0012] The controlling the first data packet according to the first data parameter and the first preset control rule includes:
[0013] When the first bandwidth is greater than a first preset bandwidth threshold, rejecting the first data packet forwarded by the first switch;
[0014] When the first bandwidth is less than or equal to the first preset bandwidth threshold, the first data packet forwarded by the first switch is forwarded.
[0015] Optionally, the sub-control server includes a flow control queue and a leaky bucket queue, the first data parameter includes flow, and obtaining the first data parameter corresponding to the first data packet includes:
[0016] Obtaining the flow corresponding to the first data packet sent by each visual networking terminal in the pre-configured flow control queue;
[0017] The controlling the first data packet according to the first data parameter and the first preset control rule includes:
[0018] Sending the traffic corresponding to the first data packet sent by each of the visual networking terminals to the leaky bucket queue;
[0019] Forwarding the data packets in the leaky bucket queue according to the output speed of the leaky bucket queue;
[0020] Accumulating the flow of the first data packet sent by each visual networking terminal in the flow control queue to obtain the accumulated flow;
[0021] When the accumulated traffic exceeds the capacity of the leaky bucket queue, the first data packet sent by any visual networking terminal in the traffic control queue is rejected.
[0022] Optionally, before acquiring the traffic corresponding to the first data packet sent by each visual networking terminal in the pre-configured traffic control queue, the method further includes:
[0023] Receiving configuration information sent by the autonomous server, where the configuration information is generated by the network management server according to the second configuration parameter sent by the network management client and sent to the autonomous server;
[0024] The flow control queue is configured according to the configuration information.
[0025] Optionally, configuring the flow control queue according to the configuration information includes:
[0026] The flow control queue is enabled, disabled, added, edited, deleted or queried according to the configuration information.
[0027] Optionally, the first switch is communicatively connected to the second switch, the first switch is pre-set with a packet queue, the packet queue includes at least one visual network sub-control server, and the method further includes:
[0028] Obtaining a second bandwidth corresponding to a second data packet forwarded by the first switch to the second switch, where the second data packet is sent by the visual network sub-control server in the packet queue to the first switch;
[0029] Acquire a third bandwidth corresponding to a third data packet received by the first switch, where the third data packet is forwarded by the second switch;
[0030] Controlling, according to the second bandwidth and a second preset bandwidth threshold, the second data packet forwarded by the first switch to the second switch;
[0031] The third data packet received by the first switch is controlled according to the third bandwidth and the third preset bandwidth threshold.
[0032] Optionally, the second data packet includes a second multicast packet or the third data packet includes a third multicast packet, and the method further includes:
[0033] Acquire a second ratio of the bandwidth of the second data packet occupied by the second multicast packet, or acquire a third ratio of the bandwidth of the third data packet occupied by the third multicast packet;
[0034] Controlling, according to the second ratio and a first preset ratio threshold, the second data packet forwarded by the first switch to the second switch;
[0035] The third data packet received by the first switch is controlled according to the third ratio and the second preset ratio threshold.
[0036] The embodiment of the present invention further discloses a data transmission control device, which is applied to a visual network sub-control server, wherein the visual network sub-control server is communicatively connected to a first switch, and the first switch is communicatively connected to a visual network terminal. The device includes:
[0037] A first acquisition module, configured to acquire a first data parameter corresponding to a first data packet when detecting a first data packet forwarded by the first switch, wherein the first data packet is a data packet sent by a single visual networking terminal to the first switch;
[0038] The first control module is used to control the first data packet according to the first data parameter and a first preset control rule.
[0039] Optionally, the visual network sub-control server is communicatively connected to the autonomous server, the autonomous server is communicatively connected to the network management server, the network management server is communicatively connected to the network management client, and the device further includes:
[0040] The first receiving module is used to receive the first preset control rule sent by the autonomous server, where the first preset control rule is generated by the network management server according to the first configuration parameter sent by the network management client and sent to the autonomous server.
[0041] Optionally, the first data parameter includes a first bandwidth, and the first acquisition module includes:
[0042] A first acquisition submodule, used to acquire a first bandwidth corresponding to the first data packet;
[0043] The first control module comprises:
[0044] A first rejection submodule, configured to reject the first data packet forwarded by the first switch when the first bandwidth is greater than a first preset bandwidth threshold;
[0045] The first forwarding submodule is configured to forward a first data packet forwarded by the first switch when the first bandwidth is less than or equal to the first preset bandwidth threshold.
[0046] Optionally, the sub-control server includes a flow control queue and a leaky bucket queue, the first data parameter includes flow, and the first acquisition module includes:
[0047] A second acquisition submodule is used to acquire the flow corresponding to the first data packet sent by each visual network terminal in the pre-configured flow control queue;
[0048] The first control module comprises:
[0049] A sending submodule, used for sending the traffic corresponding to the first data packet sent by each of the visual networking terminals to the leaky bucket queue;
[0050] A second forwarding submodule, configured to forward data packets in the leaky bucket queue according to an output speed of the leaky bucket queue;
[0051] An accumulation submodule, used for accumulating the flow of the first data packet sent by each visual network terminal in the flow control queue to obtain the accumulated flow;
[0052] The second rejection submodule is used to reject the first data packet sent by any visual networking terminal in the flow control queue when the accumulated flow exceeds the capacity of the leaky bucket queue.
[0053] Optionally, the device further comprises:
[0054] A second receiving module, configured to receive configuration information sent by the autonomous server, wherein the configuration information is generated by the network management server according to the second configuration parameter sent by the network management client, and sent to the autonomous server;
[0055] A configuration module is used to configure the flow control queue according to the configuration information.
[0056] Optionally, the configuration module is further used to enable, disable, add, edit, delete or query the flow control queue according to the configuration information.
[0057] Optionally, the first switch is communicatively connected to the second switch, the first switch is pre-set with a packet queue, the packet queue includes at least one visual network sub-control server, and the device further includes:
[0058] A second acquisition module, configured to acquire a second bandwidth corresponding to a second data packet forwarded by the first switch to the second switch, wherein the second data packet is sent by the visual network sub-control server in the packet queue to the first switch;
[0059] A third acquisition module, configured to acquire a third bandwidth corresponding to a third data packet received by the first switch, wherein the third data packet is forwarded by the second switch;
[0060] a second control module, configured to control the second data packet forwarded by the first switch to the second switch according to the second bandwidth and a second preset bandwidth threshold;
[0061] The third control module is configured to control the third data packet received by the first switch according to the third bandwidth and a third preset bandwidth threshold.
[0062] Optionally, the second data packet includes a second multicast packet or the third data packet includes a third multicast packet, and the device further includes:
[0063] a fourth acquisition module, configured to acquire a second proportion of the bandwidth of the second data packet occupied by the second multicast packet, or to acquire a third proportion of the bandwidth of the third data packet occupied by the third multicast packet;
[0064] a fourth control module, configured to control the second data packet forwarded by the first switch to the second switch according to the second ratio and a first preset ratio threshold;
[0065] The fifth control module is used to control the third data packet received by the first switch according to the third ratio and the second preset ratio threshold.
[0066] The embodiment of the present invention further discloses a data transmission control device, including:
[0067] one or more processors; and
[0068] One or more computer-readable media having instructions stored thereon, when executed by the one or more processors, enable the device to execute the data transmission control method as described in any one of the embodiments of the present invention.
[0069] The embodiment of the present invention further discloses a computer-readable storage medium, wherein the computer program stored in the storage medium enables a processor to execute the data transmission control method as described in the embodiment of the present invention.
[0070] The embodiments of the present invention include the following advantages:
[0071] In this embodiment, when the first data packet forwarded by the first switch is detected, the first data parameter corresponding to the first data packet is obtained, and the first data packet is controlled according to the first data parameter and the first preset control rule. In this way, when the sub-control server receives the first data packet forwarded by the first switch, the first data packet sent by the visual network terminal can be effectively controlled, thereby alleviating the problem of tight bandwidth resources in the visual network and improving the reliability and stability of data transmission in the visual network. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 It is a connection relationship diagram of a visual networking device provided by an embodiment of the present invention;
[0073] Figure 2 It is a network topology diagram provided by an embodiment of the present invention;
[0074] Figure 3 is a flowchart of a data transmission control method provided by an embodiment of the present invention;
[0075] Figure 4 is a structural block diagram of a data transmission control device provided by an embodiment of the present invention;
[0076] Figure 5 It is a networking schematic diagram of a visual network of the present invention;
[0077] Figure 6 It is a schematic diagram of the hardware structure of a node server of the present invention;
[0078] Figure 7 It is a schematic diagram of the hardware structure of an access switch of the present invention;
[0079] Figure 8 It is a hardware structure diagram of an Ethernet protocol conversion gateway of the present invention. DETAILED DESCRIPTION
[0080] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0081] Please refer to Figure 1 , Figure 1 It is a diagram of the connection relationship between visual networking devices, such as Figure 1 As shown, a network management server, an autonomous server, a visual network sub-control server and several visual network terminals are deployed in the visual network. The visual network sub-control server is communicatively connected to the autonomous server, the autonomous server is communicatively connected to the network management server, and the network management server is communicatively connected to the network management client, wherein the network management client does not need to be deployed in the visual network environment.
[0082] The following is a brief description of the commonly used devices in the visual networking environment:
[0083] Autonomous server: The management core of the visual network. Its main functions include managing and registering devices, implementing the business logic of the visual network within and between management domains, and communicating with the management network of the visual network to achieve higher-level management.
[0084] Visual network sub-control server: a visual network controller that integrates visual network audio and video forwarding, set-top box control, registration and other functions.
[0085] Visual network terminal: the equipment for implementing online visual network services, the actual participant or service provider of visual network services, including various conference set-top boxes, videophone set-top boxes, surgical trial teaching set-top boxes, streaming media gateways, storage gateways, media synthesizers, etc. Visual network terminals need to be registered with the visual network server before they can perform normal services.
[0086] Network management server: The core device in the visual network, which controls the activation of visual network server services, terminal registration and other operations. It is the "brain" of the visual network and provides a UI interface for client calls.
[0087] Please refer to Figure 2 , Figure 2 It is a network topology diagram between the visual networking terminal, switch and visual networking sub-control server. Figure 2 In the network topology diagram shown in the figure, multiple switches are deployed in the visual network ( Figure 2 Taking four switches as an example), each switch can be connected to one or more visual network sub-control servers ( Figure 2 In this example, a switch is connected to a video network sub-control server), and one or more video network terminals ( Figure 2 In this example, a visual networking terminal is connected to a switch. At the same time, each switch can be connected to other switches ( Figure 2 In the example, switch 1 is connected to switches 2-4 respectively. When data is transmitted between visual networking terminals registered on the same switch, the data sent by a visual networking terminal is forwarded to the visual networking sub-control server through the switch, and then forwarded to another visual networking terminal by the visual networking sub-control server. When data is sent across sub-control servers, the data sent by a visual networking terminal will be forwarded to the switch of another sub-control server through the switch.
[0088] In the visual networking environment, data transmission (including business data transmission and control data transmission) will continue between visual networking terminals (terminals for short), visual networking sub-control servers, switches and other devices. With the continuous development of visual networking services, the number of visual networking terminals is also increasing, which leads to the gradual shortage of visual networking bandwidth resources. If the data transmission between terminals and visual networking sub-control servers and other devices is not controlled, the visual networking environment is prone to network congestion, instantaneous peaks, resource competition and other problems. These problems will affect normal terminal services, or cause control commands to fail to interact normally, affecting the reliability and stability of visual networking data transmission.
[0089] Based on the defects of the above-mentioned related technologies, one of the core concepts of the embodiments of the present invention is proposed, which is to control the data transmission of the visual network terminals registered under the visual network sub-control server, and control the data transmission between the switches connected to the visual network sub-control server, so as to effectively utilize bandwidth resources, ensure the normal operation of the business, and ensure the reliability and stability of data transmission.
[0090] Please refer to Figure 3 , Figure 3 A flowchart of a data transmission control method provided by an embodiment of the present invention is shown. The method is applied to a visual network sub-control server, wherein the visual network sub-control server is connected to a first switch, and the first switch is connected to a visual network terminal. Figure 3 As shown, the method may specifically include the following steps:
[0091] Step S31, when detecting a first data packet forwarded by the first switch, obtaining a first data parameter corresponding to the first data packet, wherein the first data packet is a data packet sent by a single visual networking terminal to the first switch.
[0092] Step S32: Control the first data packet according to the first data parameter and a first preset control rule.
[0093] In this embodiment, the visual networking terminal is connected to the first switch in communication, and the first switch is connected to the visual networking terminal in communication. The visual networking terminal can send the first data packet generated by itself to the first switch. After receiving the first data packet sent by the visual networking terminal, the first switch can forward the first data packet to the visual networking sub-control server. At this time, the visual networking sub-control server can detect and obtain the first data parameter corresponding to the first data packet. In this embodiment, the first data packet may include business data or control data.
[0094] In this embodiment, the first switch can be connected to multiple visual network terminals. The first switch forwards the first data packet sent by each visual network terminal to the visual network sub-control server. The visual network sub-control server obtains the first data parameter for the first data packet generated by each visual network terminal. After obtaining the first data parameter of each first data packet, the visual network sub-control server controls the first data packet according to each first data parameter and the first preset control rule. That is to say, it determines which first data packets sent by visual network terminals correspond to the first data parameters that meet the first preset control rule, and which first data packets sent by visual network terminals correspond to the first data parameters that do not meet the first preset control rule, thereby controlling the corresponding first data packets. For example, the visual network forwards the first data packet that meets the first preset control rule, or refuses to receive the first data packet that does not meet the first preset control rule.
[0095] By adopting the method of the embodiment of the present invention, when the first data packet forwarded by the first switch is detected, the first data parameter corresponding to the first data packet is obtained, and the first data packet is controlled according to the first data parameter and the first preset control rule. In this way, when the sub-control server receives the first data packet forwarded by the first switch, the first data packet sent by the visual network terminal can be effectively controlled, such as forwarding or rejecting the first data packet, thereby alleviating the problem of tight bandwidth resources in the visual network and improving the reliability and stability of data transmission in the visual network.
[0096] Continue to refer Figure 1 In the embodiment of the present invention, Figure 1As shown, the visual network sub-control server is communicatively connected with the autonomous server, the autonomous server is communicatively connected with the network management server, and the network management server is communicatively connected with the network management client. In the above step S31: before controlling the first data packet according to the first data parameter and the first preset control rule, the data transmission control method of this embodiment may further specifically include the step of receiving the first preset control rule sent by the autonomous server.
[0097] The first preset control rule is generated by the network management server according to the first configuration parameter sent by the network management client, and sent to the autonomous server.
[0098] In this embodiment, a set of network management software can be designed, adopting a C / S architecture. The autonomous server is operated through the management software, and the sub-control server and the visual network terminal in the visual network link are controlled through the autonomous server. Specifically, the operation and maintenance personnel can operate the software operation interface provided by the network management client, edit the first configuration parameter, and send the first configuration parameter to the network management server through the network management client. The network management server generates a first preset control rule according to the first configuration parameter, and sends the first preset control rule to the autonomous server. The autonomous server then sends the first preset control rule to the sub-control server. After receiving the first preset control rule, the sub-control server can control the first data packet according to the first preset control rule.
[0099] In one implementation, after receiving the first preset control rule, the autonomous server may save the first preset control rule on a hard disk, so that the autonomous server will not lose the first preset rule due to restart.
[0100] In one implementation, the first data parameter may specifically be a first bandwidth. The data transmission control method provided in this embodiment may specifically include the following steps:
[0101] Step S41: Acquire a first bandwidth corresponding to the first data packet.
[0102] Step S42A: when the first bandwidth is greater than a first preset bandwidth threshold, reject the first data packet forwarded by the first switch.
[0103] Step S42B: forwarding the first data packet forwarded by the first switch when the first bandwidth is less than or equal to the first preset bandwidth threshold.
[0104] In this embodiment, the visual network sub-control server can obtain the first bandwidth corresponding to the first data packet generated by each visual network terminal. After obtaining the first bandwidth, the first bandwidth is compared with the first preset threshold. If the first bandwidth is greater than the first preset threshold, it means that the bandwidth occupied by a certain visual network terminal is too large. At this time, the visual network sub-control server can reject the first data packet sent by the visual network terminal to the first switch and then forwarded by the first switch to the visual network sub-control server, that is, reject the service request of the visual network terminal; if the first bandwidth is less than the first preset threshold, it means that the bandwidth occupied by a certain visual network terminal meets the bandwidth restriction requirement. At this time, the visual network sub-control server can receive and forward the first data packet sent by the visual network terminal to the first switch and then forwarded by the first switch to the visual network sub-control server, so that the visual network terminal can perform business normally.
[0105] In one implementation, the first bandwidth may specifically include a receiving bandwidth, a sending bandwidth, and a percentage of bandwidth occupied by multicast packets and unicast packets.
[0106] In this embodiment, by obtaining the first bandwidth corresponding to the first data packet sent by the visual network terminal, and controlling the forwarding and rejection of the first data packet according to the obtained first bandwidth and the first preset bandwidth threshold, the bandwidth of a single terminal can be limited, thereby avoiding competition for bandwidth resources among terminals in the visual network and alleviating the problem of resource shortage in the visual network.
[0107] In one implementation, the sub-control server may include a flow control queue and a leaky bucket queue, the first data parameter may specifically be flow, and the data transmission control method provided in this embodiment may specifically include the following steps:
[0108] Step S51, obtaining the flow corresponding to the first data packet sent by each visual networking terminal in the pre-configured flow control queue.
[0109] Step S52, sending the traffic corresponding to the first data packet sent by each of the visual networking terminals to the leaky bucket queue.
[0110] Step S53: forwarding the data packets in the leaky bucket queue according to the output speed of the leaky bucket queue.
[0111] Step S54, accumulating the flow of the first data packet sent by each visual networking terminal in the flow control queue to obtain the accumulated flow.
[0112] Step S55, when the accumulated traffic exceeds the capacity of the leaky bucket queue, reject the first data packet sent by any visual networking terminal in the traffic control queue.
[0113] In this embodiment, a visual networking terminal is pre-configured in the flow control queue, that is, the terminal that needs flow control is added to the flow control queue. Multiple flow control queues can be configured under the same visual networking sub-control server, and the same flow control queue can include multiple visual networking terminals.
[0114] The visual network sub-control server can obtain the traffic corresponding to the first data packet sent by each visual network terminal in the pre-configured traffic control queue. For example, the visual network sub-control server obtains the first traffic control queue, and there are 5 visual network terminals pre-configured in the first traffic control queue. Then, the visual network sub-control server can obtain the traffic corresponding to the first data packet sent by each of the 5 visual network terminals in the first traffic control queue.
[0115] In this embodiment, a leaky bucket queue is a queue in which the output speed is limited according to the rate limit of the previous line, while the input rate is not limited. However, the capacity of the leaky bucket queue is limited. Services that exceed the queue capacity limit will be rejected by the visual network sub-control server.
[0116] After obtaining the flow corresponding to the first data packet sent by each visual networking terminal in the flow control queue, the flow corresponding to the first data packet sent by each visual networking terminal can be sent to the leaky bucket queue, and the data packets in the leaky bucket queue are forwarded according to the output speed of the leaky bucket queue. At the same time, the flow added to the leaky bucket queue can be accumulated to obtain the accumulated flow.
[0117] Since the capacity of the leaky bucket queue is limited, in this embodiment, the accumulated traffic can be compared with the capacity of the leaky bucket queue. When the accumulated traffic exceeds the capacity of the leaky bucket queue, the first data packet sent by any visual networking terminal in the traffic control queue is rejected.
[0118] In one embodiment, the rejected first data packet can be temporarily stored and forwarded when the accumulated traffic is less than the capacity of the leaky bucket queue, or busy information can be directly fed back to the visual network terminal so that the visual network terminal user can understand the visual network network status and facilitate the user to cancel the service request.
[0119] In this embodiment, the leaky bucket queue can control the output rate of the first data packet sent by the visual network terminal in the flow control queue, that is, control the forwarding rate of the first data packet, thereby achieving peak shaving of the suddenly increased traffic and alleviating the instantaneous request pressure within the visual network. At the same time, the leaky bucket queue can also reject the first data packet subsequently sent by the visual network terminal in the flow control queue when the accumulated traffic is greater than the capacity of the leaky bucket queue, thereby ensuring the normal operation of other services.
[0120] In one embodiment, the flow control queue can be pre-configured by receiving configuration information sent by the autonomous server and according to the configuration information, wherein the configuration information is generated by the network management server according to the second configuration parameter sent by the network management client and sent to the autonomous server.
[0121] In this embodiment, the network management software of the C / S architecture can also be used. The operation and maintenance personnel operate the software operation interface provided by the network management client to edit the second configuration parameter, and send the second configuration parameter to the network management server through the network management client. The network management server generates configuration information according to the second configuration parameter, and sends the configuration information to the autonomous server, and then the autonomous server sends the configuration information to the sub-control server. After receiving the configuration information, the sub-control server can pre-configure the traffic control queue according to the configuration information.
[0122] In one implementation, configuring the flow control queue according to the configuration information may specifically include: enabling, disabling, adding, editing, deleting, or querying the flow control queue according to the configuration information.
[0123] In this embodiment, enabling refers to starting the flow control queue, that is, sending the traffic corresponding to the first data packet sent by each visual network terminal inside it to the leaky bucket queue for processing; disabling refers to closing the flow control queue, that is, not sending the traffic corresponding to the first data packet sent by each visual network terminal inside the flow control queue to the leaky bucket queue; adding refers to adding a flow control queue; deleting refers to deleting a flow control queue; editing refers to adding or deleting visual network terminals in the flow control queue; querying refers to querying the status of visual network terminals in the flow control queue.
[0124] In this implementation, by configuring the flow control queue, the flow control queue can be flexibly managed according to actual conditions to adapt to various visual network environments and further ensure the smooth operation of the visual network.
[0125] In one implementation, the first switch is in communication connection with the second switch, the first switch is pre-set with a packet queue, the packet queue includes at least one visual network sub-control server, and the data transmission control method provided in this embodiment may further include the following steps:
[0126] Step S61, obtaining a second bandwidth corresponding to a second data packet forwarded by the first switch to the second switch, where the second data packet is sent by the visual network sub-control server in the packet queue to the first switch.
[0127] Step S62: Obtain a third bandwidth corresponding to a third data packet received by the first switch, where the third data packet is forwarded by the second switch.
[0128] Step S63: Control the second data packet forwarded by the first switch to the second switch according to the second bandwidth and a second preset bandwidth threshold.
[0129] Step S64: Controlling the third data packet received by the first switch according to the third bandwidth and the third preset bandwidth threshold.
[0130] In this embodiment, a packet queue can be set in advance, and the visual network sub-control server in the packet queue is connected to the first switch for communication. The data packets forwarded by all visual network sub-control servers in the packet queue to the second switch through the first switch together constitute a second data packet, wherein any visual network sub-control server can obtain the second bandwidth corresponding to the second data packet forwarded by the first switch to the second switch, that is, obtain the sending bandwidth of the first switch. After obtaining the second bandwidth, the second data packet forwarded by the first switch to the second switch can be controlled according to the second bandwidth and the second preset bandwidth threshold. Controlling the second data packet forwarded by the first switch to the second switch can specifically include rejecting the second data packet or forwarding the second data packet.
[0131] Similarly, another packet queue can be set in advance, and the visual network sub-control server in the packet queue is connected to the second switch for communication. The data packets forwarded by all visual network sub-control servers in the packet queue to the first switch through the second switch together constitute a third data packet. The visual network sub-control server connected to the first switch can obtain the third bandwidth corresponding to the third data packet, that is, obtain the receiving bandwidth of the first switch. After obtaining the third bandwidth, the third data packet received by the first switch can be controlled according to the third bandwidth and the third preset bandwidth threshold. Controlling the third data packet received by the first switch can specifically include rejecting the third data packet or forwarding the third data packet.
[0132] By adopting the method of the embodiment of the present invention, by obtaining the sending bandwidth of the first switch and the receiving bandwidth of the first switch, controlling the second data packet forwarded by the first switch to the second switch according to the second bandwidth and the second preset bandwidth threshold, and controlling the third data packet received by the first switch according to the third bandwidth and the third preset bandwidth threshold, the bandwidth rate limitation between switches can be implemented, further ensuring the smooth operation of the visual network and improving the reliability and stability of the visual network data transmission.
[0133] In one implementation, the second data packet may include a second multicast packet, or the third data packet may include a third multicast packet. The data transmission control method provided in this embodiment may further include the following steps:
[0134] Step S65: obtaining a second proportion of the bandwidth of the second data packet occupied by the second multicast packet, or obtaining a third proportion of the bandwidth of the third data packet occupied by the third multicast packet.
[0135] Step S66: Control the second data packet forwarded by the first switch to the second switch according to the second ratio and the first preset ratio threshold.
[0136] Step S67: Controlling the third data packet received by the first switch according to the third ratio and the second preset ratio threshold.
[0137] In this embodiment, the visual network sub-control server connected to the first switch can also obtain the second proportion of the bandwidth of the second data packet occupied by the second multicast packet, or obtain the third proportion of the bandwidth of the third data packet occupied by the third multicast packet. After obtaining the second proportion, the second data packet forwarded by the first switch to the second switch can be controlled according to the second proportion and the first preset proportion threshold. After obtaining the third proportion, the third data packet received by the first switch can be controlled according to the third proportion and the second preset proportion threshold.
[0138] In this embodiment, the second ratio, the first preset ratio threshold, the third ratio and the second ratio threshold can all be configured by the operation and maintenance personnel editing parameters in the software operation interface provided by the network management client.
[0139] By adopting the method of the embodiment of the present invention, by obtaining the second proportion of the bandwidth of the second data packet occupied by the second multicast packet, or obtaining the third proportion of the bandwidth of the third data packet occupied by the third multicast packet, the second data packet forwarded by the first switch to the second switch is controlled according to the second proportion and the first preset proportion threshold, and the third data packet received by the first switch is controlled according to the third proportion and the second preset proportion threshold, which can further realize bandwidth rate limitation between switches, further ensure the smooth operation of the visual network, and improve the reliability and stability of visual network data transmission.
[0140] When the first data packet forwarded by the first switch is detected, the first data parameter corresponding to the first data packet is obtained, and the first data packet is controlled according to the first data parameter and the first preset control rule. In this way, when the sub-control server receives the first data packet forwarded by the first switch, the first data packet sent by the visual network terminal can be effectively controlled, such as forwarding or rejecting the first data packet, thereby alleviating the problem of tight bandwidth resources in the visual network and improving the reliability and stability of data transmission in the visual network.
[0141] Based on the same technical concept, please refer to Figure 4 , Figure 4 A data transmission control device 40 according to an embodiment of the present invention is shown. The device is applied to a visual network sub-control server. The visual network sub-control server is connected to a first switch in communication. The first switch is connected to a visual network terminal in communication. The device includes:
[0142] A first acquisition module 41 is used to acquire a first data parameter corresponding to a first data packet when detecting a first data packet forwarded by the first switch, wherein the first data packet is a data packet sent by a single visual networking terminal to the first switch;
[0143] The first control module 42 is used to control the first data packet according to the first data parameter and a first preset control rule.
[0144] Optionally, the visual network sub-control server is communicatively connected to the autonomous server, the autonomous server is communicatively connected to the network management server, the network management server is communicatively connected to the network management client, and the device further includes:
[0145] The first receiving module is used to receive the first preset control rule sent by the autonomous server, where the first preset control rule is generated by the network management server according to the first configuration parameter sent by the network management client and sent to the autonomous server.
[0146] Optionally, the first data parameter includes a first bandwidth, and the first acquisition module includes:
[0147] A first acquisition submodule, used to acquire a first bandwidth corresponding to the first data packet;
[0148] The first control module comprises:
[0149] A first rejection submodule, configured to reject the first data packet forwarded by the first switch when the first bandwidth is greater than a first preset bandwidth threshold;
[0150] The first forwarding submodule is configured to forward a first data packet forwarded by the first switch when the first bandwidth is less than or equal to the first preset bandwidth threshold.
[0151] Optionally, the sub-control server includes a flow control queue and a leaky bucket queue, the first data parameter includes flow, and the first acquisition module includes:
[0152] A second acquisition submodule is used to acquire the flow corresponding to the first data packet sent by each visual network terminal in the pre-configured flow control queue;
[0153] The first control module comprises:
[0154] A sending submodule, used for sending the traffic corresponding to the first data packet sent by each of the visual networking terminals to the leaky bucket queue;
[0155] A second forwarding submodule, configured to forward data packets in the leaky bucket queue according to an output speed of the leaky bucket queue;
[0156] An accumulation submodule, used for accumulating the flow of the first data packet sent by each visual network terminal in the flow control queue to obtain the accumulated flow;
[0157] The second rejection submodule is used to reject the first data packet sent by any visual networking terminal in the flow control queue when the accumulated flow exceeds the capacity of the leaky bucket queue.
[0158] Optionally, the device further comprises:
[0159] A second receiving module, configured to receive configuration information sent by the autonomous server, wherein the configuration information is generated by the network management server according to the second configuration parameter sent by the network management client and sent to the autonomous server;
[0160] A configuration module is used to configure the flow control queue according to the configuration information.
[0161] Optionally, the configuration module is further used to enable, disable, add, edit, delete or query the flow control queue according to the configuration information.
[0162] Optionally, the first switch is communicatively connected to the second switch, the first switch is pre-set with a packet queue, the packet queue includes at least one visual network sub-control server, and the device further includes:
[0163] A second acquisition module, configured to acquire a second bandwidth corresponding to a second data packet forwarded by the first switch to the second switch, wherein the second data packet is sent by the visual network sub-control server in the packet queue to the first switch;
[0164] A third acquisition module, configured to acquire a third bandwidth corresponding to a third data packet received by the first switch, wherein the third data packet is forwarded by the second switch;
[0165] a second control module, configured to control the second data packet forwarded by the first switch to the second switch according to the second bandwidth and a second preset bandwidth threshold;
[0166] The third control module is configured to control the third data packet received by the first switch according to the third bandwidth and a third preset bandwidth threshold.
[0167] Optionally, the second data packet includes a second multicast packet or the third data packet includes a third multicast packet, and the device further includes:
[0168] a fourth acquisition module, configured to acquire a second proportion of the bandwidth of the second data packet occupied by the second multicast packet, or to acquire a third proportion of the bandwidth of the third data packet occupied by the third multicast packet;
[0169] a fourth control module, configured to control the second data packet forwarded by the first switch to the second switch according to the second ratio and a first preset ratio threshold;
[0170] The fifth control module is used to control the third data packet received by the first switch according to the third ratio and the second preset ratio threshold.
[0171] The embodiment of the present invention further provides a data transmission control device, including:
[0172] one or more processors; and
[0173] One or more computer-readable media having instructions stored thereon, when executed by the one or more processors, enable the device to execute the data transmission control method as described in any one of the embodiments of the present invention.
[0174] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program that enables a processor to execute the data transmission control method as described in the embodiment of the present invention.
[0175] As for the data transmission control device embodiment, since it is basically similar to the data transmission control method embodiment, the description is relatively simple, and the relevant parts may refer to the partial description of the data transmission control method embodiment.
[0176] The visual networking technology used in this application will be described in detail below.
[0177] The visual Internet is an important milestone in the development of the Internet. It is a real-time network that can realize real-time transmission of high-definition video and push many Internet applications towards high-definition video and high-definition face-to-face communication.
[0178] The visual network adopts real-time high-definition video exchange technology. It can integrate the required services such as high-definition video conferencing, video monitoring, intelligent monitoring analysis, emergency command, digital radio and television, delayed TV, online teaching, live broadcast, VOD on demand, TV mail, personalized recording (PVR), intranet (self-operated) channels, intelligent video broadcast control, information release and dozens of other video, voice, picture, text, communication, data and other services on a single system platform, and realize high-definition quality video playback through TV or computer.
[0179] In order to enable those skilled in the art to better understand the embodiments of the present invention, the visual network is introduced as follows:
[0180] Some of the technologies used in the visual Internet of Things are as follows:
[0181] Network Technology
[0182] The network technology innovation of Visual Networking improves the traditional Ethernet to cope with the huge potential first video traffic on the network. Different from simple network packet switching (Packet Switching) or network circuit switching (Circuit Switching), Visual Networking technology uses Packet Switching to meet the streaming needs. Visual Networking technology has the flexibility, simplicity and low price of packet switching, and the quality and security guarantee of circuit switching, realizing the seamless connection of the whole network switching virtual circuit and data format.
[0183] Switching Technology
[0184] Visual networking uses the two advantages of Ethernet: asynchronism and packet switching. It eliminates Ethernet defects under the premise of full compatibility, and has seamless end-to-end connection across the entire network, directly connects to user terminals, and directly carries IP data packets. User data does not require any format conversion within the entire network. Visual networking is a more advanced form of Ethernet and a real-time switching platform that can achieve large-scale real-time transmission of high-definition video across the entire network, which is currently unattainable on the Internet, and pushes many network video applications towards high definition and unification.
[0185] Server Technology
[0186] The server technology on the visual network and unified video platform is different from the traditional server. Its streaming media transmission is based on connection-oriented. Its video window movement capability is independent of traffic and communication time. A single network layer can include signaling and data transmission. For voice and video services, the complexity of streaming media processing on the visual network and unified video platform is much simpler than video window movement, and the efficiency is more than 100 times higher than that of traditional servers.
[0187] Storage Technology
[0188] The ultra-high-speed storage technology of the unified video platform adopts the most advanced real-time operating system to adapt to the media content with ultra-large capacity and ultra-large flow, mapping the program information in the server command to the specific hard disk space. The media content no longer passes through the server, but is directly delivered to the user terminal in an instant. The user generally waits for less than 0.2 seconds. The optimized sector distribution greatly reduces the mechanical movement of the hard disk head seeking, and the resource consumption accounts for only 20% of the same level of IP Internet, but it generates 3 times more concurrent traffic than the traditional hard disk array, and the overall efficiency is improved by more than 10 times.
[0189] Network Security Technology
[0190] The structural design of the visual network completely eradicates the network security issues that plague the Internet through separate licensing for each service and complete isolation of equipment and user data. Generally, anti-virus programs and firewalls are not required, and attacks by hackers and viruses are eliminated, providing users with a structurally worry-free and secure network.
[0191] Service Innovation Technology
[0192] The unified video platform integrates services and transmission. Whether it is a single user, a private network user or a network, it is just an automatic connection. User terminals, set-top boxes or PCs are directly connected to the unified video platform to obtain rich and colorful multimedia video services in various forms. The unified video platform uses a "recipe-style" table configuration mode to replace traditional complex application programming. Complex applications can be implemented with very little code, realizing "unlimited" new business innovation.
[0193] The networking of the visual network is as follows:
[0194] Visual networking is a centrally controlled network structure. The network can be a tree network, star network, ring network, etc., but on this basis, there needs to be a centralized control node in the network to control the entire network.
[0195] like Figure 5 As shown in the figure, the visual network is divided into two parts: access network and metropolitan area network.
[0196] The equipment in the access network can be divided into three categories: node server, access switch, and terminal (including various set-top boxes, encoding boards, storage, etc.). The node server is connected to the access switch, and the access switch can be connected to multiple terminals and can be connected to Ethernet.
[0197] The node server is a node in the access network that performs centralized control functions and can control access switches and terminals. The node server can be directly connected to the access switch or directly connected to the terminal.
[0198] Similarly, the devices in the metropolitan area network can also be divided into three categories: metropolitan area servers, node switches, and node servers. The metropolitan area servers are connected to the node switches, and the node switches can be connected to multiple node servers.
[0199] The node server is a node server of the access network part, that is, the node server belongs to both the access network part and the metropolitan area network part.
[0200] The metropolitan area server is a node with centralized control function in the metropolitan area network, which can control the node switch and node server. The metropolitan area server can be directly connected to the node switch or the node server.
[0201] It can be seen from this that the entire visual network is a hierarchical and centrally controlled network structure, and the network controlled by the node server and the metropolitan area server can be a tree, star, ring and other structures.
[0202] Figuratively speaking, the access network part can form a unified video platform (the part in the dotted circle), and multiple unified video platforms can form a visual network; each unified video platform can be interconnected through the metropolitan area and wide area visual networks.
[0203] Visual networking equipment classification
[0204] 1.1 The devices in the visual network of the embodiment of the present invention can be mainly divided into three categories: servers, switches (including Ethernet protocol conversion gateways), terminals (including various set-top boxes, encoding boards, storage devices, etc.). The visual network as a whole can be divided into a metropolitan area network (or a national network, a global network, etc.) and an access network.
[0205] 1.2 The equipment in the access network can be mainly divided into three categories: node server, access switch (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, encoding boards, storage, etc.).
[0206] The specific hardware structure of each access network device is as follows:
[0207] Node server:
[0208] like Figure 6 As shown, it mainly includes a network interface module 601, a switching engine module 602, a CPU module 603, and a disk array module 604;
[0209] Among them, the packets coming from the network interface module 601, the CPU module 603, and the disk array module 604 all enter the switching engine module 602; the switching engine module 602 performs an operation of checking the address table 605 on the incoming packets, thereby obtaining the packet's guidance information; and according to the packet's guidance information, the packet is stored in the queue of the corresponding packet buffer 606; if the queue of the packet buffer 606 is close to full, it is discarded; the switching engine module 602 polls all packet buffer queues, and forwards if the following conditions are met: 1) the port sending buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 604 mainly implements the control of the hard disk, including the initialization, reading and writing of the hard disk; the CPU module 603 is mainly responsible for the protocol processing between the access switch and the terminal (not shown in the figure), the configuration of the address table 605 (including the downstream protocol packet address table, the upstream protocol packet address table, and the data packet address table), and the configuration of the disk array module 604.
[0210] Access switch:
[0211] like Figure 7 As shown, it mainly includes a network interface module (a downlink network interface module 701, an uplink network interface module 702), a switching engine module 703 and a CPU module 704;
[0212] Among them, the packet (uplink data) coming from the downlink network interface module 701 enters the packet detection module 705; the packet detection module 705 detects whether the destination address (DA), source address (SA), data packet type and packet length of the packet meet the requirements. If they meet the requirements, the corresponding stream identifier (stream-id) is allocated and enters the switching engine module 703, otherwise it is discarded; the packet (downlink data) coming from the uplink network interface module 702 enters the switching engine module 703; the data packet coming from the CPU module 704 enters the switching engine module 703; the switching engine module 703 processes the incoming packet The address table 706 is looked up to obtain the packet's guidance information; if the packet entering the switching engine module 703 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 707 in combination with the stream identifier (stream-id); if the queue of the packet buffer 707 is nearly full, it is discarded; if the packet entering the switching engine module 703 is not from the downstream network interface to the upstream network interface, the data packet is stored in the queue of the corresponding packet buffer 707 according to the packet's guidance information; if the queue of the packet buffer 707 is nearly full, it is discarded.
[0213] The switching engine module 703 polls all packet buffer queues, which may include two situations:
[0214] If the queue is from the downlink network interface to the uplink network interface, it is forwarded if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero; 3) a token generated by the bit rate control module is obtained;
[0215] If the queue is not going from the downstream network interface to the upstream network interface, it is forwarded if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
[0216] The code rate control module 708 is configured by the CPU module 704 to generate tokens for all packet buffer queues from the downstream network interface to the upstream network interface within a programmable interval to control the code rate of the upstream forwarding.
[0217] The CPU module 704 is mainly responsible for protocol processing with the node server, configuration of the address table 706 , and configuration of the bit rate control module 708 .
[0218] Ethernet protocol conversion gateway :
[0219] like Figure 8 As shown, it mainly includes a network interface module (a downlink network interface module 801, an uplink network interface module 802), a switching engine module 803, a CPU module 804, a packet detection module 805, a bit rate control module 808, an address table 806, a packet buffer 807, a MAC adding module 809, and a MAC deleting module 810.
[0220] The data packet from the downlink network interface module 801 enters the packet detection module 805; the packet detection module 805 detects whether the Ethernet MAC DA, Ethernet MAC SA, Ethernet length or frame type, visual network destination address DA, visual network source address SA, visual network data packet type and packet length of the data packet meet the requirements, and if they meet the requirements, the corresponding stream identifier (stream-id) is assigned; then, the MAC deletion module 810 subtracts the MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise it is discarded;
[0221] The downstream network interface module 801 detects the sending buffer of the port. If there is a packet, it obtains the Ethernet MAC DA of the corresponding terminal based on the visual network destination address DA of the packet, adds the Ethernet MAC DA of the terminal, the MACSA of the Ethernet protocol conversion gateway, and the Ethernet length or frame type, and sends it.
[0222] The functions of other modules in the Ethernet protocol conversion gateway are similar to those of the access switch.
[0223] terminal:
[0224] It mainly includes network interface module, business processing module and CPU module; for example, the set-top box mainly includes network interface module, audio and video encoding and decoding engine module, CPU module; the encoding board mainly includes network interface module, audio and video encoding engine module, CPU module; the memory mainly includes network interface module, CPU module and disk array module.
[0225] 1.3 The equipment in the metropolitan area network can be divided into two categories: node server, node switch, and metropolitan area server. Among them, the node switch mainly includes network interface module, switching engine module and CPU module; the metropolitan area server mainly includes network interface module, switching engine module and CPU module.
[0226] 2. Definition of Visual Network Data Packet
[0227] 2.1 Access Network Data Packet Definition
[0228] The data packet of the access network mainly includes the following parts: destination address (DA), source address (SA), reserved bytes, payload (PDU), and CRC.
[0229] As shown in the following table, the data packet of the access network mainly includes the following parts:
[0230] DA S Reserved Payload CRC
[0231] in:
[0232] The destination address (DA) consists of 8 bytes. The first byte indicates the type of data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), with a maximum of 256 possibilities. The second to sixth bytes are the metropolitan area network address, and the seventh and eighth bytes are the access network address.
[0233] The source address (SA) is also composed of 8 bytes and has the same definition as the destination address (DA).
[0234] The reserved bytes consist of 2 bytes;
[0235] The payload part has different lengths depending on the type of datagram. If it is a protocol packet, it is 64 bytes. If it is a single multicast data packet, it is 32+1024=1056 bytes. Of course, it is not limited to the above two types.
[0236] CRC consists of 4 bytes and its calculation method follows the standard Ethernet CRC algorithm.
[0237] 2.2 Definition of Metropolitan Area Network Data Packet
[0238] The topology of the metropolitan area network is a graph. There may be two or more connections between two devices, that is, there may be more than two connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metropolitan area network address of a metropolitan area network device is unique. In order to accurately describe the connection relationship between metropolitan area network devices, a parameter: a label is introduced in the embodiment of the present invention to uniquely describe a metropolitan area network device.
[0239] The definition of labels in this manual is similar to the definition of labels in MPLS (Multi-Protocol Label Switch). Assuming that there are two connections between device A and device B, there are two labels for the data packet from device A to device B, and there are two labels for the data packet from device B to device A. Labels are divided into input labels and output labels. Assuming that the label of the data packet entering device A (input label) is 0x0000, the label of the data packet when leaving device A (output label) may become 0x0001. The access process of the metropolitan area network is a centralized access process, which means that the address allocation and label allocation of the metropolitan area network are dominated by the metropolitan area server, and the node switch and node server are only passively executed. This is different from the label allocation of MPLS, which is the result of mutual negotiation between the switch and the server.
[0240] As shown in the following table, the data packets of the metropolitan area network mainly include the following parts:
[0241] DA S Reserved Label Payload CRC
[0242] That is, destination address (DA), source address (SA), reserved byte (Reserved), label, payload (PDU), CRC. The label format can refer to the following definition: the label is 32 bits, of which the upper 16 bits are reserved and only the lower 16 bits are used. It is located between the reserved bytes and payload of the data packet.
[0243] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0244] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0245] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0246] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0247] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0248] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0249] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0250] The above is a detailed introduction to a data transmission control method, a data transmission control device and a computer-readable storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A data transmission control method, characterized in that: Applied to a visual network sub-control server, the visual network sub-control server is connected to a first switch in communication, the first switch is connected to a visual network terminal in communication, the first switch is connected to a second switch in communication, the first switch is pre-set with a packet queue, the packet queue includes at least one visual network sub-control server, the method includes: When a first data packet forwarded by the first switch is detected, a first data parameter corresponding to the first data packet is obtained, where the first data packet is a data packet sent by a single visual networking terminal to the first switch; Controlling the first data packet according to the first data parameter and a first preset control rule; The method further comprises: Obtaining a second bandwidth corresponding to a second data packet forwarded by the first switch to the second switch, where the second data packet is sent by the visual network sub-control server in the packet queue to the first switch; Acquire a third bandwidth corresponding to a third data packet received by the first switch, where the third data packet is forwarded by the second switch; According to the second bandwidth and the second preset bandwidth threshold, controlling the second data packet forwarded by the first switch to the second switch; the controlling the second data packet forwarded by the first switch to the second switch includes: rejecting the second data packet or forwarding the second data packet; According to the third bandwidth and the third preset bandwidth threshold, controlling the third data packet received by the first switch; the controlling the third data packet received by the first switch includes: rejecting the third data packet or forwarding the third data packet; The second data packet includes a second multicast packet or the third data packet includes a third multicast packet, and the method further includes: Acquire a second ratio of the bandwidth of the second data packet occupied by the second multicast packet, or acquire a third ratio of the bandwidth of the third data packet occupied by the third multicast packet; Controlling, according to the second ratio and a first preset ratio threshold, the second data packet forwarded by the first switch to the second switch; Controlling the third data packet received by the first switch according to the third ratio and the second preset ratio threshold; The second ratio, the first preset ratio threshold, the third ratio and the second ratio threshold are configured through the network management client.
2. The method according to claim 1, characterized in that The visual network sub-control server is connected to the autonomous server in communication, the autonomous server is connected to the network management server in communication, the network management server is connected to the network management client in communication, and before the first data packet is controlled according to the first data parameter and the first preset control rule, the method further includes: The first preset control rule sent by the autonomous server is received, where the first preset control rule is generated by the network management server according to the first configuration parameter sent by the network management client and sent to the autonomous server.
3. The method according to claim 1, characterized in that The first data parameter includes a first bandwidth, and the obtaining the first data parameter corresponding to the first data packet includes: Acquire a first bandwidth corresponding to the first data packet; The controlling the first data packet according to the first data parameter and the first preset control rule includes: When the first bandwidth is greater than a first preset bandwidth threshold, rejecting the first data packet forwarded by the first switch; When the first bandwidth is less than or equal to the first preset bandwidth threshold, the first data packet forwarded by the first switch is forwarded.
4. The method according to claim 1, characterized in that: The sub-control server includes a flow control queue and a leaky bucket queue, the first data parameter includes flow, and obtaining the first data parameter corresponding to the first data packet includes: Obtaining the flow corresponding to the first data packet sent by each visual networking terminal in the pre-configured flow control queue; The controlling the first data packet according to the first data parameter and the first preset control rule includes: Sending the traffic corresponding to the first data packet sent by each of the visual networking terminals to the leaky bucket queue; Forwarding the data packets in the leaky bucket queue according to the output speed of the leaky bucket queue; Accumulating the flow of the first data packet sent by each visual networking terminal in the flow control queue to obtain the accumulated flow; When the accumulated traffic exceeds the capacity of the leaky bucket queue, the first data packet sent by any visual networking terminal in the traffic control queue is rejected.
5. The method according to claim 4, characterized in that Before acquiring the traffic corresponding to the first data packet sent by each visual networking terminal in the pre-configured traffic control queue, the method further includes: Receiving configuration information sent by the autonomous server, where the configuration information is generated by the network management server according to the second configuration parameter sent by the network management client and sent to the autonomous server; The flow control queue is configured according to the configuration information.
6. The method according to claim 5, characterized in that The configuring the flow control queue according to the configuration information includes: The flow control queue is enabled, disabled, added, edited, deleted or queried according to the configuration information.
7. A data transmission control device, characterized in that: Applied to a visual network sub-control server, the visual network sub-control server is connected to a first switch in communication, the first switch is connected to a visual network terminal in communication, the first switch is connected to a second switch in communication, the first switch is pre-set with a packet queue, the packet queue includes at least one visual network sub-control server, the device includes: A first acquisition module, configured to acquire a first data parameter corresponding to a first data packet when detecting a first data packet forwarded by the first switch, wherein the first data packet is a data packet sent by a single visual networking terminal to the first switch; A first control module, configured to control the first data packet according to the first data parameter and a first preset control rule; The device also includes: A second acquisition module, configured to acquire a second bandwidth corresponding to a second data packet forwarded by the first switch to the second switch, wherein the second data packet is sent by the visual network sub-control server in the packet queue to the first switch; A third acquisition module, configured to acquire a third bandwidth corresponding to a third data packet received by the first switch, wherein the third data packet is forwarded by the second switch; a second control module, configured to control the second data packet forwarded by the first switch to the second switch according to the second bandwidth and a second preset bandwidth threshold; the controlling the second data packet forwarded by the first switch to the second switch includes: rejecting the second data packet or forwarding the second data packet; A third control module, configured to control a third data packet received by the first switch according to the third bandwidth and a third preset bandwidth threshold; the controlling the third data packet received by the first switch includes: rejecting the third data packet or forwarding the third data packet; The second data packet includes a second multicast packet or the third data packet includes a third multicast packet, and the device further includes: a fourth acquisition module, configured to acquire a second proportion of the bandwidth of the second data packet occupied by the second multicast packet, or to acquire a third proportion of the bandwidth of the third data packet occupied by the third multicast packet; a fourth control module, configured to control the second data packet forwarded by the first switch to the second switch according to the second ratio and a first preset ratio threshold; a fifth control module, configured to control the third data packet received by the first switch according to the third ratio and a second preset ratio threshold; The second ratio, the first preset ratio threshold, the third ratio and the second ratio threshold are configured through the network management client.
8. A data transmission control device, characterized in that: include: one or more processors; and One or more computer-readable media having instructions stored thereon, when executed by the one or more processors, enable the device to perform the data transmission control method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer program stored therein enables the processor to execute the data transmission control method as claimed in any one of claims 1 to 6.
