A Tunneling Partition Broadcast Control Method and System Based on IP Network Addressing
By adopting a tunnel zone broadcast control method based on IP network addressing, the problems of high cabling cost, inflexible zone control, and emergency broadcast switching delay in tunnel broadcast systems are solved. This method enables directional addressing of IP broadcast terminals and continuous transmission of broadcast audio, thereby improving the reliability of the system and the integrity of zone broadcasting.
Patent Information
- Application Number
- CN202611628778.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-21
- Publication Date
- 2026-11-17
AI Technical Summary
Existing tunnel broadcasting systems suffer from high wiring costs, poor scalability, inflexible zoning control, inability to achieve dynamic zoning, and delayed response when switching between emergency broadcasting and daily broadcasting, as well as audio interruption or noise issues.
The tunnel partitioned broadcast control method based on IP network addressing achieves directional addressing of IP broadcast terminals and continuous transmission of broadcast audio through the partitioned addressing relationship of virtual partitions, preset partitioned multicast addresses, and member terminal IP address sets. It adopts a control mechanism that combines broadcast reception establishment with audio frame buffering.
It improves the integrity and reliability of tunnel partition broadcasting, avoids the loss of audio frames during broadcast reception setup, and realizes directional addressing of IP broadcast terminals within the target virtual partition and continuous transmission of broadcast audio.
Smart Images

Figure CN123123318A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of tunnel broadcast control technology, and particularly relates to a tunnel zone broadcast control method and system based on IP network addressing. Background Technology
[0002] In narrow spaces such as tunnels and utility tunnels, broadcasting systems play a vital role in daily operations, disseminating traffic information, and directing emergency evacuations. However, traditional broadcasting systems have many limitations in their network architecture and control methods.
[0003] Existing tunnel broadcasting systems mostly use analog audio cables or point-to-point fiber optic direct connections. Each remote broadcasting terminal requires a separate transmission line to be laid from the control room to the terminal location, resulting in high cabling costs and construction difficulties, especially in tunnels tens of kilometers long. Chinese utility model patent CN212572576U, "A Local Zero-Configuration Emergency Broadcasting System," proposes an IP network-based emergency broadcasting system, including a remote configuration terminal, an IP network, a switch, and an emergency broadcasting adapter, enabling remote login and configuration via VLAN. While this solution achieves IP-based network transmission, it primarily focuses on the remote configuration and management of emergency broadcasting terminals and does not address the issue of zoned control of broadcasting terminals in tunnel scenarios.
[0004] In terms of broadcast zone control, existing technologies include solutions based on physical audio zones, which use digital audio processing devices to achieve multi-zone settings and single-zone or non-adjacent dual-zone broadcasting. However, the zoning of this solution depends on the audio zone division of physical cabling, with fixed granularity and poor flexibility. It cannot dynamically adjust the zoning strategy according to actual needs, and it cannot achieve independent broadcast control for specific tunnel segments (such as only uplink or downlink).
[0005] Regarding emergency broadcast switching, Chinese invention patent CN105703860A discloses an emergency broadcast method and apparatus that involves determining broadcast content and terminals, formulating broadcast plans, and issuing control commands on an emergency broadcast platform. However, its switching mechanism relies on the issuance of control commands from the platform side, resulting in a response delay during the switching between emergency broadcasts and regular broadcasts, and it lacks fine-grained control over the audio switching quality.
[0006] In summary, the existing technology has the following shortcomings: (1) Broadcast transmission relies on point-to-point fiber optic direct connection or analog audio line, which has high wiring costs and poor scalability; (2) Zone control relies on physical wiring division, which cannot realize dynamic and flexible logical partitioning; (3) It cannot realize precise independent zone broadcast control based on tunnel section and driving direction; (4) The emergency broadcast and daily broadcast switching mechanism has a large response delay, and there is audio interruption or noise during the switching process. Summary of the Invention
[0007] To address the shortcomings of existing technologies, this invention proposes a tunnel partition broadcast control method and system based on IP network addressing.
[0008] To achieve the above objectives, the present invention provides the following technical solution: A tunnel-based zone broadcast control method based on IP network addressing includes: Virtual partitions are formed based on the physical location range of each IP broadcast terminal and the driving direction corresponding to each IP broadcast terminal. A partition addressing relationship is established between the virtual partitions, the preset partition multicast addresses, and the set of member terminal IP addresses. Receive broadcast control commands, determine the target virtual partition and the target broadcast audio, and determine the target partition multicast address and the target member terminal IP address set according to the partition addressing relationship; Send a broadcast receive setup instruction containing the target partition multicast address to the IP broadcast terminal identified by each terminal IP address in the target member terminal IP address set, receive a broadcast receive setup response containing the terminal IP address of the IP broadcast terminal returned by the IP broadcast terminal, and determine the set of terminal IP addresses for receiving setup based on the broadcast receive setup response.
[0009] After the broadcast reception establishment instruction is sent, the target broadcast audio is encoded into a broadcast audio frame; when the set of IP addresses of the receiving establishment terminal is different from the set of IP addresses of the target member terminal, the formed broadcast audio frame is written into the broadcast audio frame buffer area. When the set of receiving terminal IP addresses is identical to the set of target member terminal IP addresses for the first time, the cached broadcast audio frames are read from the broadcast audio frame buffer, and the broadcast audio frames formed from the moment of the first identical occurrence until the completion of the target broadcast audio encoding are obtained. These are then transmitted via the switch network in chronological order of the encoding times corresponding to each broadcast audio frame. Specifically, the step of forming virtual partitions based on the physical location range of each IP broadcast terminal and the driving direction corresponding to each IP broadcast terminal includes: The tunnel is divided into preset tunnel station intervals, and the preset tunnel station interval to which each IP broadcast terminal belongs is determined. For each of the preset tunnel station intervals, IP broadcast terminals belonging to the preset tunnel station interval and traveling in the up direction are assigned to the uplink virtual partition of the preset tunnel station interval, and IP broadcast terminals belonging to the preset tunnel station interval and traveling in the downlink virtual partition of the preset tunnel station interval are assigned to the downlink virtual partition of the preset tunnel station interval.
[0010] Specifically, establishing the partition addressing relationship between the virtual partition, the preset partition multicast address, and the set of member terminal IP addresses includes: Each virtual partition is configured with a preset partition multicast address, and the preset partition multicast addresses of different virtual partitions are different from each other; Obtain the terminal IP address and network connection status of the IP broadcast terminals in each virtual partition, and form a member terminal IP address set by the terminal IP addresses of the IP broadcast terminals in the same virtual partition whose network connection status is online; The virtual partition, the preset partition multicast address configured for the virtual partition, and the set of member terminal IP addresses of the virtual partition are associated to form the partition addressing relationship.
[0011] Specifically, the update of the member terminal IP address set includes: When the physical location or network connection status of the IP broadcast terminal changes, the terminal IP address of the IP broadcast terminal, the virtual partition to which it belonged before the change, the current physical location range and the current network connection status are obtained, and the current virtual partition to which it belongs is determined according to the current physical location range and the driving direction corresponding to the IP broadcast terminal. When the current virtual partition is different from the virtual partition before the change, the terminal IP address is deleted from the set of member terminal IP addresses of the virtual partition before the change. When the current network connection status is online, the terminal IP address is written into the set of member terminal IP addresses of the current virtual partition; when the current network connection status is offline, the terminal IP address is deleted from the set of member terminal IP addresses of the current virtual partition.
[0012] Specifically, determining the set of IP addresses of the receiving and establishing terminals based on the broadcast receiving and establishing response includes: Generate a unique current broadcast task identifier for the broadcast control command, and write the current broadcast task identifier into the broadcast receive setup command; After the IP broadcast terminal establishes a broadcast reception status for the target partition multicast address, it returns a broadcast reception establishment response containing the current broadcast task identifier and the terminal IP address of the IP broadcast terminal. Obtain the broadcast task identifier and terminal IP address from the broadcast receive establishment response, determine the terminal IP address in the broadcast receive establishment response that matches the broadcast task identifier as the task-matching terminal IP address, and write the task-matching terminal IP address into the receive establishment terminal IP address set.
[0013] Specifically, writing the task-matching terminal IP address into the receiving and establishing terminal IP address set includes: The task matching terminal IP address is compared with each terminal IP address in the set of receiving and establishing terminal IP addresses; When the IP address of the task matching terminal is different from all the IP addresses of the terminals in the set of IP addresses of the receiving and establishing terminals, the IP address of the task matching terminal is written into the set of IP addresses of the receiving and establishing terminals. When the IP address of the task matching terminal is the same as any terminal IP address in the set of receiving and establishing terminal IP addresses, the set of receiving and establishing terminal IP addresses remains unchanged.
[0014] Specifically, the step of buffering the broadcast audio frame when the set of receiving terminal IP addresses is different from the set of target member terminal IP addresses includes: Starting from the formation of the first broadcast audio frame, the first broadcast audio frame and the subsequently formed broadcast audio frames are written into the preset broadcast start buffer in the order of formation until the set of receiving terminal IP addresses is the same as the set of target member terminal IP addresses.
[0015] Specifically, the cached broadcast audio frames and subsequently formed broadcast audio frames are encapsulated in their formation order into multicast data packets with the target partition multicast address as the destination address, including: When the set of receiving terminal IP addresses is the same as the set of target member terminal IP addresses, the broadcast audio frames in the preset broadcast start buffer are read sequentially according to the writing order, and the read broadcast audio frames are encapsulated into multicast data packets with the target partition multicast address as the destination address. During the reading of broadcast audio frames in the preset broadcast start buffer, subsequent broadcast audio frames are written into the preset broadcast start buffer in the order of their formation, and broadcast audio frames are read sequentially in the order of their writing in the preset broadcast start buffer. The read broadcast audio frames are then encapsulated into multicast data packets with the target partition multicast address as the destination address.
[0016] Specifically, the transmission via the switch network includes: The switch that receives the multicast data packet parses the destination address of the multicast data packet to obtain the target partition multicast address; Query the multicast forwarding table based on the target partition multicast address to determine the set of multicast forwarding ports corresponding to the target partition multicast address; The multicast data packets are forwarded through each multicast forwarding port in the set of multicast forwarding ports.
[0017] Specifically, the formation and transmission of the multicast data packets include: The broadcast audio frame number of each broadcast audio frame is determined according to the order in which they are read from the preset broadcast start buffer, and the broadcast audio frame number increases continuously according to the order in which they are read. Each broadcast audio frame and its corresponding broadcast audio frame sequence number are encapsulated into a multicast data packet, and the target partition multicast address is written into the destination address field of the multicast data packet. The multicast data packets are sent through the switch network in ascending order of the broadcast audio frame sequence number in each multicast data packet.
[0018] The present invention also provides a tunnel partition broadcast control system based on IP network addressing, including an IP broadcast terminal, a switch network, a partition addressing module, a broadcast control module, and a broadcast reception establishment module; The partition addressing module forms virtual partitions based on the physical location range of each IP broadcast terminal and the driving direction corresponding to each IP broadcast terminal, and establishes a partition addressing relationship between the virtual partitions, the preset partition multicast address and the set of member terminal IP addresses; The broadcast control module receives broadcast control instructions, determines the target virtual partition and the target broadcast audio, and determines the target partition multicast address and the target member terminal IP address set according to the partition addressing relationship. The broadcast reception establishment module sends a broadcast reception establishment instruction containing the target partition multicast address to the IP broadcast terminal identified by each terminal IP address in the target member terminal IP address set, receives a broadcast reception establishment response containing the terminal IP address of the IP broadcast terminal returned by the IP broadcast terminal, and determines the set of terminal IP addresses for reception establishment based on the broadcast reception establishment response.
[0019] Specifically, the tunnel partition broadcast control system based on IP network addressing also includes a broadcast audio processing module and a broadcast transmission module; the broadcast audio processing module encodes the target broadcast audio into broadcast audio frames, and when the set of receiving and establishing terminal IP addresses is different from the set of target member terminal IP addresses, it buffers the broadcast audio frames starting from the first broadcast audio frame; When the set of IP addresses of the receiving and establishing terminals is the same as the set of IP addresses of the target member terminals, the broadcast transmission module encapsulates the cached broadcast audio frames and the broadcast audio frames formed from the moment when the set of IP addresses of the receiving and establishing terminals is the same as the set of IP addresses of the target member terminals into a multicast data packet with the target partition multicast address as the destination address, according to the formation order, and sends it through the switch network.
[0020] Specifically, in the IP network-addressable tunnel zone broadcast control system, the switch network includes: Switches installed along the tunnel's extension direction; Each of the IP broadcast terminals is connected to one of the switches in the switch network via a network cable; The interconnected switches in the switch network are connected by optical fiber.
[0021] Compared with existing technologies, the beneficial effects of this invention are as follows: This application introduces a partitioned broadcast control mechanism that combines target member terminal broadcast reception establishment with broadcast audio frame buffering, thereby achieving directional addressing of IP broadcast terminals within the target virtual partition and continuous transmission of broadcast audio. Compared with technical solutions that transmit broadcast audio data before the broadcast reception state is established, this application can buffer broadcast audio frames from the first broadcast audio frame when the set of IP addresses of the receiving establishment terminal is different from the set of IP addresses of the target member terminal, and transmit them according to the formation order of the broadcast audio frames when the two sets are the same, avoiding the loss of the initial broadcast audio frame during the broadcast reception establishment period, thereby improving the integrity and reliability of tunnel partitioned broadcasting. Attached Figure Description
[0022] Figure 1 This is a flowchart of the tunnel partition broadcast control method based on IP network addressing of the present invention; Figure 2 This is a schematic diagram of the tunnel virtual partitions and partition addressing relationships of the tunnel partition broadcast control method and system based on IP network addressing according to the present invention; Figure 3 This is a schematic diagram illustrating the broadcast reception establishment and terminal response relationship of the tunnel partition broadcast control method and system based on IP network addressing of the present invention; Figure 4 This is a schematic diagram illustrating the timing of changes in the set of IP addresses of the receiving terminal and the buffering of broadcast audio frames in the tunnel partition broadcast control method and system based on IP network addressing of the present invention. Figure 5 This is a schematic diagram of the target partition multicast data packet forwarding of the tunnel partition broadcast control method and system based on IP network addressing of the present invention; Figure 6 This is a schematic diagram of the tunnel partition broadcast control system based on IP network addressing according to the present invention; Detailed Implementation
[0023] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
[0024] In this embodiment of the invention, "first," "second," and the step number are used only to distinguish technical objects or processing steps, and do not indicate the quantity, order, or importance of technical objects. Unless otherwise stated, the processing results formed in each step serve as the data basis for subsequent corresponding processing steps.
[0025] Example 1 Please see Figure 1 This embodiment provides a tunnel partition broadcast control method based on IP network addressing, specifically including: S101. A virtual partition is formed based on the physical location range of each IP broadcast terminal and the driving direction corresponding to each IP broadcast terminal. The partition addressing relationship between the virtual partition, the preset partition multicast address, and the set of member terminal IP addresses is established.
[0026] S102. Receive broadcast control instructions, determine the target virtual partition and the target broadcast audio, and determine the target partition multicast address and the target member terminal IP address set according to the partition addressing relationship.
[0027] S103. Send a broadcast reception establishment instruction containing the target partition multicast address to the IP broadcast terminal identified by each terminal IP address in the target member terminal IP address set, receive a broadcast reception establishment response containing the terminal IP address of the IP broadcast terminal returned by the IP broadcast terminal, and determine the reception establishment terminal IP address set according to the broadcast reception establishment response.
[0028] S104. After the broadcast reception establishment instruction is sent, the target broadcast audio is encoded into a broadcast audio frame. When the set of IP addresses of the receiving establishment terminal is different from the set of IP addresses of the target member terminal, the formed broadcast audio frame is written into the broadcast audio frame buffer area.
[0029] S105. When the set of receiving terminal IP addresses is the same as the set of target member terminal IP addresses for the first time, the cached broadcast audio frame is read from the broadcast audio frame buffer, and the broadcast audio frame formed from the moment of the first time they are the same until the target broadcast audio encoding is completed is obtained. The broadcast audio frame is then sent through the switch network in the order of the encoding time corresponding to each broadcast audio frame.
[0030] In this embodiment, each IP broadcast terminal is fixedly installed inside the tunnel. After the IP broadcast terminal is installed, its terminal IP address, installation station number, and driving direction are obtained, and terminal configuration information between the terminal IP address, installation station number, and driving direction is established.
[0031] The installation station number is determined based on the actual installation position of the IP broadcast terminal relative to the tunnel station reference; the driving direction is determined based on the traffic direction of the lanes covered by the IP broadcast terminal. When the IP broadcast terminal is reinstalled in a different location, the installation station number of the IP broadcast terminal is re-acquired, and the terminal configuration information is updated using the re-acquired installation station number.
[0032] In this embodiment, the same terminal IP address is associated with only one set of currently valid installation station numbers and driving directions; when updating the installation station number or driving direction, the original installation station number and driving direction of the corresponding terminal IP address are replaced with the updated installation station number and driving direction, so that a terminal IP address can only determine one currently belonging virtual partition at any given time.
[0033] Furthermore, in step S101, a virtual partition is formed based on the physical location range of each IP broadcast terminal and the driving direction corresponding to each IP broadcast terminal, specifically including: S201. Divide the tunnel into preset tunnel station number intervals, and determine the preset tunnel station number interval to which each IP broadcast terminal belongs based on the installation station number of each IP broadcast terminal.
[0034] S202. For each of the preset tunnel station intervals, IP broadcast terminals belonging to the preset tunnel station interval and traveling in the up direction are assigned to the uplink virtual partition of the preset tunnel station interval, and IP broadcast terminals belonging to the preset tunnel station interval and traveling in the downlink virtual partition of the preset tunnel station interval are assigned to the downlink virtual partition of the preset tunnel station interval.
[0035] refer to Figure 2 As shown, the same preset tunnel station interval is divided into an upward virtual partition and a downward virtual partition according to the upward and downward directions, respectively. Figure 2 The right side shows the partition addressing information corresponding to each virtual partition. The uplink virtual partition is associated with the preset partition multicast address A and the member terminal IP address set A, and the downlink virtual partition is associated with the preset partition multicast address B and the member terminal IP address set B. The member terminal IP address set A consists of the terminal IP addresses of IP broadcast terminals in the uplink virtual partition whose network connection status is online, and the member terminal IP address set B consists of the terminal IP addresses of IP broadcast terminals in the downlink virtual partition whose network connection status is online. This forms the partition addressing relationship between each virtual partition, the corresponding preset partition multicast address, and the member terminal IP address set. Figure 2 The dots in the diagram represent IP broadcast terminals. The number of dots indicates the distribution of IP broadcast terminals within the preset tunnel station range, and does not indicate a limited number of IP broadcast terminals.
[0036] In this embodiment, adjacent preset tunnel station intervals are defined by station boundaries that are consecutive and non-overlapping. Except for the last preset tunnel station interval, each preset tunnel station interval includes its starting station but excludes its ending station; the last preset tunnel station interval includes both its starting and ending station. When the installation station of an IP broadcast terminal falls within one of these preset tunnel station intervals, that preset tunnel station interval is determined as the preset tunnel station interval to which the IP broadcast terminal belongs. Therefore, an IP broadcast terminal installed at the common boundary of adjacent preset tunnel station intervals has a unique station affiliation.
[0037] The preset tunnel station intervals are determined during the broadcast system deployment phase. Those skilled in the art can determine the starting and ending station numbers of each preset tunnel station interval based on the spatial length required for independent broadcast control by the tunnel operation side, the actual station range of the tunnel, and the actual installation station numbers of the IP broadcast terminals. The determined starting and ending station numbers are then written into the partition configuration data of the partition addressing module. The setting of the preset tunnel station intervals is based on the spatial range required for independent broadcast control within the tunnel and the actual deployment locations of the IP broadcast terminals within that spatial range.
[0038] Furthermore, in step S101, establishing the partition addressing relationship between the virtual partition, the preset partition multicast address, and the set of member terminal IP addresses specifically includes: S301. Configure a preset partition multicast address for each of the virtual partitions, and the preset partition multicast addresses of different virtual partitions are different from each other.
[0039] S302. Obtain the terminal IP address and network connection status of the IP broadcast terminals in each virtual partition, and form a member terminal IP address set by the terminal IP addresses of the IP broadcast terminals in the same virtual partition whose network connection status is online.
[0040] S303. Associating each virtual partition, the preset partition multicast address configured for the virtual partition, and the set of member terminal IP addresses of the virtual partition to form the partition addressing relationship.
[0041] The preset partition multicast address is determined from the preset multicast address pool configured for the tunnel broadcast system before the switch network is put into operation.
[0042] In this embodiment, the preset multicast address pool is configured from the range of multicast addresses supported by the switch network. When configuring the preset multicast address pool, the multicast addresses already configured for other multicast services by the switch network are first read, and the already configured multicast addresses are excluded from the range of multicast addresses supported by the switch network. The remaining available multicast addresses are then used to form the preset multicast address pool.
[0043] Specifically, the number of preset multicast addresses to be configured is determined based on the number of virtual partitions. Allocated multicast addresses are read from the preset multicast address pool, and preset multicast addresses are configured for each virtual partition from the unallocated multicast addresses. After configuring the preset multicast address for each virtual partition, it is checked whether the currently configured preset multicast address is already associated with another virtual partition. Only multicast addresses that are not yet associated with another virtual partition are configured as the preset multicast address for the current virtual partition.
[0044] Those skilled in the art can determine the preset multicast address pool based on the total number of virtual partitions, the range of multicast addresses that the switch network can use, and the multicast addresses within that range that are already occupied by other services. The number of multicast addresses that can be allocated in the preset multicast address pool is not less than the number of virtual partitions that need to be configured with preset partition multicast addresses.
[0045] Furthermore, in step S302, the network connection status is determined based on the terminal status messages periodically sent by the IP broadcast terminal.
[0046] Each IP broadcast terminal sends a terminal status message according to a preset status reporting cycle. The terminal status message contains at least the terminal IP address of the IP broadcast terminal that sent the terminal status message.
[0047] In this embodiment, terminal status messages that can be completely parsed according to the preset terminal status message format and whose parsed terminal IP address matches the terminal IP address registered in the terminal configuration information are determined to be valid terminal status messages; terminal status messages that cannot be completely parsed or whose parsed terminal IP address is not registered in the terminal configuration information are not used to update the network connection status of the corresponding IP broadcast terminal.
[0048] In this embodiment, after the IP broadcast terminal completes the establishment of terminal configuration information, it sets the initial network connection status of the IP broadcast terminal to offline; after receiving the first valid terminal status message from the IP broadcast terminal, it updates the network connection status of the IP broadcast terminal to online, and accumulates the non-received time from the time the valid terminal status message is received.
[0049] For any IP broadcast terminal, the cumulative non-reception time is calculated from the last time a valid terminal status message was received from the IP broadcast terminal. When the non-reception time is less than a preset offline determination time, the network connection status of the IP broadcast terminal is determined to be online; when the non-reception time reaches the preset offline determination time, the network connection status of the IP broadcast terminal is determined to be offline.
[0050] The preset status reporting period and preset offline determination duration are determined before system deployment. Those skilled in the art can determine the upper limit of the preset offline determination duration based on the maximum duration for which the tunnel broadcast system allows the set of member terminal IP addresses to retain invalid terminal IP addresses. Under normal network load and the designed maximum network load, they continuously receive terminal status messages sent by normally online IP broadcast terminals and count the maximum reception interval between two adjacent valid terminal status messages. The duration greater than the maximum reception interval but not greater than the maximum duration is determined as the preset offline determination duration.
[0051] After determining the preset offline determination duration, the preset status reporting period is set to be shorter than the preset offline determination duration, so that there are more than two terminal status message transmission times within one preset offline determination duration. Those skilled in the art can determine the preset status reporting period based on the number of IP broadcast terminals, the status message transmission load allowed by the control network, and the preset offline determination duration.
[0052] Furthermore, in step S302, updating the set of member terminal IP addresses includes: S401. When the physical location or network connection status of the IP broadcast terminal changes, obtain the terminal IP address of the IP broadcast terminal, the virtual partition to which it belonged before the change, the current physical location range and the current network connection status, and determine the current virtual partition to which it belongs based on the current physical location range and the driving direction corresponding to the IP broadcast terminal.
[0053] S402. When the current virtual partition is different from the virtual partition before the change, delete the terminal IP address from the set of member terminal IP addresses of the virtual partition before the change.
[0054] S403. When the current network connection status is online, the terminal IP address is written into the set of member terminal IP addresses of the current virtual partition; when the current network connection status is offline, the terminal IP address is deleted from the set of member terminal IP addresses of the current virtual partition.
[0055] In this embodiment, the member terminal IP address set uses the terminal IP address as a unique member identifier. If the same terminal IP address already exists in the member terminal IP address set of the current virtual partition, the terminal IP address will not be written again; when performing a deletion operation, the member terminal IP address set that is the same as the terminal IP address to be deleted will be deleted.
[0056] After the member terminal IP address set is updated, the updated member terminal IP address set is written into the partition addressing relationship of the corresponding virtual partition, so that when subsequent broadcast control commands arrive, they can obtain the terminal IP address of the IP broadcast terminal that is currently online.
[0057] Furthermore, in step S102, the broadcast control instruction includes at least a target virtual partition identifier for identifying the target virtual partition and a target broadcast audio identifier for identifying the target broadcast audio.
[0058] Upon receiving a broadcast control command, the target virtual partition identifier is read, and the target virtual partition is determined based on the target virtual partition identifier; the target broadcast audio identifier is read, and the target broadcast audio is obtained from the broadcast audio storage area or the real-time broadcast audio input channel based on the target broadcast audio identifier.
[0059] After determining the target virtual partition, the target virtual partition is used as the query condition to read the preset partition multicast address and member terminal IP address set associated with the target virtual partition from the partition addressing relationship. The read preset partition multicast address is determined as the target partition multicast address, and the read member terminal IP address set is determined as the target member terminal IP address set.
[0060] In this embodiment, a current broadcast task period is defined as the time from receiving a broadcast control command and generating a current broadcast task identifier until all target broadcast audio corresponding to the broadcast control command is sent or the current broadcast task is determined to have failed to establish broadcast reception. At the beginning of the current broadcast task period, the set of member terminal IP addresses in the partition addressing relationship is copied, and the copied set is saved as the target member terminal IP address set for the current broadcast task. During the current broadcast task period, the already saved target member terminal IP address set is not updated or replaced by subsequent member terminal IP address sets.
[0061] Furthermore, in step S103, determining the set of IP addresses of the receiving and establishing terminals based on the broadcast receiving and establishing response includes: S501. Generate a unique current broadcast task identifier for the broadcast control command, and write the current broadcast task identifier into the broadcast receive setup command.
[0062] S502. After the IP broadcast terminal establishes a broadcast reception status for the target partition multicast address, it returns a broadcast reception establishment response containing the current broadcast task identifier and the terminal IP address of the IP broadcast terminal.
[0063] S503. Obtain the broadcast task identifier and terminal IP address in the broadcast reception establishment response, determine the terminal IP address in the broadcast reception establishment response that matches the current broadcast task identifier as the task matching terminal IP address, and write the task matching terminal IP address into the reception establishment terminal IP address set.
[0064] In this embodiment, when the broadcast control server starts, it reads the system clock to form a server startup time identifier and initializes the task sequence number. Each time a new broadcast control command is received, the task sequence number is incremented once. The server startup time identifier and the incremented task sequence number are combined to form the current broadcast task identifier. Therefore, different broadcast tasks within the same server operating cycle have different task sequence numbers, and different server operating cycles are distinguished by the server startup time identifier.
[0065] like Figure 3 As shown, when the current broadcast task starts, the set of receiving terminal IP addresses is initialized to an empty set.
[0066] The broadcast reception establishment module sends a broadcast reception establishment command to the corresponding IP broadcast terminal based on the IP addresses of each terminal in the target member terminal IP address set. The broadcast reception establishment command includes at least the current broadcast task identifier and the target partition multicast address.
[0067] In this embodiment, each terminal IP address in the target member terminal IP address set is used as the destination IP address of the control message, and a broadcast reception establishment instruction is sent to the corresponding IP broadcast terminal through the control message. The moment when all terminal IP addresses in the target member terminal IP address set complete the transmission of the broadcast reception establishment instruction for the current broadcast task is determined as the broadcast reception establishment instruction transmission time for the current broadcast task. The broadcast audio encoding in step S104 and the timing of the preset broadcast reception establishment waiting time (described later) both start from the broadcast reception establishment instruction transmission time.
[0068] Furthermore, in step S502, after receiving the broadcast reception establishment instruction, the IP broadcast terminal reads the target partition multicast address in the broadcast reception establishment instruction, registers the target partition multicast address as the multicast reception address used by the current broadcast task, and performs the process of joining the multicast group identified by the target partition multicast address through the network protocol stack of the IP broadcast terminal.
[0069] After completing the multicast group joining process, the broadcast reception status of the IP broadcast terminal for the current broadcast task is updated from unestablished to established, and a broadcast reception establishment response is generated. The current broadcast task identifier and the terminal IP address of the IP broadcast terminal in the broadcast reception establishment instruction are written into the broadcast reception establishment response.
[0070] In this embodiment, the IP broadcast terminal completes the multicast member addition configuration of the target partition multicast address by completing the network protocol stack and returns a successful addition result, which determines that the IP broadcast terminal has completed the multicast group addition process; when the network protocol stack returns a failure to join result, the broadcast reception status corresponding to the current broadcast task is kept as unestablished, and no broadcast reception establishment response indicating that the broadcast reception status has been established is generated.
[0071] In this embodiment, the switch network enables multicast membership management. When an IP broadcast terminal performs multicast group join processing, it sends multicast member join information containing the target partition multicast address through its network interface. After receiving the multicast member join information, the switch establishes a multicast membership relationship based on the target partition multicast address and the switch port that received the multicast member join information.
[0072] Further, in step S503, writing the task matching terminal IP address into the receiving and establishing terminal IP address set includes: S601. Compare the IP address of the task matching terminal with the IP addresses of each terminal in the set of receiving and establishing terminal IP addresses.
[0073] S602. When the IP address of the task matching terminal is different from the IP addresses of each terminal in the set of IP addresses of the receiving and establishing terminal, the IP address of the task matching terminal is written into the set of IP addresses of the receiving and establishing terminal.
[0074] S603. When the IP address of the task matching terminal is the same as any terminal IP address in the set of receiving and establishing terminal IP addresses, the set of receiving and establishing terminal IP addresses remains unchanged.
[0075] like Figure 4 As shown, after each update of the set of IP addresses of the receiving and establishing terminals is completed, the set of IP addresses of the receiving and establishing terminals is compared with the set of IP addresses of the target member terminals.
[0076] The fact that the set of terminal IP addresses to be received and established is the same as the set of terminal IP addresses to be targeted means that the number of terminal IP addresses in the set of terminal IP addresses to be received and established is the same as the number of terminal IP addresses in the set of terminal IP addresses to be targeted, and that every terminal IP address in the set of terminal IP addresses to be received and established exists in the set of terminal IP addresses to be targeted.
[0077] The moment when the above conditions are met for the first time is determined as the moment when the set of terminal IP addresses of the receiving terminal is the same as the set of target member terminal IP addresses.
[0078] It should be noted that, in order to prevent the set of receiving and establishing terminals from being different from the set of target member terminal IP addresses for an extended period after a communication failure of the IP broadcast terminal in the target member terminal IP address set, this embodiment sets a preset broadcast receiving and establishing waiting time.
[0079] The broadcast reception establishment waiting time is accumulated starting from the time the broadcast reception establishment instruction of the current broadcast task is sent. Before the preset broadcast reception establishment waiting time is reached, if the set of receiving and establishing terminal IP addresses is the same as the set of target member terminal IP addresses, the accumulation of the broadcast reception establishment waiting time is stopped and step S105 is executed; if the two sets are still different when the preset broadcast reception establishment waiting time is reached, the set difference between the set of target member terminal IP addresses and the set of receiving and establishing terminal IP addresses is calculated, the resulting terminal IP addresses are combined into a set of unestablished terminal IP addresses, and the current broadcast task status is set to broadcast reception establishment failure.
[0080] If the current broadcast task is set to fail to establish broadcast reception, stop the target broadcast audio encoding of the current broadcast task, delete the broadcast audio frames belonging to the current broadcast task in the preset broadcast start buffer, clear the set of IP addresses of the receiving establishment terminal corresponding to the current broadcast task, and reset the read and write positions of the preset broadcast start buffer.
[0081] The preset broadcast reception establishment waiting time is determined through broadcast reception establishment tests before system deployment. Those skilled in the art can repeatedly execute the broadcast reception establishment process under the condition that the number of target member terminal IP addresses reaches the maximum number of accesses designed for the system and the switch network is under its maximum designed network load. The duration from the time the broadcast reception establishment command is sent to the time when all target member IP broadcast terminals that are working normally return valid broadcast reception establishment responses is recorded. The maximum value of the obtained durations is determined as the maximum broadcast reception establishment time. Simultaneously, an upper limit for the allowed broadcast reception establishment time is determined based on the maximum broadcast start waiting time allowed for the broadcast service. The duration that is not less than the maximum broadcast reception establishment time and not greater than the upper limit for the allowed broadcast reception establishment time is set as the preset broadcast reception establishment waiting time.
[0082] Further, in step S104, buffering the broadcast audio frame when the set of receiving terminal IP addresses is different from the set of target member terminal IP addresses includes: S701. Starting from the formation of the first broadcast audio frame, the first broadcast audio frame and the subsequently formed broadcast audio frames are written into the preset broadcast start buffer in the order of formation until the set of receiving and establishing terminal IP addresses is the same as the set of target member terminal IP addresses.
[0083] The target broadcast audio is continuously encoded into broadcast audio frames according to preset broadcast audio encoding parameters, which include broadcast audio encoding format, audio sampling rate and broadcast audio frame duration.
[0084] Those skilled in the art can determine the broadcast audio encoding format and audio sampling rate based on the audio decoding format supported by the IP broadcast terminal, and determine the broadcast audio frame duration based on the packet processing capability of the switch network, the network's maximum transmission unit, and the broadcast start delay requirements. When determining the broadcast audio frame duration, the sum of the data length of a single broadcast audio frame formed according to the aforementioned broadcast audio encoding format and audio sampling rate and the data length of its multicast packet protocol header should not exceed the network's maximum transmission unit.
[0085] The preset broadcast start buffer adopts a sequential buffer structure that reads in the order of writing, and sets the write position and read position. After the broadcast audio frame is formed, it is written to the current write position, and the write position is updated after the writing is completed. After the transmission of the buffered broadcast audio frame begins, the broadcast audio frame is read from the read position. After the reading is completed, the buffer position occupied by the corresponding broadcast audio frame is released and the read position is updated.
[0086] In this embodiment, the preset broadcast start buffer adopts a circular sequential buffer structure; the write position moves to the end of the buffer and then returns to the start position of the buffer, and the read position moves in the same circular manner; the buffer position can be reused to write a new broadcast audio frame only after the broadcast audio frame in the corresponding buffer position has been read and released.
[0087] The capacity of the preset broadcast start buffer is determined based on the preset broadcast reception setup waiting time and the preset broadcast audio frame duration. The preset broadcast reception setup waiting time is divided by the preset broadcast audio frame duration and the result is rounded up to obtain the maximum number of broadcast audio frames that may be formed during the preset broadcast reception setup waiting period. A preset buffer margin frame number is added to the maximum number of broadcast audio frames to obtain the number of broadcast audio frames that the preset broadcast start buffer needs to accommodate.
[0088] The preset buffer margin frame number is determined based on the maximum cumulative coding time deviation of the target broadcast audio coding process. Those skilled in the art can continuously generate broadcast audio frames when the broadcast audio processing module is under its designed maximum processing load, record the actual generation time of each broadcast audio frame, arrange adjacent theoretical generation times consecutively according to the preset broadcast audio frame duration, calculate the absolute value of the time difference between the actual generation time and the corresponding theoretical generation time, and take the maximum value of the absolute time difference as the maximum cumulative coding time deviation; divide the maximum cumulative coding time deviation by the preset broadcast audio frame duration and round up to obtain the preset buffer margin frame number.
[0089] Further, in step S105, the cached broadcast audio frames and the broadcast audio frames formed from the moment when the set of receiving terminal IP addresses is the same as the set of target member terminal IP addresses are encapsulated in the order of their formation into a multicast data packet with the target partition multicast address as the destination address, including: S801. When the set of receiving terminal IP addresses is the same as the set of target member terminal IP addresses, the broadcast audio frames in the preset broadcast start buffer are read sequentially according to the writing order, and the read broadcast audio frames are encapsulated into multicast data packets with the target partition multicast address as the destination address.
[0090] S802. During the reading of broadcast audio frames in the preset broadcast start buffer, broadcast audio frames formed from the moment when the set of receiving terminal IP addresses is the same as the set of target member terminal IP addresses are written into the preset broadcast start buffer in the order of their formation, and broadcast audio frames are read sequentially in the order of their writing in the preset broadcast start buffer, and the read broadcast audio frames are encapsulated into multicast data packets with the target partition multicast address as the destination address.
[0091] In this embodiment, the first-in-first-out read / write relationship of the preset broadcast start buffer is maintained after the two sets are identical. When the broadcast audio processing module forms a new broadcast audio frame, it only writes to the current write position, and the broadcast sending module only reads the broadcast audio frame from the current read position; when the read position has not caught up with the write position, the newly formed broadcast audio frame that has not passed through the preset broadcast start buffer is not directly read.
[0092] Furthermore, in step S105, the data is sent via the switch network, including: S901. The switch that receives the multicast data packet parses the destination address of the multicast data packet to obtain the target partition multicast address.
[0093] S902. Query the multicast forwarding table based on the target partition multicast address to determine the set of multicast forwarding ports corresponding to the target partition multicast address.
[0094] S903. Forward the multicast data packets through each multicast forwarding port in the multicast forwarding port set.
[0095] The multicast forwarding table is formed or updated when the IP broadcast terminal performs multicast group joining processing for the target partition multicast address.
[0096] After receiving a multicast member join message sent by an IP broadcast terminal, the switch reads the target partition multicast address in the multicast member join message, determines the switch port that receives the multicast member join message, writes the switch port into the multicast forwarding port set corresponding to the target partition multicast address, and associates the target partition multicast address and the multicast forwarding port set to form a forwarding table entry in the multicast forwarding table.
[0097] When the same target partition multicast address corresponds to two or more switch ports, the switch ports are collectively formed into a multicast forwarding port set corresponding to the target partition multicast address.
[0098] For switches cascaded via fiber optic cables, multicast member join information sent by IP broadcast terminals is processed by the switches directly connected to the IP broadcast terminals, and the multicast membership relationship is transmitted along the cascaded links between switches towards the source of the multicast data. Upon receiving the multicast member join information from the direction of the next-level switch, the upstream switch writes the downlink cascade port that received the multicast member join information into the multicast forwarding port set corresponding to the target partition multicast address. Each level of switch forms a forwarding table entry between the target partition multicast address and the multicast forwarding port set in the manner described above.
[0099] refer to Figure 5 As shown, the switch port connected to an IP broadcast terminal belonging to the target member belongs to the multicast forwarding port set corresponding to the target partition multicast address; IP broadcast terminals not belonging to the target member still maintain network connection with the switch, but their switch ports do not belong to the multicast forwarding port set corresponding to the current target partition multicast address, so the current multicast data packets are not sent through this switch port.
[0100] Furthermore, in step S105, the formation and transmission of each multicast data packet includes: S1001. Determine the broadcast audio frame number of each broadcast audio frame according to the order in which they are read from the preset broadcast start buffer, wherein the broadcast audio frame number increases continuously according to the order in which they are read.
[0101] S1002. Each broadcast audio frame and the corresponding broadcast audio frame sequence number are encapsulated together into a multicast data packet, and the target partition multicast address is written into the destination address field of the multicast data packet.
[0102] S1003. The multicast data packets are sent through the switch network in ascending order of the broadcast audio frame sequence number in each multicast data packet.
[0103] In this embodiment, the broadcast audio frame number of the first broadcast audio frame formed by the current broadcast task is set to 1. Subsequently, for each subsequent broadcast audio frame formed, the broadcast audio frame number of the previous broadcast audio frame is incremented by 1 to obtain the broadcast audio frame number of the next broadcast audio frame. When a new broadcast task is started, the broadcast audio frame number of the first broadcast audio frame is reset to 1.
[0104] After receiving a multicast data packet with the destination address of the currently joined target partition multicast address, the IP broadcast terminal parses the multicast data packet to obtain the broadcast audio frame and its sequence number. The broadcast audio frames are then submitted to the audio decoding process in ascending order of the sequence number, and decoded according to the broadcast audio encoding format and audio sampling rate used in the current broadcast task.
[0105] Once the last broadcast audio frame of the target broadcast audio has been formed, and all broadcast audio frames belonging to the current broadcast task in the preset broadcast start buffer have been read and multicast data packets have been sent, the current broadcast task status is set to "sending completed," the set of receiving and establishing terminal IP addresses corresponding to the current broadcast task is cleared, and the read and write positions of the preset broadcast start buffer are reset. When the next broadcast control command arrives, the corresponding current broadcast task identifier, target member terminal IP address set, and receiving and establishing terminal IP address set are re-established.
[0106] refer to Figure 6 As shown, the present invention also provides a tunnel partition broadcast control system based on IP network addressing.
[0107] In this embodiment, the tunnel zone broadcast control system based on IP network addressing includes an IP broadcast terminal, a switch network, a zone addressing module, a broadcast control module, a broadcast reception and establishment module, a broadcast audio processing module, and a broadcast transmission module.
[0108] The specific processing steps of the partition addressing module, broadcast control module, and broadcast reception establishment module include: S1101, The partition addressing module forms a virtual partition based on the physical location range of each IP broadcast terminal and the driving direction corresponding to each IP broadcast terminal, and establishes a partition addressing relationship between the virtual partition, the preset partition multicast address and the set of member terminal IP addresses.
[0109] S1102. The broadcast control module receives broadcast control instructions, determines the target virtual partition and the target broadcast audio, and determines the target partition multicast address and the target member terminal IP address set according to the partition addressing relationship.
[0110] S1103, the broadcast reception establishment module sends a broadcast reception establishment instruction containing the target partition multicast address to the IP broadcast terminal identified by each terminal IP address in the target member terminal IP address set, receives a broadcast reception establishment response containing the terminal IP address of the IP broadcast terminal returned by the IP broadcast terminal, and determines the set of reception establishment terminal IP addresses based on the broadcast reception establishment response.
[0111] In this embodiment, the partition addressing module obtains the terminal IP address, installation station number, and driving direction of each IP broadcast terminal. The installation station number is determined based on the actual installation position of each IP broadcast terminal relative to the tunnel station reference, and the driving direction is determined based on the traffic direction of the lanes covered by each IP broadcast terminal.
[0112] The partition addressing module determines the preset tunnel station number range to which each IP broadcast terminal belongs based on the installation station number, and then assigns the IP broadcast terminal to the corresponding uplink virtual partition or downlink virtual partition based on the preset tunnel station number range to which the IP broadcast terminal belongs and the corresponding driving direction.
[0113] The starting and ending station numbers of the preset tunnel station number intervals, as well as the method of assigning the interval boundaries, are configured in accordance with the aforementioned step S201. The partition addressing module compares the installation station number of the IP broadcast terminal with the starting and ending station numbers of each preset tunnel station number interval to determine the unique currently assigned preset tunnel station number interval.
[0114] After the virtual partitions are formed, the partition addressing module configures the preset partition multicast address for each virtual partition from the preset multicast address pool, obtains the network connection status of the IP broadcast terminals in each virtual partition, and forms a member terminal IP address set by the terminal IP addresses of the IP broadcast terminals whose network connection status is online.
[0115] The preset multicast address pool is determined according to the range of available multicast addresses in the switch network and the multicast addresses that have already been occupied as described in step S301 above; the network connection status is determined according to the terminal status message, preset status reporting period and preset offline determination duration as described in step S302 above.
[0116] The partition addressing module associates the virtual partition, the preset partition multicast address of the virtual partition, and the set of member terminal IP addresses to form a partition addressing relationship, and provides the partition addressing relationship to the broadcast control module.
[0117] When the physical location of the IP broadcast terminal changes, the partition addressing module re-determines the preset tunnel station interval to which the IP broadcast terminal belongs based on the updated installation station number, and re-determines the current virtual partition to which the IP broadcast terminal belongs in combination with the driving direction corresponding to the IP broadcast terminal; if the current virtual partition to which the terminal belongs is different from the virtual partition to which the terminal belonged before the change, the terminal IP address is deleted from the set of member terminal IP addresses of the virtual partition to which the terminal belonged before the change.
[0118] When the IP broadcast terminal is currently online, its IP address is written into the set of member terminal IP addresses of the current virtual partition; when the current network connection is offline, its IP address is deleted from the set of member terminal IP addresses of the current virtual partition, thereby updating the partition addressing relationship.
[0119] After receiving the broadcast control command, the broadcast control module reads the target virtual partition identifier and the target broadcast audio identifier from the broadcast control command, determines the target virtual partition based on the target virtual partition identifier, and determines the target broadcast audio based on the target broadcast audio identifier.
[0120] The broadcast control module queries the partition addressing relationship using the target virtual partition as the query condition, reads the preset partition multicast address and member terminal IP address set associated with the target virtual partition, determines the read preset partition multicast address as the target partition multicast address, determines the read member terminal IP address set as the target member terminal IP address set, and provides the target partition multicast address and target member terminal IP address set to the broadcast reception establishment module.
[0121] The broadcast control module saves the set of target member terminal IP addresses at the start of the current broadcast task and keeps the set of target member terminal IP addresses unchanged during the current broadcast task period.
[0122] After receiving the target partition multicast address and the target member terminal IP address set, the broadcast reception establishment module generates a current broadcast task identifier for the current broadcast control command and writes the current broadcast task identifier and the target partition multicast address into the broadcast reception establishment command.
[0123] The current broadcast task identifier is formed by combining the server startup time identifier and the monotonically increasing task sequence number in the aforementioned step S501.
[0124] The broadcast reception establishment module sends the broadcast reception establishment instruction to the IP broadcast terminal identified by the corresponding terminal IP address according to each terminal IP address in the target member terminal IP address set, and initializes the reception establishment terminal IP address set corresponding to the current broadcast task to an empty set.
[0125] After receiving a broadcast reception establishment command, the IP broadcast terminal reads the target partition multicast address and performs the process of joining the multicast group identified by the target partition multicast address through the network protocol stack. After completing the multicast group joining process, it updates the broadcast reception status corresponding to the current broadcast task to the established status and returns a broadcast reception establishment response containing the current broadcast task identifier and its own terminal IP address.
[0126] After receiving a broadcast reception setup response, the broadcast reception setup module extracts the broadcast task identifier and the terminal IP address from it, and compares the broadcast task identifier with the current broadcast task identifier. If the two broadcast task identifiers match, and the terminal IP address does not exist in the reception setup terminal IP address set, the terminal IP address is written into the reception setup terminal IP address set.
[0127] After each update of the set of terminal IP addresses for receiving and establishing, the broadcast receiving and establishing module compares the set of terminal IP addresses for receiving and establishing with the set of target member terminal IP addresses. When the number of terminal IP addresses in the two sets is the same, and all terminal IP addresses in the set of terminal IP addresses for receiving and establishing exist in the set of target member terminal IP addresses, it is determined that the set of terminal IP addresses for receiving and establishing is the same as the set of target member terminal IP addresses.
[0128] Furthermore, the tunnel partition broadcast control system based on IP network addressing also includes a broadcast audio processing module and a broadcast transmission module, specifically including: S1201. After the broadcast reception establishment instruction is sent, the broadcast audio processing module encodes the target broadcast audio into a broadcast audio frame. When the set of IP addresses of the receiving establishment terminal is different from the set of IP addresses of the target member terminal, the broadcast audio frame is buffered starting from the first broadcast audio frame.
[0129] S1202, When the set of IP addresses of the receiving and establishing terminals is the same as the set of IP addresses of the target member terminals, the broadcast sending module encapsulates the cached broadcast audio frames and the broadcast audio frames formed from the moment when the set of IP addresses of the receiving and establishing terminals is the same as the set of IP addresses of the target member terminals into a multicast data packet with the target partition multicast address as the destination address, according to the formation order, and sends it through the switch network.
[0130] The broadcast audio processing module acquires the target broadcast audio determined by the broadcast control module. After the broadcast reception establishment command is sent, it continuously encodes the target broadcast audio according to the preset broadcast audio encoding parameters to form broadcast audio frames arranged in chronological order.
[0131] The broadcast reception setup instruction sending time is the time determined in step S103 above when the broadcast reception setup instruction is sent for all IP broadcast terminals in the target member terminal IP address set to complete the current broadcast task.
[0132] When the set of IP addresses of the receiving and establishing terminals output by the broadcast receiving and establishing module is different from the set of IP addresses of the target member terminals, the broadcast audio processing module writes the formed broadcast audio frames into the preset broadcast start buffer in the order of their formation, starting from the first broadcast audio frame.
[0133] The preset broadcast start buffer is configured with write and read positions. Each time a broadcast audio frame is generated, the broadcast audio frame is written to the current write position, and the write position is updated after writing is complete. Upon starting to read a broadcast audio frame, the broadcast audio frame is read from the current read position. After reading is complete, the buffer position occupied by the broadcast audio frame is released, and the read position is updated.
[0134] The preset broadcast audio frame duration is determined before system deployment based on the broadcast audio encoding format supported by the IP broadcast terminal, the data packet processing capability of the switch network, the network's maximum transmission unit, and the broadcast start delay requirements. Those skilled in the art can set candidate broadcast audio frame durations for the broadcast audio encoding formats supported by the IP broadcast terminal, and determine the data length of a single broadcast audio frame and the number of broadcast audio frames formed per unit time corresponding to each candidate broadcast audio frame duration. The preset broadcast audio frame duration is determined by selecting candidate broadcast audio frame durations whose encapsulated multicast data packet length is no greater than the network's maximum transmission unit, whose number of multicast data packets formed per unit time does not exceed the switch network's data packet processing capability, and which meet the broadcast start delay requirements.
[0135] The preset buffer margin frame count is used to characterize the number of broadcast audio frames reserved for time fluctuations during the formation and writing process of broadcast audio frames, in addition to the base buffer frame count determined according to the preset broadcast reception setup wait time and the preset broadcast audio frame duration. The base buffer frame count is obtained by dividing the preset broadcast reception setup wait time by the preset broadcast audio frame duration and rounding the result up.
[0136] The preset buffer margin frame count is determined through broadcast audio frame buffering tests before system deployment. Those skilled in the art can repeatedly execute the broadcast audio frame formation and buffering process from the moment the broadcast receive setup command is sent until the preset broadcast receive setup waiting time is reached, under conditions where the broadcast audio processing module is at its maximum designed processing load and the switch network is at its maximum designed network load. The number of broadcast audio frames written to the preset broadcast start buffer in each test is counted, and the non-negative difference between the maximum number of broadcast audio frames obtained from the test and the basic buffer frame count is determined as the preset buffer margin frame count. When the maximum number of broadcast audio frames is not greater than the basic buffer frame count, the preset buffer margin frame count is set to zero.
[0137] The capacity of the preset broadcast start buffer is determined based on the base buffer frame count and the preset buffer margin frame count. The sum of the base buffer frame count and the preset buffer margin frame count is determined as the number of broadcast audio frames that the preset broadcast start buffer can accommodate.
[0138] The broadcast sending module obtains the set comparison result formed by the broadcast receiving and establishing module. When the set of receiving and establishing terminal IP addresses is the same as the set of target member terminal IP addresses, the broadcast sending module reads broadcast audio frames sequentially from the preset broadcast start buffer according to the writing order.
[0139] When reading broadcast audio frames that have been buffered during the broadcast reception setup, newly formed broadcast audio frames from the same time in both sets continue to be written into the preset broadcast start buffer in the order of their formation, and the broadcast sending module continues to read broadcast audio frames in the order in which they are written.
[0140] The broadcast transmission module determines the broadcast audio frame sequence number for each broadcast audio frame according to the formation order of the broadcast audio frames, encapsulates each broadcast audio frame and its broadcast audio frame sequence number together to form a multicast data packet, and writes the target partition multicast address into the destination address field of the multicast data packet.
[0141] In this embodiment, when the current broadcast task forms the first broadcast audio frame, the broadcast audio frame number of the first broadcast audio frame is set to 1; thereafter, for each subsequent broadcast audio frame formed, the previous broadcast audio frame number is incremented by 1 to obtain the broadcast audio frame number of the next broadcast audio frame; for each new broadcast task started, the broadcast audio frame number of the first broadcast audio frame is reset to 1.
[0142] The broadcast sending module sends each multicast data packet to the switch network in ascending order of the broadcast audio frame sequence number.
[0143] Furthermore, the specific configuration of the switch network includes: S1301, Install a switch along the tunnel extension direction.
[0144] S1302. Each of the IP broadcast terminals is connected to one of the switches in the switch network via a network cable.
[0145] S1303, The switches in the switch network are interconnected via optical fiber.
[0146] In this embodiment, the switches are deployed along the tunnel extension direction. Each IP broadcast terminal is connected to the corresponding switch according to its location. Each IP broadcast terminal communicates with the switch via Ethernet cable, and the interconnected switches are connected via optical fiber.
[0147] When an IP broadcast terminal performs multicast group join processing for a target partition multicast address, it sends multicast member join information to the switch connected to it via a network cable.
[0148] After receiving the multicast member join information, the switch extracts the target partition multicast address and determines the switch port that receives the multicast member join information. The switch port is written into the multicast forwarding port set corresponding to the target partition multicast address, and the target partition multicast address and the multicast forwarding port set are associated to form a forwarding table entry in the multicast forwarding table.
[0149] For cascaded switches connected by optical fiber, multicast membership is established step by step according to the aforementioned multicast forwarding table formation process. When there are IP broadcast terminals in the next-level switch that have joined the multicast group identified by the target partition multicast address, the previous-level switch writes the switch port leading to the next-level switch into the multicast forwarding port set corresponding to the target partition multicast address at this level. Each level of switch forms a forwarding table entry between the target partition multicast address and the multicast forwarding port set at this level.
[0150] After the broadcast sending module sends a multicast data packet, the switch that receives the multicast data packet parses the destination address of the multicast data packet to obtain the target partition multicast address; it queries the multicast forwarding table based on the target partition multicast address to determine the corresponding multicast forwarding port set; and then sends the multicast data packet through each multicast forwarding port in the multicast forwarding port set.
[0151] After receiving a multicast data packet with the multicast address of the target partition it has joined as the destination address, the IP broadcast terminal extracts the broadcast audio frame and the broadcast audio frame sequence number from the multicast data packet and performs audio decoding processing according to the ascending order of the broadcast audio frame sequence number.
[0152] After the last multicast data packet corresponding to the target broadcast audio is sent, the broadcast sending module sets the current broadcast task to send complete, the broadcast receiving establishment module clears the set of receiving establishment terminal IP addresses of the current broadcast task, the broadcast audio processing module resets the write position of the preset broadcast start buffer, and the broadcast sending module resets the read position of the preset broadcast start buffer.
[0153] Through the above technical steps, virtual partitions are formed based on the installation location and driving direction of the IP broadcast terminals, and partition addressing relationships are established using preset partition multicast addresses and member terminal IP address sets. After the broadcast task begins, the target member IP broadcast terminals establish the receiving state of the target partition multicast address according to the terminal IP address, and the buffering and transmission of broadcast audio frames are controlled by comparing the receiving terminal IP address set with the target member terminal IP address set. Before the broadcast reception is established, the data is written into the preset broadcast start buffer in the order of formation starting from the first broadcast audio frame. After the broadcast reception is established, the data is read, numbered, and encapsulated into multicast data packets in the same order. The switch sends the multicast data packets to the target member IP broadcast terminals according to the multicast forwarding table corresponding to the target partition multicast address, thereby reducing the loss of the initial broadcast audio frame during the establishment of the multicast receiving state of the IP broadcast terminals and realizing partition broadcasting based on tunnel location intervals and driving direction.
[0154] The following description uses a specific tunnel broadcasting scenario to illustrate the complete operation of the above method and system. The specific numerical values described below are used to explain the formation and processing relationships between the various technical variables and do not constitute a limitation on the technical solution of this invention.
[0155] For example, a twin-tube, one-way tunnel is 4000 meters long, with IP broadcast terminals deployed in both the up and down directions. The tunnel operation requires that the broadcasts be independently controllable in 500-meter intervals. Therefore, the tunnel is divided into preset tunnel station intervals along both the up and down directions: 0 to 500 meters, 500 to 1000 meters, 1000 to 1500 meters, 1500 to 2000 meters, 2000 to 2500 meters, 2500 to 3000 meters, 3000 to 3500 meters, and 3500 to 4000 meters.
[0156] For the preset tunnel chainage interval of 1000 meters to 1500 meters, IP broadcast terminals with the driving direction in the up direction within this preset tunnel chainage interval are assigned to the uplink virtual partition, and IP broadcast terminals with the driving direction in the downlink are assigned to the downlink virtual partition.
[0157] From the preset multicast address pool configured for the tunnel broadcast system by the switch network, a preset partition multicast address 239.10.3.1 is configured for the uplink virtual partition from 1000 meters to 1500 meters, and a preset partition multicast address 239.10.3.2 is configured for the downlink virtual partition from 1000 meters to 1500 meters. Neither of these two preset partition multicast addresses is occupied by other virtual partitions in the preset multicast address pool.
[0158] In this example, the tunnel broadcast system requires the network connection status of IP broadcast terminals to be updated within 6 seconds. Therefore, the preset offline determination time is set to 6 seconds. Based on the allowed terminal status message transmission load of the switch network and the configuration requirement of forming three terminal status message sending cycles within a preset offline determination time, the preset status reporting cycle is set to 2 seconds. Each IP broadcast terminal sends a terminal status message according to the preset status reporting cycle of 2 seconds. If no valid terminal status message from a certain IP broadcast terminal is received again within 6 seconds since the last valid terminal status message was received, the network connection status of that IP broadcast terminal is determined to be offline.
[0159] Currently, it is necessary to send an accident warning broadcast to the uplink virtual partition at a distance of 1000 to 1500 meters. The current set of member terminal IP addresses for the uplink virtual partition is read. This set of member terminal IP addresses is {192.168.3.11, 192.168.3.12, 192.168.3.13}. Therefore, this set of member terminal IP addresses is determined as the target set of member terminal IP addresses for the current broadcast task, and 239.10.3.1 is determined as the target partition multicast address.
[0160] At the start of the current broadcast task, the set of receiving and establishing terminal IP addresses is initialized to an empty set, and a current broadcast task identifier is generated. The broadcast receive and establish module, based on the three terminal IP addresses in the target member terminal IP address set, sends a broadcast receive and establish instruction containing the current broadcast task identifier and the target partition multicast address 239.10.3.1 to the corresponding IP broadcast terminals. The moment when all three IP broadcast terminals have completed sending their broadcast receive and establish instructions is determined as the broadcast receive and establish instruction sending moment for the current broadcast task.
[0161] After receiving the broadcast reception setup command, the three IP broadcast terminals each read the target partition multicast address 239.10.3.1 and execute the process of joining the multicast group identified by 239.10.3.1 through their respective network protocol stacks. Upon receiving the corresponding multicast member join information, the switch connected to each IP broadcast terminal writes the switch port that received the multicast member join information into the multicast forwarding port set corresponding to 239.10.3.1, forming a multicast forwarding table entry between 239.10.3.1 and the multicast forwarding port set.
[0162] After the three IP broadcast terminals complete the broadcast reception status establishment, they respectively return a broadcast reception establishment response containing the current broadcast task identifier and their own terminal IP address.
[0163] Upon receiving a valid broadcast reception establishment response from an IP broadcast terminal with IP address 192.168.3.11, 192.168.3.11 is added to the set of IP addresses of the receiving establishment terminals, and the set of IP addresses of the receiving establishment terminals is updated from an empty set to {192.168.3.11}. Upon receiving a valid broadcast reception establishment response from an IP broadcast terminal with IP address 192.168.3.12, the set of IP addresses of the receiving establishment terminals is updated to {192.168.3.11, 192.168.3.12}. Upon receiving a valid broadcast reception establishment response from an IP broadcast terminal with IP address 192.168.3.13, the set of IP addresses of the receiving establishment terminals is updated to {192.168.3.11, 192.168.3.12, 192.168.3.13}.
[0164] At this point, both the receiving set of terminal IP addresses and the target set of member terminal IP addresses contain 3 terminal IP addresses. Furthermore, 192.168.3.11, 192.168.3.12, and 192.168.3.13 from the receiving set of terminal IP addresses are present in the target set of member terminal IP addresses. Therefore, it is determined that the receiving set of terminal IP addresses and the target set of member terminal IP addresses are the same.
[0165] In the broadcast reception establishment test before system deployment, the broadcast reception establishment process was repeatedly executed under the design maximum network load condition, and the maximum broadcast reception establishment time obtained was 650 milliseconds. Based on the maximum broadcast start waiting time allowed by the current tunnel broadcast service, the upper limit of the allowed broadcast reception establishment time was determined to be 800 milliseconds. The maximum broadcast reception establishment time of 650 milliseconds is not greater than the upper limit of the allowed broadcast reception establishment time of 800 milliseconds, therefore 800 milliseconds was determined as the preset broadcast reception establishment waiting time.
[0166] In this example, the preset broadcast audio frame duration for the target broadcast audio is set to 20 milliseconds. Starting from the moment the broadcast reception setup command is sent, the broadcast audio processing module continuously forms broadcast audio frames according to the 20-millisecond time interval, meaning one broadcast audio frame is formed every 20 milliseconds. Therefore, a maximum of 40 broadcast audio frames can be formed within the preset broadcast reception setup waiting time of 800 milliseconds.
[0167] The broadcast audio encoding process was tested under the maximum processing load condition, and the maximum cumulative time deviation of broadcast audio encoding was found to be 80 milliseconds. Dividing 80 milliseconds by 20 milliseconds yields 4, so 4 is determined as the preset buffer margin frame number. Adding the 40 broadcast audio frames to the preset buffer margin frame number yields 44 broadcast audio frames, so the preset broadcast start buffer is set to be able to hold 44 broadcast audio frames.
[0168] Assume that the IP broadcast terminal with terminal IP address 192.168.3.13 returns a valid broadcast reception setup response 430 milliseconds after the broadcast reception setup command is sent. Since the broadcast audio processing module forms broadcast audio frames in 20-millisecond time intervals, the 21st broadcast audio frame F21 is formed at 420 milliseconds, and the 22nd broadcast audio frame F22 is formed at 440 milliseconds. Therefore, broadcast audio frames F1 to F21 have already been formed before the two sets reach the same value at 430 milliseconds.
[0169] When the set of terminal IP addresses received is not yet the same as the set of target member terminal IP addresses, broadcast audio frames F1 to F21 are written into the preset broadcast start buffer in the order of their formation, and multicast data packet encapsulation and transmission are not performed on the broadcast audio frames F1 to F21.
[0170] At 430 milliseconds, 192.168.3.13 is written into the set of IP addresses of the receiving and establishing terminals, making the set of IP addresses of the receiving and establishing terminals the same as the set of IP addresses of the target member terminals. The broadcast sending module reads broadcast audio frame F1 from the current read position of the preset broadcast start buffer, and then reads broadcast audio frames F2 to F21 in the order they were written.
[0171] During the reading of broadcast audio frames F1 to F21, starting from 440 milliseconds, broadcast audio frame F22 and subsequent broadcast audio frames continue to be formed, and broadcast audio frame F22 and subsequent broadcast audio frames are continuously written into the preset broadcast start buffer in the order of their formation. The broadcast sending module continues to read the broadcast audio frames in the preset broadcast start buffer in the order of their writing, so that broadcast audio frames F1, F2, F3 and subsequent broadcast audio frames maintain the same reading order as their formation order.
[0172] Set the broadcast audio frame number of the first broadcast audio frame F1 of the current broadcast task to 1. Then, for each subsequent broadcast audio frame, increment the previous broadcast audio frame number by 1. Therefore, the broadcast audio frame numbers of broadcast audio frames F1 to F21 are 1 to 21 respectively, and the broadcast audio frame number of broadcast audio frame F22 is 22.
[0173] The broadcast transmission module encapsulates broadcast audio frame F1 and its broadcast audio frame number 1 together into a multicast data packet, and writes the target partition multicast address 239.10.3.1 into the destination address field of the multicast data packet; in the same manner, broadcast audio frame F2 and its broadcast audio frame number 2, broadcast audio frame F3 and its broadcast audio frame number 3, and so on, until the subsequent broadcast audio frames are encapsulated into multicast data packets, and sent to the switch network in ascending order of broadcast audio frame number.
[0174] After receiving the multicast data packet, the switch parses the destination address of the multicast data packet to obtain the target partition multicast address 239.10.3.1; it queries the multicast forwarding table with 239.10.3.1 to determine the multicast forwarding port set corresponding to 239.10.3.1, and forwards the multicast data packet through the switch port in the multicast forwarding port set, so that the multicast data packet is sent along the switch network to the IP broadcast terminals with terminal IP addresses of 192.168.3.11, 192.168.3.12, and 192.168.3.13.
[0175] After receiving the multicast data packet with 239.10.3.1 as the destination address, the three IP broadcast terminals extract the broadcast audio frame and its sequence number from the multicast data packet, perform audio decoding on the broadcast audio frame in ascending order of the broadcast audio frame sequence number, and play the decoded target broadcast audio.
[0176] Once the last broadcast audio frame of the target broadcast audio completes the multicast data packet transmission, and all broadcast audio frames belonging to the current broadcast task in the preset broadcast start buffer have been read, the current broadcast task is set to complete transmission, the set of receiving terminal IP addresses corresponding to the current broadcast task is cleared, and the read and write positions of the preset broadcast start buffer are reset.
[0177] Through the above specific example, after the broadcast reception establishment instruction is sent, the IP broadcast terminals in the target member terminal IP address set first establish the broadcast reception state corresponding to the target partition multicast address. Before the broadcast reception establishment is completed, the target broadcast audio is buffered in the order of formation starting from the first broadcast audio frame. After the reception establishment terminal IP address set is the same as the target member terminal IP address set, the multicast data packets are encapsulated and sent in the order of formation of the broadcast audio frames. The switch forwards the multicast data packets to the target member IP broadcast terminals according to the multicast forwarding port set corresponding to the target partition multicast address, thereby completing the transmission of the target broadcast audio corresponding to the 1000-meter to 1500-meter uplink virtual partition.
[0178] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments under the guidance of the present invention without departing from the spirit and scope of the present invention. All of these variations are within the scope of protection of the present invention.
Claims
1. A tunnel partition broadcast control method based on IP network addressing, characterized in that, include: Virtual partitions are formed based on the physical location range of each IP broadcast terminal and the driving direction corresponding to each IP broadcast terminal. A partition addressing relationship is established between the virtual partitions, the preset partition multicast addresses, and the set of member terminal IP addresses. Receive broadcast control commands, determine the target virtual partition and the target broadcast audio, and determine the target partition multicast address and the target member terminal IP address set according to the partition addressing relationship; Send a broadcast receive setup instruction containing the target partition multicast address to the IP broadcast terminal identified by each terminal IP address in the target member terminal IP address set; receive a broadcast receive setup response containing the terminal IP address of the IP broadcast terminal returned by the IP broadcast terminal; and determine the set of terminal IP addresses for receiving setup based on the broadcast receive setup response. After the broadcast reception establishment instruction is sent, the target broadcast audio is encoded into a broadcast audio frame; When the set of receiving terminal IP addresses is different from the set of target member terminal IP addresses, the already formed broadcast audio frame is written into the broadcast audio frame buffer. When the set of receiving terminal IP addresses is the same as the set of target member terminal IP addresses for the first time, the cached broadcast audio frames are read from the broadcast audio frame buffer, and the broadcast audio frames formed from the moment of the first time they are the same until the target broadcast audio encoding is completed are obtained and sent through the switch network in the order of the encoding time corresponding to each broadcast audio frame.
2. The tunnel partition broadcast control method based on IP network addressing according to claim 1, characterized in that, The process of forming virtual partitions based on the physical location range of each IP broadcast terminal and the driving direction corresponding to each IP broadcast terminal includes: The tunnel is divided into preset tunnel station intervals, and the preset tunnel station interval to which each IP broadcast terminal belongs is determined. For each of the preset tunnel station intervals, IP broadcast terminals belonging to the preset tunnel station interval and traveling in the up direction are assigned to the uplink virtual partition of the preset tunnel station interval, and IP broadcast terminals belonging to the preset tunnel station interval and traveling in the downlink virtual partition of the preset tunnel station interval are assigned to the downlink virtual partition of the preset tunnel station interval.
3. The tunnel partition broadcast control method based on IP network addressing according to claim 2, characterized in that, The step of establishing the partition addressing relationship between the virtual partition, the preset partition multicast address, and the set of member terminal IP addresses includes: Each virtual partition is configured with a preset partition multicast address, and the preset partition multicast addresses of different virtual partitions are different from each other; Obtain the terminal IP address and network connection status of the IP broadcast terminals in each virtual partition, and form a member terminal IP address set by the terminal IP addresses of the IP broadcast terminals in the same virtual partition whose network connection status is online; The virtual partition, the preset partition multicast address configured for the virtual partition, and the set of member terminal IP addresses of the virtual partition are associated to form the partition addressing relationship.
4. The tunnel partition broadcast control method based on IP network addressing according to claim 3, characterized in that, The update of the member terminal IP address set includes: When the physical location or network connection status of the IP broadcast terminal changes, the terminal IP address of the IP broadcast terminal, the virtual partition to which it belonged before the change, the current physical location range and the current network connection status are obtained, and the current virtual partition to which it belongs is determined according to the current physical location range and the driving direction corresponding to the IP broadcast terminal. When the current virtual partition is different from the virtual partition before the change, the terminal IP address is deleted from the set of member terminal IP addresses of the virtual partition before the change. When the current network connection status is online, the terminal IP address is written into the set of member terminal IP addresses of the current virtual partition; when the current network connection status is offline, the terminal IP address is deleted from the set of member terminal IP addresses of the current virtual partition.
5. The tunnel partition broadcast control method based on IP network addressing according to claim 4, characterized in that, The step of determining the set of IP addresses of the receiving and establishing terminals based on the broadcast receiving and establishing response includes: Generate a unique current broadcast task identifier for the broadcast control command, and write the current broadcast task identifier into the broadcast receive setup command; After the IP broadcast terminal establishes a broadcast reception status for the target partition multicast address, it returns a broadcast reception establishment response containing the current broadcast task identifier and the terminal IP address of the IP broadcast terminal. Obtain the broadcast task identifier and terminal IP address from the broadcast receive establishment response, determine the terminal IP address in the broadcast receive establishment response that matches the broadcast task identifier as the task-matching terminal IP address, and write the task-matching terminal IP address into the receive establishment terminal IP address set.
6. The tunnel partition broadcast control method based on IP network addressing according to claim 5, characterized in that, The step of writing the task-matching terminal IP address into the receiving and establishing terminal IP address set includes: The task matching terminal IP address is compared with each terminal IP address in the set of receiving and establishing terminal IP addresses; When the IP address of the task matching terminal is different from all the IP addresses of the terminals in the set of IP addresses of the receiving and establishing terminals, the IP address of the task matching terminal is written into the set of IP addresses of the receiving and establishing terminals. When the IP address of the task matching terminal is the same as any terminal IP address in the set of receiving and establishing terminal IP addresses, the set of receiving and establishing terminal IP addresses remains unchanged.
7. The tunnel partition broadcast control method based on IP network addressing according to claim 6, characterized in that, The step of buffering the broadcast audio frame when the set of receiving terminal IP addresses is different from the set of target member terminal IP addresses includes: Starting from the formation of the first broadcast audio frame, the first broadcast audio frame and the subsequently formed broadcast audio frames are written into the preset broadcast start buffer in the order of formation until the set of receiving terminal IP addresses is the same as the set of target member terminal IP addresses.
8. The tunnel partition broadcast control method based on IP network addressing according to claim 7, characterized in that, The cached broadcast audio frames and subsequently formed broadcast audio frames are encapsulated in their formation order into a multicast data packet with the target partition multicast address as the destination address, including: When the set of receiving terminal IP addresses is the same as the set of target member terminal IP addresses, the broadcast audio frames in the preset broadcast start buffer are read sequentially according to the writing order, and the read broadcast audio frames are encapsulated into multicast data packets with the target partition multicast address as the destination address. During the reading of broadcast audio frames in the preset broadcast start buffer, subsequent broadcast audio frames are written into the preset broadcast start buffer in the order of their formation, and broadcast audio frames are read sequentially in the order of their writing in the preset broadcast start buffer. The read broadcast audio frames are then encapsulated into multicast data packets with the target partition multicast address as the destination address.
9. The tunnel partition broadcast control method based on IP network addressing according to claim 8, characterized in that, The transmission via the switch network includes: The switch that receives the multicast data packet parses the destination address of the multicast data packet to obtain the target partition multicast address; Query the multicast forwarding table based on the target partition multicast address to determine the set of multicast forwarding ports corresponding to the target partition multicast address; The multicast data packets are forwarded through each multicast forwarding port in the set of multicast forwarding ports.
10. The tunnel partition broadcast control method based on IP network addressing according to claim 9, characterized in that, The formation and transmission of each multicast data packet includes: The broadcast audio frame number of each broadcast audio frame is determined according to the order in which they are read from the preset broadcast start buffer, and the broadcast audio frame number increases continuously according to the order in which they are read. Each broadcast audio frame and its corresponding broadcast audio frame sequence number are encapsulated into a multicast data packet, and the target partition multicast address is written into the destination address field of the multicast data packet. The multicast data packets are sent through the switch network in ascending order of the broadcast audio frame sequence number in each multicast data packet.
11. A tunnel zone broadcast control system based on IP network addressing, characterized in that, Includes IP broadcast terminal, switch network, partition addressing module, broadcast control module, and broadcast reception setup module; The partition addressing module forms virtual partitions based on the physical location range of each IP broadcast terminal and the driving direction corresponding to each IP broadcast terminal, and establishes a partition addressing relationship between the virtual partitions, the preset partition multicast address and the set of member terminal IP addresses; The broadcast control module receives broadcast control instructions, determines the target virtual partition and the target broadcast audio, and determines the target partition multicast address and the target member terminal IP address set according to the partition addressing relationship. The broadcast reception establishment module sends a broadcast reception establishment instruction containing the target partition multicast address to the IP broadcast terminal identified by each terminal IP address in the target member terminal IP address set, receives a broadcast reception establishment response containing the terminal IP address of the IP broadcast terminal returned by the IP broadcast terminal, and determines the set of reception establishment terminal IP addresses based on the broadcast reception establishment response.
12. The tunnel zone broadcast control system based on IP network addressing according to claim 11, characterized in that, It also includes a broadcast audio processing module and a broadcast sending module; the broadcast audio processing module encodes the target broadcast audio into a broadcast audio frame, and buffers the broadcast audio frame starting from the first broadcast audio frame when the set of receiving terminal IP addresses is different from the set of target member terminal IP addresses; When the set of IP addresses of the receiving and established terminals is the same as the set of IP addresses of the target member terminals, the broadcast transmission module encapsulates the cached broadcast audio frames and the subsequently formed broadcast audio frames into a multicast data packet with the target partition multicast address as the destination address in the order of formation, and sends it through the switch network.
13. The tunnel zone broadcast control system based on IP network addressing according to claim 12, characterized in that, The switch network includes: Switches installed along the tunnel's extension direction; Each of the IP broadcast terminals is connected to one of the switches in the switch network via a network cable; The interconnected switches in the switch network are connected by optical fiber.
Citation Information
Patent Citations
Emergency broadcast method and emergency broadcast device
CN105703860A
Local zero-configuration emergency broadcasting system
CN212572576U
