CN111163169B - Data forwarding method, device, equipment and medium - Google Patents
Data forwarding method, device, equipment and medium Download PDFInfo
- Publication number
- CN111163169B CN111163169B CN201911405801.5A CN201911405801A CN111163169B CN 111163169 B CN111163169 B CN 111163169B CN 201911405801 A CN201911405801 A CN 201911405801A CN 111163169 B CN111163169 B CN 111163169B
- Authority
- CN
- China
- Prior art keywords
- service
- sub
- signaling
- terminal
- terminal device
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 230000011664 signaling Effects 0.000 claims abstract description 144
- 230000005540 biological transmission Effects 0.000 claims abstract description 37
- 238000004891 communication Methods 0.000 claims abstract description 21
- 238000012545 processing Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 13
- 230000015654 memory Effects 0.000 claims description 12
- 238000003860 storage Methods 0.000 claims description 6
- 238000004880 explosion Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 18
- 230000008569 process Effects 0.000 description 15
- 238000005516 engineering process Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000001514 detection method Methods 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000011144 upstream manufacturing Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000002360 preparation method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
- H04L65/611—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域Technical field
本发明涉及通信技术领域,特别是涉及一种数据转发的方法、装置、设备及介质。The present invention relates to the field of communication technology, and in particular, to a data forwarding method, device, equipment and medium.
背景技术Background technique
视联网是网络发展的重要里程碑,是一个实时网络,能够实现高清视频实时传输,将众多互联网应用推向高清视频化,高清面对面。The Internet of Vision is an important milestone in network development. It is a real-time network that can realize real-time transmission of high-definition video and push many Internet applications to high-definition video and high-definition face-to-face.
现有技术是通过海思芯片来实现转发业务,不仅芯片成本大,而且模拟分控数量有限。如果是直接点对点转发数据,则网络数据无法掌控,终端设备的数据流量也会爆棚。The existing technology uses HiSilicon chips to implement forwarding services. Not only is the chip cost high, but the number of analog sub-controllers is limited. If the data is forwarded directly point-to-point, the network data cannot be controlled, and the data traffic of the terminal device will be overwhelming.
发明内容Contents of the invention
鉴于上述问题,提出了本发明实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种数据转发的方法、装置、设备及介质。In view of the above problems, embodiments of the present invention are proposed to provide a data forwarding method, device, equipment and medium that overcomes the above problems or at least partially solves the above problems.
为了解决上述问题,第一方面,为了解决上述问题,本发明实施例公开了一种数据转发的方法,应用于视联网数据处理系统中的第一分控设备,所述第一分控设备与主控设备、第一终端设备以及第二终端设备多个终端设备分别连接;所述方法包括:In order to solve the above problems, firstly, in order to solve the above problems, an embodiment of the present invention discloses a data forwarding method, which is applied to the first sub-control device in the video network data processing system. The first sub-control device and The main control device, the first terminal device and the second terminal device are connected to multiple terminal devices respectively; the method includes:
接收所述第一终端设备发送的业务信令,并将所述业务信令转发给所述主控设备;所述业务信令用于请求在所述第一终端设备和所述第二终端设备之间建立业务数据传输通道;Receive the service signaling sent by the first terminal device, and forward the service signaling to the main control device; the service signaling is used to request the communication between the first terminal device and the second terminal device. Establish business data transmission channels between them;
接收所述主控设备发送的携带所述第一终端设备视联网地址的第一业务开启信令和携带所述第二终端设备的视联网地址第二业务开启信令;Receive the first service start signaling carrying the video network address of the first terminal device and the second service start signaling carrying the video network address of the second terminal device sent by the main control device;
将所述第一业务开启信令转发给所述第一终端设备,并将所述第二业务开启信令转发给所述第二终端设备,以在所述第一终端设备和所述第二终端设备之间建立业务数据传输通道;Forward the first service opening signaling to the first terminal device, and forward the second service opening signaling to the second terminal device, so as to connect the first terminal device and the second terminal device. Establish business data transmission channels between terminal devices;
通过所述业务数据传输通道转发所述第一终端设备和所述第二终端设备之间的业务数据。Forward service data between the first terminal device and the second terminal device through the service data transmission channel.
优选的,所述通过所述业务数据传输通道转发所述第一终端设备和所述第二终端设备之间的业务数据,包括:Preferably, forwarding service data between the first terminal device and the second terminal device through the service data transmission channel includes:
接收所述主控设备发送的组播链路控制信息和数据源打开信令,所述链组播路控制信息包括组播地址;Receive multicast link control information and data source opening signaling sent by the main control device, where the link multicast path control information includes a multicast address;
将所述组播地址和所述数据源打开信令转发给所述第一终端设备;Forward the multicast address and the data source opening signaling to the first terminal device;
接收所述第一终端设备发送的业务数据,并根据所述组播地址查找组播信息表;Receive the service data sent by the first terminal device, and search the multicast information table according to the multicast address;
根据所述组播信息表将所述业务数据转发给所述第二终端设备。Forward the service data to the second terminal device according to the multicast information table.
优选的,所述组播链路控制信息还包括替换组播地址;所述将所述组播地址和所述数据源打开信令转发给所述第一终端设备的步骤前,还包括:Preferably, the multicast link control information also includes a replacement multicast address; before the step of forwarding the multicast address and the data source opening signaling to the first terminal device, the step further includes:
判断所述组播地址和所述替换组播地址是否相同;Determine whether the multicast address and the replacement multicast address are the same;
若不同,则用所述替换组播地址替换所述组播地址。If they are different, replace the multicast address with the replacement multicast address.
优选的,所述接收所述第一终端设备发送的业务信令,并将所述业务信令转发给所述主控设备的步骤前,还包括:Preferably, before the step of receiving the service signaling sent by the first terminal device and forwarding the service signaling to the main control device, the step further includes:
建立与所述主控设备、所述第一终端设备以及所述第二终端设备的通信连接;Establish a communication connection with the main control device, the first terminal device and the second terminal device;
用心跳维持与所述主控设备、第一终端设备以及第二终端设备的活动状态。Use heartbeats to maintain active states with the main control device, the first terminal device and the second terminal device.
优选的,所述主控设备与第二分控设备连接,所述第二分控设备与多个终端设备连接;所述方法还包括:Preferably, the main control device is connected to a second sub-control device, and the second sub-control device is connected to a plurality of terminal devices; the method further includes:
根据所述组播信息表确定是否需要将所述业务数据转发给与所述第二分控设备连接的多个终端设备;Determine whether the service data needs to be forwarded to multiple terminal devices connected to the second sub-control device according to the multicast information table;
确定需要将所述业务数据转发给与所述第二分控设备连接的多个终端设备时,将所述业务数据复制多份;When it is determined that the service data needs to be forwarded to multiple terminal devices connected to the second sub-control device, make multiple copies of the service data;
将复制的多份业务数据转发给与所述第二分控设备连接的多个终端设备。Forward the copied service data to multiple terminal devices connected to the second sub-control device.
第二方面,为了解决上述问题,本发明实施例公开了一种数据转发的装置,应用于视联网数据处理系统中的第一分控设备,所述第一分控设备与主控设备、第一终端设备以及第二终端设备多个终端设备分别连接;所述装置包括:In the second aspect, in order to solve the above problem, an embodiment of the present invention discloses a data forwarding device, which is applied to the first sub-control device in the video network data processing system. The first sub-control device is connected with the main control device and the third control device. A terminal device and a second terminal device are connected to multiple terminal devices respectively; the device includes:
第一接收模块,用于接收所述第一终端设备发送的业务信令,并将所述业务信令转发给所述主控设备;所述业务信令用于请求在所述第一终端设备和所述第二终端设备之间建立业务数据传输通道;The first receiving module is used to receive the service signaling sent by the first terminal device and forward the service signaling to the main control device; the service signaling is used to request that the first terminal device Establish a service data transmission channel with the second terminal device;
第二接收模块,用于接收所述主控设备发送的携带所述第一终端设备视联网地址的第一业务开启信令和携带所述第二终端设备的视联网地址第二业务开启信令;The second receiving module is configured to receive the first service start signaling carrying the video network address of the first terminal device and the second service start signaling carrying the video network address of the second terminal device sent by the main control device. ;
开启业务信令转发模块,用于将所述第一业务开启信令转发给所述第一终端设备,并将所述第二业务开启信令转发给所述第二终端设备,以在所述第一终端设备和所述第二终端设备之间建立业务数据传输通道;A service start signaling forwarding module, configured to forward the first service start signaling to the first terminal device, and forward the second service start signaling to the second terminal device, so as to Establish a service data transmission channel between the first terminal device and the second terminal device;
第一业务数据转发模块,用于通过所述业务数据传输通道转发所述第一终端设备和所述第二终端设备之间的业务数据。A first service data forwarding module is configured to forward service data between the first terminal device and the second terminal device through the service data transmission channel.
优选的,所述第一业务数据转发模块,包括:Preferably, the first service data forwarding module includes:
信息接收子模块,用于接收所述主控设备发送的组播链路控制信息和数据源打开信令,所述链组播路控制信息包括组播地址;Information receiving submodule, used to receive multicast link control information and data source opening signaling sent by the main control device, where the link multicast path control information includes a multicast address;
数据转发子模块,用于将所述组播地址和所述数据源打开信令转发给所述第一终端设备;A data forwarding submodule, configured to forward the multicast address and the data source opening signaling to the first terminal device;
数据查找子模块,用于接收所述第一终端设备发送的业务数据,并根据所述组播地址查找组播信息表;A data search submodule, configured to receive the service data sent by the first terminal device and search the multicast information table according to the multicast address;
业务数据转发子模块,用于根据所述组播信息表将所述业务数据转发给所述第二终端设备。The service data forwarding submodule is configured to forward the service data to the second terminal device according to the multicast information table.
优选的,所述组播链路控制信息还包括替换组播地址;所述装置,还包括:Preferably, the multicast link control information also includes a replacement multicast address; the device further includes:
地址判断子模块,用于判断所述组播地址和所述替换组播地址是否相同;Address determination submodule, used to determine whether the multicast address and the replacement multicast address are the same;
地址替换子模块,用于若不同,则用所述替换组播地址替换所述组播地址。The address replacement submodule is used to replace the multicast address with the replacement multicast address if they are different.
优选的,所述装置,还包括:Preferably, the device further includes:
通信建立模块,用于建立与所述主控设备、所述第一终端设备以及所述第二终端设备的通信连接;A communication establishment module, configured to establish communication connections with the main control device, the first terminal device and the second terminal device;
状态维持模块,用于用心跳维持与所述主控设备、第一终端设备以及第二终端设备的活动状态。A state maintenance module is used to maintain the activity state with the main control device, the first terminal device and the second terminal device using heartbeats.
优选的,所述主控设备与第二分控设备连接,所述第二分控设备与多个终端设备连接;所述装置,还包括:Preferably, the main control device is connected to a second sub-control device, and the second sub-control device is connected to a plurality of terminal devices; the device further includes:
终端设备确定模块,用于根据所述组播信息表确定是否需要将所述业务数据转发给与所述第二分控设备连接的多个终端设备;A terminal device determination module, configured to determine whether the service data needs to be forwarded to multiple terminal devices connected to the second sub-control device according to the multicast information table;
业务数据复制模块,用于确定需要将所述业务数据转发给与所述第二分控设备连接的多个终端设备时,将所述业务数据复制多份;A business data copying module, configured to copy multiple copies of the business data when it is determined that the business data needs to be forwarded to multiple terminal devices connected to the second sub-control device;
第二业务数据转发模块,用于将复制的多份业务数据转发给与所述第二分控设备连接的多个终端设备。The second service data forwarding module is configured to forward multiple copied service data to multiple terminal devices connected to the second sub-control device.
第三方面,为了解决上述问题,本发明实施例公开了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面任一所述的方法中的步骤。In a third aspect, in order to solve the above problems, embodiments of the present invention disclose a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method in any one of the first aspects is implemented. step.
第四方面,为了解决上述问题,本发明实施例公开了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行时实现如第一方面任一所述的方法的步骤。In a fourth aspect, in order to solve the above problem, an embodiment of the present invention discloses an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes, the following is implemented: In one aspect the steps of any of the described methods.
本发明实施例包括以下优点:Embodiments of the present invention include the following advantages:
本发明通过第一终端给第一分控设备发送业务信令,发起业务请求,使第一分控设备将该业务信令转发给主控设备,主控设备生成开启业务信令,通过第一分控设备分别发送给第一终端设备和第二终端设备,而建立了第一终端设备和第二终端设备之间的业务数据传输通道,让第一终端设备和第二终端设备能够彼此进行业务数据交互;通过第一分控设备复制转发业务数据,实现了有序控制各个终端设备的通信,相比现有技术中用芯片转发终端设备的数据,更加的节约成本,能够根据第一分控设备给更多的终端设备发送业务数据,更加容易掌握业务数据的流向,也不会造成终端设备的流量爆棚。In the present invention, the first terminal sends service signaling to the first sub-control device and initiates a service request, so that the first sub-control device forwards the service signaling to the main control device, and the main control device generates the start-up service signaling through the first sub-control device. The sub-control device sends the data to the first terminal device and the second terminal device respectively, thereby establishing a service data transmission channel between the first terminal device and the second terminal device, so that the first terminal device and the second terminal device can conduct business with each other. Data interaction: By copying and forwarding business data through the first sub-control device, orderly control of communication between each terminal device is achieved. Compared with the existing technology of using chips to forward data of terminal devices, it is more cost-effective and can be based on the first sub-control device. The device sends business data to more terminal devices, making it easier to grasp the flow of business data and preventing terminal devices from experiencing overwhelming traffic.
附图说明Description of drawings
图1是本发明的一种数据转发的设计方案框图;Figure 1 is a block diagram of a data forwarding design scheme of the present invention;
图2是本发明的一种数据转发的方法的步骤流程图;Figure 2 is a step flow chart of a data forwarding method of the present invention;
图3是本发明的一种数据转发的步骤流程图;Figure 3 is a flow chart of data forwarding steps according to the present invention;
图4是本发明的一种数据转发的步骤流程图;Figure 4 is a flow chart of data forwarding steps according to the present invention;
图5是本发明的一种数据转发的功能框图;Figure 5 is a functional block diagram of data forwarding according to the present invention;
图6是本发明的一种数据转发的装置结构图;Figure 6 is a structural diagram of a data forwarding device of the present invention;
图7是本发明的一种视联网的组网示意图;Figure 7 is a schematic diagram of a video network according to the present invention;
图8是本发明的一种节点服务器的硬件结构示意图;Figure 8 is a schematic diagram of the hardware structure of a node server of the present invention;
图9是本发明的一种接入交换机的硬件结构示意图;Figure 9 is a schematic diagram of the hardware structure of an access switch according to the present invention;
图10是本发明的一种以太网协转网关的硬件结构示意图。Figure 10 is a schematic diagram of the hardware structure of an Ethernet protocol conversion gateway of the present invention.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more obvious and understandable, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.
参照图1,示出了本发明的一种数据转发的设计方案框图,该方法应用于视联网中,具体如下:Referring to Figure 1, a block diagram of a data forwarding design scheme of the present invention is shown. This method is applied in the video network, specifically as follows:
X86分控设备通过tcp socket通信连接到主控设备,通过心跳来维持活动状态;X86分控设备通过tcp socket跟终端进行通信,通过心跳来维持活动状态。主控设备、分控设备和终端设备设置在64位自治服务器(64位自治服务器系统)中。其中,主控设备是整个自治服务器的大脑。视联网接口接收业务指令(如开始会议、停止会议等),主控设备经过解析视联网包获取业务指令后,把相关业务指令通过视联网接口发送至视联网中;分控设备是连接在主控设备下,视联网中业务数据需由分控设备进行发送和接收;终端设备是连接在分控设备下,终端设备可以是电脑、摄像监控设备和视联网终端设备等。The X86 sub-control device is connected to the main control device through tcp socket communication and maintains the active state through heartbeats; the X86 sub-control device communicates with the terminal through tcp socket and maintains the active state through heartbeats. The main control device, sub-control device and terminal device are set in a 64-bit autonomous server (64-bit autonomous server system). Among them, the main control device is the brain of the entire autonomous server. The video network interface receives business instructions (such as starting a meeting, stopping a meeting, etc.). After parsing the video network packet to obtain the business instructions, the main control device sends the relevant business instructions to the video network through the video network interface; the sub-control device is connected to the main control device. Under the control device, business data in the video network needs to be sent and received by the sub-control device; the terminal device is connected under the sub-control device, and the terminal device can be a computer, camera monitoring equipment, video network terminal equipment, etc.
在本发明中,64位自治服务器被设置在视联网的主微云中,终端被设置在视联网的从微云中,在同一个自治云中有一个主控设备,主控设备中下连接着多个分控设备,每个分控设备下连接着多个终端设备。In the present invention, the 64-bit autonomous server is set in the main micro-cloud of the video network, and the terminal is set in the slave micro-cloud of the video network. There is a master control device in the same autonomous cloud, and the master control device is connected to There are multiple sub-control devices, and each sub-control device is connected to multiple terminal devices.
首先,终端设备1发起业务,给X86分控设备发送发送一个业务信令;然后,X86分控设备将该业务信令转发给主控设备,主控设备发送开启业务信令给X86分控设备,使X86分控设备将该开启业务信令转发给终端设备1和其它终端设备,如终端设备2,在终端设备1和终端设备1接收到该开启业务信令就表示终端设备1和终端设备2之间建立了业务数据传输通道;最后,终端设备1和终端设备2就可以通过X86分控设备进行数据交互,如果是在终端设备1、终端设备2、终端设备3之间建立了业务数据传输通道,那么终端设备1将待发送数据发给X86分控设备后,X86分控设备将上述代发数据进行复制后,给终端设备2和终端设备3各发送一份相同的代发数据。First, terminal device 1 initiates a service and sends a service signaling to the X86 sub-control device; then, the X86 sub-control device forwards the service signaling to the main control device, and the main control device sends an enable service signaling to the X86 sub-control device. , causing the X86 sub-control device to forward the service enablement signaling to terminal device 1 and other terminal devices, such as terminal device 2. When terminal device 1 and terminal device 1 receive the service enablement signaling, it means that terminal device 1 and terminal device 1 A business data transmission channel is established between 2; finally, terminal device 1 and terminal device 2 can interact with each other through the X86 sub-control device. If business data is established between terminal device 1, terminal device 2, and terminal device 3 transmission channel, then after terminal device 1 sends the data to be sent to the X86 sub-control device, the X86 sub-control device copies the above-mentioned transmission data and sends a copy of the same transmission data to terminal device 2 and terminal device 3 respectively.
本发明通过上述数据转发的方法,旨在通过分控设备在自治云内部实现数据的复制、转发,有序的控制各终端设备之间的通信。Through the above data forwarding method, the present invention aims to realize the copying and forwarding of data within the autonomous cloud through the sub-control device, and orderly control the communication between the terminal devices.
参照图2,示出了本发明的一种数据转发的方法的步骤流程图,具体可以包括如下步骤:Referring to Figure 2, a flow chart of steps of a data forwarding method of the present invention is shown, which may specifically include the following steps:
步骤201,接收所述第一终端设备发送的业务信令,并将所述业务信令转发给所述主控设备;所述业务信令用于请求在所述第一终端设备和所述第二终端设备之间建立业务数据传输通道。Step 201: Receive the service signaling sent by the first terminal device and forward the service signaling to the main control device; the service signaling is used to request the communication between the first terminal device and the third terminal device. A service data transmission channel is established between the two terminal devices.
在本发明实施例中,所述方法应用于视联网数据处理系统中的第一分控设备,所述第一分控设备与主控设备、第一终端设备以及第二终端设备多个终端设备分别连接。In the embodiment of the present invention, the method is applied to the first sub-control device in the video network data processing system. The first sub-control device and the main control device, the first terminal device and the second terminal device are multiple terminal devices. Connect separately.
首先,第一分控设备下的第一终端设备发起业务请求,给第一终端发送业务信令,该业务信令包括第一终端设备的视联网地址、第二终端的视联网地址,以及还包括第一终端设备预与第二终端设备建立的业务类型,如,直播、可视电话、会议等业务类型。First, the first terminal device under the first sub-control device initiates a service request and sends service signaling to the first terminal. The service signaling includes the video network address of the first terminal device, the video network address of the second terminal, and also Including service types pre-established by the first terminal device and the second terminal device, such as live broadcast, video phone, conference and other service types.
然后,第一分控设备接收到该业务信令后,会给第一终端设备返回一个反馈消息,让第一终端设备知道该业务信令是否发送成功;若第一终端设备接收的反馈消息时表征失败,则第一终端设备再次给第一分控设备发送业务信令。Then, after receiving the service signaling, the first sub-control device will return a feedback message to the first terminal device to let the first terminal device know whether the service signaling is sent successfully; if the feedback message received by the first terminal device is If the characterization fails, the first terminal device sends service signaling to the first sub-control device again.
最后,第一分控设备将业务信令转发给主控设备,主控设备解析该业务信令,得到第一终端设备的视联网地址、第二终端设备的视联网地址,以及第一终端设备的请求任务类型。主控设备根据第一终端设备的视联网地址、第二终端设备的视联网地址,以及第一终端设备的请求任务类型生成一张组播信息表。具体的,该组播信息表中有主控设备下各分控设备下的所有已入网的终端设备标识,若第二终端设备在另一个自治云,那么第二终端设备的标识也会通过业务信令添加到该组播信息表中,主控设备在组播信息表中将第一终端设备和第二终端设备的状态标识改为开启状态。例如,将组播信息表中第一终端设备和第二终端设备的标识由0改为1,其中,0表示不进行业务,1表示进行业务。Finally, the first sub-control device forwards the service signaling to the main control device. The main control device parses the service signaling and obtains the video network address of the first terminal device, the video network address of the second terminal device, and the video network address of the first terminal device. The requested task type. The main control device generates a multicast information table based on the video network address of the first terminal device, the video network address of the second terminal device, and the request task type of the first terminal device. Specifically, the multicast information table contains the identities of all terminal devices connected to the network under each sub-control device under the main control device. If the second terminal device is in another autonomous cloud, the identity of the second terminal device will also be passed through the service The signaling is added to the multicast information table, and the master control device changes the status identifiers of the first terminal device and the second terminal device to the on state in the multicast information table. For example, the identifiers of the first terminal device and the second terminal device in the multicast information table are changed from 0 to 1, where 0 indicates no service and 1 indicates no service.
之后,主控设备生成第一业务开启信令和第二业务开启信令,其中,第一业务开启信令的数据头中携带了第一终端设备的视联网地址,第二业务开启信令的数据头中携带了第二终端设备的视联网地址。主控设备将将第一业务开启信令和第二业务开启信令发送给第一分控设备。After that, the main control device generates the first service start signaling and the second service start signaling. The data header of the first service start signaling carries the video network address of the first terminal device, and the data header of the second service start signaling carries the video network address of the first terminal device. The data header carries the video network address of the second terminal device. The main control device will send the first service start signaling and the second service start signaling to the first sub-control device.
步骤202,接收所述主控设备发送的携带所述第一终端设备视联网地址的第一业务开启信令和携带所述第二终端设备的视联网地址第二业务开启信令。Step 202: Receive the first service start signaling carrying the video network address of the first terminal device and the second service start signaling carrying the video network address of the second terminal device sent by the main control device.
本发明实施例中,第一分控设备分别接收第一业务开启信令和第二业务开启信令。In the embodiment of the present invention, the first sub-control device receives the first service start signaling and the second service start signaling respectively.
步骤203,将所述第一业务开启信令转发给所述第一终端设备,并将所述第二业务开启信令转发给所述第二终端设备,以在所述第一终端设备和所述第二终端设备之间建立业务数据传输通道。Step 203: Forward the first service opening signaling to the first terminal device, and forward the second service opening signaling to the second terminal device, so as to connect the first terminal device and the second terminal device. A service data transmission channel is established between the second terminal devices.
本发明实施例中,第一分控设备读取第一业务开启信令和第二业务开启信令的数据头,将第一业务开启信令转发给第一终端设备,将第二业务开启信令转发给第二终端设备,使第一终端设备和第二终端设备知道第一终端设备和第二终端设备之间建立了业务数据传输通道,让第一终端设备和第二终端设备做好发送/接收数据的准备。In the embodiment of the present invention, the first sub-control device reads the data headers of the first service start signaling and the second service start signaling, forwards the first service start signaling to the first terminal device, and forwards the second service start signaling to the first terminal device. The order is forwarded to the second terminal device, so that the first terminal device and the second terminal device know that a service data transmission channel has been established between the first terminal device and the second terminal device, so that the first terminal device and the second terminal device can prepare the transmission /Preparation for receiving data.
步骤204,通过所述业务数据传输通道转发所述第一终端设备和所述第二终端设备之间的业务数据。Step 204: Forward the service data between the first terminal device and the second terminal device through the service data transmission channel.
本发明实施例中,第一终端设备将业务数据发送给第一分控设备,第一分控设备读取主控设备发送的组播信息表,得到组播信息表中为开启标识的终端设备,如,组播信息表中标识为1的终端设备;将业务数据发送给第二终端设备。相应的,第二终端也可以将自身的业务数据发送给第二分控设备,第一分控设备读物主控设备发送的组播信息表,得到组播信息表中为开启标识的终端设备,将上述第二终端发送的业务数据转发给第一终端设备。In the embodiment of the present invention, the first terminal device sends the service data to the first sub-control device, and the first sub-control device reads the multicast information table sent by the main control device, and obtains the terminal device with the open flag in the multicast information table. , for example, the terminal device identified as 1 in the multicast information table; sends the service data to the second terminal device. Correspondingly, the second terminal can also send its own service data to the second sub-control device. The first sub-control device reads the multicast information table sent by the main control device and obtains the terminal device with the open flag in the multicast information table. Forward the service data sent by the second terminal to the first terminal device.
优选的,本发明实施例中,第二终端设备可以表征多个区别于第一终端设备的终端设备,第一终端设备和多个终端设备可以通过上述方法建立业务数据传输通道。第一分控设备在接收到业务数据后可通过组播信息表对该业务数据进行复制,并将复制的业务数据发送给其它终端设备一份。Preferably, in the embodiment of the present invention, the second terminal device can represent multiple terminal devices that are different from the first terminal device, and the first terminal device and the multiple terminal devices can establish service data transmission channels through the above method. After receiving the service data, the first sub-control device can copy the service data through the multicast information table, and send a copy of the copied service data to other terminal devices.
本发明实施例,通过第一终端给第一分控设备发送业务信令,发起业务请求,使第一分控设备将该业务信令转发给主控设备,主控设备生成开启业务信令,通过第一分控设备分别发送给第一终端设备和第二终端设备,而建立了第一终端设备和第二终端设备之间的业务数据传输通道,让第一终端设备和第二终端设备能够彼此进行业务数据交互。实现了有序控制各个终端设备的通信,相比现有技术中用芯片转发终端设备的数据,更加的节约成本,能够根据第一分控设备给更多的终端设备发送业务数据,更加容易掌握业务数据的流向。In the embodiment of the present invention, the first terminal sends service signaling to the first sub-control device and initiates a service request, so that the first sub-control device forwards the service signaling to the main control device, and the main control device generates start-up service signaling. By sending the first sub-control device to the first terminal device and the second terminal device respectively, a service data transmission channel is established between the first terminal device and the second terminal device, so that the first terminal device and the second terminal device can Interact business data with each other. It achieves orderly control of the communication of each terminal device. Compared with the existing technology that uses chips to forward data of terminal devices, it is more cost-effective. It can send business data to more terminal devices based on the first sub-control device, making it easier to master. The flow of business data.
参照图3,示出了本发明的一种数据转发的步骤流程图。具体如下:Referring to Figure 3, a flow chart of data forwarding steps of the present invention is shown. details as follows:
步骤301,建立分控设备、主控设备以及终端设备之间的通信连接。Step 301: Establish a communication connection between the sub-control device, the main control device and the terminal device.
本发明实施例中,建立与所述主控设备、所述第一终端设备以及所述第二终端设备的通信连接;用心跳维持与所述主控设备、第一终端设备以及第二终端设备的活动状态。In the embodiment of the present invention, communication connections with the main control device, the first terminal device and the second terminal device are established; and heartbeats are used to maintain communication with the main control device, the first terminal device and the second terminal device. activity status.
具体的,建立第一分控设备、主控设备、第一终端设备以及第二终端设备之间通过视联网接口的通信连接;其中,第一分控设备通过tcp socket通信连接到主控设备,第一分控设备通过tcp socket跟第一终端设备和第二终端设备进行通信连接。第一分控设备和主控设备通过心跳通知各自的状态,根据心跳来判断主控设备、第一分控设备是否在线,第一分控设备和第一终端设备以及第二终端设备通过心跳通知各自的状态,根据心跳判断第一分控设备、第一终端设备以及第二终端设备是否在线,第一分控设备通过心跳命令将第一终端设备、第二终端设备的入网状态告知主控设备,同时主控设备在收到终端设备的入网状态后保存。Specifically, a communication connection is established between the first sub-control device, the main control device, the first terminal device and the second terminal device through the video network interface; wherein, the first sub-control device is connected to the main control device through tcp socket communication, The first sub-control device communicates with the first terminal device and the second terminal device through TCP socket. The first sub-control device and the main control device notify their respective statuses through heartbeats, and determine whether the main control device and the first sub-control device are online based on the heartbeat. The first sub-control device and the first terminal device and the second terminal device notify through heartbeats Their respective statuses are determined based on the heartbeat whether the first sub-control device, the first terminal device and the second terminal device are online. The first sub-control device notifies the main control device of the network access status of the first terminal device and the second terminal device through the heartbeat command. , and at the same time, the main control device saves it after receiving the network access status of the terminal device.
优选的,第一分控设备下有多个终端设备,如终端设备1、终端设备2、终端设备3、终端设备5等,第一分控设备可以和上述终端设备建立通信连接,本发明不做限制。Preferably, there are multiple terminal devices under the first sub-control device, such as terminal device 1, terminal device 2, terminal device 3, terminal device 5, etc. The first sub-control device can establish a communication connection with the above-mentioned terminal devices. The present invention does not Make restrictions.
步骤302,第一终端设备给第一分控设备发送业务信令。Step 302: The first terminal device sends service signaling to the first sub-control device.
本发明实施例中,第一终端设备对第一分控设备以业务信令的形式发送建立业务的请求。其中,该业务信令携带了第一终端设备的视联网地址、第二终端设备的视联网地址以及任务类型。该业务信令用于请求在第一终端设备和第二终端设备之间建立业务数据传输通道。In the embodiment of the present invention, the first terminal device sends a request to establish a service in the form of service signaling to the first sub-control device. The service signaling carries the video network address of the first terminal device, the video network address of the second terminal device, and the task type. The service signaling is used to request the establishment of a service data transmission channel between the first terminal device and the second terminal device.
优选的,业务信令中可以携带多个终端设备的视联网地址,该业务信令用于请求在第一终端设备和多个终端设备之间建立业务数据传输通道。Preferably, the service signaling may carry the video network addresses of multiple terminal devices, and the service signaling is used to request the establishment of service data transmission channels between the first terminal device and the multiple terminal devices.
步骤303,第一分控设备转发业务信令给主控设备。Step 303: The first sub-control device forwards the service signaling to the main control device.
本发明实施例中,分控设备不会对收到的数据做任何的处理。第一分控设备将第一终端设备发送的业务信令转发给主控设备。In the embodiment of the present invention, the sub-control device will not perform any processing on the received data. The first sub-control device forwards the service signaling sent by the first terminal device to the main control device.
步骤304,主控设备发送开启业务信令给第一分控设备。Step 304: The main control device sends service start signaling to the first sub-control device.
本发明实施例中,主控设备接收到业务信令后,根据业务信令中携带的终端设备地址和请求的业务类型生成一张组播信息表和一个组播地址。其中,一个业务里面组播地址是不能和其它业务重复的,通过组播地址可以知道哪个终端设备在进行设么业务,以及在跟谁进行业务;同时,组播信息表中有主控设备下各分控设备下的所有已入网的终端设备标识,若第二终端设备在另一个自治云,那么第二终端设备的标识也会通过业务信令添加到该组播信息表中,主控设备在组播信息表中将第一终端设备和第二终端设备的状态标识改为开启状态。例如,将组播信息表中第一终端设备和第二终端设备的标识由0改为1,其中,0表示不进行业务,1表示进行业务。In the embodiment of the present invention, after receiving the service signaling, the main control device generates a multicast information table and a multicast address according to the terminal device address carried in the service signaling and the requested service type. Among them, the multicast address in one service cannot be repeated with other services. Through the multicast address, you can know which terminal device is performing the service and with whom it is conducting the service. At the same time, the multicast information table contains the master control device. The identities of all terminal devices connected to the network under each sub-control device. If the second terminal device is in another autonomous cloud, the identity of the second terminal device will also be added to the multicast information table through service signaling. The master control device Change the status identifiers of the first terminal device and the second terminal device in the multicast information table to the on state. For example, the identifiers of the first terminal device and the second terminal device in the multicast information table are changed from 0 to 1, where 0 indicates no service and 1 indicates no service.
之后,主控设备在预配置文件中根据第一分控设备的MAC地址查看第一分控设备是否被指定为转换器,以及查看第一分控设备是否是上下边界分控设备,若是,则主控设备将重新生成一个全局唯一的替换组播地址。After that, the main control device checks whether the first sub-control device is designated as a converter based on the MAC address of the first sub-control device in the preconfiguration file, and checks whether the first sub-control device is an upper or lower boundary sub-control device. If so, then The master device will regenerate a globally unique replacement multicast address.
最后,主控设备分别生成第一开启业务信令、第二开启业务信令,第一开启业务信令的数据头携带了第一终端设备的视联网地址,第二开启业务信令的数据头携带了第二终端设备的视联网地址。主控设备将第一开启业务信令和第二开启业务信令发送给第一分控设备。Finally, the main control device generates the first service start signaling and the second service start signaling respectively. The data header of the first service start signaling carries the video network address of the first terminal device, and the data header of the second service start signaling carries the video network address of the first terminal device. It carries the video network address of the second terminal device. The main control device sends the first service start signaling and the second service start signaling to the first sub-control device.
步骤305,第一分控设备将开启业务信令转发给第一终端设备和第二终端设备。Step 305: The first sub-control device forwards the service start signaling to the first terminal device and the second terminal device.
本发明实施例中,第一分控设备读取第一业务开启信令和第二业务开启信令的数据头,将第一业务开启信令转发给第一终端设备,将第二业务开启信令转发给第二终端设备,使第一终端设备和第二终端设备知道第一终端设备和第二终端设备之间建立了业务数据传输通道,让第一终端设备和第二终端设备做好发送/接收数据的准备。In the embodiment of the present invention, the first sub-control device reads the data headers of the first service start signaling and the second service start signaling, forwards the first service start signaling to the first terminal device, and forwards the second service start signaling to the first terminal device. The order is forwarded to the second terminal device, so that the first terminal device and the second terminal device know that a service data transmission channel has been established between the first terminal device and the second terminal device, so that the first terminal device and the second terminal device can prepare the transmission /Preparation for receiving data.
步骤306,第一分控设备接收主控设备发送的组播链路控制信息和数据源打开信令。Step 306: The first sub-control device receives the multicast link control information and data source opening signaling sent by the main control device.
本发明实施例中,第一分控设备接收所述主控设备发送的组播链路控制信息和数据源打开信令,所述链组播路控制信息包括组播地址。In this embodiment of the present invention, the first sub-control device receives the multicast link control information and data source opening signaling sent by the main control device, and the link multicast path control information includes a multicast address.
具体的,主控设备将组播链路控制信息发送第一分控设备,其中,组播链路控制信息中包含多个表征不同业务的组播信息表、组播地址以及替换组播地址。同时,主播设备打开第一终端设备和第二终端设备之间的链路开关,生成一个数据源打开信令,发送给第一分控设备。Specifically, the main control device sends the multicast link control information to the first sub-control device, where the multicast link control information includes multiple multicast information tables representing different services, multicast addresses, and replacement multicast addresses. At the same time, the anchor device turns on the link switch between the first terminal device and the second terminal device, generates a data source opening signaling, and sends it to the first sub-control device.
步骤307,第一分控设备将数据源打开信令和组播地址转发给第一终端设备。Step 307: The first sub-control device forwards the data source opening signaling and multicast address to the first terminal device.
具体的,判断所述组播地址和所述替换组播地址是否相同;若不同,则用所述替换组播地址替换所述组播地址。Specifically, it is determined whether the multicast address and the replacement multicast address are the same; if they are different, the multicast address is replaced with the replacement multicast address.
在本发明实施例中,数据源打开信令用于通知第一终端设备可以开始发送业务数据给第一分控设备。组播地址用于第一终端将组播地址作为目的视联网地址,将业务数据发送给第一分控设备。In the embodiment of the present invention, the data source open signaling is used to notify the first terminal device that it can start sending service data to the first sub-control device. The multicast address is used by the first terminal to use the multicast address as the destination video network address and send service data to the first sub-control device.
第一分控设备接收到组播链路控制信息后,判断组播链路控制信息中的组播地址和替换组播地址是否相同。After receiving the multicast link control information, the first sub-control device determines whether the multicast address in the multicast link control information and the replacement multicast address are the same.
若相同,则将所述组播地址和所述数据源打开信令转发给所述第一终端设备;If they are the same, forward the multicast address and the data source opening signaling to the first terminal device;
若不相同,则将替换组播地址和所述数据源打开信令转发给所述第一终端设备。If they are not the same, the replacement multicast address and the data source opening signaling are forwarded to the first terminal device.
第一终端设备接收到数据源打开信令后将组播地址或替换组播地址作为目的视联网地址,把业务数据发送给第一分控设备。After receiving the data source opening signaling, the first terminal device uses the multicast address or the replacement multicast address as the destination video network address, and sends the service data to the first sub-control device.
步骤308,第一分控设备根据所述组播信息表将所述业务数据转发给所述第二终端设备。Step 308: The first sub-control device forwards the service data to the second terminal device according to the multicast information table.
在本发明实施例中,因为第一分控设备中可能同时在进行多组业务,因此第一分控设备中就有多张组播信息表。第一分控设备在接收到第一终端设备发送的业务数据后,根据组播地址查找对应的组播信息表。第一终端设备将业务数据转发给组播信息表中终端设备标识为1且区别于第一终端设备的终端设备,即为第二终端设备。In this embodiment of the present invention, because the first sub-control device may be carrying out multiple groups of services at the same time, there are multiple multicast information tables in the first sub-control device. After receiving the service data sent by the first terminal device, the first sub-control device searches the corresponding multicast information table according to the multicast address. The first terminal device forwards the service data to the terminal device whose terminal device identifier is 1 in the multicast information table and is different from the first terminal device, that is, the second terminal device.
参照图4,示出了本发明的一种数据转发的步骤流程图,所述主控设备与第二分控设备连接,所述第二分控设备与多个终端设备连接。具体步骤如下:Referring to Figure 4, a flow chart of data forwarding steps of the present invention is shown. The main control device is connected to a second sub-control device, and the second sub-control device is connected to a plurality of terminal devices. Specific steps are as follows:
步骤401,根据所述组播信息表确定是否需要将所述业务数据转发给与所述第二分控设备连接的多个终端设备。Step 401: Determine whether the service data needs to be forwarded to multiple terminal devices connected to the second sub-control device according to the multicast information table.
本发明实施例中,第一分控设备、第二分控设备和主控设备连接,第一终端设备连接在第一分控设备上,第二分控设备下连接了很多终端设备。In the embodiment of the present invention, the first sub-control device, the second sub-control device are connected to the main control device, the first terminal device is connected to the first sub-control device, and many terminal devices are connected to the second sub-control device.
在第一终端设备和第二分控设备下的多个终端设备建立好业务后,第一分控设备需要查找组播信息表以确定是否需要将第一终端设备发送的业务数据转发给第二分控设备。After multiple terminal devices under the first terminal device and the second sub-control device have established services, the first sub-control device needs to search the multicast information table to determine whether the service data sent by the first terminal device needs to be forwarded to the second sub-control device. Sub-control equipment.
具体的,第一终端设备将业务信令通过第一分控终端转发给主控设备后,因为主控设备知道与自身连接的所有分控设备和这些分控设备下的所有终端设备的信息,包括:视联网地址、Mac地址等信息,因此主控设备在解析了业务信令后得到该业务信令里携带的终端设备的视联网地址,从而根据业务信令里携带的终端设备的视联网地址知道是否需要将之后第一终端发送的业务数据发给第二分控设备并记录在组播信息表中,若需要,则主控将组播链路控制信息和数据源打开信令发给第二分控设备一份。Specifically, after the first terminal device forwards the service signaling to the main control device through the first sub-control terminal, because the main control device knows the information of all sub-control devices connected to itself and all terminal devices under these sub-control devices, Including: video network address, Mac address and other information, so the main control device obtains the video network address of the terminal device carried in the business signaling after parsing the business signaling, and then based on the video network address of the terminal device carried in the business signaling The address knows whether it is necessary to send the service data sent by the first terminal to the second sub-control device and record it in the multicast information table. If necessary, the main control sends the multicast link control information and data source opening signaling to One copy of the second sub-control equipment.
步骤402,确定需要将所述业务数据转发给与所述第二分控设备连接的多个终端设备时,将所述业务数据复制多份。Step 402: When it is determined that the service data needs to be forwarded to multiple terminal devices connected to the second sub-control device, make multiple copies of the service data.
本发明实施例中,第一分控设备在接收到第一终端设备发送的业务数据后,通过主播信息表将该业务数据发送给第二分控设备,第二分控设备根据组播控制信息表内终端设备的标识将业务数据复制成多份。In the embodiment of the present invention, after receiving the service data sent by the first terminal device, the first sub-control device sends the service data to the second sub-control device through the anchor information table, and the second sub-control device sends the service data to the second sub-control device according to the multicast control information. The identification of the terminal device in the table copies the business data into multiple copies.
步骤403,将复制的多份业务数据转发给与所述第二分控设备连接的多个终端设备。Step 403: Forward the copied service data to multiple terminal devices connected to the second sub-control device.
在本发明实施例中,第二分控设备将业务数据给每个组播信息表中标识为1且区别于第一终端设备的终端设备发送一份。In this embodiment of the present invention, the second sub-control device sends a copy of the service data to the terminal device identified as 1 in each multicast information table and which is different from the first terminal device.
在本发明实施例中,在终端设备需将业务数据发给多个其它终端设备时,只需给分控设备发送一份业务数据,之后由分控服务设备复制并转发该业务数据给其它终端设备,解决了现有技术中点对点数据发送容易数据流量爆棚和网络数据无法掌控的问题。In the embodiment of the present invention, when a terminal device needs to send service data to multiple other terminal devices, it only needs to send one copy of the service data to the sub-control device, and then the sub-control service device copies and forwards the service data to other terminals. The equipment solves the problems in the existing technology that point-to-point data transmission is prone to overflowing data traffic and network data cannot be controlled.
参照图5,示出了本发明的一种数据转发的功能框图。具体如下:Referring to Figure 5, a functional block diagram of data forwarding according to the present invention is shown. details as follows:
本发明实施例中,数据转发的业务流程主要分为两部分,单播业务和组播业务。In the embodiment of the present invention, the data forwarding business process is mainly divided into two parts, unicast service and multicast service.
单播业务:终端设备发起业务请求(业务信令)并发送给X86分控设备,X86分控设备将业务请求转发给主控服务设备,主控服务设备生成开启业务信令由X86分控设备转发给对应终端设备,以通知终端设备业务建立。之后,主控设备生成数据源打开信息(数据源打开信令)和组播链路控制信息,并发送给X86分控设备,其中,播链路控制信息中包括组播地址、替换组播地址、组播信息表;X86分控设备将携带了组播地址或替换组播地址的数据源打开信息给终端设备。X86分控设备将业务数据发送给发起业务请求的终端设备。Unicast service: The terminal device initiates a service request (service signaling) and sends it to the X86 sub-control device. The X86 sub-control device forwards the service request to the main control service device. The main control service device generates the service signaling and sends it to the X86 sub-control device. Forwarded to the corresponding terminal device to notify the terminal device of service establishment. Afterwards, the main control device generates data source open information (data source open signaling) and multicast link control information, and sends them to the X86 sub-control device. The broadcast link control information includes the multicast address and the replacement multicast address. , multicast information table; the X86 sub-control device sends the data source opening information carrying the multicast address or replacement multicast address to the terminal device. The X86 sub-control device sends service data to the terminal device that initiates the service request.
组播业务:终端设备根据组播地址或替换组播地址将音视频数据发送给X86分控设备;X86分控设备根据组播信息表确定将上述业务数据复制转发给该X86分控设备下面的其它终端设备,或将业务数据转发给其它X86分控设备,再由其它X86分控设备复制转发业务数据给其下面的终端设备。Multicast service: The terminal device sends audio and video data to the X86 sub-control device according to the multicast address or alternative multicast address; the X86 sub-control device determines according to the multicast information table to copy and forward the above service data to the X86 sub-control device. Other terminal devices, or forward the service data to other X86 sub-control devices, and then the other X86 sub-control devices copy and forward the service data to the terminal devices below them.
上述实施例的有益效果:Beneficial effects of the above embodiments:
本发明通过第一终端给第一分控设备发送业务信令,发起业务请求,使第一分控设备将该业务信令转发给主控设备,主控设备生成开启业务信令,通过第一分控设备分别发送给第一终端设备和第二终端设备,而建立了第一终端设备和第二终端设备之间的业务数据传输通道,让第一终端设备和第二终端设备能够彼此进行业务数据交互;通过第一分控设备复制转发业务数据,实现了有序控制各个终端设备的通信,相比现有技术中用芯片转发终端设备的数据,更加的节约成本,能够根据第一分控设备给更多的终端设备发送业务数据,更加容易掌握业务数据的流向,也不会造成终端设备的流量爆棚。In the present invention, the first terminal sends service signaling to the first sub-control device and initiates a service request, so that the first sub-control device forwards the service signaling to the main control device, and the main control device generates the start-up service signaling through the first sub-control device. The sub-control device sends the data to the first terminal device and the second terminal device respectively, thereby establishing a service data transmission channel between the first terminal device and the second terminal device, so that the first terminal device and the second terminal device can conduct business with each other. Data interaction: By copying and forwarding business data through the first sub-control device, orderly control of communication between each terminal device is achieved. Compared with the existing technology of using chips to forward data of terminal devices, it is more cost-effective and can be based on the first sub-control device. The device sends business data to more terminal devices, making it easier to grasp the flow of business data and preventing terminal devices from experiencing overwhelming traffic.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that for the sake of simple description, the method embodiments are expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequence because According to embodiments of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily necessary for the embodiments of the present invention.
参照图6,示出了本发明的一种数据转发的装置结构图,应用于视联网数据处理系统中的第一分控设备,所述第一分控设备与主控设备、第一终端设备以及第二终端设备多个终端设备分别连接;具体可以包括如下模块:Referring to Figure 6, there is shown a structural diagram of a data forwarding device of the present invention, which is applied to the first sub-control device in the video network data processing system. The first sub-control device, the main control device, and the first terminal device And the second terminal device is connected to multiple terminal devices respectively; specifically, it may include the following modules:
通信建立模块601,用于建立与所述主控设备、所述第一终端设备以及所述第二终端设备的通信连接;Communication establishment module 601, used to establish communication connections with the main control device, the first terminal device and the second terminal device;
状态维持模块602,用于用心跳维持与所述主控设备、第一终端设备以及第二终端设备的活动状态。The state maintenance module 602 is used to maintain the activity state with the main control device, the first terminal device and the second terminal device using heartbeats.
第一接收模块603,用于接收所述第一终端设备发送的业务信令,并将所述业务信令转发给所述主控设备;所述业务信令用于请求在所述第一终端设备和所述第二终端设备之间建立业务数据传输通道;The first receiving module 603 is used to receive the service signaling sent by the first terminal device and forward the service signaling to the main control device; the service signaling is used to request that the first terminal Establish a service data transmission channel between the device and the second terminal device;
第二接收模块604,用于接收所述主控设备发送的携带所述第一终端设备视联网地址的第一业务开启信令和携带所述第二终端设备的视联网地址第二业务开启信令;The second receiving module 604 is configured to receive the first service start signaling carrying the video network address of the first terminal device and the second service start signaling carrying the video network address of the second terminal device sent by the main control device. make;
开启业务信令转发模块605,用于将所述第一业务开启信令转发给所述第一终端设备,并将所述第二业务开启信令转发给所述第二终端设备,以在所述第一终端设备和所述第二终端设备之间建立业务数据传输通道;The service start signaling forwarding module 605 is used to forward the first service start signaling to the first terminal device, and forward the second service start signaling to the second terminal device, so as to Establishing a service data transmission channel between the first terminal device and the second terminal device;
第一业务数据转发模块606,用于通过所述业务数据传输通道转发所述第一终端设备和所述第二终端设备之间的业务数据。The first service data forwarding module 606 is configured to forward service data between the first terminal device and the second terminal device through the service data transmission channel.
优选的,第一业务数据转发模块606,还包括以下子模块:Preferably, the first service data forwarding module 606 also includes the following sub-modules:
信息接收子模块,用于接收所述主控设备发送的组播链路控制信息和数据源打开信令,所述链组播路控制信息包括组播地址;Information receiving submodule, used to receive multicast link control information and data source opening signaling sent by the main control device, where the link multicast path control information includes a multicast address;
所述组播链路控制信息还包括替换组播地址;The multicast link control information also includes a replacement multicast address;
地址判断模块子模块,用于判断所述组播地址和所述替换组播地址是否相同;The address judgment module sub-module is used to judge whether the multicast address and the replacement multicast address are the same;
地址替换模块子模块,用于若不同,则用所述替换组播地址替换所述组播地址。The address replacement module sub-module is used to replace the multicast address with the replacement multicast address if they are different.
数据转发子模块,用于将所述组播地址和所述数据源打开信令转发给所述第一终端设备;A data forwarding submodule, configured to forward the multicast address and the data source opening signaling to the first terminal device;
数据查找子模块,用于接收所述第一终端设备发送的业务数据,并根据所述组播地址查找组播信息表;A data search submodule, configured to receive the service data sent by the first terminal device and search the multicast information table according to the multicast address;
业务数据转发子模块,用于根据所述组播信息表将所述业务数据转发给所述第二终端设备。The service data forwarding submodule is configured to forward the service data to the second terminal device according to the multicast information table.
优选的,所述主控设备与第二分控设备连接,所述第二分控设备与多个终端设备连接;所述装置,还包括:Preferably, the main control device is connected to a second sub-control device, and the second sub-control device is connected to a plurality of terminal devices; the device further includes:
终端设备确定模块,用于根据所述组播信息表确定是否需要将所述业务数据转发给与所述第二分控设备连接的多个终端设备;A terminal device determination module, configured to determine whether the service data needs to be forwarded to multiple terminal devices connected to the second sub-control device according to the multicast information table;
业务数据复制模块,用于确定需要将所述业务数据转发给与所述第二分控设备连接的多个终端设备时,将所述业务数据复制多份;A business data copying module, configured to copy multiple copies of the business data when it is determined that the business data needs to be forwarded to multiple terminal devices connected to the second sub-control device;
第二业务数据转发模块,用于将复制的多份业务数据转发给与所述第二分控设备连接的多个终端设备。The second service data forwarding module is configured to forward multiple copied service data to multiple terminal devices connected to the second sub-control device.
基于同一发明构思,本发明另一实施例提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请上述任一实施例所述的方法中的步骤。Based on the same inventive concept, another embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the method described in any of the above embodiments of the present application are implemented. .
基于同一发明构思,本发明另一实施例提供一种电子设备,包括存储器、处理器及存储在存储器上并可再处理器上运行的计算机程序,所述处理器执行时实现本申请上述任一实施例所述的方法中的步骤。Based on the same inventive concept, another embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes, any one of the above mentioned aspects of the present application is implemented. Steps in the methods described in the examples.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For relevant details, please refer to the partial description of the method embodiment.
为使本领域技术人员更好地理解本发明实施例,以下对视联网进行介绍:In order for those skilled in the art to better understand the embodiments of the present invention, the video network is introduced below:
视联网的组网如下所述:The networking of the video network is as follows:
视联网是一种集中控制的网络结构,该网络可以是树型网、星型网、环状网等等类型,但在此基础上网络中需要有集中控制节点来控制整个网络。The visual network is a centralized control network structure. The network can be a tree network, a star network, a ring network, etc., but on this basis, a centralized control node is needed in the network to control the entire network.
如图7所示,视联网分为接入网和城域网两部分。As shown in Figure 7, the video network is divided into two parts: the access network and the metropolitan area network.
接入网部分的设备主要可以分为3类:节点服务器,接入交换机,终端(包括各种机顶盒、编码板、存储器等)。节点服务器与接入交换机相连,接入交换机可以与多个终端相连,并可以连接以太网。The equipment in the access network can be mainly divided into three categories: node servers, access switches, and terminals (including various set-top boxes, coding boards, memories, 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.
其中,节点服务器是接入网中起集中控制功能的节点,可控制接入交换机和终端。节点服务器可直接与接入交换机相连,也可以直接与终端相连。Among them, the node server is a node with a centralized control function in the access network and can control access switches and terminals. The node server can be directly connected to the access switch or directly connected to the terminal.
类似的,城域网部分的设备也可以分为3类:城域服务器,节点交换机,节点服务器。城域服务器与节点交换机相连,节点交换机可以与多个节点服务器相连。Similarly, the equipment in the metropolitan area network can also be divided into three categories: metropolitan area servers, node switches, and node servers. Metro servers are connected to node switches, and node switches can be connected to multiple node servers.
其中,节点服务器即为接入网部分的节点服务器,即节点服务器既属于接入网部分,又属于城域网部分。Among them, the node server is the 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.
城域服务器是城域网中起集中控制功能的节点,可控制节点交换机和节点服务器。城域服务器可直接连接节点交换机,也可直接连接节点服务器。The metropolitan area server is a node with a centralized control function in the metropolitan area network and can control node switches and node servers. Metro servers can be directly connected to node switches or node servers.
由此可见,整个视联网络是一种分层集中控制的网络结构,而节点服务器和城域服务器下控制的网络可以是树型、星型、环状等各种结构。It can be seen that the entire Vision Network is a hierarchical centralized control network structure, and the network controlled by the node server and the metropolitan area server can be a tree, star, ring and other structures.
形象地称,接入网部分可以组成统一视频平台(虚线圈中部分),多个统一视频平台可以组成视联网;每个统一视频平台可以通过城域以及广域视联网互联互通。To put it graphically, the access network part can form a unified video platform (the part in the dotted circle), and multiple unified video platforms can form a video network; each unified video platform can be interconnected through metropolitan and wide-area video networks.
视联网设备分类Visual network device classification
1.1本发明实施例的视联网中的设备主要可以分为3类:服务器,交换机(包括以太网网关),终端(包括各种机顶盒,编码板,存储器等)。视联网整体上可以分为城域网(或者国家网、全球网等)和接入网。1.1 The equipment in the visual network according to the embodiment of the present invention can be mainly divided into three categories: servers, switches (including Ethernet gateways), and terminals (including various set-top boxes, coding boards, memories, etc.). The video network as a whole can be divided into metropolitan area network (or national network, global network, etc.) and access network.
1.2其中接入网部分的设备主要可以分为3类:节点服务器,接入交换机(包括以太网网关),终端(包括各种机顶盒,编码板,存储器等)。1.2 The equipment in the access network can be mainly divided into three categories: node servers, access switches (including Ethernet gateways), and terminals (including various set-top boxes, encoding boards, memories, etc.).
各接入网设备的具体硬件结构为:The specific hardware structure of each access network equipment is:
节点服务器:Node server:
如图8所示,主要包括网络接口模块201、交换引擎模块202、CPU模块203、磁盘阵列模块204;As shown in Figure 8, it mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
其中,网络接口模块201,CPU模块203、磁盘阵列模块204进来的包均进入交换引擎模块202;交换引擎模块202对进来的包进行查地址表205的操作,从而获得包的导向信息;并根据包的导向信息把该包存入对应的包缓存器206的队列;如果包缓存器206的队列接近满,则丢弃;交换引擎模202轮询所有包缓存器队列,如果满足以下条件进行转发:1)该端口发送缓存未满;2)该队列包计数器大于零。磁盘阵列模块204主要实现对硬盘的控制,包括对硬盘的初始化、读写等操作;CPU模块203主要负责与接入交换机、终端(图中未示出)之间的协议处理,对地址表205(包括下行协议包地址表、上行协议包地址表、数据包地址表)的配置,以及,对磁盘阵列模块204的配置。Among them, the incoming packets from the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation on the address table 205 for the incoming packets, thereby obtaining the packet guidance information; and based on The packet guidance information stores the packet in the corresponding queue of the packet buffer 206; if the queue of the packet buffer 206 is close to full, it is discarded; the switching engine module 202 polls all packet buffer queues and forwards if the following conditions are met: 1) The send buffer of the port is not full; 2) The packet counter of the queue is greater than zero. The disk array module 204 mainly implements the control of the hard disk, including initialization, reading and writing of the hard disk and other operations; the CPU module 203 is mainly responsible for protocol processing with the access switch and terminal (not shown in the figure), and the address table 205 (including the configuration of 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 204.
接入交换机:Access switch:
如图9所示,主要包括网络接口模块(下行网络接口模块301、上行网络接口模块302)、交换引擎模块303和CPU模块304;As shown in Figure 9, it mainly includes network interface modules (downlink network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304;
其中,下行网络接口模块301进来的包(上行数据)进入包检测模块305;包检测模块305检测包的目地地址(DA)、源地址(SA)、数据包类型及包长度是否符合要求,如果符合,则分配相应的流标识符(stream-id),并进入交换引擎模块303,否则丢弃;上行网络接口模块302进来的包(下行数据)进入交换引擎模块303;CPU模块304进来的数据包进入交换引擎模块303;交换引擎模块303对进来的包进行查地址表306的操作,从而获得包的导向信息;如果进入交换引擎模块303的包是下行网络接口往上行网络接口去的,则结合流标识符(stream-id)把该包存入对应的包缓存器307的队列;如果该包缓存器307的队列接近满,则丢弃;如果进入交换引擎模块303的包不是下行网络接口往上行网络接口去的,则根据包的导向信息,把该数据包存入对应的包缓存器307的队列;如果该包缓存器307的队列接近满,则丢弃。Among them, the incoming packets (uplink data) from the downlink network interface module 301 enter the packet detection module 305; the packet detection module 305 detects whether the destination address (DA), source address (SA), data packet type and packet length of the packet meet the requirements. If If it matches, the corresponding stream identifier (stream-id) is assigned and enters the switching engine module 303, otherwise it is discarded; the incoming packets (downlink data) from the uplink network interface module 302 enter the switching engine module 303; the incoming data packets from the CPU module 304 Enter the switching engine module 303; the switching engine module 303 performs the operation of looking up the address table 306 for the incoming packet, thereby obtaining the packet guidance information; if the packet entering the switching engine module 303 is from the downlink network interface to the uplink network interface, then the combination The flow identifier (stream-id) stores the packet in the queue of the corresponding packet buffer 307; if the queue of the packet buffer 307 is close to full, it is discarded; if the packet entering the switching engine module 303 is not a downstream network interface, it is sent to the upstream interface. If the data packet goes to the network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the packet steering information; if the queue of the packet buffer 307 is close to full, it is discarded.
交换引擎模块303轮询所有包缓存器队列,在本发明实施例中分两种情形:The switching engine module 303 polls all packet buffer queues. In this embodiment of the present invention, there are two situations:
如果该队列是下行网络接口往上行网络接口去的,则满足以下条件进行转发:1)该端口发送缓存未满;2)该队列包计数器大于零;3)获得码率控制模块产生的令牌;If the queue goes from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) The send buffer of the port is not full; 2) The packet counter of the queue is greater than zero; 3) The token generated by the code rate control module is obtained ;
如果该队列不是下行网络接口往上行网络接口去的,则满足以下条件进行转发:1)该端口发送缓存未满;2)该队列包计数器大于零。If the queue does not go from the downstream network interface to the upstream network interface, the following conditions are met for forwarding: 1) The send buffer of the port is not full; 2) The packet counter of the queue is greater than zero.
码率控制模块208是由CPU模块204来配置的,在可编程的间隔内对所有下行网络接口往上行网络接口去的包缓存器队列产生令牌,用以控制上行转发的码率。The code rate control module 208 is configured by the CPU module 204 and generates tokens in the packet buffer queues of all downlink network interfaces going to the uplink network interface within a programmable interval to control the code rate of uplink forwarding.
CPU模块304主要负责与节点服务器之间的协议处理,对地址表306的配置,以及,对码率控制模块308的配置。The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
以太网协转网关: Ethernet protocol conversion gateway :
如图10所示,主要包括网络接口模块(下行网络接口模块401、上行网络接口模块402)、交换引擎模块403、CPU模块404、包检测模块405、码率控制模块408、地址表406、包缓存器407和MAC添加模块409、MAC删除模块410。As shown in Figure 10, it mainly includes the network interface module (downlink network interface module 401, uplink network interface module 402), switching engine module 403, CPU module 404, packet detection module 405, code rate control module 408, address table 406, packet Cache 407, MAC adding module 409, and MAC deleting module 410.
其中,下行网络接口模块401进来的数据包进入包检测模块405;包检测模块405检测数据包的以太网MAC DA、以太网MAC SA、以太网length or frame type、视联网目地地址DA、视联网源地址SA、视联网数据包类型及包长度是否符合要求,如果符合则分配相应的流标识符(stream-id);然后,由MAC删除模块410减去MAC DA、MAC SA、length or frame type(2byte),并进入相应的接收缓存,否则丢弃;Among them, the data packets coming from the downlink network interface module 401 enter the packet detection module 405; the packet detection module 405 detects the Ethernet MAC DA, Ethernet MAC SA, Ethernet length or frame type, video network destination address DA, and video network of the data packet. Whether the source address SA, network data packet type and packet length meet the requirements, if so, a corresponding stream identifier (stream-id) is allocated; then, the MAC deletion module 410 subtracts the MAC DA, MAC SA, length or frame type. (2byte), and enter the corresponding receive buffer, otherwise discard;
下行网络接口模块401检测该端口的发送缓存,如果有包则根据包的视联网目地地址DA获知对应的终端的以太网MAC DA,添加终端的以太网MAC DA、以太网协转网关的MACSA、以太网length or frame type,并发送。The downlink network interface module 401 detects the sending buffer of the port. If there is a packet, it obtains the Ethernet MAC DA of the corresponding terminal according to the visual network destination address DA of the packet, and adds the Ethernet MAC DA of the terminal, the MACSA of the Ethernet protocol conversion gateway, Ethernet length or frame type, and send.
以太网协转网关中其他模块的功能与接入交换机类似。The functions of other modules in the Ethernet protocol conversion gateway are similar to those of the access switch.
终端:terminal:
主要包括网络接口模块、业务处理模块和CPU模块;例如,机顶盒主要包括网络接口模块、视音频编解码引擎模块、CPU模块;编码板主要包括网络接口模块、视音频编码引擎模块、CPU模块;存储器主要包括网络接口模块、CPU模块和磁盘阵列模块。Mainly includes network interface module, business processing module and CPU module; for example, set-top box mainly includes network interface module, video and audio coding engine module, CPU module; encoding board mainly includes network interface module, video and audio coding engine module, CPU module; memory It mainly includes network interface module, CPU module and disk array module.
1.3城域网部分的设备主要可以分为2类:节点服务器,节点交换机,城域服务器。其中,节点交换机主要包括网络接口模块、交换引擎模块和CPU模块;城域服务器主要包括网络接口模块、交换引擎模块和CPU模块构成。1.3 The equipment in the metropolitan area network can be mainly divided into two categories: node servers, node switches, and metropolitan area servers. Among them, node switches mainly include network interface modules, switching engine modules and CPU modules; metro servers mainly include network interface modules, switching engine modules and CPU modules.
2、视联网数据包定义2. Definition of video network data packets
2.1接入网数据包定义2.1 Access network data packet definition
接入网的数据包主要包括以下几部分:目的地址(DA)、源地址(SA)、保留字节、payload(PDU)、CRC。The data packet of the access network mainly includes the following parts: destination address (DA), source address (SA), reserved bytes, payload (PDU), and CRC.
如下表所示,接入网的数据包主要包括以下几部分:As shown in the following table, the data packets of the access network mainly include the following parts:
其中:in:
目的地址(DA)由8个字节(byte)组成,第一个字节表示数据包的类型(例如各种协议包、组播数据包、单播数据包等),最多有256种可能,第二字节到第六字节为城域网地址,第七、第八字节为接入网地址;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.). There are up to 256 possibilities. The second to sixth bytes are the metropolitan area network address, and the seventh and eighth bytes are the access network address;
源地址(SA)也是由8个字节(byte)组成,定义与目的地址(DA)相同;The source address (SA) is also composed of 8 bytes and has the same definition as the destination address (DA);
保留字节由2个字节组成;Reserved bytes consist of 2 bytes;
payload部分根据不同的数据报的类型有不同的长度,如果是各种协议包的话是64个字节,如果是单组播数据包话是32+1024=1056个字节,当然并不仅仅限于以上2种;The payload part has different lengths according to different datagram types. If it is a various 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 2 types;
CRC有4个字节组成,其计算方法遵循标准的以太网CRC算法。CRC consists of 4 bytes, and its calculation method follows the standard Ethernet CRC algorithm.
2.2城域网数据包定义2.2 MAN data packet definition
城域网的拓扑是图型,两个设备之间可能有2种、甚至2种以上的连接,即节点交换机和节点服务器、节点交换机和节点交换机、节点交换机和节点服务器之间都可能超过2种连接。但是,城域网设备的城域网地址却是唯一的,为了精确描述城域网设备之间的连接关系,在本发明实施例中引入参数:标签,来唯一描述一个城域网设备。The topology of the metropolitan area network is a graph. There may be two or even more than two types of connections between two devices, that is, there may be more than two connections between node switches and node servers, node switches and node switches, and node switches and node servers. kind of connection. 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: label is introduced in the embodiment of the present invention to uniquely describe a metropolitan area network device.
本说明书中标签的定义和MPLS(Multi-Protocol Label Switch,多协议标签交换)的标签的定义类似,假设设备A和设备B之间有两个连接,那么数据包从设备A到设备B就有2个标签,数据包从设备B到设备A也有2个标签。标签分入标签、出标签,假设数据包进入设备A的标签(入标签)是0x0000,这个数据包离开设备A时的标签(出标签)可能就变成了0x0001。城域网的入网流程是集中控制下的入网过程,也就意味着城域网的地址分配、标签分配都是由城域服务器主导的,节点交换机、节点服务器都是被动的执行而已,这一点与MPLS的标签分配是不同的,MPLS的标签分配是交换机、服务器互相协商的结果。The definition of labels in this manual is similar to the definition of labels in MPLS (Multi-Protocol Label Switch, Multi-Protocol Label Switching). Assuming that there are two connections between device A and device B, then the data packet from device A to device B has 2 labels, the data packet from device B to device A also has 2 labels. Labels are divided into incoming labels and outgoing labels. Assume that the label (incoming label) of a data packet entering device A is 0x0000. The label (outgoing label) of this data packet when it leaves device A may become 0x0001. The network access process of the metropolitan area network is a network access process under centralized control, which means that the address allocation and label allocation of the metropolitan area network are dominated by the metropolitan area server, and the node switches and node servers are only passively executed. It is different from the label allocation of MPLS. The label allocation of MPLS is the result of mutual negotiation between switches and servers.
如下表所示,城域网的数据包主要包括以下几部分:As shown in the following table, the data packets of the metropolitan area network mainly include the following parts:
即目的地址(DA)、源地址(SA)、保留字节(Reserved)、标签、payload(PDU)、CRC。其中,标签的格式可以参考如下定义:标签是32bit,其中高16bit保留,只用低16bit,它的位置是在数据包的保留字节和payload之间。That is, destination address (DA), source address (SA), reserved bytes (Reserved), label, payload (PDU), and CRC. Among them, the format of the label can refer to the following definition: the label is 32 bits, of which the high 16 bits are reserved and only the low 16 bits are used. Its position is between the reserved bytes of the data packet and the payload.
基于视联网的上述特性,提出了本发明实施例的核心构思之一,遵循视联网的协议,由分控设备转发业务数据给其它终端设备。Based on the above characteristics of the Video Network, one of the core concepts of the embodiments of the present invention is proposed. Following the protocol of the Video Network, the sub-control device forwards service data to other terminal devices.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner. Each embodiment focuses on its differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other.
本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Thus, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, embodiments of the 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, etc.) having computer-usable program code embodied therein.
本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the invention are described with reference to flowcharts 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 process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations 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 device to produce a machine such that the instructions are executed by the processor of the computer or other programmable data processing terminal device. Means are generated for implementing the functions specified in the process or processes of the flowchart diagrams and/or the block or blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing terminal equipment to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the The instruction means implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, so that a series of operating steps are performed on the computer or other programmable terminal equipment to produce computer-implemented processing, thereby causing the computer or other programmable terminal equipment to perform a computer-implemented process. The instructions executed on provide steps for implementing the functions specified in a process or processes of the flow diagrams and/or a block or blocks of the block diagrams.
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。Although preferred embodiments of the embodiments of the present invention have been described, those skilled in the art will be able to make additional changes and modifications to these embodiments once the basic inventive concepts are apparent. Therefore, it is intended that the appended claims be construed to include the preferred embodiments and all changes and modifications that fall within the scope of embodiments of the invention.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or any such actual relationship or sequence between operations. Furthermore, the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or end device that includes a list of elements includes not only those elements, but also elements not expressly listed or other elements inherent to such process, method, article or terminal equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or terminal device including the stated element.
以上对本发明所提供的一种数据转发的方法、装置、设备及介质,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The above is a detailed introduction to the data forwarding method, device, equipment and medium provided by the present invention. This article uses specific examples to illustrate the principles and implementation modes of the present invention. The description of the above embodiments is only for It helps to understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the field, there will be changes in the specific implementation and application scope according to the idea of the present invention. In summary, the content of this specification It should not be construed as a limitation of the invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911405801.5A CN111163169B (en) | 2019-12-30 | 2019-12-30 | Data forwarding method, device, equipment and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911405801.5A CN111163169B (en) | 2019-12-30 | 2019-12-30 | Data forwarding method, device, equipment and medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111163169A CN111163169A (en) | 2020-05-15 |
| CN111163169B true CN111163169B (en) | 2024-02-23 |
Family
ID=70559776
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911405801.5A Active CN111163169B (en) | 2019-12-30 | 2019-12-30 | Data forwarding method, device, equipment and medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111163169B (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110113305A (en) * | 2019-03-25 | 2019-08-09 | 视联动力信息技术股份有限公司 | A kind of processing method and system regarding networking service |
| CN110312097A (en) * | 2019-05-28 | 2019-10-08 | 视联动力信息技术股份有限公司 | Data processing method, system, electronic equipment and storage medium |
| CN110474956A (en) * | 2019-07-10 | 2019-11-19 | 视联动力信息技术股份有限公司 | Depending on networked devices title method, apparatus, electronic equipment and readable storage medium storing program for executing |
| CN110475131A (en) * | 2018-05-09 | 2019-11-19 | 视联动力信息技术股份有限公司 | A kind of terminal connection method, server and terminal |
| CN110493351A (en) * | 2019-08-28 | 2019-11-22 | 视联动力信息技术股份有限公司 | A kind of view networking cut-in method, device, equipment and storage medium |
| CN110519119A (en) * | 2019-07-31 | 2019-11-29 | 视联动力信息技术股份有限公司 | Bandwidth management method, device and storage medium based on view networking |
-
2019
- 2019-12-30 CN CN201911405801.5A patent/CN111163169B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110475131A (en) * | 2018-05-09 | 2019-11-19 | 视联动力信息技术股份有限公司 | A kind of terminal connection method, server and terminal |
| CN110113305A (en) * | 2019-03-25 | 2019-08-09 | 视联动力信息技术股份有限公司 | A kind of processing method and system regarding networking service |
| CN110312097A (en) * | 2019-05-28 | 2019-10-08 | 视联动力信息技术股份有限公司 | Data processing method, system, electronic equipment and storage medium |
| CN110474956A (en) * | 2019-07-10 | 2019-11-19 | 视联动力信息技术股份有限公司 | Depending on networked devices title method, apparatus, electronic equipment 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 |
| CN110493351A (en) * | 2019-08-28 | 2019-11-22 | 视联动力信息技术股份有限公司 | A kind of view networking cut-in method, device, equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111163169A (en) | 2020-05-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110519119B (en) | Bandwidth management method and device based on video network and storage medium | |
| CN109617956B (en) | Data processing method and device | |
| CN110190973B (en) | Online state detection method and device | |
| CN111565323A (en) | A flow control method, device, electronic device and storage medium | |
| CN110113557B (en) | Multistage conference implementation method and video networking system | |
| CN109819062B (en) | Method and device for accessing network by using virtual MAC address | |
| CN110650171B (en) | Video networking service scheduling system and method | |
| CN111245733A (en) | Data transmission method and device | |
| CN110266577B (en) | A tunnel establishment method and video networking system | |
| CN110557319B (en) | Message processing method and device based on video network | |
| CN111131911B (en) | A kind of multicast method and device | |
| CN111193767B (en) | Request data sending method, device and clustered server system | |
| CN111669337A (en) | Flow control method and device | |
| CN111064923B (en) | Monitoring data processing method and device and storage medium | |
| CN111478791B (en) | Data management method and device | |
| CN111245592B (en) | Signaling transmission method and device and computer readable storage medium | |
| CN110784683B (en) | A management method, device and storage medium for monitoring resources | |
| CN110166363B (en) | A kind of multicast link monitoring method and device | |
| CN110336710B (en) | A terminal testing method, system and device and storage medium | |
| CN111163169B (en) | Data forwarding method, device, equipment and medium | |
| CN111555975A (en) | Data sending method and device, electronic equipment and storage medium | |
| CN118827544A (en) | Data transmission method, device, electronic device and storage medium | |
| CN110740087A (en) | Message transmission method, terminal, gateway device, electronic device and storage medium | |
| CN111355916B (en) | Method, device, equipment and storage medium for establishing video networking communication connection | |
| CN111225241B (en) | A communication method and device |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: 33rd Floor, No.1 Huasheng Road, Yuzhong District, Chongqing 400013 Patentee after: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd. Country or region after: China Address before: 100000 Beijing Dongcheng District Qinglong Hutong 1 Song Hua Building A1103-1113 Patentee before: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd. Country or region before: China |