[go: up one dir, main page]

CN106789268A - A kind of network audio transmission method and system - Google Patents

A kind of network audio transmission method and system Download PDF

Info

Publication number
CN106789268A
CN106789268A CN201611226392.9A CN201611226392A CN106789268A CN 106789268 A CN106789268 A CN 106789268A CN 201611226392 A CN201611226392 A CN 201611226392A CN 106789268 A CN106789268 A CN 106789268A
Authority
CN
China
Prior art keywords
audio
data
network
switch
receiving 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.)
Pending
Application number
CN201611226392.9A
Other languages
Chinese (zh)
Inventor
徐永健
陆许明
徐广建
谭洪舟
陈远川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SYSU HUADU INDUSTRIAL SCIENCE AND TECHNOLOGY INSTITUTE
Sun Yat Sen University
Original Assignee
SYSU HUADU INDUSTRIAL SCIENCE AND TECHNOLOGY INSTITUTE
Sun Yat Sen University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by SYSU HUADU INDUSTRIAL SCIENCE AND TECHNOLOGY INSTITUTE, Sun Yat Sen University filed Critical SYSU HUADU INDUSTRIAL SCIENCE AND TECHNOLOGY INSTITUTE
Priority to CN201611226392.9A priority Critical patent/CN106789268A/en
Publication of CN106789268A publication Critical patent/CN106789268A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • H04L41/0809Plug-and-play configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明公开了一种网络音频传输方法,涉及交换机、至少一个音频发送设备和至少一个音频接收设备,所述的交换机、音频发送设备和音频接收设备位于同一网段内,所述的方法具体为:步骤1:音频发送设备将封装有IP地址、音频信号或控制信号的数据发送给交换机;步骤2:交换机接收所述的数据并将该数据发送到IP地址对应的音频接收设备;步骤3:所述的音频接收设备接收交换机发送的数据并解封装得到音频信号或控制信号。本发明的目的在于提供一种网络音频传输方法和系统。

The invention discloses a network audio transmission method, which involves a switch, at least one audio sending device and at least one audio receiving device, the switch, the audio sending device and the audio receiving device are located in the same network segment, and the method is specifically as follows : Step 1: The audio sending device sends the data encapsulated with IP address, audio signal or control signal to the switch; Step 2: The switch receives the data and sends the data to the audio receiving device corresponding to the IP address; Step 3: The audio receiving device receives the data sent by the switch and decapsulates it to obtain an audio signal or a control signal. The purpose of the present invention is to provide a network audio transmission method and system.

Description

一种网络音频传输方法和系统Method and system for network audio transmission

技术领域technical field

本发明涉及网络音频传输技术领域,具体地说是一种网络音频传输方法和系统。The invention relates to the technical field of network audio transmission, in particular to a network audio transmission method and system.

背景技术Background technique

在现有技术中,音频大多需要以对应的音频线以模拟信号进行传输,这样的话存在的缺陷在于,需要连接大量的音频线进行连接,对操作人员的操作要求高,特别是对于远距离数据传输其难度更大。In the prior art, most of the audio needs to be transmitted with the corresponding audio cable as an analog signal. In this case, the disadvantage is that a large number of audio cables need to be connected for connection, and the operation requirements of the operator are high, especially for long-distance data. It is more difficult to transmit it.

发明内容Contents of the invention

本发明的目的在于提供一种网络音频传输方法和系统。The purpose of the present invention is to provide a network audio transmission method and system.

本发明的具体的技术方案为:一种网络音频传输方法,涉及交换机、至少一个音频发送设备和至少一个音频接收设备,所述的交换机、音频发送设备和音频接收设备位于同一网段内,所述的方法具体为:The specific technical solution of the present invention is: a network audio transmission method, involving a switch, at least one audio sending device and at least one audio receiving device, the switch, the audio sending device and the audio receiving device are located in the same network segment, so The specific method described is:

步骤1:音频发送设备将封装有IP地址、音频信号或控制信号的数据发送给交换机;Step 1: The audio sending device sends the data encapsulated with IP address, audio signal or control signal to the switch;

步骤2:交换机接收所述的数据并将该数据发送到IP地址对应的音频接收设备;Step 2: the switch receives the data and sends the data to the audio receiving device corresponding to the IP address;

步骤3:所述的音频接收设备接收交换机发送的数据并解封装得到音频信号或控制信号。Step 3: The audio receiving device receives the data sent by the switch and decapsulates it to obtain an audio signal or a control signal.

在上述的网络音频传输方法中,步骤1中,所述的音频发送设备和音频接收设备通过零配置网络协议或DHCP服务器分配IP地址。In the above-mentioned network audio transmission method, in step 1, the audio sending device and the audio receiving device assign IP addresses through a zero-configuration network protocol or a DHCP server.

在上述的网络音频传输方法中,步骤1中,所述的音频发送设备将所述的音频信号或控制信号在传输层封装UDP首部,在网络层封装所述的IP地址,在数据链路层封装以太网首部,并将其发送到物理层;In the above-mentioned network audio transmission method, in step 1, the audio sending device encapsulates the audio signal or control signal at the transport layer with a UDP header, at the network layer with the IP address, and at the data link layer Encapsulate the Ethernet header and send it to the physical layer;

所述的音频接收设备在物理层接收音频发送设备发送的数据后,在数据链路层、网络层、传输层进行相应的解封操作得到音频信号或控制信号。After the audio receiving device receives the data sent by the audio sending device at the physical layer, it performs corresponding decapsulation operations at the data link layer, network layer, and transport layer to obtain audio signals or control signals.

在上述的网络音频传输方法中,还包括同步时钟信号,所述的同步时钟信号与数据同步打包,所述的音频接收设备根据同步时钟信号以同一基准时间输出音频信号或控制信号。In the above network audio transmission method, a synchronous clock signal is also included, the synchronous clock signal is packaged synchronously with the data, and the audio receiving device outputs the audio signal or the control signal at the same reference time according to the synchronous clock signal.

在上述的网络音频传输方法中,所述的音频发送设备包括麦克风、数字音乐存储播放单元、DSP数字处理器中至少一种;所述的音频接收设备包括音响、DSP数字处理器、数字音乐存储播放单元中的至少一种。In the above-mentioned network audio transmission method, the audio sending device includes at least one of a microphone, a digital music storage and playback unit, and a DSP digital processor; the audio receiving device includes a stereo, a DSP digital processor, a digital music storage At least one of the playback units.

同时,本发明还公开了一种网络音频传输系统,包括交换机、少一个音频发送设备、至少一个音频接收设备,所述的交换机、音频发送设备和音频接收设备位于同一网段内,所述的音频发送设备用于封装包含有IP地址、音频信号或控制信号的数据,并将数据发送到交换机;At the same time, the invention also discloses a network audio transmission system, which includes a switch, one less audio sending device, and at least one audio receiving device. The switch, the audio sending device and the audio receiving device are located in the same network segment, and the The audio sending device is used to encapsulate data including IP address, audio signal or control signal, and send the data to the switch;

所述的交换机用于接收所述的数据并将所述的数据发送到该IP地址对应的音频接收设备;The switch is used to receive the data and send the data to the audio receiving device corresponding to the IP address;

所述的音频接收设备用于接收交换机发送的数据并解封装得到音频信号或控制信号。The audio receiving device is used to receive the data sent by the switch and decapsulate it to obtain an audio signal or a control signal.

在上述的网络音频传输系统中,所述的音频发送设备还用于将同步时钟信号和所述的数据打包发送给交换机;In the above-mentioned network audio transmission system, the audio sending device is also used to package the synchronous clock signal and the data to the switch;

所述的音频接收设备用于根据同步时钟信号以同一基准时间输出音频信号或控制信号。The audio receiving device is used for outputting audio signals or control signals at the same reference time according to the synchronous clock signal.

与现有技术相比,本发明的有益效果在于:Compared with prior art, the beneficial effect of the present invention is:

本发明的音频数据以数据包的形式进行传输,基于三层的IP网络技术来传输音频数据,使得网络音频传输不依赖于控制系统而独立存在,解决传统多线路音频线缆铺设困难的问题,不再需要价格昂贵的多通道模拟线缆,改用成本低廉的CAT5e和CAT6类线及100/1000Mb/s的交换机。也解决了远距离传输、数据备份、自动冗余等模拟设备无法解决的问题。The audio data of the present invention is transmitted in the form of data packets, and the audio data is transmitted based on the three-layer IP network technology, so that the network audio transmission does not depend on the control system and exists independently, and solves the problem of difficulty in laying traditional multi-line audio cables. There is no need for expensive multi-channel analog cables anymore, and low-cost CAT5e and CAT6 cables and 100/1000Mb/s switches are used instead. It also solves the problems that cannot be solved by analog equipment such as long-distance transmission, data backup, and automatic redundancy.

本发明利用IEEE1588精密时钟同步协议来进行时钟同步,由于每个音频网络接口都是将本地时钟同步到基准时钟,所以他们的数据在打包和解包的过程中产生的数据量是完全相同的,这就不会因缓存过载导致音频数据丢失。The present invention uses the IEEE1588 precision clock synchronization protocol to perform clock synchronization. Since each audio network interface synchronizes the local clock to the reference clock, the amount of data generated during the packing and unpacking of their data is exactly the same. There will be no loss of audio data due to cache overload.

同时,在同一网络中分发同步时钟信号、音频信号和控制信号是分开进行的,音频信号和同步信号则是一起打包以UDP/IP形式传送,数据包跟随绝对时间戳在网络中传递,确保网络中任何位置结点可以同一基准时间输出相同采样频率的原信号。At the same time, the synchronous clock signal, audio signal and control signal are distributed separately in the same network, and the audio signal and synchronous signal are packaged together and transmitted in the form of UDP/IP. The data packet is transmitted in the network following the absolute time stamp, ensuring that the network Nodes at any position can output the original signal with the same sampling frequency at the same reference time.

本发明采用专用零配置技术——“即插即用”服务发现技术。利用自动配置自动查找接口设备、标识标签及区分IP地址等工作,无需启动高层级别的DNS和DHCP服务。即在不需要任何人工参与和管理、不需要各种服务参与的情况下,自动实现主机之间、主机和设备之间网络通信的配置。主要需要完成两方面:(1)IP地址自动分配,(2)服务的发现。当设备插上网线,一旦连接到网络,便可自动在网络上互相识别并配置,真正做到即插即用。The invention adopts a special zero-configuration technology—"plug and play" service discovery technology. Use automatic configuration to automatically find interface devices, identify labels, and distinguish IP addresses, without starting high-level DNS and DHCP services. That is, the configuration of network communication between hosts and between hosts and devices is automatically realized without any manual participation and management, and without the participation of various services. There are mainly two aspects to be completed: (1) IP address automatic allocation, (2) service discovery. When the devices are plugged into the network cable, once connected to the network, they can automatically identify and configure each other on the network, truly plug and play.

本发明只需要预先在控制终端如电脑上对交换机进行设置,在该局域网内任意的网络端点,都可以在应用程序界面上轻松的查阅、监控、配置音频信号的路由。The present invention only needs to set the switch on the control terminal such as a computer in advance, and any network endpoint in the local area network can easily consult, monitor and configure the routing of audio signals on the application program interface.

附图说明Description of drawings

图1是本发明实施例1的流程方框图;Fig. 1 is the flow block diagram of embodiment 1 of the present invention;

图2是本发明实施例1的同步时钟信号的选择方法方框图;Fig. 2 is the block diagram of the selection method of the synchronous clock signal of embodiment 1 of the present invention;

图3是本发明实施例2的结构方框图;Fig. 3 is a structural block diagram of Embodiment 2 of the present invention;

图4是本发明实施例3的结构方框图。Fig. 4 is a structural block diagram of Embodiment 3 of the present invention.

具体实施方式detailed description

下面结合具体实施方式,对本发明的技术方案作进一步的详细说明,但不构成对本发明的任何限制。The technical solutions of the present invention will be further described in detail below in conjunction with specific embodiments, but this does not constitute any limitation to the present invention.

实施例1Example 1

如图1所示,一种网络音频传输方法,涉及交换机、至少一个音频发送设备和至少一个音频接收设备,所述的交换机、音频发送设备和音频接收设备位于同一网段内,所述的方法具体为:As shown in Figure 1, a network audio transmission method involves a switch, at least one audio sending device and at least one audio receiving device, the switch, the audio sending device and the audio receiving device are located in the same network segment, the method Specifically:

步骤1:音频发送设备将封装有IP地址、音频信号或控制信号的数据发送给交换机;所述的音频发送设备和音频接收设备通过零配置网络协议或DHCP服务器分配IP地址。Step 1: The audio sending device sends the data encapsulated with the IP address, audio signal or control signal to the switch; the audio sending device and the audio receiving device assign an IP address through a zero-configuration network protocol or a DHCP server.

本实施例采用专用零配置技术——“即插即用”服务发现技术。利用自动配置自动查找接口设备、标识标签及区分IP地址等工作,无需启动高层级别的DNS和DHCP服务。即在不需要任何人工参与和管理、不需要各种服务参与的情况下,自动实现主机之间、主机和设备之间网络通信的配置。主要需要完成两方面:(1)IP地址自动分配,(2)服务的发现。当设备插上网线,一旦连接到网络,便可自动在网络上互相识别并配置,真正做到即插即用。This embodiment adopts a dedicated zero-configuration technology—"plug and play" service discovery technology. Use automatic configuration to automatically find interface devices, identify labels, and distinguish IP addresses, without starting high-level DNS and DHCP services. That is, the configuration of network communication between hosts and between hosts and devices is automatically realized without any manual participation and management, and without the participation of various services. There are mainly two aspects to be completed: (1) IP address automatic allocation, (2) service discovery. When the devices are plugged into the network cable, once connected to the network, they can automatically identify and configure each other on the network, truly plug and play.

更为具体来说:“即插即用”服务发现技术包括以下方面:More specifically: "Plug and Play" service discovery techniques include the following:

(1)IP地址自动分配(1) IP address is automatically assigned

接入系统网络的设备,会自动为其分配配置信息,且配置参数一直维持这种网络设置,即使重启该设备,网络设置也不会改变Devices connected to the system network will automatically assign configuration information to them, and the configuration parameters will always maintain this network setting. Even if the device is restarted, the network settings will not change

参与到同一链路的设备会在169.254.*的地址范围内随机选择一个IP地址Devices participating in the same link will randomly select an IP address in the address range of 169.254.*

然后发出探测报文,检测所选的IP地址是否被占用Then send a detection message to detect whether the selected IP address is occupied

设备IP地址一旦确定将不断发出通知,告知其他设备,该IP地址已被占用。Once the IP address of the device is determined, it will continue to send notifications to other devices that the IP address has been occupied.

(2)服务发现(2) Service Discovery

(a)接入系统网络的设备或主机,在没配置也没其他配置管理服务情况下,该服务发现功能可以使设备自动发现网络上提供的服务,(a) When the device or host connected to the system network has no configuration or other configuration management services, the service discovery function can enable the device to automatically discover the services provided on the network,

(b)支持这样一种框架,用户端有用户代理进程负责发送服务请求(b) Support a framework where the client has a user agent process responsible for sending service requests

(c)服务端通过服务代理进程声明服务(c) The server declares the service through the service proxy process

(d)当服务发现时,用户指定所需服务的特征信息,由用户代理发出服务请求(d) When the service is discovered, the user specifies the characteristic information of the required service, and the user agent sends a service request

(e)若网路上存在相匹配的服务,用户代理将收到服务位置的应答。(e) If a matching service exists on the network, the user agent will receive a service location reply.

本实施例所述的数据的封装步骤如图1所示,音频信号或控制信号作为数据部分在应用/表示/会话层产生,然后在传输层封装UDP首部,然后在网络层封装IP首部,最后经过数据链层封装以太网首部后在物理层进行数据传输。The encapsulation steps of the data described in this embodiment are as shown in Figure 1, the audio signal or control signal is generated in the application/presentation/session layer as a data part, then the UDP header is encapsulated at the transport layer, and the IP header is encapsulated at the network layer, and finally After encapsulating the Ethernet header at the data link layer, data transmission is performed at the physical layer.

封装后的数据如下表1:The packaged data is shown in Table 1:

以太网首部/IP首部/UDP首部Ethernet header/IP header/UDP header 音频信号/控制信号Audio signal/control signal

在封装产生上述数据的同时,还同时封装同步时钟信号。While encapsulating and generating the above-mentioned data, a synchronous clock signal is also encapsulated at the same time.

本发明的同步时钟信号利用IEEE1588精密时钟同步协议来进行时钟同步,IEEE1588精密时钟同步协议的网络拓扑由基准时钟(Crandmaster Clock)、边界时钟(Boundary Clock)和本地时钟(Ordinary CLock)构成。IEEE1588根据最佳主时钟算法(BMC)完成主时钟即上述所说的基准时钟的选举,网络中的每个音频设备都跟踪基准时钟,由于每个音频网络接口都是将本地时钟同步到基准时钟,所以他们的数据在打包和解包的过程中产生的数据量是完全相同的,这就不会因缓存过载导致音频数据丢失。The synchronous clock signal of the present invention uses the IEEE1588 precision clock synchronization protocol to perform clock synchronization, and the network topology of the IEEE1588 precision clock synchronization protocol consists of a reference clock (Crandmaster Clock), a boundary clock (Boundary Clock) and a local clock (Ordinary CLock). IEEE1588 completes the election of the master clock, which is the reference clock mentioned above, according to the best master clock algorithm (BMC). Each audio device in the network tracks the reference clock, because each audio network interface synchronizes the local clock to the reference clock , so the amount of data generated in the process of packing and unpacking their data is exactly the same, which will not cause audio data loss due to cache overload.

另外,在同一网络中可以发送同步时钟信号、音频信号和控制信号,音频信号和同步信号则是一起打包以UDP/IP形式传送,数据包跟随绝对时间戳在网络中传递,确保网络中任何位置结点可以同一基准时间输出相同采样频率的原信号。In addition, synchronous clock signals, audio signals and control signals can be sent in the same network, and the audio signals and synchronous signals are packaged together and transmitted in the form of UDP/IP. The data packets are transmitted in the network following the absolute time stamp, ensuring The node can output the original signal with the same sampling frequency at the same reference time.

最佳主时钟算法BMC(Best Master Clock Algorithm)独立运行与时钟同步系统(在这里指本发明的系统中)的每个时钟上,BMC中的数据设置比较算法DSC(Data SetComparison Algorithm)来完成选举主时钟的工作。On each clock of the best master clock algorithm BMC (Best Master Clock Algorithm) independent operation and clock synchronization system (refer to in the system of the present invention here), the data setting comparison algorithm DSC (Data SetComparison Algorithm) in the BMC completes the election work of the master clock.

DSC算法动态运行于每个时钟上,在系统运行中根据实时数据不断计算比较时钟选举的数据集,该数据集包含时钟品质、时钟等级、时钟类型、时钟偏移等参数信息的集合,不断比较的过程如下图2所示。The DSC algorithm dynamically runs on each clock, and continuously calculates and compares the data set selected by the clock according to the real-time data during the system operation. The data set contains a collection of parameter information such as clock quality, clock level, clock type, and clock offset. The process is shown in Figure 2 below.

根据不断计算比较的结果动态调整各节点和端口的状态,系统会选择出更合适的节点作为主时钟。According to the results of continuous calculation and comparison, the status of each node and port is dynamically adjusted, and the system will select a more suitable node as the master clock.

具体的计算方法如下:The specific calculation method is as follows:

S1:比较数据集A、B,判断A、B的唯一标示是否相同;若相同,则进行S2,若不同则进行S3;其中,数据集A代表原有数据集;数据集B代表新更新的数据集;在本步骤中,A、B的唯一标示是指算法里面对每生成的数据集,都给予一个唯一的标识值;S1: Compare data sets A and B, and judge whether the unique labels of A and B are the same; if they are the same, proceed to S2, and if they are different, proceed to S3; among them, data set A represents the original data set; data set B represents the newly updated Data set; in this step, the unique identification of A and B means that each generated data set in the algorithm is given a unique identification value;

S2:判断A、B被转发的路径数是否相同;若不同,则较小的值比较好,若相同,则判断A与B的sequence ID是否相同,若相同则较大的值比较好;在本步骤中,转发的路径数是指数据集A和B被转发的次数;较大的值和较小的值的大小区分通过参数sequence ID进行比较。S2: Determine whether the number of forwarded paths of A and B are the same; if they are different, a smaller value is better; In this step, the number of forwarded paths refers to the number of times data sets A and B are forwarded; the larger value and the smaller value are compared by the parameter sequence ID.

S3:A与B的时钟级别是否相同,若不相同则进入S4;若相同则判断A与B的时钟抖动方差是否相同,若不同则进入S4,若相同则判断A的标识值是否小于B的标识值,若是则进入S4;在本步骤中,时钟级别是指精度等级值,谁的精度更好,优先级别更高;;时钟抖动是指对于理想时钟沿实际时钟存在不随时间积累的、时而超前、时而滞后的偏移称为时钟抖动,简称抖动.可以用抖动频率和抖动幅度对时钟抖动进行定量描述。S3: Whether the clock levels of A and B are the same, if not, go to S4; if they are the same, judge whether the clock jitter variance of A and B is the same, if not, go to S4, if they are the same, judge whether the identification value of A is smaller than that of B Identification value, if so, enter S4; in this step, the clock level refers to the accuracy level value, whose accuracy is better, the priority level is higher;; clock jitter refers to the fact that the actual clock does not accumulate with time for the ideal clock edge. The leading and sometimes lagging offset is called clock jitter, or jitter for short. The clock jitter can be described quantitatively by jitter frequency and jitter amplitude.

S4:判断较小的值比较好。S4: It is better to judge a smaller value.

步骤2:交换机接收所述的数据并将该数据发送到IP地址对应的音频接收设备;Step 2: the switch receives the data and sends the data to the audio receiving device corresponding to the IP address;

交换机根据数据中所封装的IP地址将数据发送到对应的音频接收设备。The switch sends the data to the corresponding audio receiving device according to the IP address encapsulated in the data.

步骤3:所述的音频接收设备接收交换机发送的数据并解封装得到音频信号或控制信号。Step 3: The audio receiving device receives the data sent by the switch and decapsulates it to obtain an audio signal or a control signal.

音频接收设备对于数据的解封装按照上述的封装步骤逆向解除封装即可。The decapsulation of the data by the audio receiving device can be decapsulated in reverse according to the above encapsulation steps.

本实施例的音频信号或控制信号以数据包的形式进行传输,基于三层的IP网络技术来传输音频数据,使得网络音频传输不依赖于控制系统而独立存在,解决传统多线路音频线缆铺设困难的问题,不再需要价格昂贵的多通道模拟线缆,改用成本低廉的CAT5e和CAT6类线及100/1000Mb/s的交换机。也解决了远距离传输、数据备份、自动冗余等模拟设备无法解决的问题。The audio signal or control signal in this embodiment is transmitted in the form of data packets, and the audio data is transmitted based on the three-layer IP network technology, so that the network audio transmission does not depend on the control system and exists independently, solving the problem of traditional multi-line audio cable laying Difficult problems, no longer need expensive multi-channel analog cables, switch to low-cost CAT5e and CAT6 cables and 100/1000Mb/s switches. It also solves the problems that cannot be solved by analog equipment such as long-distance transmission, data backup, and automatic redundancy.

本实施例利用IEEE1588精密时钟同步协议来进行时钟同步,由于每个音频网络接口都是将本地时钟同步到基准时钟,所以他们的数据在打包和解包的过程中产生的数据量是完全相同的,这就不会因缓存过载导致音频数据丢失。This embodiment utilizes the IEEE1588 precision clock synchronization protocol to perform clock synchronization. Since each audio network interface synchronizes the local clock to the reference clock, the amount of data generated during the packaging and unpacking of their data is exactly the same. This prevents audio data from being lost due to buffer overload.

同时,在同一网络中分发同步时钟信号、音频信号和控制信号是分开进行的,音频信号和同步信号则是一起打包以UDP/IP形式传送,数据包跟随绝对时间戳在网络中传递,确保网络中任何位置结点可以同一基准时间输出相同采样频率的原信号。At the same time, the synchronous clock signal, audio signal and control signal are distributed separately in the same network, and the audio signal and synchronous signal are packaged together and transmitted in the form of UDP/IP. The data packet is transmitted in the network following the absolute time stamp, ensuring that the network Nodes at any position can output the original signal with the same sampling frequency at the same reference time.

本实施例采用专用零配置技术——“即插即用”服务发现技术。利用自动配置自动查找接口设备、标识标签及区分IP地址等工作,无需启动高层级别的DNS和DHCP服务。即在不需要任何人工参与和管理、不需要各种服务参与的情况下,自动实现主机之间、主机和设备之间网络通信的配置。主要需要完成两方面:(1)IP地址自动分配,(2)服务的发现。当设备插上网线,一旦连接到网络,便可自动在网络上互相识别并配置,真正做到即插即用。This embodiment adopts a dedicated zero-configuration technology—"plug and play" service discovery technology. Use automatic configuration to automatically find interface devices, identify labels, and distinguish IP addresses, without starting high-level DNS and DHCP services. That is, the configuration of network communication between hosts and between hosts and devices is automatically realized without any manual participation and management, and without the participation of various services. There are mainly two aspects to be completed: (1) IP address automatic allocation, (2) service discovery. When the devices are plugged into the network cable, once connected to the network, they can automatically identify and configure each other on the network, truly plug and play.

本实施例只需要预先在控制终端如电脑上对交换机进行设置,在该局域网内任意的网络端点,都可以在应用程序界面上轻松的查阅、监控、配置音频信号的路由。In this embodiment, it is only necessary to pre-set the switch on a control terminal such as a computer, and any network endpoint in the local area network can easily view, monitor, and configure audio signal routing on the application program interface.

实施例2Example 2

如图3所示,一种网络音频传输系统,包括交换机1、少一个音频发送设备2、至少一个音频接收设备3,所述的交换机1、音频发送设备2和音频接收设备3位于同一网段内;As shown in Figure 3, a network audio transmission system includes a switch 1, one less audio sending device 2, and at least one audio receiving device 3, and the switch 1, audio sending device 2 and audio receiving device 3 are located on the same network segment Inside;

所述的音频发送设备2用于封装包含有IP地址、音频信号或控制信号的数据,并将数据发送到交换机1;为了进一步提高数据的同步性,数据还和同步时钟信号共同打包发送给交换机1;The audio sending device 2 is used to encapsulate the data containing IP address, audio signal or control signal, and send the data to the switch 1; in order to further improve the synchronization of the data, the data is also packaged together with the synchronous clock signal and sent to the switch 1;

所述的交换机1用于接收所述的数据并将所述的数据和同步时钟信号发送到该IP地址对应的音频接收设备3;The switch 1 is used to receive the data and send the data and the synchronous clock signal to the audio receiving device 3 corresponding to the IP address;

所述的音频接收设备3用于接收交换机发送的数据和同步时钟信号并解封装得到音频信号或控制信号。所述的音频接收设备3根据同步时钟信号以同一基准时间输出音频信号或控制信号。这样就实现了在网络层面上对数据的传输和同步播放。The audio receiving device 3 is used for receiving data and synchronous clock signals sent by the switch and decapsulating them to obtain audio signals or control signals. The audio receiving device 3 outputs audio signals or control signals at the same reference time according to the synchronous clock signal. In this way, data transmission and synchronous playback on the network level are realized.

在本实施例中,所述的交换机1包括数据接收发送单元和用于为接入设备自动配置接口设备、标识标签及区分IP地址并与该接入设备配对的配置单元,所述的控制信号包括接收该数据包的接口设备、标识标签及区分IP地址以及发送该数据包的接口设备、标识标签及区分IP地址。In this embodiment, the switch 1 includes a data receiving and sending unit and a configuration unit for automatically configuring an interface device, an identification label, and distinguishing an IP address for an access device and pairing with the access device. The control signal It includes the interface device, identification label and distinguishing IP address for receiving the data packet, and the interface device, identification label and distinguishing IP address for sending the data packet.

本实施例的音频数据以数据包的形式(数据包格式如图1-2-2)进行传输,基于三层的IP网络技术来传输音频数据,使得网络音频传输不依赖于控制系统而独立存在,解决传统多线路音频线缆铺设困难的问题,不再需要价格昂贵的多通道模拟线缆,改用成本低廉的CAT5e和CAT6类线及100/1000Mb/s的交换机。也解决了远距离传输、数据备份、自动冗余等模拟设备无法解决的问题。The audio data in this embodiment is transmitted in the form of data packets (the data packet format is shown in Figure 1-2-2), and the audio data is transmitted based on the three-layer IP network technology, so that the network audio transmission does not depend on the control system and exists independently , to solve the problem of difficult laying of traditional multi-line audio cables, no longer need expensive multi-channel analog cables, and use low-cost CAT5e and CAT6 cables and 100/1000Mb/s switches. It also solves the problems that cannot be solved by analog equipment such as long-distance transmission, data backup, and automatic redundancy.

本实施例利用IEEE1588精密时钟同步协议来进行时钟同步,由于每个音频网络接口都是将本地时钟同步到基准时钟,所以他们的数据在打包和解包的过程中产生的数据量是完全相同的,这就不会因缓存过载导致音频数据丢失。This embodiment utilizes the IEEE1588 precision clock synchronization protocol to perform clock synchronization. Since each audio network interface synchronizes the local clock to the reference clock, the amount of data generated during the packaging and unpacking of their data is exactly the same. This prevents audio data from being lost due to buffer overload.

同时,在同一网络中分发同步时钟信号、音频信号和控制信号是分开进行的,音频信号和同步信号则是一起打包以UDP/IP形式传送,数据包跟随绝对时间戳在网络中传递,确保网络中任何位置结点可以同一基准时间输出相同采样频率的原信号。At the same time, the synchronous clock signal, audio signal and control signal are distributed separately in the same network, and the audio signal and synchronous signal are packaged together and transmitted in the form of UDP/IP. The data packet is transmitted in the network following the absolute time stamp, ensuring that the network Nodes at any position can output the original signal with the same sampling frequency at the same reference time.

本实施例采用专用零配置技术——“即插即用”服务发现技术。利用自动配置自动查找接口设备、标识标签及区分IP地址等工作,无需启动高层级别的DNS和DHCP服务。即在不需要任何人工参与和管理、不需要各种服务参与的情况下,自动实现主机之间、主机和设备之间网络通信的配置。主要需要完成两方面:(1)IP地址自动分配,(2)服务的发现。当设备插上网线,一旦连接到网络,便可自动在网络上互相识别并配置,真正做到即插即用。This embodiment adopts a dedicated zero-configuration technology—"plug and play" service discovery technology. Use automatic configuration to automatically find interface devices, identify labels, and distinguish IP addresses, without starting high-level DNS and DHCP services. That is, the configuration of network communication between hosts and between hosts and devices is automatically realized without any manual participation and management, and without the participation of various services. There are mainly two aspects to be completed: (1) IP address automatic allocation, (2) service discovery. When the devices are plugged into the network cable, once connected to the network, they can automatically identify and configure each other on the network, truly plug and play.

本实施例只需要预先在控制终端如电脑上对交换机进行设置,在该局域网内任意的网络端点,都可以在应用程序界面上轻松的查阅、监控、配置音频信号的路由。In this embodiment, it is only necessary to pre-set the switch on a control terminal such as a computer, and any network endpoint in the local area network can easily view, monitor, and configure audio signal routing on the application program interface.

实施例3Example 3

下面,本实施例以具体的例子对本发明的方法进行解释。In the following, this embodiment uses specific examples to explain the method of the present invention.

如图4所示,以麦克风11、路由器12、DSP处理器13、调音台14、音响15、PC机16为例。As shown in FIG. 4 , a microphone 11 , a router 12 , a DSP processor 13 , a mixer 14 , a sound system 15 , and a PC 16 are taken as examples.

(a)在除路由器或交换机12以外的其他设备嵌入转换器模块(含以太网网口)(a) Embedding converter modules (including Ethernet network ports) in devices other than routers or switches 12

(b)搭建一个如图3所示的网络音频系统:(b) Build a network audio system as shown in Figure 3:

(b1)各设备之间的传输线为cat5类以上的双绞线(b1) The transmission line between each device is a twisted pair of cat5 or above

(b2)各音频设备及PC机通过cat5类以上的网线连接到路由器的网口(b2) Each audio device and PC are connected to the network port of the router through a network cable of cat5 or above

(b3)各设备根据零配置协议会获得在169.254.*范围内的一个IP地址,(b3) Each device will obtain an IP address in the range of 169.254.* according to the zero-configuration protocol,

(b4)PC机的控制程序具有服务发现功能,发现该网络系统内的各设备信息(包括名称、IP地址、音频通道数等信息)(b4) The control program of the PC has a service discovery function to discover the information of each device in the network system (including name, IP address, number of audio channels, etc.)

(c)此时PC机16的控制程序可以设置我们所想要的音频路由,例如,可设置麦克风11的channel-1作为发送端,调音台的channel-1和channel-2作为接收端,(c) now the control program of the PC 16 can set the audio routing we want, for example, the channel-1 of the microphone 11 can be set as the sending end, and the channel-1 and channel-2 of the mixer can be used as the receiving end,

(d)再将调音台14的channel-1和channel-2作为发送端,DSP处理器13的channel-1和channel-2作为接收端,调音台14处理完音频信号会将其发送到DSP处理器13;(d) the channel-1 and channel-2 of the mixing console 14 are used as the sending end, and the channel-1 and channel-2 of the DSP processor 13 are used as the receiving end. After the audio signal is processed by the mixing console 14, it will be sent to DSP processor 13;

(e)再将DSP处理器13的channel-1和channel-2作为发送端,音响的channel-1和channel-2作为接收端,DSP处理器13处理完音频信号会将其发送到音响15的channel-1和channel-2,作为左右声道输出音频信号。(e) Channel-1 and channel-2 of the DSP processor 13 are used as sending ends, and channel-1 and channel-2 of the audio are used as receiving ends. After the DSP processor 13 processes the audio signal, it will be sent to the audio signal 15 channel-1 and channel-2 output audio signals as left and right channels.

上述c-e的数据传输过程中,音频信号会封装所需要传递到的设备的IP地址,同时与同步时钟信号一起打包,通过交换机发送到对应的设备。During the above c-e data transmission process, the audio signal will be packaged with the IP address of the device to be transmitted, and will be packaged with the synchronous clock signal at the same time, and sent to the corresponding device through the switch.

当系统中需要增加新的设备时,该设备都需要嵌入或接入我们的转换器模块(含以太网网口),然后通过cat5类及以上的双绞线连接到音频网络中的交换机或路由器12。例如加入手机设备,手机设备可作为发送端,通过3.5音频线接入转换器模块(则在音频网络中,即将其channel-1和channel-2当作发送端),转换器模块再通过cat5类及以上的双绞线连接到音频网络中,这样就实现了新设备的加入。When a new device needs to be added to the system, the device needs to be embedded or connected to our converter module (including Ethernet network port), and then connected to the switch or router in the audio network through a twisted pair of cat5 and above 12. For example, if you add a mobile device, the mobile device can be used as the sender, connected to the converter module through the 3.5 audio cable (in the audio network, its channel-1 and channel-2 will be used as the sender), and the converter module will pass through the cat5 class And above the twisted pair is connected to the audio network, so that the addition of new equipment is realized.

以上所述的仅为本发明的较佳实施例,凡在本发明的精神和原则范围内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention, and any modifications, equivalent replacements and improvements made within the spirit and scope of the present invention shall be included within the protection scope of the present invention.

Claims (7)

1.一种网络音频传输方法,涉及交换机、至少一个音频发送设备和至少一个音频接收设备,所述的交换机、音频发送设备和音频接收设备位于同一网段内,其特征在于,所述的方法具体为:1. A network audio transmission method, involving a switch, at least one audio sending device and at least one audio receiving device, wherein the switch, the audio sending device and the audio receiving device are located in the same network segment, wherein the method Specifically: 步骤1:音频发送设备将封装有IP地址、音频信号或控制信号的数据发送给交换机;Step 1: The audio sending device sends the data encapsulated with IP address, audio signal or control signal to the switch; 步骤2:交换机接收所述的数据并将该数据发送到IP地址对应的音频接收设备;Step 2: the switch receives the data and sends the data to the audio receiving device corresponding to the IP address; 步骤3:所述的音频接收设备接收交换机发送的数据并解封装得到音频信号或控制信号。Step 3: The audio receiving device receives the data sent by the switch and decapsulates it to obtain an audio signal or a control signal. 2.根据权利要求1所述的网络音频传输方法,其特征在于,步骤1中,所述的音频发送设备和音频接收设备通过零配置网络协议或DHCP服务器分配IP地址。2. The network audio transmission method according to claim 1, wherein in step 1, the audio sending device and the audio receiving device assign IP addresses through a zero-configuration network protocol or a DHCP server. 3.根据权利要求2所述的网络音频传输方法,其特征在于,步骤1中,所述的音频发送设备将所述的音频信号或控制信号在传输层封装UDP首部,在网络层封装所述的IP地址,在数据链路层封装以太网首部,并将其发送到物理层;3. The network audio transmission method according to claim 2, characterized in that, in step 1, the audio sending device encapsulates the audio signal or control signal at the transport layer with the UDP header, and at the network layer encapsulates the IP address, encapsulates the Ethernet header at the data link layer, and sends it to the physical layer; 所述的音频接收设备在物理层接收音频发送设备发送的数据后,在数据链路层、网络层、传输层进行相应的解封操作得到音频信号或控制信号。After the audio receiving device receives the data sent by the audio sending device at the physical layer, it performs corresponding decapsulation operations at the data link layer, network layer, and transport layer to obtain audio signals or control signals. 4.根据权利要求1所述的网络音频传输方法,其特征在于,还包括同步时钟信号,所述的同步时钟信号与数据同步打包,所述的音频接收设备根据同步时钟信号以同一基准时间输出音频信号或控制信号。4. The network audio transmission method according to claim 1, further comprising a synchronous clock signal, the synchronous clock signal is packaged synchronously with the data, and the audio receiving device outputs at the same reference time according to the synchronous clock signal audio signal or control signal. 5.根据权利要求1所述的网络音频传输方法,其特征在于,所述的音频发送设备包括麦克风、数字音乐存储播放单元、DSP数字处理器中至少一种;所述的音频接收设备包括音响、DSP数字处理器、数字音乐存储播放单元中的至少一种。5. The network audio transmission method according to claim 1, wherein the audio sending device includes at least one of a microphone, a digital music storage and playback unit, and a DSP digital processor; the audio receiving device includes a stereo , DSP digital processor, and at least one of digital music storage and playback units. 6.一种网络音频传输系统,包括交换机、少一个音频发送设备、至少一个音频接收设备,所述的交换机、音频发送设备和音频接收设备位于同一网段内,其特征在于:6. A network audio transmission system, comprising a switch, one less audio sending device, and at least one audio receiving device, said switch, audio sending device and audio receiving device being located in the same network segment, characterized in that: 所述的音频发送设备用于封装包含有IP地址、音频信号或控制信号的数据,并将数据发送到交换机;The audio sending device is used to encapsulate data including IP address, audio signal or control signal, and send the data to the switch; 所述的交换机用于接收所述的数据并将所述的数据发送到该IP地址对应的音频接收设备;The switch is used to receive the data and send the data to the audio receiving device corresponding to the IP address; 所述的音频接收设备用于接收交换机发送的数据并解封装得到音频信号或控制信号。The audio receiving device is used to receive the data sent by the switch and decapsulate it to obtain an audio signal or a control signal. 7.根据权利要求6所述的网络音频传输系统,其特征在于,所述的音频发送设备还用于将同步时钟信号和所述的数据打包发送给交换机;7. The network audio transmission system according to claim 6, characterized in that, the audio sending device is also used to package the synchronous clock signal and the data to the switch; 所述的音频接收设备用于根据同步时钟信号以同一基准时间输出音频信号或控制信号。The audio receiving device is used for outputting audio signals or control signals at the same reference time according to the synchronous clock signal.
CN201611226392.9A 2016-12-27 2016-12-27 A kind of network audio transmission method and system Pending CN106789268A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611226392.9A CN106789268A (en) 2016-12-27 2016-12-27 A kind of network audio transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611226392.9A CN106789268A (en) 2016-12-27 2016-12-27 A kind of network audio transmission method and system

Publications (1)

Publication Number Publication Date
CN106789268A true CN106789268A (en) 2017-05-31

Family

ID=58921431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611226392.9A Pending CN106789268A (en) 2016-12-27 2016-12-27 A kind of network audio transmission method and system

Country Status (1)

Country Link
CN (1) CN106789268A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107734431A (en) * 2017-11-15 2018-02-23 郭思明 The shared recording control system of one kind and implementation method
CN108040021A (en) * 2017-11-27 2018-05-15 安徽威斯贝尔智能科技有限公司 A kind of wireless audio transmission system and its transmission method
CN108337241A (en) * 2018-01-03 2018-07-27 西安万像电子科技有限公司 Multimedia data transmission method and system
CN114142958A (en) * 2021-12-02 2022-03-04 中电科航空电子有限公司 A system and method for airborne real-time voice synchronous transmission based on cascaded switches

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110002429A1 (en) * 2008-02-29 2011-01-06 Audinate Pty Ltd Network devices, methods and/or systems for use in a media network
CN104570832A (en) * 2014-11-25 2015-04-29 中山大学花都产业科技研究院 Network control method of audio equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110002429A1 (en) * 2008-02-29 2011-01-06 Audinate Pty Ltd Network devices, methods and/or systems for use in a media network
CN104570832A (en) * 2014-11-25 2015-04-29 中山大学花都产业科技研究院 Network control method of audio equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
兆翦: ""基于三层网络的音频传输技术"", 《电声技术》 *
庾智兰等: "精确时钟同步协议最佳主时钟算法", 《电力自动化设备》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107734431A (en) * 2017-11-15 2018-02-23 郭思明 The shared recording control system of one kind and implementation method
CN108040021A (en) * 2017-11-27 2018-05-15 安徽威斯贝尔智能科技有限公司 A kind of wireless audio transmission system and its transmission method
CN108040021B (en) * 2017-11-27 2021-05-14 安徽威斯贝尔智能科技有限公司 Wireless audio transmission system and transmission method thereof
CN108337241A (en) * 2018-01-03 2018-07-27 西安万像电子科技有限公司 Multimedia data transmission method and system
CN114142958A (en) * 2021-12-02 2022-03-04 中电科航空电子有限公司 A system and method for airborne real-time voice synchronous transmission based on cascaded switches

Similar Documents

Publication Publication Date Title
CN109660443B (en) SDN-based physical device and virtual network communication method and system
US10361885B2 (en) Method and apparatus for providing a point-to-point connection over a network
EP3896923A1 (en) Bier packet sending method and apparatus
CN104135446B (en) System and methods of the IPv4 to IPv6 transition is realized based on SDN
WO2018040529A1 (en) Message processing method, device and system
CN103888386A (en) Extensible virtual local area network message transmission method, device and system
EP2654250A2 (en) Virtual local area network identity transformation method and apparatus
EP2210373A2 (en) Data stream router
CN108737183B (en) Method and device for monitoring forwarding table item
WO2018214809A1 (en) Message transmission method and device, and storage medium
CN107306215B (en) A data processing method, system and node
CN106789268A (en) A kind of network audio transmission method and system
CN106330605B (en) Message processing method and device
WO2017015839A1 (en) Sdn-based arp realization method and apparatus
JP2015122665A (en) Relay system and switch device
CN105553810A (en) Method and device for forwarding special line service packet
JP2024504466A (en) Packet forwarding methods, packet processing methods, and devices
WO2019238002A1 (en) Message transmitting method, network edge device, and message transmission system
CN112910704B (en) Local area network system, method and device supporting dynamic self-adaptive network configuration
WO2020220459A1 (en) Vxlan and openflow-based method and system for sharing virtual home network
WO2022007749A1 (en) Data transmission method and apparatus
WO2022142905A1 (en) Packet forwarding method and apparatus, and network system
US12068952B2 (en) Routing information publishing method, apparatus, and system
CN114584509B (en) A communication method and related equipment
CN103986714A (en) Implementation method and device for connecting bus control network into agent of AVB network

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Xu Yongjian

Inventor after: Lu Xuming

Inventor after: Xu Guangjian

Inventor after: Tan Hongzhou

Inventor after: Chen Yuanchuan

Inventor before: Xu Yongjian

Inventor before: Lu Xuming

Inventor before: Xu Guangjian

Inventor before: Tan Hongzhou

Inventor before: Chen Yuanchuan

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531