CN111131059A - Data transmission control method, device and computer readable storage medium - Google Patents
Data transmission control method, device and computer readable storage medium Download PDFInfo
- Publication number
- CN111131059A CN111131059A CN201911229400.9A CN201911229400A CN111131059A CN 111131059 A CN111131059 A CN 111131059A CN 201911229400 A CN201911229400 A CN 201911229400A CN 111131059 A CN111131059 A CN 111131059A
- Authority
- CN
- China
- Prior art keywords
- data packet
- switch
- data
- server
- control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 60
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000003860 storage Methods 0.000 title claims abstract description 16
- 230000006855 networking Effects 0.000 claims abstract description 77
- 238000004891 communication Methods 0.000 claims description 28
- 238000004590 computer program Methods 0.000 claims description 10
- 238000005516 engineering process Methods 0.000 description 23
- 238000010586 diagram Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 230000015654 memory Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 5
- 238000011144 upstream manufacturing Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 238000009825 accumulation Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 230000033001 locomotion Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 241000700605 Viruses Species 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000002155 anti-virotic effect Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 102220040592 rs587778386 Human genes 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/21—Flow control; Congestion control using leaky-bucket
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/29—Flow control; Congestion control using a combination of thresholds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/62—Queue scheduling characterised by scheduling criteria
- H04L47/622—Queue service order
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/80—Actions related to the user profile or the type of traffic
- H04L47/806—Broadcast or multicast traffic
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a data transmission control method, a data transmission control device and a computer readable storage medium, wherein the method comprises the following steps: when a first data packet forwarded by the first switch is detected, a first data parameter corresponding to the first data packet is obtained, wherein the first data packet is a data packet sent to the first switch by a single video networking terminal, and the first data packet is controlled according to the first data parameter and a first preset control rule. By adopting the data transmission control method, 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, so that when the sub-control server receives the first data packet forwarded by the first switch, the first data packet sent by the video networking terminal can be effectively controlled, the problem of video networking bandwidth resource shortage is relieved, and the reliability and stability of video networking data transmission are improved.
Description
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a data transmission control method, an apparatus, and a computer-readable storage medium.
Background
The video network is a tree-structured entity network formed by dividing regions, which is different from the existing internet, and the whole network does not use the traditional internet IP technology.
In the video networking environment, data transmission (including service data transmission and control data transmission) can be continuously performed between video networking terminals and video networking sub-control servers and other devices, and with the continuous development of video networking services, the number of terminals is increasing, so that video networking bandwidth resources are gradually tensed, and further, the video networking environment is prone to network congestion, instantaneous peak, resource contention and other problems. These problems may affect normal terminal services, or cause the control commands to interact normally, which affects the reliability and stability of data transmission in the video network.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are provided to provide a data transmission control method, apparatus, and computer-readable storage medium that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a data transmission control method, which is applied to a video networking sub-control server, wherein the video networking sub-control server is in communication connection with a first switch, and the first switch is in communication connection with a video networking terminal, and the method includes:
when a first data packet forwarded by the first switch is detected, acquiring a first data parameter corresponding to the first data packet, wherein the first data packet is a data packet sent to the first switch by a single video networking terminal;
and controlling the first data packet according to the first data parameter and a first preset control rule.
Optionally, the video network sub-control server is in communication connection with an autonomous server, the autonomous server is in communication connection with a network management server, the network management server is in communication connection with a network management client, and before the first data packet is controlled according to the first data parameter and a first preset control rule, the method further includes:
and receiving the first preset control rule sent by the autonomous server, wherein the first preset control rule is generated by the network management server according to a first configuration parameter sent by the network management client and is sent to the autonomous server.
Optionally, the obtaining the first data parameter corresponding to the first data packet includes:
acquiring a first bandwidth corresponding to the first data packet;
the controlling the first data packet according to the first data parameter and a first preset control rule includes:
rejecting a first data packet forwarded by the first switch when the first bandwidth is larger than a first preset bandwidth threshold;
and forwarding the first data packet forwarded by the first switch under the condition that the first bandwidth is smaller than or equal to the first preset bandwidth threshold.
Optionally, the sub-control server includes a flow control queue and a leaky bucket queue, where the first data parameter includes a flow, and the obtaining a first data parameter corresponding to the first data packet includes:
acquiring the flow corresponding to a first data packet sent by each video network terminal in a pre-configured flow control queue;
the controlling the first data packet according to the first data parameter and a first preset control rule includes:
sending the flow corresponding to the first data packet sent by each video network terminal to a leaky bucket queue;
forwarding the data packet 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 video network terminal in the flow control queue to obtain accumulated flow;
and when the accumulated flow exceeds the capacity of the leaky bucket queue, rejecting a first data packet sent by any video network terminal in the flow control queue.
Optionally, before the obtaining of the traffic corresponding to the first data packet sent by each video network terminal in the preconfigured traffic control queue, the method further includes:
receiving configuration information sent by an autonomous server, wherein the configuration information is generated by the network management server according to a second configuration parameter sent by the network management client and is sent to the autonomous server;
and configuring the flow control queue according to the configuration information.
Optionally, the configuring, according to the configuration information, the flow control queue includes:
and enabling, disabling, adding, editing, deleting or inquiring the flow control queue according to the configuration information.
Optionally, the first switch is communicatively connected to a second switch, the first switch is preset with a packet queue, the packet queue includes at least one view networking slave control server, and the method further includes:
acquiring a second bandwidth corresponding to a second data packet forwarded to the second switch by the first switch, wherein the second data packet is sent to the first switch by an internet of vision sub-control server in the packet queue;
acquiring 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;
controlling a second data packet forwarded to the second switch by the first switch according to the second bandwidth and a second preset bandwidth threshold;
and controlling a third data packet received by the first switch according to the third bandwidth and a third preset bandwidth threshold.
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:
acquiring a second proportion of the second multicast packet occupying the bandwidth of the second data packet, or acquiring a third proportion of the third multicast packet occupying the bandwidth of the third data packet;
controlling a second data packet forwarded to the second switch by the first switch according to the second proportion and a first preset proportion threshold value;
and controlling a third data packet received by the first switch according to the third proportion and a second preset proportion threshold value.
The embodiment of the invention also discloses a data transmission control device, which is applied to the sub-control servers of the video network, wherein the sub-control servers of the video network are in communication connection with the first switch, the first switch is in communication connection with the video network terminal, and the device comprises:
the first obtaining module is used for obtaining a first data parameter corresponding to a first data packet when the first data packet forwarded by the first switch is detected, wherein the first data packet is a data packet which is sent to the first switch by a single video networking terminal;
and the first control module is used for controlling the first data packet according to the first data parameter and a first preset control rule.
Optionally, the video network sub-control server is in communication connection with an autonomous server, the autonomous server is in communication connection with a network management server, the network management server is in communication connection with a network management client, and the apparatus further includes:
the first receiving module is configured 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 a first configuration parameter sent by the network management client and is sent to the autonomous server.
Optionally, the first data parameter includes a first bandwidth, and the first obtaining module includes:
the first obtaining submodule is used for obtaining a first bandwidth corresponding to the first data packet;
the first control module includes:
the first rejection submodule is used for rejecting the first data packet forwarded by the first switch under the condition that the first bandwidth is larger than a first preset bandwidth threshold value;
and the first forwarding sub-module is configured to forward the first data packet forwarded by the first switch when the first bandwidth is less than or equal to the first preset bandwidth threshold.
Optionally, the sub-control server includes a flow control queue and a leaky bucket queue, the first data parameter includes a flow, and the first obtaining module includes:
the second obtaining submodule is used for obtaining the flow corresponding to the first data packet sent by each video network terminal in the pre-configured flow control queue;
the first control module includes:
the sending submodule is used for sending the flow corresponding to the first data packet sent by each video network terminal to the leaky bucket queue;
the second forwarding submodule is used for forwarding the data packet in the leaky bucket queue according to the output speed of the leaky bucket queue;
the accumulation submodule is used for accumulating the flow of the first data packet sent by each video network terminal in the flow control queue to obtain the accumulated flow;
and the second rejecting submodule is used for rejecting the first data packet sent by any video network terminal in the flow control queue when the accumulated flow exceeds the capacity of the leaky bucket queue.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving configuration information sent by an autonomous server, wherein the configuration information is generated by the network management server according to a second configuration parameter sent by the network management client and is sent to the autonomous server;
and the configuration module is used for configuring the flow control queue according to the configuration information.
Optionally, the configuration module is further configured to enable, disable, add, edit, delete, or query the flow control queue according to the configuration information.
Optionally, the first switch is communicatively connected to a second switch, the first switch is preset with a packet queue, the packet queue includes at least one video network slave control server, and the apparatus further includes:
a second obtaining module, configured to obtain a second bandwidth corresponding to a second data packet forwarded to the second switch by the first switch, where the second data packet is sent to the first switch by an ethernet slave server in the packet queue;
a third obtaining module, configured to 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;
the second control module is used for controlling a second data packet forwarded to the second switch by the first switch according to the second bandwidth and a second preset bandwidth threshold;
and the third control module is used for controlling a third data packet received by the first switch according to the third bandwidth and a third preset bandwidth threshold.
Optionally, the second data packet includes a second multicast packet or the third data packet includes a third multicast packet, and the apparatus further includes:
a fourth obtaining module, configured to obtain a second ratio that the second multicast packet occupies the bandwidth of the second data packet, or obtain a third ratio that the third multicast packet occupies the bandwidth of the third data packet;
the fourth control module is used for controlling a second data packet forwarded to the second switch by the first switch according to the second proportion and a first preset proportion threshold value;
and the fifth control module is used for controlling the third data packet received by the first switch according to the third proportion and a second preset proportion threshold value.
The embodiment of the invention also discloses a data transmission control device, which comprises:
one or more processors; and
one or more computer-readable media having instructions stored thereon, which, when executed by the one or more processors, cause the apparatus to perform a data transmission control method according to any one of the embodiments of the invention.
The embodiment of the invention also discloses a computer readable storage medium, and a stored computer program enables a processor to execute the data transmission control method according to the embodiment of the invention.
The embodiment of the invention has the following advantages:
in this embodiment, when the first data packet forwarded by the first switch is detected, the first data packet is controlled by obtaining the first data parameter corresponding to the first data packet and according to the first data parameter and the first preset control rule, so that when the sub-control server receives the first data packet forwarded by the first switch, the first data packet sent by the video networking terminal can be effectively controlled, thereby alleviating the problem of bandwidth resource shortage of the video networking and improving the reliability and stability of data transmission of the video networking.
Drawings
Fig. 1 is a view of a connection relationship between video network devices according to an embodiment of the present invention;
fig. 2 is a network topology structure diagram provided in the embodiment of the present invention;
fig. 3 is a flowchart illustrating steps of a data transmission control method according to an embodiment of the present invention;
fig. 4 is a block diagram of a data transmission control apparatus according to an embodiment of the present invention;
FIG. 5 is a networking schematic of a video network of the present invention;
FIG. 6 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 7 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 8 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, fig. 1 is a view of a connection relationship between devices in a video network, and as shown in fig. 1, a network management server, an autonomous server, a video network sub-control server and a plurality of video network terminals are deployed in the video network, the video network sub-control server is in communication connection with the autonomous server, the autonomous server is in communication connection with the network management server, and the network management server is in communication connection with a network management client, where the network management client may not be deployed in a video network environment.
The following first presents a brief description of commonly used devices in a video networking environment:
the autonomous server: the management core of the video network, the realized functions mainly include the management and registration of the equipment, the realization of the video network service logic in the management domain and among the management domains, the communication with the management network of the video network to realize the higher-level management, and the like.
The video network sub-control server: a video network controller integrates video network audio and video forwarding, set top box control, registration and other functions.
The video network terminal: the video network service landing equipment, the actual participants or service persons of the video network service, include various conference set-top boxes, video telephone set-top boxes, operation teaching set-top boxes, streaming media gateways, storage gateways, media synthesizers, and the like. The terminal of the video network needs to be registered on the video network server to carry out normal service.
The network management server: the core equipment on the video network controls the operations of video network server service opening, terminal registration and the like, is the brain of the video network, and provides a UI interface for the client to call.
Referring to fig. 2, fig. 2 is a network topology structure diagram among the video network terminals, the switches, and the video network sub-control servers, in the network topology structure diagram shown in fig. 2, a plurality of switches (four switches are taken as an example in fig. 2) are deployed in the video network, each switch may be connected with one or more video network sub-control servers (one video network sub-control server is connected to a switch in fig. 2) and one or more video network terminals (one video network terminal is connected to a switch in fig. 2), and at the same time, each switch may be connected with other switches (switch 1 is connected with switches 2-4 in fig. 2, respectively). When data transmission is carried out between the video network terminals registered on the same switch, data sent by one video network terminal is forwarded to the video network sub-control server through the switch, and then forwarded to the switch through the video network sub-control server so as to be forwarded to the other video network terminal. When the data is transmitted across the branch control servers, the data transmitted by one video network terminal is forwarded to the switch of another branch control server through the switch.
In the video networking environment, data transmission (including service data transmission and control data transmission) can be continuously carried out among video networking terminals (terminals for short), video networking sub-control servers, switches and other equipment, along with the continuous development of video networking services, the number of the video networking terminals is increasing, so that video networking bandwidth resources are gradually tensed, and if the data transmission among the equipment such as the terminals and the video networking sub-control servers is not controlled, the video networking environment is easy to have the problems of network congestion, instantaneous peak, resource contention and the like. These problems may affect normal terminal services, or cause the control commands to interact normally, which affects the reliability and stability of data transmission in the video network.
Based on the defects of the related technologies, one of the core concepts of the embodiments of the present invention is provided, in which a video network sub-control server controls data transmission of a video network terminal registered under the video network sub-control server, and controls data transmission between switches in communication connection with the video network sub-control server, so that bandwidth resources are effectively utilized, normal operation of services is ensured, and reliability and stability of data transmission are ensured.
Referring to fig. 3, fig. 3 is a flowchart illustrating steps of a data transmission control method according to an embodiment of the present invention, where the method is applied to a video network sub-control server, the video network sub-control server is communicatively connected to a first switch, and the first switch is communicatively connected to a video network terminal, as shown in fig. 3, the method may specifically include the following steps:
step S31, when detecting a first data packet forwarded by the first switch, obtaining a first data parameter corresponding to the first data packet, where the first data packet is a data packet sent by a single video networking terminal to the first switch.
Step S32, controlling the first data packet according to the first data parameter and a first preset control rule.
In this embodiment, the video networking terminal is in communication connection with the first switch, the first switch is in communication connection with the video networking terminal, the video networking terminal can send a first data packet generated by the video networking terminal to the first switch, the first switch can forward the first data packet to the video networking sub-control server after receiving the first data packet sent by the video networking terminal, and at this moment, the video networking sub-control server can detect and acquire a first data parameter corresponding to the first data packet. In this implementation, the first data packet may include service data or control data.
In this embodiment, the first switch may be connected to a plurality of video network terminals, the first switch forwards the first data packet sent by each video network terminal to the video network sub-control server, the video network sub-control server obtains the first data parameter for the first data packet generated by each video network terminal, after obtaining the first data parameter of each first data packet, the video network sub-control server controls the first data packet according to each first data parameter and the first preset control rule, that is, determines which video network terminals send the first data packets corresponding to the first data packets that satisfy the first preset control rule, and which video network terminals send the first data packets corresponding to the first data packets that do not satisfy the first preset control rule, so as to control the corresponding first data packets, for example, the video network forwards the first data packets that satisfy the first preset control rule, or refusing to receive the first data packet which does not meet the first preset control rule.
By adopting the method of the embodiment of the 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, so that when the sub-control server receives the first data packet forwarded by the first switch, the first data packet sent by the video network terminal can be effectively controlled, for example, the first data packet is forwarded or rejected, thereby relieving the problem of bandwidth resource shortage of the video network and improving the reliability and stability of data transmission of the video network.
With continuing reference to fig. 1, in the embodiment of the present invention, as shown in fig. 1, the video network sub-control server is communicatively connected to an autonomous server, the autonomous server is communicatively connected to a network management server, and the network management server is communicatively connected to a network management client, in the 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 include: and receiving the first preset control rule sent by the autonomous server.
The first preset control rule is generated by the network management server according to a first configuration parameter sent by the network management client and sent to the autonomous server.
In this embodiment, a set of network management software may be designed, and a C/S architecture may be adopted. The autonomous server is operated through management software, and the sub-control server and the video network terminal in the video network link are controlled through the autonomous server. Specifically, the operation and maintenance personnel can operate a software operation interface provided by the network management client, edit a first configuration parameter, 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, send the first preset control rule to the autonomous server, send the first preset control rule to the branch control server through the autonomous server, and after receiving the first preset control rule, the branch control server can control the first data packet according to the first preset control rule.
In an embodiment, after receiving the first preset control rule, the autonomous server may store the first preset control rule on a hard disk, so that the autonomous server does not lose the first preset rule due to reboot.
In an embodiment, the first data parameter may specifically be a first bandwidth, and the data transmission control method provided in this embodiment may specifically include the following steps:
step S41, obtain a first bandwidth corresponding to the first packet.
Step S42A, rejecting the first packet forwarded by the first switch when the first bandwidth is greater than a first preset bandwidth threshold.
Step S42B, forwarding the first packet forwarded by the first switch if the first bandwidth is less than or equal to the first preset bandwidth threshold.
In this embodiment, the video network sub-control server may obtain a first bandwidth corresponding to a first data packet generated by each video network terminal, after the first bandwidth is obtained, compare the first bandwidth with a first preset threshold, and if the first bandwidth is greater than the first preset threshold, it indicates that the bandwidth occupied by a certain video network terminal is too large, at this time, the video network sub-control server may reject the video network terminal to send to the first switch, and forward the first data packet to the video network sub-control server by the first switch, that is, reject the service request of the video network terminal; if the first bandwidth is smaller than the first preset threshold, it is indicated that the bandwidth occupied by a certain video network terminal meets the bandwidth limitation requirement, at this time, the video network sub-control server can receive and forward the first data packet which is sent to the first switch by the video network terminal, and then the first data packet is forwarded to the video network sub-control server by the first switch, so that the video network terminal can normally perform service.
In one embodiment, the first bandwidth may specifically include a reception bandwidth, a transmission bandwidth, a percentage of bandwidth occupied by multicast packets and unicast packets.
In this embodiment, by obtaining the first bandwidth corresponding to the first data packet sent by the terminal of the video networking, and controlling 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, contention for bandwidth resources among terminals in the video networking is avoided, and the problem of resource shortage in the video networking is alleviated.
In an embodiment, the sub-control server may include a flow control queue and a leaky bucket queue, where the first data parameter may specifically be a flow, and the data transmission control method provided in this embodiment may specifically include the following steps:
step S51, obtaining the traffic corresponding to the first data packet sent by each video network terminal in the pre-configured traffic control queue.
And step S52, sending the traffic corresponding to the first data packet sent by each video network terminal to a leaky bucket queue.
And step S53, forwarding the data packet in the leaky bucket queue according to the output speed of the leaky bucket queue.
Step S54, the traffic of the first data packet sent by each video network terminal in the traffic control queue is accumulated to obtain an accumulated traffic.
And step S55, when the accumulated traffic exceeds the capacity of the leaky bucket queue, rejecting the first data packet sent by any video network terminal in the traffic control queue.
In this embodiment, a video network terminal is pre-configured in the flow control queue, that is, a terminal that needs to perform flow control is added to the flow control queue. A plurality of flow control queues can be configured under the same visual networking sub-control server, and a plurality of visual networking terminals can be included in the same flow control queue.
The video network sub-control server can obtain the flow corresponding to the first data packet sent by each video network terminal in the pre-configured flow control queue. For example, the view network sub-control server obtains a first flow control queue, and 5 view network terminals are pre-configured in the first flow control queue, so that the view network sub-control server may obtain flows corresponding to first data packets sent by the 5 view network terminals in the first flow control queue respectively.
In this embodiment, the leaky bucket queue, that is, the output speed, is subjected to speed limitation according to the previous rate limit, the input rate is not limited, but the capacity of the leaky bucket queue is limited, and for a service exceeding the limit of the queue capacity, the service is rejected by the view networking sub-control server.
After the flow corresponding to the first data packet sent by each video network terminal in the flow control queue is obtained, the flow corresponding to the first data packet sent by each video network 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. Meanwhile, the flow added into the leaky bucket queue can be accumulated to obtain the accumulated flow.
In this embodiment, the accumulated traffic may be compared with the capacity of the leaky bucket queue, and when the accumulated traffic exceeds the capacity of the leaky bucket queue, the first data packet sent by any video network terminal in the traffic control queue is rejected.
In an implementation manner, the rejected first data packet may be temporarily stored, and forwarded when the accumulated traffic is smaller than the capacity of the leaky bucket queue, or busy information is directly fed back to the video networking terminal, so that a video networking terminal user can know the video networking network state, and the user can cancel the service request conveniently.
In this embodiment, the leaky bucket queue may control an output rate of the first data packet sent by the video network terminal in the flow control queue, that is, control a forwarding rate of the first data packet, so as to realize peak clipping on suddenly increased flow and reduce an instantaneous request pressure inside the video network.
In an embodiment, the configuration information sent by the autonomous server may be received, and the flow control queue may be configured in advance according to the configuration information, 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.
In this embodiment, similarly, the operation and maintenance staff may operate the software operation interface provided by the network management client by using the network management software of the C/S architecture, 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 the configuration information according to the second configuration parameter, sends the configuration information to the autonomous server, and then the autonomous server sends the configuration information to the sub-control server, and the sub-control server may pre-configure the flow control queue according to the configuration information after receiving the configuration information.
In an embodiment, configuring the flow control queue according to the configuration information may specifically include: and enabling, disabling, adding, editing, deleting or inquiring the flow control queue according to the configuration information.
In this embodiment, the enabling refers to starting a flow control queue, that is, sending flows corresponding to first data packets sent by each video network terminal inside the flow control queue to a leaky bucket queue for processing; the forbidding means closing the flow control queue, namely not sending the flow corresponding to the first data packet sent by each video network terminal in the flow control queue to the leaky bucket queue; the new adding means adding a flow control queue; deleting refers to deleting a flow control queue; editing refers to adding or deleting the video network terminals in the flow control queue; the query refers to the condition of the video network terminal in the flow control queue.
In the implementation, the flow control queues are configured, so that the flow control queues can be flexibly managed according to actual conditions, various video networking network environments are adapted, and the smoothness of the video networking network is further ensured.
In an embodiment, a first switch is communicatively connected to a second switch, the first switch is preset with a packet queue, the packet queue includes at least one video network slave control server, and the data transmission control method provided in this embodiment may further include the following steps:
step S61, obtaining a second bandwidth corresponding to a second packet forwarded by the first switch to the second switch, where the second packet is sent to the first switch by the view networking branch control server in the packet queue.
Step S62, obtaining a third bandwidth corresponding to a third packet received by the first switch, where the third packet is forwarded by the second switch.
Step S63, controlling the second packet forwarded by the first switch to the second switch according to the second bandwidth and a second preset bandwidth threshold.
Step S64, controlling the third packet received by the first switch according to the third bandwidth and a third preset bandwidth threshold.
In this embodiment, a packet queue may be set in advance, the video networking sub-control servers in the packet queue are in communication connection with the first switch, and data packets forwarded by all the video networking sub-control servers in the packet queue to the second switch through the first switch form a second data packet together, where any one of the video networking sub-control servers may obtain a second bandwidth corresponding to the second data packet forwarded by the first switch to the second switch, that is, obtain a sending bandwidth of the first switch, and after obtaining the second bandwidth, may 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. Controlling the forwarding of the second data packet by the first switch to the second switch may specifically comprise rejecting the second data packet or forwarding the second data packet.
Similarly, another packet queue may be set in advance, the video network sub-control servers in the packet queue are connected to the second switch in a communication manner, the data packets forwarded by all the video network sub-control servers in the packet queue to the first switch through the second switch form a third data packet, the video network sub-control server connected to the first switch may obtain a third bandwidth corresponding to the third data packet, that is, obtain the receiving bandwidth of the first switch, and after obtaining the third bandwidth, the third data packet received by the first switch may be controlled according to the third bandwidth and a third preset bandwidth threshold. The controlling of the third data packet received by the first switch may specifically include rejecting the third data packet or forwarding the third data packet.
By adopting the method of the embodiment of the invention, the sending bandwidth of the first switch and the receiving bandwidth of the first switch are obtained, the second data packet forwarded to the second switch by the first switch is controlled according to the second bandwidth and the second preset bandwidth threshold, and the third data packet received by the first switch is controlled according to the third bandwidth and the third preset bandwidth threshold, so that the bandwidth rate limitation among the switches can be realized, the smoothness of the video networking network is further ensured, and the reliability and the stability of the data transmission of the video networking network are improved.
In an embodiment, the second data packet may include a second multicast packet, or the third data packet may include a third multicast packet, and the data transmission control method provided in this embodiment may further include the following steps:
step S65, obtaining a second ratio of the second multicast packet occupying the bandwidth of the second data packet, or obtaining a third ratio of the third multicast packet occupying the bandwidth of the third data packet.
Step S66, controlling the second packet forwarded by the first switch to the second switch according to the second ratio and a first preset ratio threshold.
Step S67, controlling the third packet received by the first switch according to the third ratio and a second preset ratio threshold.
In this embodiment, the video networking sub-control server connected to the first switch may further obtain a second proportion that the second multicast packet occupies the bandwidth of the second data packet, or obtain a third proportion that the third multicast packet occupies the bandwidth of the third data packet, and after the second proportion is obtained, the second data packet forwarded to the second switch by the first switch may be controlled according to the second proportion and the first preset proportion threshold, or after the third proportion is obtained, the third data packet received by the first switch may be controlled according to the third proportion and the second preset proportion threshold.
In this embodiment, the second ratio, the first preset ratio threshold, the third ratio and the second ratio threshold may all be configured by an operation and maintenance worker operating a software operation interface editing parameter provided by the network management client.
By adopting the method of the embodiment of the invention, the bandwidth rate limitation between the switches can be further realized by acquiring the second proportion of the second multicast packet occupying the bandwidth of the second data packet, or acquiring the third proportion of the third multicast packet occupying the bandwidth of the third data packet, controlling the second data packet forwarded to the second switch by the first switch according to the second proportion and the first preset proportion threshold value, and controlling the third data packet received by the first switch according to the third proportion and the second preset proportion threshold value, thereby further ensuring the smoothness of the video network and improving the reliability and stability of the video network data transmission.
When the first data packet forwarded by the first switch is detected, the first data packet is controlled by acquiring the first data parameter corresponding to the first data packet and according to the first data parameter and the first preset control rule, so that when the sub-control server receives the first data packet forwarded by the first switch, the first data packet sent by the video networking terminal can be effectively controlled, for example, the first data packet is forwarded or rejected, the problem of bandwidth resource shortage of the video networking is solved, and the reliability and stability of video networking data transmission are improved.
Based on the same technical concept, please refer to fig. 4, fig. 4 shows a data transmission control apparatus 40 according to an embodiment of the present invention, which is applied to a video network sub-control server, the video network sub-control server is communicatively connected to a first switch, the first switch is communicatively connected to a video network terminal, the apparatus includes:
a first obtaining module 41, configured to obtain a first data parameter corresponding to a first data packet when the first data packet forwarded by the first switch is detected, where the first data packet is a data packet sent by a single video networking terminal to the first switch;
the first control module 42 is configured to control the first data packet according to the first data parameter and a first preset control rule.
Optionally, the video network sub-control server is in communication connection with an autonomous server, the autonomous server is in communication connection with a network management server, the network management server is in communication connection with a network management client, and the apparatus further includes:
the first receiving module is configured 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 a first configuration parameter sent by the network management client and is sent to the autonomous server.
Optionally, the first data parameter includes a first bandwidth, and the first obtaining module includes:
the first obtaining submodule is used for obtaining a first bandwidth corresponding to the first data packet;
the first control module includes:
the first rejection submodule is used for rejecting the first data packet forwarded by the first switch under the condition that the first bandwidth is larger than a first preset bandwidth threshold value;
and the first forwarding sub-module is configured to forward the first data packet forwarded by the first switch when the first bandwidth is less than or equal to the first preset bandwidth threshold.
Optionally, the sub-control server includes a flow control queue and a leaky bucket queue, the first data parameter includes a flow, and the first obtaining module includes:
the second obtaining submodule is used for obtaining the flow corresponding to the first data packet sent by each video network terminal in the pre-configured flow control queue;
the first control module includes:
the sending submodule is used for sending the flow corresponding to the first data packet sent by each video network terminal to the leaky bucket queue;
the second forwarding submodule is used for forwarding the data packet in the leaky bucket queue according to the output speed of the leaky bucket queue;
the accumulation submodule is used for accumulating the flow of the first data packet sent by each video network terminal in the flow control queue to obtain the accumulated flow;
and the second rejecting submodule is used for rejecting the first data packet sent by any video network terminal in the flow control queue when the accumulated flow exceeds the capacity of the leaky bucket queue.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving configuration information sent by an autonomous server, wherein the configuration information is generated by the network management server according to a second configuration parameter sent by the network management client and is sent to the autonomous server;
and the configuration module is used for configuring the flow control queue according to the configuration information.
Optionally, the configuration module is further configured to enable, disable, add, edit, delete, or query the flow control queue according to the configuration information.
Optionally, the first switch is communicatively connected to a second switch, the first switch is preset with a packet queue, the packet queue includes at least one video network slave control server, and the apparatus further includes:
a second obtaining module, configured to obtain a second bandwidth corresponding to a second data packet forwarded to the second switch by the first switch, where the second data packet is sent to the first switch by an ethernet slave server in the packet queue;
a third obtaining module, configured to 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;
the second control module is used for controlling a second data packet forwarded to the second switch by the first switch according to the second bandwidth and a second preset bandwidth threshold;
and the third control module is used for controlling a third data packet received by the first switch according to the third bandwidth and a third preset bandwidth threshold.
Optionally, the second data packet includes a second multicast packet or the third data packet includes a third multicast packet, and the apparatus further includes:
a fourth obtaining module, configured to obtain a second ratio that the second multicast packet occupies the bandwidth of the second data packet, or obtain a third ratio that the third multicast packet occupies the bandwidth of the third data packet;
the fourth control module is used for controlling a second data packet forwarded to the second switch by the first switch according to the second proportion and a first preset proportion threshold value;
and the fifth control module is used for controlling the third data packet received by the first switch according to the third proportion and a second preset proportion threshold value.
An embodiment of the present invention further provides a data transmission control apparatus, including:
one or more processors; and
one or more computer-readable media having instructions stored thereon, which, when executed by the one or more processors, cause the apparatus to perform a data transmission control method according to any one of the embodiments of the invention.
Embodiments of the present invention further provide a computer-readable storage medium, which stores a computer program to enable a processor to execute the data transmission control method according to the embodiments of the present invention.
For the embodiment of the data transmission control device, since it is basically similar to the embodiment of the data transmission control method, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the embodiment of the data transmission control method.
The video networking technology used in the present application will be described in detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved the traditional Ethernet (Ethernet) to face the potentially huge first video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the moving capability of a video window is irrelevant to flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of video window movement, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 5, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: server, exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, code board, memory, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node server, access exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, coding board, memory, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 6, the system mainly includes a network interface module 601, a switching engine module 602, a CPU module 603, and a disk array module 604;
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 looking up the address table 605 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of a corresponding packet buffer 606 according to the packet's steering information; if the queue of the packet buffer 606 is nearly full, it is discarded; the switching engine module 602 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 604 mainly implements control over the hard disk, including initialization, read-write, and other operations of the hard disk; the CPU module 603 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 605 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 604.
The access switch:
as shown in fig. 7, the network interface module 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;
wherein, 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), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 703, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 702 enters the switching engine module 703; the incoming data packet from the CPU module 704 enters the switching engine module 703; the switching engine module 703 performs an operation of looking up the address table 706 on the incoming packet, thereby obtaining the direction information of the packet; if a packet entering the switching engine module 703 goes from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 707 in association with a stream-id; if the queue of the packet buffer 707 is close to full, discard; if the packet entering the switching engine module 703 does not go from the downlink network interface to the uplink network interface, the packet is stored in the queue of the corresponding packet buffer 707 according to the packet steering information; if the queue of the packet buffer 707 is close to full, it is discarded.
The switching engine module 703 polls all packet buffer queues and may include two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 708 is configured by the CPU module 704 to generate tokens for packet buffer queues going to the upstream network interface for all downstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 704 is mainly responsible for protocol processing with the node server, configuration of the address table 706, and configuration of the code rate control module 708.
Ethernet protocol conversion gateway:
As shown in fig. 8, the apparatus mainly includes a network interface module (a downlink network interface module 801, an uplink network interface module 802), a switch engine module 803, a CPU module 804, a packet detection module 805, a rate control module 808, an address table 806, a packet buffer 807, a MAC adding module 809, and a MAC deleting module 810.
Wherein, the data packet coming from the downlink network interface module 801 enters the packet detection module 805; the packet detection module 805 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deleting module 810 subtracts MAC DA, MAC SA, length or frame type (2byte), and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 801 detects the sending buffer of the port, and if there is a packet, acquires the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MACSA of the ethernet coordination gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA | SA | Reserved | Payload | CRC |
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 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 metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA | SA | Reserved | label (R) | Payload | CRC |
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The data transmission control method, the data transmission control device and the computer-readable storage medium provided by the present invention are described in detail above, and specific examples are applied herein to explain the principle and the implementation of the present invention, and the descriptions of the above examples are only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (11)
1. A data transmission control method is applied to a video network sub-control server, the video network sub-control server is in communication connection with a first switch, the first switch is in communication connection with a video network terminal, and the method comprises the following steps:
when a first data packet forwarded by the first switch is detected, acquiring a first data parameter corresponding to the first data packet, wherein the first data packet is a data packet sent to the first switch by a single video networking terminal;
and controlling the first data packet according to the first data parameter and a first preset control rule.
2. The method according to claim 1, wherein the separate control server of the internet of view is communicatively connected to an autonomous server, the autonomous server is communicatively connected to a network management server, the network management server is communicatively connected to a network management client, and before the controlling the first data packet according to the first data parameter and a first preset control rule, the method further comprises:
and receiving the first preset control rule sent by the autonomous server, wherein the first preset control rule is generated by the network management server according to a first configuration parameter sent by the network management client and is sent to the autonomous server.
3. The method of claim 1, wherein the first data parameter comprises a first bandwidth, and the obtaining the first data parameter corresponding to the first data packet comprises:
acquiring a first bandwidth corresponding to the first data packet;
the controlling the first data packet according to the first data parameter and a first preset control rule includes:
rejecting a first data packet forwarded by the first switch when the first bandwidth is larger than a first preset bandwidth threshold;
and forwarding the first data packet forwarded by the first switch under the condition that the first bandwidth is smaller than or equal to the first preset bandwidth threshold.
4. The method according to claim 1, wherein the sub-control server includes a flow control queue and a leaky bucket queue, the first data parameter includes a flow, and the obtaining a first data parameter corresponding to the first data packet includes:
acquiring the flow corresponding to a first data packet sent by each video network terminal in a pre-configured flow control queue;
the controlling the first data packet according to the first data parameter and a first preset control rule includes:
sending the flow corresponding to the first data packet sent by each video network terminal to a leaky bucket queue;
forwarding the data packet 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 video network terminal in the flow control queue to obtain accumulated flow;
and when the accumulated flow exceeds the capacity of the leaky bucket queue, rejecting a first data packet sent by any video network terminal in the flow control queue.
5. The method according to claim 4, wherein before the obtaining of the traffic corresponding to the first data packet sent by each video network terminal in the pre-configured flow control queue, the method further comprises:
receiving configuration information sent by an autonomous server, wherein the configuration information is generated by the network management server according to a second configuration parameter sent by the network management client and is sent to the autonomous server;
and configuring the flow control queue according to the configuration information.
6. The method of claim 5, wherein the configuring the flow control queue according to the configuration information comprises:
and enabling, disabling, adding, editing, deleting or inquiring the flow control queue according to the configuration information.
7. The method of claim 1, wherein the first switch is communicatively connected to a second switch, wherein the first switch is pre-provisioned with a packet queue, wherein the packet queue comprises at least one view networking slave server, and wherein the method further comprises:
acquiring a second bandwidth corresponding to a second data packet forwarded to the second switch by the first switch, wherein the second data packet is sent to the first switch by an internet of vision sub-control server in the packet queue;
acquiring 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;
controlling a second data packet forwarded to the second switch by the first switch according to the second bandwidth and a second preset bandwidth threshold;
and controlling a third data packet received by the first switch according to the third bandwidth and a third preset bandwidth threshold.
8. The method of claim 7, wherein the second data packet comprises a second multicast packet or the third data packet comprises a third multicast packet, the method further comprising:
acquiring a second proportion of the second multicast packet occupying the bandwidth of the second data packet, or acquiring a third proportion of the third multicast packet occupying the bandwidth of the third data packet;
controlling a second data packet forwarded to the second switch by the first switch according to the second proportion and a first preset proportion threshold value;
and controlling a third data packet received by the first switch according to the third proportion and a second preset proportion threshold value.
9. The data transmission control device is applied to a video network sub-control server, the video network sub-control server is in communication connection with a first switch, the first switch is in communication connection with a video network terminal, and the device comprises:
the first obtaining module is used for obtaining a first data parameter corresponding to a first data packet when the first data packet forwarded by the first switch is detected, wherein the first data packet is a data packet which is sent to the first switch by a single video networking terminal;
and the first control module is used for controlling the first data packet according to the first data parameter and a first preset control rule.
10. A data transmission control apparatus, comprising:
one or more processors; and
one or more computer-readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform the data transmission control method of any of claims 1-8.
11. A computer-readable storage medium characterized by storing a computer program causing a processor to execute the data transmission control method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911229400.9A CN111131059A (en) | 2019-12-04 | 2019-12-04 | Data transmission control method, device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911229400.9A CN111131059A (en) | 2019-12-04 | 2019-12-04 | Data transmission control method, device and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111131059A true CN111131059A (en) | 2020-05-08 |
Family
ID=70497362
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911229400.9A Pending CN111131059A (en) | 2019-12-04 | 2019-12-04 | Data transmission control method, device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111131059A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1275283A (en) * | 1998-06-19 | 2000-11-29 | 尤尼斯菲尔解决方案公司 | Quality of service facility in a device for performing IP forwarding and atm switching |
CN101207498A (en) * | 2006-12-19 | 2008-06-25 | 中兴通讯股份有限公司 | Accounting method of multimedia broadcast service |
CN101873251A (en) * | 2009-04-27 | 2010-10-27 | 中兴通讯股份有限公司 | Message forwarding method and device |
US20140269288A1 (en) * | 2013-03-15 | 2014-09-18 | International Business Machines Corporation | Software defined network-based load balancing for physical and virtual networks |
CN109151058A (en) * | 2018-09-27 | 2019-01-04 | 视联动力信息技术股份有限公司 | A kind of data transmission method and device |
CN110149497A (en) * | 2019-04-09 | 2019-08-20 | 视联动力信息技术股份有限公司 | A kind of view networked data transmission method, apparatus, system and readable storage medium storing program for executing |
CN110519119A (en) * | 2019-07-31 | 2019-11-29 | 视联动力信息技术股份有限公司 | Bandwidth management method, device and storage medium based on view networking |
CN110536148A (en) * | 2019-08-21 | 2019-12-03 | 视联动力信息技术股份有限公司 | A kind of live broadcasting method and equipment based on view networking |
-
2019
- 2019-12-04 CN CN201911229400.9A patent/CN111131059A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1275283A (en) * | 1998-06-19 | 2000-11-29 | 尤尼斯菲尔解决方案公司 | Quality of service facility in a device for performing IP forwarding and atm switching |
CN101207498A (en) * | 2006-12-19 | 2008-06-25 | 中兴通讯股份有限公司 | Accounting method of multimedia broadcast service |
CN101873251A (en) * | 2009-04-27 | 2010-10-27 | 中兴通讯股份有限公司 | Message forwarding method and device |
US20140269288A1 (en) * | 2013-03-15 | 2014-09-18 | International Business Machines Corporation | Software defined network-based load balancing for physical and virtual networks |
CN109151058A (en) * | 2018-09-27 | 2019-01-04 | 视联动力信息技术股份有限公司 | A kind of data transmission method and device |
CN110149497A (en) * | 2019-04-09 | 2019-08-20 | 视联动力信息技术股份有限公司 | A kind of view networked data transmission method, apparatus, system and readable storage medium storing program for executing |
CN110519119A (en) * | 2019-07-31 | 2019-11-29 | 视联动力信息技术股份有限公司 | Bandwidth management method, device and storage medium based on view networking |
CN110536148A (en) * | 2019-08-21 | 2019-12-03 | 视联动力信息技术股份有限公司 | A kind of live broadcasting method and equipment based on view networking |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109996086B (en) | Method and device for inquiring service state of video networking | |
CN109617956B (en) | Data processing method and device | |
CN109768963B (en) | Conference opening method and system based on video network | |
CN109246486B (en) | Method and device for framing | |
CN110049341B (en) | Video processing method and device | |
CN109040656B (en) | Video conference processing method and system | |
CN111193767B (en) | Request data sending method and device and clustered server system | |
CN110113557B (en) | Multistage conference implementation method and video networking system | |
CN110049280B (en) | Method and device for processing monitoring data | |
CN109714568B (en) | Video monitoring data synchronization method and device | |
CN109347930B (en) | Task processing method and device | |
CN109842630B (en) | Video processing method and device | |
CN109889755B (en) | Communication connection method and video networking terminal | |
CN109862439B (en) | Data processing method and device | |
CN110267110B (en) | Concurrent on-demand processing method and system based on video network | |
CN110830817A (en) | Video transcoding capacity adjusting method and video transcoding server | |
CN109474848B (en) | Video processing method and device based on video network, electronic equipment and medium | |
CN110213533B (en) | Method and device for acquiring video stream monitored by video network | |
CN110493311B (en) | Service processing method and device | |
CN110519335B (en) | Data link removing method and system based on video network | |
CN110798450B (en) | Audio and video data processing method and device and storage medium | |
CN110099307B (en) | Node connection method, video network and computer readable storage medium | |
CN110139059B (en) | Method and device for allocating video networking resources | |
CN109714641B (en) | Data processing method and device based on video network | |
CN110096854B (en) | Resource permission sharing method and device and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |